diff --git a/dist/apps/admin-gui/1-es2015.32acfdf32218182500f8.js b/dist/apps/admin-gui/1-es2015.32acfdf32218182500f8.js new file mode 100644 index 000000000..89b8c81ff --- /dev/null +++ b/dist/apps/admin-gui/1-es2015.32acfdf32218182500f8.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{BAI5:function(e,t,s){"use strict";s.d(t,"a",(function(){return A}));var i=s("Ssnw"),n=s("X2Q7"),a=s("iyZ4"),r=s("EM62"),c=s("sEIs"),o=s("2kYt"),b=s("0XDM"),l=s("A8Ay"),u=s("csyo"),p=s("K9kF"),d=s("s2Ay");function f(e,t){1&e&&(r.Sb(0,"h1",6),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&e&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function h(e,t){1&e&&(r.Sb(0,"h1",6),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&e&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function m(e,t){1&e&&r.Nb(0,"mat-spinner",7)}const S=function(){return["select","expiration","menu","recent"]};function g(e,t){if(1&e){const e=r.Tb();r.Sb(0,"perun-web-apps-groups-list",8),r.Zb("page",(function(t){return r.xc(e),r.dc().pageChanged(t)})),r.Rb()}if(2&e){const e=r.dc();r.kc("pageSize",e.pageSize)("groups",e.membersGroups)("hideColumns",r.oc(5,S))("disableMembers",!1)("filter",e.memberFilterValue)}}function R(e,t){1&e&&r.Nb(0,"mat-spinner",7)}function I(e,t){if(1&e){const e=r.Tb();r.Sb(0,"perun-web-apps-groups-list",8),r.Zb("page",(function(t){return r.xc(e),r.dc(2).adminPageChanged(t)})),r.Rb()}if(2&e){const e=r.dc(2);r.kc("pageSize",e.adminPageSize)("groups",e.adminsGroups)("hideColumns",r.oc(5,S))("disableMembers",!1)("filter",e.adminFilterValue)}}function E(e,t){if(1&e){const e=r.Tb();r.Sb(0,"div",9),r.Sb(1,"h1",6),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Sb(4,"perun-web-apps-refresh-button",1),r.Zb("refresh",(function(){return r.xc(e),r.dc().refreshAdminTable()})),r.Rb(),r.Sb(5,"perun-web-apps-immediate-filter",2),r.Zb("filter",(function(t){return r.xc(e),r.dc().adminFilter(t)})),r.Rb(),r.Hc(6,R,1,0,"mat-spinner",3),r.Hc(7,I,1,6,"perun-web-apps-groups-list",4),r.Rb()}if(2&e){const e=r.dc();r.Ab(2),r.Lc(" ",r.fc(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),r.Ab(3),r.kc("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),r.Ab(1),r.kc("ngIf",e.adminRefresh),r.Ab(1),r.kc("ngIf",!e.adminRefresh)}}let A=(()=>{class e{constructor(e,t,s,i,n,r){this.usersService=e,this.memberService=t,this.tableConfigService=s,this.groupService=i,this.store=n,this.route=r,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=a.bb,this.adminTableId=a.ab}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}adminPageChanged(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}memberFilter(e){this.memberFilterValue=e}adminFilter(e){this.adminFilterValue=e}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.adminsGroups=e,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;for(const t of this.vos)this.memberService.getMemberByUser(t.id,this.userId).subscribe(e=>{this.groupService.getMemberGroups(e.id).subscribe(e=>{this.membersGroups=this.membersGroups.concat(e),this.vos.indexOf(t)===this.vos.length-1&&(this.memberRefresh=!1)})});0===e.length&&(this.memberRefresh=!1)})}}return e.\u0275fac=function(t){return new(t||e)(r.Mb(n.p),r.Mb(n.i),r.Mb(a.pb),r.Mb(n.h),r.Mb(i.m),r.Mb(c.a))},e.\u0275cmp=r.Gb({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Eb("router-component",!0)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","hideColumns","disableMembers","filter","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","hideColumns","disableMembers","filter","page"],[1,"mt-5"]],template:function(e,t){1&e&&(r.Hc(0,f,3,3,"h1",0),r.Hc(1,h,3,3,"h1",0),r.Sb(2,"perun-web-apps-refresh-button",1),r.Zb("refresh",(function(){return t.refreshMemberTable()})),r.Rb(),r.Sb(3,"perun-web-apps-immediate-filter",2),r.Zb("filter",(function(e){return t.memberFilter(e)})),r.Rb(),r.Hc(4,m,1,0,"mat-spinner",3),r.Hc(5,g,1,6,"perun-web-apps-groups-list",4),r.Hc(6,E,8,6,"div",5)),2&e&&(r.kc("ngIf",t.showPrincipal),r.Ab(1),r.kc("ngIf",!t.showPrincipal),r.Ab(2),r.kc("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),r.Ab(1),r.kc("ngIf",t.memberRefresh),r.Ab(1),r.kc("ngIf",!t.memberRefresh),r.Ab(1),r.kc("ngIf",!t.showPrincipal))},directives:[o.t,b.a,l.a,u.c,p.a],pipes:[d.d],styles:[""]}),e})()},ECIY:function(e,t,s){"use strict";s.d(t,"a",(function(){return d}));var i=s("X2Q7"),n=s("Ssnw"),a=s("EM62"),r=s("sEIs"),c=s("2kYt"),o=s("bdug"),b=s("csyo"),l=s("s2Ay");function u(e,t){if(1&e&&a.Nb(0,"app-two-entity-attribute-page",3),2&e){const e=a.dc();a.kc("entityValues",e.facilities)("firstEntity","user")("firstEntityId",e.userId)("secondEntity","facility")}}function p(e,t){1&e&&a.Nb(0,"mat-spinner",4)}let d=(()=>{class e{constructor(e,t,s,i){this.route=e,this.storage=t,this.facilitiesManagerService=s,this.store=i,this.facilities=[]}ngOnInit(){this.loading=!0,!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.parent.params.subscribe(e=>this.userId=e.userId),this.facilitiesManagerService.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e,this.loading=!1})}}return e.\u0275fac=function(t){return new(t||e)(a.Mb(r.a),a.Mb(n.m),a.Mb(i.g),a.Mb(n.m))},e.\u0275cmp=a.Gb({type:e,selectors:[["app-user-settings-facility-attributes"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityValues","firstEntity","firstEntityId","secondEntity",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"entityValues","firstEntity","firstEntityId","secondEntity"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Hc(3,u,1,4,"app-two-entity-attribute-page",1),a.Hc(4,p,1,0,"mat-spinner",2)),2&e&&(a.Ab(1),a.Kc(a.fc(2,3,"USER_DETAIL.SETTINGS.FACILITY_ATTRIBUTES.TITLE")),a.Ab(2),a.kc("ngIf",!t.loading),a.Ab(1),a.kc("ngIf",t.loading))},directives:[c.t,o.a,b.c],pipes:[l.d],styles:[""]}),e})()},"Q/gj":function(e,t,s){"use strict";s.d(t,"a",(function(){return C}));var i=s("Ssnw"),n=(s("HHEo"),s("cqs0")),a=s("8clQ"),r=s("mEf3"),c=s("X2Q7"),o=s("iyZ4"),b=s("+0js"),l=s("IDQ9"),u=s("EM62"),p=s("sEIs"),d=s("OZ4H"),f=s("s2Ay"),h=s("KZIX"),m=s("0XDM"),S=s("PBFl"),g=s("A8Ay"),R=s("2kYt"),I=s("csyo"),E=s("LKLE"),A=s("bdug");const v=["list"];function T(e,t){1&e&&(u.Jc(0),u.ec(1,"translate")),2&e&&u.Lc(" ",u.fc(1,1,"ADMIN_USER.ENTITY")," ")}function O(e,t){1&e&&u.Nb(0,"mat-spinner",11)}function M(e,t){if(1&e){const e=u.Tb();u.Sb(0,"perun-web-apps-attributes-list",12,13),u.Zb("page",(function(t){return u.xc(e),u.dc().pageChanged(t)})),u.Rb()}if(2&e){const e=u.dc();u.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("attributes",e.attributes)("selection",e.selection)}}function N(e,t){1&e&&(u.Jc(0),u.ec(1,"translate"),u.ec(2,"translate")),2&e&&u.Mc(" ",u.fc(1,2,"ADMIN_USER.ENTITY")," - ",u.fc(2,4,"FACILITY_DETAIL.ENTITY")," ")}function y(e,t){if(1&e&&u.Nb(0,"app-two-entity-attribute-page",16),2&e){const e=u.dc(3);u.kc("firstEntity","user")("firstEntityId",e.userId)("secondEntity","facility")}}function k(e,t){if(1&e&&u.Hc(0,y,1,3,"app-two-entity-attribute-page",15),2&e){const e=u.dc(2);u.kc("ngIf",!e.loading)}}function U(e,t){1&e&&(u.Sb(0,"mat-tab"),u.Hc(1,N,3,6,"ng-template",2),u.Hc(2,k,1,1,"ng-template",14),u.Rb())}let C=(()=>{class e{constructor(e,t,s,i,a,r,c,b){this.route=e,this.attributesManager=t,this.notificator=s,this.dialog=i,this.translate=a,this.tableConfigService=r,this.store=c,this.authResolver=b,this.selection=new n.c(!0,[]),this.attributes=[],this.filterValue="",this.tableId=o.r,this.translate.get("USER_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe(e=>this.saveSuccessMessage=e),this.translate.get("USER_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe(e=>this.deleteSuccessMessage=e)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.userId=e.userId,void 0===this.userId&&(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}]),this.refreshTable()})}onCreate(){const e=Object(a.o)();e.width="1050px",e.data={entityId:this.userId,entity:"user",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(l.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=Object(a.o)();e.width="450px",e.data={entityId:this.userId,entity:"user",attributes:this.selection.selected},this.dialog.open(b.f,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onDelete(){const e=Object(a.o)();e.width="450px",e.data={entityId:this.userId,entity:"user",attributes:this.selection.selected},this.dialog.open(r.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getUserAttributes(this.userId).subscribe(e=>{this.attributes=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Mb(p.a),u.Mb(c.c),u.Mb(i.l),u.Mb(d.b),u.Mb(f.e),u.Mb(o.pb),u.Mb(i.m),u.Mb(i.h))},e.\u0275cmp=u.Gb({type:e,selectors:[["app-user-settings-attributes"]],viewQuery:function(e,t){var s;1&e&&u.Qc(v,!0),2&e&&u.sc(s=u.ac())&&(t.list=s.first)},hostVars:2,hostBindings:function(e,t){2&e&&u.Eb("router-component",!0)},decls:20,vars:18,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(u.Sb(0,"h1",0),u.Jc(1),u.ec(2,"translate"),u.Rb(),u.Sb(3,"mat-tab-group"),u.Sb(4,"mat-tab",1),u.Hc(5,T,2,3,"ng-template",2),u.Sb(6,"perun-web-apps-refresh-button",3),u.Zb("refresh",(function(){return t.refreshTable()})),u.Rb(),u.Sb(7,"button",4),u.Zb("click",(function(){return t.onCreate()})),u.Jc(8),u.ec(9,"translate"),u.Rb(),u.Sb(10,"button",5),u.Zb("click",(function(){return t.onSave()})),u.Jc(11),u.ec(12,"translate"),u.Rb(),u.Sb(13,"button",6),u.Zb("click",(function(){return t.onDelete()})),u.Jc(14),u.ec(15,"translate"),u.Rb(),u.Sb(16,"perun-web-apps-immediate-filter",7),u.Zb("filter",(function(e){return t.applyFilter(e)})),u.Rb(),u.Hc(17,O,1,0,"mat-spinner",8),u.Hc(18,M,2,4,"perun-web-apps-attributes-list",9),u.Rb(),u.Hc(19,U,3,0,"mat-tab",10),u.Rb()),2&e&&(u.Ab(1),u.Kc(u.fc(2,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),u.Ab(7),u.Lc(" ",u.fc(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),u.Ab(2),u.kc("disabled",0===t.selection.selected.length),u.Ab(1),u.Lc(" ",u.fc(12,14,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),u.Ab(2),u.kc("disabled",0===t.selection.selected.length),u.Ab(1),u.Lc(" ",u.fc(15,16,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),u.Ab(2),u.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),u.Ab(1),u.kc("ngIf",t.loading),u.Ab(1),u.kc("ngIf",!t.loading),u.Ab(1),u.kc("ngIf",t.userFacilityAttAuth))},directives:[h.c,h.a,h.d,m.a,S.b,g.a,R.t,I.c,E.a,h.b,A.a],pipes:[f.d],styles:[""]}),e})()},QOlj:function(e,t,s){"use strict";s.d(t,"a",(function(){return T}));var i=s("X2Q7"),n=s("FlRo"),a=s("Ssnw"),r=s("nyAh"),c=s("8clQ"),o=s("+0js"),b=s("EM62"),l=s("sEIs"),u=s("OZ4H"),p=s("2kYt"),d=s("ZG5M"),f=s("Meci"),h=s("PBFl"),m=s("bFHC"),S=s("s2Ay");function g(e,t){1&e&&b.Nb(0,"th",12)}function R(e,t){if(1&e&&(b.Sb(0,"td",13),b.Jc(1),b.Rb()),2&e){const e=t.$implicit;b.Ab(1),b.Lc(" ",e.displayName,": ")}}function I(e,t){1&e&&b.Nb(0,"th",12)}function E(e,t){if(1&e){const e=b.Tb();b.Sb(0,"td",14),b.Jc(1),b.Sb(2,"button",15),b.Zb("click",(function(){return b.xc(e),b.dc(2).changeEmail()})),b.Sb(3,"mat-icon"),b.Jc(4,"edit"),b.Rb(),b.Rb(),b.Rb()}if(2&e){const e=t.$implicit;b.Ab(1),b.Lc(" ",e.value," ")}}function A(e,t){1&e&&b.Nb(0,"tr",16)}function v(e,t){if(1&e&&(b.Sb(0,"div",2),b.Sb(1,"mat-card",3),b.Sb(2,"mat-card-header"),b.Sb(3,"mat-card-title"),b.Sb(4,"h1",4),b.Jc(5),b.ec(6,"translate"),b.Rb(),b.Rb(),b.Rb(),b.Sb(7,"mat-card-content"),b.Sb(8,"table",5),b.Qb(9,6),b.Hc(10,g,1,0,"th",7),b.Hc(11,R,2,1,"td",8),b.Pb(),b.Qb(12,9),b.Hc(13,I,1,0,"th",7),b.Hc(14,E,5,1,"td",10),b.Pb(),b.Hc(15,A,1,0,"tr",11),b.Rb(),b.Rb(),b.Rb(),b.Rb()),2&e){const e=b.dc();b.Ab(5),b.Kc(b.fc(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),b.Ab(3),b.kc("dataSource",e.mailDataSource),b.Ab(7),b.kc("matRowDefColumns",e.displayedColumns)}}let T=(()=>{class e{constructor(e,t,s,i,n){this.userService=e,this.attributeService=t,this.storeService=s,this.route=i,this.dialog=n,this.navItems=[],this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(e=>{void 0!==e.userId?this.userService.getUserById(e.userId).subscribe(e=>{this.user=e,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,r.a.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.o([this.preferredMail]),this.initNavItems()}))})}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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"},{cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}changeEmail(){const e=Object(c.o)();e.width="350px",e.data={userId:this.userID},this.dialog.open(o.c,e).afterClosed().subscribe(e=>{e&&this.attributeService.getUserAttributeByName(this.userID,r.a.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.o([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:Object(c.t)(r.a.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}return e.\u0275fac=function(t){return new(t||e)(b.Mb(i.p),b.Mb(i.c),b.Mb(a.m),b.Mb(l.a),b.Mb(u.b))},e.\u0275cmp=b.Gb({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&b.Eb("router-component",!0)},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(e,t){1&e&&(b.Hc(0,v,16,5,"div",0),b.Nb(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(b.kc("ngIf",t.inMyProfile),b.Ab(1),b.kc("items",t.navItems)("size","small"))},directives:[p.t,d.a,f.a,f.f,f.m,f.d,n.n,n.c,n.i,n.b,n.m,n.h,n.a,h.b,m.a,n.l],pipes:[S.d],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e})()},S5du:function(e,t,s){"use strict";s.d(t,"a",(function(){return E}));var i=s("X2Q7"),n=s("Ssnw"),a=s("iyZ4"),r=s("EM62"),c=s("sEIs"),o=s("2kYt"),b=s("0XDM"),l=s("A8Ay"),u=s("csyo"),p=s("qySP"),d=s("s2Ay");function f(e,t){1&e&&(r.Sb(0,"h1",6),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&e&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function h(e,t){1&e&&(r.Sb(0,"h1",6),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&e&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function m(e,t){1&e&&r.Nb(0,"mat-spinner",7)}function S(e,t){if(1&e){const e=r.Tb();r.Sb(0,"perun-web-apps-vos-list",8),r.Zb("page",(function(t){return r.xc(e),r.dc().memberPageChanged(t)})),r.Rb()}if(2&e){const e=r.dc();r.kc("displayedColumns",e.displayedColumns)("pageSize",e.memberPageSize)("filterValue",e.memberFilterValue)("vos",e.vosWhereIsMember)}}function g(e,t){1&e&&r.Nb(0,"mat-spinner",7)}function R(e,t){if(1&e){const e=r.Tb();r.Sb(0,"perun-web-apps-vos-list",8),r.Zb("page",(function(t){return r.xc(e),r.dc(2).adminPageChanged(t)})),r.Rb()}if(2&e){const e=r.dc(2);r.kc("displayedColumns",e.displayedColumns)("pageSize",e.adminPageSize)("filterValue",e.adminFilterValue)("vos",e.vosWhereIsAdmin)}}function I(e,t){if(1&e){const e=r.Tb();r.Sb(0,"div",9),r.Sb(1,"h1",6),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Sb(4,"perun-web-apps-refresh-button",1),r.Zb("refresh",(function(){return r.xc(e),r.dc().refreshAdminTable()})),r.Rb(),r.Sb(5,"perun-web-apps-immediate-filter",2),r.Zb("filter",(function(t){return r.xc(e),r.dc().applyAdminFilter(t)})),r.Rb(),r.Hc(6,g,1,0,"mat-spinner",3),r.Hc(7,R,1,4,"perun-web-apps-vos-list",4),r.Rb()}if(2&e){const e=r.dc();r.Ab(2),r.Kc(r.fc(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),r.Ab(3),r.kc("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),r.Ab(1),r.kc("ngIf",e.adminRefresh),r.Ab(1),r.kc("ngIf",!e.adminRefresh)}}let E=(()=>{class e{constructor(e,t,s,i,n){this.usersService=e,this.authResolver=t,this.tableConfigService=s,this.store=i,this.route=n,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=a.db,this.memberTableId=a.eb}ngOnInit(){this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),this.memberPageSize=this.tableConfigService.getTablePageSize(this.memberTableId),!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vosWhereIsMember=e,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosWhereIsAdmin=e,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(e){this.memberFilterValue=e}adminPageChanged(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}memberPageChanged(e){this.memberPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.memberTableId,e.pageSize)}applyAdminFilter(e){this.adminFilterValue=e}}return e.\u0275fac=function(t){return new(t||e)(r.Mb(i.p),r.Mb(n.h),r.Mb(a.pb),r.Mb(n.m),r.Mb(c.a))},e.\u0275cmp=r.Gb({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Eb("router-component",!0)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","pageSize","filterValue","vos","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","pageSize","filterValue","vos","page"],[1,"mt-5"]],template:function(e,t){1&e&&(r.Hc(0,f,3,3,"h1",0),r.Hc(1,h,3,3,"h1",0),r.Sb(2,"perun-web-apps-refresh-button",1),r.Zb("refresh",(function(){return t.refreshMemberTable()})),r.Rb(),r.Sb(3,"perun-web-apps-immediate-filter",2),r.Zb("filter",(function(e){return t.applyMemberFilter(e)})),r.Rb(),r.Hc(4,m,1,0,"mat-spinner",3),r.Hc(5,S,1,4,"perun-web-apps-vos-list",4),r.Hc(6,I,8,6,"div",5)),2&e&&(r.kc("ngIf",t.isMyProfile),r.Ab(1),r.kc("ngIf",!t.isMyProfile),r.Ab(2),r.kc("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),r.Ab(1),r.kc("ngIf",t.memberRefresh),r.Ab(1),r.kc("ngIf",!t.memberRefresh),r.Ab(1),r.kc("ngIf",!t.isMyProfile))},directives:[o.t,b.a,l.a,u.c,p.a],pipes:[d.d],styles:[""]}),e})()},faZ6:function(e,t,s){"use strict";s.d(t,"a",(function(){return a}));var i=s("EM62"),n=s("ma6z");let a=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("router-component",!0)},decls:1,vars:0,template:function(e,t){1&e&&i.Nb(0,"app-animated-router-outlet")},directives:[n.a],styles:[""]}),e})()},m1kt:function(e,t,s){"use strict";s.d(t,"a",(function(){return u}));var i=s("X2Q7"),n=s("EM62"),a=s("sEIs"),r=s("2kYt"),c=s("csyo"),o=s("ZG5M");function b(e,t){1&e&&n.Nb(0,"mat-spinner",2)}function l(e,t){if(1&e&&(n.Sb(0,"div"),n.Nb(1,"perun-web-apps-menu-buttons-field",3),n.Rb()),2&e){const e=n.dc();n.Ab(1),n.kc("items",e.navItems)("size","small")}}let u=(()=>{class e{constructor(e,t){this.route=e,this.userManager=t,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.userManager.getUserById(e.userId).subscribe(e=>{this.isServiceUser=e.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")?this.navItems.push(this.isServiceUser?{cssIcon:"perun-service-identity",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-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return e.\u0275fac=function(t){return new(t||e)(n.Mb(a.a),n.Mb(i.p))},e.\u0275cmp=n.Gb({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&n.Eb("router-component",!0)},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,t){1&e&&(n.Hc(0,b,1,0,"mat-spinner",0),n.Hc(1,l,2,2,"div",1)),2&e&&(n.kc("ngIf",t.loading),n.Ab(1),n.kc("ngIf",!t.loading))},directives:[r.t,c.c,o.a],styles:[""]}),e})()},oXY0:function(e,t,s){"use strict";s.d(t,"a",(function(){return Fe}));var i=s("X2Q7"),n=s("Ssnw"),a=s("EM62"),r=s("sEIs"),c=s("2kYt"),o=s("csyo"),b=s("3Uyd"),l=s("bFHC"),u=s("Meci"),p=s("qySP"),d=s("NC8S"),f=s("K9kF"),h=s("23RZ"),m=s("w+DT"),S=s("nz2m"),g=s("s2Ay");function R(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function I(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function E(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function A(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.SELF_VOS")," "))}function v(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function T(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.SELF_IDENTITIES")," "))}const O=function(){return["user","id","name"]};function M(e,t){if(1&e&&(a.Sb(0,"div",11),a.Hc(1,v,3,3,"div",2),a.Hc(2,T,3,3,"div",2),a.Nb(3,"app-users-list",12),a.Rb()),2&e){const e=a.dc(4);a.Ab(1),a.kc("ngIf",!e.showDescription),a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("users",e.users)("disableRouting",!0)("displayedColumns",a.oc(5,O))}}const N=function(){return["id","name","shortName"]};function y(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,E,3,3,"div",2),a.Hc(2,A,3,3,"div",2),a.Nb(3,"perun-web-apps-vos-list",9),a.Hc(4,M,4,6,"div",10),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",!e.showDescription),a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("displayedColumns",a.oc(5,N))("vos",e.vos),a.Ab(1),a.kc("ngIf",e.users.length)}}function k(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getSelfData()})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",7),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,I,1,0,"mat-spinner",1),a.Hc(8,y,5,6,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.SELF")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function U(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function C(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}const P=function(){return["select","menu","expiration","recent"]};function L(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,C,3,3,"div",2),a.Nb(2,"perun-web-apps-groups-list",14),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("groups",e.groups)("hideColumns",a.oc(3,P))}}function w(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getAdminGroupsAndVos()})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",13),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,U,1,0,"mat-spinner",1),a.Hc(8,L,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.GROUPADMIN")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function D(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function H(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}const F=function(){return["select","menu","expiration"]};function V(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,H,3,3,"div",2),a.Nb(2,"perun-web-apps-groups-list",14),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("groups",e.groups)("hideColumns",a.oc(3,F))}}function _(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getGroupsAndVos("GROUPOBSERVER")})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",13),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,D,1,0,"mat-spinner",1),a.Hc(8,V,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.GROUPOBSERVER")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function x(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function G(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.VOADMIN_VOS")," "))}function z(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,G,3,3,"div",2),a.Nb(2,"perun-web-apps-vos-list",9),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("displayedColumns",a.oc(3,N))("vos",e.vos)}}function B(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getAdminVos()})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",15),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,x,1,0,"mat-spinner",1),a.Hc(8,z,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.VOADMIN")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function J(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function Z(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.VOOBSERVER_VOS")," "))}function Y(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,Z,3,3,"div",2),a.Nb(2,"perun-web-apps-vos-list",9),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("displayedColumns",a.oc(3,N))("vos",e.vos)}}function K(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){a.xc(e);const t=a.dc(2);return t.getVos(t.roles.get("VOOBSERVER").get("Vo"))})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",15),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,J,1,0,"mat-spinner",1),a.Hc(8,Y,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.VOOBSERVER")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function j(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function Q(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function W(e,t){if(1&e&&(a.Sb(0,"div"),a.Sb(1,"div"),a.Hc(2,Q,3,3,"div",2),a.Nb(3,"perun-web-apps-vos-list",9),a.Rb(),a.Rb()),2&e){const e=a.dc(3);a.Ab(2),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("displayedColumns",a.oc(3,N))("vos",e.vos)}}function X(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){a.xc(e);const t=a.dc(2);return t.getVos(t.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",15),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,j,1,0,"mat-spinner",1),a.Hc(8,W,4,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.TRUSTEDFACILITYADMIN")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function q(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function $(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ee(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,$,3,3,"div",2),a.Nb(2,"perun-web-apps-vos-list",9),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("displayedColumns",a.oc(3,N))("vos",e.vos)}}function te(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){a.xc(e);const t=a.dc(2);return t.getVos(t.roles.get("TOPGROUPCREATOR").get("Vo"))})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",15),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,q,1,0,"mat-spinner",1),a.Hc(8,ee,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.TOPGROUPCREATOR")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function se(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function ie(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}const ne=function(){return["id","name","vo","facility","description"]};function ae(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,ie,3,3,"div",2),a.Nb(2,"perun-web-apps-resources-list",17),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("resources",e.resources)("routingVo",!0)("displayedColumns",a.oc(4,ne))}}function re(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getResourcesData("RESOURCEADMIN")})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",16),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,se,1,0,"mat-spinner",1),a.Hc(8,ae,3,5,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.RESOURCEADMIN")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function ce(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function oe(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function be(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,oe,3,3,"div",2),a.Nb(2,"perun-web-apps-resources-list",17),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("resources",e.resources)("routingVo",!0)("displayedColumns",a.oc(4,ne))}}function le(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getResourcesData("RESOURCEOBSERVER")})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",16),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,ce,1,0,"mat-spinner",1),a.Hc(8,be,3,5,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.RESOURCEOBSERVER")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function ue(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function pe(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function de(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,pe,3,3,"div",2),a.Nb(2,"perun-web-apps-resources-list",17),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("resources",e.resources)("routingVo",!0)("displayedColumns",a.oc(4,ne))}}function fe(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getResourcesData("RESOURCESELFSERVICE")})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",16),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,ue,1,0,"mat-spinner",1),a.Hc(8,de,3,5,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.RESOURCESELFSERVICE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function he(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function me(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}const Se=function(){return["id","name","description"]};function ge(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,me,3,3,"div",2),a.Nb(2,"perun-web-apps-facilities-list",19),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("displayedColumns",a.oc(3,Se))("facilities",e.facilities)}}function Re(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getAdminFacilities()})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",18),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,he,1,0,"mat-spinner",1),a.Hc(8,ge,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.FACILITYADMIN")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function Ie(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function Ee(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function Ae(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,Ee,3,3,"div",2),a.Nb(2,"perun-web-apps-facilities-list",19),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("displayedColumns",a.oc(3,Se))("facilities",e.facilities)}}function ve(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getFacilities("FACILITYOBSERVER")})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",18),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,Ie,1,0,"mat-spinner",1),a.Hc(8,Ae,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.FACILITYOBSERVER")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function Te(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function Oe(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}const Me=function(){return["checkbox","email","logins","status","groupStatus","organization","type"]};function Ne(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,Oe,3,3,"div",2),a.Nb(2,"perun-web-apps-members-list",20),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("members",e.members)("hideColumns",a.oc(3,Me))}}function ye(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){return a.xc(e),a.dc(2).getMembers()})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",7),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,Te,1,0,"mat-spinner",1),a.Hc(8,Ne,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.SPONSORSHIP")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function ke(e,t){1&e&&a.Nb(0,"mat-spinner",3)}function Ue(e,t){1&e&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&e&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"ROLES.SPONSOR_VOS")," "))}function Ce(e,t){if(1&e&&(a.Sb(0,"div"),a.Hc(1,Ue,3,3,"div",2),a.Nb(2,"perun-web-apps-vos-list",9),a.Rb()),2&e){const e=a.dc(3);a.Ab(1),a.kc("ngIf",e.showDescription),a.Ab(1),a.kc("displayedColumns",a.oc(3,N))("vos",e.vos)}}function Pe(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){a.xc(e);const t=a.dc(2);return t.getVos(t.roles.get("SPONSOR").get("Vo"))})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",7),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(7,ke,1,0,"mat-spinner",1),a.Hc(8,Ce,3,4,"div",2),a.Rb()}if(2&e){const e=a.dc(2);a.Ab(5),a.Kc(a.fc(6,3,"ROLES.SPONSOR")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading)}}function Le(e,t){1&e&&(a.Sb(0,"mat-expansion-panel"),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",7),a.Sb(4,"p",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb()),2&e&&(a.Ab(5),a.Kc(a.fc(6,1,"ROLES.PERUN_ADMIN")))}function we(e,t){if(1&e&&(a.Sb(0,"p",22),a.Jc(1),a.Rb()),2&e){const e=t.$implicit;a.Ab(1),a.Mc("",e[0]," ids: ",e[1],"")}}function De(e,t){if(1&e){const e=a.Tb();a.Sb(0,"mat-expansion-panel",6),a.Zb("opened",(function(){a.xc(e);const s=t.$implicit;return a.dc(2).getInnerKeys(s)})),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"mat-icon",7),a.Sb(4,"p",8),a.Jc(5),a.Rb(),a.Rb(),a.Rb(),a.Hc(6,we,2,2,"p",21),a.Rb()}if(2&e){const e=t.$implicit,s=a.dc(2);a.Ab(5),a.Kc(e),a.Ab(1),a.kc("ngForOf",s.currentIds)}}function He(e,t){if(1&e&&(a.Sb(0,"mat-accordion"),a.Hc(1,k,9,5,"mat-expansion-panel",4),a.Hc(2,w,9,5,"mat-expansion-panel",4),a.Hc(3,_,9,5,"mat-expansion-panel",4),a.Hc(4,B,9,5,"mat-expansion-panel",4),a.Hc(5,K,9,5,"mat-expansion-panel",4),a.Hc(6,X,9,5,"mat-expansion-panel",4),a.Hc(7,te,9,5,"mat-expansion-panel",4),a.Hc(8,re,9,5,"mat-expansion-panel",4),a.Hc(9,le,9,5,"mat-expansion-panel",4),a.Hc(10,fe,9,5,"mat-expansion-panel",4),a.Hc(11,Re,9,5,"mat-expansion-panel",4),a.Hc(12,ve,9,5,"mat-expansion-panel",4),a.Hc(13,ye,9,5,"mat-expansion-panel",4),a.Hc(14,Pe,9,5,"mat-expansion-panel",4),a.Hc(15,Le,7,3,"mat-expansion-panel",2),a.Hc(16,De,7,2,"mat-expansion-panel",5),a.Rb()),2&e){const e=a.dc();a.Ab(1),a.kc("ngIf",e.isSelf),a.Ab(1),a.kc("ngIf",e.isGroupAdmin),a.Ab(1),a.kc("ngIf",e.isGroupObserver),a.Ab(1),a.kc("ngIf",e.isVoAdmin),a.Ab(1),a.kc("ngIf",e.isVoObserver),a.Ab(1),a.kc("ngIf",e.isTrustedFacilityAdmin),a.Ab(1),a.kc("ngIf",e.isTopGroupCreator),a.Ab(1),a.kc("ngIf",e.isResourceAdmin),a.Ab(1),a.kc("ngIf",e.isResourceObserver),a.Ab(1),a.kc("ngIf",e.isResourceSelfService),a.Ab(1),a.kc("ngIf",e.isFacilityAdmin),a.Ab(1),a.kc("ngIf",e.isFacilityObserver),a.Ab(1),a.kc("ngIf",e.hasSponsorship),a.Ab(1),a.kc("ngIf",e.isSponsor),a.Ab(1),a.kc("ngIf",e.isPerunAdmin),a.Ab(1),a.kc("ngForOf",e.roleNames)}}let Fe=(()=>{class e{constructor(e,t,s,i,n,a,r,c,o){this.authzResolverService=e,this.usersManagerService=t,this.vosManagerService=s,this.facilitiesManagerService=i,this.resourcesManagerService=n,this.membersManagerService=a,this.groupsManagerService=r,this.route=c,this.store=o,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(e=>{e.userId?(this.userId=e.userId,this.authzResolverService.getUserRoleNames(this.userId).subscribe(e=>{this.roleNames=e.map(e=>e.toUpperCase()),this.authzResolverService.getUserRoles(this.userId).subscribe(e=>{this.prepareRoles(e)})})):(this.showDescription=!0,this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.userId,this.roleNames=Object.keys(this.principal.roles),this.prepareRoles(this.principal.roles))})}prepareRoles(e){this.roleNames.forEach(t=>{const s=new Map;switch(Object.keys(e[t]).forEach(i=>{s.set(i,e[t][i])}),t){case"SELF":this.isSelf=!0;break;case"GROUPADMIN":this.isGroupAdmin=!0;break;case"VOADMIN":this.isVoAdmin=!0;break;case"RESOURCEADMIN":this.isResourceAdmin=!0;break;case"FACILITYADMIN":this.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":this.isTopGroupCreator=!0;break;case"SPONSORSHIP":this.hasSponsorship=!0;break;case"SPONSOR":this.isSponsor=!0;break;case"RESOURCESELFSERVICE":this.isResourceSelfService=!0;break;case"VOOBSERVER":this.isVoObserver=!0;break;case"RESOURCEOBSERVER":this.isResourceObserver=!0;break;case"GROUPOBSERVER":this.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":this.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":this.isFacilityObserver=!0;break;case"PERUNADMIN":this.isPerunAdmin=!0}this.roles.set(t,s)}),this.roleNames=this.roleNames.filter(e=>!this.roleFilter.includes(e)),this.outerLoading=!1}getAdminGroupsAndVos(){this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.groups=e;const t=[...new Set(this.groups.map(e=>e.voId))];this.getVos(t)})}getVos(e){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(e=>{this.vos=e,this.loading=!1})}getInnerKeys(e){if(this.roles.get(e)){const t=this.roles.get(e).entries(),s=[];let i=t.next().value;for(;i;)s.push(i),i=t.next().value;this.currentIds=s}else this.currentIds=[]}getAdminVos(){this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vos=e,this.loading=!1})}getAdminFacilities(){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}getSelfData(){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;const t=this.roles.get("SELF").get("User");t?this.usersManagerService.getUsersByIds(t).subscribe(e=>{this.users=e,this.loading=!1}):this.loading=!1})}getResourcesData(e){this.loading=!0;const t=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(t).subscribe(e=>{this.resources=e,this.vos=this.resources.map(e=>e.vo).filter((e,t,s)=>s.indexOf(e)===t),this.facilities=this.resources.map(e=>({facility:e.facility})).filter((e,t,s)=>s.indexOf(e)===t),this.loading=!1})}getMembers(){this.loading=!0;const e=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(e).subscribe(e=>{this.members=e,this.loading=!1})}getGroupsAndVos(e){this.loading=!0;const t=this.roles.get(e).get("Vo"),s=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(s).subscribe(e=>{this.groups=e,this.vosManagerService.getVosByIds(t).subscribe(e=>{this.vos=e,this.loading=!1})})}getFacilities(e){this.loading=!0,this.facilities=[];const t=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(t).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}}return e.\u0275fac=function(t){return new(t||e)(a.Mb(i.d),a.Mb(i.p),a.Mb(i.q),a.Mb(i.g),a.Mb(i.m),a.Mb(i.i),a.Mb(i.h),a.Mb(r.a),a.Mb(n.m))},e.\u0275cmp=a.Gb({type:e,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,t){2&e&&a.Eb("router-component",!0)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened",4,"ngIf"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],[3,"displayedColumns","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","hideColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","hideColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,t){1&e&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Hc(3,R,1,0,"mat-spinner",1),a.Hc(4,He,17,16,"mat-accordion",2)),2&e&&(a.Ab(1),a.Kc(a.fc(2,3,"ROLES.TITLE")),a.Ab(2),a.kc("ngIf",t.outerLoading),a.Ab(1),a.kc("ngIf",!t.outerLoading))},directives:[c.t,o.c,b.a,c.s,b.c,b.g,b.h,l.a,u.c,p.a,d.a,f.a,h.a,m.a,S.a],pipes:[g.d],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e})()},zrcO:function(e,t,s){"use strict";s.r(t),s.d(t,"UsersModule",(function(){return pe}));var i=s("2kYt"),n=s("sEIs"),a=s("S5du"),r=s("BAI5"),c=s("faZ6"),o=s("m1kt"),b=s("Q/gj"),l=s("ECIY"),u=s("HHEo"),p=s("8clQ"),d=s("iyZ4"),f=s("EM62"),h=s("29Wa"),m=s("R7+U"),S=s("mFH5"),g=s("s2Ay");function R(e,t){if(1&e&&(f.Sb(0,"mat-option",5),f.Jc(1),f.Rb()),2&e){const e=t.$implicit;f.kc("value",e),f.Ab(1),f.Lc(" ",e," ")}}let I=(()=>{class e{constructor(e){this.guiConfigService=e,this.tablePageSizeOptions=p.a}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(d.c)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(d.c,this.preferredTablePageSize)}}return e.\u0275fac=function(t){return new(t||e)(f.Mb(d.b))},e.\u0275cmp=f.Gb({type:e,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(e,t){1&e&&(f.Sb(0,"h1",0),f.Jc(1),f.ec(2,"translate"),f.Rb(),f.Sb(3,"div",1),f.Sb(4,"mat-form-field",2),f.Sb(5,"mat-label"),f.Jc(6),f.ec(7,"translate"),f.Rb(),f.Sb(8,"mat-select",3),f.Zb("valueChange",(function(e){return t.preferredTablePageSize=e}))("valueChange",(function(){return t.updatePreferredTablePageSize()})),f.Hc(9,R,2,2,"mat-option",4),f.Rb(),f.Rb(),f.Rb()),2&e&&(f.Ab(1),f.Kc(f.fc(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),f.Ab(5),f.Kc(f.fc(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),f.Ab(2),f.kc("value",t.preferredTablePageSize),f.Ab(1),f.kc("ngForOf",t.tablePageSizeOptions))},directives:[h.c,h.g,m.a,i.s,S.n],pipes:[g.d],styles:[""]}),e})();var E=s("QOlj"),A=s("4sdY"),v=s("Ssnw"),T=s("EtYo"),O=s("bFHC"),M=s("Y2X+"),N=s("ma6z"),y=s("j+u3");const k=function(){return{color:"black"}},U=function(){return["/myProfile"]};function C(e,t){if(1&e&&(f.Sb(0,"div",1),f.Nb(1,"perun-web-apps-back-button"),f.Sb(2,"div",2),f.Nb(3,"mat-icon",3),f.ec(4,"translate"),f.Sb(5,"div",4),f.Sb(6,"div",5),f.Sb(7,"a",6),f.Jc(8),f.ec(9,"userFullName"),f.Rb(),f.Sb(10,"span",7),f.Jc(11),f.Rb(),f.Rb(),f.Sb(12,"span",8),f.Jc(13),f.ec(14,"translate"),f.ec(15,"translate"),f.Rb(),f.Rb(),f.Rb(),f.Nb(16,"app-animated-router-outlet"),f.Rb()),2&e){const e=f.dc();f.Ab(3),f.lc("matTooltip",f.fc(4,8,"MENU_ITEMS.USER.ENTITY")),f.kc("ngStyle",f.oc(16,k)),f.Ab(4),f.kc("routerLink",f.oc(17,U)),f.Ab(1),f.Lc(" ",f.fc(9,10,e.user)," "),f.Ab(3),f.Lc(" \xa0#",e.user.id," "),f.Ab(2),f.Nc(" ",f.fc(14,12,"MENU_ITEMS.USER.ENTITY"),", ",f.fc(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",e.getUserType()," ")}}let P=(()=>{class e{constructor(e,t,s){this.sideMenuService=e,this.store=t,this.router=s}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(e=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return e.\u0275fac=function(t){return new(t||e)(f.Mb(A.a),f.Mb(v.m),f.Mb(n.f))},e.\u0275cmp=f.Gb({type:e,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,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(e,t){1&e&&f.Hc(0,C,17,18,"div",0),2&e&&f.kc("ngIf",void 0!==t.user)},directives:[i.t,T.a,O.a,M.a,i.w,n.i,N.a],pipes:[g.d,y.a],styles:[""]}),e})();var L=s("oXY0");const w=[{path:"",component:P,children:[{path:"",component:E.a,data:{animation:"UserOverviewPage"}},{path:"attributes",component:b.a,data:{animation:"UserAttributesPage"}},{path:"organizations",component:a.a,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:r.a,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:L.a,data:{animation:"UserRolesPage"}},{path:"settings",component:c.a,children:[{path:"",component:o.a,data:{animation:"UserSettingsOverviewPage"}},{path:"facilityAttributes",component:l.a,data:{animation:"UserSettingsFacilityAttributesPage",showPrincipal:!0}},{path:"passwordReset",component:u.c,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:I,data:{animation:"UserAppConfigurationPage"}}]}]}];let D=(()=>{class e{}return e.\u0275mod=f.Kb({type:e}),e.\u0275inj=f.Jb({factory:function(t){return new(t||e)},imports:[[n.j.forChild(w)],n.j]}),e})();var H=s("ulve"),F=s("Cd2c"),V=s("nIj0"),_=s("lQ7A"),x=s("3Uyd"),G=s("PBFl"),z=s("cePI"),B=s("FlRo"),J=s("KZIX"),Z=s("QcI7"),Y=s("+Tre"),K=s("OZ4H"),j=s("W1gw"),Q=s("csyo"),W=s("66mq"),X=s("k8N0"),q=s("gcUQ"),$=s("F1o0"),ee=s("zmEM"),te=s("iAde"),se=s("Meci"),ie=s("x9Az"),ne=s("oqI+"),ae=s("S17y"),re=s("Jb3d"),ce=s("qvOF"),oe=s("KoHB"),be=s("f3iV"),le=s("t47Z"),ue=s("PCNd");let pe=(()=>{class e{constructor(e){this.translate=e,e.addLangs(["en","cs"])}}return e.\u0275mod=f.Kb({type:e}),e.\u0275inj=f.Jb({factory:function(t){return new(t||e)(f.Wb(g.e))},imports:[[i.c,D,H.b,F.c,h.e,V.B,V.l,O.b,_.g,x.b,g.c.forChild({}),G.c,z.c,B.p,J.g,Z.e,G.c,Y.b,K.h,m.b,j.b,Q.b,W.b,M.b,X.b,q.g,S.l,$.c,ee.b,S.t,te.b,se.j,ie.g,ne.g,se.j,ae.g,re.c,ce.g,oe.a,be.b,u.d,d.a,le.b,ue.a]]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/1-es5.32acfdf32218182500f8.js b/dist/apps/admin-gui/1-es5.32acfdf32218182500f8.js new file mode 100644 index 000000000..f79b04897 --- /dev/null +++ b/dist/apps/admin-gui/1-es5.32acfdf32218182500f8.js @@ -0,0 +1 @@ +!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,o=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return c=e.done,e},e:function(e){o=!0,r=e},f:function(){try{c||null==i.return||i.return()}finally{if(o)throw r}}}}(e.vos);try{var a=function(){var t=i.value;e.memberService.getMemberByUser(t.id,e.userId).subscribe((function(n){e.groupService.getMemberGroups(n.id).subscribe((function(n){e.membersGroups=e.membersGroups.concat(n),e.vos.indexOf(t)===e.vos.length-1&&(e.memberRefresh=!1)}))}))};for(s.s();!(i=s.n()).done;)a()}catch(r){s.e(r)}finally{s.f()}0===n.length&&(e.memberRefresh=!1)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(b.Mb(c.p),b.Mb(c.i),b.Mb(o.pb),b.Mb(c.h),b.Mb(r.m),b.Mb(u.a))},e.\u0275cmp=b.Gb({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,t){2&e&&b.Eb("router-component",!0)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","hideColumns","disableMembers","filter","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","hideColumns","disableMembers","filter","page"],[1,"mt-5"]],template:function(e,t){1&e&&(b.Hc(0,g,3,3,"h1",0),b.Hc(1,h,3,3,"h1",0),b.Sb(2,"perun-web-apps-refresh-button",1),b.Zb("refresh",(function(){return t.refreshMemberTable()})),b.Rb(),b.Sb(3,"perun-web-apps-immediate-filter",2),b.Zb("filter",(function(e){return t.memberFilter(e)})),b.Rb(),b.Hc(4,v,1,0,"mat-spinner",3),b.Hc(5,R,1,6,"perun-web-apps-groups-list",4),b.Hc(6,y,8,6,"div",5)),2&e&&(b.kc("ngIf",t.showPrincipal),b.Ab(1),b.kc("ngIf",!t.showPrincipal),b.Ab(2),b.kc("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),b.Ab(1),b.kc("ngIf",t.memberRefresh),b.Ab(1),b.kc("ngIf",!t.memberRefresh),b.Ab(1),b.kc("ngIf",!t.showPrincipal))},directives:[l.t,f.a,p.a,d.c,m.a],pipes:[S.d],styles:[""]}),e}()},ECIY:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var s=n("X2Q7"),r=n("Ssnw"),c=n("EM62"),o=n("sEIs"),b=n("2kYt"),u=n("bdug"),l=n("csyo"),f=n("s2Ay");function p(e,t){if(1&e&&c.Nb(0,"app-two-entity-attribute-page",3),2&e){var n=c.dc();c.kc("entityValues",n.facilities)("firstEntity","user")("firstEntityId",n.userId)("secondEntity","facility")}}function d(e,t){1&e&&c.Nb(0,"mat-spinner",4)}var m=function(){var e=function(){function e(t,n,s,a){i(this,e),this.route=t,this.storage=n,this.facilitiesManagerService=s,this.store=a,this.facilities=[]}return a(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.parent.params.subscribe((function(t){return e.userId=t.userId})),this.facilitiesManagerService.getAssignedFacilitiesByUser(this.userId).subscribe((function(t){e.facilities=t,e.loading=!1}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Mb(o.a),c.Mb(r.m),c.Mb(s.g),c.Mb(r.m))},e.\u0275cmp=c.Gb({type:e,selectors:[["app-user-settings-facility-attributes"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityValues","firstEntity","firstEntityId","secondEntity",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"entityValues","firstEntity","firstEntityId","secondEntity"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Hc(3,p,1,4,"app-two-entity-attribute-page",1),c.Hc(4,d,1,0,"mat-spinner",2)),2&e&&(c.Ab(1),c.Kc(c.fc(2,3,"USER_DETAIL.SETTINGS.FACILITY_ATTRIBUTES.TITLE")),c.Ab(2),c.kc("ngIf",!t.loading),c.Ab(1),c.kc("ngIf",t.loading))},directives:[b.t,u.a,l.c],pipes:[f.d],styles:[""]}),e}()},"Q/gj":function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var s=n("Ssnw"),r=(n("HHEo"),n("cqs0")),c=n("8clQ"),o=n("mEf3"),b=n("X2Q7"),u=n("iyZ4"),l=n("+0js"),f=n("IDQ9"),p=n("EM62"),d=n("sEIs"),m=n("OZ4H"),S=n("s2Ay"),g=n("KZIX"),h=n("0XDM"),v=n("PBFl"),I=n("A8Ay"),R=n("2kYt"),E=n("csyo"),A=n("LKLE"),y=n("bdug"),T=["list"];function k(e,t){1&e&&(p.Jc(0),p.ec(1,"translate")),2&e&&p.Lc(" ",p.fc(1,1,"ADMIN_USER.ENTITY")," ")}function O(e,t){1&e&&p.Nb(0,"mat-spinner",11)}function M(e,t){if(1&e){var n=p.Tb();p.Sb(0,"perun-web-apps-attributes-list",12,13),p.Zb("page",(function(e){return p.xc(n),p.dc().pageChanged(e)})),p.Rb()}if(2&e){var i=p.dc();p.kc("pageSize",i.pageSize)("filterValue",i.filterValue)("attributes",i.attributes)("selection",i.selection)}}function N(e,t){1&e&&(p.Jc(0),p.ec(1,"translate"),p.ec(2,"translate")),2&e&&p.Mc(" ",p.fc(1,2,"ADMIN_USER.ENTITY")," - ",p.fc(2,4,"FACILITY_DETAIL.ENTITY")," ")}function U(e,t){if(1&e&&p.Nb(0,"app-two-entity-attribute-page",16),2&e){var n=p.dc(3);p.kc("firstEntity","user")("firstEntityId",n.userId)("secondEntity","facility")}}function C(e,t){if(1&e&&p.Hc(0,U,1,3,"app-two-entity-attribute-page",15),2&e){var n=p.dc(2);p.kc("ngIf",!n.loading)}}function P(e,t){1&e&&(p.Sb(0,"mat-tab"),p.Hc(1,N,3,6,"ng-template",2),p.Hc(2,C,1,1,"ng-template",14),p.Rb())}var w=function(){var e=function(){function e(t,n,s,a,c,o,b,l){var f=this;i(this,e),this.route=t,this.attributesManager=n,this.notificator=s,this.dialog=a,this.translate=c,this.tableConfigService=o,this.store=b,this.authResolver=l,this.selection=new r.c(!0,[]),this.attributes=[],this.filterValue="",this.tableId=u.r,this.translate.get("USER_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe((function(e){return f.saveSuccessMessage=e})),this.translate.get("USER_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe((function(e){return f.deleteSuccessMessage=e}))}return a(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(t){e.userId=t.userId,void 0===e.userId&&(e.userId=e.store.getPerunPrincipal().userId),e.userFacilityAttAuth=e.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:e.userId,beanName:"User"}]),e.refreshTable()}))}},{key:"onCreate",value:function(){var e=this,t=Object(c.o)();t.width="1050px",t.data={entityId:this.userId,entity:"user",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(f.a,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"onSave",value:function(){var e=this;this.list.updateMapAttributes();var t=Object(c.o)();t.width="450px",t.data={entityId:this.userId,entity:"user",attributes:this.selection.selected},this.dialog.open(l.f,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"onDelete",value:function(){var e=this,t=Object(c.o)();t.width="450px",t.data={entityId:this.userId,entity:"user",attributes:this.selection.selected},this.dialog.open(o.a,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.attributesManager.getUserAttributes(this.userId).subscribe((function(t){e.attributes=t,e.selection.clear(),e.loading=!1}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Mb(d.a),p.Mb(b.c),p.Mb(s.l),p.Mb(m.b),p.Mb(S.e),p.Mb(u.pb),p.Mb(s.m),p.Mb(s.h))},e.\u0275cmp=p.Gb({type:e,selectors:[["app-user-settings-attributes"]],viewQuery:function(e,t){var n;1&e&&p.Qc(T,!0),2&e&&p.sc(n=p.ac())&&(t.list=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&p.Eb("router-component",!0)},decls:20,vars:18,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(p.Sb(0,"h1",0),p.Jc(1),p.ec(2,"translate"),p.Rb(),p.Sb(3,"mat-tab-group"),p.Sb(4,"mat-tab",1),p.Hc(5,k,2,3,"ng-template",2),p.Sb(6,"perun-web-apps-refresh-button",3),p.Zb("refresh",(function(){return t.refreshTable()})),p.Rb(),p.Sb(7,"button",4),p.Zb("click",(function(){return t.onCreate()})),p.Jc(8),p.ec(9,"translate"),p.Rb(),p.Sb(10,"button",5),p.Zb("click",(function(){return t.onSave()})),p.Jc(11),p.ec(12,"translate"),p.Rb(),p.Sb(13,"button",6),p.Zb("click",(function(){return t.onDelete()})),p.Jc(14),p.ec(15,"translate"),p.Rb(),p.Sb(16,"perun-web-apps-immediate-filter",7),p.Zb("filter",(function(e){return t.applyFilter(e)})),p.Rb(),p.Hc(17,O,1,0,"mat-spinner",8),p.Hc(18,M,2,4,"perun-web-apps-attributes-list",9),p.Rb(),p.Hc(19,P,3,0,"mat-tab",10),p.Rb()),2&e&&(p.Ab(1),p.Kc(p.fc(2,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),p.Ab(7),p.Lc(" ",p.fc(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),p.Ab(2),p.kc("disabled",0===t.selection.selected.length),p.Ab(1),p.Lc(" ",p.fc(12,14,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),p.Ab(2),p.kc("disabled",0===t.selection.selected.length),p.Ab(1),p.Lc(" ",p.fc(15,16,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),p.Ab(2),p.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),p.Ab(1),p.kc("ngIf",t.loading),p.Ab(1),p.kc("ngIf",!t.loading),p.Ab(1),p.kc("ngIf",t.userFacilityAttAuth))},directives:[g.c,g.a,g.d,h.a,v.b,I.a,R.t,E.c,A.a,g.b,y.a],pipes:[S.d],styles:[""]}),e}()},QOlj:function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var s=n("X2Q7"),r=n("FlRo"),c=n("Ssnw"),o=n("nyAh"),b=n("8clQ"),u=n("+0js"),l=n("EM62"),f=n("sEIs"),p=n("OZ4H"),d=n("2kYt"),m=n("ZG5M"),S=n("Meci"),g=n("PBFl"),h=n("bFHC"),v=n("s2Ay");function I(e,t){1&e&&l.Nb(0,"th",12)}function R(e,t){if(1&e&&(l.Sb(0,"td",13),l.Jc(1),l.Rb()),2&e){var n=t.$implicit;l.Ab(1),l.Lc(" ",n.displayName,": ")}}function E(e,t){1&e&&l.Nb(0,"th",12)}function A(e,t){if(1&e){var n=l.Tb();l.Sb(0,"td",14),l.Jc(1),l.Sb(2,"button",15),l.Zb("click",(function(){return l.xc(n),l.dc(2).changeEmail()})),l.Sb(3,"mat-icon"),l.Jc(4,"edit"),l.Rb(),l.Rb(),l.Rb()}if(2&e){var i=t.$implicit;l.Ab(1),l.Lc(" ",i.value," ")}}function y(e,t){1&e&&l.Nb(0,"tr",16)}function T(e,t){if(1&e&&(l.Sb(0,"div",2),l.Sb(1,"mat-card",3),l.Sb(2,"mat-card-header"),l.Sb(3,"mat-card-title"),l.Sb(4,"h1",4),l.Jc(5),l.ec(6,"translate"),l.Rb(),l.Rb(),l.Rb(),l.Sb(7,"mat-card-content"),l.Sb(8,"table",5),l.Qb(9,6),l.Hc(10,I,1,0,"th",7),l.Hc(11,R,2,1,"td",8),l.Pb(),l.Qb(12,9),l.Hc(13,E,1,0,"th",7),l.Hc(14,A,5,1,"td",10),l.Pb(),l.Hc(15,y,1,0,"tr",11),l.Rb(),l.Rb(),l.Rb(),l.Rb()),2&e){var n=l.dc();l.Ab(5),l.Kc(l.fc(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),l.Ab(3),l.kc("dataSource",n.mailDataSource),l.Ab(7),l.kc("matRowDefColumns",n.displayedColumns)}}var k=function(){var e=function(){function e(t,n,s,a,r){i(this,e),this.userService=t,this.attributeService=n,this.storeService=s,this.route=a,this.dialog=r,this.navItems=[],this.displayedColumns=["name","value"],this.inMyProfile=!1}return a(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe((function(t){void 0!==t.userId?e.userService.getUserById(t.userId).subscribe((function(t){e.user=t,e.initNavItems()})):(e.inMyProfile=!0,e.userID=e.storeService.getPerunPrincipal().user.id,e.attributeService.getUserAttributeByName(e.userID,o.a.USER_DEF_PREFERRED_MAIL).subscribe((function(t){e.preferredMail=t,e.handleMailNotDefined(),e.mailDataSource=new r.o([e.preferredMail]),e.initNavItems()})))}))}},{key:"initNavItems",value:function(){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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"},{cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}},{key:"changeEmail",value:function(){var e=this,t=Object(b.o)();t.width="350px",t.data={userId:this.userID},this.dialog.open(u.c,t).afterClosed().subscribe((function(t){t&&e.attributeService.getUserAttributeByName(e.userID,o.a.USER_DEF_PREFERRED_MAIL).subscribe((function(t){e.preferredMail=t,e.handleMailNotDefined(),e.mailDataSource=new r.o([e.preferredMail])}))}))}},{key:"handleMailNotDefined",value:function(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:Object(b.t)(o.a.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Mb(s.p),l.Mb(s.c),l.Mb(c.m),l.Mb(f.a),l.Mb(p.b))},e.\u0275cmp=l.Gb({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&l.Eb("router-component",!0)},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(e,t){1&e&&(l.Hc(0,T,16,5,"div",0),l.Nb(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(l.kc("ngIf",t.inMyProfile),l.Ab(1),l.kc("items",t.navItems)("size","small"))},directives:[d.t,m.a,S.a,S.f,S.m,S.d,r.n,r.c,r.i,r.b,r.m,r.h,r.a,g.b,h.a,r.l],pipes:[v.d],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e}()},S5du:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var s=n("X2Q7"),r=n("Ssnw"),c=n("iyZ4"),o=n("EM62"),b=n("sEIs"),u=n("2kYt"),l=n("0XDM"),f=n("A8Ay"),p=n("csyo"),d=n("qySP"),m=n("s2Ay");function S(e,t){1&e&&(o.Sb(0,"h1",6),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function g(e,t){1&e&&(o.Sb(0,"h1",6),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function h(e,t){1&e&&o.Nb(0,"mat-spinner",7)}function v(e,t){if(1&e){var n=o.Tb();o.Sb(0,"perun-web-apps-vos-list",8),o.Zb("page",(function(e){return o.xc(n),o.dc().memberPageChanged(e)})),o.Rb()}if(2&e){var i=o.dc();o.kc("displayedColumns",i.displayedColumns)("pageSize",i.memberPageSize)("filterValue",i.memberFilterValue)("vos",i.vosWhereIsMember)}}function I(e,t){1&e&&o.Nb(0,"mat-spinner",7)}function R(e,t){if(1&e){var n=o.Tb();o.Sb(0,"perun-web-apps-vos-list",8),o.Zb("page",(function(e){return o.xc(n),o.dc(2).adminPageChanged(e)})),o.Rb()}if(2&e){var i=o.dc(2);o.kc("displayedColumns",i.displayedColumns)("pageSize",i.adminPageSize)("filterValue",i.adminFilterValue)("vos",i.vosWhereIsAdmin)}}function E(e,t){if(1&e){var n=o.Tb();o.Sb(0,"div",9),o.Sb(1,"h1",6),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Sb(4,"perun-web-apps-refresh-button",1),o.Zb("refresh",(function(){return o.xc(n),o.dc().refreshAdminTable()})),o.Rb(),o.Sb(5,"perun-web-apps-immediate-filter",2),o.Zb("filter",(function(e){return o.xc(n),o.dc().applyAdminFilter(e)})),o.Rb(),o.Hc(6,I,1,0,"mat-spinner",3),o.Hc(7,R,1,4,"perun-web-apps-vos-list",4),o.Rb()}if(2&e){var i=o.dc();o.Ab(2),o.Kc(o.fc(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),o.Ab(3),o.kc("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),o.Ab(1),o.kc("ngIf",i.adminRefresh),o.Ab(1),o.kc("ngIf",!i.adminRefresh)}}var A=function(){var e=function(){function e(t,n,s,a,r){i(this,e),this.usersService=t,this.authResolver=n,this.tableConfigService=s,this.store=a,this.route=r,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=c.db,this.memberTableId=c.eb}return a(e,[{key:"ngOnInit",value:function(){var e=this;this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),this.memberPageSize=this.tableConfigService.getTablePageSize(this.memberTableId),!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe((function(t){return e.userId=t.userId})),this.refreshAdminTable(),this.refreshMemberTable()}},{key:"refreshMemberTable",value:function(){var e=this;this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe((function(t){e.vosWhereIsMember=t,e.memberRefresh=!1}),(function(){return e.memberRefresh=!1}))}},{key:"refreshAdminTable",value:function(){var e=this;this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe((function(t){e.vosWhereIsAdmin=t,e.adminRefresh=!1}),(function(){return e.adminRefresh=!1}))}},{key:"applyMemberFilter",value:function(e){this.memberFilterValue=e}},{key:"adminPageChanged",value:function(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}},{key:"memberPageChanged",value:function(e){this.memberPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.memberTableId,e.pageSize)}},{key:"applyAdminFilter",value:function(e){this.adminFilterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Mb(s.p),o.Mb(r.h),o.Mb(c.pb),o.Mb(r.m),o.Mb(b.a))},e.\u0275cmp=o.Gb({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,t){2&e&&o.Eb("router-component",!0)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","pageSize","filterValue","vos","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","pageSize","filterValue","vos","page"],[1,"mt-5"]],template:function(e,t){1&e&&(o.Hc(0,S,3,3,"h1",0),o.Hc(1,g,3,3,"h1",0),o.Sb(2,"perun-web-apps-refresh-button",1),o.Zb("refresh",(function(){return t.refreshMemberTable()})),o.Rb(),o.Sb(3,"perun-web-apps-immediate-filter",2),o.Zb("filter",(function(e){return t.applyMemberFilter(e)})),o.Rb(),o.Hc(4,h,1,0,"mat-spinner",3),o.Hc(5,v,1,4,"perun-web-apps-vos-list",4),o.Hc(6,E,8,6,"div",5)),2&e&&(o.kc("ngIf",t.isMyProfile),o.Ab(1),o.kc("ngIf",!t.isMyProfile),o.Ab(2),o.kc("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),o.Ab(1),o.kc("ngIf",t.memberRefresh),o.Ab(1),o.kc("ngIf",!t.memberRefresh),o.Ab(1),o.kc("ngIf",!t.isMyProfile))},directives:[u.t,l.a,f.a,p.c,d.a],pipes:[m.d],styles:[""]}),e}()},faZ6:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var s=n("EM62"),r=n("ma6z"),c=function(){var e=function(){function e(){i(this,e)}return a(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Gb({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&s.Eb("router-component",!0)},decls:1,vars:0,template:function(e,t){1&e&&s.Nb(0,"app-animated-router-outlet")},directives:[r.a],styles:[""]}),e}()},m1kt:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var s=n("X2Q7"),r=n("EM62"),c=n("sEIs"),o=n("2kYt"),b=n("csyo"),u=n("ZG5M");function l(e,t){1&e&&r.Nb(0,"mat-spinner",2)}function f(e,t){if(1&e&&(r.Sb(0,"div"),r.Nb(1,"perun-web-apps-menu-buttons-field",3),r.Rb()),2&e){var n=r.dc();r.Ab(1),r.kc("items",n.navItems)("size","small")}}var p=function(){var e=function(){function e(t,n){i(this,e),this.route=t,this.userManager=n,this.navItems=[],this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){var e=this;window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe((function(t){e.userManager.getUserById(t.userId).subscribe((function(t){e.isServiceUser=t.serviceUser,e.initNavItems(),e.loading=!1}),(function(){return e.loading=!1}))}))):this.initNavItems()}},{key:"initNavItems",value:function(){this.navItems=[],window.location.pathname.startsWith("/admin")?this.navItems.push(this.isServiceUser?{cssIcon:"perun-service-identity",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-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Mb(c.a),r.Mb(s.p))},e.\u0275cmp=r.Gb({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Eb("router-component",!0)},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,t){1&e&&(r.Hc(0,l,1,0,"mat-spinner",0),r.Hc(1,f,2,2,"div",1)),2&e&&(r.kc("ngIf",t.loading),r.Ab(1),r.kc("ngIf",!t.loading))},directives:[o.t,b.c,u.a],styles:[""]}),e}()},oXY0:function(t,n,s){"use strict";s.d(n,"a",(function(){return xe}));var r=s("X2Q7"),c=s("Ssnw"),o=s("EM62"),b=s("sEIs"),u=s("2kYt"),l=s("csyo"),f=s("3Uyd"),p=s("bFHC"),d=s("Meci"),m=s("qySP"),S=s("NC8S"),g=s("K9kF"),h=s("23RZ"),v=s("w+DT"),I=s("nz2m"),R=s("s2Ay");function E(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function A(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function y(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function T(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.SELF_VOS")," "))}function k(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function O(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.SELF_IDENTITIES")," "))}var M=function(){return["user","id","name"]};function N(e,t){if(1&e&&(o.Sb(0,"div",11),o.Hc(1,k,3,3,"div",2),o.Hc(2,O,3,3,"div",2),o.Nb(3,"app-users-list",12),o.Rb()),2&e){var n=o.dc(4);o.Ab(1),o.kc("ngIf",!n.showDescription),o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("users",n.users)("disableRouting",!0)("displayedColumns",o.oc(5,M))}}var U=function(){return["id","name","shortName"]};function C(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,y,3,3,"div",2),o.Hc(2,T,3,3,"div",2),o.Nb(3,"perun-web-apps-vos-list",9),o.Hc(4,N,4,6,"div",10),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",!n.showDescription),o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("displayedColumns",o.oc(5,U))("vos",n.vos),o.Ab(1),o.kc("ngIf",n.users.length)}}function P(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getSelfData()})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",7),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,A,1,0,"mat-spinner",1),o.Hc(8,C,5,6,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.SELF")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function w(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function L(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}var D=function(){return["select","menu","expiration","recent"]};function H(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,L,3,3,"div",2),o.Nb(2,"perun-web-apps-groups-list",14),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("groups",n.groups)("hideColumns",o.oc(3,D))}}function F(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getAdminGroupsAndVos()})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",13),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,w,1,0,"mat-spinner",1),o.Hc(8,H,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.GROUPADMIN")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function V(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function _(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}var x=function(){return["select","menu","expiration"]};function G(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,_,3,3,"div",2),o.Nb(2,"perun-web-apps-groups-list",14),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("groups",n.groups)("hideColumns",o.oc(3,x))}}function z(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getGroupsAndVos("GROUPOBSERVER")})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",13),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,V,1,0,"mat-spinner",1),o.Hc(8,G,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.GROUPOBSERVER")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function B(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function J(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.VOADMIN_VOS")," "))}function Z(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,J,3,3,"div",2),o.Nb(2,"perun-web-apps-vos-list",9),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("displayedColumns",o.oc(3,U))("vos",n.vos)}}function Y(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getAdminVos()})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",15),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,B,1,0,"mat-spinner",1),o.Hc(8,Z,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.VOADMIN")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function K(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function j(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.VOOBSERVER_VOS")," "))}function Q(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,j,3,3,"div",2),o.Nb(2,"perun-web-apps-vos-list",9),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("displayedColumns",o.oc(3,U))("vos",n.vos)}}function W(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){o.xc(n);var e=o.dc(2);return e.getVos(e.roles.get("VOOBSERVER").get("Vo"))})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",15),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,K,1,0,"mat-spinner",1),o.Hc(8,Q,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.VOOBSERVER")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function X(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function q(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function $(e,t){if(1&e&&(o.Sb(0,"div"),o.Sb(1,"div"),o.Hc(2,q,3,3,"div",2),o.Nb(3,"perun-web-apps-vos-list",9),o.Rb(),o.Rb()),2&e){var n=o.dc(3);o.Ab(2),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("displayedColumns",o.oc(3,U))("vos",n.vos)}}function ee(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){o.xc(n);var e=o.dc(2);return e.getVos(e.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",15),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,X,1,0,"mat-spinner",1),o.Hc(8,$,4,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.TRUSTEDFACILITYADMIN")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function te(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function ne(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ie(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,ne,3,3,"div",2),o.Nb(2,"perun-web-apps-vos-list",9),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("displayedColumns",o.oc(3,U))("vos",n.vos)}}function se(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){o.xc(n);var e=o.dc(2);return e.getVos(e.roles.get("TOPGROUPCREATOR").get("Vo"))})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",15),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,te,1,0,"mat-spinner",1),o.Hc(8,ie,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.TOPGROUPCREATOR")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function ae(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function re(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}var ce=function(){return["id","name","vo","facility","description"]};function oe(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,re,3,3,"div",2),o.Nb(2,"perun-web-apps-resources-list",17),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("resources",n.resources)("routingVo",!0)("displayedColumns",o.oc(4,ce))}}function be(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getResourcesData("RESOURCEADMIN")})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",16),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,ae,1,0,"mat-spinner",1),o.Hc(8,oe,3,5,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.RESOURCEADMIN")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function ue(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function le(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function fe(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,le,3,3,"div",2),o.Nb(2,"perun-web-apps-resources-list",17),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("resources",n.resources)("routingVo",!0)("displayedColumns",o.oc(4,ce))}}function pe(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getResourcesData("RESOURCEOBSERVER")})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",16),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,ue,1,0,"mat-spinner",1),o.Hc(8,fe,3,5,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.RESOURCEOBSERVER")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function de(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function me(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function Se(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,me,3,3,"div",2),o.Nb(2,"perun-web-apps-resources-list",17),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("resources",n.resources)("routingVo",!0)("displayedColumns",o.oc(4,ce))}}function ge(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getResourcesData("RESOURCESELFSERVICE")})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",16),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,de,1,0,"mat-spinner",1),o.Hc(8,Se,3,5,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.RESOURCESELFSERVICE")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function he(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function ve(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}var Ie=function(){return["id","name","description"]};function Re(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,ve,3,3,"div",2),o.Nb(2,"perun-web-apps-facilities-list",19),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("displayedColumns",o.oc(3,Ie))("facilities",n.facilities)}}function Ee(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getAdminFacilities()})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",18),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,he,1,0,"mat-spinner",1),o.Hc(8,Re,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.FACILITYADMIN")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function Ae(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function ye(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function Te(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,ye,3,3,"div",2),o.Nb(2,"perun-web-apps-facilities-list",19),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("displayedColumns",o.oc(3,Ie))("facilities",n.facilities)}}function ke(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getFacilities("FACILITYOBSERVER")})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",18),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,Ae,1,0,"mat-spinner",1),o.Hc(8,Te,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.FACILITYOBSERVER")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function Oe(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function Me(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}var Ne=function(){return["checkbox","email","logins","status","groupStatus","organization","type"]};function Ue(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,Me,3,3,"div",2),o.Nb(2,"perun-web-apps-members-list",20),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("members",n.members)("hideColumns",o.oc(3,Ne))}}function Ce(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){return o.xc(n),o.dc(2).getMembers()})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",7),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,Oe,1,0,"mat-spinner",1),o.Hc(8,Ue,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.SPONSORSHIP")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function Pe(e,t){1&e&&o.Nb(0,"mat-spinner",3)}function we(e,t){1&e&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&e&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"ROLES.SPONSOR_VOS")," "))}function Le(e,t){if(1&e&&(o.Sb(0,"div"),o.Hc(1,we,3,3,"div",2),o.Nb(2,"perun-web-apps-vos-list",9),o.Rb()),2&e){var n=o.dc(3);o.Ab(1),o.kc("ngIf",n.showDescription),o.Ab(1),o.kc("displayedColumns",o.oc(3,U))("vos",n.vos)}}function De(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){o.xc(n);var e=o.dc(2);return e.getVos(e.roles.get("SPONSOR").get("Vo"))})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",7),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(7,Pe,1,0,"mat-spinner",1),o.Hc(8,Le,3,4,"div",2),o.Rb()}if(2&e){var i=o.dc(2);o.Ab(5),o.Kc(o.fc(6,3,"ROLES.SPONSOR")),o.Ab(2),o.kc("ngIf",i.loading),o.Ab(1),o.kc("ngIf",!i.loading)}}function He(e,t){1&e&&(o.Sb(0,"mat-expansion-panel"),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",7),o.Sb(4,"p",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Rb()),2&e&&(o.Ab(5),o.Kc(o.fc(6,1,"ROLES.PERUN_ADMIN")))}function Fe(e,t){if(1&e&&(o.Sb(0,"p",22),o.Jc(1),o.Rb()),2&e){var n=t.$implicit;o.Ab(1),o.Mc("",n[0]," ids: ",n[1],"")}}function Ve(e,t){if(1&e){var n=o.Tb();o.Sb(0,"mat-expansion-panel",6),o.Zb("opened",(function(){o.xc(n);var e=t.$implicit;return o.dc(2).getInnerKeys(e)})),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"mat-icon",7),o.Sb(4,"p",8),o.Jc(5),o.Rb(),o.Rb(),o.Rb(),o.Hc(6,Fe,2,2,"p",21),o.Rb()}if(2&e){var i=t.$implicit,s=o.dc(2);o.Ab(5),o.Kc(i),o.Ab(1),o.kc("ngForOf",s.currentIds)}}function _e(e,t){if(1&e&&(o.Sb(0,"mat-accordion"),o.Hc(1,P,9,5,"mat-expansion-panel",4),o.Hc(2,F,9,5,"mat-expansion-panel",4),o.Hc(3,z,9,5,"mat-expansion-panel",4),o.Hc(4,Y,9,5,"mat-expansion-panel",4),o.Hc(5,W,9,5,"mat-expansion-panel",4),o.Hc(6,ee,9,5,"mat-expansion-panel",4),o.Hc(7,se,9,5,"mat-expansion-panel",4),o.Hc(8,be,9,5,"mat-expansion-panel",4),o.Hc(9,pe,9,5,"mat-expansion-panel",4),o.Hc(10,ge,9,5,"mat-expansion-panel",4),o.Hc(11,Ee,9,5,"mat-expansion-panel",4),o.Hc(12,ke,9,5,"mat-expansion-panel",4),o.Hc(13,Ce,9,5,"mat-expansion-panel",4),o.Hc(14,De,9,5,"mat-expansion-panel",4),o.Hc(15,He,7,3,"mat-expansion-panel",2),o.Hc(16,Ve,7,2,"mat-expansion-panel",5),o.Rb()),2&e){var n=o.dc();o.Ab(1),o.kc("ngIf",n.isSelf),o.Ab(1),o.kc("ngIf",n.isGroupAdmin),o.Ab(1),o.kc("ngIf",n.isGroupObserver),o.Ab(1),o.kc("ngIf",n.isVoAdmin),o.Ab(1),o.kc("ngIf",n.isVoObserver),o.Ab(1),o.kc("ngIf",n.isTrustedFacilityAdmin),o.Ab(1),o.kc("ngIf",n.isTopGroupCreator),o.Ab(1),o.kc("ngIf",n.isResourceAdmin),o.Ab(1),o.kc("ngIf",n.isResourceObserver),o.Ab(1),o.kc("ngIf",n.isResourceSelfService),o.Ab(1),o.kc("ngIf",n.isFacilityAdmin),o.Ab(1),o.kc("ngIf",n.isFacilityObserver),o.Ab(1),o.kc("ngIf",n.hasSponsorship),o.Ab(1),o.kc("ngIf",n.isSponsor),o.Ab(1),o.kc("ngIf",n.isPerunAdmin),o.Ab(1),o.kc("ngForOf",n.roleNames)}}var xe=function(){var t=function(){function t(e,n,s,a,r,c,o,b,u){i(this,t),this.authzResolverService=e,this.usersManagerService=n,this.vosManagerService=s,this.facilitiesManagerService=a,this.resourcesManagerService=r,this.membersManagerService=c,this.groupsManagerService=o,this.route=b,this.store=u,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}return a(t,[{key:"ngOnInit",value:function(){var e=this;this.outerLoading=!0,this.route.parent.params.subscribe((function(t){t.userId?(e.userId=t.userId,e.authzResolverService.getUserRoleNames(e.userId).subscribe((function(t){e.roleNames=t.map((function(e){return e.toUpperCase()})),e.authzResolverService.getUserRoles(e.userId).subscribe((function(t){e.prepareRoles(t)}))}))):(e.showDescription=!0,e.principal=e.store.getPerunPrincipal(),e.userId=e.principal.userId,e.roleNames=Object.keys(e.principal.roles),e.prepareRoles(e.principal.roles))}))}},{key:"prepareRoles",value:function(e){var t=this;this.roleNames.forEach((function(n){var i=new Map;switch(Object.keys(e[n]).forEach((function(t){i.set(t,e[n][t])})),n){case"SELF":t.isSelf=!0;break;case"GROUPADMIN":t.isGroupAdmin=!0;break;case"VOADMIN":t.isVoAdmin=!0;break;case"RESOURCEADMIN":t.isResourceAdmin=!0;break;case"FACILITYADMIN":t.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":t.isTopGroupCreator=!0;break;case"SPONSORSHIP":t.hasSponsorship=!0;break;case"SPONSOR":t.isSponsor=!0;break;case"RESOURCESELFSERVICE":t.isResourceSelfService=!0;break;case"VOOBSERVER":t.isVoObserver=!0;break;case"RESOURCEOBSERVER":t.isResourceObserver=!0;break;case"GROUPOBSERVER":t.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":t.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":t.isFacilityObserver=!0;break;case"PERUNADMIN":t.isPerunAdmin=!0}t.roles.set(n,i)})),this.roleNames=this.roleNames.filter((function(e){return!t.roleFilter.includes(e)})),this.outerLoading=!1}},{key:"getAdminGroupsAndVos",value:function(){var t=this;this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe((function(n){t.groups=n;var i=e(new Set(t.groups.map((function(e){return e.voId}))));t.getVos(i)}))}},{key:"getVos",value:function(e){var t=this;this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe((function(e){t.vos=e,t.loading=!1}))}},{key:"getInnerKeys",value:function(e){if(this.roles.get(e)){for(var t=this.roles.get(e).entries(),n=[],i=t.next().value;i;)n.push(i),i=t.next().value;this.currentIds=n}else this.currentIds=[]}},{key:"getAdminVos",value:function(){var e=this;this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe((function(t){e.vos=t,e.loading=!1}))}},{key:"getAdminFacilities",value:function(){var e=this;this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe((function(t){e.facilities=t.map((function(e){return{facility:e}})),e.loading=!1}))}},{key:"getSelfData",value:function(){var e=this;this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe((function(t){e.vos=t;var n=e.roles.get("SELF").get("User");n?e.usersManagerService.getUsersByIds(n).subscribe((function(t){e.users=t,e.loading=!1})):e.loading=!1}))}},{key:"getResourcesData",value:function(e){var t=this;this.loading=!0;var n=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(n).subscribe((function(e){t.resources=e,t.vos=t.resources.map((function(e){return e.vo})).filter((function(e,t,n){return n.indexOf(e)===t})),t.facilities=t.resources.map((function(e){return{facility:e.facility}})).filter((function(e,t,n){return n.indexOf(e)===t})),t.loading=!1}))}},{key:"getMembers",value:function(){var e=this;this.loading=!0;var t=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(t).subscribe((function(t){e.members=t,e.loading=!1}))}},{key:"getGroupsAndVos",value:function(e){var t=this;this.loading=!0;var n=this.roles.get(e).get("Vo"),i=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(i).subscribe((function(e){t.groups=e,t.vosManagerService.getVosByIds(n).subscribe((function(e){t.vos=e,t.loading=!1}))}))}},{key:"getFacilities",value:function(e){var t=this;this.loading=!0,this.facilities=[];var n=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(n).subscribe((function(e){t.facilities=e.map((function(e){return{facility:e}})),t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(r.d),o.Mb(r.p),o.Mb(r.q),o.Mb(r.g),o.Mb(r.m),o.Mb(r.i),o.Mb(r.h),o.Mb(b.a),o.Mb(c.m))},t.\u0275cmp=o.Gb({type:t,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,t){2&e&&o.Eb("router-component",!0)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened",4,"ngIf"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],[3,"displayedColumns","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","hideColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","hideColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,t){1&e&&(o.Sb(0,"h1",0),o.Jc(1),o.ec(2,"translate"),o.Rb(),o.Hc(3,E,1,0,"mat-spinner",1),o.Hc(4,_e,17,16,"mat-accordion",2)),2&e&&(o.Ab(1),o.Kc(o.fc(2,3,"ROLES.TITLE")),o.Ab(2),o.kc("ngIf",t.outerLoading),o.Ab(1),o.kc("ngIf",!t.outerLoading))},directives:[u.t,l.c,f.a,u.s,f.c,f.g,f.h,p.a,d.c,m.a,S.a,g.a,h.a,v.a,I.a],pipes:[R.d],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),t}()},zrcO:function(e,t,n){"use strict";n.r(t),n.d(t,"UsersModule",(function(){return he}));var s=n("2kYt"),r=n("sEIs"),c=n("S5du"),o=n("BAI5"),b=n("faZ6"),u=n("m1kt"),l=n("Q/gj"),f=n("ECIY"),p=n("HHEo"),d=n("8clQ"),m=n("iyZ4"),S=n("EM62"),g=n("29Wa"),h=n("R7+U"),v=n("mFH5"),I=n("s2Ay");function R(e,t){if(1&e&&(S.Sb(0,"mat-option",5),S.Jc(1),S.Rb()),2&e){var n=t.$implicit;S.kc("value",n),S.Ab(1),S.Lc(" ",n," ")}}var E,A=((E=function(){function e(t){i(this,e),this.guiConfigService=t,this.tablePageSizeOptions=d.a}return a(e,[{key:"ngOnInit",value:function(){this.preferredTablePageSize=this.guiConfigService.getNumber(m.c)}},{key:"updatePreferredTablePageSize",value:function(){this.guiConfigService.setNumber(m.c,this.preferredTablePageSize)}}]),e}()).\u0275fac=function(e){return new(e||E)(S.Mb(m.b))},E.\u0275cmp=S.Gb({type:E,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(e,t){1&e&&(S.Sb(0,"h1",0),S.Jc(1),S.ec(2,"translate"),S.Rb(),S.Sb(3,"div",1),S.Sb(4,"mat-form-field",2),S.Sb(5,"mat-label"),S.Jc(6),S.ec(7,"translate"),S.Rb(),S.Sb(8,"mat-select",3),S.Zb("valueChange",(function(e){return t.preferredTablePageSize=e}))("valueChange",(function(){return t.updatePreferredTablePageSize()})),S.Hc(9,R,2,2,"mat-option",4),S.Rb(),S.Rb(),S.Rb()),2&e&&(S.Ab(1),S.Kc(S.fc(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),S.Ab(5),S.Kc(S.fc(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),S.Ab(2),S.kc("value",t.preferredTablePageSize),S.Ab(1),S.kc("ngForOf",t.tablePageSizeOptions))},directives:[g.c,g.g,h.a,s.s,v.n],pipes:[I.d],styles:[""]}),E),y=n("QOlj"),T=n("4sdY"),k=n("Ssnw"),O=n("EtYo"),M=n("bFHC"),N=n("Y2X+"),U=n("ma6z"),C=n("j+u3"),P=function(){return{color:"black"}},w=function(){return["/myProfile"]};function L(e,t){if(1&e&&(S.Sb(0,"div",1),S.Nb(1,"perun-web-apps-back-button"),S.Sb(2,"div",2),S.Nb(3,"mat-icon",3),S.ec(4,"translate"),S.Sb(5,"div",4),S.Sb(6,"div",5),S.Sb(7,"a",6),S.Jc(8),S.ec(9,"userFullName"),S.Rb(),S.Sb(10,"span",7),S.Jc(11),S.Rb(),S.Rb(),S.Sb(12,"span",8),S.Jc(13),S.ec(14,"translate"),S.ec(15,"translate"),S.Rb(),S.Rb(),S.Rb(),S.Nb(16,"app-animated-router-outlet"),S.Rb()),2&e){var n=S.dc();S.Ab(3),S.lc("matTooltip",S.fc(4,8,"MENU_ITEMS.USER.ENTITY")),S.kc("ngStyle",S.oc(16,P)),S.Ab(4),S.kc("routerLink",S.oc(17,w)),S.Ab(1),S.Lc(" ",S.fc(9,10,n.user)," "),S.Ab(3),S.Lc(" \xa0#",n.user.id," "),S.Ab(2),S.Nc(" ",S.fc(14,12,"MENU_ITEMS.USER.ENTITY"),", ",S.fc(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",n.getUserType()," ")}}var D,H,F,V=((D=function(){function e(t,n,s){i(this,e),this.sideMenuService=t,this.store=n,this.router=s}return a(e,[{key:"ngOnInit",value:function(){var e=this;this.path=this.router.url,this.router.events.subscribe((function(t){e.path=e.router.url})),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}},{key:"getUserType",value:function(){return this.user.serviceUser?"Service":"Person"}}]),e}()).\u0275fac=function(e){return new(e||D)(S.Mb(T.a),S.Mb(k.m),S.Mb(r.f))},D.\u0275cmp=S.Gb({type:D,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,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(e,t){1&e&&S.Hc(0,L,17,18,"div",0),2&e&&S.kc("ngIf",void 0!==t.user)},directives:[s.t,O.a,M.a,N.a,s.w,r.i,U.a],pipes:[I.d,C.a],styles:[""]}),D),_=n("oXY0"),x=[{path:"",component:V,children:[{path:"",component:y.a,data:{animation:"UserOverviewPage"}},{path:"attributes",component:l.a,data:{animation:"UserAttributesPage"}},{path:"organizations",component:c.a,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:o.a,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:_.a,data:{animation:"UserRolesPage"}},{path:"settings",component:b.a,children:[{path:"",component:u.a,data:{animation:"UserSettingsOverviewPage"}},{path:"facilityAttributes",component:f.a,data:{animation:"UserSettingsFacilityAttributesPage",showPrincipal:!0}},{path:"passwordReset",component:p.c,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:A,data:{animation:"UserAppConfigurationPage"}}]}]}],G=((H=function e(){i(this,e)}).\u0275mod=S.Kb({type:H}),H.\u0275inj=S.Jb({factory:function(e){return new(e||H)},imports:[[r.j.forChild(x)],r.j]}),H),z=n("ulve"),B=n("Cd2c"),J=n("nIj0"),Z=n("lQ7A"),Y=n("3Uyd"),K=n("PBFl"),j=n("cePI"),Q=n("FlRo"),W=n("KZIX"),X=n("QcI7"),q=n("+Tre"),$=n("OZ4H"),ee=n("W1gw"),te=n("csyo"),ne=n("66mq"),ie=n("k8N0"),se=n("gcUQ"),ae=n("F1o0"),re=n("zmEM"),ce=n("iAde"),oe=n("Meci"),be=n("x9Az"),ue=n("oqI+"),le=n("S17y"),fe=n("Jb3d"),pe=n("qvOF"),de=n("KoHB"),me=n("f3iV"),Se=n("t47Z"),ge=n("PCNd"),he=((F=function e(t){i(this,e),this.translate=t,t.addLangs(["en","cs"])}).\u0275mod=S.Kb({type:F}),F.\u0275inj=S.Jb({factory:function(e){return new(e||F)(S.Wb(I.e))},imports:[[s.c,G,z.b,B.c,g.e,J.B,J.l,M.b,Z.g,Y.b,I.c.forChild({}),K.c,j.c,Q.p,W.g,X.e,K.c,q.b,$.h,h.b,ee.b,te.b,ne.b,N.b,ie.b,se.g,v.l,ae.c,re.b,v.t,ce.b,oe.j,be.g,ue.g,oe.j,le.g,fe.c,pe.g,de.a,me.b,p.d,m.a,Se.b,ge.a]]}),F)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/2-es2015.fb5fba5fffcebe71e489.js b/dist/apps/admin-gui/2-es2015.fb5fba5fffcebe71e489.js new file mode 100644 index 000000000..69b7dea78 --- /dev/null +++ b/dist/apps/admin-gui/2-es2015.fb5fba5fffcebe71e489.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{Fm3m:function(e,t,s){"use strict";s.d(t,"a",(function(){return l}));var i=s("X2Q7"),r=s("Ssnw"),c=s("EM62"),n=s("sEIs"),a=s("2kYt"),o=s("NU+N");function u(e,t){if(1&e&&c.Nb(0,"app-managers-page",1),2&e){const e=c.dc();c.kc("complementaryObject",e.resource)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)}}let l=(()=>{class e{constructor(e,t,s){this.route=e,this.resourceService=t,this.guiAuthResolver=s,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(e=>{this.resourceService.getResourceById(e.resourceId).subscribe(e=>{this.resource=e})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return e.\u0275fac=function(t){return new(t||e)(c.Mb(n.a),c.Mb(i.m),c.Mb(r.h))},e.\u0275cmp=c.Gb({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&c.Hc(0,u,1,4,"app-managers-page",0),2&e&&c.kc("ngIf",t.resource)},directives:[a.t,o.a],styles:[""]}),e})()},GyaY:function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));var i=s("TkCa"),r=s("EM62"),c=s("ma6z");let n=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Gb({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Eb("router-component",!0)},decls:1,vars:0,template:function(e,t){1&e&&r.Nb(0,"app-animated-router-outlet")},directives:[c.a],styles:[""],data:{animation:[i.a]}}),e})()},HUrR:function(e,t,s){"use strict";s.d(t,"a",(function(){return h}));var i=s("X2Q7"),r=s("Ssnw"),c=s("EM62"),n=s("sEIs"),a=s("2kYt"),o=s("csyo"),u=s("ZG5M");function l(e,t){1&e&&c.Nb(0,"mat-spinner",2)}function b(e,t){if(1&e&&(c.Sb(0,"div"),c.Nb(1,"perun-web-apps-menu-buttons-field",3),c.Rb()),2&e){const e=c.dc();c.Ab(1),c.kc("items",e.items)("size","small")}}let h=(()=>{class e{constructor(e,t,s){this.route=e,this.resourceManager=t,this.authResolver=s,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.resourceManager.getResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1},()=>this.loading=!1)})}initItems(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${e?"/organizations/"+this.resource.voId:"/facilities/"+this.resource.facilityId}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(c.Mb(n.a),c.Mb(i.m),c.Mb(r.h))},e.\u0275cmp=c.Gb({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&c.Eb("router-component",!0)},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,t){1&e&&(c.Hc(0,l,1,0,"mat-spinner",0),c.Hc(1,b,2,2,"div",1)),2&e&&(c.kc("ngIf",t.loading),c.Ab(1),c.kc("ngIf",!t.loading))},directives:[a.t,o.c,u.a],styles:[""]}),e})()},TNye:function(e,t,s){"use strict";s.d(t,"a",(function(){return M}));var i=s("X2Q7"),r=s("iyZ4"),c=s("cqs0"),n=s("8clQ"),a=s("/bE8"),o=s("ESXS"),u=s("Ssnw"),l=s("EM62"),b=s("sEIs"),h=s("OZ4H"),d=s("0XDM"),p=s("2kYt"),g=s("A8Ay"),f=s("PBFl"),S=s("csyo"),m=s("gcZR"),I=s("s2Ay");function R(e,t){if(1&e){const e=l.Tb();l.Sb(0,"button",7),l.Zb("click",(function(){return l.xc(e),l.dc().addService()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&e&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function E(e,t){if(1&e){const e=l.Tb();l.Sb(0,"button",8),l.Zb("click",(function(){return l.xc(e),l.dc().removeServices()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}if(2&e){const e=l.dc();l.kc("disabled",0===e.selected.selected.length),l.Ab(1),l.Lc(" ",l.fc(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function A(e,t){1&e&&l.Nb(0,"mat-spinner",9)}const v=function(){return[]},T=function(){return["select"]};function y(e,t){if(1&e){const e=l.Tb();l.Sb(0,"app-services-list",10),l.Zb("page",(function(t){return l.xc(e),l.dc().pageChanged(t)})),l.Rb()}if(2&e){const e=l.dc();l.kc("pageSize",e.pageSize)("services",e.assignedServices)("selection",e.selected)("filterValue",e.filterValue)("hideColumns",e.removeServiceAuth?l.oc(6,v):l.oc(7,T))("disableRouting",!e.serviceRoutingAuth)}}let M=(()=>{class e{constructor(e,t,s,i,n){this.route=e,this.resourcesManager=t,this.tableConfigService=s,this.dialog=i,this.guiAuthResolver=n,this.assignedServices=[],this.selected=new c.c(!0,[]),this.tableId=r.T,this.filterValue=""}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.resourcesManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.getDataForAuthorization(),this.loadAllServices()})})}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resourceId).subscribe(e=>{this.assignedServices=e,this.selected.clear(),this.loading=!1})}addService(){const e=Object(n.o)();e.width="800px",e.data={theme:"resource-theme",resourceId:this.resourceId},this.dialog.open(a.a,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}removeServices(){const e=Object(n.o)();e.width="500px",e.data={theme:"resource-theme",resourceId:this.resourceId,services:this.selected.selected},this.dialog.open(o.a,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdmin()}}return e.\u0275fac=function(t){return new(t||e)(l.Mb(b.a),l.Mb(i.m),l.Mb(r.pb),l.Mb(h.b),l.Mb(u.h))},e.\u0275cmp=l.Gb({type:e,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","services","selection","filterValue","hideColumns","disableRouting","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","services","selection","filterValue","hideColumns","disableRouting","page"]],template:function(e,t){1&e&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Sb(3,"perun-web-apps-refresh-button",1),l.Zb("refresh",(function(){return t.loadAllServices()})),l.Rb(),l.Hc(4,R,3,3,"button",2),l.Hc(5,E,3,4,"button",3),l.Sb(6,"perun-web-apps-immediate-filter",4),l.Zb("filter",(function(e){return t.applyFilter(e)})),l.Rb(),l.Hc(7,A,1,0,"mat-spinner",5),l.Hc(8,y,1,8,"app-services-list",6)),2&e&&(l.Ab(1),l.Kc(l.fc(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),l.Ab(3),l.kc("ngIf",!t.loadingResource&&t.assignServiceAuth),l.Ab(1),l.kc("ngIf",!t.loadingResource&&t.removeServiceAuth),l.Ab(1),l.kc("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),l.Ab(1),l.kc("ngIf",t.loading),l.Ab(1),l.kc("ngIf",!t.loading))},directives:[d.a,p.t,g.a,f.b,S.c,m.a],pipes:[I.d],styles:[""]}),e})()},gxIj:function(e,t,s){"use strict";s.d(t,"a",(function(){return z}));var i=s("Ssnw"),r=(s("HHEo"),s("cqs0")),c=s("mEf3"),n=s("8clQ"),a=s("X2Q7"),o=s("iyZ4"),u=s("+0js"),l=s("IDQ9"),b=s("EM62"),h=s("sEIs"),d=s("OZ4H"),p=s("s2Ay"),g=s("KZIX"),f=s("0XDM"),S=s("PBFl"),m=s("A8Ay"),I=s("2kYt"),R=s("csyo"),E=s("LKLE"),A=s("bdug");const v=["list"];function T(e,t){1&e&&(b.Jc(0),b.ec(1,"translate")),2&e&&b.Lc(" ",b.fc(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function y(e,t){1&e&&b.Nb(0,"mat-spinner",10)}function M(e,t){if(1&e){const e=b.Tb();b.Sb(0,"perun-web-apps-attributes-list",11,12),b.Zb("page",(function(t){return b.xc(e),b.dc().pageChanged(t)})),b.Rb()}if(2&e){const e=b.dc();b.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("attributes",e.attributes)("selection",e.selection)}}function k(e,t){1&e&&(b.Jc(0),b.ec(1,"translate"),b.ec(2,"translate")),2&e&&b.Mc(" ",b.fc(1,2,"RESOURCE_DETAIL.ENTITY")," - ",b.fc(2,4,"MEMBER_DETAIL.ENTITY")," ")}function _(e,t){if(1&e&&b.Nb(0,"app-two-entity-attribute-page",15),2&e){const e=b.dc(3);b.kc("firstEntity","resource")("firstEntityId",e.resourceId)("secondEntity","member")}}function C(e,t){if(1&e&&b.Hc(0,_,1,3,"app-two-entity-attribute-page",14),2&e){const e=b.dc(2);b.kc("ngIf",!e.loading)}}function O(e,t){1&e&&(b.Sb(0,"mat-tab"),b.Hc(1,k,3,6,"ng-template",1),b.Hc(2,C,1,1,"ng-template",13),b.Rb())}function G(e,t){1&e&&(b.Jc(0),b.ec(1,"translate"),b.ec(2,"translate")),2&e&&b.Mc(" ",b.fc(1,2,"RESOURCE_DETAIL.ENTITY")," - ",b.fc(2,4,"GROUP_DETAIL.ENTITY")," ")}function L(e,t){if(1&e&&b.Nb(0,"app-two-entity-attribute-page",15),2&e){const e=b.dc(3);b.kc("firstEntity","resource")("firstEntityId",e.resourceId)("secondEntity","group")}}function w(e,t){if(1&e&&b.Hc(0,L,1,3,"app-two-entity-attribute-page",14),2&e){const e=b.dc(2);b.kc("ngIf",!e.loading)}}function U(e,t){1&e&&(b.Sb(0,"mat-tab"),b.Hc(1,G,3,6,"ng-template",1),b.Hc(2,w,1,1,"ng-template",13),b.Rb())}let z=(()=>{class e{constructor(e,t,s,i,c,n,a,u){this.attributesManager=e,this.route=t,this.dialog=s,this.notificator=i,this.tableConfigService=c,this.translate=n,this.authResolver=a,this.resourceManager=u,this.attributes=[],this.selection=new r.c(!0,[]),this.filterValue="",this.tableId=o.r,this.translate.get("RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe(e=>this.saveSuccessMessage=e),this.translate.get("RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe(e=>this.deleteSuccessMessage=e)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.resourceId=parseInt(e.resourceId,10),this.resourceManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.resourceGroupAttAuth=this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedRichMembers_Resource_policy",[this.resource]),this.refreshTable()})})}onDelete(){const e=Object(n.o)();e.width="450px",e.data={entityId:this.resourceId,entity:"resource",attributes:this.selection.selected,theme:"resource-theme"},this.dialog.open(c.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=Object(n.o)();e.width="450px",e.data={entityId:this.resourceId,entity:"resource",attributes:this.selection.selected},this.dialog.open(u.f,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onCreate(){const e=Object(n.o)();e.width="1050px",e.data={entityId:this.resourceId,entity:"resource",notEmptyAttributes:this.attributes,style:"resource-theme"},this.dialog.open(l.a,e).afterClosed().subscribe(e=>{"saved"===e&&this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getResourceAttributes(this.resourceId).subscribe(e=>{this.attributes=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(b.Mb(a.c),b.Mb(h.a),b.Mb(d.b),b.Mb(i.l),b.Mb(o.pb),b.Mb(p.e),b.Mb(i.h),b.Mb(a.m))},e.\u0275cmp=b.Gb({type:e,selectors:[["app-resource-attributes"]],viewQuery:function(e,t){var s;1&e&&b.Qc(v,!0),2&e&&b.sc(s=b.ac())&&(t.list=s.first)},hostVars:2,hostBindings:function(e,t){2&e&&b.Eb("router-component",!0)},decls:22,vars:19,consts:[[1,"page-subtitle"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(b.Sb(0,"div"),b.Sb(1,"h1",0),b.Jc(2),b.ec(3,"translate"),b.Rb(),b.Sb(4,"mat-tab-group"),b.Sb(5,"mat-tab"),b.Hc(6,T,2,3,"ng-template",1),b.Sb(7,"perun-web-apps-refresh-button",2),b.Zb("refresh",(function(){return t.refreshTable()})),b.Rb(),b.Sb(8,"button",3),b.Zb("click",(function(){return t.onCreate()})),b.Jc(9),b.ec(10,"translate"),b.Rb(),b.Sb(11,"button",4),b.Zb("click",(function(){return t.onSave()})),b.Jc(12),b.ec(13,"translate"),b.Rb(),b.Sb(14,"button",5),b.Zb("click",(function(){return t.onDelete()})),b.Jc(15),b.ec(16,"translate"),b.Rb(),b.Sb(17,"perun-web-apps-immediate-filter",6),b.Zb("filter",(function(e){return t.applyFilter(e)})),b.Rb(),b.Hc(18,y,1,0,"mat-spinner",7),b.Hc(19,M,2,4,"perun-web-apps-attributes-list",8),b.Rb(),b.Hc(20,O,3,0,"mat-tab",9),b.Hc(21,U,3,0,"mat-tab",9),b.Rb(),b.Rb()),2&e&&(b.Ab(2),b.Kc(b.fc(3,11,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),b.Ab(7),b.Lc(" ",b.fc(10,13,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),b.Ab(2),b.kc("disabled",0===t.selection.selected.length),b.Ab(1),b.Lc(" ",b.fc(13,15,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),b.Ab(2),b.kc("disabled",0===t.selection.selected.length),b.Ab(1),b.Lc(" ",b.fc(16,17,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),b.Ab(2),b.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),b.Ab(1),b.kc("ngIf",t.loading),b.Ab(1),b.kc("ngIf",!t.loading),b.Ab(1),b.kc("ngIf",t.resourceMemberAttAuth),b.Ab(1),b.kc("ngIf",t.resourceGroupAttAuth))},directives:[g.c,g.a,g.d,f.a,S.b,m.a,I.t,R.c,E.a,g.b,A.a],pipes:[p.d],styles:[""]}),e})()},jblC:function(e,t,s){"use strict";s.d(t,"a",(function(){return C}));var i=s("X2Q7"),r=s("cqs0"),c=s("ILoV"),n=s("VEwN"),a=s("iyZ4"),o=s("8clQ"),u=s("Ssnw"),l=s("EM62"),b=s("sEIs"),h=s("OZ4H"),d=s("0XDM"),p=s("2kYt"),g=s("PBFl"),f=s("Y2X+"),S=s("pynj"),m=s("csyo"),I=s("K9kF"),R=s("FcRk"),E=s("s2Ay");const A=["checkbox"];function v(e,t){if(1&e){const e=l.Tb();l.Sb(0,"button",9),l.Zb("click",(function(){return l.xc(e),l.dc().addGroup()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&e&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function T(e,t){1&e&&l.Nb(0,"mat-spinner",10)}const y=function(e){return[e]},M=function(){return["vo","recent","expiration","menu"]};function k(e,t){if(1&e){const e=l.Tb();l.Sb(0,"div",11),l.Sb(1,"perun-web-apps-groups-list",12),l.Zb("page",(function(t){return l.xc(e),l.dc().pageChanged(t)})),l.Rb(),l.Rb()}if(2&e){const e=l.dc();l.Ab(1),l.kc("pageSize",e.pageSize)("groups",e.assignedGroups)("filter",e.filteredValue)("selection",e.selected)("disableMembers",!1)("disableRouting",!e.guiAuthResolver.isAuthorized("getGroupById_int_policy",l.pc(7,y,e.assignedGroups[0])))("hideColumns",l.oc(9,M))}}function _(e,t){1&e&&(l.Sb(0,"app-alert",13),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&e&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.NO_GROUPS"),"\n"))}let C=(()=>{class e{constructor(e,t,s,i,c,n){this.route=e,this.resourcesManager=t,this.vosManagerService=s,this.tableConfigService=i,this.dialog=c,this.guiAuthResolver=n,this.assignedGroups=[],this.selected=new r.c(!0,[]),this.filteredValue="",this.tableId=a.S}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.getDataForAuthorization(),this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.resourcesManager.getAssignedGroups(this.resourceId).subscribe(e=>{this.assignedGroups=e,this.selected.clear(),this.loading=!1})}addGroup(){const e=Object(o.o)();e.width="800px",e.data={theme:"resource-theme",resource:this.resource},this.dialog.open(n.a,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}removeGroups(){const e=Object(o.o)();e.width="500px",e.data={resourceId:this.resourceId,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(c.a,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}canRemoveGroups(){let e=!0;return this.selected.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}applyFilter(e){this.filteredValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}getDataForAuthorization(){this.loadingResource=!0,this.resourcesManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.loadingResource=!1})}}return e.\u0275fac=function(t){return new(t||e)(l.Mb(b.a),l.Mb(i.m),l.Mb(i.q),l.Mb(a.pb),l.Mb(h.b),l.Mb(u.h))},e.\u0275cmp=l.Gb({type:e,selectors:[["app-perun-web-apps-resource-groups"]],viewQuery:function(e,t){var s;1&e&&l.Dc(A,!0),2&e&&l.sc(s=l.ac())&&(t.checkbox=s.first)},decls:14,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"pageSize","groups","filter","selection","disableMembers","disableRouting","hideColumns","page"],["alert_type","warn"]],template:function(e,t){1&e&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Sb(3,"perun-web-apps-refresh-button",1),l.Zb("refresh",(function(){return t.loadAllGroups()})),l.Rb(),l.Hc(4,v,3,3,"button",2),l.Sb(5,"button",3),l.Zb("click",(function(){return t.removeGroups()})),l.Sb(6,"span",4),l.ec(7,"translate"),l.Jc(8),l.ec(9,"translate"),l.Rb(),l.Rb(),l.Sb(10,"perun-web-apps-debounce-filter",5),l.Zb("filter",(function(e){return t.applyFilter(e)})),l.Rb(),l.Hc(11,T,1,0,"mat-spinner",6),l.Hc(12,k,2,10,"div",7),l.Hc(13,_,3,3,"app-alert",8)),2&e&&(l.Ab(1),l.Kc(l.fc(2,10,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),l.Ab(3),l.kc("ngIf",!t.loadingResource&&t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",l.pc(16,y,t.resource))),l.Ab(1),l.kc("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),l.Ab(1),l.lc("matTooltip",l.fc(7,12,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),l.kc("matTooltipDisabled",t.canRemoveGroups()),l.Ab(2),l.Lc(" ",l.fc(9,14,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),l.Ab(2),l.kc("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),l.Ab(1),l.kc("ngIf",t.loading),l.Ab(1),l.kc("ngIf",!t.loading&&0!==t.assignedGroups.length),l.Ab(1),l.kc("ngIf",0===t.assignedGroups.length&&!t.loading))},directives:[d.a,p.t,g.b,f.a,S.a,m.c,I.a,R.a],pipes:[E.d],styles:[""]}),e})()},lfUW:function(e,t,s){"use strict";s.d(t,"a",(function(){return I}));var i=s("X2Q7"),r=s("iyZ4"),c=s("Ssnw"),n=s("EM62"),a=s("sEIs"),o=s("2kYt"),u=s("0XDM"),l=s("A8Ay"),b=s("csyo"),h=s("nz2m"),d=s("s2Ay");function p(e,t){if(1&e){const e=n.Tb();n.Sb(0,"perun-web-apps-refresh-button",5),n.Zb("refresh",(function(){return n.xc(e),n.dc().refreshTable()})),n.Rb()}}function g(e,t){if(1&e){const e=n.Tb();n.Sb(0,"perun-web-apps-immediate-filter",6),n.Zb("filter",(function(t){return n.xc(e),n.dc().applyFilter(t)})),n.Rb()}2&e&&n.kc("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER")}function f(e,t){1&e&&n.Nb(0,"mat-spinner",7)}const S=function(){return["checkbox","email","status","groupStatus","sponsored","organization","logins","type"]};function m(e,t){if(1&e){const e=n.Tb();n.Sb(0,"perun-web-apps-members-list",8),n.Zb("page",(function(t){return n.xc(e),n.dc().pageChanged(t)}))("updateTable",(function(){return n.xc(e),n.dc().refreshTable()})),n.Rb()}if(2&e){const e=n.dc();n.kc("disableRouting",!e.routeAuth)("filter",e.filterValue)("hideColumns",n.oc(5,S))("members",e.members)("pageSize",e.pageSize)}}let I=(()=>{class e{constructor(e,t,s,i){this.route=e,this.resourceService=t,this.tableConfigService=s,this.authResolver=i,this.loading=!1,this.filterValue="",this.tableId=r.V}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resourceId).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}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(n.Mb(a.a),n.Mb(i.m),n.Mb(r.pb),n.Mb(c.h))},e.\u0275cmp=n.Gb({type:e,selectors:[["app-resource-assigned-members"]],decls:7,vars:7,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filter","hideColumns","members","pageSize","page","updateTable",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filter","hideColumns","members","pageSize","page","updateTable"]],template:function(e,t){1&e&&(n.Sb(0,"h1",0),n.Jc(1),n.ec(2,"translate"),n.Rb(),n.Hc(3,p,1,0,"perun-web-apps-refresh-button",1),n.Hc(4,g,1,1,"perun-web-apps-immediate-filter",2),n.Hc(5,f,1,0,"mat-spinner",3),n.Hc(6,m,1,6,"perun-web-apps-members-list",4)),2&e&&(n.Ab(1),n.Kc(n.fc(2,5,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),n.Ab(2),n.kc("ngIf",!t.loading),n.Ab(1),n.kc("ngIf",!t.loading),n.Ab(1),n.kc("ngIf",t.loading),n.Ab(1),n.kc("ngIf",!t.loading))},directives:[o.t,u.a,l.a,b.c,h.a],pipes:[d.d],styles:[""]}),e})()},nSPi:function(e,t,s){"use strict";s.d(t,"a",(function(){return w}));var i=s("TkCa"),r=s("4sdY"),c=s("EkAj"),n=s("X2Q7"),a=s("8clQ"),o=s("Ssnw"),u=s("t47Z"),l=s("+0js"),b=s("EM62"),h=s("sEIs"),d=s("OZ4H"),p=s("EtYo"),g=s("2kYt"),f=s("csyo"),S=s("bFHC"),m=s("Y2X+"),I=s("ma6z"),R=s("PBFl"),E=s("s2Ay");function A(e,t){1&e&&b.Nb(0,"mat-spinner",3)}function v(e,t){if(1&e){const e=b.Tb();b.Sb(0,"button",13),b.Zb("click",(function(){return b.xc(e),b.dc(2).editResource()})),b.Sb(1,"mat-icon"),b.Jc(2,"edit"),b.Rb(),b.Rb()}}const T=function(e){return["/organizations",e]};function y(e,t){if(1&e&&(b.Sb(0,"a",8),b.Jc(1),b.Rb()),2&e){const e=b.dc(2);b.kc("routerLink",b.pc(2,T,e.resource.vo.id)),b.Ab(1),b.Kc(e.resource.vo.name)}}function M(e,t){if(1&e&&(b.Sb(0,"span"),b.Jc(1),b.Rb()),2&e){const e=b.dc(2);b.Ab(1),b.Lc(" ",e.resource.vo.name," ")}}const k=function(e){return["/facilities",e]};function _(e,t){if(1&e&&(b.Sb(0,"a",8),b.Jc(1),b.Rb()),2&e){const e=b.dc(2);b.kc("routerLink",b.pc(2,k,e.resource.facilityId)),b.Ab(1),b.Kc(e.resource.facility.name)}}function C(e,t){if(1&e&&(b.Sb(0,"span"),b.Jc(1),b.Rb()),2&e){const e=b.dc(2);b.Ab(1),b.Lc(" ",e.resource.facility.name," ")}}const O=function(){return{color:"black"}},G=function(e){return[e]};function L(e,t){if(1&e&&(b.Sb(0,"div"),b.Sb(1,"div",4),b.Nb(2,"mat-icon",5),b.ec(3,"translate"),b.Sb(4,"div",6),b.Sb(5,"div",7),b.Sb(6,"a",8),b.Jc(7),b.Rb(),b.Sb(8,"span",9),b.Jc(9),b.Rb(),b.Hc(10,v,3,0,"button",10),b.Rb(),b.Sb(11,"span",11),b.Jc(12),b.ec(13,"translate"),b.ec(14,"translate"),b.Hc(15,y,2,4,"a",12),b.Hc(16,M,2,1,"span",2),b.Jc(17),b.ec(18,"translate"),b.Hc(19,_,2,4,"a",12),b.Hc(20,C,2,1,"span",2),b.Jc(21),b.ec(22,"translate"),b.Rb(),b.Rb(),b.Rb(),b.Nb(23,"app-animated-router-outlet"),b.Rb()),2&e){const e=b.dc();b.Ab(2),b.lc("matTooltip",b.fc(3,17,"RESOURCE_DETAIL.ENTITY")),b.kc("ngStyle",b.oc(27,O)),b.Ab(4),b.kc("routerLink",b.pc(28,G,e.baseUrl)),b.Ab(1),b.Lc(" ",e.resource.name," "),b.Ab(2),b.Lc(" \xa0#",e.resource.id," "),b.Ab(1),b.kc("ngIf",e.editResourceAuth),b.Ab(2),b.Mc(" ",b.fc(13,19,"RESOURCE_DETAIL.ENTITY"),", ",b.fc(14,21,"RESOURCE_DETAIL.VO"),": "),b.Ab(3),b.kc("ngIf",e.voLinkAuth),b.Ab(1),b.kc("ngIf",!e.voLinkAuth),b.Ab(1),b.Mc(" #",e.resource.voId,", ",b.fc(18,23,"RESOURCE_DETAIL.FACILITY"),": "),b.Ab(2),b.kc("ngIf",e.facilityLinkAuth),b.Ab(1),b.kc("ngIf",!e.facilityLinkAuth),b.Ab(1),b.Nc(" #",e.resource.facilityId,", ",b.fc(22,25,"RESOURCE_DETAIL.DESCRIPTION"),": ",e.resource.description," ")}}let w=(()=>{class e{constructor(e,t,s,i,r,c,n,a){this.route=e,this.facilityManager=t,this.vosManagerService=s,this.resourcesManager=i,this.sideMenuService=r,this.sideMenuItemService=c,this.dialog=n,this.guiAuthResolver=a,this.baseUrl="",this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.resourcesManager.getRichResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new u.a).transform(e,!1),this.facilityManager.getFacilityById(e.facilityId).subscribe(t=>{const s=this.sideMenuItemService.parseFacility(t),i=this.sideMenuItemService.parseResource(e,!1);this.sideMenuService.setFacilityMenuItems([s,i]),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new u.a).transform(e,!0),this.vosManagerService.getVoById(e.voId).subscribe(t=>{const s=this.sideMenuItemService.parseVo(t),i=this.sideMenuItemService.parseResource(e,!0);this.sideMenuService.setAccessMenuItems([s,i]),this.loading=!1},()=>this.loading=!1)),Object(a.b)("resources",this.resource)})})}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])}editResource(){let e;this.resourcesManager.getResourceById(this.resource.id).subscribe(t=>{e=t;const s=Object(a.o)();s.width="450px",s.data={theme:"resource-theme",resource:e,dialogType:l.h.RESOURCE},this.dialog.open(l.g,s).afterClosed().subscribe(e=>{e&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(e=>{this.resource=e})})})}}return e.\u0275fac=function(t){return new(t||e)(b.Mb(h.a),b.Mb(n.g),b.Mb(n.q),b.Mb(n.m),b.Mb(r.a),b.Mb(c.a),b.Mb(d.b),b.Mb(o.h))},e.\u0275cmp=b.Gb({type:e,selectors:[["app-resource-detail-page"]],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,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit resource",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["class","resource-link",3,"routerLink",4,"ngIf"],["mat-icon-button","","aria-label","Edit resource",3,"click"]],template:function(e,t){1&e&&(b.Sb(0,"div",0),b.Nb(1,"perun-web-apps-back-button"),b.Hc(2,A,1,0,"mat-spinner",1),b.Hc(3,L,24,30,"div",2),b.Rb()),2&e&&(b.Ab(2),b.kc("ngIf",t.loading),b.Ab(1),b.kc("ngIf",!t.loading&&void 0!==t.resource))},directives:[p.a,g.t,f.c,S.a,m.a,g.w,h.i,I.a,R.b],pipes:[E.d],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[i.a]}}),e})()},"y/MV":function(e,t,s){"use strict";s.d(t,"a",(function(){return h}));var i=s("X2Q7"),r=s("Ssnw"),c=s("EM62"),n=s("sEIs"),a=s("2kYt"),o=s("csyo"),u=s("ZG5M");function l(e,t){1&e&&c.Nb(0,"mat-spinner",2)}function b(e,t){if(1&e&&(c.Sb(0,"div"),c.Nb(1,"perun-web-apps-menu-buttons-field",3),c.Rb()),2&e){const e=c.dc();c.Ab(1),c.kc("items",e.navItems)("size","small")}}let h=(()=>{class e{constructor(e,t,s){this.resourcesManager=e,this.route=t,this.guiAuthResolver=s,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.resourcesManager.getResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1},()=>this.loading=!1)})}initItems(e){const t=e?"/organizations/"+this.resource.voId:"/facilities/"+this.resource.facilityId;this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:`${t}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:`/${t}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:`${t}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${t}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${t}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(c.Mb(i.m),c.Mb(n.a),c.Mb(r.h))},e.\u0275cmp=c.Gb({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&c.Eb("router-component",!0)},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,t){1&e&&(c.Hc(0,l,1,0,"mat-spinner",0),c.Hc(1,b,2,2,"div",1)),2&e&&(c.kc("ngIf",t.loading),c.Ab(1),c.kc("ngIf",!t.loading))},directives:[a.t,o.c,u.a],styles:[""]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/2-es5.fb5fba5fffcebe71e489.js b/dist/apps/admin-gui/2-es5.fb5fba5fffcebe71e489.js new file mode 100644 index 000000000..cb3695eaa --- /dev/null +++ b/dist/apps/admin-gui/2-es5.fb5fba5fffcebe71e489.js @@ -0,0 +1 @@ +!function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var i=0;i_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdmin()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Mb(d.a),f.Mb(n.m),f.Mb(c.pb),f.Mb(h.b),f.Mb(b.h))},t.\u0275cmp=f.Gb({type:t,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","services","selection","filterValue","hideColumns","disableRouting","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","services","selection","filterValue","hideColumns","disableRouting","page"]],template:function(e,t){1&e&&(f.Sb(0,"h1",0),f.Jc(1),f.ec(2,"translate"),f.Rb(),f.Sb(3,"perun-web-apps-refresh-button",1),f.Zb("refresh",(function(){return t.loadAllServices()})),f.Rb(),f.Hc(4,E,3,3,"button",2),f.Hc(5,A,3,4,"button",3),f.Sb(6,"perun-web-apps-immediate-filter",4),f.Zb("filter",(function(e){return t.applyFilter(e)})),f.Rb(),f.Hc(7,y,1,0,"mat-spinner",5),f.Hc(8,M,1,8,"app-services-list",6)),2&e&&(f.Ab(1),f.Kc(f.fc(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),f.Ab(3),f.kc("ngIf",!t.loadingResource&&t.assignServiceAuth),f.Ab(1),f.kc("ngIf",!t.loadingResource&&t.removeServiceAuth),f.Ab(1),f.kc("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),f.Ab(1),f.kc("ngIf",t.loading),f.Ab(1),f.kc("ngIf",!t.loading))},directives:[p.a,g.t,v.a,S.b,m.c,I.a],pipes:[R.d],styles:[""]}),t}()},gxIj:function(t,r,s){"use strict";s.d(r,"a",(function(){return N}));var n=s("Ssnw"),c=(s("HHEo"),s("cqs0")),a=s("mEf3"),o=s("8clQ"),u=s("X2Q7"),l=s("iyZ4"),b=s("+0js"),f=s("IDQ9"),d=s("EM62"),h=s("sEIs"),p=s("OZ4H"),g=s("s2Ay"),v=s("KZIX"),S=s("0XDM"),m=s("PBFl"),I=s("A8Ay"),R=s("2kYt"),E=s("csyo"),A=s("LKLE"),y=s("bdug"),T=["list"];function k(e,t){1&e&&(d.Jc(0),d.ec(1,"translate")),2&e&&d.Lc(" ",d.fc(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function M(e,t){1&e&&d.Nb(0,"mat-spinner",10)}function _(e,t){if(1&e){var i=d.Tb();d.Sb(0,"perun-web-apps-attributes-list",11,12),d.Zb("page",(function(e){return d.xc(i),d.dc().pageChanged(e)})),d.Rb()}if(2&e){var r=d.dc();d.kc("pageSize",r.pageSize)("filterValue",r.filterValue)("attributes",r.attributes)("selection",r.selection)}}function C(e,t){1&e&&(d.Jc(0),d.ec(1,"translate"),d.ec(2,"translate")),2&e&&d.Mc(" ",d.fc(1,2,"RESOURCE_DETAIL.ENTITY")," - ",d.fc(2,4,"MEMBER_DETAIL.ENTITY")," ")}function O(e,t){if(1&e&&d.Nb(0,"app-two-entity-attribute-page",15),2&e){var i=d.dc(3);d.kc("firstEntity","resource")("firstEntityId",i.resourceId)("secondEntity","member")}}function w(e,t){if(1&e&&d.Hc(0,O,1,3,"app-two-entity-attribute-page",14),2&e){var i=d.dc(2);d.kc("ngIf",!i.loading)}}function G(e,t){1&e&&(d.Sb(0,"mat-tab"),d.Hc(1,C,3,6,"ng-template",1),d.Hc(2,w,1,1,"ng-template",13),d.Rb())}function L(e,t){1&e&&(d.Jc(0),d.ec(1,"translate"),d.ec(2,"translate")),2&e&&d.Mc(" ",d.fc(1,2,"RESOURCE_DETAIL.ENTITY")," - ",d.fc(2,4,"GROUP_DETAIL.ENTITY")," ")}function U(e,t){if(1&e&&d.Nb(0,"app-two-entity-attribute-page",15),2&e){var i=d.dc(3);d.kc("firstEntity","resource")("firstEntityId",i.resourceId)("secondEntity","group")}}function z(e,t){if(1&e&&d.Hc(0,U,1,3,"app-two-entity-attribute-page",14),2&e){var i=d.dc(2);d.kc("ngIf",!i.loading)}}function D(e,t){1&e&&(d.Sb(0,"mat-tab"),d.Hc(1,L,3,6,"ng-template",1),d.Hc(2,z,1,1,"ng-template",13),d.Rb())}var N=function(){var t=function(){function t(i,r,s,n,a,o,u,b){var f=this;e(this,t),this.attributesManager=i,this.route=r,this.dialog=s,this.notificator=n,this.tableConfigService=a,this.translate=o,this.authResolver=u,this.resourceManager=b,this.attributes=[],this.selection=new c.c(!0,[]),this.filterValue="",this.tableId=l.r,this.translate.get("RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe((function(e){return f.saveSuccessMessage=e})),this.translate.get("RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe((function(e){return f.deleteSuccessMessage=e}))}return i(t,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(t){e.resourceId=parseInt(t.resourceId,10),e.resourceManager.getResourceById(e.resourceId).subscribe((function(t){e.resource=t,e.resourceGroupAttAuth=e.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[e.resource]),e.resourceMemberAttAuth=e.authResolver.isAuthorized("getAssignedRichMembers_Resource_policy",[e.resource]),e.refreshTable()}))}))}},{key:"onDelete",value:function(){var e=this,t=Object(o.o)();t.width="450px",t.data={entityId:this.resourceId,entity:"resource",attributes:this.selection.selected,theme:"resource-theme"},this.dialog.open(a.a,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"onSave",value:function(){var e=this;this.list.updateMapAttributes();var t=Object(o.o)();t.width="450px",t.data={entityId:this.resourceId,entity:"resource",attributes:this.selection.selected},this.dialog.open(b.f,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"onCreate",value:function(){var e=this,t=Object(o.o)();t.width="1050px",t.data={entityId:this.resourceId,entity:"resource",notEmptyAttributes:this.attributes,style:"resource-theme"},this.dialog.open(f.a,t).afterClosed().subscribe((function(t){"saved"===t&&e.refreshTable()}))}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.attributesManager.getResourceAttributes(this.resourceId).subscribe((function(t){e.attributes=t,e.selection.clear(),e.loading=!1}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Mb(u.c),d.Mb(h.a),d.Mb(p.b),d.Mb(n.l),d.Mb(l.pb),d.Mb(g.e),d.Mb(n.h),d.Mb(u.m))},t.\u0275cmp=d.Gb({type:t,selectors:[["app-resource-attributes"]],viewQuery:function(e,t){var i;1&e&&d.Qc(T,!0),2&e&&d.sc(i=d.ac())&&(t.list=i.first)},hostVars:2,hostBindings:function(e,t){2&e&&d.Eb("router-component",!0)},decls:22,vars:19,consts:[[1,"page-subtitle"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"mat-tab-group"),d.Sb(5,"mat-tab"),d.Hc(6,k,2,3,"ng-template",1),d.Sb(7,"perun-web-apps-refresh-button",2),d.Zb("refresh",(function(){return t.refreshTable()})),d.Rb(),d.Sb(8,"button",3),d.Zb("click",(function(){return t.onCreate()})),d.Jc(9),d.ec(10,"translate"),d.Rb(),d.Sb(11,"button",4),d.Zb("click",(function(){return t.onSave()})),d.Jc(12),d.ec(13,"translate"),d.Rb(),d.Sb(14,"button",5),d.Zb("click",(function(){return t.onDelete()})),d.Jc(15),d.ec(16,"translate"),d.Rb(),d.Sb(17,"perun-web-apps-immediate-filter",6),d.Zb("filter",(function(e){return t.applyFilter(e)})),d.Rb(),d.Hc(18,M,1,0,"mat-spinner",7),d.Hc(19,_,2,4,"perun-web-apps-attributes-list",8),d.Rb(),d.Hc(20,G,3,0,"mat-tab",9),d.Hc(21,D,3,0,"mat-tab",9),d.Rb(),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,11,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),d.Ab(7),d.Lc(" ",d.fc(10,13,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),d.Ab(2),d.kc("disabled",0===t.selection.selected.length),d.Ab(1),d.Lc(" ",d.fc(13,15,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),d.Ab(2),d.kc("disabled",0===t.selection.selected.length),d.Ab(1),d.Lc(" ",d.fc(16,17,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),d.Ab(2),d.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),d.Ab(1),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading),d.Ab(1),d.kc("ngIf",t.resourceMemberAttAuth),d.Ab(1),d.kc("ngIf",t.resourceGroupAttAuth))},directives:[v.c,v.a,v.d,S.a,m.b,I.a,R.t,E.c,A.a,v.b,y.a],pipes:[g.d],styles:[""]}),t}()},jblC:function(t,r,s){"use strict";s.d(r,"a",(function(){return w}));var n=s("X2Q7"),c=s("cqs0"),a=s("ILoV"),o=s("VEwN"),u=s("iyZ4"),l=s("8clQ"),b=s("Ssnw"),f=s("EM62"),d=s("sEIs"),h=s("OZ4H"),p=s("0XDM"),g=s("2kYt"),v=s("PBFl"),S=s("Y2X+"),m=s("pynj"),I=s("csyo"),R=s("K9kF"),E=s("FcRk"),A=s("s2Ay"),y=["checkbox"];function T(e,t){if(1&e){var i=f.Tb();f.Sb(0,"button",9),f.Zb("click",(function(){return f.xc(i),f.dc().addGroup()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}2&e&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function k(e,t){1&e&&f.Nb(0,"mat-spinner",10)}var M=function(e){return[e]},_=function(){return["vo","recent","expiration","menu"]};function C(e,t){if(1&e){var i=f.Tb();f.Sb(0,"div",11),f.Sb(1,"perun-web-apps-groups-list",12),f.Zb("page",(function(e){return f.xc(i),f.dc().pageChanged(e)})),f.Rb(),f.Rb()}if(2&e){var r=f.dc();f.Ab(1),f.kc("pageSize",r.pageSize)("groups",r.assignedGroups)("filter",r.filteredValue)("selection",r.selected)("disableMembers",!1)("disableRouting",!r.guiAuthResolver.isAuthorized("getGroupById_int_policy",f.pc(7,M,r.assignedGroups[0])))("hideColumns",f.oc(9,_))}}function O(e,t){1&e&&(f.Sb(0,"app-alert",13),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&e&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.NO_GROUPS"),"\n"))}var w=function(){var t=function(){function t(i,r,s,n,a,o){e(this,t),this.route=i,this.resourcesManager=r,this.vosManagerService=s,this.tableConfigService=n,this.dialog=a,this.guiAuthResolver=o,this.assignedGroups=[],this.selected=new c.c(!0,[]),this.filteredValue="",this.tableId=u.S}return i(t,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe((function(t){e.resourceId=t.resourceId,e.getDataForAuthorization(),e.loadAllGroups()}))}},{key:"loadAllGroups",value:function(){var e=this;this.loading=!0,this.resourcesManager.getAssignedGroups(this.resourceId).subscribe((function(t){e.assignedGroups=t,e.selected.clear(),e.loading=!1}))}},{key:"addGroup",value:function(){var e=this,t=Object(l.o)();t.width="800px",t.data={theme:"resource-theme",resource:this.resource},this.dialog.open(o.a,t).afterClosed().subscribe((function(t){t&&e.loadAllGroups()}))}},{key:"removeGroups",value:function(){var e=this,t=Object(l.o)();t.width="500px",t.data={resourceId:this.resourceId,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(a.a,t).afterClosed().subscribe((function(t){t&&e.loadAllGroups()}))}},{key:"canRemoveGroups",value:function(){var e=this,t=!0;return this.selected.selected.forEach((function(i){e.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[e.resource,i])||(t=!1)})),t}},{key:"applyFilter",value:function(e){this.filteredValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"getDataForAuthorization",value:function(){var e=this;this.loadingResource=!0,this.resourcesManager.getResourceById(this.resourceId).subscribe((function(t){e.resource=t,e.loadingResource=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Mb(d.a),f.Mb(n.m),f.Mb(n.q),f.Mb(u.pb),f.Mb(h.b),f.Mb(b.h))},t.\u0275cmp=f.Gb({type:t,selectors:[["app-perun-web-apps-resource-groups"]],viewQuery:function(e,t){var i;1&e&&f.Dc(y,!0),2&e&&f.sc(i=f.ac())&&(t.checkbox=i.first)},decls:14,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"pageSize","groups","filter","selection","disableMembers","disableRouting","hideColumns","page"],["alert_type","warn"]],template:function(e,t){1&e&&(f.Sb(0,"h1",0),f.Jc(1),f.ec(2,"translate"),f.Rb(),f.Sb(3,"perun-web-apps-refresh-button",1),f.Zb("refresh",(function(){return t.loadAllGroups()})),f.Rb(),f.Hc(4,T,3,3,"button",2),f.Sb(5,"button",3),f.Zb("click",(function(){return t.removeGroups()})),f.Sb(6,"span",4),f.ec(7,"translate"),f.Jc(8),f.ec(9,"translate"),f.Rb(),f.Rb(),f.Sb(10,"perun-web-apps-debounce-filter",5),f.Zb("filter",(function(e){return t.applyFilter(e)})),f.Rb(),f.Hc(11,k,1,0,"mat-spinner",6),f.Hc(12,C,2,10,"div",7),f.Hc(13,O,3,3,"app-alert",8)),2&e&&(f.Ab(1),f.Kc(f.fc(2,10,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),f.Ab(3),f.kc("ngIf",!t.loadingResource&&t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",f.pc(16,M,t.resource))),f.Ab(1),f.kc("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),f.Ab(1),f.lc("matTooltip",f.fc(7,12,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),f.kc("matTooltipDisabled",t.canRemoveGroups()),f.Ab(2),f.Lc(" ",f.fc(9,14,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),f.Ab(2),f.kc("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),f.Ab(1),f.kc("ngIf",t.loading),f.Ab(1),f.kc("ngIf",!t.loading&&0!==t.assignedGroups.length),f.Ab(1),f.kc("ngIf",0===t.assignedGroups.length&&!t.loading))},directives:[p.a,g.t,v.b,S.a,m.a,I.c,R.a,E.a],pipes:[A.d],styles:[""]}),t}()},lfUW:function(t,r,s){"use strict";s.d(r,"a",(function(){return R}));var n=s("X2Q7"),c=s("iyZ4"),a=s("Ssnw"),o=s("EM62"),u=s("sEIs"),l=s("2kYt"),b=s("0XDM"),f=s("A8Ay"),d=s("csyo"),h=s("nz2m"),p=s("s2Ay");function g(e,t){if(1&e){var i=o.Tb();o.Sb(0,"perun-web-apps-refresh-button",5),o.Zb("refresh",(function(){return o.xc(i),o.dc().refreshTable()})),o.Rb()}}function v(e,t){if(1&e){var i=o.Tb();o.Sb(0,"perun-web-apps-immediate-filter",6),o.Zb("filter",(function(e){return o.xc(i),o.dc().applyFilter(e)})),o.Rb()}2&e&&o.kc("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER")}function S(e,t){1&e&&o.Nb(0,"mat-spinner",7)}var m=function(){return["checkbox","email","status","groupStatus","sponsored","organization","logins","type"]};function I(e,t){if(1&e){var i=o.Tb();o.Sb(0,"perun-web-apps-members-list",8),o.Zb("page",(function(e){return o.xc(i),o.dc().pageChanged(e)}))("updateTable",(function(){return o.xc(i),o.dc().refreshTable()})),o.Rb()}if(2&e){var r=o.dc();o.kc("disableRouting",!r.routeAuth)("filter",r.filterValue)("hideColumns",o.oc(5,m))("members",r.members)("pageSize",r.pageSize)}}var R=function(){var t=function(){function t(i,r,s,n){e(this,t),this.route=i,this.resourceService=r,this.tableConfigService=s,this.authResolver=n,this.loading=!1,this.filterValue="",this.tableId=c.V}return i(t,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(t){e.resourceId=t.resourceId,e.refreshTable()}))}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.resourceService.getAssignedRichMembers(this.resourceId).subscribe((function(t){e.members=t,e.setAuthRights(),e.loading=!1}))}},{key:"setAuthRights",value:function(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(u.a),o.Mb(n.m),o.Mb(c.pb),o.Mb(a.h))},t.\u0275cmp=o.Gb({type:t,selectors:[["app-resource-assigned-members"]],decls:7,vars:7,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filter","hideColumns","members","pageSize","page","updateTable",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filter","hideColumns","members","pageSize","page","updateTable"]],template:function(e,t){1&e&&(o.Sb(0,"h1",0),o.Jc(1),o.ec(2,"translate"),o.Rb(),o.Hc(3,g,1,0,"perun-web-apps-refresh-button",1),o.Hc(4,v,1,1,"perun-web-apps-immediate-filter",2),o.Hc(5,S,1,0,"mat-spinner",3),o.Hc(6,I,1,6,"perun-web-apps-members-list",4)),2&e&&(o.Ab(1),o.Kc(o.fc(2,5,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),o.Ab(2),o.kc("ngIf",!t.loading),o.Ab(1),o.kc("ngIf",!t.loading),o.Ab(1),o.kc("ngIf",t.loading),o.Ab(1),o.kc("ngIf",!t.loading))},directives:[l.t,b.a,f.a,d.c,h.a],pipes:[p.d],styles:[""]}),t}()},nSPi:function(t,r,s){"use strict";s.d(r,"a",(function(){return z}));var n=s("TkCa"),c=s("4sdY"),a=s("EkAj"),o=s("X2Q7"),u=s("8clQ"),l=s("Ssnw"),b=s("t47Z"),f=s("+0js"),d=s("EM62"),h=s("sEIs"),p=s("OZ4H"),g=s("EtYo"),v=s("2kYt"),S=s("csyo"),m=s("bFHC"),I=s("Y2X+"),R=s("ma6z"),E=s("PBFl"),A=s("s2Ay");function y(e,t){1&e&&d.Nb(0,"mat-spinner",3)}function T(e,t){if(1&e){var i=d.Tb();d.Sb(0,"button",13),d.Zb("click",(function(){return d.xc(i),d.dc(2).editResource()})),d.Sb(1,"mat-icon"),d.Jc(2,"edit"),d.Rb(),d.Rb()}}var k=function(e){return["/organizations",e]};function M(e,t){if(1&e&&(d.Sb(0,"a",8),d.Jc(1),d.Rb()),2&e){var i=d.dc(2);d.kc("routerLink",d.pc(2,k,i.resource.vo.id)),d.Ab(1),d.Kc(i.resource.vo.name)}}function _(e,t){if(1&e&&(d.Sb(0,"span"),d.Jc(1),d.Rb()),2&e){var i=d.dc(2);d.Ab(1),d.Lc(" ",i.resource.vo.name," ")}}var C=function(e){return["/facilities",e]};function O(e,t){if(1&e&&(d.Sb(0,"a",8),d.Jc(1),d.Rb()),2&e){var i=d.dc(2);d.kc("routerLink",d.pc(2,C,i.resource.facilityId)),d.Ab(1),d.Kc(i.resource.facility.name)}}function w(e,t){if(1&e&&(d.Sb(0,"span"),d.Jc(1),d.Rb()),2&e){var i=d.dc(2);d.Ab(1),d.Lc(" ",i.resource.facility.name," ")}}var G=function(){return{color:"black"}},L=function(e){return[e]};function U(e,t){if(1&e&&(d.Sb(0,"div"),d.Sb(1,"div",4),d.Nb(2,"mat-icon",5),d.ec(3,"translate"),d.Sb(4,"div",6),d.Sb(5,"div",7),d.Sb(6,"a",8),d.Jc(7),d.Rb(),d.Sb(8,"span",9),d.Jc(9),d.Rb(),d.Hc(10,T,3,0,"button",10),d.Rb(),d.Sb(11,"span",11),d.Jc(12),d.ec(13,"translate"),d.ec(14,"translate"),d.Hc(15,M,2,4,"a",12),d.Hc(16,_,2,1,"span",2),d.Jc(17),d.ec(18,"translate"),d.Hc(19,O,2,4,"a",12),d.Hc(20,w,2,1,"span",2),d.Jc(21),d.ec(22,"translate"),d.Rb(),d.Rb(),d.Rb(),d.Nb(23,"app-animated-router-outlet"),d.Rb()),2&e){var i=d.dc();d.Ab(2),d.lc("matTooltip",d.fc(3,17,"RESOURCE_DETAIL.ENTITY")),d.kc("ngStyle",d.oc(27,G)),d.Ab(4),d.kc("routerLink",d.pc(28,L,i.baseUrl)),d.Ab(1),d.Lc(" ",i.resource.name," "),d.Ab(2),d.Lc(" \xa0#",i.resource.id," "),d.Ab(1),d.kc("ngIf",i.editResourceAuth),d.Ab(2),d.Mc(" ",d.fc(13,19,"RESOURCE_DETAIL.ENTITY"),", ",d.fc(14,21,"RESOURCE_DETAIL.VO"),": "),d.Ab(3),d.kc("ngIf",i.voLinkAuth),d.Ab(1),d.kc("ngIf",!i.voLinkAuth),d.Ab(1),d.Mc(" #",i.resource.voId,", ",d.fc(18,23,"RESOURCE_DETAIL.FACILITY"),": "),d.Ab(2),d.kc("ngIf",i.facilityLinkAuth),d.Ab(1),d.kc("ngIf",!i.facilityLinkAuth),d.Ab(1),d.Nc(" #",i.resource.facilityId,", ",d.fc(22,25,"RESOURCE_DETAIL.DESCRIPTION"),": ",i.resource.description," ")}}var z=function(){var t=function(){function t(i,r,s,n,c,a,o,u){e(this,t),this.route=i,this.facilityManager=r,this.vosManagerService=s,this.resourcesManager=n,this.sideMenuService=c,this.sideMenuItemService=a,this.dialog=o,this.guiAuthResolver=u,this.baseUrl="",this.loading=!1}return i(t,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.params.subscribe((function(t){e.resourcesManager.getRichResourceById(t.resourceId).subscribe((function(t){e.resource=t,e.setAuth(),"facilities"===e.route.parent.snapshot.url[0].path?(e.baseUrl=(new b.a).transform(t,!1),e.facilityManager.getFacilityById(t.facilityId).subscribe((function(i){var r=e.sideMenuItemService.parseFacility(i),s=e.sideMenuItemService.parseResource(t,!1);e.sideMenuService.setFacilityMenuItems([r,s]),e.loading=!1}),(function(){return e.loading=!1}))):(e.baseUrl=(new b.a).transform(t,!0),e.vosManagerService.getVoById(t.voId).subscribe((function(i){var r=e.sideMenuItemService.parseVo(i),s=e.sideMenuItemService.parseResource(t,!0);e.sideMenuService.setAccessMenuItems([r,s]),e.loading=!1}),(function(){return e.loading=!1}))),Object(u.b)("resources",e.resource)}))}))}},{key:"setAuth",value:function(){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])}},{key:"editResource",value:function(){var e,t=this;this.resourcesManager.getResourceById(this.resource.id).subscribe((function(i){e=i;var r=Object(u.o)();r.width="450px",r.data={theme:"resource-theme",resource:e,dialogType:f.h.RESOURCE},t.dialog.open(f.g,r).afterClosed().subscribe((function(e){e&&t.resourcesManager.getRichResourceById(t.resource.id).subscribe((function(e){t.resource=e}))}))}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Mb(h.a),d.Mb(o.g),d.Mb(o.q),d.Mb(o.m),d.Mb(c.a),d.Mb(a.a),d.Mb(p.b),d.Mb(l.h))},t.\u0275cmp=d.Gb({type:t,selectors:[["app-resource-detail-page"]],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,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit resource",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["class","resource-link",3,"routerLink",4,"ngIf"],["mat-icon-button","","aria-label","Edit resource",3,"click"]],template:function(e,t){1&e&&(d.Sb(0,"div",0),d.Nb(1,"perun-web-apps-back-button"),d.Hc(2,y,1,0,"mat-spinner",1),d.Hc(3,U,24,30,"div",2),d.Rb()),2&e&&(d.Ab(2),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading&&void 0!==t.resource))},directives:[g.a,v.t,S.c,m.a,I.a,v.w,h.i,R.a,E.b],pipes:[A.d],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[n.a]}}),t}()},"y/MV":function(t,r,s){"use strict";s.d(r,"a",(function(){return h}));var n=s("X2Q7"),c=s("Ssnw"),a=s("EM62"),o=s("sEIs"),u=s("2kYt"),l=s("csyo"),b=s("ZG5M");function f(e,t){1&e&&a.Nb(0,"mat-spinner",2)}function d(e,t){if(1&e&&(a.Sb(0,"div"),a.Nb(1,"perun-web-apps-menu-buttons-field",3),a.Rb()),2&e){var i=a.dc();a.Ab(1),a.kc("items",i.navItems)("size","small")}}var h=function(){var t=function(){function t(i,r,s){e(this,t),this.resourcesManager=i,this.route=r,this.guiAuthResolver=s,this.navItems=[],this.loading=!1}return i(t,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.params.subscribe((function(t){e.resourcesManager.getResourceById(t.resourceId).subscribe((function(t){e.resource=t,e.initItems("facilities"!==e.route.parent.parent.snapshot.url[0].path),e.loading=!1}),(function(){return e.loading=!1}))}))}},{key:"initItems",value:function(e){var t=e?"/organizations/"+this.resource.voId:"/facilities/"+this.resource.facilityId;this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:"".concat(t,"/resources/").concat(this.resource.id,"/groups"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:"/".concat(t,"/resources/").concat(this.resource.id,"/services"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:"".concat(t,"/resources/").concat(this.resource.id,"/members"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"".concat(t,"/resources/").concat(this.resource.id,"/attributes"),label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:"".concat(t,"/resources/").concat(this.resource.id,"/settings"),label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.m),a.Mb(o.a),a.Mb(c.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&a.Eb("router-component",!0)},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,t){1&e&&(a.Hc(0,f,1,0,"mat-spinner",0),a.Hc(1,d,2,2,"div",1)),2&e&&(a.kc("ngIf",t.loading),a.Ab(1),a.kc("ngIf",!t.loading))},directives:[u.t,l.c,b.a],styles:[""]}),t}()}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/3rdpartylicenses.txt b/dist/apps/admin-gui/3rdpartylicenses.txt new file mode 100644 index 000000000..5d5d74c6f --- /dev/null +++ b/dist/apps/admin-gui/3rdpartylicenses.txt @@ -0,0 +1,1952 @@ +@angular-devkit/build-angular +MIT +The MIT License + +Copyright (c) 2017 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@angular/animations +MIT + +@angular/cdk +MIT +The MIT License + +Copyright (c) 2020 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/material +MIT +The MIT License + +Copyright (c) 2020 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/platform-browser +MIT + +@angular/router +MIT + +@hpcc-js/wasm +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@ngx-translate/core +MIT + +@ngx-translate/http-loader +MIT + +@swimlane/ngx-charts +MIT +MIT License + +Copyright (c) 2017 Swimlane + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@swimlane/ngx-graph +MIT +(The MIT License) + +Copyright (c) 2016 Swimlane + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +bootstrap +MIT +The MIT License (MIT) + +Copyright (c) 2011-2020 Twitter, Inc. +Copyright (c) 2011-2020 The Bootstrap Authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +core-js +MIT +Copyright (c) 2014-2020 Denis Pushkarev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +css-loader +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +d3-array +BSD-3-Clause +Copyright 2010-2018 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-brush +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-collection +BSD-3-Clause +Copyright 2010-2016, Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-color +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-dispatch +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-drag +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-ease +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +Copyright 2001 Robert Penner +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-force +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-format +BSD-3-Clause +Copyright 2010-2015 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-graphviz +BSD-3-Clause +Copyright 2017, Magnus Jacobsson +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-hierarchy +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-interpolate +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-path +BSD-3-Clause +Copyright 2015-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-quadtree +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-scale +BSD-3-Clause +Copyright 2010-2015 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-selection +BSD-3-Clause +Copyright (c) 2010-2018, Michael Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* The name Michael Bostock may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-shape +BSD-3-Clause +Copyright 2010-2015 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-time +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-time-format +BSD-3-Clause +Copyright 2010-2017 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-timer +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-transition +BSD-3-Clause +Copyright (c) 2010-2015, Michael Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* The name Michael Bostock may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +TERMS OF USE - EASING EQUATIONS + +Open source under the BSD License. + +Copyright 2001 Robert Penner +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +- Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-zoom +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +dagre +MIT +Copyright (c) 2012-2014 Chris Pettitt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +file-saver +MIT +The MIT License + +Copyright © 2016 [Eli Grey][1]. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + [1]: http://eligrey.com + + +graphlib +MIT +Copyright (c) 2012-2014 Chris Pettitt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +lodash +MIT +Copyright OpenJS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + + +ngx-mat-select-search +MIT +MIT License + +Copyright (c) 2018 Bithost GmbH + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ngx-perfect-scrollbar +MIT + +oidc-client +Apache-2.0 +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and +You must cause any modified files to carry prominent notices stating that You changed the files; and +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +perfect-scrollbar +MIT +The MIT License (MIT) Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +perun-web-apps +MIT + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +querystring +MIT + +Copyright 2012 Irakli Gozalishvili. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +regenerator-runtime +MIT +MIT License + +Copyright (c) 2014-present, Facebook, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +resize-observer-polyfill +MIT +The MIT License (MIT) + +Copyright (c) 2016 Denis Rul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +transformation-matrix +MIT +MIT License + +Copyright (c) 2017 https://github.com/chrvadala + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +tslib +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +webcola +MIT +The MIT License (MIT) + +Copyright (c) 2013 Tim Dwyer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +webpack +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2020 Google LLC. http://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/dist/apps/admin-gui/7-es2015.e70a6e548d1418c1e820.js b/dist/apps/admin-gui/7-es2015.e70a6e548d1418c1e820.js new file mode 100644 index 000000000..09c88d916 --- /dev/null +++ b/dist/apps/admin-gui/7-es2015.e70a6e548d1418c1e820.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"+7q0":function(t,e,n){var r=n("eN33"),i=n("Pz+s"),o=n("zWgn");t.exports=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o},"+DnP":function(t,e,n){var r=n("W0vE"),i=n("sjzV"),o=n("S3pA"),s=n("wxYD");t.exports=function(t,e){return(s(t)?r:i)(t,o(e,3))}},"+WAL":function(t,e,n){var r=n("0Jj1");t.exports=function(t){try{r(t)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},"+fUG":function(t,e,n){var r=n("5pfJ"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},"+jFT":function(t,e,n){"use strict";var r=n("gjtd");function i(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){o(t.edge(e))}))}function o(t){var e=t.width;t.width=t.height,t.height=e}function s(t){t.y=-t.y}function a(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"y")&&s(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"x")&&a(n)}))}(t),i(t))}}},"+ooz":function(t,e,n){var r=n("8Zrg"),i=n("kwr2"),o=n("5VYK"),s=n("Coc+"),a=n("LzM7");function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1?a[c?e[u]:u]:void 0}}},"1mr4":function(t,e,n){var r=n("SJov"),i=n("z+TE");t.exports=function(t,e){return null!=t&&i(t,e,r)}},"1qSF":function(t,e,n){t.exports={Graph:n("buMw"),version:n("5AdH")}},"1rRp":function(t,e,n){"use strict";var r=Math.PI,i=2*r,o=i-1e-6;function s(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new s}s.prototype=a.prototype={constructor:s,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,i,o){var s=this._x1,a=this._y1,c=(n=+n)-(t=+t),u=(i=+i)-(e=+e),l=s-t,h=a-e,f=l*l+h*h;if((o=+o)<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(h*c-u*l)>1e-6&&o){var d=n-s,p=i-a,g=c*c+u*u,m=d*d+p*p,v=Math.sqrt(g),b=Math.sqrt(f),y=o*Math.tan((r-Math.acos((g+f-m)/(2*v*b)))/2),w=y/b,_=y/v;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+_*c)+","+(this._y1=e+_*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,s,a,c){t=+t,e=+e,c=!!c;var u=(n=+n)*Math.cos(s),l=n*Math.sin(s),h=t+u,f=e+l,d=1^c,p=c?s-a:a-s;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),n&&(p<0&&(p=p%i+i),p>o?this._+="A"+n+","+n+",0,1,"+d+","+(t-u)+","+(e-l)+"A"+n+","+n+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=t+n*Math.cos(a))+","+(this._y1=e+n*Math.sin(a))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.a=a},"1xil":function(t,e,n){var r=n("YpBQ");t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},"1yUy":function(t,e,n){"use strict";var r=n("gjtd"),i=n("fd5j");t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function o(s){r.has(i,s)||(i[s]=!0,n[s]=!0,r.forEach(t.outEdges(s),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[s])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},"21zJ":function(t,e,n){var r=n("5Ck4");t.exports=function(t,e){return r(t,e,"post")}},"2Fbm":function(t,e,n){var r=n("5pfJ");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},"2M3I":function(t,e,n){var r=n("9au6"),i=n("R5u7"),o=n("fWyh");t.exports=function(t){return function(e,n,s){return s&&"number"!=typeof s&&i(e,n,s)&&(n=s=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),s=void 0===s?e=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),s=0;si.length&&(i.length=c,i.si=s-c+1,i.ti=a-c+1)}else o[s][a]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=c,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map((function(t,n){return new s(n,e.getBounds(t),e.getChildren(t))})),this.leaves=this.nodes.filter((function(t){return t.leaf})),this.groups=this.nodes.filter((function(t){return!t.leaf})),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach((function(t){return t.children.forEach((function(e){return i.nodes[e].parent=t}))})),this.root={children:[]},this.nodes.forEach((function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]})),this.backToFront=this.nodes.slice(0),this.backToFront.sort((function(t,e){return i.getDepth(t)-i.getDepth(e)})),this.backToFront.slice(0).reverse().filter((function(t){return!t.leaf})).forEach((function(t){var e=r.Rectangle.empty();t.children.forEach((function(t){return e=e.union(i.nodes[t].rect)})),t.rect=e.inflate(i.groupPadding)}));var o=this.midPoints(this.cols.map((function(t){return t.pos}))),c=this.midPoints(this.rows.map((function(t){return t.pos}))),u=o[0],l=o[o.length-1],h=c[0],f=c[c.length-1],d=this.rows.map((function(t){return{x1:u,x2:l,y1:t.pos,y2:t.pos}})).concat(c.map((function(t){return{x1:u,x2:l,y1:t,y2:t}}))),p=this.cols.map((function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}})).concat(o.map((function(t){return{x1:t,x2:t,y1:h,y2:f}}))),g=d.concat(p);g.forEach((function(t){return t.verts=[]})),this.verts=[],this.edges=[],d.forEach((function(t){return p.forEach((function(e){var n=new a(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],s=o.rect,c=Math.abs(n.x-s.cx()),u=Math.abs(n.y-s.cy());if(c0;){var r=n.filter((function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)})),i={nodes:r,pos:this.avg(r.map((function(e){return e.rect["c"+t]()})))};e.push(i),i.nodes.forEach((function(t){return n.splice(n.indexOf(t),1)}))}return e.sort((function(t,e){return t.pos-e.pos})),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&a.push(c={pos:l[0][e],segments:[]}),c.segments.push(l)}return a},t.nudgeSegs=function(t,e,n,r,o,s){var a=r.length;if(!(a<=1)){for(var c=r.map((function(e){return new i.Variable(e[0][t])})),u=[],l=0;l=0&&u.push(new i.Constraint(c[g],c[m],s))}new i.Solver(c,u).solve(),c.forEach((function(e,i){var o=r[i],s=e.position();o[0][t]=o[1][t]=s;var a=n[o.edgeid];o.i>0&&(a[o.i-1][1][t]=s),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=u.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=u.length||h.ti+h.length>=l.length?(o=u[h.si+1],a=u[h.si-1],s=l[h.ti-1]):(o=u[h.si+h.length-2],s=u[h.si+h.length],a=l[h.ti+h.length]),t.isLeft(o,s,a)?n.push({l:i,r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0})).reverse().map((function(t){return n.verts[t]}));return c.push(this.nodes[i.id].ports[0]),c.filter((function(t,e){return!(e0&&t.node===i&&c[e-1].node===i)}))},t.getRoutePath=function(e,n,r,i){var o,s,a,c,u,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?s-=f/Math.abs(f)*n:a-=d/Math.abs(d)*n,l.routepath+="L "+s+" "+a+" ";var p=e[h+1],g=p[0].x,m=p[0].y;f=p[1].x-g,d=p[1].y-m;var v,b,y=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(v=g+f/Math.abs(f)*n,b=m):(v=g,b=m+d/Math.abs(d)*n);var w=Math.abs(v-s),_=Math.abs(b-a);l.routepath+="A "+w+" "+_+" 0 0 "+y+" "+v+" "+b+" "}else{var x=[s,a];Math.abs(f)>0?(c=[s-=f/Math.abs(f)*i,a+r],u=[s,a-r]):(c=[s+r,a-=d/Math.abs(d)*i],u=[s-r,a]),l.routepath+="L "+s+" "+a+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+c[0]+" "+c[1]+" L "+u[0]+" "+u[1])}}else f=(s=(o=e[0])[1].x)-o[0].x,d=(a=o[1].y)-o[0].y,x=[s,a],Math.abs(f)>0?(c=[s-=f/Math.abs(f)*i,a+r],u=[s,a-r]):(c=[s+r,a-=d/Math.abs(d)*i],u=[s-r,a]),l.routepath+="L "+s+" "+a+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+c[0]+" "+c[1]+" L "+u[0]+" "+u[1]);return l},t}()},"4+Vk":function(t,e,n){var r=n("vxC8")(n("IBsm"),"WeakMap");t.exports=r},"4/ik":function(t,e,n){var r=n("+ooz"),i=n("qeCs"),o=n("hyzI");t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},"4CxS":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("aj3f"),i=n("Lm04"),o=n("gbTj"),s=n("bJjD");e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce((function(t,n){var r=n[e.target]-n[e.source];return t+r*r}),0))},t}(),e.Node3D=function(){return function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n}}(),e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},"4ScB":function(t,e,n){var r=n("LtXa"),i=n("zH+d");t.exports=function(t){return r(t,i(t))}},"4e6e":function(t,e,n){t.exports={graphlib:n("vC4J"),layout:n("Pivv"),debug:n("zmx7"),util:{time:n("xxjf").time,notime:n("xxjf").notime},version:n("VQMV")}},"4jPf":function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},"4p/L":function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},"4uJK":function(t,e,n){var r=n("CbIe"),i=n("OtNC"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},"58Ui":function(t,e,n){"use strict";var r=n("gjtd"),i=n("vC4J").Graph,o=n("K8/D").slack;function s(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var s=r.v,a=i===s?r.w:s;t.hasNode(a)||o(e,r)||(t.setNode(a,{}),t.setEdge(i,a,{}),n(a))}))})),t.nodeCount()}function a(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),u=t.nodes()[0],l=t.nodeCount();for(r.setNode(u,{});s(r,t)=c?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}},"5nKN":function(t,e,n){var r=n("2q8g"),i=n("9vbJ"),o=n("tQYX"),s=n("c18h"),a=/^\[object .+?Constructor\]$/,c=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?c:a).test(s(t))}},"5pfJ":function(t,e,n){var r=n("vxC8")(Object,"create");t.exports=r},"5q8j":function(t,e){t.exports=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},"6I2w":function(t,e,n){var r=n("kkM+"),i=n("tLQN");t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},"6QIk":function(t,e,n){var r=n("pPzx");t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},"6R5o":function(t,e,n){var r=n("1aYn")(n("FllU"));t.exports=r},"6Rtw":function(t,e,n){var r=n("EAGB");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},"6UKJ":function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},"6YE2":function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},"7/jS":function(t,e,n){var r=n("Dhk8"),i=n("t0L4"),o=n("tLQN"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},"7/we":function(t,e,n){var r=n("ZjRn"),i=n("hMsr"),o=n("0Ss3");t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},"70Le":function(t,e,n){var r=n("W0vE"),i=n("X4R2"),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;t.exports=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i},"7No3":function(t,e,n){var r=n("EAGB"),i=n("lN3w"),o=n("Bstx"),s=n("bVbG"),a=n("6Rtw");t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,n);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 a(t,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Set]":return new c;case"[object Symbol]":return s(t)}}},"7Pat":function(t,e,n){var r=n("+7q0"),i=n("kG2z")(r);t.exports=i},"7SLq":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return l}));var r={},i=null;function o(t,e,n){return t=s(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function s(t,e,n){return function(r){var o=i;i=r;try{t.call(this,this.__data__,e,n)}finally{i=o}}}function a(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function c(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?r[0]+r.slice(2):r,+t.slice(n+1)]}},"7seP":function(t,e,n){var r=n("4uJK"),i=n("kkM+"),o=n("9y2L"),s=n("nDih"),a=n("GVul");t.exports=function(t){if(null==t)return 0;if(o(t))return s(t)?a(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},"8MQl":function(t,e,n){"use strict";n.r(e),n.d(e,"transition",(function(){return $})),n.d(e,"active",(function(){return it})),n.d(e,"interrupt",(function(){return d}));var r=n("PQEP"),i=n("z0Nn"),o=n("o815"),s=n("DMvL"),a=Object(i.a)("start","end","cancel","interrupt"),c=[],u=function(t,e,n,r,i,u){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(o){var l,h,f,d;if(1!==n.state)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return Object(s.a)(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var d=function(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete t.__transition}},p=n("xgqZ"),g=n("4SAC");function m(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?l:h;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}var U=n("D2D4"),G=n("q6e+"),V=r.b.prototype.constructor,H=n("PaYb");function Y(t){return function(){this.style.removeProperty(t)}}function W(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function J(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&W(t,o,n)),r}return o._value=e,o}function Z(t){return function(e){this.textContent=t.call(this,e)}}function q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Z(r)),e}return r._value=t,r}var X=0;function K(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $(t){return Object(r.b)().transition(t)}function Q(){return++X}var tt=r.b.prototype;K.prototype=$.prototype={constructor:K,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(U.a)(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s1&&n.name===e)return new K([[t]],rt,e,+r);return null}},"8Zrg":function(t,e){t.exports=function(){this.__data__=[],this.size=0}},"98dg":function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}},"9SCj":function(t,e,n){var r=n("LmOH"),i=n("Q4oW"),o=n("D49j"),s=n("wxYD");t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},"9SKQ":function(t,e,n){var r=n("JNqh");t.exports=function(t){return r(this,t).has(t)}},"9TP6":function(t,e,n){var r=n("OBn4"),i=n("nnm9"),o=n("XlL0"),s=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=s},"9au6":function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,i,o){for(var s=-1,a=r(n((e-t)/(i||1)),0),c=Array(a);a--;)c[o?a:++s]=t,t+=i;return c}},"9vbJ":function(t,e,n){var r,i=n("3KBa"),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},"9y2L":function(t,e,n){var r=n("2q8g"),i=n("t0L4");t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},AjPR:function(t,e,n){var r=n("LtXa"),i=n("70Le");t.exports=function(t,e){return r(t,i(t),e)}},AonO:function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,"b",(function(){return r})),e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},BSbB:function(t,e,n){"use strict";var r=n("4SAC"),i=n("YKAa");function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.b&&e.documentElement.namespaceURI===i.b?e.createElement(t):e.createElementNS(n,t)}}function s(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}e.a=function(t){var e=Object(r.a)(t);return(e.local?s:o)(e)}},BSqe:function(t,e){t.exports=function(t){return this.__data__.get(t)}},Bitd:function(t,e,n){"use strict";var r=n("CQYr"),i=n("pmbw");e.a=function(t,e,n){arguments.length<3&&(n=e,e=Object(r.a)().changedTouches);for(var o,s=0,a=e?e.length:0;s=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-u>-1e-4&&(u=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach((function(t){var e,n,r,o,s;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,s=0,e.array.forEach((function(t){var e=void 0!==t.width?t.width:i,a=void 0!==t.height?t.height:i;e/=2,a/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),s=Math.max(t.y+a,s),r=Math.min(t.y-a,r)})),e.width=o-n,e.height=s-r}))}(t),function(t,e){var n=Number.POSITIVE_INFINITY,i=0;t.sort((function(t,e){return e.height-t.height}));for(var o=g=h=t.reduce((function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=s-(s-o)/r;c=p(t,g)}if(0!=l){var m=o+(s-o)/r;u=p(t,m)}if(f=Math.abs(g-m),d=Math.abs(c-u),cu?(o=g,g=m,c=u,l=1):(s=m,m=g,u=c,l=0),a++>100)break}p(t,i)}(t),s&&function(t){t.forEach((function(t){var e={x:0,y:0};t.array.forEach((function(t){e.x+=t.x,e.y+=t.y})),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+a/2-u/2,r=t.y-(e.y-t.height/2)+c/2-l/2;t.array.forEach((function(t){t.x+=n,t.y+=r}))}))}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,s=0;s-1}},D2D4:function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},D49j:function(t,e,n){var r=n("zWgn");t.exports=function(t){return"function"==typeof t?t:r}},D5rW:function(t,e,n){var r=n("gjtd"),i=n("vC4J").Graph;t.exports=function(t,e,n){var o=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var a=t.node(i),c=t.parent(i);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(s.setNode(i),s.setParent(i,c||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:t.edge(e).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),s}},DMvL:function(t,e,n){"use strict";var r=n("o815");e.a=function(t,e,n){var i=new r.a;return i.restart((function(n){i.stop(),t(n+e)}),e=null==e?0:+e,n),i}},Dhk8:function(t,e,n){var r=n("Syyo"),i=n("KCLV"),o=n("kHoZ"),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},DjCF:function(t,e){t.exports=function(){return!1}},DuXo:function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++oc.lim&&(u=c,l=!0);var h=r.filter(e.edges(),(function(e){return l===b(0,t.node(e.v),u)&&l!==b(0,t.node(e.w),u)}));return r.minBy(h,(function(t){return o(e,t)}))}function v(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=a(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function b(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=m,l.exchangeEdges=v},ENE1:function(t,e,n){var r=n("IBsm");t.exports=function(){return r.Date.now()}},FaiA:function(t,e){t.exports=function(t,e){return t>e}},FllU:function(t,e,n){var r=n("DuXo"),i=n("S3pA"),o=n("m2YG"),s=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var c=null==n?0:o(n);return c<0&&(c=s(a+c,0)),r(t,i(e,3),c)}},GEHm:function(t,e,n){"use strict";var r=n("157b"),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");e.a=function(t,e){var n,s,a,c=i.lastIndex=o.lastIndex=0,u=-1,l=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(s=o.exec(e));)(a=s.index)>c&&(a=e.slice(c,a),l[u]?l[u]+=a:l[++u]=a),(n=n[0])===(s=s[0])?l[u]?l[u]+=s:l[++u]=s:(l[++u]=null,h.push({i:u,x:Object(r.a)(n,s)})),c=o.lastIndex;return c=t.barycenter)&&(o=0,s=0,(n=t).weight&&(o+=n.barycenter*n.weight,s+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,s+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/s,n.weight=s,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},HsnV:function(t,e,n){var r=n("+ooz"),i=n("RNlM"),o=n("E4ao"),s=n("BSqe"),a=n("L6um"),c=n("4/ik");function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,t.exports=u},I6Yn:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return u}));var r=n("PvqL"),i=n("zL3f"),o=n("v+BR"),s=n("Lgd7");function a(t){return function(e){var n,i,o=e.length,s=new Array(o),a=new Array(o),c=new Array(o);for(n=0;nc||u>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(t,e,i.v,i.w),s=o.path,a=o.lca,c=0,u=s[c],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(u=s[c])!==a&&t.node(u).maxRank=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,n=[];return function t(e,n,r){e.forAll((function(e){if(e.isLeaf())n.leaves||(n.leaves=[]),n.leaves.push(e.id);else{var i=n;if(e.gid=r.length,!e.isIsland()||e.isPredefined()){if(i={id:e.gid},e.isPredefined())for(var o in e.definition)i[o]=e.definition[o];n.groups||(n.groups=[]),n.groups.push(e.gid),r.push(i)}t(e.children,i,r)}}))}(this.roots[0],{},n),this.allEdges().forEach((function(i){var o=e.modules[i.source],s=e.modules[i.target];t.push(new r(void 0===o.gid?i.source:n[o.gid],void 0===s.gid?i.target:n[s.gid],i.type))})),n},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll((function(e){e.getEdges(n),t.getEdges(e.children,n)}))},t}();e.Configuration=i;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new a),void 0===n&&(n=new a),void 0===r&&(r=new s),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll((function(n,i){n.forAll((function(n){t.push(new r(e.id,n.id,i))}))}))},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var s=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll((function(e){e.isPredefined()||t.push(e)})),t},t}();e.ModuleSet=s;var a=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules((function(n){e||n.id!=t||(e=!0)})),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new s).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll((function(e,n){return e.forAll(t)}))},t.prototype.intersection=function(e){var n=new t;return this.forAll((function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}})),n},t}();e.LinkSets=a,e.getGroups=function(t,e,n,r){for(var o=new i(t.length,e,n,r);o.greedyMerge(););var s=[],a=o.getGroupHierarchy(s);return s.forEach((function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")})),{groups:a,powerEdges:s}}},JYmt:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},JcJ6:function(t,e,n){var r=n("Syyo"),i=n("H87J"),o=n("wxYD"),s=n("a88S"),a=r?r.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},Jl0P:function(t,e,n){var r;try{r={clone:n("zr3P"),constant:n("eN33"),each:n("h4um"),filter:n("+DnP"),has:n("1mr4"),isArray:n("wxYD"),isEmpty:n("MwrP"),isFunction:n("2q8g"),isUndefined:n("CZlo"),keys:n("BlJA"),map:n("mbB6"),reduce:n("veKZ"),size:n("7seP"),transform:n("cZX/"),union:n("aGtI"),values:n("0iyY")}}catch(i){}r||(r=window._),t.exports=r},"K8/D":function(t,e,n){"use strict";var r=n("gjtd");t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var s=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},"KAo/":function(t,e,n){var r=n("NYSw"),i=n("2srY"),o=n("NW/2"),s=n("i7nn"),a=n("+tCn"),c=n("0Ss3"),u=n("Ypsa");t.exports=function(t,e){return s(t)&&a(e)?c(u(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},KCLV:function(t,e,n){var r=n("Syyo"),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(c){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},KLrH:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r,i,o,s=n("c4If");function a(t){return r=Object(s.a)(t),i=r.format,o=r.formatPrefix,r}a({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},Kkar:function(t,e,n){var r=n("Dhk8"),i=n("/wCD"),o=n("tLQN"),s=Function.prototype.toString,a=Object.prototype.hasOwnProperty,c=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},L6um:function(t,e){t.exports=function(t){return this.__data__.has(t)}},LL3N:function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},"LPC+":function(t,e,n){var r=n("JElN"),i=n("FaiA"),o=n("zWgn");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},Lgd7:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var r=n("PXG9");function i(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(t)?e:t)}function s(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.a)(isNaN(e)?n:e)}}function a(t,e){var n=e-t;return n?i(t,n):Object(r.a)(isNaN(t)?e:t)}},Lm04:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=r,e.Descent=function(){function t(t,e,n){void 0===n&&(n=null),this.D=e,this.G=n,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new i,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 r,this.minD=Number.MAX_VALUE;for(var s,a=o;a--;)for(s=o;--s>a;){var c=e[a][s];c>0&&c1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(m=1);var v=g*g,b=2*m*(p-g)/(v*p),y=p*p*p,w=2*-m/(v*y);for(isFinite(b)||console.log(b),r=0;r0?k-(T+1)*x:k-(T-1)*x)&&f<=_&&(this.scaleSnapByMaxH?(this.g[r][c]+=a*E*f,this.H[r][c][c]+=a*E):(this.g[r][c]+=E*f,this.H[r][c][c]+=E))}this.locks.isEmpty()||this.locks.apply((function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply((function(r,i){return n.e[r][i]=t[r][i]-e[r][i]}));var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=i},LmOH:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n0}function l(t,e,n){return c(t,e,n)<0}function h(t,e){var n,r,i,o,s=e.length-1;if(l(t,e[1],e[0])&&!u(t,e[s-1],e[0]))return 0;for(n=0,r=s;;){if(r-n==1)return u(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!u(t,e[i-1],e[i]))return i;u(t,e[n+1],e[n])?o||u(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,s=e.length-1;if(u(t,e[s-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=s;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),u(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:u(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var s,a;a=r(t[s=n(e[0],t)],e);for(var c=!1;!c;){for(c=!0;s===t.length-1&&(s=0),!i(e[a],t[s],t[s+1]);)++s;for(;0===a&&(a=e.length-1),!o(t[s],e[a],e[a-1]);)--a,c=!1}return{t1:s,t2:a}}function p(t,e){return d(t,e,h,f,u,l)}e.LineSegment=a,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s),e.isLeft=c,e.ConvexHull=function(t){var e,n=t.slice(0).sort((function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y})),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(a=e+1,e=o;++e<=a;)if(!(c(n[0],n[a],n[e])>=0&&e1&&!(c(s[s.length-2],s[s.length-1],n[e])>0);)s.length-=1;0!=e&&s.push(n[e])}u!=a&&s.push(n[u]);var h=s.length;for(e=a;--e>=o;)if(!(c(n[u],n[o],n[e])>=0&&e>o)){for(;s.length>h&&!(c(s[s.length-2],s[s.length-1],n[e])>0);)s.length-=1;0!=e&&s.push(n[e])}}return s},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort((function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)})).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,u,u)};var g=function(){return function(t,e){this.t1=t,this.t2=e}}();e.BiTangent=g;var m=function(){return function(){}}();e.BiTangents=m,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s);var v=function(){return function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this}}();e.VisibilityVertex=v;var b=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function y(t,e){for(var n=[],r=1,i=e.length;r=0&&v>=0&&b<0&&y>=0&&w>=0&&_<0?i.ll=new g(o,s):p<=0&&v<=0&&b>0&&y<=0&&w<=0&&_>0?i.rr=new g(o,s):p<=0&&v>0&&b<=0&&y>=0&&w<0&&_>=0?i.rl=new g(o,s):p>=0&&v<0&&b>=0&&y<=0&&w>0&&_<=0&&(i.lr=new g(o,s))}return i}function _(t,e){return!t.every((function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new b(i[o-1].vv,s))}i.length>1&&this.E.push(new b(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(_(t,e))return!0;if(_(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},OBn4:function(t,e,n){var r=n("vxC8")(n("IBsm"),"Set");t.exports=r},OSyp:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("zyX+"),i=n("3vZi");e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach((function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}})),e.forEach((function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map((function(e){return t.length+e.id})):[]).concat(void 0!==e.leaves?e.leaves.map((function(t){return t.index})):[])}}));var o=t.concat(e).map((function(t,e){return t.routerNode.id=e,t.routerNode}));return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,(function(t){return t.source.routerNode.id}),(function(t){return t.target.routerNode.id}))},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach((function(t,e){return t.index=e})),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){return t.padding=n}))}));var o=t.nodes.length,s=[],a=t.nodes.slice(0);return a.forEach((function(t,e){return t.index=e})),i.groups.forEach((function(t){var e=t.index=t.id+o;a.push(t),void 0!==t.leaves&&t.leaves.forEach((function(t){return s.push({source:e,target:t.index})})),void 0!==t.groups&&t.groups.forEach((function(t){return s.push({source:e,target:t.id+o})}))})),i.powerEdges.forEach((function(t){s.push({source:t.source.index,target:t.target.index})})),(new r.Layout).size(e).nodes(a).links(s).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){t.padding=n}))})).start(50,0,100,0,!1),powerGraph:i}}},OUo6:function(t,e,n){var r=n("c72w"),i=n("WvmI");t.exports=function(t,e){return i(t||[],e||[],r)}},OfKG:function(t,e,n){var r=n("c7Qd");t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},OtNC:function(t,e,n){var r=n("TAtK")(Object.keys,Object);t.exports=r},PKEM:function(t,e,n){var r=n("JElN"),i=n("S3pA"),o=n("n+p3");t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},PQEP:function(t,e,n){"use strict";n.d(e,"c",(function(){return Z})),n.d(e,"a",(function(){return q}));var r=n("D2D4"),i=n("q6e+"),o=n("XlMc"),s=function(t){return new Array(t.length)};function a(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function c(t,e,n,r,i,o){for(var s,c=0,u=e.length,l=o.length;ce?1:t>=e?0:NaN}a.prototype={constructor:a,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n("4SAC");function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var b=n("PaYb");function y(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function _(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new S(t)}function S(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function k(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var z=n("BSbB");function F(){return null}function B(){var t=this.parentNode;t&&t.removeChild(this)}function U(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function G(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var V=n("7SLq"),H=n("MysN");function Y(t,e,n){var r=Object(H.a)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function W(t,e){return function(){return Y(this,t,e)}}function J(t,e){return function(){return Y(this,t,e.apply(this,arguments))}}var Z=[null];function q(t,e){this._groups=t,this._parents=e}function X(){return new q([[document.documentElement]],Z)}q.prototype=X.prototype={constructor:q,select:function(t){"function"!=typeof t&&(t=Object(r.a)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(_=y[E])&&++E=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?y:"function"==typeof e?_:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i.008856451679035631?Math.pow(t,1/3):t/T+M}function N(t){return t>A?t*t*t:T*(t-M)}function j(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function R(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function P(t){if(t instanceof z)return new z(t.h,t.c,t.l,t.opacity);if(t instanceof O||(t=D(t)),0===t.a&&0===t.b)return new z(NaN,01?this.each((null==e?i:"function"==typeof e?s:o)(t,e,null==n?"":n)):a(this.node(),t)}},Pivv:function(t,e,n){"use strict";var r=n("gjtd"),i=n("1yUy"),o=n("RmLA"),s=n("4DVH"),a=n("xxjf").normalizeRanks,c=n("JUZX"),u=n("xxjf").removeEmptyRanks,l=n("wHMW"),h=n("0gKz"),f=n("+jFT"),d=n("erCh"),p=n("Nebv"),g=n("xxjf"),m=n("vC4J").Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=M(t.graph());return e.setGraph(r.merge({},b,k(n,v),r.pick(n,y))),r.forEach(t.nodes(),(function(n){var i=M(t.node(n));e.setNode(n,r.defaults(k(i,w),_)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=M(t.edge(n));e.setEdge(n,r.merge({},E,k(i,x),r.pick(i,S)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){s(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e},"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){a(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){c(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){f.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),s=t.node(r.last(n.borderLeft)),a=t.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){f.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,c=s.marginy||0;function u(t){var r=t.x,s=t.y,a=t.width,c=t.height;e=Math.min(e,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-c/2),o=Math.max(o,s+c/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=a,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),s.width=n-e+a,s.height=o-i+c}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),s=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(s,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var v=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function k(t,e){return r.mapValues(r.pick(t,e),Number)}function M(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},PvqL:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return w})),n.d(e,"h",(function(){return E})),n.d(e,"g",(function(){return S})),n.d(e,"b",(function(){return k})),n.d(e,"f",(function(){return O}));var r=n("AonO");function i(){}var o=.7,s=1/o,a="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),f=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgba\\("+[a,a,a,c]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),g=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),m=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),v={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 y(){return this.rgb().formatRgb()}function w(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new k(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(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(t))?new k(e[1],e[2],e[3],1):(e=f.exec(t))?new k(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?D(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?D(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?_(v[t]):"transparent"===t?new k(NaN,NaN,NaN,0):null}function _(t){return new k(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new k(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new k((t=t.rgb()).r,t.g,t.b,t.opacity):new k}function S(t,e,n,r){return 1===arguments.length?E(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function M(){return"#"+T(this.r)+T(this.g)+T(this.b)}function A(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function T(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function D(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new C(t,e,n,r)}function I(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),s=Math.max(e,n,r),a=NaN,c=s-o,u=(s+o)/2;return c?(a=e===s?(n-r)/c+6*(n0&&u<1?0:a,new C(a,c,u,t.opacity)}function O(t,e,n,r){return 1===arguments.length?I(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function N(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return I(this).formatHsl()},formatRgb:y,toString:y}),Object(r.a)(k,S,Object(r.b)(i,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new k(this.r*t,this.g*t,this.b*t,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:M,formatHex:M,formatRgb:A,toString:A})),Object(r.a)(C,O,Object(r.b)(i,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new k(N(t>=240?t-240:t+120,i,r),N(t,i,r),N(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},"Pz+s":function(t,e,n){var r=n("vxC8"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},Q4oW:function(t,e,n){var r=n("zKkv"),i=n("bz5b")(r);t.exports=i},Q7Qd:function(t,e,n){!function(t,e,n,r,i,o,s,a,c,u){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var s=0;s0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function m(t,e){t.id=(e?e.id+".":"")+t.key}function v(t){u[t.id]=t}function b(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=D(e,t)),"path"!=t.tag&&(t.alternativeNew=D(t,e))))}function y(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),s=i.getTotalLength(),a=(o.setAttribute("d",e),o).getTotalLength(),c=[0],u=0,l=r?n:n/Math.max(s,a);(u+=l)<1;)c.push(u);return c.push(1),c.map((function(t){var e=i.getPointAtLength(t*s),n=o.getPointAtLength(t*a);return[[e.x,e.y],[n.x,n.y]]}))}(r,n,s,a)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),m(t,e);var n=l[t.id];v(t),b(t,n),y(t,n);var r={};t.children.forEach((function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)}))}function _(t){(function(t){if(c&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(c&&!l[t.id]&&t.parent&&A(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find((function(t){return"path"==t.tag}));n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find((function(t){return"title"==t.tag}))}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],s=h[o],a=f[o];if(a){if((p=s.children.findIndex((function(t,e){return"g"==t.tag})))>=0){var u=s.children[p].children.findIndex((function(t,e){return"a"==t.tag}));s=s.children[p].children[u]}(p=a.children.findIndex((function(t,e){return"g"==t.tag})))>=0&&(u=a.children[p].children.findIndex((function(t,e){return"a"==t.tag})),a=a.children[p].children[u]);for(var d=s.children,p=0;p0&&this._queue.shift().call(this)}function N(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function j(t,e,n,r,i,o,s){var a=d(z.call(this,o));t.data([a]),y.call(t.node(),a),R(t,e,n,r,i,o,s)}function R(t,e,n,r,i,o,s){var a=s.shortening||0,c=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-a-10-.1)*d,i=n+(f-a-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),m=g.selectWithoutDataPropagation("path"),v=g.selectWithoutDataPropagation("polygon");else m=t.selectWithoutDataPropagation("path"),v=t.selectWithoutDataPropagation("polygon");var b=u.path();b.moveTo(e,n),b.lineTo(r,i),m.attr("d",b),r=e+(f-a-10)*d,i=n+(f-a-10)*p;for(var y=0;y b ["+n+"]}","svg","dot"),a=(new window.DOMParser).parseFromString(s,"image/svg+xml");return e.select(document.createDocumentFragment()).append((function(){return a.documentElement})).select(".edge")}function F(t,e,n,r,i,o){var s=d(V.call(this,r,i));return t.data([s]),y.call(t.node(),s),B(t,e,n,i),this}function B(t,n,r,i,o){if(i.URL||i.tooltip)var s=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else s=t;var a=s.selectAll("ellipse,polygon,path,polyline"),c=t.selectWithoutDataPropagation("text");if(0!=a.size()){var u=a.node().getBBox();u.cx=u.x+u.width/2,u.cy=u.y+u.height/2}else 0!=c.size()&&(u={x:+c.attr("x"),y:+c.attr("y"),width:0,height:0,cx:+c.attr("x"),cy:+c.attr("y")});return a.each((function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",_(n)).attr("cy",_(r));else if(o.attr("points")){var s=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map((function(t){return t.split(",")}));return i=r.map((function(t){return[_(+e+ +t.split(",")[0]),_(+n+ +t.split(",")[1])]})),(r=i.map((function(t){return t.join(",")}))).join(" ")}(s,n-u.cx,r-u.cy))}else{var a=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map((function(t){return t.split(",")})),i.map((function(t){return[_(+e+ +t.split(",")[0]),_(+n+ +t.split(",")[1])]})).map((function(t){return t.join(",")})));return r.reduce((function(t,e,n){return t.concat(e,i[n])}),[]).join("")}(a,n-u.cx,r-u.cy))}})),0!=c.size()&&c.attr("x",_(+c.attr("x")+n-u.cx)).attr("y",_(+c.attr("y")+r-u.cy)),this}function U(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function G(){return this._drawnNode?this._drawnNode.g:e.select(null)}function V(t,n){for(var r="",i=0,o=Object.keys(n);i2")(s)+" ",i+=a+" ".repeat(o-a.length),i+=c.format(" >5")(t-n)+" ","initEnd"!=a&&(i+=c.format(" >5")(t-r.start[e])),"dataProcessEnd"==a&&(i+=" prepare "+c.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==a&&u._transition&&(i+=" transition start margin "+c.format(" >5")(u._transition.delay()-(t-r.renderStart[e])),l=u._transition.delay(),f=u._transition.duration()),"transitionStart"==a){var h=t-r.renderStart[e];i+=" transition delay "+c.format(" >5")(t-r.renderStart[e]),i+=" expected "+c.format(" >5")(l),i+=" diff "+c.format(" >5")(h-l)}if("transitionEnd"==a){var d=t-r.transitionStart[e];i+=" transition duration "+c.format(" >5")(d),i+=" expected "+c.format(" >5")(f),i+=" diff "+c.format(" >5")(d-f)}console.log(i),n=t}:null)},a=0;a5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var a=e.select(null);else{var c=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(z.call(this,o));a=c.append("g").data([u]),y.call(a.node(),u),j.call(this,a,t,n,r,i,o,s)}return this._drawnEdge={g:a,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var s=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!s.empty()||i.style&&i.style.includes("invis")||(s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=s),s.empty()||j.call(this,s,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,s=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,R(r,i,o,t,e,s,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),v(e,i),this._drawnEdge=null,this},removeDrawnEdge:P},"removeDrawnEdge",P),l(J,"drawnEdgeSelection",L),l(J,"drawnEdgeSelection",L),l(J,"drawNode",(function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var s=e.select(null);else{var a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(V.call(this,r,i));s=a.append("g").data([c]),y.call(s.node(),c),F.call(this,s,t,n,r,i,o)}return this._drawnNode={g:s,nodeId:r,x:t,y:n,attributes:i},this})),l(J,"updateDrawnNode",(function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||F.call(this,o,t,e,n,r,i),this})),l(J,"moveDrawnNode",(function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||B(n,t,e,r),this})),l(J,"insertDrawnNode",(function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),s=o.datum(),a=this._extractData(e,s.children.length,o.datum());return s.children.push(a),v(e,a),this._drawnNode=null,this})),l(J,"removeDrawnNode",U),l(J,"removeDrawnNode",U),l(J,"drawnNodeSelection",G),l(J,"drawnNodeSelection",G),J),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new Z(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n("bqB3"),n("ge/T"),n("8MQl"),n("wAkE"),n("PRIO"),n("uoq0"),n("Uzsj"),n("3QYS"),n("UKUc"))},QF3D:function(t,e,n){var r=n("vxC8")(n("IBsm"),"DataView");t.exports=r},QMz8:function(t,e,n){var r=n("5pfJ"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},QT01:function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&u)}}else o+=String.fromCharCode((31&s)<<6|a)}else o+=String.fromCharCode(s)}return o}function x(t,e){return t?_(v,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,s=0;s=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++s)),a<=127){if(n>=o)break;e[n++]=a}else if(a<=2047){if(n+1>=o)break;e[n++]=192|a>>6,e[n++]=128|63&a}else if(a<=65535){if(n+2>=o)break;e[n++]=224|a>>12,e[n++]=128|a>>6&63,e[n++]=128|63&a}else{if(n+3>=o)break;e[n++]=240|a>>18,e[n++]=128|a>>12&63,e[n++]=128|a>>6&63,e[n++]=128|63&a}}return e[n]=0,n-i}function S(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function k(t){g=t,r.HEAP8=m=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=b=new Int32Array(t),r.HEAPU8=v=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=y=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var M=r.TOTAL_MEMORY||16777216;function A(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(u=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:M/65536}))&&(g=u.buffer),M=g.byteLength,k(g),b[2080]=5251360;var T=[],D=[],I=[],O=[],C=!1,N=Math.abs,j=Math.ceil,R=Math.floor,P=Math.min,L=0,z=null;function F(t){L++,r.monitorRunDependencies&&r.monitorRunDependencies(L)}function B(t){if(L--,r.monitorRunDependencies&&r.monitorRunDependencies(L),0==L&&z){var e=z;z=null,e()}}function U(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function G(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var V,H,Y,W="expatlib.wasm";function J(){try{if(c)return new Uint8Array(c);throw"both async and sync fetching of the wasm failed"}catch(h){U(h)}}G(W)||(V=W,W=r.locateFile?r.locateFile(V,a):a+V);var Z={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};D.push({func:function(){lt()}});var q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=q.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return q.normalize(t.join("/"))},join2:function(t,e){return q.normalize(t+"/"+e)}};function X(t){return r.___errno_location&&(b[r.___errno_location()>>2]=t),t}var K={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=q.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=K.resolve(t).substr(1),e=K.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),s=o,a=0;a0&&(l(_(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(_(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(_(t.output,0)),t.output=[])}}},Q={ops_table:null,mount:function(t){return Q.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);Q.ops_table||(Q.ops_table={dir:{node:{getattr:Q.node_ops.getattr,setattr:Q.node_ops.setattr,lookup:Q.node_ops.lookup,mknod:Q.node_ops.mknod,rename:Q.node_ops.rename,unlink:Q.node_ops.unlink,rmdir:Q.node_ops.rmdir,readdir:Q.node_ops.readdir,symlink:Q.node_ops.symlink},stream:{llseek:Q.stream_ops.llseek}},file:{node:{getattr:Q.node_ops.getattr,setattr:Q.node_ops.setattr},stream:{llseek:Q.stream_ops.llseek,read:Q.stream_ops.read,write:Q.stream_ops.write,allocate:Q.stream_ops.allocate,mmap:Q.stream_ops.mmap,msync:Q.stream_ops.msync}},link:{node:{getattr:Q.node_ops.getattr,setattr:Q.node_ops.setattr,readlink:Q.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Q.node_ops.getattr,setattr:Q.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=Q.ops_table.dir.node,i.stream_ops=Q.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=Q.ops_table.file.node,i.stream_ops=Q.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=Q.ops_table.link.node,i.stream_ops=Q.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=Q.ops_table.chrdev.node,i.stream_ops=Q.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var s=Math.min(t.node.usedBytes-i,r);if(s>8&&o.subarray)e.set(o.subarray(i,i+s),n);else for(var a=0;a0||i+r8)throw new tt.ErrnoError(32);for(var i=q.normalizeArray(t.split("/").filter((function(t){return!!t})),!1),o=tt.root,s="/",a=0;a40)throw new tt.ErrnoError(32)}}return{path:s,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach((function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)}))},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var s=tt.lookupPath(n,{follow_mount:!1});if(n=s.path,tt.isMountpoint(r=s.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var a={type:t,opts:e,mountpoint:n,mounts:[]},c=t.mount(a);return c.mount=a,a.root=c,i?tt.root=c:r&&(r.mounted=a,r.mount&&r.mount.mounts.push(a)),c},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach((function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}})),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,s=1048576;i||(s=r);var a=this;a.setDataGetter((function(t){var e=t*s,i=(t+1)*s-1;if(i=Math.min(i,r-1),void 0===a.chunks[t]&&(a.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==s&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):st(i.responseText||"",!0)}(e,i)),void 0===a.chunks[t])throw new Error("doXHR failed!");return a.chunks[t]})),!o&&r||(s=r=1,r=this.getter(0).length,s=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=s,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s,a=tt.createFile(t,e,s={isDevice:!1,url:n},r,i);s.contents?a.contents=s.contents:s.url&&(a.contents=null,a.url=s.url),Object.defineProperties(a,{usedBytes:{get:function(){return this.contents.length}}});var c={};return Object.keys(a.stream_ops).forEach((function(t){var e=a.stream_ops[t];c[t]=function(){if(!tt.forceLoadFile(a))throw new tt.ErrnoError(29);return e.apply(null,arguments)}})),c.read=function(t,e,n,r,i){if(!tt.forceLoadFile(a))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var s=Math.min(o.length-i,r);if(o.slice)for(var c=0;c>2]=r.dev,b[n+4>>2]=0,b[n+8>>2]=r.ino,b[n+12>>2]=r.mode,b[n+16>>2]=r.nlink,b[n+20>>2]=r.uid,b[n+24>>2]=r.gid,b[n+28>>2]=r.rdev,b[n+32>>2]=0,Y=[r.size>>>0,(H=r.size,+N(H)>=1?H>0?(0|P(+R(H/4294967296),4294967295))>>>0:~~+j((H-+(~~H>>>0))/4294967296)>>>0:0)],b[n+40>>2]=Y[0],b[n+44>>2]=Y[1],b[n+48>>2]=4096,b[n+52>>2]=r.blocks,b[n+56>>2]=r.atime.getTime()/1e3|0,b[n+60>>2]=0,b[n+64>>2]=r.mtime.getTime()/1e3|0,b[n+68>>2]=0,b[n+72>>2]=r.ctime.getTime()/1e3|0,b[n+76>>2]=0,Y=[r.ino>>>0,(H=r.ino,+N(H)>=1?H>0?(0|P(+R(H/4294967296),4294967295))>>>0:~~+j((H-+(~~H>>>0))/4294967296)>>>0:0)],b[n+80>>2]=Y[0],b[n+84>>2]=Y[1],0},doMsync:function(t,e,n,r,i){var o=v.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,S(r)),o=m[e+i];return E(r,v,e,n+1),m[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],a=tt.read(t,m,b[e+8*o>>2],s,r);if(a<0)return-1;if(i+=a,a>2],b[e+(8*o+4)>>2],r);if(s<0)return-1;i+=s}return i},varargs:0,get:function(t){return et.varargs+=4,b[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return u.grow(t-g.byteLength+65535>>16),k(u.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:s||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=v[t++];)100===n||102===n?(r.push(y[(e=e+7&-8)>>3]),e+=8):(r.push(b[(e=e+3&-4)>>2]),e+=4);return r}function st(t,e,n){var r=n>0?n:S(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var at={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||U(n),-n.errno}},e:function(){U()},a:function(t,e,n){var r=ot(e,n);return Z[t].apply(null,r)},c:function(t,e,n){v.set(v.subarray(e,e+n),t)},d:function(t){var e=v.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach((function(n,i){var o=e+r;b[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);m[e>>0]=0}(n,o),r+=n.length+1})),0},g:function(t,e){var n=it();b[t>>2]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),b[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||U(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),s=4294967296*n+(e>>>0);return s<=-9007199254740992||s>=9007199254740992?-61:(tt.llseek(o,s,r),Y=[o.position>>>0,(H=o.position,+N(H)>=1?H>0?(0|P(+R(H/4294967296),4294967295))>>>0:~~+j((H-+(~~H>>>0))/4294967296)>>>0:0)],b[i>>2]=Y[0],b[i+4>>2]=Y[1],o.getdents&&0===s&&0===r&&(o.getdents=null),0)}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||U(a),a.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return b[r>>2]=o,0}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||U(s),s.errno}},k:function(t){var e=Date.now();return b[t>>2]=e/1e3|0,b[t+4>>2]=e%1e3*1e3|0,0},memory:u,table:f},ct=function(){var t={a:at};function e(t,e){r.asm=t.exports,B()}function n(t){e(t.instance)}function i(e){return(c||"function"!=typeof fetch?new Promise((function(t,e){t(J())})):fetch(W,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+W+"'";return t.arrayBuffer()})).catch((function(){return J()}))).then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){h("failed to asynchronously prepare wasm: "+t),U(t)}))}if(F(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(c||"function"!=typeof WebAssembly.instantiateStreaming||G(W)||"function"!=typeof fetch)return i(n);fetch(W,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(n,(function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)}))}))}(),{}}();r.asm=ct;var ut,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},mt=r._emscripten_bind_CExpat_attrs_0=function(){return(mt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},vt=r._emscripten_bind_CExpat_content_0=function(){return(vt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},bt=r._emscripten_bind_CExpat_startElement_0=function(){return(bt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},yt=r._emscripten_bind_CExpat_endElement_0=function(){return(yt=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},_t=r._emscripten_bind_CExpat___destroy___0=function(){return(_t=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},St=r._emscripten_bind_CExpatJS_endElement_0=function(){return(St=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},kt=r._emscripten_bind_CExpatJS_characterData_0=function(){return(kt=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},Mt=r._emscripten_bind_CExpatJS___destroy___0=function(){return(Mt=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},At=r._emscripten_bind_VoidPtr___destroy___0=function(){return(At=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},Tt=r._malloc=function(){return(Tt=r._malloc=r.asm.D).apply(null,arguments)};function Dt(t){function e(){ut||(ut=!0,d||(C=!0,r.noFSInit||tt.init.initialized||tt.init(),$.init(),A(D),tt.ignorePermissions=!1,A(I),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),O.unshift(t);var t;A(O)}()))}L>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),T.unshift(t);var t;A(T)}(),L>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),e()}),1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ct,r.then=function(t){if(ut)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},z=function t(){ut||Dt(),ut||(z=t)},r.run=Dt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function It(){}function Ot(t){return(t||It).__cache__}function Ct(t,e){var n=Ot(e),r=n[t];return r||((r=Object.create((e||It).prototype)).ptr=t,n[t]=r)}Dt(),(It.prototype=Object.create(It.prototype)).constructor=It,It.prototype.__class__=It,It.__cache__={},r.WrapperObject=It,r.getCache=Ot,r.wrapPointer=Ct,r.castObject=function(t,e){return Ct(t.ptr,e)},r.NULL=Ct(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Ot(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Nt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Nt.needed){for(var t=0;t=Nt.size?(p(i>0),Nt.needed+=i,n=r._malloc(i),Nt.temps.push(n)):(n=Nt.buffer+Nt.pos,Nt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&k)return k.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&u)}}else o+=String.fromCharCode((31&s)<<6|a)}else o+=String.fromCharCode(s)}return o}function A(t,e){return t?M(_,t,e):""}function T(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,s=0;s=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++s)),a<=127){if(n>=o)break;e[n++]=a}else if(a<=2047){if(n+1>=o)break;e[n++]=192|a>>6,e[n++]=128|63&a}else if(a<=65535){if(n+2>=o)break;e[n++]=224|a>>12,e[n++]=128|a>>6&63,e[n++]=128|63&a}else{if(n+3>=o)break;e[n++]=240|a>>18,e[n++]=128|a>>12&63,e[n++]=128|a>>6&63,e[n++]=128|63&a}}return e[n]=0,n-i}function D(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function I(t){y=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=_=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=S=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var O=r.TOTAL_MEMORY||16777216;function C(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:O/65536}))&&(y=d.buffer),O=y.byteLength,I(y),E[54772]=5462128;var N=[],j=[],R=[],P=[],L=!1,z=Math.abs,F=Math.ceil,B=Math.floor,U=Math.min,G=0,V=null;function H(t){G++,r.monitorRunDependencies&&r.monitorRunDependencies(G)}function Y(t){if(G--,r.monitorRunDependencies&&r.monitorRunDependencies(G),0==G&&V){var e=V;V=null,e()}}function W(t){throw r.onAbort&&r.onAbort(t),u(t+=""),l(t),v=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function J(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var Z,q,X,K="graphvizlib.wasm";function $(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){W(l)}}J(K)||(Z=K,K=r.locateFile?r.locateFile(Z,c):c+Z);var Q={1088:function(t,e){var n=A(t),r=A(e);st.createPath("/",nt.dirname(n)),st.writeFile(nt.join("/",n),r)}};function tt(){W()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}j.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:st.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),s=o,a=0;a0&&(u(M(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(M(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(M(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(st.isBlkdev(n)||st.isFIFO(n))throw new st.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:st.chrdev_stream_ops}});var i=st.createNode(t,e,n,r);return st.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):st.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):st.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):st.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var s=Math.min(t.node.usedBytes-i,r);if(s>8&&o.subarray)e.set(o.subarray(i,i+s),n);else for(var a=0;a0||i+r8)throw new st.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter((function(t){return!!t})),!1),o=st.root,s="/",a=0;a40)throw new st.ErrnoError(32)}}return{path:s,node:o}},getPath:function(t){for(var e;;){if(st.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%st.nameTable.length},hashAddNode:function(t){var e=st.hashName(t.parent.id,t.name);t.name_next=st.nameTable[e],st.nameTable[e]=t},hashRemoveNode:function(t){var e=st.hashName(t.parent.id,t.name);if(st.nameTable[e]===t)st.nameTable[e]=t.name_next;else for(var n=st.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=st.mayLookup(t);if(n)throw new st.ErrnoError(n,t);for(var r=st.hashName(t.id,e),i=st.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return st.lookup(t,e)},createNode:function(t,e,n,r){st.FSNode||(st.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=st.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},st.FSNode.prototype={},Object.defineProperties(st.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return st.isDir(this.mode)}},isDevice:{get:function(){return st.isChrdev(this.mode)}}}));var i=new st.FSNode(t,e,n,r);return st.hashAddNode(i),i},destroyNode:function(t){st.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=st.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return st.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return st.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return st.lookupNode(t,e),20}catch(n){}return st.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=st.lookupNode(t,e)}catch(o){return o.errno}var i=st.nodePermissions(t,"wx");if(i)return i;if(n){if(!st.isDir(r.mode))return 54;if(st.isRoot(r)||st.getPath(r)===st.cwd())return 10}else if(st.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?st.isLink(t.mode)?32:st.isDir(t.mode)&&("r"!==st.flagsToPermissionString(e)||512&e)?31:st.nodePermissions(t,st.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||st.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!st.streams[n])return n;throw new st.ErrnoError(33)},getStream:function(t){return st.streams[t]},createStream:function(t,e,n){st.FSStream||(st.FSStream=function(){},st.FSStream.prototype={},Object.defineProperties(st.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new st.FSStream;for(var i in t)r[i]=t[i];t=r;var o=st.nextfd(e,n);return t.fd=o,st.streams[o]=t,t},closeStream:function(t){st.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=st.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new st.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){st.devices[t]={stream_ops:e}},getDevice:function(t){return st.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),st.syncFSRequests++,st.syncFSRequests>1&&l("warning: "+st.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=st.getMounts(st.root.mount),r=0;function i(t){return st.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach((function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)}))},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&st.root)throw new st.ErrnoError(10);if(!i&&!o){var s=st.lookupPath(n,{follow_mount:!1});if(n=s.path,st.isMountpoint(r=s.node))throw new st.ErrnoError(10);if(!st.isDir(r.mode))throw new st.ErrnoError(54)}var a={type:t,opts:e,mountpoint:n,mounts:[]},c=t.mount(a);return c.mount=a,a.root=c,i?st.root=c:r&&(r.mounted=a,r.mount&&r.mount.mounts.push(a)),c},unmount:function(t){var e=st.lookupPath(t,{follow_mount:!1});if(!st.isMountpoint(e.node))throw new st.ErrnoError(28);var n=e.node,r=n.mounted,i=st.getMounts(r);Object.keys(st.nameTable).forEach((function(t){for(var e=st.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&st.destroyNode(e),e=n}})),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=st.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new st.ErrnoError(28);var o=st.mayCreate(r,i);if(o)throw new st.ErrnoError(o);if(!r.node_ops.mknod)throw new st.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,st.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,st.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,s=1048576;i||(s=r);var a=this;a.setDataGetter((function(t){var e=t*s,i=(t+1)*s-1;if(i=Math.min(i,r-1),void 0===a.chunks[t]&&(a.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==s&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):yt(i.responseText||"",!0)}(e,i)),void 0===a.chunks[t])throw new Error("doXHR failed!");return a.chunks[t]})),!o&&r||(s=r=1,r=this.getter(0).length,s=r,u("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=s,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s,a=st.createFile(t,e,s={isDevice:!1,url:n},r,i);s.contents?a.contents=s.contents:s.url&&(a.contents=null,a.url=s.url),Object.defineProperties(a,{usedBytes:{get:function(){return this.contents.length}}});var c={};return Object.keys(a.stream_ops).forEach((function(t){var e=a.stream_ops[t];c[t]=function(){if(!st.forceLoadFile(a))throw new st.ErrnoError(29);return e.apply(null,arguments)}})),c.read=function(t,e,n,r,i){if(!st.forceLoadFile(a))throw new st.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var s=Math.min(o.length-i,r);if(o.slice)for(var c=0;c>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,X=[r.size>>>0,(q=r.size,+z(q)>=1?q>0?(0|U(+B(q/4294967296),4294967295))>>>0:~~+F((q-+(~~q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=X[0],E[n+44>>2]=X[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,X=[r.ino>>>0,(q=r.ino,+z(q)>=1?q>0?(0|U(+B(q/4294967296),4294967295))>>>0:~~+F((q-+(~~q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=X[0],E[n+84>>2]=X[1],0},doMsync:function(t,e,n,r,i){var o=_.slice(t,t+n);st.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),st.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return st.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=st.readlink(t),i=Math.min(n,D(r)),o=w[e+i];return T(r,_,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=st.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&st.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=st.getStream(n);return r&&st.close(r),st.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],a=st.read(t,w,E[e+8*o>>2],s,r);if(a<0)return-1;if(i+=a,a>2],E[e+(8*o+4)>>2],r);if(s<0)return-1;i+=s}return i},varargs:0,get:function(t){return at.varargs+=4,E[at.varargs-4>>2]},getStr:function(){return A(at.get())},getStreamFromFD:function(t){void 0===t&&(t=at.get());var e=st.getStream(t);if(!e)throw new st.ErrnoError(8);return e},get64:function(){var t=at.get();return at.get(),t},getZero:function(){at.get()}};function ct(t,e,n){e|=0;var r,i=0,o=0,s=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(s=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=s,E[t+4>>2]=s,E[t+8>>2]=s,E[t+12>>2]=s,E[t+16>>2]=s,E[t+20>>2]=s,E[t+24>>2]=s,E[t+28>>2]=s,E[t+32>>2]=s,E[t+36>>2]=s,E[t+40>>2]=s,E[t+44>>2]=s,E[t+48>>2]=s,E[t+52>>2]=s,E[t+56>>2]=s,E[t+60>>2]=s,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=s,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ut=0;function lt(t){try{return d.grow(t-y.byteLength+65535>>16),I(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:s||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],mt=[31,28,31,30,31,30,31,31,30,31,30,31];function vt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:mt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function bt(t,e){bt.array||(bt.array=[]);var n,r=bt.array;for(r.length=0;n=_[t++];)100===n||102===n?(r.push(S[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function yt(t,e,n){var r=n>0?n:D(t)+1,i=new Array(r),o=T(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},st.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Dt(t)},j:function(t,e,n){throw"uncaught_exception"in Nt?Nt.uncaught_exceptions++:Nt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){at.varargs=e;try{var n=at.getStr();return st.unlink(n),0}catch(r){return void 0!==st&&r instanceof st.ErrnoError||W(r),-r.errno}},R:function(t,e){at.varargs=e;try{return function(t,e,n,r,i,o){var s;o<<=12;var a=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(s=jt(16384,e)))return-48;ct(s,0,e),a=!0}else{var c=st.getStream(i);if(!c)return-8;var u=st.mmap(c,_,t,e,o,n,r);s=u.ptr,a=u.allocated}return at.mappings[s]={malloc:s,len:e,allocated:a,fd:i,flags:r,offset:o},s}(at.get(),at.get(),at.get(),at.get(),at.get(),at.get())}catch(n){return void 0!==st&&n instanceof st.ErrnoError||W(n),-n.errno}},S:function(t,e){at.varargs=e;try{var n=at.getStr(),r=at.get();return at.doStat(st.stat,n,r)}catch(i){return void 0!==st&&i instanceof st.ErrnoError||W(i),-i.errno}},T:function(t,e){at.varargs=e;try{var n=at.getStreamFromFD(),r=at.get();return at.doStat(st.stat,n.path,r)}catch(i){return void 0!==st&&i instanceof st.ErrnoError||W(i),-i.errno}},L:function(t,e){at.varargs=e;try{return 42}catch(n){return void 0!==st&&n instanceof st.ErrnoError||W(n),-n.errno}},y:function(t,e){at.varargs=e;try{var n=at.getStreamFromFD();switch(at.get()){case 0:return(r=at.get())<0?-28:st.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=at.get();return n.flags|=r,0;case 12:return r=at.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==st&&i instanceof st.ErrnoError||W(i),-i.errno}},K:function(t,e){at.varargs=e;try{var n=at.getStr(),r=at.get();return at.doAccess(n,r)}catch(i){return void 0!==st&&i instanceof st.ErrnoError||W(i),-i.errno}},z:function(t,e){at.varargs=e;try{var n=at.getStr(),r=at.get(),i=at.get();return st.open(n,r,i).fd}catch(o){return void 0!==st&&o instanceof st.ErrnoError||W(o),-o.errno}},O:function(t,e){at.varargs=e;try{var n=at.getStreamFromFD(),r=at.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=at.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=at.get(),st.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:W("bad ioctl syscall "+r)}}catch(o){return void 0!==st&&o instanceof st.ErrnoError||W(o),-o.errno}},Q:function(t,e){at.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=at.mappings[t];if(!n)return 0;if(e===n.len){var r=st.getStream(n.fd);at.doMsync(t,r,e,n.flags,n.offset),st.munmap(r),at.mappings[t]=null,n.allocated&&It(n.malloc)}return 0}(at.get(),at.get())}catch(n){return void 0!==st&&n instanceof st.ErrnoError||W(n),-n.errno}},m:function(){},w:function(){W()},C:function(t,e,n){var r=bt(e,n);return Q[t].apply(null,r)},d:function(t,e){!function(t,e){throw Ct(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){_.set(_.subarray(e,e+n),t)},F:function(t){var e=_.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach((function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1})),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),E[e>>2]=r,0},l:function(t){!function(t,e){f||(v=!0,r.onExit&&r.onExit(t)),a(t,new Kt(t))}(t)},p:function(t){try{var e=at.getStreamFromFD(t);return st.close(e),0}catch(n){return void 0!==st&&n instanceof st.ErrnoError||W(n),n.errno}},H:function(t,e){try{var n=at.getStreamFromFD(t),r=n.tty?2:st.isDir(n.mode)?3:st.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==st&&i instanceof st.ErrnoError||W(i),i.errno}},N:function(t,e,n,r){try{var i=at.getStreamFromFD(t),o=at.doReadv(i,e,n);return E[r>>2]=o,0}catch(s){return void 0!==st&&s instanceof st.ErrnoError||W(s),s.errno}},D:function(t,e,n,r,i){try{var o=at.getStreamFromFD(t),s=4294967296*n+(e>>>0);return s<=-9007199254740992||s>=9007199254740992?-61:(st.llseek(o,s,r),X=[o.position>>>0,(q=o.position,+z(q)>=1?q>0?(0|U(+B(q/4294967296),4294967295))>>>0:~~+F((q-+(~~q>>>0))/4294967296)>>>0:0)],E[i>>2]=X[0],E[i+4>>2]=X[1],o.getdents&&0===s&&0===r&&(o.getdents=null),0)}catch(a){return void 0!==st&&a instanceof st.ErrnoError||W(a),a.errno}},x:function(t,e,n,r){try{var i=at.getStreamFromFD(t),o=at.doWritev(i,e,n);return E[r>>2]=o,0}catch(s){return void 0!==st&&s instanceof st.ErrnoError||W(s),s.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=qt();try{return Jt(t)}catch(n){if(Xt(e),n!==n+0&&"longjmp"!==n)throw n;Ct(1,0)}},V:function(t,e){var n=qt();try{return Zt(t,e)}catch(r){if(Xt(n),r!==r+0&&"longjmp"!==r)throw r;Ct(1,0)}},v:function(t){var e=qt();try{return Ut(t)}catch(n){if(Xt(e),n!==n+0&&"longjmp"!==n)throw n;Ct(1,0)}},f:function(t,e){var n=qt();try{return Gt(t,e)}catch(r){if(Xt(n),r!==r+0&&"longjmp"!==r)throw r;Ct(1,0)}},e:function(t,e,n){var r=qt();try{return Vt(t,e,n)}catch(i){if(Xt(r),i!==i+0&&"longjmp"!==i)throw i;Ct(1,0)}},g:function(t,e,n,r){var i=qt();try{return Ht(t,e,n,r)}catch(o){if(Xt(i),o!==o+0&&"longjmp"!==o)throw o;Ct(1,0)}},n:function(t,e,n,r,i){var o=qt();try{return Yt(t,e,n,r,i)}catch(s){if(Xt(o),s!==s+0&&"longjmp"!==s)throw s;Ct(1,0)}},W:function(t,e,n,r,i,o,s){var a=qt();try{return Wt(t,e,n,r,i,o,s)}catch(c){if(Xt(a),c!==c+0&&"longjmp"!==c)throw c;Ct(1,0)}},s:function(t){var e=qt();try{Rt(t)}catch(n){if(Xt(e),n!==n+0&&"longjmp"!==n)throw n;Ct(1,0)}},h:function(t,e){var n=qt();try{Pt(t,e)}catch(r){if(Xt(n),r!==r+0&&"longjmp"!==r)throw r;Ct(1,0)}},o:function(t,e,n){var r=qt();try{Lt(t,e,n)}catch(i){if(Xt(r),i!==i+0&&"longjmp"!==i)throw i;Ct(1,0)}},u:function(t,e,n,r){var i=qt();try{zt(t,e,n,r)}catch(o){if(Xt(i),o!==o+0&&"longjmp"!==o)throw o;Ct(1,0)}},t:function(t,e,n,r,i){var o=qt();try{Ft(t,e,n,r,i)}catch(s){if(Xt(o),s!==s+0&&"longjmp"!==s)throw s;Ct(1,0)}},r:function(t,e,n,r,i,o){var s=qt();try{Bt(t,e,n,r,i,o)}catch(a){if(Xt(s),a!==a+0&&"longjmp"!==a)throw a;Ct(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ut=ut+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ut,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Ot(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?A(i):""},s=A(n),a={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var c in a)s=s.replace(new RegExp(c,"g"),a[c]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=vt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":function(t){return u[t.tm_wday].substring(0,3)},"%A":function(t){return u[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:mt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:vt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:mt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),s=vt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(s,i)<0?"53":d(o,s)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var c in m)s.indexOf(c)>=0&&(s=s.replace(new RegExp(c,"g"),m[c](o)));var v=yt(s,!1);return v.length>e?0:(function(t,e){w.set(t,e)}(v,t),v.length-1)}(t,e,n,r)},table:m,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ct(t,0,16),0}},_t=function(){var t={a:wt};function e(t,e){r.asm=t.exports,Y()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise((function(t,e){t($())})):fetch(K,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+K+"'";return t.arrayBuffer()})).catch((function(){return $()}))).then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){l("failed to asynchronously prepare wasm: "+t),W(t)}))}if(H(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||J(K)||"function"!=typeof fetch)return i(n);fetch(K,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(n,(function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)}))}))}(),{}}();r.asm=_t;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},St=r._emscripten_bind_VoidPtr___destroy___0=function(){return(St=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},kt=r._emscripten_bind_Main_layout_3=function(){return(kt=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},Mt=r._emscripten_bind_Main_lastError_0=function(){return(Mt=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},At=r._emscripten_bind_Main_createFile_2=function(){return(At=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},Tt=r._emscripten_bind_Main___destroy___0=function(){return(Tt=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Dt=r._malloc=function(){return(Dt=r._malloc=r.asm.da).apply(null,arguments)},It=r._free=function(){return(It=r._free=r.asm.ea).apply(null,arguments)},Ot=r._realloc=function(){return(Ot=r._realloc=r.asm.fa).apply(null,arguments)},Ct=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Ct=r._setThrew=r.asm.ha).apply(null,arguments)}),Nt=r.__ZSt18uncaught_exceptionv=function(){return(Nt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},jt=r._memalign=function(){return(jt=r._memalign=r.asm.ja).apply(null,arguments)},Rt=r.dynCall_v=function(){return(Rt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Pt=r.dynCall_vi=function(){return(Pt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Lt=r.dynCall_vii=function(){return(Lt=r.dynCall_vii=r.asm.ma).apply(null,arguments)},zt=r.dynCall_viii=function(){return(zt=r.dynCall_viii=r.asm.na).apply(null,arguments)},Ft=r.dynCall_viiii=function(){return(Ft=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},Bt=r.dynCall_viiiii=function(){return(Bt=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},Ut=r.dynCall_i=function(){return(Ut=r.dynCall_i=r.asm.qa).apply(null,arguments)},Gt=r.dynCall_ii=function(){return(Gt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Vt=r.dynCall_iii=function(){return(Vt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},Ht=r.dynCall_iiii=function(){return(Ht=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Yt=r.dynCall_iiiii=function(){return(Yt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Wt=r.dynCall_iiiiiii=function(){return(Wt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Jt=r.dynCall_d=function(){return(Jt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Zt=r.dynCall_di=function(){return(Zt=r.dynCall_di=r.asm.xa).apply(null,arguments)},qt=r.stackSave=function(){return(qt=r.stackSave=r.asm.ya).apply(null,arguments)},Xt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Xt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function Kt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function $t(t){function e(){xt||(xt=!0,v||(L=!0,r.noFSInit||st.init.initialized||st.init(),it.init(),C(j),st.ignorePermissions=!1,C(R),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),P.unshift(t);var t;C(P)}()))}G>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),N.unshift(t);var t;C(N)}(),G>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),e()}),1)):e()))}if(r.asm=_t,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},V=function t(){xt||$t(),xt||(V=t)},r.run=$t,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Qt(){}function te(t){return(t||Qt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Qt).prototype)).ptr=t,n[t]=r)}f=!0,$t(),(Qt.prototype=Object.create(Qt.prototype)).constructor=Qt,Qt.prototype.__class__=Qt,Qt.__cache__={},r.WrapperObject=Qt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(b(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function m(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e0&&(o=c.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(u);return a}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},VPai:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},VQMV:function(t,e){t.exports="0.8.5"},VhCv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r1||1===e.length&&t.hasEdge(e[0],e[0])}))}},WHWN:function(t,e,n){var r=n("R3TX"),i=n("pPzx"),o=n("R5u7"),s=n("zH+d"),a=Object.prototype,c=a.hasOwnProperty,u=r((function(t,e){t=Object(t);var n=-1,r=e.length,u=r>2?e[2]:void 0;for(u&&o(e[0],e[1],u)&&(r=1);++n=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},Xidw:function(t,e,n){var r=n("y/9h"),i=n("/wCD"),o=n("70Le"),s=n("X4R2");t.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s},XlL0:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},XlMc:function(t,e,n){"use strict";e.a=function(t){return function(){return this.matches(t)}}},"Xq/B":function(t,e,n){"use strict";var r=n("PvqL"),i=n("I6Yn"),o=n("waXG"),s=n("6YE2"),a=n("157b"),c=n("rr+a"),u=n("GEHm"),l=n("PXG9"),h=n("pNP6");e.a=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(l.a)(e):("number"===f?a.a:"string"===f?(n=Object(r.e)(e))?(e=n,i.a):u.a:e instanceof r.e?i.a:e instanceof Date?s.a:Object(h.b)(e)?h.a:Array.isArray(e)?o.b:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.a:a.a)(t,e)}},YKAa:function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},YZb2:function(t,e,n){"use strict";var r=n("gjtd");function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),s=1;s0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;u+=t.weight*n}))),u}t.exports=function(t,e){for(var n=0,r=1;r0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},Ypsa:function(t,e,n){var r=n("a88S");t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},Z3AG:function(t,e,n){var r=n("JElN"),i=n("n+p3"),o=n("zWgn");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},ZCKZ:function(t,e,n){t.exports={components:n("qC43"),dijkstra:n("V9bN"),dijkstraAll:n("a271"),findCycles:n("W8B9"),floydWarshall:n("hq5n"),isAcyclic:n("+WAL"),postorder:n("21zJ"),preorder:n("j+bJ"),prim:n("xGdc"),tarjan:n("Pa7R"),topsort:n("0Jj1")}},ZVKf:function(t,e,n){var r=n("UdtX"),i=n("D49j"),o=n("zH+d");t.exports=function(t,e){return null==t?t:r(t,i(e),o)}},"ZZ+W":function(t,e,n){var r=n("JBn+"),i=n("myUI"),o=n("S0iI");t.exports=function(t,e,n,s,a,c){var u=1&n,l=t.length,h=e.length;if(l!=h&&!(u&&h>l))return!1;var f=c.get(t);if(f&&c.get(e))return f==e;var d=-1,p=!0,g=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++dh&&(u.d=h,u.prev=a,n.reduceKey(u.q,u,(function(t,e){return t.q=e})))}}return o},t}()},amiU:function(t,e,n){var r=n("wC3K"),i=n("pPzx");t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},bFjY:function(t,e,n){var r=n("Q4oW"),i=n("9y2L");t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},bJjD:function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)n[r]={};for(var r in e)n[r]={};return Object.keys(n).length}function i(t,e){var n=0;for(var r in t)void 0!==e[r]&&++n;return n}function o(t,e,n,r){var i=function(t,e){var n={},r=function(t,e){void 0===n[t]&&(n[t]={}),n[t][e]={}};return t.forEach((function(t){var n=e.getSourceIndex(t),i=e.getTargetIndex(t);r(n,i),r(i,n)})),n}(t,r);t.forEach((function(t){var o=i[r.getSourceIndex(t)],s=i[r.getTargetIndex(t)];r.setLength(t,1+e*n(o,s))}))}function s(t,e,n){var r=[],i=0,o=[],s=[];function a(t){t.index=t.lowlink=i++,o.push(t),t.onStack=!0;for(var e=0,n=t.out;es){var a=o;o=s,s=a}return o+"\x01"+s+"\x01"+(r.isUndefined(i)?"\0":i)}function c(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function u(t,e){return a(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var o=n.parent(r);return void 0===o||e.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},i.prototype.setEdge=function(){var t,e,n,i,s=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,e=u.w,n=u.name,2===arguments.length&&(i=arguments[1],s=!0)):(t=u,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=a(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return s&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=s?i:this._defaultEdgeLabelFn(t,e,n);var h=c(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},bvyN:function(t,e,n){var r=n("/30y"),i=n("tLQN"),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},bz5b:function(t,e,n){var r=n("9y2L");t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++si+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},c={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return a(100*t,e)},r:a,s:function(t,e){var n=Object(s.a)(t,e);if(!n)return t+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,c=i.length;return a===c?i:a>c?i+new Array(a-c+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Object(s.a)(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},u=function(t){return t},l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){var e,n,s=void 0===t.grouping||void 0===t.thousands?u:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],s=0,a=e[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}),a=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?u:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function b(t){var e=(t=Object(o.b)(t)).fill,n=t.align,i=t.sign,u=t.symbol,l=t.zero,b=t.width,y=t.comma,w=t.precision,_=t.trim,x=t.type;"n"===x?(y=!0,x="g"):c[x]||(void 0===w&&(w=12),_=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===u?a:"#"===u&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",S="$"===u?f:/[%p]/.test(x)?g:"",k=c[x],M=/[defgprs%]/.test(x);function A(t){var o,a,c,u=E,f=S;if("c"===x)f=k(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:k(Math.abs(t),w),_&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),u=(g?"("===i?i:m:"-"===i||"("===i?"":i)+u,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),M)for(o=-1,a=t.length;++o(c=t.charCodeAt(o))||c>57){f=(46===c?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}y&&!l&&(t=s(t,1/0));var A=u.length+t.length+f.length,T=A>1)+u+t+f+T.slice(A);break;default:t=T+u+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),A.toString=function(){return t+""},A}return{format:b,formatPrefix:function(t,e){var n=b(((t=Object(o.b)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(e)/3))),s=Math.pow(10,-r),a=h[8+r/3];return function(t){return n(s*t)+a}}}}},c72w:function(t,e,n){var r=n("wC3K"),i=n("pPzx"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},c7Qd:function(t,e,n){var r=n("DuXo"),i=n("z9Jh"),o=n("n1QJ");t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},c9kG:function(t,e,n){var r=n("Jl0P");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritye||s&&a&&u&&!c&&!l||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!l&&t=2),a=l.buildLayerMatrix(t);var m=o(t,a);m0;--c)if(r=e[c].dequeue()){i=i.concat(a(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var s=r.constant(1);function a(t,e,n,i,o){var s=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),a=t.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,c(e,n,a)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,c(e,n,o)})),t.removeNode(i.v),s}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},gEWz:function(t,e,n){var r=n("kkM+"),i=n("tLQN");t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},gP9q:function(t,e,n){var r=n("gjtd");t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},gbTj:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n("keXZ"),s=n("vpOK");function a(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce((function(t,e){return e.bounds.union(t)}),c.empty()):c.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce((function(t,e){return a(e).union(t)}),t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=a;var c=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,s,a){var c=n-t,u=s-i,l=r-e,h=a-o,f=h*c-u*l;if(0==f)return null;var d=t-i,p=e-o,g=(u*p-h*d)/f,m=(c*p-l*d)/f;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*c,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=c,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,s=i.y-r.y,a=Math.sqrt(o*o+s*s),c=a-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+c*o/a,y:r.y+c*s/a}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,s=Math.sqrt(i*i+o*o);return{x:r.x-n*i/s,y:r.y-n*o/s}};var u=function(){return function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()}}(),l=function(){return function(t,e,n){this.isOpen=t,this.v=e,this.pos=n}}();function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,s=void 0!==t.leaves?t.leaves.length:0,a=o?t.groups.reduce((function(t,r){return t.concat(g(r,e,n,!0))}),[]):[],c=(r?2:0)+s+o,u=new Array(c),l=new Array(c),h=0,f=function(t,e){l[h]=t,u[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),v=e.getSize(d)/2,b=e.getOpen(d),y=e.getClose(d),w=p-v+i/2,_=p+v-i/2;t.minVar.desiredPosition=w,f(e.makeRect(b,y,w,i),t.minVar),t.maxVar.desiredPosition=_,f(e.makeRect(b,y,_,i),t.maxVar)}s&&t.leaves.forEach((function(t){return f(t.bounds,t.variable)})),o&&t.groups.forEach((function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)}));var x=m(l,u,e,n);return o&&(u.forEach((function(t){t.cOut=[],t.cIn=[]})),x.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),t.groups.forEach((function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach((function(t){return t.gap+=n})),t.minVar.cOut.forEach((function(e){e.left=t.maxVar,e.gap+=n}))}))),a.concat(x)}function m(t,e,n,r){var i,s=t.length,a=2*s;console.assert(e.length>=s);var c=new Array(a);for(i=0;it[n]&&(t[n]=e)}o=t}))}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach((function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))}))},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter((function(t){return"x"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),this.yConstraints=t.filter((function(t){return"y"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),t.filter((function(t){return"alignment"===t.type})).forEach((function(t){return e.createAlignment(t)}))},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach((function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var s=(i.width||0)/2,a=(i.height||0)/2,u=t[o],l=e[o];i.bounds=new c(u-s,u+s,l-a,l+a)}))},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,(function(t){return t.px}),this.xConstraints,y,(function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i}))},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,(function(t){return t.py}),this.yConstraints,w,(function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i}))},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,s,c,u){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(a(this.rootGroup),o=o.concat(s(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(c),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(u),a(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},"ge/T":function(t,e,n){"use strict";n.r(e);var r=n("z0Nn");n.d(e,"dispatch",(function(){return r.a}))},"ge/d":function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},gjtd:function(t,e,n){var r;try{r={cloneDeep:n("c2re"),constant:n("eN33"),defaults:n("WHWN"),each:n("h4um"),filter:n("+DnP"),find:n("6R5o"),flatten:n("1xil"),forEach:n("9SCj"),forIn:n("ZVKf"),has:n("1mr4"),isUndefined:n("CZlo"),last:n("p1C/"),map:n("mbB6"),mapValues:n("y2Ah"),max:n("LPC+"),merge:n("H8sf"),min:n("Z3AG"),minBy:n("PKEM"),now:n("ENE1"),pick:n("//nZ"),range:n("Cmkl"),reduce:n("veKZ"),sortBy:n("u6DZ"),uniqueId:n("w0mW"),values:n("0iyY"),zipObject:n("OUo6")}}catch(i){}r||(r=window._),t.exports=r},h4um:function(t,e,n){t.exports=n("9SCj")},hMsr:function(t,e,n){var r=n("+tCn"),i=n("BlJA");t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},hq5n:function(t,e,n){var r=n("Jl0P");t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=e[n],i=o[n],s=o[t].distance+r.distance;s{class t{constructor(t,e){this.sideMenuService=t,this.sideMenuItemService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(s.a),c.Mb(a.a))},t.\u0275cmp=c.Gb({type:t,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(t,e){1&t&&(c.Sb(0,"div",0),c.Nb(1,"perun-web-apps-back-button"),c.Sb(2,"h1",1),c.Nb(3,"mat-icon",2),c.Jc(4),c.ec(5,"translate"),c.Rb(),c.Nb(6,"app-animated-router-outlet"),c.Rb()),2&t&&(c.Ab(3),c.kc("ngStyle",c.oc(4,d)),c.Ab(1),c.Lc(" ",c.fc(5,2,"ADMIN.TITLE")," "))},directives:[u.a,l.a,i.w,h.a],pipes:[f.d],styles:[""]}),t})();var g=n("ZG5M");let m=(()=>{class t{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"}]}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Gb({type:t,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Nb(1,"perun-web-apps-menu-buttons-field",0),c.Rb()),2&t&&(c.Ab(1),c.kc("items",e.navItems)("size","small"))},directives:[g.a],styles:[""]}),t})();var v=n("cqs0"),b=n("MP6f"),y=n("zldI"),w=n("8clQ"),_=n("X2Q7"),x=n("iyZ4"),E=n("yWI2"),S=n("OZ4H"),k=n("0XDM"),M=n("PBFl"),A=n("A8Ay"),T=n("csyo"),D=n("eakH");function I(t,e){1&t&&c.Nb(0,"mat-spinner",7)}function O(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-attr-def-list",8),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)}))("refreshEvent",(function(){return c.xc(t),c.dc().refreshTable()})),c.Rb()}if(2&t){const t=c.dc();c.kc("pageSize",t.pageSize)("definitions",t.attrDefinitions)("selection",t.selected)("filterValue",t.filterValue)}}let C=(()=>{class t{constructor(t,e,n){this.dialog=t,this.attributesManager=e,this.tableConfigService=n,this.attrDefinitions=[],this.selected=new v.c(!0,[]),this.filterValue="",this.tableId=x.i}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}onCreate(){const t=Object(w.o)();t.width="500px",this.dialog.open(y.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=Object(w.o)();t.width="450px",t.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(b.a,t).afterClosed().subscribe(t=>{t&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attrDefinitions=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onImport(){const t=Object(w.o)();t.width="700px",this.dialog.open(E.a,t).afterClosed().subscribe(t=>{!0===t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(S.b),c.Mb(_.c),c.Mb(x.pb))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},decls:17,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","definitions","selection","filterValue","page","refreshEvent",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","page","refreshEvent"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"perun-web-apps-refresh-button",1),c.Zb("refresh",(function(){return e.refreshTable()})),c.Rb(),c.Sb(5,"button",2),c.Zb("click",(function(){return e.onCreate()})),c.Jc(6),c.ec(7,"translate"),c.Rb(),c.Sb(8,"button",2),c.Zb("click",(function(){return e.onImport()})),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Sb(11,"button",3),c.Zb("click",(function(){return e.onDelete()})),c.Jc(12),c.ec(13,"translate"),c.Rb(),c.Sb(14,"perun-web-apps-immediate-filter",4),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Hc(15,I,1,0,"mat-spinner",5),c.Hc(16,O,1,4,"app-attr-def-list",6),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,8,"ADMIN.ATTRIBUTES.TITLE")),c.Ab(4),c.Lc(" ",c.fc(7,10,"ADMIN.ATTRIBUTES.CREATE")," "),c.Ab(3),c.Lc(" ",c.fc(10,12,"ADMIN.ATTRIBUTES.IMPORT")," "),c.Ab(2),c.kc("disabled",0===e.selected.selected.length),c.Ab(1),c.Lc(" ",c.fc(13,14,"ADMIN.ATTRIBUTES.DELETE")," "),c.Ab(2),c.kc("placeholder","ADMIN.ATTRIBUTES.SEARCH"),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[k.a,M.b,A.a,i.t,T.c,D.a],pipes:[f.d],styles:[""]}),t})(),N=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Gb({type:t,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&c.Nb(0,"app-animated-router-outlet")},directives:[h.a],styles:[""]}),t})();var j=n("Q7Qd");let R=(()=>{class t{constructor(t){this.attributesManager=t}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(t=>{const e=t.graph.replace("\\t","").replace("\\n","").replace("\\","");Object(j.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(e)})}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(_.c))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(t,e){1&t&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Nb(3,"div",1)),2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},pipes:[f.d],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),t})(),P=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Gb({type:t,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Nb(1,"perun-web-apps-menu-buttons-field",0),c.Rb()),2&t&&(c.Ab(1),c.kc("items",e.items)("size","small"))},directives:[g.a],styles:[""]}),t})();var L=n("nIj0"),z=n("mWib"),F=n("Ohay"),B=n("8j5Y"),U=n("TLy2"),G=n("Ssnw"),V=n("x9Az"),H=n("29Wa"),Y=n("Cd2c"),W=n("ulve"),J=n("F1o0"),Z=n("mFH5");function q(t,e){1&t&&(c.Jc(0),c.ec(1,"translate")),2&t&&c.Kc(c.fc(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function X(t,e){1&t&&c.Nb(0,"mat-spinner",17),2&t&&c.kc("diameter",20)("strokeWidth",2)}function K(t,e){if(1&t&&(c.Sb(0,"mat-option",18),c.Sb(1,"span",19),c.Jc(2),c.Rb(),c.Jc(3),c.Rb()),2&t){const t=e.$implicit;c.kc("value",t.firstName+" "+t.lastName),c.Ab(2),c.Lc("#",t.id,""),c.Ab(1),c.Mc(" ",t.firstName," ",t.lastName," ")}}function $(t,e){1&t&&(c.Jc(0),c.ec(1,"translate")),2&t&&c.Kc(c.fc(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function Q(t,e){1&t&&(c.Jc(0),c.ec(1,"translate")),2&t&&c.Kc(c.fc(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function tt(t,e){if(1&t&&(c.Sb(0,"mat-radio-button",20),c.Jc(1),c.Rb()),2&t){const t=e.$implicit;c.kc("value",t),c.Ab(1),c.Lc(" ",t," ")}}let et=(()=>{class t{constructor(t,e,n,r,i,o){this.usersService=t,this.translate=e,this.facilityManager=n,this.serviceService=r,this.router=i,this.notificator=o,this.searchField=new L.g,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe(Object(z.a)(400),Object(F.a)(),Object(B.a)(t=>this.loading=!0),Object(U.a)(t=>this.usersService.findUsers(t)),Object(B.a)(t=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(t=>{this.noServiceText=t,this.availableServices.push(this.noServiceText)})}validateName(t){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(e=>{for(const n of e){if((n.firstName+" "+n.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=n,t.selected.completed=!0,t.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(t=>{this.notificator.showError(t)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(t=>{this.notificator.showError(t)})}validateDestination(t){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(e=>{if(0!==e.length){t.selected.completed=!0,t.next();for(const t of e)this.serviceService.getAllRichDestinationsForFacility(t.id).subscribe(t=>{for(const e of t)e.destination===this.destination&&-1===this.availableServices.indexOf(e.service.name)&&this.availableServices.push(e.service.name)})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(t=>{this.notificator.showError(t)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(t=>{this.notificator.showError(t)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"}}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService}}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(t=>{this.notificator.showError(t)})}notCompleted(t){t.selected.completed=!1}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(_.p),c.Mb(f.e),c.Mb(_.g),c.Mb(_.n),c.Mb(o.f),c.Mb(G.l))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},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","ngModelChange","keydown.enter"],["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","ngModelChange","keydown.enter"],["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(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div",0),c.Sb(1,"h1",1),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"mat-vertical-stepper",2,3),c.Sb(6,"mat-step",4),c.Hc(7,q,2,3,"ng-template",5),c.Sb(8,"mat-form-field",6),c.Sb(9,"input",7),c.Zb("ngModelChange",(function(){c.xc(t);const n=c.tc(5);return e.notCompleted(n)}))("keydown.enter",(function(){c.xc(t);const n=c.tc(5);return e.validateName(n)})),c.ec(10,"translate"),c.Rb(),c.Hc(11,X,1,2,"mat-spinner",8),c.Sb(12,"mat-hint",9),c.Jc(13),c.ec(14,"translate"),c.Rb(),c.Sb(15,"mat-autocomplete",null,10),c.Hc(17,K,4,4,"mat-option",11),c.ec(18,"async"),c.Rb(),c.Rb(),c.Sb(19,"div"),c.Sb(20,"button",12),c.Zb("click",(function(){c.xc(t);const n=c.tc(5);return e.validateName(n)})),c.Jc(21),c.ec(22,"translate"),c.Rb(),c.Rb(),c.Rb(),c.Sb(23,"mat-step",4),c.Hc(24,$,2,3,"ng-template",5),c.Sb(25,"mat-form-field",6),c.Sb(26,"input",13),c.Zb("ngModelChange",(function(t){return e.destination=t}))("ngModelChange",(function(){c.xc(t);const n=c.tc(5);return e.notCompleted(n)}))("keydown.enter",(function(){c.xc(t);const n=c.tc(5);return e.validateDestination(n)})),c.ec(27,"translate"),c.Rb(),c.Rb(),c.Sb(28,"div"),c.Sb(29,"button",14),c.Jc(30),c.ec(31,"translate"),c.Rb(),c.Sb(32,"button",12),c.Zb("click",(function(){c.xc(t);const n=c.tc(5);return e.validateDestination(n)})),c.Jc(33),c.ec(34,"translate"),c.Rb(),c.Rb(),c.Rb(),c.Sb(35,"mat-step"),c.Hc(36,Q,2,3,"ng-template",5),c.Sb(37,"mat-radio-group",15),c.Zb("ngModelChange",(function(t){return e.chosenService=t})),c.Hc(38,tt,2,2,"mat-radio-button",16),c.Rb(),c.Sb(39,"div"),c.Sb(40,"button",14),c.Jc(41),c.ec(42,"translate"),c.Rb(),c.Sb(43,"button",12),c.Zb("click",(function(){return e.getGraph()})),c.Jc(44),c.ec(45,"translate"),c.Rb(),c.Rb(),c.Rb(),c.Rb(),c.Rb()}if(2&t){const t=c.tc(16);c.Ab(2),c.Lc(" ",c.fc(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),c.Ab(7),c.lc("placeholder",c.fc(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),c.kc("formControl",e.searchField)("matAutocomplete",t),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(2),c.Kc(c.fc(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),c.Ab(4),c.kc("ngForOf",c.fc(18,22,e.users)),c.Ab(4),c.Lc(" ",c.fc(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),c.Ab(5),c.lc("placeholder",c.fc(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),c.kc("ngModel",e.destination),c.Ab(4),c.Lc(" ",c.fc(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),c.Ab(3),c.Lc(" ",c.fc(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),c.Ab(4),c.kc("ngModel",e.chosenService),c.Ab(1),c.kc("ngForOf",e.availableServices),c.Ab(3),c.Lc(" ",c.fc(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),c.Ab(3),c.Lc(" ",c.fc(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},directives:[V.j,V.b,V.d,H.c,Y.b,L.c,W.d,L.r,L.h,i.t,H.f,W.a,i.s,M.b,L.u,V.i,J.b,T.c,H.j,Z.n,J.a],pipes:[f.d,i.b],styles:[""]}),t})();var nt=n("D57K");function rt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function it(t){this._context=t}function ot(t,e){this._basis=new it(t),this._beta=e}it.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:rt(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:rt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ot.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],s=t[n]-i,a=e[n]-o,c=-1;++c<=n;)this._basis.point(this._beta*t[c]+(1-this._beta)*(i+(r=c/n)*s),this._beta*e[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var st=function t(e){function n(t){return 1===e?new it(t):new ot(t,e)}return n.beta=function(e){return t(+e)},n}(.85),at=n("ZTXN");function ct(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function ut(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var lt=n("f7+R"),ht=n("Sv/w"),ft=n("KTx3"),dt=n("dr5/"),pt=(n("7SLq"),n("z0Nn")),gt=(n("chUO"),n("Xq/B"));function mt(t){return{type:t}}n("Bitd"),n("xpD5"),n("8MQl"),["w","e"].map(mt),["n","s"].map(mt),["n","w","e","s","nw","ne","sw","se"].map(mt);var vt=function(t,e){return te?1:t>=e?0:NaN},bt=Math.sqrt(50),yt=Math.sqrt(10),wt=Math.sqrt(2);function _t(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=bt?10:o>=yt?5:o>=wt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=bt?10:o>=yt?5:o>=wt?2:1)}var xt=new Date,Et=new Date;function St(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return a;do{a.push(s=new Date(+n)),e(n,o),t(n)}while(s=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return xt.setTime(+e),Et.setTime(+r),t(xt),t(Et),Math.floor(n(xt,Et))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var kt=St((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));kt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?St((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Mt=kt;function At(t){return St((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}St((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));var Tt=At(0),Dt=At(1),It=(At(2),At(3),At(4)),Ot=(At(5),At(6),St((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),Ct=(St((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),St((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),St((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),St((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));function Nt(t){return St((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}Ct.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?St((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Ct:null};var jt=Nt(0),Rt=Nt(1),Pt=(Nt(2),Nt(3),Nt(4)),Lt=(Nt(5),Nt(6),St((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),zt=St((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));zt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?St((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Ft=zt;var Bt={"-":"",_:" ",0:"0"},Ut=/[\\^$*+?|[\]().{}]/g;function Gt(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?It(t):It.ceil(t),Gt(It.count(Mt(t),t)+(4===Mt(t).getDay()),e,2)}function ie(t){return t.getDay()}function oe(t,e){return Gt(Dt.count(Mt(t)-1,t),e,2)}function se(t,e){return Gt(t.getFullYear()%100,e,2)}function ae(t,e){return Gt(t.getFullYear()%1e4,e,4)}function ce(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Gt(e/60|0,"0",2)+Gt(e%60,"0",2)}function ue(t,e){return Gt(t.getUTCDate(),e,2)}function le(t,e){return Gt(t.getUTCHours(),e,2)}function he(t,e){return Gt(t.getUTCHours()%12||12,e,2)}function fe(t,e){return Gt(1+Lt.count(Ft(t),t),e,3)}function de(t,e){return Gt(t.getUTCMilliseconds(),e,3)}function pe(t,e){return de(t,e)+"000"}function ge(t,e){return Gt(t.getUTCMonth()+1,e,2)}function me(t,e){return Gt(t.getUTCMinutes(),e,2)}function ve(t,e){return Gt(t.getUTCSeconds(),e,2)}function be(t){var e=t.getUTCDay();return 0===e?7:e}function ye(t,e){return Gt(jt.count(Ft(t)-1,t),e,2)}function we(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Pt(t):Pt.ceil(t),Gt(Pt.count(Ft(t),t)+(4===Ft(t).getUTCDay()),e,2)}function _e(t){return t.getUTCDay()}function xe(t,e){return Gt(Rt.count(Ft(t)-1,t),e,2)}function Ee(t,e){return Gt(t.getUTCFullYear()%100,e,2)}function Se(t,e){return Gt(t.getUTCFullYear()%1e4,e,4)}function ke(){return"+0000"}function Me(){return"%"}function Ae(t){return+t}function Te(t){return Math.floor(+t/1e3)}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,u=(Ht(i),Yt(i),Ht(o),Yt(o),Ht(s),Yt(s),Ht(a),Yt(a),Ht(c),Yt(c),{a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Wt,e:Wt,f:Kt,H:Jt,I:Zt,j:qt,L:Xt,m:$t,M:Qt,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ae,s:Te,S:te,u:ee,U:ne,V:re,w:ie,W:oe,x:null,X:null,y:se,Y:ae,Z:ce,"%":Me}),l={a:function(t){return s[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:ue,e:ue,f:pe,H:le,I:he,j:fe,L:de,m:ge,M:me,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ae,s:Te,S:ve,u:be,U:ye,V:we,w:_e,W:xe,x:null,X:null,y:Ee,Y:Se,Z:ke,"%":Me};function h(t,e){return function(n){var r,i,o,s=[],a=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++a>>1;De(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;De(t[i],e)>0?r=i:n=i+1}return n}}).right,Ce=n("157b"),Ne=n("98dg"),je=function(t){return+t},Re=[0,1];function Pe(t){return t}function Le(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function ze(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i(e=s[c-1])&&(n=t,t=e,e=n),u=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?Fe:ze,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(s.map(t),a,c)))(t(u(e)))}return h.invert=function(n){return u(e((o||(o=r(a,s.map(t),Ce.a)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,je),l()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),l()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),c=Ne.a,l()},h.clamp=function(t){return arguments.length?(u=!!t||Pe,l()):u!==Pe},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Pe,Pe)}function Ge(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Ve=n("XYeE"),He=n("iDVY"),Ye=n("KLrH"),We=n("HKZs"),Je=n("q5AZ");function Ze(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,s,a=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/s),e=Math.floor(e/s),o=new Array(i=Math.ceil(e-t+1));++a=bt?i*=10:o>=yt?i*=5:o>=wt&&(i*=2),e0?r=_t(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=_t(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[o]=Math.floor(a/r)*r,i[s]=Math.ceil(c/r)*r,e(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[s]=Math.floor(c*r)/r,e(i)),t},t}function qe(){var t=Ue();return t.copy=function(){return Be(t,qe())},Ge.apply(t,arguments),Ze(t)}var Xe=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}function tn(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function en(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function nn(t,e,n){if(r=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n))).length){if((e=+e)<=0||r<2)return tn(t);if(e>=1)return Qe(t);var r,i=(r-1)*e,o=Math.floor(i),s=Qe(function t(e,n,r=0,i=e.length-1,o=vt){for(;i>r;){if(i-r>600){const s=i-r+1,a=n-r+1,c=Math.log(s),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(s-u)/s)*(a-s/2<0?-1:1);t(e,n,Math.max(r,Math.floor(n-a*u/s+l)),Math.min(i,Math.floor(n+(s-a)*u/s+l)),o)}const s=e[n];let a=r,c=i;for(en(e,r,n),o(e[i],s)>0&&en(e,r,i);a0;)--c}0===o(e[r],s)?en(e,r,c):(++c,en(e,c,i)),c<=n&&(r=c+1),n<=c&&(i=c-1)}return e}(t,o).subarray(0,o+1));return s+(tn(t.subarray(o+1))-s)*(i-o)}}function rn(t){this._context=t}rn.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var on=function(t){return new rn(t)},sn=n("1rRp"),an=function(t){return function(){return t}};function cn(t){return t[0]}function un(t){return t[1]}var ln=function(){};function hn(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function fn(t,e){this._context=t,this._k=(1-e)/6}function dn(t,e){this._context=t,this._k=(1-e)/6}function pn(t){this._curve=t}fn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:hn(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:hn(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new fn(t,e)}return n.tension=function(e){return t(+e)},n}(0),dn.prototype={areaStart:ln,areaEnd:ln,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:hn(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new dn(t,e)}return n.tension=function(e){return t(+e)},n}(0),pn.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,n("PvqL");var gn=function(t,e,n,r,i){for(var o,s=t.children,a=-1,c=s.length,u=t.value&&(r-e)/t.value;++a=0;)e+=n[r].value;else e=1;t.value=e}function bn(t,e){var n,r,i,o,s,a=new xn(t),c=+t.value&&(a.value=t.value),u=[a];for(null==e&&(e=yn);n=u.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(s=i.length))for(n.children=new Array(s),o=s-1;o>=0;--o)u.push(r=n.children[o]=new xn(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(_n)}function yn(t){return t.children}function wn(t){t.data=t.data.data}function _n(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function xn(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var s,a,c,u,l,h,f,d,p,g,m,v=[],b=e.children,y=0,w=0,_=b.length,x=e.value;y<_;){c=i-n,u=o-r;do{l=b[w++].value}while(!l&&w<_);for(h=f=l,m=l*l*(g=Math.max(u/c,c/u)/(x*t)),p=Math.max(f/m,m/h);w<_;++w){if(l+=a=b[w].value,af&&(f=a),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=a;break}p=d}v.push(s={value:l,dice:c1?e:1)},n}((1+Math.sqrt(5))/2),xn.prototype=bn.prototype={constructor:xn,count:function(){return this.eachAfter(vn)},each:function(t){var e,n,r,i,o=this,s=[o];do{for(e=s.reverse(),s=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return bn(this).eachBefore(wn)}};var En=n("e4iD");const Sn=["caretElm"];function kn(t,e){}const Mn=function(t){return{model:t}};function An(t,e){if(1&t&&(c.Sb(0,"span"),c.Hc(1,kn,0,0,"ng-template",5),c.Rb()),2&t){const t=c.dc();c.Ab(1),c.kc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",c.pc(2,Mn,t.context))}}function Tn(t,e){if(1&t&&c.Nb(0,"span",6),2&t){const t=c.dc();c.kc("innerHTML",t.title,c.yc)}}function Dn(t,e){if(1&t&&(c.cc(),c.bc(),c.Nb(0,"ngx-charts-scale-legend",4)),2&t){const t=c.dc();c.kc("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function In(t,e){if(1&t){const t=c.Tb();c.cc(),c.bc(),c.Sb(0,"ngx-charts-legend",5),c.Zb("labelClick",(function(e){return c.xc(t),c.dc().legendLabelClick.emit(e)}))("labelActivate",(function(e){return c.xc(t),c.dc().legendLabelActivate.emit(e)}))("labelDeactivate",(function(e){return c.xc(t),c.dc().legendLabelDeactivate.emit(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const On=["*"];function Cn(t,e){if(1&t&&(c.Sb(0,"header",4),c.Sb(1,"span",5),c.Jc(2),c.Rb(),c.Rb()),2&t){const t=c.dc();c.Ab(2),c.Kc(t.title)}}function Nn(t,e){if(1&t){const t=c.Tb();c.Sb(0,"li",6),c.Sb(1,"ngx-charts-legend-entry",7),c.Zb("select",(function(e){return c.xc(t),c.dc().labelClick.emit(e)}))("activate",(function(e){return c.xc(t),c.dc().activate(e)}))("deactivate",(function(e){return c.xc(t),c.dc().deactivate(e)})),c.Rb(),c.Rb()}if(2&t){const t=e.$implicit,n=c.dc();c.Ab(1),c.kc("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}let jn=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new ht.e(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new ht.d(t),s=i.attach(o);return this.projectComponentBindings(s,e),s}}return t.\u0275fac=function(e){return new(e||t)(c.Wb(c.g),c.Wb(c.j),c.Wb(c.s))},t.\u0275prov=c.Ib({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Rn(t,e,n){let r,i,o;n=n||{};let s=null,a=0;function c(){a=!1===n.leading?0:+new Date,s=null,o=t.apply(r,i)}return function(){const u=+new Date;a||!1!==n.leading||(a=u);const l=e-(u-a);return r=this,i=arguments,l<=0?(clearTimeout(s),s=null,a=u,o=t.apply(r,i)):s||!1===n.trailing||(s=setTimeout(c,l)),o}}var Pn=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Ln(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function zn(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class Fn{static calculateVerticalAlignment(t,e,n){let r=Ln(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=Ln(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=zn(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=zn(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,s=0;return t===Pn.right?(s=-7,o=Fn.calculateVerticalCaret(n,e,r,i)):t===Pn.left?(s=e.width,o=Fn.calculateVerticalCaret(n,e,r,i)):t===Pn.top?(o=e.height,s=Fn.calculateHorizontalCaret(n,e,r,i)):t===Pn.bottom&&(o=-7,s=Fn.calculateHorizontalCaret(n,e,r,i)),{top:o,left:s}}static positionContent(t,e,n,r,i){let o=0,s=0;return t===Pn.right?(s=n.left+n.width+r,o=Fn.calculateVerticalAlignment(n,e,i)):t===Pn.left?(s=n.left-e.width-r,o=Fn.calculateVerticalAlignment(n,e,i)):t===Pn.top?(o=n.top-e.height-r,s=Fn.calculateHorizontalAlignment(n,e,i)):t===Pn.bottom&&(o=n.top+n.height+r,s=Fn.calculateHorizontalAlignment(n,e,i)),{top:o,left:s}}static determinePlacement(t,e,n,r){if(Fn.shouldFlip(n,e,t,r)){if(t===Pn.right)return Pn.left;if(t===Pn.left)return Pn.right;if(t===Pn.top)return Pn.bottom;if(t===Pn.bottom)return Pn.top}return t}}let Bn,Un=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=Fn.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",r+"px"),this.renderer.setStyle(t,"left",i+"px")}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=Fn.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",i+"px"),this.renderer.setStyle(n,"left",o+"px")}checkFlip(t,e){this.placement=Fn.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(c.F))},t.\u0275cmp=c.Gb({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;1&t&&c.Qc(Sn,!0),2&t&&c.sc(n=c.ac())&&(e.caretElm=n.first)},hostVars:2,hostBindings:function(t,e){1&t&&c.Zb("resize",(function(){return e.onWindowResize()}),!1,c.wc),2&t&&c.Cb(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(c.Sb(0,"div"),c.Nb(1,"span",0,1),c.Sb(3,"div",2),c.Hc(4,An,2,4,"span",3),c.Hc(5,Tn,1,1,"span",4),c.Rb(),c.Rb()),2&t&&(c.Ab(1),c.Db("tooltip-caret position-",e.placement,""),c.kc("hidden",!e.showCaret),c.Ab(3),c.kc("ngIf",!e.title),c.Ab(1),c.kc("ngIf",e.title))},directives:[i.t,i.A],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),ct([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Rn(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t})(),Gn=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=Un}}return t.\u0275fac=function(e){return new(e||t)(c.Wb(jn))},t.\u0275prov=c.Ib({token:t,factory:t.\u0275fac}),t})(),Vn=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new c.o,this.legendLabelActivate=new c.o,this.legendLabelDeactivate=new c.o}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Gb({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[c.zb([Gn]),c.yb],ngContentSelectors:On,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(c.jc(),c.Sb(0,"div",0),c.cc(),c.Sb(1,"svg",1),c.ic(2),c.Rb(),c.Hc(3,Dn,1,5,"ngx-charts-scale-legend",2),c.Hc(4,In,1,7,"ngx-charts-legend",3),c.Rb()),2&t&&(c.Ec("width",e.view[0],"px"),c.kc("@animationState","active")("@.disabled",!e.animations),c.Ab(1),c.Bb("width",e.chartWidth)("height",e.view[1]),c.Ab(2),c.kc("ngIf",e.showLegend&&"scaleLegend"===e.legendType),c.Ab(1),c.kc("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[i.t,Kn,qn]},encapsulation:2,data:{animation:[Object(lt.n)("animationState",[Object(lt.m)(":enter",[Object(lt.l)({opacity:0}),Object(lt.e)("500ms 100ms",Object(lt.l)({opacity:1}))])])]},changeDetection:0}),t})(),Hn=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new c.o,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(c.A))},t.\u0275dir=c.Hb({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),Yn=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new c.o}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Hn(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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 t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(c.A),c.Mb(c.h))},t.\u0275cmp=c.Gb({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[c.yb],decls:1,vars:0,template:function(t,e){1&t&&c.Nb(0,"div")},encapsulation:2}),t})(),Wn=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})(),Jn=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},providers:[jn,Gn],imports:[[i.c]]}),t})();function Zn(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}"undefined"!=typeof window?Bn=window:"undefined"!=typeof global&&(Bn=global);let qn=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new c.o,this.labelActivate=new c.o,this.labelDeactivate=new c.o,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=Zn(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.h))},t.\u0275cmp=c.Gb({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[c.yb],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Hc(1,Cn,3,1,"header",0),c.Sb(2,"div",1),c.Sb(3,"ul",2),c.Hc(4,Nn,2,4,"li",3),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Ec("width",e.width,"px"),c.Ab(1),c.kc("ngIf",(null==e.title?null:e.title.length)>0),c.Ab(2),c.Ec("max-height",e.height-45,"px"),c.Eb("horizontal-legend",e.horizontal),c.Ab(1),c.kc("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[i.t,i.s,Xn]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Xn=(()=>{class t{constructor(){this.isActive=!1,this.select=new c.o,this.activate=new c.o,this.deactivate=new c.o,this.toggle=new c.o}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Gb({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&c.Zb("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(c.Sb(0,"span",0),c.Zb("click",(function(){return e.select.emit(e.formattedLabel)})),c.Sb(1,"span",1),c.Zb("click",(function(){return e.toggle.emit(e.formattedLabel)})),c.Rb(),c.Sb(2,"span",2),c.Jc(3),c.Rb(),c.Rb()),2&t&&(c.Eb("active",e.isActive),c.kc("title",e.formattedLabel),c.Ab(1),c.Ec("background-color",e.color),c.Ab(2),c.Lc(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Kn=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,r)=>{n.push(`${t} ${Math.round(100*e[r])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(En.b))},t.\u0275cmp=c.Gb({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[c.yb],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(c.Sb(0,"div",0),c.Sb(1,"div",1),c.Sb(2,"span"),c.Jc(3),c.Rb(),c.Rb(),c.Nb(4,"div",2),c.Sb(5,"div",1),c.Sb(6,"span"),c.Jc(7),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Ec("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),c.Eb("horizontal-legend",e.horizontal),c.Ab(3),c.Kc(e.valueRange[1].toLocaleString()),c.Ab(1),c.Ec("background",e.gradient),c.Ab(3),c.Kc(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),$n=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[i.c,Wn,Jn],i.c,Wn,Jn]}),t})(),Qn=[{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 tr{constructor(t,e,n,r){"string"==typeof t&&(t=Qn.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=r,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let r;if("string"==typeof t&&(t=Qn.find(e=>e.name===t)),"quantile"===e)r=function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=new Array(e-1);++t0?i[e-1]:n[0],e0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=qe().domain(this.domain).range([0,1]),r=function t(){var e,n,r=$e().unknown(void 0),i=r.domain,o=r.range,s=0,a=1,c=!1,u=0,l=0,h=.5;function f(){var t=i().length,r=a=(a-r.bandwidth()).toFixed(4))break;l.push({color:t,offset:e,opacity:1}),u=e,c++}}if(l[l.length-1].offset<100&&l.push({color:i,offset:a,opacity:1}),a===o)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(const h of l)h.offset=(h.offset-o)/(a-o)*100;return l}}let er=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n]]}),t})(),nr=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n]]}),t})(),rr=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n]]}),t})(),ir=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n]]}),t})(),or=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n]]}),t})();Math;let sr=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n]]}),t})(),ar=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n,sr,or]]}),t})(),cr=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n]]}),t})(),ur=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n]]}),t})(),lr=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[$n,sr,nr]]}),t})(),hr=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[$n,er,nr,rr,ir,or,ar,cr,sr,ur,lr]}),t})();var fr=Math.PI;function dr(t){return(1-Math.cos(fr*t))/2}var pr=n("bwdy"),gr=n("IdLP"),mr=n("ROBh"),vr=n("jOdJ");function br(t){return void 0===t}function yr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}function wr(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=(o=(g+v)/2))?g=o:v=o,(l=n>=(s=(m+b)/2))?m=s:b=s,i=d,!(d=d[h=l<<1|u]))return i[h]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===a&&n===c)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(o=(g+v)/2))?g=o:v=o,(l=n>=(s=(m+b)/2))?m=s:b=s}while((h=l<<1|u)==(f=(c>=s)<<1|a>=o));return i[f]=d,i[h]=p,t}var Tr=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function Dr(t){return t[0]}function Ir(t){return t[1]}function Or(t,e,n){var r=new Cr(null==e?Dr:e,null==n?Ir:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Cr(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Nr(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var jr=Or.prototype=Cr.prototype;function Rr(t){return t.x+t.vx}function Pr(t){return t.y+t.vy}jr.copy=function(){var t,e,n=new Cr(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Nr(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Nr(e));return n},jr.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return Ar(this.cover(e,n),e,n,t)},jr.addAll=function(t){var e,n,r,i,o=t.length,s=new Array(o),a=new Array(o),c=1/0,u=1/0,l=-1/0,h=-1/0;for(n=0;nl&&(l=r),ih&&(h=i));if(c>l||u>h)return this;for(this.cover(c,u).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(a=(ef||(o=c.y0)>d||(s=c.x1)=v)<<1|t>=m)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-u],p[p.length-1-u]=c)}else{var b=t-+this._x.call(null,g.data),y=e-+this._y.call(null,g.data),w=b*b+y*y;if(w=(a=(p+m)/2))?p=a:m=a,(l=s>=(c=(g+v)/2))?g=c:v=c,e=d,!(d=d[h=l<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},jr.removeAll=function(t){for(var e=0,n=t.length;ec+d||iu+d||oa.index){var p=c-s.x-s.vx,g=u-s.y-s.vy,m=p*p+g*g;mt.r&&(t.r=t[e].r)}function a(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r1?(null==n?a.remove(t):a.set(t,d(n)),e):a.get(t)},find:function(e,n,r){var i,o,s,a,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(t,n),e):u.on(t)}}},Kr=function(){var t,e,n,r,i=kr(-30),o=1,s=1/0,a=.81;function c(r){var i,o=t.length,s=Or(t,Jr,Zr).visitAfter(l);for(n=r,i=0;i=s)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Mr())*l),0===h&&(d+=(h=Mr())*h),dt.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Er.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ci()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreCluster:class{constructor(){this.defaultSettings={orientation:Ni.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(Er.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;const e=t=>{const e=this.dagreGraph._nodes[t.id];return Object.assign(Object.assign({},t),{position:{x:e.x,y:e.y},dimension:{width:e.width,height:e.height}})};return t.clusters=(t.clusters||[]).map(e),t.nodes=t.nodes.map(e),t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Er.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreClusters=t.clusters||[],this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ci()),e});for(const n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(const n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(t=>{this.dagreGraph.setParent(t,n.id)});for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreNodesOnly:class{constructor(){this.defaultSettings={orientation:Ni.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(Er.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],r=t.nodes.find(t=>t.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}for(const e of t.edges)this.updateEdge(t,e);return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===i?"x":"y",s="y"===i?"height":"width",a=n.position[i]<=r.position[i]?-1:1,c={[o]:n.position[o],[i]:n.position[i]-a*(n.dimension[s]/2)},u={[o]:r.position[o],[i]:r.position[i]+a*(r.dimension[s]/2)},l=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[c,{[o]:c[o],[i]:c[i]-a*l},{[o]:u[o],[i]:u[i]+a*l},u];const h=t.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return h&&(h.points=e.points),t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Er.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ci()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},d3ForceDirected:class{constructor(){this.defaultSettings={force:Xr().force("charge",Kr().strength(-150)).force("collide",Lr(5)),forceLink:Yr().id(t=>t.id).distance(()=>100)},this.settings={},this.outputGraph$=new at.a}run(t){return this.inputGraph=t,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t))],edges:[...this.inputGraph.edges.map(t=>Object.assign({},t))]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(t){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Ci(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>Object.assign(Object.assign({},t),{source:ji(t.source).id,target:ji(t.target).id,points:[{x:ji(t.source).x,y:ji(t.source).y},{x:ji(t.target).x,y:ji(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){this.settings.force.alphaTarget(.3).restart();const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.draggingStart={x:e.x-n.x,y:e.y-n.y},n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDrag(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDragEnd(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}},colaForceDirected:class{constructor(){this.defaultSettings={force:Object(ei.d3adaptor)(Object.assign(Object.assign(Object.assign({},ni),r),ri)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600,xOffset:0}},this.settings={},this.outputGraph$=new at.a}run(t){return this.inputGraph=t,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign(Object.assign({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(t=>this.inputGraph.clusters.findIndex(e=>e.id===t)).filter(t=>t>=0),leaves:t.childNodeIds.map(t=>this.inputGraph.nodes.findIndex(e=>e.id===t)).filter(t=>t>=0)}))],links:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(-1!==e&&-1!==n)return Object.assign(Object.assign({},t),{source:e,target:n})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(!(e>=0&&n>=0))return t}).filter(t=>!!t)]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(t){return this.outputGraph.nodes=t.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Ci(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=t.links.map(e=>{const n=Ri(t.nodes,e.source),r=Ri(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(e=>{const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n||t.groups.find(t=>t.id===e.source),o=r||t.groups.find(t=>t.id===e.target);return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map((t,e)=>Object.assign(Object.assign({},this.inputGraph.clusters[e]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}onDrag(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}onDragEnd(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}};let Li=(()=>{class t{getLayout(t){if(Pi[t])return new Pi[t];throw new Error(`Unknown layout type '${t}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=c.Ib({token:t,factory:t.\u0275fac}),t})();var zi=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),Fi=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Bi(t,e,n){let r,i,o;n=n||{};let s=null,a=0;function c(){a=!1===n.leading?0:+new Date,s=null,o=t.apply(r,i)}return function(){const u=+new Date;a||!1!==n.leading||(a=u);const l=e-(u-a);return r=this,i=arguments,l<=0?(clearTimeout(s),s=null,a=u,o=t.apply(r,i)):s||!1===n.trailing||(s=setTimeout(c,l)),o}}let Ui=(()=>{class t extends Yn{constructor(t,e,n,r){super(t,e,n),this.el=t,this.zone=e,this.cd=n,this.layoutService=r,this.legend=!1,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=zi.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=Fi.UpperRight,this.activate=new c.o,this.deactivate=new c.o,this.zoomChange=new c.o,this.clickHandler=new c.o,this.isMouseMoveCalled=!1,this.graphSubscription=new pr.a,this.subscriptions=[],this.margin=[0,0,0,0],this.results=[],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=t=>t.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}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(t=>{this.panToNodeId(t)})),this.minimapClipPathId="minimapClip"+Ci()}ngOnChanges(t){const{layoutSettings:e}=t;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}ngOnDestroy(){super.ngOnDestroy();for(const t of this.subscriptions)t.unsubscribe();this.subscriptions=null}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.update())}update(){super.update(),this.curve||(this.curve=st.beta(1)),this.zone.run(()=>{this.dims=function({width:t,height:e,margins:n,showXAxis:r=!1,showYAxis:i=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:c=!1,showLegend:u=!1,legendType:l="ordinal",legendPosition:h="right",columns:f=12}){let d=n[3],p=t,g=e-n[0]-n[2];if(u&&"right"===h&&(f-="ordinal"===l?2:1),p=p*f/12,p=p-n[1]-n[3],r&&(g-=5,g-=o,a)&&(g-=30),i&&(p-=5,p-=s,d+=s,d+=10,c)){const t=30;p-=t,d+=t}return p=Math.max(0,p),g=Math.max(0,g),{width:Math.floor(p),height:Math.floor(g),xOffset:Math.floor(d)}}({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new pr.a;const t=t=>(t.meta||(t.meta={}),t.id||(t.id=Ci()),t.dimension?t.meta.forceDimensions=void 0===t.meta.forceDimensions||t.meta.forceDimensions:(t.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},t.meta.forceDimensions=!1),t.position={x:0,y:0},t.data=t.data?t.data:{},t);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(t):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(t):[],edges:this.links.length>0?[...this.links].map(t=>(t.id||(t.id=Ci()),t)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const t=this.layout.run(this.graph),e=t instanceof gr.a?t:Object(mr.a)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.tick()})),0!==this.graph.nodes.length&&e.pipe(Object(vr.a)()).subscribe(()=>this.applyNodeDimensions())}tick(){const t=new Set;this.graph.nodes.map(e=>{e.transform=`translate(${e.position.x-e.dimension.width/2||0}, ${e.position.y-e.dimension.height/2||0})`,e.data||(e.data={}),e.data.color=this.colors.getColor(this.groupResultsBy(e)),t.add(e.id)});const e=new Set;(this.graph.clusters||[]).map(t=>{t.transform=`translate(${t.position.x-t.dimension.width/2||0}, ${t.position.y-t.dimension.height/2||0})`,t.data||(t.data={}),t.data.color=this.colors.getColor(this.groupResultsBy(t)),e.add(t.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=e},500);const n=[];for(const r in this.graph.edgeLabels){const t=this.graph.edgeLabels[r],e=r.replace(/[^\w-]*/g,""),i=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let o=this._oldLinks.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);const s=this.graph.edges.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);o?o.data&&s&&s.data&&JSON.stringify(o.data)!==JSON.stringify(s.data)&&(o.data=s.data):o=s||t,o.oldLine=o.line;const a=t.points,c=this.generateLine(a),u=Object.assign({},o);u.line=c,u.points=a,this.updateMidpointOnEdge(u,a);const l=a[Math.floor(a.length/2)];l&&(u.textTransform=`translate(${l.x||0},${l.y||0})`),u.textAngle=0,u.oldLine||(u.oldLine=u.line),this.calcDominantBaseline(u),n.push(u)}this.graph.edges=n,this.graph.edges&&(this._oldLinks=this.graph.edges.map(t=>{const e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Fi.UpperLeft:return"";case Fi.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,e=-1/0,n=1/0,r=-1/0;for(let i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}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(t=>{const e=t.nativeElement,n=this.graph.nodes.find(t=>t.id===e.id);if(!n)return;let r;try{if(r=e.getBBox(),!r.width||!r.height)return}catch(i){return}if(n.dimension.height=this.nodeHeight?n.dimension.height&&n.meta.forceDimensions?n.dimension.height:this.nodeHeight:n.dimension.height&&n.meta.forceDimensions?n.dimension.height:r.height,this.nodeMaxHeight&&(n.dimension.height=Math.max(n.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(n.dimension.height=Math.min(n.dimension.height,this.nodeMinHeight)),this.nodeWidth)n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:this.nodeWidth;else if(e.getElementsByTagName("text").length){let t;try{for(const n of e.getElementsByTagName("text")){const e=n.getBBox();t?(e.width>t.width&&(t.width=e.width),e.height>t.height&&(t.height=e.height)):t=e}}catch(i){return}n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:t.width+20}else n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:r.width;this.nodeMaxWidth&&(n.dimension.width=Math.max(n.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(n.dimension.width=Math.min(n.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.map(e=>{const n=this.graph.edges.find(t=>t.id===e.nativeElement.id);n&&(Object(dt.a)(e.nativeElement).select(".line").attr("d",n.oldLine).transition().ease(dr).duration(t?500:0).attr("d",n.line),Object(dt.a)(this.chartElement.nativeElement).select("#"+n.id).attr("d",n.oldTextPath).transition().ease(dr).duration(t?500:0).attr("d",n.textPath),this.updateMidpointOnEdge(n,n.points))})}calcDominantBaseline(t){const e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.xt.x).y(t=>t.y).curve(this.curve)(t)}onZoom(t,e){if(this.enableTrackpadSupport&&!t.ctrlKey)return void this.pan(-1*t.deltaX,-1*t.deltaY);const n=1+("in"===e?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*n;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){const e=t.clientX,r=t.clientY,i=this.chart.nativeElement.querySelector("svg"),o=i.querySelector("g.chart"),s=i.createSVGPoint();s.x=e,s.y=r;const a=s.matrixTransform(o.getScreenCTM().inverse());this.pan(a.x,a.y,!0),this.zoom(n),this.pan(-a.x,-a.y,!0)}else this.zoom(n)}pan(t,e,n=!1){const r=n?1:this.zoomLevel;this.transformationMatrix=xr(this.transformationMatrix,yr(t/r,e/r)),this.updateTransform()}panTo(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=xr(this.transformationMatrix,yr((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(t){this.transformationMatrix=xr(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return br(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;const e=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(e,t),e.position.x+=t.movementX/this.zoomLevel,e.position.y+=t.movementY/this.zoomLevel,e.transform=`translate(${e.position.x-e.dimension.width/2}, ${e.position.y-e.dimension.height/2})`;for(const n of this.graph.edges)if((n.target===e.id||n.source===e.id||n.target.id===e.id||n.source.id===e.id)&&this.layout&&"string"!=typeof this.layout){const t=this.layout.updateEdge(this.graph,n),e=t instanceof gr.a?t:Object(mr.a)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.redrawEdge(n)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){const e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}updateTransform(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,e)=>-1!==t.indexOf(e)?t:t.concat([e]),[]).sort()}trackLinkBy(t,e){return e.id}trackNodeBy(t,e){return e.id}setColors(){this.colors=new tr(this.scheme,"ordinal",this.seriesDomain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){const e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}onTouchEnd(t){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){const e=this.graph.nodes.find(e=>e.id===t);e&&this.panTo(e.position.x,e.position.y)}panWithConstraints(t,e){let n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case zi.Horizontal:this.pan(n,0);break;case zi.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}updateMidpointOnEdge(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{const n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(c.A),c.Mb(c.h),c.Mb(Li))},t.\u0275cmp=c.Gb({type:t,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){var r;1&t&&(c.Fb(n,ii,!0),c.Fb(n,oi,!0),c.Fb(n,si,!0),c.Fb(n,ai,!0),c.Fb(n,ci,!0)),2&t&&(c.sc(r=c.ac())&&(e.linkTemplate=r.first),c.sc(r=c.ac())&&(e.nodeTemplate=r.first),c.sc(r=c.ac())&&(e.clusterTemplate=r.first),c.sc(r=c.ac())&&(e.defsTemplate=r.first),c.sc(r=c.ac())&&(e.miniMapNodeTemplate=r.first))},viewQuery:function(t,e){var n;1&t&&(c.Dc(Vn,!0,c.l),c.Qc(ui,!0),c.Qc(li,!0)),2&t&&(c.sc(n=c.ac())&&(e.chart=n.first),c.sc(n=c.ac())&&(e.nodeElements=n),c.sc(n=c.ac())&&(e.linkElements=n))},hostBindings:function(t,e){1&t&&c.Zb("mousemove",(function(t){return e.onMouseMove(t)}),!1,c.vc)("mousedown",(function(t){return e.onMouseDown(t)}),!1,c.vc)("click",(function(t){return e.graphClick(t)}),!1,c.vc)("touchmove",(function(t){return e.onTouchMove(t)}),!1,c.vc)("mouseup",(function(t){return e.onMouseUp(t)}),!1,c.vc)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[c.xb,c.yb],ngContentSelectors:Ii,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(c.jc(),c.Sb(0,"ngx-charts-chart",0),c.Zb("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t)}))("mouseWheelUp",(function(t){return e.onZoom(t,"in")}))("mouseWheelDown",(function(t){return e.onZoom(t,"out")})),c.Hc(1,Ei,12,12,"g",1),c.cc(),c.Sb(2,"clipPath"),c.Nb(3,"rect"),c.Rb(),c.Hc(4,Ti,6,15,"g",2),c.Rb()),2&t&&(c.kc("view",c.qc(8,Di,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),c.Ab(1),c.kc("ngIf",e.initialized&&e.graph),c.Ab(1),c.Bb("id",e.minimapClipPathId),c.Ab(1),c.Bb("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),c.Ab(1),c.kc("ngIf",e.showMiniMap))},directives:function(){return[Vn,Gi,i.t,i.s,i.A]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),ct([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Bi(n.value,500,void 0)}),this[e]}}},ut("design:type",Function),ut("design:paramtypes",[]),ut("design:returntype",void 0)],t.prototype,"updateMinimap",null),t})(),Gi=(()=>{class t{constructor(){this.mouseWheelUp=new c.o,this.mouseWheelDown=new c.o}onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);const e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Hb({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&c.Zb("mousewheel",(function(t){return e.onMouseWheelChrome(t)}))("DOMMouseScroll",(function(t){return e.onMouseWheelFirefox(t)}))("wheel",(function(t){return e.onWheel(t)}))("onmousewheel",(function(t){return e.onMouseWheelIE(t)}))},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),Vi=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},providers:[Li],imports:[[$n]]}),t})(),Hi=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[hr],Vi]}),t})();const Yi=["caretElm"];function Wi(t,e){}const Ji=function(t){return{model:t}};function Zi(t,e){if(1&t&&(c.Sb(0,"span"),c.Hc(1,Wi,0,0,"ng-template",5),c.Rb()),2&t){const t=c.dc();c.Ab(1),c.kc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",c.pc(2,Ji,t.context))}}function qi(t,e){if(1&t&&c.Nb(0,"span",6),2&t){const t=c.dc();c.kc("innerHTML",t.title,c.yc)}}var Xi;let Ki=(()=>{let t=Xi=class{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(t){Xi.globalRootViewContainer=t}getRootViewContainer(){if(this._container)return this._container;if(Xi.globalRootViewContainer)return Xi.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new ht.e(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new ht.d(t),s=i.attach(o);return this.projectComponentBindings(s,e),s}};return t.\u0275fac=function(e){return new(e||t)(c.Wb(c.g),c.Wb(c.j),c.Wb(c.s))},t.\u0275prov=c.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t.globalRootViewContainer=null,t})();function $i(t,e,n){let r,i,o;n=n||{};let s=null,a=0;function c(){a=!1===n.leading?0:+new Date,s=null,o=t.apply(r,i)}return function(){const u=+new Date;a||!1!==n.leading||(a=u);const l=e-(u-a);return r=this,i=arguments,l<=0?(clearTimeout(s),s=null,a=u,o=t.apply(r,i)):s||!1===n.trailing||(s=setTimeout(c,l)),o}}var Qi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function to(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function eo(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class no{static calculateVerticalAlignment(t,e,n){let r=to(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=to(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=eo(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=eo(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,s=0;return t===Qi.right?(s=-7,o=no.calculateVerticalCaret(n,e,r,i)):t===Qi.left?(s=e.width,o=no.calculateVerticalCaret(n,e,r,i)):t===Qi.top?(o=e.height,s=no.calculateHorizontalCaret(n,e,r,i)):t===Qi.bottom&&(o=-7,s=no.calculateHorizontalCaret(n,e,r,i)),{top:o,left:s}}static positionContent(t,e,n,r,i){let o=0,s=0;return t===Qi.right?(s=n.left+n.width+r,o=no.calculateVerticalAlignment(n,e,i)):t===Qi.left?(s=n.left-e.width-r,o=no.calculateVerticalAlignment(n,e,i)):t===Qi.top?(o=n.top-e.height-r,s=no.calculateHorizontalAlignment(n,e,i)):t===Qi.bottom&&(o=n.top+n.height+r,s=no.calculateHorizontalAlignment(n,e,i)),{top:o,left:s}}static determinePlacement(t,e,n,r){if(no.shouldFlip(n,e,t,r)){if(t===Qi.right)return Qi.left;if(t===Qi.left)return Qi.right;if(t===Qi.top)return Qi.bottom;if(t===Qi.bottom)return Qi.top}return t}}let ro=(()=>{let t=class{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=no.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",r+"px"),this.renderer.setStyle(t,"left",i+"px")}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=no.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",i+"px"),this.renderer.setStyle(n,"left",o+"px")}checkFlip(t,e){this.placement=no.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}};return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(c.F))},t.\u0275cmp=c.Gb({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;1&t&&c.Qc(Yi,!0),2&t&&c.sc(n=c.ac())&&(e.caretElm=n.first)},hostVars:2,hostBindings:function(t,e){1&t&&c.Zb("resize",(function(){return e.onWindowResize()}),!1,c.wc),2&t&&c.Cb(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(c.Sb(0,"div"),c.Nb(1,"span",0,1),c.Sb(3,"div",2),c.Hc(4,Zi,2,4,"span",3),c.Hc(5,qi,1,1,"span",4),c.Rb(),c.Rb()),2&t&&(c.Ab(1),c.Db("tooltip-caret position-",e.placement,""),c.kc("hidden",!e.showCaret),c.Ab(3),c.kc("ngIf",!e.title),c.Ab(1),c.kc("ngIf",e.title))},directives:[i.t,i.A],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 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);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{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,transform .3s,-webkit-transform .3s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,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}"],encapsulation:2}),Object(nt.b)([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:$i(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t})(),io=(()=>{let t=class extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=ro}};return t.\u0275fac=function(e){return new(e||t)(c.Wb(Ki))},t.\u0275prov=c.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),oo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})();var so=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),ao=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),co=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let uo,lo=(()=>{let t=class{constructor(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Qi.top,this.tooltipAlignment=ao.center,this.tooltipType=so.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=co.all,this.tooltipImmediateExit=!1,this.show=new c.o,this.hide=new c.o}get listensForFocus(){return this.tooltipShowEvent===co.all||this.tooltipShowEvent===co.focus}get listensForHover(){return this.tooltipShowEvent===co.all||this.tooltipShowEvent===co.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{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),t?e():this.timeout=setTimeout(e,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 t.\u0275fac=function(e){return new(e||t)(c.Mb(io),c.Mb(c.Q),c.Mb(c.F))},t.\u0275dir=c.Hb({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&c.Zb("focusin",(function(){return e.onFocus()}))("blur",(function(){return e.onBlur()}))("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(t){return e.onMouseLeave(t.target)}))("click",(function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),ho=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},providers:[Ki,io],imports:[[i.c]]}),t})();"undefined"!=typeof window?uo=window:"undefined"!=typeof global&&(uo=global);let fo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[i.c,oo,ho],i.c,oo,ho]}),t})(),po=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo]]}),t})(),go=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo]]}),t})(),mo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo]]}),t})(),vo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo]]}),t})(),bo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo]]}),t})();Math;let yo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo]]}),t})(),wo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo,yo,bo]]}),t})(),_o=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo]]}),t})(),xo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo]]}),t})(),Eo=(()=>{let t=class{};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[fo,yo,go]]}),t})(),So=(()=>{let t=class{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[fo,po,go,mo,vo,bo,wo,_o,yo,xo,Eo]}),t})();function ko(t,e){1&t&&(c.Sb(0,"div"),c.Nb(1,"mat-spinner",3),c.Rb())}function Mo(t,e){if(1&t&&(c.Sb(0,"span"),c.Jc(1),c.ec(2,"translate"),c.Sb(3,"strong"),c.Jc(4),c.Rb(),c.Rb()),2&t){const t=c.dc(3);c.Ab(1),c.Lc(" ",c.fc(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),c.Ab(3),c.Kc(t.service)}}function Ao(t,e){1&t&&(c.cc(),c.Sb(0,"marker",10),c.Nb(1,"path",11),c.Rb())}function To(t,e){if(1&t&&(c.cc(),c.Sb(0,"g",12),c.Nb(1,"rect"),c.Sb(2,"text",13),c.Jc(3),c.Rb(),c.Rb()),2&t){const t=e.$implicit;c.kc("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",t.tooltip),c.Ab(1),c.Bb("width",t.dimension.width)("height",t.dimension.height)("fill",t.color),c.Ab(1),c.Bb("x",10)("y",t.dimension.height/2),c.Ab(1),c.Kc(t.label)}}function Do(t,e){if(1&t&&(c.cc(),c.Sb(0,"g",14),c.Nb(1,"path",15),c.Sb(2,"text",16),c.Sb(3,"textPath",17),c.Jc(4),c.Rb(),c.Rb(),c.Rb()),2&t){const t=e.$implicit;c.Ab(3),c.Bb("href","#"+t.id),c.Ab(1),c.Lc(" ",t.label," ")}}const Io=function(t,e){return[t,e]};function Oo(t,e){if(1&t&&(c.Sb(0,"div"),c.Jc(1),c.ec(2,"translate"),c.Sb(3,"strong"),c.Jc(4),c.Rb(),c.Jc(5),c.ec(6,"translate"),c.Sb(7,"strong"),c.Jc(8),c.Rb(),c.Hc(9,Mo,5,4,"span",4),c.Sb(10,"div",5),c.Sb(11,"ngx-graph",6),c.Hc(12,Ao,2,0,"ng-template",null,7,c.Ic),c.Hc(14,To,4,9,"ng-template",null,8,c.Ic),c.Hc(16,Do,5,2,"ng-template",null,9,c.Ic),c.Rb(),c.Rb(),c.Rb()),2&t){const t=c.dc(2);c.Ab(1),c.Lc(" ",c.fc(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),c.Ab(3),c.Mc("",t.user.firstName," ",t.user.lastName,""),c.Ab(1),c.Lc(" ",c.fc(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),c.Ab(3),c.Kc(t.destination),c.Ab(1),c.kc("ngIf","noService"!==t.service),c.Ab(2),c.kc("links",t.hierarchialGraph.links)("nodes",t.hierarchialGraph.nodes)("curve",t.curve)("draggingEnabled",!1)("zoomToFit$",t.zoomToFit$)("view",c.qc(16,Io,t.innerWidth,t.innerHeight))}}function Co(t,e){if(1&t&&(c.Sb(0,"span"),c.Jc(1),c.ec(2,"translate"),c.Sb(3,"strong"),c.Jc(4),c.Rb(),c.Rb()),2&t){const t=c.dc(3);c.Ab(1),c.Lc(" ",c.fc(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),c.Ab(3),c.Kc(t.service)}}function No(t,e){if(1&t&&(c.Jc(0),c.ec(1,"translate"),c.Sb(2,"strong"),c.Jc(3),c.Rb(),c.Jc(4),c.ec(5,"translate"),c.Sb(6,"strong"),c.Jc(7),c.Rb(),c.Hc(8,Co,5,4,"span",4),c.Jc(9),c.ec(10,"translate")),2&t){const t=c.dc(2);c.Lc(" ",c.fc(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),c.Ab(3),c.Mc("",t.user.firstName," ",t.user.lastName,""),c.Ab(1),c.Lc(" ",c.fc(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),c.Ab(3),c.Kc(t.destination),c.Ab(1),c.kc("ngIf","noService"!==t.service),c.Ab(1),c.Lc(" ",c.fc(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function jo(t,e){if(1&t&&(c.Hc(0,Oo,18,19,"div",1),c.Hc(1,No,11,13,"ng-template",null,2,c.Ic)),2&t){const t=c.tc(2),e=c.dc();c.kc("ngIf",e.isConnected)("ngIfElse",t)}}let Ro=(()=>{class t{constructor(t,e,n,r,i,o,s,a,c){this.route=t,this.facilityManager=e,this.userService=n,this.membersService=r,this.serviceService=i,this.resourceManager=o,this.groupService=s,this.voService=a,this.translate=c,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=st,this.zoomToFit$=new at.a}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(t=>{console.log(t),this.destination=t.destination,this.service=t.service,this.userService.getUserById(t.user).subscribe(t=>{this.user=t,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(t=>{this.facilities=t,this.membersService.getMembersByUser(this.user.id).subscribe(t=>{if(this.membership=t,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}];const e=""+this.id(),n="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[...this.hierarchialGraph.nodes,{id:e,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}]:[...this.hierarchialGraph.nodes,{id:e,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}];for(const r of this.facilities)this.serviceService.getAllRichDestinationsForFacility(r.id).subscribe(t=>{this.connectToService(r,t),this.delay(2e3).then(()=>{this.zoomToFit$.next(!0),this.loading=!1})})}connectToService(t,e){this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(e=>{for(let n=0;n{0!==r.length&&this.groupService.getMemberGroups(e.id).subscribe(e=>{const i=this.findConnectedGroups(r,e);if(0!==i.length)for(const r of i)this.connectToResource(t,r,n)})})}connectToResource(t,e,n){this.resourceManager.getAssignedResourcesWithGroup(e.id).subscribe(r=>{const i=this.findConnectedResources(r,n);for(const n of i)this.resourceManager.getAssignedServicesToResource(n.id).subscribe(r=>{this.haveService(r)&&(this.isConnected=!0,this.addNodesToGraph(e.voId,e,n,t))})})}addNodesToGraph(t,e,n,r){if(-1===this.findEntityInGraph("Facility: "+r.id)){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localFacility+": "+r.name,tooltip:r.description,color:"#FFCCFF",tip:"Facility: "+r.id}];const e={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,e]}this.voService.getVoById(t).subscribe(t=>{if(-1===this.findEntityInGraph("Vo: "+t.id)){const e=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:e,label:this.localVo+": "+t.shortName,tooltip:t.name,color:"#E5FFCC",tip:"Vo: "+t.id}];const n={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id)].id,target:e};this.hierarchialGraph.links=[...this.hierarchialGraph.links,n]}if(-1===this.findEntityInGraph("Group: "+e.id)){const n=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:n,label:this.localGroup+": "+e.name,tooltip:e.description,color:"#CCE5FF",tip:"Group: "+e.id}];const r={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+t.id)].id,target:n};this.hierarchialGraph.links=[...this.hierarchialGraph.links,r]}const i=this.findEntityInGraph("Resource: "+n.id);if(-1!==i){const t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:this.hierarchialGraph.nodes[i].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,t]}else{const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localResource+": "+n.name,tooltip:n.description,color:"#FFCCCC",tip:"Resource: "+n.id}];const i={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:t};this.hierarchialGraph.links=[...this.hierarchialGraph.links,i];const o={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+r.id)].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,o]}})}haveService(t){if("noService"===this.service)return!0;for(const e of t)if(this.service===e.name)return!0;return!1}findConnectedGroups(t,e){const n=[];for(let r=0;rsetTimeout(()=>e(),t)).then(()=>console.log("fired"))}))}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}getLocalizedNames(){this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.USER").subscribe(t=>{this.localUser=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(t=>{this.localVo=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(t=>{this.localGroup=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(t=>{this.localResource=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(t=>{this.localFacility=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(t=>{this.localService=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(t=>{this.localDestination=t})}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(o.a),c.Mb(_.g),c.Mb(_.p),c.Mb(_.i),c.Mb(_.n),c.Mb(_.m),c.Mb(_.h),c.Mb(_.q),c.Mb(f.e))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(t,e){1&t&&c.Zb("resize",(function(t){return e.onResize(t)}),!1,c.wc),2&t&&c.Eb("router-component",!0)},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","curve","draggingEnabled","zoomToFit$","view"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipPlacement","tooltipType","tooltipTitle"],["alignment-baseline","central"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(t,e){if(1&t&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Hc(3,ko,2,0,"div",1),c.Hc(4,jo,3,2,"ng-template",null,2,c.Ic)),2&t){const t=c.tc(5);c.Ab(1),c.Lc(" ",c.fc(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),c.Ab(2),c.kc("ngIf",e.loading)("ngIfElse",t)}},directives:[i.t,T.c,Ui,lo],pipes:[f.d],styles:[""]}),t})();var Po=n("D+oT"),Lo=n("ozd/"),zo=n("Y2X+"),Fo=n("j+u3");function Bo(t,e){1&t&&c.Nb(0,"mat-spinner",3)}const Uo=function(){return{color:"black"}},Go=function(t){return["/admin/users",t]};function Vo(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div",4),c.Nb(1,"mat-icon",5),c.ec(2,"translate"),c.Sb(3,"div",6),c.Sb(4,"div",7),c.Sb(5,"a",8),c.Jc(6),c.ec(7,"userFullName"),c.Rb(),c.Sb(8,"span",9),c.Jc(9),c.Rb(),c.Sb(10,"button",10),c.Zb("click",(function(){return c.xc(t),c.dc().editUser()})),c.Sb(11,"mat-icon"),c.Jc(12,"edit"),c.Rb(),c.Rb(),c.Rb(),c.Sb(13,"span",11),c.Jc(14),c.ec(15,"translate"),c.ec(16,"translate"),c.Rb(),c.Rb(),c.Rb()}if(2&t){const t=c.dc();c.Ab(1),c.lc("matTooltip",c.fc(2,8,"ADMIN_USER.ENTITY")),c.kc("ngStyle",c.oc(16,Uo)),c.Ab(4),c.kc("routerLink",c.pc(17,Go,t.user.id)),c.Ab(1),c.Lc(" ",c.fc(7,10,t.user)," "),c.Ab(3),c.Lc(" \xa0#",t.user.id," "),c.Ab(5),c.Nc(" ",c.fc(15,12,"ADMIN_USER.ENTITY"),", ",c.fc(16,14,"ADMIN_USER.USER_TYPE"),": ",t.getUserType()," ")}}let Ho=(()=>{class t{constructor(t,e,n,r,i){this.route=t,this.usersService=e,this.sideMenuService=n,this.sideMenuItemService=r,this.dialog=i,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.userId;this.path="/admin/users/"+e,this.regex="/admin/users/\\d+",this.usersService.getUserById(e).subscribe(t=>{this.user=t;const e=this.sideMenuItemService.parseUser(t,this.path,this.regex);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)})}editUser(){const t=Object(w.o)();t.width="450px",t.data={theme:"admin-theme",user:this.user},this.dialog.open(Lo.a,t).afterClosed().subscribe(t=>{t&&this.usersService.getUserById(this.user.id).subscribe(t=>{this.user=t})})}getUserType(){return this.user.serviceUser?"Service":"Person"}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(o.a),c.Mb(_.p),c.Mb(s.a),c.Mb(a.a),c.Mb(S.b))},t.\u0275cmp=c.Gb({type:t,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"],["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,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click"],[1,"mt-1","entity-info"]],template:function(t,e){1&t&&(c.Sb(0,"div",0),c.Nb(1,"perun-web-apps-back-button"),c.Hc(2,Bo,1,0,"mat-spinner",1),c.Hc(3,Vo,17,19,"div",2),c.Nb(4,"app-animated-router-outlet"),c.Rb()),2&t&&(c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading&&void 0!==e.user))},directives:[u.a,i.t,h.a,T.c,l.a,zo.a,i.w,o.i,M.b],pipes:[f.d,Fo.a],styles:[""]}),t})();var Yo=n("QOlj"),Wo=n("S5du"),Jo=n("BAI5"),Zo=n("faZ6"),qo=n("Q/gj"),Xo=n("m1kt"),Ko=n("ZWyU");function $o(t,e){1&t&&c.Nb(0,"mat-spinner",5)}const Qo=function(){return["select"]};function ts(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-ext-sources-list",6),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("extSources",t.extSources)("filterValue",t.filterValue)("hideColumns",c.oc(4,Qo))("pageSize",t.pageSize)}}let es=(()=>{class t{constructor(t,e,n,r){this.extSourceService=t,this.notificator=e,this.tableConfigService=n,this.translate=r,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=x.j,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(t=>this.loadSuccess=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}applyFilter(t){this.filterValue=t}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t,this.loading=!1})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(_.f),c.Mb(G.l),c.Mb(x.pb),c.Mb(f.e))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-admin-ext-sources"]],decls:10,vars:9,consts:[[1,"page-subtitle"],["mat-stroked-button","",1,"mr-2",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","hideColumns","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","hideColumns","pageSize","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"button",1),c.Zb("click",(function(){return e.onLoad()})),c.Jc(5),c.ec(6,"translate"),c.Rb(),c.Sb(7,"perun-web-apps-immediate-filter",2),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Hc(8,$o,1,0,"mat-spinner",3),c.Hc(9,ts,1,5,"app-ext-sources-list",4),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,5,"ADMIN.EXT_SOURCES.TITLE")),c.Ab(3),c.Lc(" ",c.fc(6,7,"ADMIN.EXT_SOURCES.LOAD")," "),c.Ab(2),c.kc("placeholder","ADMIN.EXT_SOURCES.SEARCH"),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[M.b,A.a,i.t,T.c,Ko.a],pipes:[f.d],styles:[""]}),t})();var ns=n("oXY0"),rs=n("ECIY"),is=n("h7zu"),os=n("Q2p/"),ss=n("NC8S"),as=n("FcRk");function cs(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-refresh-button",7),c.Zb("refresh",(function(){return c.xc(t),c.dc().refreshTable()})),c.Rb()}}function us(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",8),c.Zb("click",(function(){return c.xc(t),c.dc().onAdd()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE")," "))}function ls(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",9),c.Zb("click",(function(){return c.xc(t),c.dc().onRemove()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}if(2&t){const t=c.dc();c.kc("disabled",0===t.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE")," ")}}function hs(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-users-list",10),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("pageSize",t.pageSize)("users",t.identities)("selection",t.selection)("displayedColumns",t.displayedColumns)}}function fs(t,e){1&t&&(c.Sb(0,"app-alert",11),c.Jc(1),c.ec(2,"translate"),c.Rb()),2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES")," "))}function ds(t,e){1&t&&c.Nb(0,"mat-spinner",12)}let ps=(()=>{class t{constructor(t,e,n,r,i){this.route=t,this.dialog=e,this.router=n,this.tableConfigService=r,this.userManager=i,this.loading=!1,this.selection=new v.c(!1,[]),this.identities=[],this.tableId=x.fb,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.userId=t.userId,this.userManager.getSpecificUsersByUser(this.userId).subscribe(t=>{this.identities=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(t=>{this.identities=t,this.selection.clear(),this.loading=!1})}onAdd(){const t=Object(w.o)();t.width="1250px",t.data={userId:this.userId,theme:"user-theme",isService:!1},this.dialog.open(is.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=Object(w.o)();t.width="650px",t.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme"},this.dialog.open(os.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(o.a),c.Mb(S.b),c.Mb(o.f),c.Mb(x.pb),c.Mb(_.p))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-user-settings-service-identities"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,cs,1,0,"perun-web-apps-refresh-button",1),c.Hc(5,us,3,3,"button",2),c.Hc(6,ls,3,4,"button",3),c.Hc(7,hs,1,4,"app-users-list",4),c.Hc(8,fs,3,3,"app-alert",5),c.Rb(),c.Hc(9,ds,1,0,"mat-spinner",6)),2&t&&(c.Ab(2),c.Kc(c.fc(3,7,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),c.Ab(2),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",void 0!==e.identities&&e.identities.length>0),c.Ab(1),c.kc("ngIf",!e.loading&&(void 0===e.identities||0===e.identities.length)),c.Ab(1),c.kc("ngIf",e.loading))},directives:[i.t,k.a,M.b,ss.a,as.a,T.c],pipes:[f.d],styles:[""]}),t})();var gs=n("bATb"),ms=n("+0js"),vs=n("YFHD");function bs(t,e){1&t&&c.Nb(0,"mat-spinner",7)}function ys(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div"),c.Sb(1,"perun-web-apps-user-ext-sources-list",8),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb(),c.Rb()}if(2&t){const t=c.dc();c.Ab(1),c.kc("hideColumns",t.hiddenColumns)("selection",t.selection)("userExtSources",t.userExtSources)("pageSize",t.pageSize)}}let ws=(()=>{class t{constructor(t,e,n,r,i,o){this.usersManagerService=t,this.storage=e,this.registrarManagerService=n,this.dialog=r,this.route=i,this.tableConfigService=o,this.userExtSources=[],this.selection=new v.c(!1,[]),this.hiddenColumns=["mail"],this.tableId=x.cb}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,this.loading=!1},()=>this.loading=!1)}addIdentity(){const t=Object(w.o)();t.width="400px",t.data={userId:this.userId},this.dialog.open(gs.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeIdentity(){const t=Object(w.o)();t.width="400px",t.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(ms.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(_.p),c.Mb(G.m),c.Mb(_.l),c.Mb(S.b),c.Mb(o.a),c.Mb(x.pb))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-user-identities"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"hideColumns","selection","userExtSources","pageSize","page"]],template:function(t,e){1&t&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Sb(3,"perun-web-apps-refresh-button",1),c.Zb("refresh",(function(){return e.refreshTable()})),c.Rb(),c.Sb(4,"button",2),c.Zb("click",(function(){return e.addIdentity()})),c.Jc(5),c.ec(6,"translate"),c.Rb(),c.Sb(7,"button",3),c.Zb("click",(function(){return e.removeIdentity()})),c.Jc(8),c.ec(9,"translate"),c.Rb(),c.Sb(10,"div",4),c.Hc(11,bs,1,0,"mat-spinner",5),c.Rb(),c.Hc(12,ys,2,4,"div",6)),2&t&&(c.Ab(1),c.Kc(c.fc(2,6,"USER_DETAIL.IDENTITIES.TITLE")),c.Ab(4),c.Kc(c.fc(6,8,"USER_DETAIL.IDENTITIES.ADD")),c.Ab(2),c.kc("disabled",0===e.selection.selected.length),c.Ab(1),c.Kc(c.fc(9,10,"USER_DETAIL.IDENTITIES.REMOVE")),c.Ab(3),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[k.a,M.b,i.t,T.c,vs.a],pipes:[f.d],styles:[""]}),t})();var _s=n("pU19"),xs=n("r3xl"),Es=n("gcZR");function Ss(t,e){1&t&&c.Nb(0,"mat-spinner",7)}function ks(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-services-list",8),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("pageSize",t.pageSize)("selection",t.selection)("services",t.services)("filterValue",t.filterValue)}}let Ms=(()=>{class t{constructor(t,e,n){this.tableConfigService=t,this.serviceManager=e,this.dialog=n,this.selection=new v.c(!0,[]),this.loading=!1,this.filterValue="",this.tableId=x.l}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.serviceManager.getServices().subscribe(t=>{this.services=t,this.refreshTable()})}createService(){const t=Object(w.o)();t.width="600px",t.data={theme:"admin-theme"},this.dialog.open(_s.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}deleteService(){const t=Object(w.o)();t.width="600px",t.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(xs.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(t=>{this.services=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(x.pb),c.Mb(_.n),c.Mb(S.b))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-admin-services"]],decls:14,vars:13,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-2",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","selection","services","filterValue","page",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"pageSize","selection","services","filterValue","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"perun-web-apps-refresh-button",1),c.Zb("refresh",(function(){return e.refreshTable()})),c.Rb(),c.Sb(5,"button",2),c.Zb("click",(function(){return e.createService()})),c.Jc(6),c.ec(7,"translate"),c.Rb(),c.Sb(8,"button",3),c.Zb("click",(function(){return e.deleteService()})),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Sb(11,"perun-web-apps-immediate-filter",4),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Hc(12,Ss,1,0,"mat-spinner",5),c.Hc(13,ks,1,4,"app-services-list",6),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,7,"ADMIN.SERVICES.TITLE")),c.Ab(4),c.Lc(" ",c.fc(7,9,"ADMIN.SERVICES.CREATE"),""),c.Ab(2),c.kc("disabled",0===e.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(10,11,"ADMIN.SERVICES.DELETE"),""),c.Ab(2),c.kc("placeholder","ADMIN.SERVICES.FILTER"),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[k.a,M.b,A.a,i.t,T.c,Es.a],pipes:[f.d],styles:[""]}),t})();var As=n("23RZ");function Ts(t,e){1&t&&c.Nb(0,"mat-spinner",5)}const Ds=function(){return["id","name","vo","facility","description"]};function Is(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-resources-list",6),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("pageSize",t.pageSize)("resources",t.resources)("filterValue",t.filterValue)("displayedColumns",c.oc(4,Ds))}}let Os=(()=>{class t{constructor(t,e,n){this.userManager=t,this.tableConfigService=e,this.route=n,this.resources=[],this.tableId=x.m,this.filterValue=""}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.userManager.getAssignedRichResourcesForUser(t.userId).subscribe(t=>{this.resources=t,this.loading=!1})})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}resourceFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(_.p),c.Mb(x.pb),c.Mb(o.a))},t.\u0275cmp=c.Gb({type:t,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,"pageSize","resources","filterValue","displayedColumns","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","resources","filterValue","displayedColumns","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"perun-web-apps-refresh-button",1),c.Zb("refresh",(function(){return e.refreshTable()})),c.Rb(),c.Sb(5,"perun-web-apps-immediate-filter",2),c.Zb("filter",(function(t){return e.resourceFilter(t)})),c.Rb(),c.Hc(6,Ts,1,0,"mat-spinner",3),c.Hc(7,Is,1,5,"perun-web-apps-resources-list",4),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,4,"USER_DETAIL.RESOURCES.TITLE")),c.Ab(3),c.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[k.a,A.a,i.t,T.c,As.a],pipes:[f.d],styles:[""]}),t})();var Cs=n("EkHC"),Ns=n("TkCa");function js(t,e){1&t&&c.Nb(0,"mat-spinner",3)}const Rs=function(){return{color:"black"}},Ps=function(t){return["/admin/services",t]};function Ls(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div",4),c.Nb(1,"mat-icon",5),c.ec(2,"translate"),c.Sb(3,"div",6),c.Sb(4,"div",7),c.Sb(5,"a",8),c.Jc(6),c.Rb(),c.Sb(7,"span",9),c.Jc(8),c.Rb(),c.Sb(9,"button",10),c.Zb("click",(function(){return c.xc(t),c.dc().editService()})),c.Sb(10,"mat-icon"),c.Jc(11,"edit"),c.Rb(),c.Rb(),c.Rb(),c.Sb(12,"span",11),c.Jc(13),c.ec(14,"translate"),c.Rb(),c.Rb(),c.Rb()}if(2&t){const t=c.dc();c.Ab(1),c.lc("matTooltip",c.fc(2,7,"SERVICE_DETAIL.ENTITY")),c.kc("ngStyle",c.oc(11,Rs)),c.Ab(4),c.kc("routerLink",c.pc(12,Ps,t.service.id)),c.Ab(1),c.Lc(" ",t.service.name," "),c.Ab(2),c.Lc(" \xa0 #",t.service.id," "),c.Ab(5),c.Mc(" ",c.fc(14,9,"SERVICE_DETAIL.DESCRIPTION"),": ",t.service.description," ")}}let zs=(()=>{class t{constructor(t,e,n,r,i){this.route=t,this.serviceManager=e,this.sideMenuService=n,this.sideMenuItemService=r,this.dialog=i,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.serviceManager.getServiceById(t.serviceId).subscribe(t=>{this.service=t;const e=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)})}editService(){const t=Object(w.o)();t.width="600px",t.data={theme:"service-theme",service:this.service},this.dialog.open(_s.a,t).afterClosed().subscribe(t=>{t&&this.ngOnInit()})}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(o.a),c.Mb(_.n),c.Mb(s.a),c.Mb(a.a),c.Mb(S.b))},t.\u0275cmp=c.Gb({type:t,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","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click"],[1,"mt-1","entity-info"]],template:function(t,e){1&t&&(c.Sb(0,"div",0),c.Nb(1,"perun-web-apps-back-button"),c.Hc(2,js,1,0,"mat-spinner",1),c.Hc(3,Ls,15,14,"div",2),c.Nb(4,"app-animated-router-outlet"),c.Rb()),2&t&&(c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading&&void 0!==e.service))},directives:[u.a,i.t,h.a,T.c,l.a,zo.a,i.w,o.i,M.b],pipes:[f.d],styles:[""],data:{animation:[Ns.a]}}),t})(),Fs=(()=>{class t{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:"required-attributes",label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:"destinations",label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Gb({type:t,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&c.Nb(0,"perun-web-apps-menu-buttons-field",0),2&t&&c.kc("items",e.navItems)("size","small")},directives:[g.a],styles:[""]}),t})();var Bs=n("amZv"),Us=n("kLAD");function Gs(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-refresh-button",7),c.Zb("refresh",(function(){return c.xc(t),c.dc().refreshTable()})),c.Rb()}}function Vs(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",8),c.Zb("click",(function(){return c.xc(t),c.dc().onAdd()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function Hs(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",9),c.Zb("click",(function(){return c.xc(t),c.dc().onRemove()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}if(2&t){const t=c.dc();c.kc("disabled",0===t.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function Ys(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-immediate-filter",10),c.Zb("filter",(function(e){return c.xc(t),c.dc().applyFilter(e)})),c.Rb()}2&t&&c.kc("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER")}function Ws(t,e){1&t&&c.Nb(0,"mat-spinner",11)}function Js(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-attr-def-list",12),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)}))("refreshEvent",(function(){return c.xc(t),c.dc().refreshTable()})),c.Rb()}if(2&t){const t=c.dc();c.kc("pageSize",t.pageSize)("definitions",t.attrDefinitions)("selection",t.selection)("filterValue",t.filterValue)}}let Zs=(()=>{class t{constructor(t,e,n,r){this.route=t,this.tableConfigService=e,this.attributeManager=n,this.dialog=r,this.loading=!1,this.filterValue="",this.selection=new v.c(!0,[]),this.attrDefinitions=[],this.tableId=x.R}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.serviceId=t.serviceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.serviceId).subscribe(t=>{this.selection.clear(),this.attrDefinitions=t,this.loading=!1})}onAdd(){const t=Object(w.o)();t.width="950px",t.data={serviceId:this.serviceId,theme:"service-theme"},this.dialog.open(Bs.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=Object(w.o)();t.width="650px",t.data={serviceId:this.serviceId,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(Us.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(o.a),c.Mb(x.pb),c.Mb(_.c),c.Mb(S.b))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-service-required-attributes"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","definitions","selection","filterValue","page","refreshEvent",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","page","refreshEvent"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,Gs,1,0,"perun-web-apps-refresh-button",1),c.Hc(5,Vs,3,3,"button",2),c.Hc(6,Hs,3,4,"button",3),c.Hc(7,Ys,1,1,"perun-web-apps-immediate-filter",4),c.Hc(8,Ws,1,0,"mat-spinner",5),c.Hc(9,Js,1,4,"app-attr-def-list",6),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,7,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),c.Ab(2),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[i.t,k.a,M.b,A.a,T.c,D.a],pipes:[f.d],styles:[""]}),t})();function qs(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-refresh-button",7),c.Zb("refresh",(function(){return c.xc(t),c.dc().refreshTable()})),c.Rb()}}function Xs(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",8),c.Zb("click",(function(){return c.xc(t),c.dc().onAdd()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "))}function Ks(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",9),c.Zb("click",(function(){return c.xc(t),c.dc().onRemove()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}if(2&t){const t=c.dc();c.kc("disabled",0===t.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(2,2,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," ")}}function $s(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-users-list",10),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("pageSize",t.pageSize)("users",t.associatedUsers)("selection",t.selection)("displayedColumns",t.displayedColumns)}}function Qs(t,e){1&t&&(c.Sb(0,"app-alert",11),c.Jc(1),c.ec(2,"translate"),c.Rb()),2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS")," "))}function ta(t,e){1&t&&c.Nb(0,"mat-spinner",12)}let ea=(()=>{class t{constructor(t,e,n,r,i){this.route=t,this.dialog=e,this.router=n,this.tableConfigService=r,this.userManager=i,this.loading=!1,this.selection=new v.c(!1,[]),this.associatedUsers=[],this.tableId=x.Z,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.userId=t.userId,this.userManager.getUsersBySpecificUser(this.userId).subscribe(t=>{this.associatedUsers=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.userId).subscribe(t=>{this.associatedUsers=t,this.selection.clear(),this.loading=!1})}onAdd(){const t=Object(w.o)();t.width="1250px",t.data={userId:this.userId,theme:"user-theme",isService:!0},this.dialog.open(is.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=Object(w.o)();t.width="650px",t.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme"},this.dialog.open(os.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(o.a),c.Mb(S.b),c.Mb(o.f),c.Mb(x.pb),c.Mb(_.p))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-user-settings-associated-users"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,qs,1,0,"perun-web-apps-refresh-button",1),c.Hc(5,Xs,3,3,"button",2),c.Hc(6,Ks,3,4,"button",3),c.Hc(7,$s,1,4,"app-users-list",4),c.Hc(8,Qs,3,3,"app-alert",5),c.Rb(),c.Hc(9,ta,1,0,"mat-spinner",6)),2&t&&(c.Ab(2),c.Kc(c.fc(3,7,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),c.Ab(2),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",void 0!==e.associatedUsers&&e.associatedUsers.length>0),c.Ab(1),c.kc("ngIf",!e.loading&&(void 0===e.associatedUsers||0===e.associatedUsers.length)),c.Ab(1),c.kc("ngIf",e.loading))},directives:[i.t,k.a,M.b,ss.a,as.a,T.c],pipes:[f.d],styles:[""]}),t})();var na=n("/nwi"),ra=n("pgvo");function ia(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-refresh-button",7),c.Zb("refresh",(function(){return c.xc(t),c.dc().refreshTable()})),c.Rb()}}function oa(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",8),c.Zb("click",(function(){return c.xc(t),c.dc().onRemove()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}if(2&t){const t=c.dc();c.kc("disabled",0===t.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function sa(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",9),c.Zb("click",(function(){return c.xc(t),c.dc().onAllow()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}if(2&t){const t=c.dc();c.kc("disabled",0===t.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function aa(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",8),c.Zb("click",(function(){return c.xc(t),c.dc().onBlock()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}if(2&t){const t=c.dc();c.kc("disabled",0===t.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function ca(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-immediate-filter",10),c.Zb("filter",(function(e){return c.xc(t),c.dc().applyFilter(e)})),c.Rb()}2&t&&c.kc("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER")}function ua(t,e){1&t&&c.Nb(0,"mat-spinner",11)}const la=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function ha(t,e){if(1&t&&c.Nb(0,"app-perun-web-apps-destination-list",12),2&t){const t=c.dc();c.kc("destinations",t.destinations)("selection",t.selection)("pageSize",t.pageSize)("displayedColumns",c.oc(5,la))("filterValue",t.filterValue)}}let fa=(()=>{class t{constructor(t,e,n,r,i,o){this.route=t,this.tableConfigService=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.dialog=o,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new v.c(!0,[]),this.tableId=x.C}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.serviceId=t.serviceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.serviceId).subscribe(t=>{this.selection.clear(),this.filterValue="",this.destinations=t,this.loading=!1})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(this.serviceId,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(this.serviceId,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const t=Object(w.o)();t.width="500px",t.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(na.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(o.a),c.Mb(x.pb),c.Mb(_.n),c.Mb(G.l),c.Mb(f.e),c.Mb(S.b))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-service-destinations"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","selection","pageSize","displayedColumns","filterValue",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"destinations","selection","pageSize","displayedColumns","filterValue"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,ia,1,0,"perun-web-apps-refresh-button",1),c.Hc(5,oa,3,4,"button",2),c.Hc(6,sa,3,4,"button",3),c.Hc(7,aa,3,4,"button",2),c.Hc(8,ca,1,1,"perun-web-apps-immediate-filter",4),c.Hc(9,ua,1,0,"mat-spinner",5),c.Hc(10,ha,1,6,"app-perun-web-apps-destination-list",6),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,8,"SERVICE_DETAIL.DESTINATIONS.TITLE")),c.Ab(2),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[i.t,k.a,M.b,A.a,T.c,ra.a],pipes:[f.d],styles:[""]}),t})();var da=n("/VkC"),pa=n("P2UU"),ga=n("5kIe");function ma(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",8),c.Zb("click",(function(){return c.xc(t),c.dc().addOwner()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"ADMIN.OWNERS.ADD")," "))}function va(t,e){if(1&t){const t=c.Tb();c.Sb(0,"button",9),c.Zb("click",(function(){return c.xc(t),c.dc().removeOwner()})),c.Jc(1),c.ec(2,"translate"),c.Rb()}if(2&t){const t=c.dc();c.kc("disabled",!t.selected.selected.length),c.Ab(1),c.Lc(" ",c.fc(2,2,"ADMIN.OWNERS.DELETE")," ")}}function ba(t,e){1&t&&c.Nb(0,"mat-spinner",10)}function ya(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-owners-list",11),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("owners",t.owners)("selection",t.selected)}}let wa=(()=>{class t{constructor(t,e,n,r){this.ownersManagerService=t,this.tableConfigService=e,this.dialog=n,this.guiAuthResolver=r,this.owners=[],this.selected=new v.c(!0,[]),this.filterValue="",this.tableId=x.J}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(t=>{this.owners=t,this.selected.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}addOwner(){const t=Object(w.o)();t.width="400px",t.data={},this.dialog.open(pa.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeOwner(){const t=Object(w.o)();t.width="400px",t.data=this.selected.selected,this.dialog.open(da.a,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(_.j),c.Mb(x.pb),c.Mb(S.b),c.Mb(G.h))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","selection","page"]],template:function(t,e){1&t&&(c.Sb(0,"div",0),c.Sb(1,"h1",1),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"perun-web-apps-refresh-button",2),c.Zb("refresh",(function(){return e.refreshTable()})),c.Rb(),c.Hc(5,ma,3,3,"button",3),c.Hc(6,va,3,4,"button",4),c.Sb(7,"perun-web-apps-immediate-filter",5),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Hc(8,ba,1,0,"mat-spinner",6),c.Hc(9,ya,1,4,"app-owners-list",7),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,6,"ADMIN.OWNERS.TITLE")),c.Ab(3),c.kc("ngIf",e.addAuth),c.Ab(1),c.kc("ngIf",e.removeAuth),c.Ab(1),c.kc("placeholder","ADMIN.OWNERS.FILTER"),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[k.a,i.t,A.a,M.b,T.c,ga.a],pipes:[f.d],styles:[""]}),t})();var _a=n("w+DT");function xa(t,e){1&t&&c.Nb(0,"mat-spinner",5)}function Ea(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-facilities-list",6),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("filterValue",t.filterValue)("facilities",t.facilities)("displayedColumns",t.displayedColumns)("pageSize",t.pageSize)}}const Sa=[{path:"",component:p,children:[{path:"",component:m,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:C,data:{animation:"AdminAttributesPage"}},{path:"users",component:Po.a,data:{animation:"AdminUsersPage"}},{path:"owners",component:wa,data:{animation:"AdminOwnersPage"}},{path:"services",component:Ms,data:{animation:"AdminServicesPage"}},{path:"visualizer",component:N,children:[{path:"",component:P,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:R,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:et,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Ro,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:es,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:Ho,children:[{path:"",component:Yo.a,data:{animation:"UserOverviewPage"}},{path:"attributes",component:qo.a,data:{animation:"UserAttributesPage"}},{path:"organizations",component:Wo.a,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:Jo.a,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:ws,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:(()=>{class t{constructor(t,e,n){this.facilityManager=t,this.tableConfigService=e,this.route=n,this.facilities=[],this.filterValue="",this.tableId=x.k,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.userId=t.userId,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(t=>{this.facilities=t.map(t=>({facility:t})),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(_.g),c.Mb(x.pb),c.Mb(o.a))},t.\u0275cmp=c.Gb({type:t,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,"filterValue","facilities","displayedColumns","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"filterValue","facilities","displayedColumns","pageSize","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"perun-web-apps-refresh-button",1),c.Zb("refresh",(function(){return e.refreshTable()})),c.Rb(),c.Sb(5,"perun-web-apps-immediate-filter",2),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Hc(6,xa,1,0,"mat-spinner",3),c.Hc(7,Ea,1,4,"perun-web-apps-facilities-list",4),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,4,"USER_DETAIL.FACILITIES.TITLE")),c.Ab(3),c.kc("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[k.a,A.a,i.t,T.c,_a.a],pipes:[f.d],styles:[""]}),t})(),data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Os,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Cs.a,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:ns.a,data:{animation:"UserRolesPage"}},{path:"settings",component:Zo.a,children:[{path:"",component:Xo.a,data:{animation:"UserSettingsOverviewPage"}},{path:"facilityAttributes",component:rs.a,data:{animation:"UserSettingsFacilityAttributesPage",showPrincipal:!1}},{path:"service-identities",component:ps,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:ea,data:{animation:"AssociatedUsersPage"}}]}]},{path:"services/:serviceId",component:zs,children:[{path:"",component:Fs,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:Zs,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:fa,data:{animation:"ServiceDestinationsPage"}}]}];let ka=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[o.j.forChild(Sa)],o.j]}),t})();var Ma=n("PCNd"),Aa=n("KoHB"),Ta=n("HHEo"),Da=n("t47Z"),Ia=n("zrcO");let Oa=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[Hi,So,i.c,ka,Ma.a,Aa.a,Ta.d,Da.b,Ia.UsersModule]]}),t})()},kG2z:function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},kHoZ:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},keXZ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=r;var i=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=i;var o=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach((function(t){return n(t,t.right)})),this.cIn.forEach((function(t){return n(t,t.left)}))},t}();e.Variable=o;var s=function(){function t(t){this.vars=[],t.offset=0,this.ps=new r(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=c,e.removeOverlapInOneDimension=function(t,e,n){for(var r=t.map((function(t){return new o(t.desiredCenter)})),s=[],a=t.length,u=0;u=0&&e._call.call(null,t),e=e._next;--o}function b(){u=(c=h.now())+l,o=s=0;try{v()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),u=0}}function y(){var t=h.now(),e=t-c;e>1e3&&(l-=e,c=t)}function w(t){o||(s&&(s=clearTimeout(s)),t-u>24?(t<1/0&&(s=setTimeout(b,t-h.now()-l)),a&&(a=clearInterval(a))):(a||(c=h.now(),a=setInterval(y,1e3)),o=1,f(b)))}g.prototype=m.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},oCTG:function(t,e,n){var r=n("Syyo"),i=n("bvyN"),o=n("wxYD"),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},osTN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("Tx5e"),i=n("WcC/");e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},"p1C/":function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},p2lg:function(t,e,n){var r=n("tQYX"),i=n("CbIe"),o=n("/UTG"),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},pFSi:function(t,e,n){var r=n("hyzI");function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},pIod:function(t,e,n){var r=n("y/9h"),i=n("wxYD");t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},pNP6:function(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,"b",(function(){return r})),e.a=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n-1&&t%1==0&&t=200){var g=e?null:a(t);if(g)return c(g);f=!1,l=s,p=new r}else p=e?[]:d;t:for(;++u-1&&t%1==0&&t<=9007199254740991}},tLQN:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},tPQG:function(t,e,n){var r=n("LtXa"),i=n("BlJA");t.exports=function(t,e){return t&&r(e,i(e),t)}},tQYX:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},tlBq:function(t,e,n){var r=n("pIod"),i=n("70Le"),o=n("BlJA");t.exports=function(t){return r(t,o,i)}},u6DZ:function(t,e,n){var r=n("YpBQ"),i=n("eHpp"),o=n("R3TX"),s=n("R5u7"),a=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=a},uoq0:function(t,e,n){"use strict";n.r(e),n.d(e,"zoom",(function(){return S})),n.d(e,"zoomTransform",(function(){return g})),n.d(e,"zoomIdentity",(function(){return p}));var r=n("z0Nn"),i=n("chUO"),o=n("nJRJ"),s=n("7SLq"),a=n("xpD5"),c=n("dr5/"),u=n("Bitd"),l=n("8MQl"),h=function(t){return function(){return t}};function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function m(){s.c.stopImmediatePropagation()}g.prototype=d.prototype;var v=function(){s.c.preventDefault(),s.c.stopImmediatePropagation()};function b(){return!s.c.button}function y(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function _(){return-s.c.deltaY*(s.c.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}var S=function(){var t,e,n=b,g=y,S=E,k=_,M=x,A=[0,1/0],T=[[-1/0,-1/0],[1/0,1/0]],D=250,I=o.a,O=[],C=Object(r.a)("start","zoom","end"),N=0;function j(t){t.property("__zoom",w).on("wheel.zoom",U).on("mousedown.zoom",G).on("dblclick.zoom",V).filter(M).on("touchstart.zoom",H).on("touchmove.zoom",Y).on("touchend.zoom touchcancel.zoom",W).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(t,e){return(e=Math.max(A[0],Math.min(A[1],e)))===t.k?t:new d(e,t.x,t.y)}function P(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function L(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function z(t,e,n){t.on("start.zoom",(function(){F(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){F(this,arguments).end()})).tween("zoom",(function(){var t=this,r=arguments,i=F(t,r),o=g.apply(t,r),s=n||L(o),a=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=t.__zoom,u="function"==typeof e?e.apply(t,r):e,l=I(c.invert(s).concat(a/c.k),u.invert(s).concat(a/u.k));return function(t){if(1===t)t=u;else{var e=l(t),n=a/e[2];t=new d(n,s[0]-e[0]*n,s[1]-e[1]*n)}i.zoom(null,t)}}))}function F(t,e){for(var n,r=0,i=O.length;rN}t.zoom("mouse",S(P(t.that.__zoom,t.mouse[0]=Object(a.a)(t.that),t.mouse[1]),t.extent,T))}function d(){r.on("mousemove.zoom mouseup.zoom",null),Object(i.b)(s.c.view,t.moved),v(),t.end()}}function V(){if(n.apply(this,arguments)){var t=this.__zoom,e=Object(a.a)(this),r=t.invert(e),i=t.k*(s.c.shiftKey?.5:2),o=S(P(R(t,i),e,r),g.apply(this,arguments),T);v(),D>0?Object(c.a)(this).transition().duration(D).call(z,o,e):Object(c.a)(this).call(j.transform,o)}}function H(){if(n.apply(this,arguments)){var e,r,i,o,a=F(this,arguments),h=s.c.changedTouches,f=h.length;for(m(),r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,(function(t,n){return e(n,t)}))},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new s(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=o;var s=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=s;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return i(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,c=r,u=null,l=this._root;for(c.right=this._root;;){if(null===l?(l=new a(t),u.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(u)){var h=c.right===s;l===u.get_child(o)?c.set_child(h,e.single_rotate(s,!o)):c.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(c=s),s=u,u=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,c=!0;null!==r.get_child(c);){var u=c;o=i,i=r,r=r.get_child(c);var l=this._comparator(t,r.data);if(c=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(c)))if(e.is_red(r.get_child(!c))){var h=e.single_rotate(r,c);i.set_child(u,h),i=h}else if(!e.is_red(r.get_child(!c))){var f=i.get_child(!u);if(null!==f)if(e.is_red(f.get_child(!u))||e.is_red(f.get_child(u))){var d=o.right===i;e.is_red(f.get_child(u))?o.set_child(d,e.double_rotate(i,u)):e.is_red(f.get_child(!u))&&o.set_child(d,e.single_rotate(i,u));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(o)},vxC8:function(t,e,n){var r=n("5nKN"),i=n("4p/L");t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},w0mW:function(t,e,n){var r=n("dw5g"),i=0;t.exports=function(t){var e=++i;return r(t)+e}},w2Tz:function(t,e,n){var r=n("xoyU"),i=n("Ypsa");t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r0;){if(n=c.removeMin(),r.has(a,n))s.setEdge(n,a[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(u)}return s}},xaOS:function(t,e,n){"use strict";var r=n("gjtd"),i=n("vC4J").Graph,o=n("xxjf");function s(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,s=0,a=e.length,u=r.last(i);return r.forEach(i,(function(e,l){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:a;(h||e===u)&&(r.forEach(i.slice(s,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),s=i.order;!(sa)&&c(n,e,u)}))}))}return r.reduce(e,(function(e,n){var o,s=-1,a=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(o=t.node(u[0]).order,i(n,a,c,s,o),a=c,s=o)}i(n,a,n.length,o,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},s={},a={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,s[t]=t,a[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length)for(var l=((c=r.sortBy(c,(function(t){return a[t]}))).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=c[h];s[t]===t&&e180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(a.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,c,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(a.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,c,u),function(t,e,n,r,o,s){if(t!==n||e!==r){var c=o.push(i(o)+"scale(",null,",",null,")");s.push({i:c-4,x:Object(a.a)(t,n)},{i:c-2,x:Object(a.a)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,c,u),o=s=null,function(t){for(var e,n=-1,r=u.length;++nMath.abs(s)*u?(a<0&&(u=-u),n=u*s/a,r=u):(s<0&&(c=-c),n=c,r=c*a/s),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(s(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:s,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},"y/9h":function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;oe.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(u,c,f),r.forEach(a,(function(t){f+=t.vs.length,u.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(u,c,f)}));var d={vs:r.flatten(u,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},zF5n:function(t,e,n){var r=n("pIod"),i=n("Xidw"),o=n("zH+d");t.exports=function(t){return r(t,o,i)}},"zH+d":function(t,e,n){var r=n("rmhs"),i=n("p2lg"),o=n("9y2L");t.exports=function(t){return o(t)?r(t,!0):i(t)}},zKkv:function(t,e,n){var r=n("UdtX"),i=n("BlJA");t.exports=function(t,e){return t&&r(t,e,i)}},zL3f:function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}n.d(e,"a",(function(){return r})),e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],s=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-s,o,s,i0){var e=0;this._links.forEach((function(t){e=Math.max(e,t.source,t.target)})),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,c,u,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===c&&(c=0),void 0===u&&(u=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],m=this._canvasSize[1],v=new Array(p),b=new Array(p),y=null,w=this._avoidOverlaps;this._nodes.forEach((function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=m/2),v[e]=t.x,b[e]=t.y})),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new a.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,(function(t){return h.getLinkLength(t)})).DistanceMatrix(),y=o.Descent.createSquareMatrix(p,(function(){return 2})),this._links.forEach((function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])})),this._links.forEach((function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);y[n][r]=y[r][n]=e.weight||1})));var _=o.Descent.createSquareMatrix(p,(function(t,e){return f[t][e]}));if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach((function(t){!function(t,e,n,r){y[t][e]=y[e][t]=n,_[t][e]=_[e][t]=.1}(x,x+1,h._groupCompactness),v[x]=0,b[x++]=0,v[x]=0,b[x++]=0}))}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([v,b],_),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,m,l),this.avoidOverlaps(w),w&&(this._nodes.forEach((function(t,e){t.x=v[e],t.y=b[e]})),this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach((function(t,e){v[e]=t.x,b[e]=t.y}))),this._descent.G=y,this._descent.run(r),c){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var k=o.Descent.createSquareMatrix(p,(function(t,e){return t>=d||e>=d?y[t][e]:0}));this._descent.G=k,this._descent.run(c)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,l),u?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map((function(t){return{source:t.source.index,target:t.target.index}})),s=this._nodes.map((function(t){return{index:t.index}}));this._groups.forEach((function(t,e){s.push({index:t.index=i+e})})),this._groups.forEach((function(t,e){void 0!==t.leaves&&t.leaves.forEach((function(e){return o.push({source:t.index,target:e.index})})),void 0!==t.groups&&t.groups.forEach((function(e){return o.push({source:t.index,target:e.index})}))})),(new t).size(this.size()).nodes(s).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach((function(t){n[t.index]=s[t.index].x,r[t.index]=s[t.index].y}))}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach((function(t,e){t.x=i[e],t.y=o[e]}));var s=u.separateGraphs(this._nodes,this._links);u.applyPacking(s,t,e,this._defaultNodeSize,1,n),this._nodes.forEach((function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))}))}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new c.TangentVisibilityGraph(this._nodes.map((function(e){return e.bounds.inflate(-t).vertices()})))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new c.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},u={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(u,t.target.index);i.addEdgeIfVisible(o,u,t.source.index,t.target.index),void 0!==n&&n(i);var f=new a.Calculator(i.V.length,i.E,(function(t){return t.source.id}),(function(t){return t.target.id}),(function(t){return t.length()})).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=s.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,m=i.V[f[0]].p,v=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);v>=0;--v)r.push(i.V[f[v]].p);r.push(s.makeEdgeTo(m,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach((function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.storeOffset(e,n)}))},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach((function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.drag(e,n)}))):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach((function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY})),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/7-es5.e70a6e548d1418c1e820.js b/dist/apps/admin-gui/7-es5.e70a6e548d1418c1e820.js new file mode 100644 index 000000000..18c89a3ea --- /dev/null +++ b/dist/apps/admin-gui/7-es5.e70a6e548d1418c1e820.js @@ -0,0 +1 @@ +!function(){function t(e,n,r){return(t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(e,n,r||e)}function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1?s[u?e[c]:c]:void 0}}},"1mr4":function(t,e,n){var r=n("SJov"),i=n("z+TE");t.exports=function(t,e){return null!=t&&i(t,e,r)}},"1qSF":function(t,e,n){t.exports={Graph:n("buMw"),version:n("5AdH")}},"1rRp":function(t,e,n){"use strict";var r=Math.PI,i=2*r,o=i-1e-6;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new a}a.prototype=s.prototype={constructor:a,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,i,o){var a=this._x1,s=this._y1,u=(n=+n)-(t=+t),c=(i=+i)-(e=+e),l=a-t,h=s-e,f=l*l+h*h;if((o=+o)<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=n-a,p=i-s,g=u*u+c*c,v=d*d+p*p,m=Math.sqrt(g),y=Math.sqrt(f),b=o*Math.tan((r-Math.acos((g+f-v)/(2*m*y)))/2),w=b/y,_=b/m;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+_*u)+","+(this._y1=e+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,a,s,u){t=+t,e=+e,u=!!u;var c=(n=+n)*Math.cos(a),l=n*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),n&&(p<0&&(p=p%i+i),p>o?this._+="A"+n+","+n+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+n+","+n+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=t+n*Math.cos(s))+","+(this._y1=e+n*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.a=s},"1xil":function(t,e,n){var r=n("YpBQ");t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},"1yUy":function(t,e,n){"use strict";var r=n("gjtd"),i=n("fd5j");t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},"21zJ":function(t,e,n){var r=n("5Ck4");t.exports=function(t,e){return r(t,e,"post")}},"2Fbm":function(t,e,n){var r=n("5pfJ");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},"2M3I":function(t,e,n){var r=n("9au6"),i=n("R5u7"),o=n("fWyh");t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map((function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))})),this.leaves=this.nodes.filter((function(t){return t.leaf})),this.groups=this.nodes.filter((function(t){return!t.leaf})),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach((function(t){return t.children.forEach((function(e){return i.nodes[e].parent=t}))})),this.root={children:[]},this.nodes.forEach((function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]})),this.backToFront=this.nodes.slice(0),this.backToFront.sort((function(t,e){return i.getDepth(t)-i.getDepth(e)})),this.backToFront.slice(0).reverse().filter((function(t){return!t.leaf})).forEach((function(t){var e=r.Rectangle.empty();t.children.forEach((function(t){return e=e.union(i.nodes[t].rect)})),t.rect=e.inflate(i.groupPadding)}));var o=this.midPoints(this.cols.map((function(t){return t.pos}))),u=this.midPoints(this.rows.map((function(t){return t.pos}))),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map((function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}})).concat(u.map((function(t){return{x1:c,x2:l,y1:t,y2:t}}))),p=this.cols.map((function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}})).concat(o.map((function(t){return{x1:t,x2:t,y1:h,y2:f}}))),g=d.concat(p);g.forEach((function(t){return t.verts=[]})),this.verts=[],this.edges=[],d.forEach((function(t){return p.forEach((function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter((function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)})),i={nodes:r,pos:this.avg(r.map((function(e){return e.rect["c"+t]()})))};e.push(i),i.nodes.forEach((function(t){return n.splice(n.indexOf(t),1)}))}return e.sort((function(t,e){return t.pos-e.pos})),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map((function(e){return new i.Variable(e[0][t])})),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[v],a))}new i.Solver(u,c).solve(),u.forEach((function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r:r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0})).reverse().map((function(t){return n.verts[t]}));return u.push(this.nodes[i.id].ports[0]),u.filter((function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)}))},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,v=p[0].y;f=p[1].x-g,d=p[1].y-v;var m,y,b=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(m=g+f/Math.abs(f)*n,y=v):(m=g,y=v+d/Math.abs(d)*n);var w=Math.abs(m-a),_=Math.abs(y-s);l.routepath+="A "+w+" "+_+" 0 0 "+b+" "+m+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},"4+Vk":function(t,e,n){var r=n("vxC8")(n("IBsm"),"WeakMap");t.exports=r},"4/ik":function(t,e,n){var r=n("+ooz"),i=n("qeCs"),o=n("hyzI");t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},"4CxS":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("aj3f"),i=n("Lm04"),o=n("gbTj"),a=n("bJjD");e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce((function(t,n){var r=n[e.target]-n[e.source];return t+r*r}),0))},t}(),e.Node3D=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n},e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},"4ScB":function(t,e,n){var r=n("LtXa"),i=n("zH+d");t.exports=function(t){return r(t,i(t))}},"4e6e":function(t,e,n){t.exports={graphlib:n("vC4J"),layout:n("Pivv"),debug:n("zmx7"),util:{time:n("xxjf").time,notime:n("xxjf").notime},version:n("VQMV")}},"4jPf":function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},"4p/L":function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},"4uJK":function(t,e,n){var r=n("CbIe"),i=n("OtNC"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},"58Ui":function(t,e,n){"use strict";var r=n("gjtd"),i=n("vC4J").Graph,o=n("K8/D").slack;function a(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;t.hasNode(s)||o(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function u(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),c=t.nodes()[0],l=t.nodeCount();for(r.setNode(c,{});a(r,t)=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},"5nKN":function(t,e,n){var r=n("2q8g"),i=n("9vbJ"),o=n("tQYX"),a=n("c18h"),s=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?u:s).test(a(t))}},"5pfJ":function(t,e,n){var r=n("vxC8")(Object,"create");t.exports=r},"5q8j":function(t,e){t.exports=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},"6I2w":function(t,e,n){var r=n("kkM+"),i=n("tLQN");t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},"6QIk":function(t,e,n){var r=n("pPzx");t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},"6R5o":function(t,e,n){var r=n("1aYn")(n("FllU"));t.exports=r},"6Rtw":function(t,e,n){var r=n("EAGB");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},"6UKJ":function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},"6YE2":function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},"7/jS":function(t,e,n){var r=n("Dhk8"),i=n("t0L4"),o=n("tLQN"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},"7/we":function(t,e,n){var r=n("ZjRn"),i=n("hMsr"),o=n("0Ss3");t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},"70Le":function(t,e,n){var r=n("W0vE"),i=n("X4R2"),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i},"7No3":function(t,e,n){var r=n("EAGB"),i=n("lN3w"),o=n("Bstx"),a=n("bVbG"),s=n("6Rtw");t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);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 s(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},"7Pat":function(t,e,n){var r=n("+7q0"),i=n("kG2z")(r);t.exports=i},"7SLq":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return l}));var r={},i=null;function o(t,e,n){return t=a(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function a(t,e,n){return function(r){var o=i;i=r;try{t.call(this,this.__data__,e,n)}finally{i=o}}}function s(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?r[0]+r.slice(2):r,+t.slice(n+1)]}},"7seP":function(t,e,n){var r=n("4uJK"),i=n("kkM+"),o=n("9y2L"),a=n("nDih"),s=n("GVul");t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},"8MQl":function(t,e,n){"use strict";n.r(e),n.d(e,"transition",(function(){return Q})),n.d(e,"active",(function(){return it})),n.d(e,"interrupt",(function(){return d}));var r=n("PQEP"),i=n("z0Nn"),o=n("o815"),a=n("DMvL"),s=Object(i.a)("start","end","cancel","interrupt"),u=[],c=function(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return Object(a.a)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var d=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},p=n("xgqZ"),g=n("4SAC");function v(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var U=n("D2D4"),G=n("q6e+"),V=r.b.prototype.constructor,H=n("PaYb");function Y(t){return function(){this.style.removeProperty(t)}}function W(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function J(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&W(t,o,n)),r}return o._value=e,o}function Z(t){return function(e){this.textContent=t.call(this,e)}}function q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Z(r)),e}return r._value=t,r}var X=0;function K(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Q(t){return Object(r.b)().transition(t)}function $(){return++X}var tt=r.b.prototype;K.prototype=Q.prototype={constructor:K,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(U.a)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new K([[t]],rt,e,+r);return null}},"8Zrg":function(t,e){t.exports=function(){this.__data__=[],this.size=0}},"98dg":function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}},"9SCj":function(t,e,n){var r=n("LmOH"),i=n("Q4oW"),o=n("D49j"),a=n("wxYD");t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},"9SKQ":function(t,e,n){var r=n("JNqh");t.exports=function(t){return r(this,t).has(t)}},"9TP6":function(t,e,n){var r=n("OBn4"),i=n("nnm9"),o=n("XlL0"),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},"9au6":function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,i,o){for(var a=-1,s=r(n((e-t)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=t,t+=i;return u}},"9vbJ":function(t,e,n){var r,i=n("3KBa"),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},"9y2L":function(t,e,n){var r=n("2q8g"),i=n("t0L4");t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},AjPR:function(t,e,n){var r=n("LtXa"),i=n("70Le");t.exports=function(t,e){return r(t,i(t),e)}},AonO:function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,"b",(function(){return r})),e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},BSbB:function(t,e,n){"use strict";var r=n("4SAC"),i=n("YKAa");function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.b&&e.documentElement.namespaceURI===i.b?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}e.a=function(t){var e=Object(r.a)(t);return(e.local?a:o)(e)}},BSqe:function(t,e){t.exports=function(t){return this.__data__.get(t)}},Bitd:function(t,e,n){"use strict";var r=n("CQYr"),i=n("pmbw");e.a=function(t,e,n){arguments.length<3&&(n=e,e=Object(r.a)().changedTouches);for(var o,a=0,s=e?e.length:0;a=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach((function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach((function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)})),e.width=o-n,e.height=a-r}))}(t),function(t,e){var n=Number.POSITIVE_INFINITY,i=0;t.sort((function(t,e){return e.height-t.height}));for(var o=g=h=t.reduce((function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/r;u=p(t,g)}if(0!=l){var v=o+(a-o)/r;c=p(t,v)}if(f=Math.abs(g-v),d=Math.abs(u-c),uc?(o=g,g=v,u=c,l=1):(a=v,v=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach((function(t){var e={x:0,y:0};t.array.forEach((function(t){e.x+=t.x,e.y+=t.y})),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach((function(t){t.x+=n,t.y+=r}))}))}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a-1}},D2D4:function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},D49j:function(t,e,n){var r=n("zWgn");t.exports=function(t){return"function"==typeof t?t:r}},D5rW:function(t,e,n){var r=n("gjtd"),i=n("vC4J").Graph;t.exports=function(t,e,n){var o=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),u=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},DMvL:function(t,e,n){"use strict";var r=n("o815");e.a=function(t,e,n){var i=new r.a;return i.restart((function(n){i.stop(),t(n+e)}),e=null==e?0:+e,n),i}},Dhk8:function(t,e,n){var r=n("Syyo"),i=n("KCLV"),o=n("kHoZ"),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},DjCF:function(t,e){t.exports=function(){return!1}},DuXo:function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++ou.lim&&(c=u,l=!0);var h=r.filter(e.edges(),(function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)}));return r.minBy(h,(function(t){return o(e,t)}))}function m(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=v,l.exchangeEdges=m},ENE1:function(t,e,n){var r=n("IBsm");t.exports=function(){return r.Date.now()}},FaiA:function(t,e){t.exports=function(t,e){return t>e}},FllU:function(t,e,n){var r=n("DuXo"),i=n("S3pA"),o=n("m2YG"),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(t,i(e,3),u)}},GEHm:function(t,e,n){"use strict";var r=n("157b"),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");e.a=function(t,e){var n,a,s,u=i.lastIndex=o.lastIndex=0,c=-1,l=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(a=o.exec(e));)(s=a.index)>u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:Object(r.a)(n,a)})),u=o.lastIndex;return u=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},HsnV:function(t,e,n){var r=n("+ooz"),i=n("RNlM"),o=n("E4ao"),a=n("BSqe"),s=n("L6um"),u=n("4/ik");function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},I6Yn:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c}));var r=n("PvqL"),i=n("zL3f"),o=n("v+BR"),a=n("Lgd7");function s(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),u=new Array(o);for(n=0;nu||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRank=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,n=[];return function t(e,n,r){e.forAll((function(e){if(e.isLeaf())n.leaves||(n.leaves=[]),n.leaves.push(e.id);else{var i=n;if(e.gid=r.length,!e.isIsland()||e.isPredefined()){if(i={id:e.gid},e.isPredefined())for(var o in e.definition)i[o]=e.definition[o];n.groups||(n.groups=[]),n.groups.push(e.gid),r.push(i)}t(e.children,i,r)}}))}(this.roots[0],{},n),this.allEdges().forEach((function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new r(void 0===o.gid?i.source:n[o.gid],void 0===a.gid?i.target:n[a.gid],i.type))})),n},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll((function(e){e.getEdges(n),t.getEdges(e.children,n)}))},t}();e.Configuration=i;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll((function(n,i){n.forAll((function(n){t.push(new r(e.id,n.id,i))}))}))},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll((function(e){e.isPredefined()||t.push(e)})),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules((function(n){e||n.id!=t||(e=!0)})),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll((function(e,n){return e.forAll(t)}))},t.prototype.intersection=function(e){var n=new t;return this.forAll((function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}})),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,r){for(var o=new i(t.length,e,n,r);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach((function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")})),{groups:s,powerEdges:a}}},JYmt:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},JcJ6:function(t,e,n){var r=n("Syyo"),i=n("H87J"),o=n("wxYD"),a=n("a88S"),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},Jl0P:function(t,e,n){var r;try{r={clone:n("zr3P"),constant:n("eN33"),each:n("h4um"),filter:n("+DnP"),has:n("1mr4"),isArray:n("wxYD"),isEmpty:n("MwrP"),isFunction:n("2q8g"),isUndefined:n("CZlo"),keys:n("BlJA"),map:n("mbB6"),reduce:n("veKZ"),size:n("7seP"),transform:n("cZX/"),union:n("aGtI"),values:n("0iyY")}}catch(i){}r||(r=window._),t.exports=r},"K8/D":function(t,e,n){"use strict";var r=n("gjtd");t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},"KAo/":function(t,e,n){var r=n("NYSw"),i=n("2srY"),o=n("NW/2"),a=n("i7nn"),s=n("+tCn"),u=n("0Ss3"),c=n("Ypsa");t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},KCLV:function(t,e,n){var r=n("Syyo"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(u){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},KLrH:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));var r,i,o,a=n("c4If");function s(t){return r=Object(a.a)(t),i=r.format,o=r.formatPrefix,r}s({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},Kkar:function(t,e,n){var r=n("Dhk8"),i=n("/wCD"),o=n("tLQN"),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},L6um:function(t,e){t.exports=function(t){return this.__data__.has(t)}},LL3N:function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},"LPC+":function(t,e,n){var r=n("JElN"),i=n("FaiA"),o=n("zWgn");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},Lgd7:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n("PXG9");function i(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.a)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):Object(r.a)(isNaN(t)?e:t)}},Lm04:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=r,e.Descent=function(){function t(t,e,n){void 0===n&&(n=null),this.D=e,this.G=n,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new i,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 r,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(v=1);var m=g*g,y=2*v*(p-g)/(m*p),b=p*p*p,w=2*-v/(m*b);for(isFinite(y)||console.log(y),r=0;r0?S-(T+1)*x:S-(T-1)*x)&&f<=_&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply((function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply((function(r,i){return n.e[r][i]=t[r][i]-e[r][i]}));var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=i},LmOH:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort((function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y})),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort((function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)})).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(t,e){this.t1=t,this.t2=e};e.BiTangent=g;var v=function(){};e.BiTangents=v,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var m=function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this};e.VisibilityVertex=m;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function b(t,e){for(var n=[],r=1,i=e.length;r=0&&m>=0&&y<0&&b>=0&&w>=0&&_<0?i.ll=new g(o,a):p<=0&&m<=0&&y>0&&b<=0&&w<=0&&_>0?i.rr=new g(o,a):p<=0&&m>0&&y<=0&&b>=0&&w<0&&_>=0?i.rl=new g(o,a):p>=0&&m<0&&y>=0&&b<=0&&w>0&&_<=0&&(i.lr=new g(o,a))}return i}function _(t,e){return!t.every((function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(_(t,e))return!0;if(_(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},OBn4:function(t,e,n){var r=n("vxC8")(n("IBsm"),"Set");t.exports=r},OSyp:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("zyX+"),i=n("3vZi");e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach((function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}})),e.forEach((function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map((function(e){return t.length+e.id})):[]).concat(void 0!==e.leaves?e.leaves.map((function(t){return t.index})):[])}}));var o=t.concat(e).map((function(t,e){return t.routerNode.id=e,t.routerNode}));return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,(function(t){return t.source.routerNode.id}),(function(t){return t.target.routerNode.id}))},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach((function(t,e){return t.index=e})),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){return t.padding=n}))}));var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach((function(t,e){return t.index=e})),i.groups.forEach((function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach((function(t){return a.push({source:e,target:t.index})})),void 0!==t.groups&&t.groups.forEach((function(t){return a.push({source:e,target:t.id+o})}))})),i.powerEdges.forEach((function(t){a.push({source:t.source.index,target:t.target.index})})),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){t.padding=n}))})).start(50,0,100,0,!1),powerGraph:i}}},OUo6:function(t,e,n){var r=n("c72w"),i=n("WvmI");t.exports=function(t,e){return i(t||[],e||[],r)}},OfKG:function(t,e,n){var r=n("c7Qd");t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},OtNC:function(t,e,n){var r=n("TAtK")(Object.keys,Object);t.exports=r},PKEM:function(t,e,n){var r=n("JElN"),i=n("S3pA"),o=n("n+p3");t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},PQEP:function(t,e,n){"use strict";n.d(e,"c",(function(){return Z})),n.d(e,"a",(function(){return q}));var r=n("D2D4"),i=n("q6e+"),o=n("XlMc"),a=function(t){return new Array(t.length)};function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n("4SAC");function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n("PaYb");function b(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function _(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new k(t)}function k(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function S(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var z=n("BSbB");function F(){return null}function B(){var t=this.parentNode;t&&t.removeChild(this)}function U(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function G(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var V=n("7SLq"),H=n("MysN");function Y(t,e,n){var r=Object(H.a)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function W(t,e){return function(){return Y(this,t,e)}}function J(t,e){return function(){return Y(this,t,e.apply(this,arguments))}}var Z=[null];function q(t,e){this._groups=t,this._parents=e}function X(){return new q([[document.documentElement]],Z)}q.prototype=X.prototype={constructor:q,select:function(t){"function"!=typeof t&&(t=Object(r.a)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(_=b[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?b:"function"==typeof e?_:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i.008856451679035631?Math.pow(t,1/3):t/T+M}function N(t){return t>A?t*t*t:T*(t-M)}function j(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function R(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function P(t){if(t instanceof z)return new z(t.h,t.c,t.l,t.opacity);if(t instanceof O||(t=D(t)),0===t.a&&0===t.b)return new z(NaN,01?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):s(this.node(),t)}},Pivv:function(t,e,n){"use strict";var r=n("gjtd"),i=n("1yUy"),o=n("RmLA"),a=n("4DVH"),s=n("xxjf").normalizeRanks,u=n("JUZX"),c=n("xxjf").removeEmptyRanks,l=n("wHMW"),h=n("0gKz"),f=n("+jFT"),d=n("erCh"),p=n("Nebv"),g=n("xxjf"),v=n("vC4J").Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=M(t.graph());return e.setGraph(r.merge({},y,S(n,m),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var i=M(t.node(n));e.setNode(n,r.defaults(S(i,w),_)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=M(t.edge(n));e.setEdge(n,r.merge({},E,S(i,x),r.pick(i,k)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){a(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e:e},"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){f.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){f.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&c(n)})),e-=s,i-=u,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+s,a.height=o-i+u}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function S(t,e){return r.mapValues(r.pick(t,e),Number)}function M(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},PvqL:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return w})),n.d(e,"h",(function(){return E})),n.d(e,"g",(function(){return k})),n.d(e,"b",(function(){return S})),n.d(e,"f",(function(){return O}));var r=n("AonO");function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),p=new RegExp("^rgba\\("+[c,c,c,u]+"\\)$"),g=new RegExp("^hsl\\("+[u,c,c]+"\\)$"),v=new RegExp("^hsla\\("+[u,c,c,u]+"\\)$"),m={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 y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function w(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new S(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(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(t))?new S(e[1],e[2],e[3],1):(e=f.exec(t))?new S(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?D(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?D(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?_(m[t]):"transparent"===t?new S(NaN,NaN,NaN,0):null}function _(t){return new S(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new S(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new S((t=t.rgb()).r,t.g,t.b,t.opacity):new S}function k(t,e,n,r){return 1===arguments.length?E(t):new S(t,e,n,null==r?1:r)}function S(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function M(){return"#"+T(this.r)+T(this.g)+T(this.b)}function A(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function T(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function D(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new C(t,e,n,r)}function I(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new C(s,u,c,t.opacity)}function O(t,e,n,r){return 1===arguments.length?I(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function N(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return I(this).formatHsl()},formatRgb:b,toString:b}),Object(r.a)(S,k,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new S(this.r*t,this.g*t,this.b*t,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:M,formatHex:M,formatRgb:A,toString:A})),Object(r.a)(C,O,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new S(N(t>=240?t-240:t+120,i,r),N(t,i,r),N(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},"Pz+s":function(t,e,n){var r=n("vxC8"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},Q4oW:function(t,e,n){var r=n("zKkv"),i=n("bz5b")(r);t.exports=i},Q7Qd:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function v(t,e){t.id=(e?e.id+".":"")+t.key}function m(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=D(e,t)),"path"!=t.tag&&(t.alternativeNew=D(t,e))))}function b(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map((function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]}))}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),v(t,e);var n=l[t.id];m(t),y(t,n),b(t,n);var r={};t.children.forEach((function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)}))}function _(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&A(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find((function(t){return"path"==t.tag}));n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find((function(t){return"title"==t.tag}))}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex((function(t,e){return"g"==t.tag})))>=0){var c=a.children[p].children.findIndex((function(t,e){return"a"==t.tag}));a=a.children[p].children[c]}(p=s.children.findIndex((function(t,e){return"g"==t.tag})))>=0&&(c=s.children[p].children.findIndex((function(t,e){return"a"==t.tag})),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function N(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function j(t,e,n,r,i,o,a){var s=d(z.call(this,o));t.data([s]),b.call(t.node(),s),R(t,e,n,r,i,o,a)}function R(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),v=g.selectWithoutDataPropagation("path"),m=g.selectWithoutDataPropagation("polygon");else v=t.selectWithoutDataPropagation("path"),m=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),v.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var b=0;b b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append((function(){return s.documentElement})).select(".edge")}function F(t,e,n,r,i,o){var a=d(V.call(this,r,i));return t.data([a]),b.call(t.node(),a),B(t,e,n,i),this}function B(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each((function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",_(n)).attr("cy",_(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map((function(t){return t.split(",")}));return i=r.map((function(t){return[_(+e+ +t.split(",")[0]),_(+n+ +t.split(",")[1])]})),(r=i.map((function(t){return t.join(",")}))).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map((function(t){return t.split(",")})),i.map((function(t){return[_(+e+ +t.split(",")[0]),_(+n+ +t.split(",")[1])]})).map((function(t){return t.join(",")})));return r.reduce((function(t,e,n){return t.concat(e,i[n])}),[]).join("")}(s,n-c.cx,r-c.cy))}})),0!=u.size()&&u.attr("x",_(+u.attr("x")+n-c.cx)).attr("y",_(+u.attr("y")+r-c.cy)),this}function U(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function G(){return this._drawnNode?this._drawnNode.g:e.select(null)}function V(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(z.call(this,o));s=u.append("g").data([c]),b.call(s.node(),c),j.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||j.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,R(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),m(e,i),this._drawnEdge=null,this},removeDrawnEdge:P},"removeDrawnEdge",P),l(J,"drawnEdgeSelection",L),l(J,"drawnEdgeSelection",L),l(J,"drawNode",(function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(V.call(this,r,i));a=s.append("g").data([u]),b.call(a.node(),u),F.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this})),l(J,"updateDrawnNode",(function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||F.call(this,o,t,e,n,r,i),this})),l(J,"moveDrawnNode",(function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||B(n,t,e,r),this})),l(J,"insertDrawnNode",(function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),m(e,s),this._drawnNode=null,this})),l(J,"removeDrawnNode",U),l(J,"removeDrawnNode",U),l(J,"drawnNodeSelection",G),l(J,"drawnNodeSelection",G),J),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new Z(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n("bqB3"),n("ge/T"),n("8MQl"),n("wAkE"),n("PRIO"),n("uoq0"),n("Uzsj"),n("3QYS"),n("UKUc"))},QF3D:function(t,e,n){var r=n("vxC8")(n("IBsm"),"DataView");t.exports=r},QMz8:function(t,e,n){var r=n("5pfJ"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},QT01:function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?_(m,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function k(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function S(t){g=t,r.HEAP8=v=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=m=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=b=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var M=r.TOTAL_MEMORY||16777216;function A(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:M/65536}))&&(g=c.buffer),M=g.byteLength,S(g),y[2080]=5251360;var T=[],D=[],I=[],O=[],C=!1,N=Math.abs,j=Math.ceil,R=Math.floor,P=Math.min,L=0,z=null;function F(t){L++,r.monitorRunDependencies&&r.monitorRunDependencies(L)}function B(t){if(L--,r.monitorRunDependencies&&r.monitorRunDependencies(L),0==L&&z){var e=z;z=null,e()}}function U(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function G(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var V,H,Y,W="expatlib.wasm";function J(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){U(h)}}G(W)||(V=W,W=r.locateFile?r.locateFile(V,s):s+V);var Z={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};D.push({func:function(){lt()}});var q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=q.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return q.normalize(t.join("/"))},join2:function(t,e){return q.normalize(t+"/"+e)}};function X(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var K={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=q.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=K.resolve(t).substr(1),e=K.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(_(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(_(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(_(t.output,0)),t.output=[])}}},$={ops_table:null,mount:function(t){return $.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);$.ops_table||($.ops_table={dir:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr,lookup:$.node_ops.lookup,mknod:$.node_ops.mknod,rename:$.node_ops.rename,unlink:$.node_ops.unlink,rmdir:$.node_ops.rmdir,readdir:$.node_ops.readdir,symlink:$.node_ops.symlink},stream:{llseek:$.stream_ops.llseek}},file:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr},stream:{llseek:$.stream_ops.llseek,read:$.stream_ops.read,write:$.stream_ops.write,allocate:$.stream_ops.allocate,mmap:$.stream_ops.mmap,msync:$.stream_ops.msync}},link:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr,readlink:$.node_ops.readlink},stream:{}},chrdev:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=$.ops_table.dir.node,i.stream_ops=$.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=$.ops_table.file.node,i.stream_ops=$.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=$.ops_table.link.node,i.stream_ops=$.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=$.ops_table.chrdev.node,i.stream_ops=$.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=q.normalizeArray(t.split("/").filter((function(t){return!!t})),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach((function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)}))},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach((function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}})),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter((function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]})),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach((function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}})),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,Y=[r.size>>>0,(H=r.size,+N(H)>=1?H>0?(0|P(+R(H/4294967296),4294967295))>>>0:~~+j((H-+(~~H>>>0))/4294967296)>>>0:0)],y[n+40>>2]=Y[0],y[n+44>>2]=Y[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,Y=[r.ino>>>0,(H=r.ino,+N(H)>=1?H>0?(0|P(+R(H/4294967296),4294967295))>>>0:~~+j((H-+(~~H>>>0))/4294967296)>>>0:0)],y[n+80>>2]=Y[0],y[n+84>>2]=Y[1],0},doMsync:function(t,e,n,r,i){var o=m.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,k(r)),o=v[e+i];return E(r,m,e,n+1),v[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,v,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),S(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=m[t++];)100===n||102===n?(r.push(b[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:k(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||U(n),-n.errno}},e:function(){U()},a:function(t,e,n){var r=ot(e,n);return Z[t].apply(null,r)},c:function(t,e,n){m.set(m.subarray(e,e+n),t)},d:function(t){var e=m.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach((function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);v[e>>0]=0}(n,o),r+=n.length+1})),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||U(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),Y=[o.position>>>0,(H=o.position,+N(H)>=1?H>0?(0|P(+R(H/4294967296),4294967295))>>>0:~~+j((H-+(~~H>>>0))/4294967296)>>>0:0)],y[i>>2]=Y[0],y[i+4>>2]=Y[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||U(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||U(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,B()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise((function(t,e){t(J())})):fetch(W,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+W+"'";return t.arrayBuffer()})).catch((function(){return J()}))).then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){h("failed to asynchronously prepare wasm: "+t),U(t)}))}if(F(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||G(W)||"function"!=typeof fetch)return i(n);fetch(W,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(n,(function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)}))}))}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},vt=r._emscripten_bind_CExpat_attrs_0=function(){return(vt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},mt=r._emscripten_bind_CExpat_content_0=function(){return(mt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},bt=r._emscripten_bind_CExpat_endElement_0=function(){return(bt=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},_t=r._emscripten_bind_CExpat___destroy___0=function(){return(_t=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},kt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(kt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},St=r._emscripten_bind_CExpatJS_characterData_0=function(){return(St=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},Mt=r._emscripten_bind_CExpatJS___destroy___0=function(){return(Mt=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},At=r._emscripten_bind_VoidPtr___destroy___0=function(){return(At=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},Tt=r._malloc=function(){return(Tt=r._malloc=r.asm.D).apply(null,arguments)};function Dt(t){function e(){ct||(ct=!0,d||(C=!0,r.noFSInit||tt.init.initialized||tt.init(),Q.init(),A(D),tt.ignorePermissions=!1,A(I),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),O.unshift(t);var t;A(O)}()))}L>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),T.unshift(t);var t;A(T)}(),L>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),e()}),1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},z=function t(){ct||Dt(),ct||(z=t)},r.run=Dt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function It(){}function Ot(t){return(t||It).__cache__}function Ct(t,e){var n=Ot(e),r=n[t];return r||((r=Object.create((e||It).prototype)).ptr=t,n[t]=r)}Dt(),(It.prototype=Object.create(It.prototype)).constructor=It,It.prototype.__class__=It,It.__cache__={},r.WrapperObject=It,r.getCache=Ot,r.wrapPointer=Ct,r.castObject=function(t,e){return Ct(t.ptr,e)},r.NULL=Ct(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Ot(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Nt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Nt.needed){for(var t=0;t=Nt.size?(p(i>0),Nt.needed+=i,n=r._malloc(i),Nt.temps.push(n)):(n=Nt.buffer+Nt.pos,Nt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&S)return S.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function A(t,e){return t?M(_,t,e):""}function T(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function D(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function I(t){b=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=_=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=k=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var O=r.TOTAL_MEMORY||16777216;function C(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:O/65536}))&&(b=d.buffer),O=b.byteLength,I(b),E[54772]=5462128;var N=[],j=[],R=[],P=[],L=!1,z=Math.abs,F=Math.ceil,B=Math.floor,U=Math.min,G=0,V=null;function H(t){G++,r.monitorRunDependencies&&r.monitorRunDependencies(G)}function Y(t){if(G--,r.monitorRunDependencies&&r.monitorRunDependencies(G),0==G&&V){var e=V;V=null,e()}}function W(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),m=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function J(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var Z,q,X,K="graphvizlib.wasm";function Q(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){W(l)}}J(K)||(Z=K,K=r.locateFile?r.locateFile(Z,u):u+Z);var $={1088:function(t,e){var n=A(t),r=A(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){W()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}j.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(M(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(M(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(M(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter((function(t){return!!t})),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach((function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)}))},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach((function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}})),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter((function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):bt(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]})),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach((function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}})),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,X=[r.size>>>0,(q=r.size,+z(q)>=1?q>0?(0|U(+B(q/4294967296),4294967295))>>>0:~~+F((q-+(~~q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=X[0],E[n+44>>2]=X[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,X=[r.ino>>>0,(q=r.ino,+z(q)>=1?q>0?(0|U(+B(q/4294967296),4294967295))>>>0:~~+F((q-+(~~q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=X[0],E[n+84>>2]=X[1],0},doMsync:function(t,e,n,r,i){var o=_.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,D(r)),o=w[e+i];return T(r,_,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return A(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-b.byteLength+65535>>16),I(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],vt=[31,28,31,30,31,30,31,31,30,31,30,31];function mt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:vt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=_[t++];)100===n||102===n?(r.push(k[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function bt(t,e,n){var r=n>0?n:D(t)+1,i=new Array(r),o=T(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Dt(t)},j:function(t,e,n){throw"uncaught_exception"in Nt?Nt.uncaught_exceptions++:Nt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||W(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=jt(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,_,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||W(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||W(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||W(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||W(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||W(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||W(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||W(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:W("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||W(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&It(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||W(n),-n.errno}},m:function(){},w:function(){W()},C:function(t,e,n){var r=yt(e,n);return $[t].apply(null,r)},d:function(t,e){!function(t,e){throw Ct(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){_.set(_.subarray(e,e+n),t)},F:function(t){var e=_.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach((function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1})),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),E[e>>2]=r,0},l:function(t){!function(t,e){f||(m=!0,r.onExit&&r.onExit(t)),s(t,new Kt(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||W(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||W(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||W(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),X=[o.position>>>0,(q=o.position,+z(q)>=1?q>0?(0|U(+B(q/4294967296),4294967295))>>>0:~~+F((q-+(~~q>>>0))/4294967296)>>>0:0)],E[i>>2]=X[0],E[i+4>>2]=X[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||W(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||W(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=qt();try{return Jt(t)}catch(n){if(Xt(e),n!==n+0&&"longjmp"!==n)throw n;Ct(1,0)}},V:function(t,e){var n=qt();try{return Zt(t,e)}catch(r){if(Xt(n),r!==r+0&&"longjmp"!==r)throw r;Ct(1,0)}},v:function(t){var e=qt();try{return Ut(t)}catch(n){if(Xt(e),n!==n+0&&"longjmp"!==n)throw n;Ct(1,0)}},f:function(t,e){var n=qt();try{return Gt(t,e)}catch(r){if(Xt(n),r!==r+0&&"longjmp"!==r)throw r;Ct(1,0)}},e:function t(e,n,r){var i=qt();try{return Vt(e,n,r)}catch(t){if(Xt(i),t!==t+0&&"longjmp"!==t)throw t;Ct(1,0)}},g:function(t,e,n,r){var i=qt();try{return Ht(t,e,n,r)}catch(o){if(Xt(i),o!==o+0&&"longjmp"!==o)throw o;Ct(1,0)}},n:function(t,e,n,r,i){var o=qt();try{return Yt(t,e,n,r,i)}catch(a){if(Xt(o),a!==a+0&&"longjmp"!==a)throw a;Ct(1,0)}},W:function(t,e,n,r,i,o,a){var s=qt();try{return Wt(t,e,n,r,i,o,a)}catch(u){if(Xt(s),u!==u+0&&"longjmp"!==u)throw u;Ct(1,0)}},s:function(t){var e=qt();try{Rt(t)}catch(n){if(Xt(e),n!==n+0&&"longjmp"!==n)throw n;Ct(1,0)}},h:function(t,e){var n=qt();try{Pt(t,e)}catch(r){if(Xt(n),r!==r+0&&"longjmp"!==r)throw r;Ct(1,0)}},o:function(t,e,n){var r=qt();try{Lt(t,e,n)}catch(i){if(Xt(r),i!==i+0&&"longjmp"!==i)throw i;Ct(1,0)}},u:function(t,e,n,r){var i=qt();try{zt(t,e,n,r)}catch(o){if(Xt(i),o!==o+0&&"longjmp"!==o)throw o;Ct(1,0)}},t:function(t,e,n,r,i){var o=qt();try{Ft(t,e,n,r,i)}catch(a){if(Xt(o),a!==a+0&&"longjmp"!==a)throw a;Ct(1,0)}},r:function(t,e,n,r,i,o){var a=qt();try{Bt(t,e,n,r,i,o)}catch(s){if(Xt(a),s!==s+0&&"longjmp"!==s)throw s;Ct(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Ot(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?A(i):""},a=A(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=mt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var v={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:vt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:mt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:vt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=mt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in v)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),v[u](o)));var m=bt(a,!1);return m.length>e?0:(function(t,e){w.set(t,e)}(m,t),m.length-1)}(t,e,n,r)},table:v,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},_t=function(){var t={a:wt};function e(t,e){r.asm=t.exports,Y()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise((function(t,e){t(Q())})):fetch(K,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+K+"'";return t.arrayBuffer()})).catch((function(){return Q()}))).then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){l("failed to asynchronously prepare wasm: "+t),W(t)}))}if(H(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||J(K)||"function"!=typeof fetch)return i(n);fetch(K,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(n,(function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)}))}))}(),{}}();r.asm=_t;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},kt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(kt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},St=r._emscripten_bind_Main_layout_3=function(){return(St=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},Mt=r._emscripten_bind_Main_lastError_0=function(){return(Mt=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},At=r._emscripten_bind_Main_createFile_2=function(){return(At=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},Tt=r._emscripten_bind_Main___destroy___0=function(){return(Tt=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Dt=r._malloc=function(){return(Dt=r._malloc=r.asm.da).apply(null,arguments)},It=r._free=function(){return(It=r._free=r.asm.ea).apply(null,arguments)},Ot=r._realloc=function(){return(Ot=r._realloc=r.asm.fa).apply(null,arguments)},Ct=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Ct=r._setThrew=r.asm.ha).apply(null,arguments)}),Nt=r.__ZSt18uncaught_exceptionv=function(){return(Nt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},jt=r._memalign=function(){return(jt=r._memalign=r.asm.ja).apply(null,arguments)},Rt=r.dynCall_v=function(){return(Rt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Pt=r.dynCall_vi=function(){return(Pt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Lt=r.dynCall_vii=function(){return(Lt=r.dynCall_vii=r.asm.ma).apply(null,arguments)},zt=r.dynCall_viii=function(){return(zt=r.dynCall_viii=r.asm.na).apply(null,arguments)},Ft=r.dynCall_viiii=function(){return(Ft=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},Bt=r.dynCall_viiiii=function(){return(Bt=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},Ut=r.dynCall_i=function(){return(Ut=r.dynCall_i=r.asm.qa).apply(null,arguments)},Gt=r.dynCall_ii=function(){return(Gt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Vt=r.dynCall_iii=function(){return(Vt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},Ht=r.dynCall_iiii=function(){return(Ht=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Yt=r.dynCall_iiiii=function(){return(Yt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Wt=r.dynCall_iiiiiii=function(){return(Wt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Jt=r.dynCall_d=function(){return(Jt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Zt=r.dynCall_di=function(){return(Zt=r.dynCall_di=r.asm.xa).apply(null,arguments)},qt=r.stackSave=function(){return(qt=r.stackSave=r.asm.ya).apply(null,arguments)},Xt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Xt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function Kt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Qt(t){function e(){xt||(xt=!0,m||(L=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),C(j),at.ignorePermissions=!1,C(R),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),P.unshift(t);var t;C(P)}()))}G>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),N.unshift(t);var t;C(N)}(),G>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),e()}),1)):e()))}if(r.asm=_t,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},V=function t(){xt||Qt(),xt||(V=t)},r.run=Qt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function $t(){}function te(t){return(t||$t).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||$t).prototype)).ptr=t,n[t]=r)}f=!0,Qt(),($t.prototype=Object.create($t.prototype)).constructor=$t,$t.prototype.__class__=$t,$t.__cache__={},r.WrapperObject=$t,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function v(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},VPai:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},VQMV:function(t,e){t.exports="0.8.5"},VhCv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r1||1===e.length&&t.hasEdge(e[0],e[0])}))}},WHWN:function(t,e,n){var r=n("R3TX"),i=n("pPzx"),o=n("R5u7"),a=n("zH+d"),s=Object.prototype,u=s.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},Xidw:function(t,e,n){var r=n("y/9h"),i=n("/wCD"),o=n("70Le"),a=n("X4R2");t.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a},XlL0:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},XlMc:function(t,e,n){"use strict";e.a=function(t){return function(){return this.matches(t)}}},"Xq/B":function(t,e,n){"use strict";var r=n("PvqL"),i=n("I6Yn"),o=n("waXG"),a=n("6YE2"),s=n("157b"),u=n("rr+a"),c=n("GEHm"),l=n("PXG9"),h=n("pNP6");e.a=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(l.a)(e):("number"===f?s.a:"string"===f?(n=Object(r.e)(e))?(e=n,i.a):c.a:e instanceof r.e?i.a:e instanceof Date?a.a:Object(h.b)(e)?h.a:Array.isArray(e)?o.b:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},YKAa:function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},YZb2:function(t,e,n){"use strict";var r=n("gjtd");function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}t.exports=function(t,e){for(var n=0,r=1;r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},Ypsa:function(t,e,n){var r=n("a88S");t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},Z3AG:function(t,e,n){var r=n("JElN"),i=n("n+p3"),o=n("zWgn");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},ZCKZ:function(t,e,n){t.exports={components:n("qC43"),dijkstra:n("V9bN"),dijkstraAll:n("a271"),findCycles:n("W8B9"),floydWarshall:n("hq5n"),isAcyclic:n("+WAL"),postorder:n("21zJ"),preorder:n("j+bJ"),prim:n("xGdc"),tarjan:n("Pa7R"),topsort:n("0Jj1")}},ZVKf:function(t,e,n){var r=n("UdtX"),i=n("D49j"),o=n("zH+d");t.exports=function(t,e){return null==t?t:r(t,i(e),o)}},"ZZ+W":function(t,e,n){var r=n("JBn+"),i=n("myUI"),o=n("S0iI");t.exports=function(t,e,n,a,s,u){var c=1&n,l=t.length,h=e.length;if(l!=h&&!(c&&h>l))return!1;var f=u.get(t);if(f&&u.get(e))return f==e;var d=-1,p=!0,g=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++dh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,(function(t,e){return t.q=e})))}}return o},t}()},amiU:function(t,e,n){var r=n("wC3K"),i=n("pPzx");t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},bFjY:function(t,e,n){var r=n("Q4oW"),i=n("9y2L");t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},bJjD:function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)n[r]={};for(var r in e)n[r]={};return Object.keys(n).length}function i(t,e){var n=0;for(var r in t)void 0!==e[r]&&++n;return n}function o(t,e,n,r){var i=function(t,e){var n={},r=function(t,e){void 0===n[t]&&(n[t]={}),n[t][e]={}};return t.forEach((function(t){var n=e.getSourceIndex(t),i=e.getTargetIndex(t);r(n,i),r(i,n)})),n}(t,r);t.forEach((function(t){var o=i[r.getSourceIndex(t)],a=i[r.getTargetIndex(t)];r.setLength(t,1+e*n(o,a))}))}function a(t,e,n){var r=[],i=0,o=[],a=[];function s(t){t.index=t.lowlink=i++,o.push(t),t.onStack=!0;for(var e=0,n=t.out;ea){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var o=n.parent(r);return void 0===o||e.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},bvyN:function(t,e,n){var r=n("/30y"),i=n("tLQN"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},bz5b:function(t,e,n){var r=n("9y2L");t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++ai+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=Object(a.a)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Object(a.a)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},c=function(t){return t},l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",v=void 0===t.minus?"-":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=Object(o.b)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,b=t.comma,w=t.precision,_=t.trim,x=t.type;"n"===x?(b=!0,x="g"):u[x]||(void 0===w&&(w=12),_=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k="$"===c?f:/[%p]/.test(x)?g:"",S=u[x],M=/[defgprs%]/.test(x);function A(t){var o,s,u,c=E,f=k;if("c"===x)f=S(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?m:S(Math.abs(t),w),_&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:v:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),M)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}b&&!l&&(t=a(t,1/0));var A=c.length+t.length+f.length,T=A>1)+c+t+f+T.slice(A);break;default:t=T+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),A.toString=function(){return t+""},A}return{format:y,formatPrefix:function(t,e){var n=y(((t=Object(o.b)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},c72w:function(t,e,n){var r=n("wC3K"),i=n("pPzx"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},c7Qd:function(t,e,n){var r=n("DuXo"),i=n("z9Jh"),o=n("n1QJ");t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},c9kG:function(t,e,n){var r=n("Jl0P");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritye||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=2),s=l.buildLayerMatrix(t);var v=o(t,s);v0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)})),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},gEWz:function(t,e,n){var r=n("kkM+"),i=n("tLQN");t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},gP9q:function(t,e,n){var r=n("gjtd");t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},gbTj:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n("keXZ"),a=n("vpOK");function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce((function(t,e){return e.bounds.union(t)}),u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce((function(t,e){return s(e).union(t)}),t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,v=(u*p-l*d)/f;return g>=0&&g<=1&&v>=0&&v<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()},l=function(t,e,n){this.isOpen=t,this.v=e,this.pos=n};function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce((function(t,r){return t.concat(g(r,e,n,!0))}),[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),m=e.getSize(d)/2,y=e.getOpen(d),b=e.getClose(d),w=p-m+i/2,_=p+m-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,b,w,i),t.minVar),t.maxVar.desiredPosition=_,f(e.makeRect(y,b,_,i),t.maxVar)}a&&t.leaves.forEach((function(t){return f(t.bounds,t.variable)})),o&&t.groups.forEach((function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)}));var x=v(l,c,e,n);return o&&(c.forEach((function(t){t.cOut=[],t.cIn=[]})),x.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),t.groups.forEach((function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach((function(t){return t.gap+=n})),t.minVar.cOut.forEach((function(e){e.left=t.maxVar,e.gap+=n}))}))),s.concat(x)}function v(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t}))}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach((function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))}))},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter((function(t){return"x"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),this.yConstraints=t.filter((function(t){return"y"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),t.filter((function(t){return"alignment"===t.type})).forEach((function(t){return e.createAlignment(t)}))},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach((function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)}))},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,(function(t){return t.px}),this.xConstraints,b,(function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i}))},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,(function(t){return t.py}),this.yConstraints,w,(function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i}))},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},"ge/T":function(t,e,n){"use strict";n.r(e);var r=n("z0Nn");n.d(e,"dispatch",(function(){return r.a}))},"ge/d":function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},gjtd:function(t,e,n){var r;try{r={cloneDeep:n("c2re"),constant:n("eN33"),defaults:n("WHWN"),each:n("h4um"),filter:n("+DnP"),find:n("6R5o"),flatten:n("1xil"),forEach:n("9SCj"),forIn:n("ZVKf"),has:n("1mr4"),isUndefined:n("CZlo"),last:n("p1C/"),map:n("mbB6"),mapValues:n("y2Ah"),max:n("LPC+"),merge:n("H8sf"),min:n("Z3AG"),minBy:n("PKEM"),now:n("ENE1"),pick:n("//nZ"),range:n("Cmkl"),reduce:n("veKZ"),sortBy:n("u6DZ"),uniqueId:n("w0mW"),values:n("0iyY"),zipObject:n("OUo6")}}catch(i){}r||(r=window._),t.exports=r},h4um:function(t,e,n){t.exports=n("9SCj")},hMsr:function(t,e,n){var r=n("+tCn"),i=n("BlJA");t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},hq5n:function(t,e,n){var r=n("Jl0P");t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Et=function t(e){function n(t){return 1===e?new _t(t):new xt(t,e)}return n.beta=function(e){return t(+e)},n}(.85),kt=l("ZTXN");function St(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function Mt(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var At=l("f7+R"),Tt=l("Sv/w"),Dt=l("KTx3"),It=l("dr5/"),Ot=(l("7SLq"),l("z0Nn")),Ct=(l("chUO"),l("Xq/B"));function Nt(t){return{type:t}}l("Bitd"),l("xpD5"),l("8MQl"),["w","e"].map(Nt),["n","s"].map(Nt),["n","w","e","s","nw","ne","sw","se"].map(Nt);var jt=function(t,e){return te?1:t>=e?0:NaN},Rt=Math.sqrt(50),Pt=Math.sqrt(10),Lt=Math.sqrt(2);function zt(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Rt?10:o>=Pt?5:o>=Lt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Rt?10:o>=Pt?5:o>=Lt?2:1)}var Ft=new Date,Bt=new Date;function Ut(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Ft.setTime(+e),Bt.setTime(+r),t(Ft),t(Bt),Math.floor(n(Ft,Bt))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Gt=Ut((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Gt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ut((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Vt=Gt;function Ht(t){return Ut((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}Ut((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));var Yt=Ht(0),Wt=Ht(1),Jt=(Ht(2),Ht(3),Ht(4)),Zt=(Ht(5),Ht(6),Ut((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),qt=(Ut((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),Ut((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),Ut((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),Ut((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));function Xt(t){return Ut((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}qt.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ut((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):qt:null};var Kt=Xt(0),Qt=Xt(1),$t=(Xt(2),Xt(3),Xt(4)),te=(Xt(5),Xt(6),Ut((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),ee=Ut((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));ee.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ut((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var ne=ee,re={"-":"",_:" ",0:"0"},ie=/[\\^$*+?|[\]().{}]/g;function oe(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?Jt(t):Jt.ceil(t),oe(Jt.count(Vt(t),t)+(4===Vt(t).getDay()),e,2)}function _e(t){return t.getDay()}function xe(t,e){return oe(Wt.count(Vt(t)-1,t),e,2)}function Ee(t,e){return oe(t.getFullYear()%100,e,2)}function ke(t,e){return oe(t.getFullYear()%1e4,e,4)}function Se(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+oe(e/60|0,"0",2)+oe(e%60,"0",2)}function Me(t,e){return oe(t.getUTCDate(),e,2)}function Ae(t,e){return oe(t.getUTCHours(),e,2)}function Te(t,e){return oe(t.getUTCHours()%12||12,e,2)}function De(t,e){return oe(1+te.count(ne(t),t),e,3)}function Ie(t,e){return oe(t.getUTCMilliseconds(),e,3)}function Oe(t,e){return Ie(t,e)+"000"}function Ce(t,e){return oe(t.getUTCMonth()+1,e,2)}function Ne(t,e){return oe(t.getUTCMinutes(),e,2)}function je(t,e){return oe(t.getUTCSeconds(),e,2)}function Re(t){var e=t.getUTCDay();return 0===e?7:e}function Pe(t,e){return oe(Kt.count(ne(t)-1,t),e,2)}function Le(t,e){var n=t.getUTCDay();return t=n>=4||0===n?$t(t):$t.ceil(t),oe($t.count(ne(t),t)+(4===ne(t).getUTCDay()),e,2)}function ze(t){return t.getUTCDay()}function Fe(t,e){return oe(Qt.count(ne(t)-1,t),e,2)}function Be(t,e){return oe(t.getUTCFullYear()%100,e,2)}function Ue(t,e){return oe(t.getUTCFullYear()%1e4,e,4)}function Ge(){return"+0000"}function Ve(){return"%"}function He(t){return+t}function Ye(t){return Math.floor(+t/1e3)}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(se(i),ue(i),se(o),ue(o),se(a),ue(a),se(s),ue(s),se(u),ue(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:ce,e:ce,f:pe,H:le,I:he,j:fe,L:de,m:ge,M:ve,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:He,s:Ye,S:me,u:ye,U:be,V:we,w:_e,W:xe,x:null,X:null,y:Ee,Y:ke,Z:Se,"%":Ve}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Me,e:Me,f:Oe,H:Ae,I:Te,j:De,L:Ie,m:Ce,M:Ne,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:He,s:Ye,S:je,u:Re,U:Pe,V:Le,w:ze,W:Fe,x:null,X:null,y:Be,Y:Ue,Z:Ge,"%":Ve};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s>>1;We(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;We(t[i],e)>0?r=i:n=i+1}return n}}).right,qe=l("157b"),Xe=l("98dg"),Ke=function(t){return+t},Qe=[0,1];function $e(t){return t}function tn(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function en(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?nn:en,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),qe.a)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Ke),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Xe.a,l()},h.clamp=function(t){return arguments.length?(c=!!t||$e,l()):c!==$e},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()($e,$e)}function an(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var sn=l("XYeE"),un=l("iDVY"),cn=l("KLrH"),ln=l("HKZs"),hn=l("q5AZ");function fn(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=Rt?i*=10:o>=Pt?i*=5:o>=Lt&&(i*=2),e0?r=zt(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=zt(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function dn(){var t=on();return t.copy=function(){return rn(t,dn())},an.apply(t,arguments),fn(t)}var pn=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r=o)&&(n=o)}}catch(h){i.e(h)}finally{i.f()}}else{var a,s=-1,u=c(t);try{for(u.s();!(a=u.n()).done;){var l=a.value;null!=(l=e(l,++s,t))&&(n=l)&&(n=l)}}catch(h){u.e(h)}finally{u.f()}}return n}function yn(t,e){var n;if(void 0===e){var r,i=c(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n>o||void 0===n&&o>=o)&&(n=o)}}catch(h){i.e(h)}finally{i.f()}}else{var a,s=-1,u=c(t);try{for(u.s();!(a=u.n()).done;){var l=a.value;null!=(l=e(l,++s,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(h){u.e(h)}finally{u.f()}}return n}function bn(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function wn(t,e,n){if(r=(t=Float64Array.from(regeneratorRuntime.mark((function t(e,n){var r,i,o,a,s,u,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==n){t.next=22;break}r=c(e),t.prev=2,r.s();case 4:if((i=r.n()).done){t.next=12;break}if(o=i.value,t.t0=null!=o&&(o=+o)>=o,!t.t0){t.next=10;break}return t.next=10,o;case 10:t.next=4;break;case 12:t.next=17;break;case 14:t.prev=14,t.t1=t.catch(2),r.e(t.t1);case 17:return t.prev=17,r.f(),t.finish(17);case 20:t.next=42;break;case 22:a=-1,s=c(e),t.prev=24,s.s();case 26:if((u=s.n()).done){t.next=34;break}if(l=u.value,t.t2=null!=(l=n(l,++a,e))&&(l=+l)>=l,!t.t2){t.next=32;break}return t.next=32,l;case 32:t.next=26;break;case 34:t.next=39;break;case 36:t.prev=36,t.t3=t.catch(24),s.e(t.t3);case 39:return t.prev=39,s.f(),t.finish(39);case 42:case"end":return t.stop()}}),t,null,[[2,14,17,20],[24,36,39,42]])}))(t,n))).length){if((e=+e)<=0||r<2)return yn(t);if(e>=1)return mn(t);var r,i=(r-1)*e,o=Math.floor(i),a=mn(function t(e,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:jt;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(r,Math.floor(n-s*c/a+l)),Math.min(i,Math.floor(n+(a-s)*c/a+l)),o)}var h=e[n],f=r,d=i;for(bn(e,r,n),o(e[i],h)>0&&bn(e,r,i);f0;)--d}0===o(e[r],h)?bn(e,r,d):bn(e,++d,i),d<=n&&(r=d+1),n<=d&&(i=d-1)}return e}(t,o).subarray(0,o+1));return a+(yn(t.subarray(o+1))-a)*(i-o)}}function _n(t){this._context=t}_n.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var xn=function(t){return new _n(t)},En=l("1rRp"),kn=function(t){return function(){return t}};function Sn(t){return t[0]}function Mn(t){return t[1]}var An=function(){};function Tn(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Dn(t,e){this._context=t,this._k=(1-e)/6}function In(t,e){this._context=t,this._k=(1-e)/6}Dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Tn(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Tn(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Dn(t,e)}return n.tension=function(e){return t(+e)},n}(0),In.prototype={areaStart:An,areaEnd:An,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Tn(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new In(t,e)}return n.tension=function(e){return t(+e)},n}(0),Math,Math,Math,Math,Math,Math,Math,Math,l("PvqL");var On=function(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function jn(t,e){var n,r,i,o,a,s=new zn(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=Rn);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new zn(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Ln)}function Rn(t){return t.children}function Pn(t){t.data=t.data.data}function Ln(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function zn(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,b=0,w=0,_=y.length,x=e.value;b<_;){u=i-n,c=o-r;do{l=y[w++].value}while(!l&&w<_);for(h=f=l,v=l*l*(g=Math.max(c/u,u/c)/(x*t)),p=Math.max(f/v,v/h);w<_;++w){if(l+=s=y[w].value,sf&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),zn.prototype=jn.prototype={constructor:zn,count:function(){return this.eachAfter(Nn)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return jn(this).eachBefore(Pn)}};var Fn=l("e4iD"),Bn=["caretElm"];function Un(t,e){}var Gn=function(t){return{model:t}};function Vn(t,e){if(1&t&&(w.Sb(0,"span"),w.Hc(1,Un,0,0,"ng-template",5),w.Rb()),2&t){var n=w.dc();w.Ab(1),w.kc("ngTemplateOutlet",n.template)("ngTemplateOutletContext",w.pc(2,Gn,n.context))}}function Hn(t,e){if(1&t&&w.Nb(0,"span",6),2&t){var n=w.dc();w.kc("innerHTML",n.title,w.yc)}}function Yn(t,e){if(1&t&&(w.cc(),w.bc(),w.Nb(0,"ngx-charts-scale-legend",4)),2&t){var n=w.dc();w.kc("horizontal",n.legendOptions&&"below"===n.legendOptions.position)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function Wn(t,e){if(1&t){var n=w.Tb();w.cc(),w.bc(),w.Sb(0,"ngx-charts-legend",5),w.Zb("labelClick",(function(t){return w.xc(n),w.dc().legendLabelClick.emit(t)}))("labelActivate",(function(t){return w.xc(n),w.dc().legendLabelActivate.emit(t)}))("labelDeactivate",(function(t){return w.xc(n),w.dc().legendLabelDeactivate.emit(t)})),w.Rb()}if(2&t){var r=w.dc();w.kc("horizontal",r.legendOptions&&"below"===r.legendOptions.position)("data",r.legendOptions.domain)("title",r.legendOptions.title)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)("activeEntries",r.activeEntries)}}var Jn=["*"];function Zn(t,e){if(1&t&&(w.Sb(0,"header",4),w.Sb(1,"span",5),w.Jc(2),w.Rb(),w.Rb()),2&t){var n=w.dc();w.Ab(2),w.Kc(n.title)}}function qn(t,e){if(1&t){var n=w.Tb();w.Sb(0,"li",6),w.Sb(1,"ngx-charts-legend-entry",7),w.Zb("select",(function(t){return w.xc(n),w.dc().labelClick.emit(t)}))("activate",(function(t){return w.xc(n),w.dc().activate(t)}))("deactivate",(function(t){return w.xc(n),w.dc().deactivate(t)})),w.Rb(),w.Rb()}if(2&t){var r=e.$implicit,i=w.dc();w.Ab(1),w.kc("label",r.label)("formattedLabel",r.formattedLabel)("color",r.color)("isActive",i.isActive(r))}}var Xn,Kn=((Xn=function(){function t(e,n,r){f(this,t),this.applicationRef=e,this.componentFactoryResolver=n,this.injector=r}return p(t,[{key:"getRootViewContainer",value:function(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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.")}},{key:"setRootViewContainer",value:function(t){this._container=t}},{key:"getComponentRootNode",value:function(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Tt.e(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Tt.d(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}()).\u0275fac=function(t){return new(t||Xn)(w.Wb(w.g),w.Wb(w.j),w.Wb(w.s))},Xn.\u0275prov=w.Ib({token:Xn,factory:Xn.\u0275fac}),Xn.globalRootViewContainer=null,Xn);function Qn(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var $n=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function tr(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function er(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var nr,rr,ir,or,ar,sr,ur,cr=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=tr(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=tr(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=er(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=er(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===$n.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===$n.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===$n.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===$n.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===$n.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===$n.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===$n.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===$n.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===$n.right)return $n.left;if(e===$n.left)return $n.right;if(e===$n.top)return $n.bottom;if(e===$n.bottom)return $n.top}return e}}]),t}(),lr=((ur=function(){function t(e,n){f(this,t),this.element=e,this.renderer=n}return p(t,[{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout((function(){return t.renderer.addClass(e,"animate")}),1)}}},{key:"positionContent",value:function(t,e,n){var r=cr.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top",i+"px"),this.renderer.setStyle(t,"left",o+"px")}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=cr.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top",o+"px"),this.renderer.setStyle(n,"left",a+"px")}},{key:"checkFlip",value:function(t,e){this.placement=cr.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}},{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass}}]),t}()).\u0275fac=function(t){return new(t||ur)(w.Mb(w.l),w.Mb(w.F))},ur.\u0275cmp=w.Gb({type:ur,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;1&t&&w.Qc(Bn,!0),2&t&&w.sc(n=w.ac())&&(e.caretElm=n.first)},hostVars:2,hostBindings:function(t,e){1&t&&w.Zb("resize",(function(){return e.onWindowResize()}),!1,w.wc),2&t&&w.Cb(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(w.Sb(0,"div"),w.Nb(1,"span",0,1),w.Sb(3,"div",2),w.Hc(4,Vn,2,4,"span",3),w.Hc(5,Hn,1,1,"span",4),w.Rb(),w.Rb()),2&t&&(w.Ab(1),w.Db("tooltip-caret position-",e.placement,""),w.kc("hidden",!e.showCaret),w.Ab(3),w.kc("ngIf",!e.title),w.Ab(1),w.kc("ngIf",e.title))},directives:[v.t,v.A],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),St([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Qn(n.value,100,void 0)}),this[e]}}}],ur.prototype,"onWindowResize",null),ur),hr=((sr=function(t){i(n,t);var e=a(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=lr,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}())).\u0275fac=function(t){return new(t||sr)(w.Wb(Kn))},sr.\u0275prov=w.Ib({token:sr,factory:sr.\u0275fac}),sr),fr=((ar=function(){function t(){f(this,t),this.showLegend=!1,this.animations=!0,this.legendLabelClick=new w.o,this.legendLabelActivate=new w.o,this.legendLabelDeactivate=new w.o}return p(t,[{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}},{key:"getLegendType",value:function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}]),t}()).\u0275fac=function(t){return new(t||ar)},ar.\u0275cmp=w.Gb({type:ar,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[w.zb([hr]),w.yb],ngContentSelectors:Jn,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(w.jc(),w.Sb(0,"div",0),w.cc(),w.Sb(1,"svg",1),w.ic(2),w.Rb(),w.Hc(3,Yn,1,5,"ngx-charts-scale-legend",2),w.Hc(4,Wn,1,7,"ngx-charts-legend",3),w.Rb()),2&t&&(w.Ec("width",e.view[0],"px"),w.kc("@animationState","active")("@.disabled",!e.animations),w.Ab(1),w.Bb("width",e.chartWidth)("height",e.view[1]),w.Ab(2),w.kc("ngIf",e.showLegend&&"scaleLegend"===e.legendType),w.Ab(1),w.kc("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[v.t,Tr,Mr]},encapsulation:2,data:{animation:[Object(At.n)("animationState",[Object(At.m)(":enter",[Object(At.l)({opacity:0}),Object(At.e)("500ms 100ms",Object(At.l)({opacity:1}))])])]},changeDetection:0}),ar),dr=((or=function(){function t(e,n){f(this,t),this.element=e,this.zone=n,this.visible=new w.o,this.isVisible=!1,this.runCheck()}return p(t,[{key:"destroy",value:function(){clearTimeout(this.timeout)}},{key:"onVisibilityChange",value:function(){var t=this;this.zone.run((function(){t.isVisible=!0,t.visible.emit(!0)}))}},{key:"runCheck",value:function(){var t=this;this.zone.runOutsideAngular((function(){t.timeout=setTimeout((function(){return function e(){if(t.element){var n=t.element.nativeElement,r=n.offsetHeight,i=n.offsetWidth;r&&i?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular((function(){t.timeout=setTimeout((function(){return e()}),100)})))}}()}))}))}}]),t}()).\u0275fac=function(t){return new(t||or)(w.Mb(w.l),w.Mb(w.A))},or.\u0275dir=w.Hb({type:or,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),or),pr=((ir=function(){function t(e,n,r){f(this,t),this.chartElement=e,this.zone=n,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new w.o}return p(t,[{key:"ngAfterViewInit",value:function(){this.bindWindowResizeEvent(),this.visibilityObserver=new dr(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}},{key:"ngOnDestroy",value:function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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()}},{key:"getContainerDims",value:function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}},{key:"formatDates",value:function(){for(var t=0;t0),w.Ab(2),w.Ec("max-height",e.height-45,"px"),w.Eb("horizontal-legend",e.horizontal),w.Ab(1),w.kc("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[v.t,v.s,Ar]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),wr),Ar=((br=function(){function t(){f(this,t),this.isActive=!1,this.select=new w.o,this.activate=new w.o,this.deactivate=new w.o,this.toggle=new w.o}return p(t,[{key:"onMouseEnter",value:function(){this.activate.emit({name:this.label})}},{key:"onMouseLeave",value:function(){this.deactivate.emit({name:this.label})}},{key:"trimmedLabel",get:function(){return this.formattedLabel||"(empty)"}}]),t}()).\u0275fac=function(t){return new(t||br)},br.\u0275cmp=w.Gb({type:br,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&w.Zb("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(w.Sb(0,"span",0),w.Zb("click",(function(){return e.select.emit(e.formattedLabel)})),w.Sb(1,"span",1),w.Zb("click",(function(){return e.toggle.emit(e.formattedLabel)})),w.Rb(),w.Sb(2,"span",2),w.Jc(3),w.Rb(),w.Rb()),2&t&&(w.Eb("active",e.isActive),w.kc("title",e.formattedLabel),w.Ab(1),w.Ec("background-color",e.color),w.Ab(2),w.Lc(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),br),Tr=((yr=function(){function t(e){f(this,t),this.sanitizer=e,this.horizontal=!1}return p(t,[{key:"ngOnChanges",value:function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to ".concat(this.horizontal?"right":"bottom",", ").concat(e,")"))}},{key:"gradientString",value:function(t,e){e.push(1);var n=[];return t.reverse().forEach((function(t,r){n.push("".concat(t," ").concat(Math.round(100*e[r]),"%"))})),n.join(", ")}}]),t}()).\u0275fac=function(t){return new(t||yr)(w.Mb(Fn.b))},yr.\u0275cmp=w.Gb({type:yr,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[w.yb],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(w.Sb(0,"div",0),w.Sb(1,"div",1),w.Sb(2,"span"),w.Jc(3),w.Rb(),w.Rb(),w.Nb(4,"div",2),w.Sb(5,"div",1),w.Sb(6,"span"),w.Jc(7),w.Rb(),w.Rb(),w.Rb()),2&t&&(w.Ec("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),w.Eb("horizontal-legend",e.horizontal),w.Ab(3),w.Kc(e.valueRange[1].toLocaleString()),w.Ab(1),w.Ec("background",e.gradient),w.Ab(3),w.Kc(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),yr),Dr=((mr=function t(){f(this,t)}).\u0275mod=w.Kb({type:mr}),mr.\u0275inj=w.Jb({factory:function(t){return new(t||mr)},imports:[[v.c,gr,vr],v.c,gr,vr]}),mr),Ir=[{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"]}],Or=function(){function t(e,n,r,i){f(this,t),"string"==typeof e&&(e=Ir.find((function(t){return t.name===e}))),this.colorDomain=e.domain,this.scaleType=n,this.domain=r,this.customColors=i,this.scale=this.generateColorScheme(e,n,this.domain)}return p(t,[{key:"generateColorScheme",value:function(t,e,n){var i;if("string"==typeof t&&(t=Ir.find((function(e){return e.name===t}))),"quantile"===e)i=function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=new Array(e-1);++t0?i[e-1]:n[0],e0&&(n=this.customColors.find((function(t){return t.name.toLowerCase()===r.toLowerCase()}))),n?n.value:this.scale(t)}},{key:"getLinearGradientStops",value:function(t,e){void 0===e&&(e=this.domain[0]);var r=dn().domain(this.domain).range([0,1]),i=function t(){var e,r,i=vn().unknown(void 0),o=i.domain,a=i.range,s=0,u=1,c=!1,l=0,h=0,f=.5;function d(){var t=o().length,n=u=(u-i.bandwidth()).toFixed(4))break;f.push({color:d,offset:p,opacity:1}),h=p,l++}}if(f[f.length-1].offset<100&&f.push({color:o,offset:u,opacity:1}),u===a)f[0].offset=0,f[1].offset=100;else if(100!==f[f.length-1].offset){var g,v=c(f);try{for(v.s();!(g=v.n()).done;){var m=g.value;m.offset=(m.offset-a)/(u-a)*100}}catch(y){v.e(y)}finally{v.f()}}return f}}]),t}(),Cr=((Sr=function t(){f(this,t)}).\u0275mod=w.Kb({type:Sr}),Sr.\u0275inj=w.Jb({factory:function(t){return new(t||Sr)},imports:[[Dr]]}),Sr),Nr=((kr=function t(){f(this,t)}).\u0275mod=w.Kb({type:kr}),kr.\u0275inj=w.Jb({factory:function(t){return new(t||kr)},imports:[[Dr]]}),kr),jr=((Er=function t(){f(this,t)}).\u0275mod=w.Kb({type:Er}),Er.\u0275inj=w.Jb({factory:function(t){return new(t||Er)},imports:[[Dr]]}),Er),Rr=((xr=function t(){f(this,t)}).\u0275mod=w.Kb({type:xr}),xr.\u0275inj=w.Jb({factory:function(t){return new(t||xr)},imports:[[Dr]]}),xr),Pr=((_r=function t(){f(this,t)}).\u0275mod=w.Kb({type:_r}),_r.\u0275inj=w.Jb({factory:function(t){return new(t||_r)},imports:[[Dr]]}),_r);Math;var Lr,zr,Fr,Br,Ur,Gr,Vr=((Gr=function t(){f(this,t)}).\u0275mod=w.Kb({type:Gr}),Gr.\u0275inj=w.Jb({factory:function(t){return new(t||Gr)},imports:[[Dr]]}),Gr),Hr=((Ur=function t(){f(this,t)}).\u0275mod=w.Kb({type:Ur}),Ur.\u0275inj=w.Jb({factory:function(t){return new(t||Ur)},imports:[[Dr,Vr,Pr]]}),Ur),Yr=((Br=function t(){f(this,t)}).\u0275mod=w.Kb({type:Br}),Br.\u0275inj=w.Jb({factory:function(t){return new(t||Br)},imports:[[Dr]]}),Br),Wr=((Fr=function t(){f(this,t)}).\u0275mod=w.Kb({type:Fr}),Fr.\u0275inj=w.Jb({factory:function(t){return new(t||Fr)},imports:[[Dr]]}),Fr),Jr=((zr=function t(){f(this,t)}).\u0275mod=w.Kb({type:zr}),zr.\u0275inj=w.Jb({factory:function(t){return new(t||zr)},imports:[[Dr,Vr,Nr]]}),zr),Zr=((Lr=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}).\u0275mod=w.Kb({type:Lr}),Lr.\u0275inj=w.Jb({factory:function(t){return new(t||Lr)},imports:[Dr,Cr,Nr,jr,Rr,Pr,Hr,Yr,Vr,Wr,Jr]}),Lr),qr=Math.PI;function Xr(t){return(1-Math.cos(qr*t))/2}var Kr=l("bwdy"),Qr=l("IdLP"),$r=l("ROBh"),ti=l("jOdJ");function ei(t){return void 0===t}function ni(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}function ri(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}var hi=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function fi(t){return t[0]}function di(t){return t[1]}function pi(t,e,n){var r=new gi(null==e?fi:e,null==n?di:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function gi(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function vi(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var mi=pi.prototype=gi.prototype;function yi(t){return t.x+t.vx}function bi(t){return t.y+t.vy}mi.copy=function(){var t,e,n=new gi(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=vi(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=vi(e));return n},mi.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return li(this.cover(e,n),e,n,t)},mi.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),s=new Array(o),u=1/0,c=1/0,l=-1/0,h=-1/0;for(n=0;nl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=m)<<1|t>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),w=y*y+b*b;if(w=(s=(p+v)/2))?p=s:v=s,(l=a>=(u=(g+m)/2))?g=u:m=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},mi.removeAll=function(t){for(var e=0,n=t.length;eu+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}},ji=function(){var t,e,n,r,i=ui(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=pi(t,Ii,Oi).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=ci())*l),0===h&&(d+=(h=ci())*h),d=0})),leaves:t.childNodeIds.map((function(t){return e.inputGraph.nodes.findIndex((function(e){return e.id===t}))})).filter((function(t){return t>=0}))}}))),links:r(this.inputGraph.edges.map((function(t){var n=e.inputGraph.nodes.findIndex((function(e){return t.source===e.id})),r=e.inputGraph.nodes.findIndex((function(e){return t.target===e.id}));if(-1!==n&&-1!==r)return Object.assign(Object.assign({},t),{source:n,target:r})})).filter((function(t){return!!t}))),groupLinks:r(this.inputGraph.edges.map((function(t){var n=e.inputGraph.nodes.findIndex((function(e){return t.source===e.id})),r=e.inputGraph.nodes.findIndex((function(e){return t.target===e.id}));if(!(n>=0&&r>=0))return t})).filter((function(t){return!!t})))},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",(function(){e.settings.onTickListener&&e.settings.onTickListener(e.internalGraph),e.outputGraph$.next(e.internalGraphToOutputGraph(e.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()}},{key:"updateEdge",value:function(t,e){var n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}},{key:"internalGraphToOutputGraph",value:function(t){var e=this;return this.outputGraph.nodes=t.nodes.map((function(t){return Object.assign(Object.assign({},t),{id:t.id||vo(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:"translate(".concat(t.x-(t.dimension&&t.dimension.width||20)/2||0,", ").concat(t.y-(t.dimension&&t.dimension.height||20)/2||0,")")})})),this.outputGraph.edges=t.links.map((function(e){var n=bo(t.nodes,e.source),r=bo(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})})).concat(t.groupLinks.map((function(e){var n=t.nodes.find((function(t){return t.id===e.source})),r=t.nodes.find((function(t){return t.id===e.target})),i=n||t.groups.find((function(t){return t.id===e.source})),o=r||t.groups.find((function(t){return t.id===e.target}));return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}))),this.outputGraph.clusters=t.groups.map((function(t,n){return Object.assign(Object.assign({},e.inputGraph.clusters[n]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}},{key:"onDragStart",value:function(t,e){var n=this.outputGraph.nodes.findIndex((function(e){return e.id===t.id})),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}},{key:"onDrag",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex((function(e){return e.id===t.id})),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}}},{key:"onDragEnd",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex((function(e){return e.id===t.id})),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}}]),t}()},xo=((wo=function(){function t(){f(this,t)}return p(t,[{key:"getLayout",value:function(t){if(_o[t])return new _o[t];throw new Error("Unknown layout type '".concat(t,"'"))}}]),t}()).\u0275fac=function(t){return new(t||wo)},wo.\u0275prov=w.Ib({token:wo,factory:wo.\u0275fac}),wo),Eo=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),ko=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function So(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Mo,Ao,To,Do,Io=((Do=function(e){i(o,e);var n=a(o);function o(t,e,r,i){var a;return f(this,o),(a=n.call(this,t,e,r)).el=t,a.zone=e,a.cd=r,a.layoutService=i,a.legend=!1,a.nodes=[],a.clusters=[],a.links=[],a.activeEntries=[],a.draggingEnabled=!0,a.panningEnabled=!0,a.panningAxis=Eo.Both,a.enableZoom=!0,a.zoomSpeed=.1,a.minZoomLevel=.1,a.maxZoomLevel=4,a.autoZoom=!1,a.panOnZoom=!0,a.animate=!1,a.autoCenter=!1,a.enableTrackpadSupport=!1,a.showMiniMap=!1,a.miniMapMaxWidth=100,a.miniMapPosition=ko.UpperRight,a.activate=new w.o,a.deactivate=new w.o,a.zoomChange=new w.o,a.clickHandler=new w.o,a.isMouseMoveCalled=!1,a.graphSubscription=new Kr.a,a.subscriptions=[],a.margin=[0,0,0,0],a.results=[],a.isPanning=!1,a.isDragging=!1,a.initialized=!1,a.graphDims={width:0,height:0},a._oldLinks=[],a.oldNodes=new Set,a.oldClusters=new Set,a.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},a._touchLastX=null,a._touchLastY=null,a.minimapScaleCoefficient=3,a.minimapOffsetX=0,a.minimapOffsetY=0,a.isMinimapPanning=!1,a.groupResultsBy=function(t){return t.label},a}return p(o,[{key:"ngOnInit",value:function(){var t=this;this.update$&&this.subscriptions.push(this.update$.subscribe((function(){t.update()}))),this.center$&&this.subscriptions.push(this.center$.subscribe((function(){t.center()}))),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe((function(){t.zoomToFit()}))),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe((function(e){t.panToNodeId(e)}))),this.minimapClipPathId="minimapClip"+vo()}},{key:"ngOnChanges",value:function(t){var e=t.layoutSettings;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}},{key:"setLayout",value:function(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}},{key:"setLayoutSettings",value:function(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}},{key:"ngOnDestroy",value:function(){t(u(o.prototype),"ngOnDestroy",this).call(this);var e,n=c(this.subscriptions);try{for(n.s();!(e=n.n()).done;)e.value.unsubscribe()}catch(r){n.e(r)}finally{n.f()}this.subscriptions=null}},{key:"ngAfterViewInit",value:function(){var e=this;t(u(o.prototype),"ngAfterViewInit",this).call(this),setTimeout((function(){return e.update()}))}},{key:"update",value:function(){var e=this;t(u(o.prototype),"update",this).call(this),this.curve||(this.curve=Et.beta(1)),this.zone.run((function(){var t,n,r,i,o,a,s,u,c,l,h,f,d,p,g,v,m,y,b,w,_,x,E,k,S,M,A;e.dims=(t={width:e.width,height:e.height,margins:e.margin,showLegend:e.legend},n=t.width,r=t.height,a=void 0!==(o=t.showXAxis)&&o,u=void 0!==(s=t.showYAxis)&&s,l=void 0===(c=t.xAxisHeight)?0:c,f=void 0===(h=t.yAxisWidth)?0:h,p=void 0!==(d=t.showXLabel)&&d,v=void 0!==(g=t.showYLabel)&&g,y=void 0!==(m=t.showLegend)&&m,w=void 0===(b=t.legendType)?"ordinal":b,x=void 0===(_=t.legendPosition)?"right":_,k=void 0===(E=t.columns)?12:E,S=(i=t.margins)[3],M=n,A=r-i[0]-i[2],y&&"right"===x&&(k-="ordinal"===w?2:1),M=(M=M*k/12)-i[1]-i[3],a&&(A-=5,A-=l,p)&&(A-=30),u&&(M-=5,M-=f,S+=f,S+=10,v)&&(M-=30,S+=30),M=Math.max(0,M),A=Math.max(0,A),{width:Math.floor(M),height:Math.floor(A),xOffset:Math.floor(S)}),e.seriesDomain=e.getSeriesDomain(),e.setColors(),e.legendOptions=e.getLegendOptions(),e.createGraph(),e.updateTransform(),e.initialized=!0}))}},{key:"createGraph",value:function(){var t=this;this.graphSubscription.unsubscribe(),this.graphSubscription=new Kr.a;var e=function(e){return e.meta||(e.meta={}),e.id||(e.id=vo()),e.dimension?e.meta.forceDimensions=void 0===e.meta.forceDimensions||e.meta.forceDimensions:(e.dimension={width:t.nodeWidth?t.nodeWidth:30,height:t.nodeHeight?t.nodeHeight:30},e.meta.forceDimensions=!1),e.position={x:0,y:0},e.data=e.data?e.data:{},e};this.graph={nodes:this.nodes.length>0?r(this.nodes).map(e):[],clusters:this.clusters&&this.clusters.length>0?r(this.clusters).map(e):[],edges:this.links.length>0?r(this.links).map((function(t){return t.id||(t.id=vo()),t})):[]},requestAnimationFrame((function(){return t.draw()}))}},{key:"draw",value:function(){var t=this;if(this.layout&&"string"!=typeof this.layout){this.applyNodeDimensions();var e=this.layout.run(this.graph),n=e instanceof Qr.a?e:Object($r.a)(e);this.graphSubscription.add(n.subscribe((function(e){t.graph=e,t.tick()}))),0!==this.graph.nodes.length&&n.pipe(Object(ti.a)()).subscribe((function(){return t.applyNodeDimensions()}))}}},{key:"tick",value:function(){var t=this,e=new Set;this.graph.nodes.map((function(n){n.transform="translate(".concat(n.position.x-n.dimension.width/2||0,", ").concat(n.position.y-n.dimension.height/2||0,")"),n.data||(n.data={}),n.data.color=t.colors.getColor(t.groupResultsBy(n)),e.add(n.id)}));var n=new Set;(this.graph.clusters||[]).map((function(e){e.transform="translate(".concat(e.position.x-e.dimension.width/2||0,", ").concat(e.position.y-e.dimension.height/2||0,")"),e.data||(e.data={}),e.data.color=t.colors.getColor(t.groupResultsBy(e)),n.add(e.id)})),setTimeout((function(){t.oldNodes=e,t.oldClusters=n}),500);var r=[],i=function(e){var n=t.graph.edgeLabels[e],i=e.replace(/[^\w-]*/g,""),o=t.layout&&"string"!=typeof t.layout&&t.layout.settings&&t.layout.settings.multigraph,a=t._oldLinks.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i}),s=t.graph.edges.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i});a?a.data&&s&&s.data&&JSON.stringify(a.data)!==JSON.stringify(s.data)&&(a.data=s.data):a=s||n,a.oldLine=a.line;var u=n.points,c=t.generateLine(u),l=Object.assign({},a);l.line=c,l.points=u,t.updateMidpointOnEdge(l,u);var h=u[Math.floor(u.length/2)];h&&(l.textTransform="translate(".concat(h.x||0,",").concat(h.y||0,")")),l.textAngle=0,l.oldLine||(l.oldLine=l.line),t.calcDominantBaseline(l),r.push(l)};for(var o in this.graph.edgeLabels)i(o);this.graph.edges=r,this.graph.edges&&(this._oldLinks=this.graph.edges.map((function(t){var e=Object.assign({},t);return e.oldLine=t.line,e}))),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame((function(){return t.redrawLines()})),this.cd.markForCheck()}},{key:"getMinimapTransform",value:function(){switch(this.miniMapPosition){case ko.UpperLeft:return"";case ko.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}},{key:"updateGraphDims",value:function(){for(var t=1/0,e=-1/0,n=1/0,r=-1/0,i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}},{key:"updateMinimap",value:function(){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())}},{key:"applyNodeDimensions",value:function(){var t=this;this.nodeElements&&this.nodeElements.length&&this.nodeElements.map((function(e){var n=e.nativeElement,r=t.graph.nodes.find((function(t){return t.id===n.id}));if(r){var i;try{if(!(i=n.getBBox()).width||!i.height)return}catch(l){return}if(r.dimension.height=t.nodeHeight?r.dimension.height&&r.meta.forceDimensions?r.dimension.height:t.nodeHeight:r.dimension.height&&r.meta.forceDimensions?r.dimension.height:i.height,t.nodeMaxHeight&&(r.dimension.height=Math.max(r.dimension.height,t.nodeMaxHeight)),t.nodeMinHeight&&(r.dimension.height=Math.min(r.dimension.height,t.nodeMinHeight)),t.nodeWidth)r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:t.nodeWidth;else if(n.getElementsByTagName("text").length){var o;try{var a,s=c(n.getElementsByTagName("text"));try{for(s.s();!(a=s.n()).done;){var u=a.value.getBBox();o?(u.width>o.width&&(o.width=u.width),u.height>o.height&&(o.height=u.height)):o=u}}catch(h){s.e(h)}finally{s.f()}}catch(l){return}r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:o.width+20}else r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:i.width;t.nodeMaxWidth&&(r.dimension.width=Math.max(r.dimension.width,t.nodeMaxWidth)),t.nodeMinWidth&&(r.dimension.width=Math.min(r.dimension.width,t.nodeMinWidth))}}))}},{key:"redrawLines",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.animate;this.linkElements.map((function(n){var r=t.graph.edges.find((function(t){return t.id===n.nativeElement.id}));r&&(Object(It.a)(n.nativeElement).select(".line").attr("d",r.oldLine).transition().ease(Xr).duration(e?500:0).attr("d",r.line),Object(It.a)(t.chartElement.nativeElement).select("#"+r.id).attr("d",r.oldTextPath).transition().ease(Xr).duration(e?500:0).attr("d",r.textPath),t.updateMidpointOnEdge(r,r.points))}))}},{key:"calcDominantBaseline",value:function(t){var e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.x=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){var i=t.clientX,o=t.clientY,a=this.chart.nativeElement.querySelector("svg"),s=a.querySelector("g.chart"),u=a.createSVGPoint();u.x=i,u.y=o;var c=u.matrixTransform(s.getScreenCTM().inverse());this.pan(c.x,c.y,!0),this.zoom(n),this.pan(-c.x,-c.y,!0)}else this.zoom(n)}else this.pan(-1*t.deltaX,-1*t.deltaY)}},{key:"pan",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?1:this.zoomLevel;this.transformationMatrix=oi(this.transformationMatrix,ni(t/r,e/r)),this.updateTransform()}},{key:"panTo",value:function(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=oi(this.transformationMatrix,ni((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}},{key:"zoom",value:function(t){this.transformationMatrix=oi(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return ei(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}},{key:"zoomTo",value:function(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}},{key:"onDrag",value:function(t){var e=this;if(this.draggingEnabled){var n=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(n,t),n.position.x+=t.movementX/this.zoomLevel,n.position.y+=t.movementY/this.zoomLevel,n.transform="translate(".concat(n.position.x-n.dimension.width/2,", ").concat(n.position.y-n.dimension.height/2,")");var r,i=c(this.graph.edges);try{var o=function(){var t=r.value;if((t.target===n.id||t.source===n.id||t.target.id===n.id||t.source.id===n.id)&&e.layout&&"string"!=typeof e.layout){var i=e.layout.updateEdge(e.graph,t),o=i instanceof Qr.a?i:Object($r.a)(i);e.graphSubscription.add(o.subscribe((function(n){e.graph=n,e.redrawEdge(t)})))}};for(i.s();!(r=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}this.redrawLines(!1),this.updateMinimap()}}},{key:"redrawEdge",value:function(t){var e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}},{key:"updateTransform",value:function(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}},{key:"onClick",value:function(t){this.select.emit(t)}},{key:"onActivate",value:function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(r(this.activeEntries)),this.activate.emit({value:t,entries:this.activeEntries}))}},{key:"onDeactivate",value:function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=r(this.activeEntries),this.deactivate.emit({value:t,entries:this.activeEntries})}},{key:"getSeriesDomain",value:function(){var t=this;return this.nodes.map((function(e){return t.groupResultsBy(e)})).reduce((function(t,e){return-1!==t.indexOf(e)?t:t.concat([e])}),[]).sort()}},{key:"trackLinkBy",value:function(t,e){return e.id}},{key:"trackNodeBy",value:function(t,e){return e.id}},{key:"setColors",value:function(){this.colors=new Or(this.scheme,"ordinal",this.seriesDomain,this.customColors)}},{key:"getLegendOptions",value:function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}},{key:"onMouseMove",value:function(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}},{key:"onMouseDown",value:function(t){this.isMouseMoveCalled=!1}},{key:"graphClick",value:function(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}},{key:"onTouchStart",value:function(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}},{key:"onTouchMove",value:function(t){if(this.isPanning&&this.panningEnabled){var e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}},{key:"onTouchEnd",value:function(t){this.isPanning=!1}},{key:"onMouseUp",value:function(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}},{key:"onNodeMouseDown",value:function(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}},{key:"onMinimapDragMouseDown",value:function(){this.isMinimapPanning=!0}},{key:"onMinimapPanTo",value:function(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}},{key:"center",value:function(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}},{key:"zoomToFit",value:function(){var t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}},{key:"panToNodeId",value:function(t){var e=this.graph.nodes.find((function(e){return e.id===t}));e&&this.panTo(e.position.x,e.position.y)}},{key:"panWithConstraints",value:function(t,e){var n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case Eo.Horizontal:this.pan(n,0);break;case Eo.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}},{key:"updateMidpointOnEdge",value:function(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{var n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}},{key:"zoomLevel",get:function(){return this.transformationMatrix.a},set:function(t){this.zoomTo(Number(t))}},{key:"panOffsetX",get:function(){return this.transformationMatrix.e},set:function(t){this.panTo(Number(t),null)}},{key:"panOffsetY",get:function(){return this.transformationMatrix.f},set:function(t){this.panTo(null,Number(t))}}]),o}(pr)).\u0275fac=function(t){return new(t||Do)(w.Mb(w.l),w.Mb(w.A),w.Mb(w.h),w.Mb(xo))},Do.\u0275cmp=w.Gb({type:Do,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){var r;1&t&&(w.Fb(n,Ui,!0),w.Fb(n,Gi,!0),w.Fb(n,Vi,!0),w.Fb(n,Hi,!0),w.Fb(n,Yi,!0)),2&t&&(w.sc(r=w.ac())&&(e.linkTemplate=r.first),w.sc(r=w.ac())&&(e.nodeTemplate=r.first),w.sc(r=w.ac())&&(e.clusterTemplate=r.first),w.sc(r=w.ac())&&(e.defsTemplate=r.first),w.sc(r=w.ac())&&(e.miniMapNodeTemplate=r.first))},viewQuery:function(t,e){var n;1&t&&(w.Dc(fr,!0,w.l),w.Qc(Wi,!0),w.Qc(Ji,!0)),2&t&&(w.sc(n=w.ac())&&(e.chart=n.first),w.sc(n=w.ac())&&(e.nodeElements=n),w.sc(n=w.ac())&&(e.linkElements=n))},hostBindings:function(t,e){1&t&&w.Zb("mousemove",(function(t){return e.onMouseMove(t)}),!1,w.vc)("mousedown",(function(t){return e.onMouseDown(t)}),!1,w.vc)("click",(function(t){return e.graphClick(t)}),!1,w.vc)("touchmove",(function(t){return e.onTouchMove(t)}),!1,w.vc)("mouseup",(function(t){return e.onMouseUp(t)}),!1,w.vc)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[w.xb,w.yb],ngContentSelectors:po,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(w.jc(),w.Sb(0,"ngx-charts-chart",0),w.Zb("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t)}))("mouseWheelUp",(function(t){return e.onZoom(t,"in")}))("mouseWheelDown",(function(t){return e.onZoom(t,"out")})),w.Hc(1,ao,12,12,"g",1),w.cc(),w.Sb(2,"clipPath"),w.Nb(3,"rect"),w.Rb(),w.Hc(4,ho,6,15,"g",2),w.Rb()),2&t&&(w.kc("view",w.qc(8,fo,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),w.Ab(1),w.kc("ngIf",e.initialized&&e.graph),w.Ab(1),w.Bb("id",e.minimapClipPathId),w.Ab(1),w.Bb("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),w.Ab(1),w.kc("ngIf",e.showMiniMap))},directives:function(){return[fr,Oo,v.t,v.s,v.A]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),St([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:So(n.value,500,void 0)}),this[e]}}},Mt("design:type",Function),Mt("design:paramtypes",[]),Mt("design:returntype",void 0)],Do.prototype,"updateMinimap",null),Do),Oo=((To=function(){function t(){f(this,t),this.mouseWheelUp=new w.o,this.mouseWheelDown=new w.o}return p(t,[{key:"onMouseWheelChrome",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelFirefox",value:function(t){this.mouseWheelFunc(t)}},{key:"onWheel",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelIE",value:function(t){this.mouseWheelFunc(t)}},{key:"mouseWheelFunc",value:function(t){window.event&&(t=window.event);var e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}]),t}()).\u0275fac=function(t){return new(t||To)},To.\u0275dir=w.Hb({type:To,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&w.Zb("mousewheel",(function(t){return e.onMouseWheelChrome(t)}))("DOMMouseScroll",(function(t){return e.onMouseWheelFirefox(t)}))("wheel",(function(t){return e.onWheel(t)}))("onmousewheel",(function(t){return e.onMouseWheelIE(t)}))},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),To),Co=((Ao=function t(){f(this,t)}).\u0275mod=w.Kb({type:Ao}),Ao.\u0275inj=w.Jb({factory:function(t){return new(t||Ao)},providers:[xo],imports:[[Dr]]}),Ao),No=((Mo=function t(){f(this,t)}).\u0275mod=w.Kb({type:Mo}),Mo.\u0275inj=w.Jb({factory:function(t){return new(t||Mo)},imports:[[Zr],Co]}),Mo),jo=["caretElm"];function Ro(t,e){}var Po,Lo=function(t){return{model:t}};function zo(t,e){if(1&t&&(w.Sb(0,"span"),w.Hc(1,Ro,0,0,"ng-template",5),w.Rb()),2&t){var n=w.dc();w.Ab(1),w.kc("ngTemplateOutlet",n.template)("ngTemplateOutletContext",w.pc(2,Lo,n.context))}}function Fo(t,e){if(1&t&&w.Nb(0,"span",6),2&t){var n=w.dc();w.kc("innerHTML",n.title,w.yc)}}var Bo=function(){var t=Po=function(){function t(e,n,r){f(this,t),this.applicationRef=e,this.componentFactoryResolver=n,this.injector=r}return p(t,[{key:"getRootViewContainer",value:function(){if(this._container)return this._container;if(Po.globalRootViewContainer)return Po.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.")}},{key:"setRootViewContainer",value:function(t){this._container=t}},{key:"getComponentRootNode",value:function(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Tt.e(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Tt.d(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(t){Po.globalRootViewContainer=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(w.Wb(w.g),w.Wb(w.j),w.Wb(w.s))},t.\u0275prov=w.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t.globalRootViewContainer=null,t}();function Uo(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Go=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Vo(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function Ho(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var Yo,Wo,Jo,Zo,qo=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=Vo(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=Vo(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=Ho(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=Ho(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===Go.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===Go.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===Go.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===Go.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===Go.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===Go.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===Go.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===Go.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===Go.right)return Go.left;if(e===Go.left)return Go.right;if(e===Go.top)return Go.bottom;if(e===Go.bottom)return Go.top}return e}}]),t}(),Xo=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.renderer=n}return p(t,[{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout((function(){return t.renderer.addClass(e,"animate")}),1)}}},{key:"positionContent",value:function(t,e,n){var r=qo.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top",i+"px"),this.renderer.setStyle(t,"left",o+"px")}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=qo.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top",o+"px"),this.renderer.setStyle(n,"left",a+"px")}},{key:"checkFlip",value:function(t,e){this.placement=qo.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}},{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass}}]),t}();return t.\u0275fac=function(e){return new(e||t)(w.Mb(w.l),w.Mb(w.F))},t.\u0275cmp=w.Gb({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;1&t&&w.Qc(jo,!0),2&t&&w.sc(n=w.ac())&&(e.caretElm=n.first)},hostVars:2,hostBindings:function(t,e){1&t&&w.Zb("resize",(function(){return e.onWindowResize()}),!1,w.wc),2&t&&w.Cb(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(w.Sb(0,"div"),w.Nb(1,"span",0,1),w.Sb(3,"div",2),w.Hc(4,zo,2,4,"span",3),w.Hc(5,Fo,1,1,"span",4),w.Rb(),w.Rb()),2&t&&(w.Ab(1),w.Db("tooltip-caret position-",e.placement,""),w.kc("hidden",!e.showCaret),w.Ab(3),w.kc("ngIf",!e.title),w.Ab(1),w.kc("ngIf",e.title))},directives:[v.t,v.A],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 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);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{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,transform .3s,-webkit-transform .3s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,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}"],encapsulation:2}),Object(bt.b)([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Uo(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),Ko=function(){var t=function(t){i(n,t);var e=a(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=Xo,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(w.Wb(Bo))},t.\u0275prov=w.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Qo=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[v.c]]}),t}(),$o=((Jo={})[Jo.popover="popover"]="popover",Jo[Jo.tooltip="tooltip"]="tooltip",Jo),ta=((Wo={})[Wo.left="left"]="left",Wo[Wo.center="center"]="center",Wo[Wo.right="right"]="right",Wo),ea=((Yo={})[Yo.all="all"]="all",Yo[Yo.focus="focus"]="focus",Yo[Yo.mouseover="mouseover"]="mouseover",Yo),na=((Zo=function(){function t(e,n,r){f(this,t),this.tooltipService=e,this.viewContainerRef=n,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Go.top,this.tooltipAlignment=ta.center,this.tooltipType=$o.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ea.all,this.tooltipImmediateExit=!1,this.show=new w.o,this.hide=new w.o}return p(t,[{key:"ngOnDestroy",value:function(){this.hideTooltip(!0)}},{key:"onFocus",value:function(){this.listensForFocus&&this.showTooltip()}},{key:"onBlur",value:function(){this.listensForFocus&&this.hideTooltip(!0)}},{key:"onMouseEnter",value:function(){this.listensForHover&&this.showTooltip()}},{key:"onMouseLeave",value:function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}},{key:"onMouseClick",value:function(){this.listensForHover&&this.hideTooltip(!0)}},{key:"showTooltip",value:function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout((function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)}),10),e.show.emit(!0)}),n)}}},{key:"addHideListeners",value:function(t){var e=this;this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",(function(){clearTimeout(e.timeout)})),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",(function(){e.hideTooltip(e.tooltipImmediateExit)}))),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",(function(n){t.contains(n.target)||e.hideTooltip()})))}},{key:"hideTooltip",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.component){var n=function(){t.mouseLeaveContentEvent&&t.mouseLeaveContentEvent(),t.mouseEnterContentEvent&&t.mouseEnterContentEvent(),t.documentClickEvent&&t.documentClickEvent(),t.hide.emit(!0),t.tooltipService.destroy(t.component),t.component=void 0};clearTimeout(this.timeout),e?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}}},{key:"createBoundOptions",value:function(){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}}},{key:"listensForFocus",get:function(){return this.tooltipShowEvent===ea.all||this.tooltipShowEvent===ea.focus}},{key:"listensForHover",get:function(){return this.tooltipShowEvent===ea.all||this.tooltipShowEvent===ea.mouseover}}]),t}()).\u0275fac=function(t){return new(t||Zo)(w.Mb(Ko),w.Mb(w.Q),w.Mb(w.F))},Zo.\u0275dir=w.Hb({type:Zo,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&w.Zb("focusin",(function(){return e.onFocus()}))("blur",(function(){return e.onBlur()}))("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(t){return e.onMouseLeave(t.target)}))("click",(function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),Zo),ra=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},providers:[Bo,Ko],imports:[[v.c]]}),t}();"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var ia=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[v.c,Qo,ra],v.c,Qo,ra]}),t}(),oa=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia]]}),t}(),aa=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia]]}),t}(),sa=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia]]}),t}(),ua=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia]]}),t}(),ca=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia]]}),t}();Math;var la=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia]]}),t}(),ha=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia,la,ca]]}),t}(),fa=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia]]}),t}(),da=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia]]}),t}(),pa=function(){var t=function t(){f(this,t)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[[ia,la,aa]]}),t}(),ga=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275mod=w.Kb({type:t}),t.\u0275inj=w.Jb({factory:function(e){return new(e||t)},imports:[ia,oa,aa,sa,ua,ca,ha,fa,la,da,pa]}),t}();function va(t,e){1&t&&(w.Sb(0,"div"),w.Nb(1,"mat-spinner",3),w.Rb())}function ma(t,e){if(1&t&&(w.Sb(0,"span"),w.Jc(1),w.ec(2,"translate"),w.Sb(3,"strong"),w.Jc(4),w.Rb(),w.Rb()),2&t){var n=w.dc(3);w.Ab(1),w.Lc(" ",w.fc(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),w.Ab(3),w.Kc(n.service)}}function ya(t,e){1&t&&(w.cc(),w.Sb(0,"marker",10),w.Nb(1,"path",11),w.Rb())}function ba(t,e){if(1&t&&(w.cc(),w.Sb(0,"g",12),w.Nb(1,"rect"),w.Sb(2,"text",13),w.Jc(3),w.Rb(),w.Rb()),2&t){var n=e.$implicit;w.kc("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",n.tooltip),w.Ab(1),w.Bb("width",n.dimension.width)("height",n.dimension.height)("fill",n.color),w.Ab(1),w.Bb("x",10)("y",n.dimension.height/2),w.Ab(1),w.Kc(n.label)}}function wa(t,e){if(1&t&&(w.cc(),w.Sb(0,"g",14),w.Nb(1,"path",15),w.Sb(2,"text",16),w.Sb(3,"textPath",17),w.Jc(4),w.Rb(),w.Rb(),w.Rb()),2&t){var n=e.$implicit;w.Ab(3),w.Bb("href","#"+n.id),w.Ab(1),w.Lc(" ",n.label," ")}}var _a=function(t,e){return[t,e]};function xa(t,e){if(1&t&&(w.Sb(0,"div"),w.Jc(1),w.ec(2,"translate"),w.Sb(3,"strong"),w.Jc(4),w.Rb(),w.Jc(5),w.ec(6,"translate"),w.Sb(7,"strong"),w.Jc(8),w.Rb(),w.Hc(9,ma,5,4,"span",4),w.Sb(10,"div",5),w.Sb(11,"ngx-graph",6),w.Hc(12,ya,2,0,"ng-template",null,7,w.Ic),w.Hc(14,ba,4,9,"ng-template",null,8,w.Ic),w.Hc(16,wa,5,2,"ng-template",null,9,w.Ic),w.Rb(),w.Rb(),w.Rb()),2&t){var n=w.dc(2);w.Ab(1),w.Lc(" ",w.fc(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),w.Ab(3),w.Mc("",n.user.firstName," ",n.user.lastName,""),w.Ab(1),w.Lc(" ",w.fc(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),w.Ab(3),w.Kc(n.destination),w.Ab(1),w.kc("ngIf","noService"!==n.service),w.Ab(2),w.kc("links",n.hierarchialGraph.links)("nodes",n.hierarchialGraph.nodes)("curve",n.curve)("draggingEnabled",!1)("zoomToFit$",n.zoomToFit$)("view",w.qc(16,_a,n.innerWidth,n.innerHeight))}}function Ea(t,e){if(1&t&&(w.Sb(0,"span"),w.Jc(1),w.ec(2,"translate"),w.Sb(3,"strong"),w.Jc(4),w.Rb(),w.Rb()),2&t){var n=w.dc(3);w.Ab(1),w.Lc(" ",w.fc(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),w.Ab(3),w.Kc(n.service)}}function ka(t,e){if(1&t&&(w.Jc(0),w.ec(1,"translate"),w.Sb(2,"strong"),w.Jc(3),w.Rb(),w.Jc(4),w.ec(5,"translate"),w.Sb(6,"strong"),w.Jc(7),w.Rb(),w.Hc(8,Ea,5,4,"span",4),w.Jc(9),w.ec(10,"translate")),2&t){var n=w.dc(2);w.Lc(" ",w.fc(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),w.Ab(3),w.Mc("",n.user.firstName," ",n.user.lastName,""),w.Ab(1),w.Lc(" ",w.fc(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),w.Ab(3),w.Kc(n.destination),w.Ab(1),w.kc("ngIf","noService"!==n.service),w.Ab(1),w.Lc(" ",w.fc(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Sa(t,e){if(1&t&&(w.Hc(0,xa,18,19,"div",1),w.Hc(1,ka,11,13,"ng-template",null,2,w.Ic)),2&t){var n=w.tc(2),r=w.dc();w.kc("ngIf",r.isConnected)("ngIfElse",n)}}var Ma,Aa=((Ma=function(){function t(e,n,r,i,o,a,s,u,c){f(this,t),this.route=e,this.facilityManager=n,this.userService=r,this.membersService=i,this.serviceService=o,this.resourceManager=a,this.groupService=s,this.voService=u,this.translate=c,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=Et,this.zoomToFit$=new kt.a}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe((function(e){console.log(e),t.destination=e.destination,t.service=e.service,t.userService.getUserById(e.user).subscribe((function(e){t.user=e,t.facilityManager.getFacilitiesByDestination(t.destination).subscribe((function(e){t.facilities=e,t.membersService.getMembersByUser(t.user.id).subscribe((function(e){if(t.membership=e,0===t.membership.length||0===t.facilities.length)return t.loading=!1,void(t.isConnected=!1);t.showGraph()}))}))}))}))}},{key:"showGraph",value:function(){var t=this,e=""+this.id();this.hierarchialGraph.nodes=[].concat(r(this.hierarchialGraph.nodes),[{id:e,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}]);var n=""+this.id(),i="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[].concat(r(this.hierarchialGraph.nodes),[{id:n,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]):[].concat(r(this.hierarchialGraph.nodes),[{id:n,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]);var o,a=c(this.facilities);try{var s=function(){var e=o.value;t.serviceService.getAllRichDestinationsForFacility(e.id).subscribe((function(n){t.connectToService(e,n),t.delay(2e3).then((function(){t.zoomToFit$.next(!0),t.loading=!1}))}))};for(a.s();!(o=a.n()).done;)s()}catch(u){a.e(u)}finally{a.f()}}},{key:"connectToService",value:function(t,e){var n=this;this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe((function(e){for(var r=0;r0),w.Ab(1),w.kc("ngIf",!e.loading&&(void 0===e.identities||0===e.identities.length)),w.Ab(1),w.kc("ngIf",e.loading))},directives:[v.t,L.a,z.b,ts.a,es.a,B.c],pipes:[k.d],styles:[""]}),us),ls=l("bATb"),hs=l("+0js"),fs=l("YFHD");function ds(t,e){1&t&&w.Nb(0,"mat-spinner",7)}function ps(t,e){if(1&t){var n=w.Tb();w.Sb(0,"div"),w.Sb(1,"perun-web-apps-user-ext-sources-list",8),w.Zb("page",(function(t){return w.xc(n),w.dc().pageChanged(t)})),w.Rb(),w.Rb()}if(2&t){var r=w.dc();w.Ab(1),w.kc("hideColumns",r.hiddenColumns)("selection",r.selection)("userExtSources",r.userExtSources)("pageSize",r.pageSize)}}var gs,vs=((gs=function(){function t(e,n,r,i,o,a){f(this,t),this.usersManagerService=e,this.storage=n,this.registrarManagerService=r,this.dialog=i,this.route=o,this.tableConfigService=a,this.userExtSources=[],this.selection=new D.c(!1,[]),this.hiddenColumns=["mail"],this.tableId=j.cb}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.userId=e.userId})),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe((function(e){t.userExtSources=e,t.loading=!1}),(function(){return t.loading=!1}))}},{key:"addIdentity",value:function(){var t=this,e=Object(C.o)();e.width="400px",e.data={userId:this.userId},this.dialog.open(ls.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"removeIdentity",value:function(){var t=this,e=Object(C.o)();e.width="400px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(hs.k,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||gs)(w.Mb(N.p),w.Mb(it.m),w.Mb(N.l),w.Mb(P.b),w.Mb(m.a),w.Mb(j.pb))},gs.\u0275cmp=w.Gb({type:gs,selectors:[["app-user-identities"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"hideColumns","selection","userExtSources","pageSize","page"]],template:function(t,e){1&t&&(w.Sb(0,"h1",0),w.Jc(1),w.ec(2,"translate"),w.Rb(),w.Sb(3,"perun-web-apps-refresh-button",1),w.Zb("refresh",(function(){return e.refreshTable()})),w.Rb(),w.Sb(4,"button",2),w.Zb("click",(function(){return e.addIdentity()})),w.Jc(5),w.ec(6,"translate"),w.Rb(),w.Sb(7,"button",3),w.Zb("click",(function(){return e.removeIdentity()})),w.Jc(8),w.ec(9,"translate"),w.Rb(),w.Sb(10,"div",4),w.Hc(11,ds,1,0,"mat-spinner",5),w.Rb(),w.Hc(12,ps,2,4,"div",6)),2&t&&(w.Ab(1),w.Kc(w.fc(2,6,"USER_DETAIL.IDENTITIES.TITLE")),w.Ab(4),w.Kc(w.fc(6,8,"USER_DETAIL.IDENTITIES.ADD")),w.Ab(2),w.kc("disabled",0===e.selection.selected.length),w.Ab(1),w.Kc(w.fc(9,10,"USER_DETAIL.IDENTITIES.REMOVE")),w.Ab(3),w.kc("ngIf",e.loading),w.Ab(1),w.kc("ngIf",!e.loading))},directives:[L.a,z.b,v.t,B.c,fs.a],pipes:[k.d],styles:[""]}),gs),ms=l("pU19"),ys=l("r3xl"),bs=l("gcZR");function ws(t,e){1&t&&w.Nb(0,"mat-spinner",7)}function _s(t,e){if(1&t){var n=w.Tb();w.Sb(0,"app-services-list",8),w.Zb("page",(function(t){return w.xc(n),w.dc().pageChanged(t)})),w.Rb()}if(2&t){var r=w.dc();w.kc("pageSize",r.pageSize)("selection",r.selection)("services",r.services)("filterValue",r.filterValue)}}var xs,Es=((xs=function(){function t(e,n,r){f(this,t),this.tableConfigService=e,this.serviceManager=n,this.dialog=r,this.selection=new D.c(!0,[]),this.loading=!1,this.filterValue="",this.tableId=j.l}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.serviceManager.getServices().subscribe((function(e){t.services=e,t.refreshTable()}))}},{key:"createService",value:function(){var t=this,e=Object(C.o)();e.width="600px",e.data={theme:"admin-theme"},this.dialog.open(ms.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"deleteService",value:function(){var t=this,e=Object(C.o)();e.width="600px",e.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(ys.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.serviceManager.getServices().subscribe((function(e){t.services=e,t.selection.clear(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||xs)(w.Mb(j.pb),w.Mb(N.n),w.Mb(P.b))},xs.\u0275cmp=w.Gb({type:xs,selectors:[["app-admin-services"]],decls:14,vars:13,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-2",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","selection","services","filterValue","page",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"pageSize","selection","services","filterValue","page"]],template:function(t,e){1&t&&(w.Sb(0,"div"),w.Sb(1,"h1",0),w.Jc(2),w.ec(3,"translate"),w.Rb(),w.Sb(4,"perun-web-apps-refresh-button",1),w.Zb("refresh",(function(){return e.refreshTable()})),w.Rb(),w.Sb(5,"button",2),w.Zb("click",(function(){return e.createService()})),w.Jc(6),w.ec(7,"translate"),w.Rb(),w.Sb(8,"button",3),w.Zb("click",(function(){return e.deleteService()})),w.Jc(9),w.ec(10,"translate"),w.Rb(),w.Sb(11,"perun-web-apps-immediate-filter",4),w.Zb("filter",(function(t){return e.applyFilter(t)})),w.Rb(),w.Hc(12,ws,1,0,"mat-spinner",5),w.Hc(13,_s,1,4,"app-services-list",6),w.Rb()),2&t&&(w.Ab(2),w.Kc(w.fc(3,7,"ADMIN.SERVICES.TITLE")),w.Ab(4),w.Lc(" ",w.fc(7,9,"ADMIN.SERVICES.CREATE"),""),w.Ab(2),w.kc("disabled",0===e.selection.selected.length),w.Ab(1),w.Lc(" ",w.fc(10,11,"ADMIN.SERVICES.DELETE"),""),w.Ab(2),w.kc("placeholder","ADMIN.SERVICES.FILTER"),w.Ab(1),w.kc("ngIf",e.loading),w.Ab(1),w.kc("ngIf",!e.loading))},directives:[L.a,z.b,F.a,v.t,B.c,bs.a],pipes:[k.d],styles:[""]}),xs),ks=l("23RZ");function Ss(t,e){1&t&&w.Nb(0,"mat-spinner",5)}var Ms=function(){return["id","name","vo","facility","description"]};function As(t,e){if(1&t){var n=w.Tb();w.Sb(0,"perun-web-apps-resources-list",6),w.Zb("page",(function(t){return w.xc(n),w.dc().pageChanged(t)})),w.Rb()}if(2&t){var r=w.dc();w.kc("pageSize",r.pageSize)("resources",r.resources)("filterValue",r.filterValue)("displayedColumns",w.oc(4,Ms))}}var Ts,Ds=((Ts=function(){function t(e,n,r){f(this,t),this.userManager=e,this.tableConfigService=n,this.route=r,this.resources=[],this.tableId=j.m,this.filterValue=""}return p(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe((function(e){t.userManager.getAssignedRichResourcesForUser(e.userId).subscribe((function(e){t.resources=e,t.loading=!1}))}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"resourceFilter",value:function(t){this.filterValue=t}}]),t}()).\u0275fac=function(t){return new(t||Ts)(w.Mb(N.p),w.Mb(j.pb),w.Mb(m.a))},Ts.\u0275cmp=w.Gb({type:Ts,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,"pageSize","resources","filterValue","displayedColumns","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","resources","filterValue","displayedColumns","page"]],template:function(t,e){1&t&&(w.Sb(0,"div"),w.Sb(1,"h1",0),w.Jc(2),w.ec(3,"translate"),w.Rb(),w.Sb(4,"perun-web-apps-refresh-button",1),w.Zb("refresh",(function(){return e.refreshTable()})),w.Rb(),w.Sb(5,"perun-web-apps-immediate-filter",2),w.Zb("filter",(function(t){return e.resourceFilter(t)})),w.Rb(),w.Hc(6,Ss,1,0,"mat-spinner",3),w.Hc(7,As,1,5,"perun-web-apps-resources-list",4),w.Rb()),2&t&&(w.Ab(2),w.Kc(w.fc(3,4,"USER_DETAIL.RESOURCES.TITLE")),w.Ab(3),w.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.Ab(1),w.kc("ngIf",e.loading),w.Ab(1),w.kc("ngIf",!e.loading))},directives:[L.a,F.a,v.t,B.c,ks.a],pipes:[k.d],styles:[""]}),Ts),Is=l("EkHC"),Os=l("TkCa");function Cs(t,e){1&t&&w.Nb(0,"mat-spinner",3)}var Ns=function(){return{color:"black"}},js=function(t){return["/admin/services",t]};function Rs(t,e){if(1&t){var n=w.Tb();w.Sb(0,"div",4),w.Nb(1,"mat-icon",5),w.ec(2,"translate"),w.Sb(3,"div",6),w.Sb(4,"div",7),w.Sb(5,"a",8),w.Jc(6),w.Rb(),w.Sb(7,"span",9),w.Jc(8),w.Rb(),w.Sb(9,"button",10),w.Zb("click",(function(){return w.xc(n),w.dc().editService()})),w.Sb(10,"mat-icon"),w.Jc(11,"edit"),w.Rb(),w.Rb(),w.Rb(),w.Sb(12,"span",11),w.Jc(13),w.ec(14,"translate"),w.Rb(),w.Rb(),w.Rb()}if(2&t){var r=w.dc();w.Ab(1),w.lc("matTooltip",w.fc(2,7,"SERVICE_DETAIL.ENTITY")),w.kc("ngStyle",w.oc(11,Ns)),w.Ab(4),w.kc("routerLink",w.pc(12,js,r.service.id)),w.Ab(1),w.Lc(" ",r.service.name," "),w.Ab(2),w.Lc(" \xa0 #",r.service.id," "),w.Ab(5),w.Mc(" ",w.fc(14,9,"SERVICE_DETAIL.DESCRIPTION"),": ",r.service.description," ")}}var Ps,Ls,zs=((Ls=function(){function t(e,n,r,i,o){f(this,t),this.route=e,this.serviceManager=n,this.sideMenuService=r,this.sideMenuItemService=i,this.dialog=o,this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe((function(e){t.serviceManager.getServiceById(e.serviceId).subscribe((function(e){t.service=e;var n=t.sideMenuItemService.parseService(t.service);t.sideMenuService.setAdminItems([n]),t.loading=!1}),(function(){return t.loading=!1}))}))}},{key:"editService",value:function(){var t=this,e=Object(C.o)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(ms.a,e).afterClosed().subscribe((function(e){e&&t.ngOnInit()}))}}]),t}()).\u0275fac=function(t){return new(t||Ls)(w.Mb(m.a),w.Mb(N.n),w.Mb(y.a),w.Mb(b.a),w.Mb(P.b))},Ls.\u0275cmp=w.Gb({type:Ls,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","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click"],[1,"mt-1","entity-info"]],template:function(t,e){1&t&&(w.Sb(0,"div",0),w.Nb(1,"perun-web-apps-back-button"),w.Hc(2,Cs,1,0,"mat-spinner",1),w.Hc(3,Rs,15,14,"div",2),w.Nb(4,"app-animated-router-outlet"),w.Rb()),2&t&&(w.Ab(2),w.kc("ngIf",e.loading),w.Ab(1),w.kc("ngIf",!e.loading&&void 0!==e.service))},directives:[_.a,v.t,E.a,B.c,x.a,Ia.a,v.w,m.i,z.b],pipes:[k.d],styles:[""],data:{animation:[Os.a]}}),Ls),Fs=((Ps=function(){function t(){f(this,t),this.navItems=[]}return p(t,[{key:"ngOnInit",value:function(){this.initNavItems()}},{key:"initNavItems",value:function(){this.navItems=[{cssIcon:"perun-attributes",url:"required-attributes",label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:"destinations",label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}]),t}()).\u0275fac=function(t){return new(t||Ps)},Ps.\u0275cmp=w.Gb({type:Ps,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&w.Nb(0,"perun-web-apps-menu-buttons-field",0),2&t&&w.kc("items",e.navItems)("size","small")},directives:[A.a],styles:[""]}),Ps),Bs=l("amZv"),Us=l("kLAD");function Gs(t,e){if(1&t){var n=w.Tb();w.Sb(0,"perun-web-apps-refresh-button",7),w.Zb("refresh",(function(){return w.xc(n),w.dc().refreshTable()})),w.Rb()}}function Vs(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",8),w.Zb("click",(function(){return w.xc(n),w.dc().onAdd()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}2&t&&(w.Ab(1),w.Lc(" ",w.fc(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function Hs(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",9),w.Zb("click",(function(){return w.xc(n),w.dc().onRemove()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}if(2&t){var r=w.dc();w.kc("disabled",0===r.selection.selected.length),w.Ab(1),w.Lc(" ",w.fc(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function Ys(t,e){if(1&t){var n=w.Tb();w.Sb(0,"perun-web-apps-immediate-filter",10),w.Zb("filter",(function(t){return w.xc(n),w.dc().applyFilter(t)})),w.Rb()}2&t&&w.kc("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER")}function Ws(t,e){1&t&&w.Nb(0,"mat-spinner",11)}function Js(t,e){if(1&t){var n=w.Tb();w.Sb(0,"app-attr-def-list",12),w.Zb("page",(function(t){return w.xc(n),w.dc().pageChanged(t)}))("refreshEvent",(function(){return w.xc(n),w.dc().refreshTable()})),w.Rb()}if(2&t){var r=w.dc();w.kc("pageSize",r.pageSize)("definitions",r.attrDefinitions)("selection",r.selection)("filterValue",r.filterValue)}}var Zs,qs=((Zs=function(){function t(e,n,r,i){f(this,t),this.route=e,this.tableConfigService=n,this.attributeManager=r,this.dialog=i,this.loading=!1,this.filterValue="",this.selection=new D.c(!0,[]),this.attrDefinitions=[],this.tableId=j.R}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.serviceId=e.serviceId,t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.serviceId).subscribe((function(e){t.selection.clear(),t.attrDefinitions=e,t.loading=!1}))}},{key:"onAdd",value:function(){var t=this,e=Object(C.o)();e.width="950px",e.data={serviceId:this.serviceId,theme:"service-theme"},this.dialog.open(Bs.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onRemove",value:function(){var t=this,e=Object(C.o)();e.width="650px",e.data={serviceId:this.serviceId,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(Us.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}()).\u0275fac=function(t){return new(t||Zs)(w.Mb(m.a),w.Mb(j.pb),w.Mb(N.c),w.Mb(P.b))},Zs.\u0275cmp=w.Gb({type:Zs,selectors:[["app-service-required-attributes"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","definitions","selection","filterValue","page","refreshEvent",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","page","refreshEvent"]],template:function(t,e){1&t&&(w.Sb(0,"div"),w.Sb(1,"h1",0),w.Jc(2),w.ec(3,"translate"),w.Rb(),w.Hc(4,Gs,1,0,"perun-web-apps-refresh-button",1),w.Hc(5,Vs,3,3,"button",2),w.Hc(6,Hs,3,4,"button",3),w.Hc(7,Ys,1,1,"perun-web-apps-immediate-filter",4),w.Hc(8,Ws,1,0,"mat-spinner",5),w.Hc(9,Js,1,4,"app-attr-def-list",6),w.Rb()),2&t&&(w.Ab(2),w.Kc(w.fc(3,7,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),w.Ab(2),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",e.loading),w.Ab(1),w.kc("ngIf",!e.loading))},directives:[v.t,L.a,z.b,F.a,B.c,U.a],pipes:[k.d],styles:[""]}),Zs);function Xs(t,e){if(1&t){var n=w.Tb();w.Sb(0,"perun-web-apps-refresh-button",7),w.Zb("refresh",(function(){return w.xc(n),w.dc().refreshTable()})),w.Rb()}}function Ks(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",8),w.Zb("click",(function(){return w.xc(n),w.dc().onAdd()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}2&t&&(w.Ab(1),w.Lc(" ",w.fc(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "))}function Qs(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",9),w.Zb("click",(function(){return w.xc(n),w.dc().onRemove()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}if(2&t){var r=w.dc();w.kc("disabled",0===r.selection.selected.length),w.Ab(1),w.Lc(" ",w.fc(2,2,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," ")}}function $s(t,e){if(1&t){var n=w.Tb();w.Sb(0,"app-users-list",10),w.Zb("page",(function(t){return w.xc(n),w.dc().pageChanged(t)})),w.Rb()}if(2&t){var r=w.dc();w.kc("pageSize",r.pageSize)("users",r.associatedUsers)("selection",r.selection)("displayedColumns",r.displayedColumns)}}function tu(t,e){1&t&&(w.Sb(0,"app-alert",11),w.Jc(1),w.ec(2,"translate"),w.Rb()),2&t&&(w.Ab(1),w.Lc(" ",w.fc(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS")," "))}function eu(t,e){1&t&&w.Nb(0,"mat-spinner",12)}var nu,ru=((nu=function(){function t(e,n,r,i,o){f(this,t),this.route=e,this.dialog=n,this.router=r,this.tableConfigService=i,this.userManager=o,this.loading=!1,this.selection=new D.c(!1,[]),this.associatedUsers=[],this.tableId=j.Z,this.displayedColumns=["select","id","user","name"]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe((function(e){t.userId=e.userId,t.userManager.getUsersBySpecificUser(t.userId).subscribe((function(e){t.associatedUsers=e,t.loading=!1}))}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.userManager.getUsersBySpecificUser(this.userId).subscribe((function(e){t.associatedUsers=e,t.selection.clear(),t.loading=!1}))}},{key:"onAdd",value:function(){var t=this,e=Object(C.o)();e.width="1250px",e.data={userId:this.userId,theme:"user-theme",isService:!0},this.dialog.open(Qa.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onRemove",value:function(){var t=this,e=Object(C.o)();e.width="650px",e.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme"},this.dialog.open($a.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||nu)(w.Mb(m.a),w.Mb(P.b),w.Mb(m.f),w.Mb(j.pb),w.Mb(N.p))},nu.\u0275cmp=w.Gb({type:nu,selectors:[["app-user-settings-associated-users"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(w.Sb(0,"div"),w.Sb(1,"h1",0),w.Jc(2),w.ec(3,"translate"),w.Rb(),w.Hc(4,Xs,1,0,"perun-web-apps-refresh-button",1),w.Hc(5,Ks,3,3,"button",2),w.Hc(6,Qs,3,4,"button",3),w.Hc(7,$s,1,4,"app-users-list",4),w.Hc(8,tu,3,3,"app-alert",5),w.Rb(),w.Hc(9,eu,1,0,"mat-spinner",6)),2&t&&(w.Ab(2),w.Kc(w.fc(3,7,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),w.Ab(2),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",void 0!==e.associatedUsers&&e.associatedUsers.length>0),w.Ab(1),w.kc("ngIf",!e.loading&&(void 0===e.associatedUsers||0===e.associatedUsers.length)),w.Ab(1),w.kc("ngIf",e.loading))},directives:[v.t,L.a,z.b,ts.a,es.a,B.c],pipes:[k.d],styles:[""]}),nu),iu=l("/nwi"),ou=l("pgvo");function au(t,e){if(1&t){var n=w.Tb();w.Sb(0,"perun-web-apps-refresh-button",7),w.Zb("refresh",(function(){return w.xc(n),w.dc().refreshTable()})),w.Rb()}}function su(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",8),w.Zb("click",(function(){return w.xc(n),w.dc().onRemove()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}if(2&t){var r=w.dc();w.kc("disabled",0===r.selection.selected.length),w.Ab(1),w.Lc(" ",w.fc(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function uu(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",9),w.Zb("click",(function(){return w.xc(n),w.dc().onAllow()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}if(2&t){var r=w.dc();w.kc("disabled",0===r.selection.selected.length),w.Ab(1),w.Lc(" ",w.fc(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function cu(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",8),w.Zb("click",(function(){return w.xc(n),w.dc().onBlock()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}if(2&t){var r=w.dc();w.kc("disabled",0===r.selection.selected.length),w.Ab(1),w.Lc(" ",w.fc(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function lu(t,e){if(1&t){var n=w.Tb();w.Sb(0,"perun-web-apps-immediate-filter",10),w.Zb("filter",(function(t){return w.xc(n),w.dc().applyFilter(t)})),w.Rb()}2&t&&w.kc("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER")}function hu(t,e){1&t&&w.Nb(0,"mat-spinner",11)}var fu=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function du(t,e){if(1&t&&w.Nb(0,"app-perun-web-apps-destination-list",12),2&t){var n=w.dc();w.kc("destinations",n.destinations)("selection",n.selection)("pageSize",n.pageSize)("displayedColumns",w.oc(5,fu))("filterValue",n.filterValue)}}var pu,gu=((pu=function(){function t(e,n,r,i,o,a){f(this,t),this.route=e,this.tableConfigService=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.dialog=a,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new D.c(!0,[]),this.tableId=j.C}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.serviceId=e.serviceId,t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.serviceId).subscribe((function(e){t.selection.clear(),t.filterValue="",t.destinations=e,t.loading=!1}))}},{key:"blockServiceOnDestinations",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();var n=t.pop();this.serviceManager.blockServiceOnDestination(this.serviceId,n.id).subscribe((function(){e.blockServiceOnDestinations(t)}),(function(){return e.loading=!1}))}},{key:"onBlock",value:function(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}},{key:"allowServiceOnDestinations",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();var n=t.pop();this.serviceManager.unblockServiceOnDestinationById(this.serviceId,n.id).subscribe((function(){e.allowServiceOnDestinations(t)}),(function(){return e.loading=!1}))}},{key:"onAllow",value:function(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}},{key:"onRemove",value:function(){var t=this,e=Object(C.o)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(iu.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}()).\u0275fac=function(t){return new(t||pu)(w.Mb(m.a),w.Mb(j.pb),w.Mb(N.n),w.Mb(it.l),w.Mb(k.e),w.Mb(P.b))},pu.\u0275cmp=w.Gb({type:pu,selectors:[["app-service-destinations"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","selection","pageSize","displayedColumns","filterValue",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"destinations","selection","pageSize","displayedColumns","filterValue"]],template:function(t,e){1&t&&(w.Sb(0,"div"),w.Sb(1,"h1",0),w.Jc(2),w.ec(3,"translate"),w.Rb(),w.Hc(4,au,1,0,"perun-web-apps-refresh-button",1),w.Hc(5,su,3,4,"button",2),w.Hc(6,uu,3,4,"button",3),w.Hc(7,cu,3,4,"button",2),w.Hc(8,lu,1,1,"perun-web-apps-immediate-filter",4),w.Hc(9,hu,1,0,"mat-spinner",5),w.Hc(10,du,1,6,"app-perun-web-apps-destination-list",6),w.Rb()),2&t&&(w.Ab(2),w.Kc(w.fc(3,8,"SERVICE_DETAIL.DESTINATIONS.TITLE")),w.Ab(2),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",!e.loading),w.Ab(1),w.kc("ngIf",e.loading),w.Ab(1),w.kc("ngIf",!e.loading))},directives:[v.t,L.a,z.b,F.a,B.c,ou.a],pipes:[k.d],styles:[""]}),pu),vu=l("/VkC"),mu=l("P2UU"),yu=l("5kIe");function bu(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",8),w.Zb("click",(function(){return w.xc(n),w.dc().addOwner()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}2&t&&(w.Ab(1),w.Lc(" ",w.fc(2,1,"ADMIN.OWNERS.ADD")," "))}function wu(t,e){if(1&t){var n=w.Tb();w.Sb(0,"button",9),w.Zb("click",(function(){return w.xc(n),w.dc().removeOwner()})),w.Jc(1),w.ec(2,"translate"),w.Rb()}if(2&t){var r=w.dc();w.kc("disabled",!r.selected.selected.length),w.Ab(1),w.Lc(" ",w.fc(2,2,"ADMIN.OWNERS.DELETE")," ")}}function _u(t,e){1&t&&w.Nb(0,"mat-spinner",10)}function xu(t,e){if(1&t){var n=w.Tb();w.Sb(0,"app-owners-list",11),w.Zb("page",(function(t){return w.xc(n),w.dc().pageChanged(t)})),w.Rb()}if(2&t){var r=w.dc();w.kc("pageSize",r.pageSize)("filterValue",r.filterValue)("owners",r.owners)("selection",r.selected)}}var Eu,ku=((Eu=function(){function t(e,n,r,i){f(this,t),this.ownersManagerService=e,this.tableConfigService=n,this.dialog=r,this.guiAuthResolver=i,this.owners=[],this.selected=new D.c(!0,[]),this.filterValue="",this.tableId=j.J}return p(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.setAuth(),this.refreshTable()}},{key:"setAuth",value:function(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.ownersManagerService.getAllOwners().subscribe((function(e){t.owners=e,t.selected.clear(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"addOwner",value:function(){var t=this,e=Object(C.o)();e.width="400px",e.data={},this.dialog.open(mu.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"removeOwner",value:function(){var t=this,e=Object(C.o)();e.width="400px",e.data=this.selected.selected,this.dialog.open(vu.a,e).afterClosed().subscribe((function(e){e&&(t.selected.clear(),t.refreshTable())}))}}]),t}()).\u0275fac=function(t){return new(t||Eu)(w.Mb(N.j),w.Mb(j.pb),w.Mb(P.b),w.Mb(it.h))},Eu.\u0275cmp=w.Gb({type:Eu,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","selection","page"]],template:function(t,e){1&t&&(w.Sb(0,"div",0),w.Sb(1,"h1",1),w.Jc(2),w.ec(3,"translate"),w.Rb(),w.Sb(4,"perun-web-apps-refresh-button",2),w.Zb("refresh",(function(){return e.refreshTable()})),w.Rb(),w.Hc(5,bu,3,3,"button",3),w.Hc(6,wu,3,4,"button",4),w.Sb(7,"perun-web-apps-immediate-filter",5),w.Zb("filter",(function(t){return e.applyFilter(t)})),w.Rb(),w.Hc(8,_u,1,0,"mat-spinner",6),w.Hc(9,xu,1,4,"app-owners-list",7),w.Rb()),2&t&&(w.Ab(2),w.Kc(w.fc(3,6,"ADMIN.OWNERS.TITLE")),w.Ab(3),w.kc("ngIf",e.addAuth),w.Ab(1),w.kc("ngIf",e.removeAuth),w.Ab(1),w.kc("placeholder","ADMIN.OWNERS.FILTER"),w.Ab(1),w.kc("ngIf",e.loading),w.Ab(1),w.kc("ngIf",!e.loading))},directives:[L.a,v.t,F.a,z.b,B.c,yu.a],pipes:[k.d],styles:[""]}),Eu),Su=l("w+DT");function Mu(t,e){1&t&&w.Nb(0,"mat-spinner",5)}function Au(t,e){if(1&t){var n=w.Tb();w.Sb(0,"perun-web-apps-facilities-list",6),w.Zb("page",(function(t){return w.xc(n),w.dc().pageChanged(t)})),w.Rb()}if(2&t){var r=w.dc();w.kc("filterValue",r.filterValue)("facilities",r.facilities)("displayedColumns",r.displayedColumns)("pageSize",r.pageSize)}}var Tu,Du,Iu,Ou=[{path:"",component:M,children:[{path:"",component:T,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:Z,data:{animation:"AdminAttributesPage"}},{path:"users",component:Ta.a,data:{animation:"AdminUsersPage"}},{path:"owners",component:ku,data:{animation:"AdminOwnersPage"}},{path:"services",component:Es,data:{animation:"AdminServicesPage"}},{path:"visualizer",component:q,children:[{path:"",component:Q,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:K,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:yt,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Aa,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:qa,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:La,children:[{path:"",component:za.a,data:{animation:"UserOverviewPage"}},{path:"attributes",component:Ga.a,data:{animation:"UserAttributesPage"}},{path:"organizations",component:Fa.a,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:Ba.a,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:vs,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:(Tu=function(){function t(e,n,r){f(this,t),this.facilityManager=e,this.tableConfigService=n,this.route=r,this.facilities=[],this.filterValue="",this.tableId=j.k,this.displayedColumns=["id","name","description"]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.userId=e.userId,t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe((function(e){t.facilities=e.map((function(t){return{facility:t}})),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}(),Tu.\u0275fac=function(t){return new(t||Tu)(w.Mb(N.g),w.Mb(j.pb),w.Mb(m.a))},Tu.\u0275cmp=w.Gb({type:Tu,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,"filterValue","facilities","displayedColumns","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"filterValue","facilities","displayedColumns","pageSize","page"]],template:function(t,e){1&t&&(w.Sb(0,"div"),w.Sb(1,"h1",0),w.Jc(2),w.ec(3,"translate"),w.Rb(),w.Sb(4,"perun-web-apps-refresh-button",1),w.Zb("refresh",(function(){return e.refreshTable()})),w.Rb(),w.Sb(5,"perun-web-apps-immediate-filter",2),w.Zb("filter",(function(t){return e.applyFilter(t)})),w.Rb(),w.Hc(6,Mu,1,0,"mat-spinner",3),w.Hc(7,Au,1,4,"perun-web-apps-facilities-list",4),w.Rb()),2&t&&(w.Ab(2),w.Kc(w.fc(3,4,"USER_DETAIL.FACILITIES.TITLE")),w.Ab(3),w.kc("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),w.Ab(1),w.kc("ngIf",e.loading),w.Ab(1),w.kc("ngIf",!e.loading))},directives:[L.a,F.a,v.t,B.c,Su.a],pipes:[k.d],styles:[""]}),Tu),data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Ds,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Is.a,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:Xa.a,data:{animation:"UserRolesPage"}},{path:"settings",component:Ua.a,children:[{path:"",component:Va.a,data:{animation:"UserSettingsOverviewPage"}},{path:"facilityAttributes",component:Ka.a,data:{animation:"UserSettingsFacilityAttributesPage",showPrincipal:!1}},{path:"service-identities",component:cs,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:ru,data:{animation:"AssociatedUsersPage"}}]}]},{path:"services/:serviceId",component:zs,children:[{path:"",component:Fs,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:qs,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:gu,data:{animation:"ServiceDestinationsPage"}}]}],Cu=((Du=function t(){f(this,t)}).\u0275mod=w.Kb({type:Du}),Du.\u0275inj=w.Jb({factory:function(t){return new(t||Du)},imports:[[m.j.forChild(Ou)],m.j]}),Du),Nu=l("PCNd"),ju=l("KoHB"),Ru=l("HHEo"),Pu=l("t47Z"),Lu=l("zrcO"),zu=((Iu=function t(){f(this,t)}).\u0275mod=w.Kb({type:Iu}),Iu.\u0275inj=w.Jb({factory:function(t){return new(t||Iu)},imports:[[No,ga,v.c,Cu,Nu.a,ju.a,Ru.d,Pu.b,Lu.UsersModule]]}),Iu)},kG2z:function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},kHoZ:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},keXZ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=r;var i=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=i;var o=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach((function(t){return n(t,t.right)})),this.cIn.forEach((function(t){return n(t,t.left)}))},t}();e.Variable=o;var a=function(){function t(t){this.vars=[],t.offset=0,this.ps=new r(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=u,e.removeOverlapInOneDimension=function(t,e,n){for(var r=t.map((function(t){return new o(t.desiredCenter)})),a=[],s=t.length,c=0;c=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{m()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function b(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(b,1e3)),o=1,f(y)))}g.prototype=v.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},oCTG:function(t,e,n){var r=n("Syyo"),i=n("bvyN"),o=n("wxYD"),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},osTN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("Tx5e"),i=n("WcC/");e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},"p1C/":function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},p2lg:function(t,e,n){var r=n("tQYX"),i=n("CbIe"),o=n("/UTG"),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},pFSi:function(t,e,n){var r=n("hyzI");function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},pIod:function(t,e,n){var r=n("y/9h"),i=n("wxYD");t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},pNP6:function(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,"b",(function(){return r})),e.a=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n-1&&t%1==0&&t=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++c-1&&t%1==0&&t<=9007199254740991}},tLQN:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},tPQG:function(t,e,n){var r=n("LtXa"),i=n("BlJA");t.exports=function(t,e){return t&&r(e,i(e),t)}},tQYX:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},tlBq:function(t,e,n){var r=n("pIod"),i=n("70Le"),o=n("BlJA");t.exports=function(t){return r(t,o,i)}},u6DZ:function(t,e,n){var r=n("YpBQ"),i=n("eHpp"),o=n("R3TX"),a=n("R5u7"),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},uoq0:function(t,e,n){"use strict";n.r(e),n.d(e,"zoom",(function(){return k})),n.d(e,"zoomTransform",(function(){return g})),n.d(e,"zoomIdentity",(function(){return p}));var r=n("z0Nn"),i=n("chUO"),o=n("nJRJ"),a=n("7SLq"),s=n("xpD5"),u=n("dr5/"),c=n("Bitd"),l=n("8MQl"),h=function(t){return function(){return t}};function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function v(){a.c.stopImmediatePropagation()}g.prototype=d.prototype;var m=function(){a.c.preventDefault(),a.c.stopImmediatePropagation()};function y(){return!a.c.button}function b(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function _(){return-a.c.deltaY*(a.c.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var k=function(){var t,e,n=y,g=b,k=E,S=_,M=x,A=[0,1/0],T=[[-1/0,-1/0],[1/0,1/0]],D=250,I=o.a,O=[],C=Object(r.a)("start","zoom","end"),N=0;function j(t){t.property("__zoom",w).on("wheel.zoom",U).on("mousedown.zoom",G).on("dblclick.zoom",V).filter(M).on("touchstart.zoom",H).on("touchmove.zoom",Y).on("touchend.zoom touchcancel.zoom",W).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(t,e){return(e=Math.max(A[0],Math.min(A[1],e)))===t.k?t:new d(e,t.x,t.y)}function P(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function L(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function z(t,e,n){t.on("start.zoom",(function(){F(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){F(this,arguments).end()})).tween("zoom",(function(){var t=this,r=arguments,i=F(t,r),o=g.apply(t,r),a=n||L(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=I(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}}))}function F(t,e){for(var n,r=0,i=O.length;rN}t.zoom("mouse",k(P(t.that.__zoom,t.mouse[0]=Object(s.a)(t.that),t.mouse[1]),t.extent,T))}function d(){r.on("mousemove.zoom mouseup.zoom",null),Object(i.b)(a.c.view,t.moved),m(),t.end()}}function V(){if(n.apply(this,arguments)){var t=this.__zoom,e=Object(s.a)(this),r=t.invert(e),i=t.k*(a.c.shiftKey?.5:2),o=k(P(R(t,i),e,r),g.apply(this,arguments),T);m(),D>0?Object(u.a)(this).transition().duration(D).call(z,o,e):Object(u.a)(this).call(j.transform,o)}}function H(){if(n.apply(this,arguments)){var e,r,i,o,s=F(this,arguments),h=a.c.changedTouches,f=h.length;for(v(),r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,(function(t,n){return e(n,t)}))},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new a(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=o;var a=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=a;var s=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return i(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new s(t),n=!0,this.size++;else{var r=new s(void 0),i=!1,o=!1,a=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new s(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===a;l===c.get_child(o)?u.set_child(h,e.single_rotate(a,!o)):u.set_child(h,e.double_rotate(a,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==a&&(u=a),a=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new s(void 0),r=n;r.right=this._root;for(var i=null,o=null,a=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(a=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==a&&(a.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==a},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(o)},vxC8:function(t,e,n){var r=n("5nKN"),i=n("4p/L");t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},w0mW:function(t,e,n){var r=n("dw5g"),i=0;t.exports=function(t){var e=++i;return r(t)+e}},w2Tz:function(t,e,n){var r=n("xoyU"),i=n("Ypsa");t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},xaOS:function(t,e,n){"use strict";var r=n("gjtd"),i=n("vC4J").Graph,o=n("xxjf");function a(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,a=0,s=e.length,c=r.last(i);return r.forEach(i,(function(e,l){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:s;(h||e===c)&&(r.forEach(i.slice(a,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),a=i.order;!(as)&&u(n,e,c)}))}))}return r.reduce(e,(function(e,n){var o,a=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)})),n})),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,(function(t){return s[t]}))).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&e180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(s.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(s.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Object(s.a)(t,n)},{i:u-2,x:Object(s.a)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++nMath.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},"y/9h":function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function s(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;oe.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,(function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)}));var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},zF5n:function(t,e,n){var r=n("pIod"),i=n("Xidw"),o=n("zH+d");t.exports=function(t){return r(t,o,i)}},"zH+d":function(t,e,n){var r=n("rmhs"),i=n("p2lg"),o=n("9y2L");t.exports=function(t){return o(t)?r(t,!0):i(t)}},zKkv:function(t,e,n){var r=n("UdtX"),i=n("BlJA");t.exports=function(t,e){return t&&r(t,e,i)}},zL3f:function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}n.d(e,"a",(function(){return r})),e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i0){var e=0;this._links.forEach((function(t){e=Math.max(e,t.source,t.target)})),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],v=this._canvasSize[1],m=new Array(p),y=new Array(p),b=null,w=this._avoidOverlaps;this._nodes.forEach((function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=v/2),m[e]=t.x,y[e]=t.y})),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,(function(t){return h.getLinkLength(t)})).DistanceMatrix(),b=o.Descent.createSquareMatrix(p,(function(){return 2})),this._links.forEach((function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])})),this._links.forEach((function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);b[n][r]=b[r][n]=e.weight||1})));var _=o.Descent.createSquareMatrix(p,(function(t,e){return f[t][e]}));if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach((function(t){!function(t,e,n,r){b[t][e]=b[e][t]=n,_[t][e]=_[e][t]=.1}(x,x+1,h._groupCompactness),m[x]=0,y[x++]=0,m[x]=0,y[x++]=0}))}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([m,y],_),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,v,l),this.avoidOverlaps(w),w&&(this._nodes.forEach((function(t,e){t.x=m[e],t.y=y[e]})),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach((function(t,e){m[e]=t.x,y[e]=t.y}))),this._descent.G=b,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var S=o.Descent.createSquareMatrix(p,(function(t,e){return t>=d||e>=d?b[t][e]:0}));this._descent.G=S,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,v,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map((function(t){return{source:t.source.index,target:t.target.index}})),a=this._nodes.map((function(t){return{index:t.index}}));this._groups.forEach((function(t,e){a.push({index:t.index=i+e})})),this._groups.forEach((function(t,e){void 0!==t.leaves&&t.leaves.forEach((function(e){return o.push({source:t.index,target:e.index})})),void 0!==t.groups&&t.groups.forEach((function(e){return o.push({source:t.index,target:e.index})}))})),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach((function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y}))}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach((function(t,e){t.x=i[e],t.y=o[e]}));var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach((function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))}))}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map((function(e){return e.bounds.inflate(-t).vertices()})))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,(function(t){return t.source.id}),(function(t){return t.target.id}),(function(t){return t.length()})).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,v=i.V[f[0]].p,m=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);m>=0;--m)r.push(i.V[f[m]].p);r.push(a.makeEdgeTo(v,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach((function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.storeOffset(e,n)}))},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach((function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.drag(e,n)}))):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach((function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY})),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/8-es2015.09a37e5fab2b78aabfad.js b/dist/apps/admin-gui/8-es2015.09a37e5fab2b78aabfad.js new file mode 100644 index 000000000..57c571a12 --- /dev/null +++ b/dist/apps/admin-gui/8-es2015.09a37e5fab2b78aabfad.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"pjY/":function(e,t,i){"use strict";i.r(t),i.d(t,"FacilitiesModule",(function(){return qt}));var s=i("2kYt"),a=i("sEIs"),c=i("VFai"),n=i("TkCa"),l=i("4sdY"),r=i("EkAj"),o=i("X2Q7"),b=i("8clQ"),u=i("Ssnw"),h=i("+0js"),d=i("EM62"),f=i("OZ4H"),p=i("EtYo"),g=i("csyo"),m=i("bFHC"),I=i("Y2X+"),S=i("ma6z"),y=i("PBFl"),T=i("s2Ay");function A(e,t){1&e&&d.Nb(0,"mat-spinner",3)}function v(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",12),d.Zb("click",(function(){return d.xc(e),d.dc(2).editFacility()})),d.Sb(1,"mat-icon"),d.Jc(2,"edit"),d.Rb(),d.Rb()}}const E=function(){return{color:"black"}},R=function(e){return["/facilities",e]};function C(e,t){if(1&e&&(d.Sb(0,"div"),d.Sb(1,"div",4),d.Nb(2,"mat-icon",5),d.ec(3,"translate"),d.Sb(4,"div",6),d.Sb(5,"div",7),d.Sb(6,"a",8),d.Jc(7),d.Rb(),d.Sb(8,"span",9),d.Jc(9),d.Rb(),d.Hc(10,v,3,0,"button",10),d.Rb(),d.Sb(11,"span",11),d.Jc(12),d.ec(13,"translate"),d.ec(14,"translate"),d.Rb(),d.Rb(),d.Rb(),d.Nb(15,"app-animated-router-outlet"),d.Rb()),2&e){const e=d.dc();d.Ab(2),d.lc("matTooltip",d.fc(3,9,"FACILITY_DETAIL.ENTITY")),d.kc("ngStyle",d.oc(15,E)),d.Ab(4),d.kc("routerLink",d.pc(16,R,e.facility.id)),d.Ab(1),d.Kc(e.facility.name),d.Ab(2),d.Lc(" \xa0#",e.facility.id," "),d.Ab(1),d.kc("ngIf",e.editFacilityAuth),d.Ab(2),d.Nc(" ",d.fc(13,11,"FACILITY_DETAIL.ENTITY"),", ",d.fc(14,13,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let L=(()=>{class e{constructor(e,t,i,s,a,c){this.dialog=e,this.facilityManager=t,this.route=i,this.sideMenuService=s,this.sideMenuItemService=a,this.guiAuthResolver=c,this.editFacilityAuth=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.facilityManager.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e;const t=this.sideMenuItemService.parseFacility(e);this.sideMenuService.setFacilityMenuItems([t]),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),Object(b.b)("facilities",this.facility),Object(b.c)(this.facility),this.loading=!1},()=>this.loading=!1)})}editFacility(){const e=Object(b.o)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:h.h.FACILITY},this.dialog.open(h.g,e).afterClosed().subscribe(e=>{e&&this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e})})}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(f.b),d.Mb(o.g),d.Mb(a.a),d.Mb(l.a),d.Mb(r.a),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-detail-page"]],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,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(d.Sb(0,"div",0),d.Nb(1,"perun-web-apps-back-button"),d.Hc(2,A,1,0,"mat-spinner",1),d.Hc(3,C,16,18,"div",2),d.Rb()),2&e&&(d.Ab(2),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading&&void 0!==t.facility))},directives:[p.a,s.t,g.c,m.a,I.a,s.w,a.i,S.a,y.b],pipes:[T.d],styles:[""],data:{animation:[n.a]}}),e})();var k=i("ZG5M");function F(e,t){1&e&&d.Nb(0,"mat-spinner",2)}function _(e,t){if(1&e&&(d.Sb(0,"div"),d.Nb(1,"perun-web-apps-menu-buttons-field",3),d.Rb()),2&e){const e=d.dc();d.Ab(1),d.kc("items",e.navItems)("size","small")}}let M=(()=>{class e{constructor(e,t,i){this.facilityManager=e,this.route=t,this.authResolver=i,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.facilityManager.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.navItems=[],this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[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.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[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.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[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.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[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.authResolver.isFacilityAdmin()&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),(this.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])||this.authResolver.isManagerPagePrivileged(this.facility)||this.authResolver.isAuthorized("getOwners_Facility_policy",[this.facility])||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[this.facility]))&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(o.g),d.Mb(a.a),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&d.Eb("router-component",!0)},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,t){1&e&&(d.Hc(0,F,1,0,"mat-spinner",0),d.Hc(1,_,2,2,"div",1)),2&e&&(d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading))},directives:[s.t,g.c,k.a],styles:[""]}),e})();var w=i("s8L6"),O=i("Wq+4"),D=i("nSPi"),z=i("y/MV");let N=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&d.Eb("router-component",!0)},decls:1,vars:0,template:function(e,t){1&e&&d.Nb(0,"app-animated-router-outlet")},directives:[S.a],styles:[""],data:{animation:[n.a]}}),e})();function V(e,t){1&e&&d.Nb(0,"mat-spinner",2)}function H(e,t){if(1&e&&(d.Sb(0,"div"),d.Nb(1,"perun-web-apps-menu-buttons-field",3),d.Rb()),2&e){const e=d.dc();d.Ab(1),d.kc("items",e.items)("size","small")}}let Y=(()=>{class e{constructor(e,t,i){this.route=e,this.facilityManager=t,this.authResolver=i,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.facilityManager.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.items=[],this.authResolver.isAuthorized("getOwners_Facility_policy",[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.authResolver.isManagerPagePrivileged(this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[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.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(a.a),d.Mb(o.g),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&d.Eb("router-component",!0)},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,t){1&e&&(d.Hc(0,V,1,0,"mat-spinner",0),d.Hc(1,H,2,2,"div",1)),2&e&&(d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading))},directives:[s.t,g.c,k.a],styles:[""]}),e})();var U=i("HHEo"),B=i("cqs0"),x=i("mEf3"),P=i("iyZ4"),G=i("IDQ9"),Z=i("KZIX"),J=i("0XDM"),j=i("A8Ay"),W=i("LKLE"),K=i("bdug");const $=["list"];function Q(e,t){1&e&&(d.Jc(0),d.ec(1,"translate")),2&e&&d.Lc(" ",d.fc(1,1,"FACILITY_DETAIL.ENTITY")," ")}function X(e,t){1&e&&d.Nb(0,"mat-spinner",10)}function q(e,t){if(1&e){const e=d.Tb();d.Sb(0,"perun-web-apps-attributes-list",11,12),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("attributes",e.attributes)("selection",e.selection)}}function ee(e,t){1&e&&(d.Jc(0),d.ec(1,"translate"),d.ec(2,"translate")),2&e&&d.Mc(" ",d.fc(1,2,"FACILITY_DETAIL.ENTITY")," - ",d.fc(2,4,"ADMIN_USER.ENTITY")," ")}function te(e,t){if(1&e&&d.Nb(0,"app-two-entity-attribute-page",15),2&e){const e=d.dc(3);d.kc("firstEntity","facility")("firstEntityId",e.facilityId)("secondEntity","user")}}function ie(e,t){if(1&e&&d.Hc(0,te,1,3,"app-two-entity-attribute-page",14),2&e){const e=d.dc(2);d.kc("ngIf",!e.loading)}}function se(e,t){1&e&&(d.Sb(0,"mat-tab"),d.Hc(1,ee,3,6,"ng-template",1),d.Hc(2,ie,1,1,"ng-template",13),d.Rb())}let ae=(()=>{class e{constructor(e,t,i,s,a,c,n){this.attributesManager=e,this.route=t,this.dialog=i,this.notificator=s,this.tableConfigService=a,this.translate=c,this.authResolver=n,this.attributes=[],this.selection=new B.c(!0,[]),this.filterValue="",this.tableId=P.r,this.translate.get("FACILITY_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe(e=>this.saveSuccessMessage=e),this.translate.get("FACILITY_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe(e=>this.deleteSuccessMessage=e)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.facilityId=e.facilityId,this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[{id:this.facilityId,beanName:"Facility"}]),this.refreshTable()})}onDelete(){const e=Object(b.o)();e.width="450px",e.data={entityId:this.facilityId,entity:"facility",attributes:this.selection.selected,theme:"facility-theme"},this.dialog.open(x.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=Object(b.o)();e.width="450px",e.data={entityId:this.facilityId,entity:"facility",attributes:this.selection.selected},this.dialog.open(h.f,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onCreate(){const e=Object(b.o)();e.width="1050px",e.data={entityId:this.facilityId,entity:"facility",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(G.a,e).afterClosed().subscribe(e=>{"saved"===e&&this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getFacilityAttributes(this.facilityId).subscribe(e=>{this.attributes=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(o.c),d.Mb(a.a),d.Mb(f.b),d.Mb(u.l),d.Mb(P.pb),d.Mb(T.e),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-attributes"]],viewQuery:function(e,t){var i;1&e&&d.Qc($,!0),2&e&&d.sc(i=d.ac())&&(t.list=i.first)},hostVars:2,hostBindings:function(e,t){2&e&&d.Eb("router-component",!0)},decls:22,vars:20,consts:[[1,"page-subtitle"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"mat-tab-group"),d.Sb(5,"mat-tab"),d.Hc(6,Q,2,3,"ng-template",1),d.Sb(7,"perun-web-apps-refresh-button",2),d.Zb("refresh",(function(){return t.refreshTable()})),d.Rb(),d.Sb(8,"button",3),d.Zb("click",(function(){return t.onCreate()})),d.Jc(9),d.ec(10,"translate"),d.Rb(),d.Sb(11,"button",4),d.Zb("click",(function(){return t.onSave()})),d.Jc(12),d.ec(13,"translate"),d.Rb(),d.Sb(14,"button",5),d.Zb("click",(function(){return t.onDelete()})),d.Jc(15),d.ec(16,"translate"),d.Rb(),d.Sb(17,"perun-web-apps-immediate-filter",6),d.Zb("filter",(function(e){return t.applyFilter(e)})),d.ec(18,"translate"),d.Rb(),d.Hc(19,X,1,0,"mat-spinner",7),d.Hc(20,q,2,4,"perun-web-apps-attributes-list",8),d.Rb(),d.Hc(21,se,3,0,"mat-tab",9),d.Rb(),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,10,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),d.Ab(7),d.Lc(" ",d.fc(10,12,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),d.Ab(2),d.kc("disabled",0===t.selection.selected.length),d.Ab(1),d.Lc(" ",d.fc(13,14,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),d.Ab(2),d.kc("disabled",0===t.selection.selected.length),d.Ab(1),d.Lc(" ",d.fc(16,16,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),d.Ab(2),d.kc("placeholder",d.fc(18,18,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER")),d.Ab(2),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading),d.Ab(1),d.kc("ngIf",t.facilityUserAttAuth))},directives:[Z.c,Z.a,Z.d,J.a,y.b,j.a,s.t,g.c,W.a,Z.b,K.a],pipes:[T.d],styles:[""]}),e})();var ce=i("GyaY"),ne=i("HUrR"),le=i("gxIj"),re=i("jblC"),oe=i("nIj0"),be=i("jIqt"),ue=i("YtkY"),he=i("t47Z"),de=i("+Tre"),fe=i("29Wa"),pe=i("Cd2c"),ge=i("ulve"),me=i("mFH5"),Ie=i("j+u3");function Se(e,t){if(1&e){const e=d.Tb();d.Sb(0,"mat-option",10),d.Zb("onSelectionChange",(function(){d.xc(e);const i=t.$implicit;return d.dc(3).onSelectedService(i)})),d.Jc(1),d.Rb()}if(2&e){const e=t.$implicit;d.kc("value",e),d.Ab(1),d.Lc(" ",e.name," ")}}function ye(e,t){if(1&e){const e=d.Tb();d.Sb(0,"mat-form-field",6),d.Sb(1,"input",7),d.Zb("keyup",(function(t){return d.xc(e),d.dc(2).updatedSerVal(t)})),d.ec(2,"translate"),d.Rb(),d.Sb(3,"mat-autocomplete",8,9),d.Sb(5,"mat-option",10),d.Zb("onSelectionChange",(function(){return d.xc(e),d.dc(2).onSelectedService("NOT_SELECTED")})),d.Jc(6),d.ec(7,"translate"),d.Rb(),d.Sb(8,"mat-option",10),d.Zb("onSelectionChange",(function(){return d.xc(e),d.dc(2).onSelectedService("ALL")})),d.Jc(9),d.ec(10,"translate"),d.Rb(),d.Hc(11,Se,2,2,"mat-option",11),d.ec(12,"async"),d.Rb(),d.Rb()}if(2&e){const e=d.tc(4),t=d.dc(2);d.Ab(1),d.lc("placeholder",d.fc(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),d.kc("formControl",t.serviceField)("matAutocomplete",e),d.Ab(2),d.kc("displayWith",t.serviceDisplayFn.bind(t)),d.Ab(2),d.kc("value","NOT_SELECTED"),d.Ab(1),d.Lc(" ",d.fc(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),d.Ab(2),d.kc("value","ALL"),d.Ab(1),d.Lc(" ",d.fc(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),d.Ab(2),d.kc("ngForOf",d.fc(12,15,t.filteredServices))}}function Te(e,t){if(1&e){const e=d.Tb();d.Sb(0,"mat-option",10),d.Zb("onSelectionChange",(function(){d.xc(e);const i=t.$implicit;return d.dc(3).onSelectedResource(i)})),d.Jc(1),d.Rb()}if(2&e){const e=t.$implicit;d.kc("value",e),d.Ab(1),d.Lc(" ",e.name," ")}}function Ae(e,t){if(1&e){const e=d.Tb();d.Sb(0,"mat-form-field",6),d.Sb(1,"input",12),d.Zb("keyup",(function(t){return d.xc(e),d.dc(2).updatedResVal(t)})),d.ec(2,"translate"),d.Rb(),d.Sb(3,"mat-autocomplete",8,9),d.Hc(5,Te,2,2,"mat-option",11),d.ec(6,"async"),d.Rb(),d.Rb()}if(2&e){const e=d.tc(4),t=d.dc(2);d.Ab(1),d.lc("placeholder",d.fc(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),d.kc("matAutocomplete",e)("formControl",t.resourceField),d.Ab(2),d.kc("displayWith",t.resourceDisplayFn.bind(t)),d.Ab(2),d.kc("ngForOf",d.fc(6,7,t.filteredResources))}}function ve(e,t){if(1&e){const e=d.Tb();d.Sb(0,"mat-option",10),d.Zb("onSelectionChange",(function(){d.xc(e);const i=t.$implicit;return d.dc(3).onSelectedGroup(i)})),d.Jc(1),d.Rb()}if(2&e){const e=t.$implicit;d.kc("value",e),d.Ab(1),d.Lc(" ",e.name," ")}}function Ee(e,t){if(1&e){const e=d.Tb();d.Sb(0,"mat-form-field",6),d.Sb(1,"input",12),d.Zb("keyup",(function(t){return d.xc(e),d.dc(2).updatedGroupVal(t)})),d.ec(2,"translate"),d.Rb(),d.Sb(3,"mat-autocomplete",13,9),d.Hc(5,ve,2,2,"mat-option",11),d.ec(6,"async"),d.Rb(),d.Rb()}if(2&e){const e=d.tc(4),t=d.dc(2);d.Ab(1),d.lc("placeholder",d.fc(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),d.kc("matAutocomplete",e)("formControl",t.groupField),d.Ab(2),d.kc("displayWith",t.groupDisplayFn.bind(t)),d.Ab(2),d.kc("ngForOf",d.fc(6,7,t.filteredGroups))}}function Re(e,t){if(1&e){const e=d.Tb();d.Sb(0,"mat-option",10),d.Zb("onSelectionChange",(function(){d.xc(e);const i=t.$implicit;return d.dc(3).onSelectedMember(i)})),d.Jc(1),d.ec(2,"userFullName"),d.Rb()}if(2&e){const e=t.$implicit;d.kc("value",e),d.Ab(1),d.Lc(" ",d.fc(2,2,e.user)," ")}}function Ce(e,t){if(1&e&&(d.Sb(0,"mat-form-field",6),d.Nb(1,"input",14),d.ec(2,"translate"),d.Sb(3,"mat-autocomplete",8,9),d.Hc(5,Re,3,4,"mat-option",11),d.ec(6,"async"),d.Rb(),d.Rb()),2&e){const e=d.tc(4),t=d.dc(2);d.Ab(1),d.lc("placeholder",d.fc(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),d.kc("formControl",t.memberField)("matAutocomplete",e),d.Ab(2),d.kc("displayWith",t.memberDisplayFn.bind(t)),d.Ab(2),d.kc("ngForOf",d.fc(6,7,t.filteredMembers))}}function Le(e,t){if(1&e){const e=d.Tb();d.Sb(0,"div",3),d.Hc(1,ye,13,17,"mat-form-field",4),d.Sb(2,"mat-checkbox",5),d.Zb("change",(function(t){return d.xc(e),d.dc().onOfferAllServices(t)})),d.Jc(3),d.ec(4,"translate"),d.Rb(),d.Hc(5,Ae,7,9,"mat-form-field",4),d.Hc(6,Ee,7,9,"mat-form-field",4),d.Hc(7,Ce,7,9,"mat-form-field",4),d.Rb()}if(2&e){const e=d.dc();d.Ab(1),d.kc("ngIf",void 0!==e.services),d.Ab(2),d.Lc(" ",d.fc(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),d.Ab(2),d.kc("ngIf",void 0!==e.resources&&0!=e.resources.length),d.Ab(1),d.kc("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!=e.groups.length),d.Ab(1),d.kc("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function ke(e,t){if(1&e&&d.Nb(0,"perun-web-apps-service-configurator",15),2&e){const e=d.dc();d.kc("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("service",e.selectedService)("member",e.selectedMember)}}let Fe=(()=>{class e{constructor(e,t,i,s,a,c,n){this.route=e,this.facilityManager=t,this.resourceManager=i,this.serviceManager=s,this.membersManager=a,this.namePipe=c,this.translate=n,this.selectedService="NOT_SELECTED",this.attrNames=[],this.serviceField=new oe.g,this.resourceField=new oe.g,this.groupField=new oe.g,this.memberField=new oe.g,this.allowedStatuses=["INVALID","VALID"],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(e=>this.serviceAllTranslation=e),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(e=>this.serviceNotSelectedTranslation=e)}ngOnInit(){this.route.parent.params.subscribe(e=>{this.facilityManager.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(e=>this.resources=e),this.serviceManager.getAssignedServices(e.id).subscribe(e=>this.services=e)})}),this.filteredServices=this.serviceField.valueChanges.pipe(Object(be.a)(""),Object(ue.a)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe(Object(be.a)(""),Object(ue.a)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe(Object(be.a)(""),Object(ue.a)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe(Object(be.a)(""),Object(ue.a)(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(e=>this.groups=e),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(e=>this.services=e)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,this.attrNames).subscribe(e=>this.members=e),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}_filterServices(e){const t=e.toString().toLowerCase();return this.services.filter(e=>e.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(t))}_filterResources(e){const t=e.toString().toLowerCase();return this.resources.filter(e=>e.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(t))}_filterGroups(e){const t=e.toString().toLowerCase();return this.groups.filter(e=>e.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(t))}_filterMembers(e){const t=e.toString().toLowerCase();return this.members.filter(e=>this.namePipe.transform(e.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(t))}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:e.name}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)}updatedMemVal(e){}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(a.a),d.Mb(o.g),d.Mb(o.m),d.Mb(o.n),d.Mb(o.i),d.Mb(he.c),d.Mb(T.e))},e.\u0275cmp=d.Gb({type:e,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","service","member",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["type","text","matInput","",3,"placeholder","matAutocomplete","formControl","keyup"],["autoActiveFirstOption","",3,"ngClass","displayWith"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"facility","resource","group","service","member"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Hc(4,Le,8,7,"div",1),d.Hc(5,ke,1,5,"perun-web-apps-service-configurator",2),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),d.Ab(2),d.kc("ngIf",!!t.facility),d.Ab(1),d.kc("ngIf",!!t.facility))},directives:[s.t,de.a,fe.c,pe.b,oe.c,ge.d,oe.r,oe.h,ge.a,me.n,s.s,s.q],pipes:[T.d,s.b,Ie.a],styles:[""]}),e})();var _e=i("NU+N");function Me(e,t){if(1&e&&d.Nb(0,"app-managers-page",1),2&e){const e=d.dc();d.kc("complementaryObject",e.facility)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)}}let we=(()=>{class e{constructor(e,t,i){this.facilityService=e,this.route=t,this.guiAuthResolver=i,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(e=>{this.facilityService.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(o.g),d.Mb(a.a),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,t){2&e&&d.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&d.Hc(0,Me,1,4,"app-managers-page",0),2&e&&d.kc("ngIf",t.facility)},directives:[s.t,_e.a],styles:[""]}),e})();var Oe=i("/nwi"),De=i("Dkjx"),ze=i("pgvo");function Ne(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",8),d.Zb("click",(function(){return d.xc(e),d.dc().addDestination()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}2&e&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Ve(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",9),d.Zb("click",(function(){return d.xc(e),d.dc().removeDestination()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&e){const e=d.dc();d.kc("disabled",0===e.selected.selected.length),d.Ab(1),d.Lc(" ",d.fc(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function He(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",10),d.Zb("click",(function(){return d.xc(e),d.dc().onAllow()})),d.Sb(1,"mat-icon"),d.Jc(2," check_circle_outline "),d.Rb(),d.Jc(3),d.ec(4,"translate"),d.Rb()}if(2&e){const e=d.dc();d.kc("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),d.Ab(3),d.Lc(" ",d.fc(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Ye(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",10),d.Zb("click",(function(){return d.xc(e),d.dc().onBlock()})),d.Sb(1,"mat-icon"),d.Jc(2," block "),d.Rb(),d.Jc(3),d.ec(4,"translate"),d.Rb()}if(2&e){const e=d.dc();d.kc("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),d.Ab(3),d.Lc(" ",d.fc(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function Ue(e,t){1&e&&d.Nb(0,"mat-spinner",11)}function Be(e,t){if(1&e){const e=d.Tb();d.Sb(0,"app-perun-web-apps-destination-list",12),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("destinations",e.destinations)("selection",e.selected)("displayedColumns",e.displayedColumns)}}let xe=(()=>{class e{constructor(e,t,i,s,a,c,n,l,r){this.dialog=e,this.facilitiesManager=t,this.servicesManager=i,this.tableConfigService=s,this.translate=a,this.notificator=c,this.route=n,this.authResolver=l,this.serviceManager=r,this.selected=new B.c(!0,[]),this.displayedColumns=["select","destinationId","service","destination","type","propagationType"],this.filterValue="",this.tableId=P.C}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(e=>{this.facilitiesManager.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e,this.refreshTable()})})}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,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?["select","destinationId","service","destination","type","status","propagationType"]:["destinationId","service","destination","type","status","propagationType"]}addDestination(){const e=Object(b.o)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme"},this.dialog.open(De.a,e).afterClosed().subscribe(e=>{e&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(e=>{this.refreshTable(),this.notificator.showSuccess(e)})})}removeDestination(){const e=Object(b.o)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(Oe.a,e).afterClosed().subscribe(e=>{e&&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 t=e.pop();this.serviceManager.blockServiceOnDestination(t.service.id,t.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 t=e.pop();this.serviceManager.unblockServiceOnDestinationById(t.service.id,t.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}allSelectedAllowed(){return this.selected.selected.reduce((e,t)=>e&&!t.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,t)=>e&&t.blocked,!0)}}return e.id="FacilityServicesDestinationsComponent",e.\u0275fac=function(t){return new(t||e)(d.Mb(f.b),d.Mb(o.g),d.Mb(o.n),d.Mb(P.pb),d.Mb(T.e),d.Mb(u.l),d.Mb(a.a),d.Mb(u.h),d.Mb(o.n))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,t){2&e&&d.Eb("router-component",!0)},decls:12,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"perun-web-apps-refresh-button",1),d.Zb("refresh",(function(){return t.refreshTable()})),d.Rb(),d.Hc(5,Ne,3,3,"button",2),d.Hc(6,Ve,3,4,"button",3),d.Hc(7,He,5,4,"button",4),d.Hc(8,Ye,5,4,"button",4),d.Sb(9,"perun-web-apps-immediate-filter",5),d.Zb("filter",(function(e){return t.applyFilter(e)})),d.Rb(),d.Hc(10,Ue,1,0,"mat-spinner",6),d.Hc(11,Be,1,5,"app-perun-web-apps-destination-list",7),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,8,"FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE")),d.Ab(3),d.kc("ngIf",!t.loading&&t.addAuth),d.Ab(1),d.kc("ngIf",!t.loading&&t.removeAuth),d.Ab(1),d.kc("ngIf",!t.loading&&t.allowAuth),d.Ab(1),d.kc("ngIf",!t.loading&&t.blockAuth),d.Ab(1),d.kc("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),d.Ab(1),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading))},directives:[J.a,s.t,j.a,y.b,m.a,g.c,ze.a],pipes:[T.d],styles:[""]}),e})();var Pe=i("st5j"),Ge=i("noDS"),Ze=i("5kIe");function Je(e,t){if(1&e){const e=d.Tb();d.Sb(0,"perun-web-apps-refresh-button",7),d.Zb("refresh",(function(){return d.xc(e),d.dc().refreshTable()})),d.Rb()}}function je(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",8),d.Zb("click",(function(){return d.xc(e),d.dc().onCreate()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}2&e&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function We(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",9),d.Zb("click",(function(){return d.xc(e),d.dc().onRemove()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&e){const e=d.dc();d.kc("disabled",0===e.selection.selected.length),d.Ab(1),d.Lc(" ",d.fc(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function Ke(e,t){if(1&e){const e=d.Tb();d.Sb(0,"perun-web-apps-immediate-filter",10),d.Zb("filter",(function(t){return d.xc(e),d.dc().applyFilter(t)})),d.Rb()}2&e&&d.kc("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function $e(e,t){1&e&&d.Nb(0,"mat-spinner",11)}function Qe(e,t){if(1&e){const e=d.Tb();d.Sb(0,"app-owners-list",12),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("owners",e.owners)("displayedColumns",e.displayedColumns)("selection",e.selection)}}let Xe=(()=>{class e{constructor(e,t,i,s,a){this.facilitiesManagerService=e,this.tableConfigService=t,this.route=i,this.dialog=s,this.authResolver=a,this.owners=[],this.selection=new B.c(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=P.y}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.filterValue="",this.route.parent.parent.params.subscribe(e=>{this.facilityId=parseInt(e.facilityId,10),this.facility={id:this.facilityId,beanName:"Facility"},this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facilityId).subscribe(e=>{this.owners=e,this.setAuthRights(),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=Object(b.o)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facilityId,forbiddenOwners:this.owners.map(e=>e.id)},this.dialog.open(Pe.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onRemove(){const e=Object(b.o)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facilityId},this.dialog.open(Ge.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(o.g),d.Mb(P.pb),d.Mb(a.a),d.Mb(f.b),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-settings-owners"]],decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["class","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",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page"]],template:function(e,t){1&e&&(d.Sb(0,"h1",0),d.Jc(1),d.ec(2,"translate"),d.Rb(),d.Hc(3,Je,1,0,"perun-web-apps-refresh-button",1),d.Hc(4,je,3,3,"button",2),d.Hc(5,We,3,4,"button",3),d.Hc(6,Ke,1,1,"perun-web-apps-immediate-filter",4),d.Hc(7,$e,1,0,"mat-spinner",5),d.Hc(8,Qe,1,5,"app-owners-list",6)),2&e&&(d.Ab(1),d.Kc(d.fc(2,7,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),d.Ab(2),d.kc("ngIf",!t.loading),d.Ab(1),d.kc("ngIf",!t.loading&&t.addAuth),d.Ab(1),d.kc("ngIf",!t.loading&&t.removeAuth),d.Ab(1),d.kc("ngIf",!t.loading),d.Ab(1),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading))},directives:[s.t,J.a,y.b,j.a,g.c,Ze.a],pipes:[T.d],styles:[""]}),e})();var qe=i("dnAU"),et=i("vUrr"),tt=i("gdiH");function it(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",7),d.Zb("click",(function(){return d.xc(e),d.dc().addHost()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}2&e&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function st(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",8),d.Zb("click",(function(){return d.xc(e),d.dc().removeHost()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&e){const e=d.dc();d.kc("disabled",0===e.selected.selected.length),d.Ab(1),d.Lc(" ",d.fc(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function at(e,t){1&e&&d.Nb(0,"mat-spinner",9)}function ct(e,t){if(1&e){const e=d.Tb();d.Sb(0,"app-hosts-list",10),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("disableRouting",!e.routeAuth)("facilityId",e.facilityId)}}let nt=(()=>{class e{constructor(e,t,i,s,a){this.dialog=e,this.facilitiesManager=t,this.tableConfigService=i,this.route=s,this.authResolver=a,this.hosts=[],this.selected=new B.c(!0,[]),this.filterValue="",this.tableId=P.x,this.displayedColumns=["id","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.facilityId=e.facilityId,this.facilitiesManager.getFacilityById(this.facilityId).subscribe(e=>{this.facility=e,this.refreshTable()})})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facilityId).subscribe(e=>{this.hosts=e,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=Object(b.o)();e.width="600px",e.data={facilityId:this.facility.id,facilityName:this.facility.name,theme:"facility-theme"},this.dialog.open(qe.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}removeHost(){const e=Object(b.o)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(et.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(f.b),d.Mb(o.g),d.Mb(P.pb),d.Mb(a.a),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-hosts"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"perun-web-apps-refresh-button",1),d.Zb("refresh",(function(){return t.refreshTable()})),d.Rb(),d.Hc(5,it,3,3,"button",2),d.Hc(6,st,3,4,"button",3),d.Sb(7,"perun-web-apps-immediate-filter",4),d.Zb("filter",(function(e){return t.applyFilter(e)})),d.Rb(),d.Hc(8,at,1,0,"mat-spinner",5),d.Hc(9,ct,1,7,"app-hosts-list",6),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),d.Ab(3),d.kc("ngIf",!t.loading&&t.addAuth),d.Ab(1),d.kc("ngIf",!t.loading&&t.removeAuth),d.Ab(1),d.kc("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),d.Ab(1),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading))},directives:[J.a,s.t,j.a,y.b,g.c,tt.a],pipes:[T.d],styles:[""]}),e})();var lt=i("77So");function rt(e,t){1&e&&d.Nb(0,"mat-spinner",5)}function ot(e,t){if(1&e){const e=d.Tb();d.Sb(0,"app-perun-web-apps-blacklist-list",6),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("selection",e.selected)}}let bt=(()=>{class e{constructor(e,t,i,s){this.facilitiesManager=e,this.usersManager=t,this.tableConfigService=i,this.route=s,this.bansOnFacilitiesWithUsers=[],this.selected=new B.c(!0,[]),this.filterValue="",this.tableId=P.w}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.facilitiesManager.getBansForFacility(e.facilityId).subscribe(e=>{const t=e;for(const i of t){let e;this.usersManager.getUserById(i.userId).subscribe(t=>{e=t}),this.bansOnFacilitiesWithUsers.push([i,e])}this.selected.clear(),this.loading=!1})})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(o.g),d.Mb(o.p),d.Mb(P.pb),d.Mb(a.a))},e.\u0275cmp=d.Gb({type:e,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,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"perun-web-apps-refresh-button",1),d.Zb("refresh",(function(){return t.refreshTable()})),d.Rb(),d.Sb(5,"perun-web-apps-immediate-filter",2),d.Zb("filter",(function(e){return t.applyFilter(e)})),d.ec(6,"translate"),d.Rb(),d.Hc(7,rt,1,0,"mat-spinner",3),d.Hc(8,ot,1,4,"app-perun-web-apps-blacklist-list",4),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),d.Ab(3),d.kc("placeholder",d.fc(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),d.Ab(2),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading))},directives:[J.a,j.a,s.t,g.c,lt.a],pipes:[T.d],styles:[""]}),e})();const ut=["list"];function ht(e,t){if(1&e){const e=d.Tb();d.Sb(0,"perun-web-apps-attributes-list",6,7),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("attributes",e.attributes)("selection",e.selected)}}let dt=(()=>{class e{constructor(e,t,i,s,a){this.dialog=e,this.attributesManager=t,this.facilityManager=i,this.tableConfigService=s,this.route=a,this.attributes=[],this.selected=new B.c(!0,[]),this.host={beanName:"",id:0},this.tableId=P.r}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(e=>{this.hostId=e.hostId,this.facilityManager.getHostById(this.hostId).subscribe(e=>{this.host=e}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=Object(b.j)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=Object(b.o)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(h.f,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}addAttribute(){const e=Object(b.o)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(G.a,e).afterClosed().subscribe(e=>{"saved"===e&&this.refreshTable()})}removeAttribute(){const e=Object(b.o)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(x.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(f.b),d.Mb(o.c),d.Mb(o.g),d.Mb(P.pb),d.Mb(a.a))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,t){var i;1&e&&d.Qc(ut,!0),2&e&&d.sc(i=d.ac())&&(t.list=i.first)},decls:15,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"perun-web-apps-refresh-button",1),d.Zb("refresh",(function(){return t.refreshTable()})),d.Rb(),d.Sb(5,"button",2),d.Zb("click",(function(){return t.addAttribute()})),d.Jc(6),d.ec(7,"translate"),d.Rb(),d.Sb(8,"button",3),d.Zb("click",(function(){return t.onSave()})),d.Jc(9),d.ec(10,"translate"),d.Rb(),d.Sb(11,"button",4),d.Zb("click",(function(){return t.removeAttribute()})),d.Jc(12),d.ec(13,"translate"),d.Rb(),d.Hc(14,ht,2,3,"perun-web-apps-attributes-list",5),d.Rb()),2&e&&(d.Ab(2),d.Mc(" ",d.fc(3,8,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",t.host.hostname,""),d.Ab(4),d.Lc(" ",d.fc(7,10,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),d.Ab(2),d.kc("disabled",0===t.selected.selected.length),d.Ab(1),d.Lc(" ",d.fc(10,12,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),d.Ab(2),d.kc("disabled",0===t.selected.selected.length),d.Ab(1),d.Lc(" ",d.fc(13,14,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),d.Ab(2),d.kc("ngIf",!t.loading))},directives:[J.a,y.b,s.t,W.a],pipes:[T.d],styles:[""]}),e})();var ft=i("iT3j");function pt(e,t){1&e&&d.Nb(0,"mat-spinner",5)}function gt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"app-security-teams-list",6),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("displayedColumns",e.displayedColumns)("selection",e.selected)}}let mt=(()=>{class e{constructor(e,t,i,s,a){this.dialog=e,this.facilitiesManager=t,this.tableConfigService=i,this.route=s,this.authResolver=a,this.securityTeams=[],this.selected=new B.c(!0,[]),this.filterValue="",this.tableId=P.A,this.displayedColumns=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.facilitiesManager.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e,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}addSecurityTeam(){}removeSecurityTeam(){}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(f.b),d.Mb(o.g),d.Mb(P.pb),d.Mb(a.a),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,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,"pageSize","filterValue","securityTeams","displayedColumns","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","securityTeams","displayedColumns","selection","page"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"perun-web-apps-refresh-button",1),d.Zb("refresh",(function(){return t.refreshTable()})),d.Rb(),d.Sb(5,"perun-web-apps-immediate-filter",2),d.Zb("filter",(function(e){return t.applyFilter(e)})),d.Rb(),d.Hc(6,pt,1,0,"mat-spinner",3),d.Hc(7,gt,1,5,"app-security-teams-list",4),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),d.Ab(3),d.kc("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),d.Ab(1),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading))},directives:[J.a,j.a,s.t,g.c,ft.a],pipes:[T.d],styles:[""]}),e})();var It=i("Fm3m"),St=i("TNye"),yt=i("CIWc"),Tt=i("RCwe"),At=i("NMas"),vt=i("Jb3d"),Et=i("WLDY");function Rt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",11),d.Zb("click",(function(){return d.xc(e),d.dc().forcePropagation()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&e){const e=d.dc();d.kc("disabled",0===e.selected.selected.length),d.Ab(1),d.Lc(" ",d.fc(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ct(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",11),d.Zb("click",(function(){return d.xc(e),d.dc().allow()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&e){const e=d.dc();d.kc("disabled",0===e.selected.selected.length||e.disableAllowButton),d.Ab(1),d.Lc(" ",d.fc(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Lt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",12),d.Zb("click",(function(){return d.xc(e),d.dc().block()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&e){const e=d.dc();d.kc("disabled",0===e.selected.selected.length||e.disableBlockButton),d.Ab(1),d.Lc(" ",d.fc(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function kt(e,t){if(1&e&&(d.Sb(0,"button",13),d.ec(1,"translate"),d.Jc(2),d.ec(3,"translate"),d.Rb()),2&e){const e=d.dc(),t=d.tc(10);d.lc("matTooltip",d.fc(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),d.kc("matTooltipDisabled",!e.disableRemoveButton)("disabled",e.disableRemoveButton)("matMenuTriggerFor",t),d.Ab(2),d.Lc(" ",d.fc(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Ft(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",7),d.Zb("click",(function(){return d.xc(e),d.dc().removeTaskResults()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}2&e&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function _t(e,t){1&e&&d.Nb(0,"mat-spinner",14)}function Mt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"perun-web-apps-services-status-list",15),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)}))("selectionChange",(function(){return d.xc(e),d.dc().selectionChanged()})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("disableRouting",!e.routeAuth)}}let wt=(()=>{class e{constructor(e,t,i,s,a,c,n,l,r,o){this.route=e,this.tasksManager=t,this.tableConfigService=i,this.servicesManager=s,this.notificator=a,this.translate=c,this.authResolver=n,this.facilityManager=l,this.resourcesManager=r,this.dialog=o,this.servicesStates=[],this.selected=new B.c(!0,[]),this.filterValue="",this.tableId=P.D,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,c.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(e=>this.successFPMessage=e),c.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(e=>this.successAllowMessage=e),c.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(e=>this.successBlockMessage=e),c.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(e=>this.successDeleteMessage=e),c.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(e=>this.allreadyDeletedMessage=e)}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.facilityId=parseInt(e.facilityId,10),this.facility={id:this.facilityId,beanName:"Facility"},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 t=Object(b.o)();t.width="600px",t.data={theme:"facility-theme",taskResults:e},this.dialog.open(yt.a,t)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const t=Object(b.o)();t.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(t.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(At.a,t).afterClosed().subscribe(e=>{e&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(e=>e.id)).subscribe(e=>{t.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:e},this.dialog.open(Tt.a,t).afterClosed().subscribe(e=>{e&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facilityId).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}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}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 e.\u0275fac=function(t){return new(t||e)(d.Mb(a.a),d.Mb(o.o),d.Mb(P.pb),d.Mb(o.n),d.Mb(u.l),d.Mb(T.e),d.Mb(u.h),d.Mb(o.g),d.Mb(o.m),d.Mb(f.b))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"perun-web-apps-refresh-button",1),d.Zb("refresh",(function(){return t.refreshTable()})),d.Rb(),d.Hc(5,Rt,3,4,"button",2),d.Hc(6,Ct,3,4,"button",2),d.Hc(7,Lt,3,4,"button",3),d.Hc(8,kt,4,9,"button",4),d.Sb(9,"mat-menu",null,5),d.Hc(11,Ft,3,3,"button",6),d.Sb(12,"button",7),d.Zb("click",(function(){return t.removeServiceFromFacility()})),d.Jc(13),d.ec(14,"translate"),d.Rb(),d.Rb(),d.Sb(15,"perun-web-apps-immediate-filter",8),d.Zb("filter",(function(e){return t.applyFilter(e)})),d.Rb(),d.Hc(16,_t,1,0,"mat-spinner",9),d.Hc(17,Mt,1,5,"perun-web-apps-services-status-list",10),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),d.Ab(3),d.kc("ngIf",!t.loading&&t.propagationAuth),d.Ab(1),d.kc("ngIf",!t.loading&&t.allowAuth),d.Ab(1),d.kc("ngIf",!t.loading&&t.blockAuth),d.Ab(1),d.kc("ngIf",!t.loading&&t.deleteAuth),d.Ab(3),d.kc("ngIf",!t.taskIsNull),d.Ab(2),d.Kc(d.fc(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")),d.Ab(2),d.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),d.Ab(1),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading))},directives:[J.a,s.t,vt.e,vt.b,j.a,y.b,I.a,vt.d,g.c,Et.a],pipes:[T.d],styles:[""]}),e})();var Ot=i("FcRk"),Dt=i("NC8S");function zt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"perun-web-apps-refresh-button",6),d.Zb("refresh",(function(){return d.xc(e),d.dc().refreshTable()})),d.Rb()}}function Nt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"perun-web-apps-immediate-filter",7),d.Zb("filter",(function(t){return d.xc(e),d.dc().applyFilter(t)})),d.Rb()}2&e&&d.kc("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER")}function Vt(e,t){1&e&&d.Nb(0,"mat-spinner",8)}function Ht(e,t){1&e&&(d.Sb(0,"app-alert",9),d.Jc(1),d.ec(2,"translate"),d.Rb()),2&e&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"FACILITY_DETAIL.ALLOWED_USERS.NO_USERS")," "))}const Yt=function(){return["id","name"]};function Ut(e,t){if(1&e){const e=d.Tb();d.Sb(0,"app-users-list",10),d.Zb("page",(function(t){return d.xc(e),d.dc().pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc();d.kc("pageSize",e.pageSize)("users",e.users)("displayedColumns",d.oc(5,Yt))("disableRouting",!e.routeAuth)("filter",e.filterValue)}}let Bt=(()=>{class e{constructor(e,t,i,s){this.route=e,this.facilityService=t,this.tableConfigService=i,this.authResolver=s,this.loading=!1,this.filterValue="",this.tableId=P.v}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.facilityId=e.facilityId,this.routeAuth=this.authResolver.isPerunAdmin(),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityService.getAssignedUsers(this.facilityId).subscribe(e=>{this.users=e,this.loading=!1})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(a.a),d.Mb(o.g),d.Mb(P.pb),d.Mb(u.h))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-allowed-users"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page"]],template:function(e,t){1&e&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Hc(4,zt,1,0,"perun-web-apps-refresh-button",1),d.Hc(5,Nt,1,1,"perun-web-apps-immediate-filter",2),d.Hc(6,Vt,1,0,"mat-spinner",3),d.Hc(7,Ht,3,3,"app-alert",4),d.Hc(8,Ut,1,6,"app-users-list",5),d.Rb()),2&e&&(d.Ab(2),d.Kc(d.fc(3,6,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),d.Ab(2),d.kc("ngIf",!t.loading),d.Ab(1),d.kc("ngIf",!t.loading),d.Ab(1),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!t.loading&&(void 0===t.users||0===t.users.length)),d.Ab(1),d.kc("ngIf",!t.loading&&0!==t.users.length))},directives:[s.t,J.a,j.a,g.c,Ot.a,Dt.a],pipes:[T.d],styles:[""]}),e})();var xt=i("lfUW"),Pt=i("COMt");function Gt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"button",8),d.Zb("click",(function(){return d.xc(e),d.dc(2).removeTaskResult()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&e){const e=d.dc(2);d.kc("disabled",0===e.selection.selected.length),d.Ab(1),d.Lc(" ",d.fc(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE")," ")}}function Zt(e,t){1&e&&d.Nb(0,"mat-spinner",9)}function Jt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"perun-web-apps-task-results-list",10),d.Zb("page",(function(t){return d.xc(e),d.dc(2).pageChanged(t)})),d.Rb()}if(2&e){const e=d.dc(2);d.kc("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("pageSize",e.pageSize)("selection",e.selection)("taskResults",e.taskResults)}}function jt(e,t){if(1&e){const e=d.Tb();d.Sb(0,"div"),d.Sb(1,"h1",1),d.Jc(2),d.ec(3,"translate"),d.Sb(4,"span",2),d.Jc(5),d.Rb(),d.Rb(),d.Sb(6,"perun-web-apps-refresh-button",3),d.Zb("refresh",(function(){return d.xc(e),d.dc().refreshTable()})),d.Rb(),d.Hc(7,Gt,3,4,"button",4),d.Sb(8,"perun-web-apps-immediate-filter",5),d.Zb("filter",(function(t){return d.xc(e),d.dc().applyFilter(t)})),d.Rb(),d.Hc(9,Zt,1,0,"mat-spinner",6),d.Hc(10,Jt,1,5,"perun-web-apps-task-results-list",7),d.Rb()}if(2&e){const e=d.dc();d.Ab(2),d.Mc("",d.fc(3,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",e.task.service.name," "),d.Ab(3),d.Lc(" \xa0#",e.task.id," "),d.Ab(2),d.kc("ngIf",!e.loading&&e.removeAuth),d.Ab(1),d.kc("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),d.Ab(1),d.kc("ngIf",e.loading),d.Ab(1),d.kc("ngIf",!e.loading)}}const Wt=[{path:"",component:c.a},{path:":facilityId",component:L,children:[{path:"",component:M,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:ae,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:w.a,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:Bt,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:O.a,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:wt,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:(()=>{class e{constructor(e,t,i,s,a){this.route=e,this.tableConfigService=t,this.taskManager=i,this.authResolver=s,this.dialog=a,this.loading=!1,this.filterValue="",this.selection=new B.c(!0,[]),this.tableId=P.Y,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.facility={id:parseInt(e.facilityId,10),beanName:"Facility"},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=e.taskId,this.taskManager.getTaskById(this.taskId).subscribe(e=>{this.task=e,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=Object(b.o)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(yt.a,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Mb(a.a),d.Mb(P.pb),d.Mb(o.o),d.Mb(u.h),d.Mb(f.b))},e.\u0275cmp=d.Gb({type:e,selectors:[["app-facility-task-results"]],decls:1,vars:1,consts:[[4,"ngIf"],[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,"displayedColumns","filterValue","pageSize","selection","taskResults","page",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","pageSize","selection","taskResults","page"]],template:function(e,t){1&e&&d.Hc(0,jt,11,9,"div",0),2&e&&d.kc("ngIf",!t.loading)},directives:[s.t,J.a,j.a,y.b,g.c,Pt.a],pipes:[T.d],styles:[""]}),e})(),data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:Fe,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:xe,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:nt,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:dt,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:N,children:[{path:"",component:Y,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:Xe,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:we,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:mt,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:bt,data:{animation:"FacilitySettingsBlackListPage"}}]}]},{path:":facilityId/resources/:resourceId",component:D.a,children:[{path:"",component:z.a,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:le.a,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:re.a,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:St.a,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:xt.a,data:{animation:"ResourceAssignedMembersComponent"}},{path:"settings",component:ce.a,children:[{path:"",component:ne.a,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:It.a,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Kt=(()=>{class e{}return e.\u0275mod=d.Kb({type:e}),e.\u0275inj=d.Jb({factory:function(t){return new(t||e)},imports:[[a.j.forChild(Wt)],a.j]}),e})();var $t=i("PCNd"),Qt=i("KoHB"),Xt=i("zrcO");let qt=(()=>{class e{}return e.\u0275mod=d.Kb({type:e}),e.\u0275inj=d.Jb({factory:function(t){return new(t||e)},providers:[he.c],imports:[[s.c,Kt,$t.a,Qt.a,U.d,he.b,Xt.UsersModule]]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/8-es5.09a37e5fab2b78aabfad.js b/dist/apps/admin-gui/8-es5.09a37e5fab2b78aabfad.js new file mode 100644 index 000000000..da377729c --- /dev/null +++ b/dist/apps/admin-gui/8-es5.09a37e5fab2b78aabfad.js @@ -0,0 +1 @@ +!function(){function e(e,i){var a;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=function(e,i){if(!e)return;if("string"==typeof e)return t(e,i);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(e,i)}(e))||i&&e&&"number"==typeof e.length){a&&(e=a);var s=0,n=function(){};return{s:n,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,r=!0,l=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return r=e.done,e},e:function(e){l=!0,c=e},f:function(){try{r||null==a.return||a.return()}finally{if(l)throw c}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i_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]]))}},{key:"addHost",value:function(){var e=this,t=Object(d.o)();t.width="600px",t.data={facilityId:this.facility.id,facilityName:this.facility.name,theme:"facility-theme"},this.dialog.open(bt.a,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"removeHost",value:function(){var e=this,t=Object(d.o)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ft.a,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}()).\u0275fac=function(e){return new(e||yt)(g.Mb(m.b),g.Mb(f.g),g.Mb($.pb),g.Mb(r.a),g.Mb(h.h))},yt.\u0275cmp=g.Gb({type:yt,selectors:[["app-facility-hosts"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page"]],template:function(e,t){1&e&&(g.Sb(0,"div"),g.Sb(1,"h1",0),g.Jc(2),g.ec(3,"translate"),g.Rb(),g.Sb(4,"perun-web-apps-refresh-button",1),g.Zb("refresh",(function(){return t.refreshTable()})),g.Rb(),g.Hc(5,ht,3,3,"button",2),g.Hc(6,pt,3,4,"button",3),g.Sb(7,"perun-web-apps-immediate-filter",4),g.Zb("filter",(function(e){return t.applyFilter(e)})),g.Rb(),g.Hc(8,gt,1,0,"mat-spinner",5),g.Hc(9,mt,1,7,"app-hosts-list",6),g.Rb()),2&e&&(g.Ab(2),g.Kc(g.fc(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),g.Ab(3),g.kc("ngIf",!t.loading&&t.addAuth),g.Ab(1),g.kc("ngIf",!t.loading&&t.removeAuth),g.Ab(1),g.kc("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),g.Ab(1),g.kc("ngIf",t.loading),g.Ab(1),g.kc("ngIf",!t.loading))},directives:[q.a,c.t,ee.a,A.b,I.c,dt.a],pipes:[k.d],styles:[""]}),yt),vt=n("77So");function St(e,t){1&e&&g.Nb(0,"mat-spinner",5)}function Tt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"app-perun-web-apps-blacklist-list",6),g.Zb("page",(function(e){return g.xc(i),g.dc().pageChanged(e)})),g.Rb()}if(2&e){var a=g.dc();g.kc("pageSize",a.pageSize)("filterValue",a.filterValue)("bansOnFacilitiesWithUsers",a.bansOnFacilitiesWithUsers)("selection",a.selected)}}var At,kt=((At=function(){function t(e,a,s,n){i(this,t),this.facilitiesManager=e,this.usersManager=a,this.tableConfigService=s,this.route=n,this.bansOnFacilitiesWithUsers=[],this.selected=new W.c(!0,[]),this.filterValue="",this.tableId=$.w}return s(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe((function(i){t.facilitiesManager.getBansForFacility(i.facilityId).subscribe((function(i){var a,s=e(i);try{for(s.s();!(a=s.n()).done;){var n=a.value,c=void 0;t.usersManager.getUserById(n.userId).subscribe((function(e){c=e})),t.bansOnFacilitiesWithUsers.push([n,c])}}catch(r){s.e(r)}finally{s.f()}t.selected.clear(),t.loading=!1}))}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),t}()).\u0275fac=function(e){return new(e||At)(g.Mb(f.g),g.Mb(f.p),g.Mb($.pb),g.Mb(r.a))},At.\u0275cmp=g.Gb({type:At,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,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page"]],template:function(e,t){1&e&&(g.Sb(0,"div"),g.Sb(1,"h1",0),g.Jc(2),g.ec(3,"translate"),g.Rb(),g.Sb(4,"perun-web-apps-refresh-button",1),g.Zb("refresh",(function(){return t.refreshTable()})),g.Rb(),g.Sb(5,"perun-web-apps-immediate-filter",2),g.Zb("filter",(function(e){return t.applyFilter(e)})),g.ec(6,"translate"),g.Rb(),g.Hc(7,St,1,0,"mat-spinner",3),g.Hc(8,Tt,1,4,"app-perun-web-apps-blacklist-list",4),g.Rb()),2&e&&(g.Ab(2),g.Kc(g.fc(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),g.Ab(3),g.kc("placeholder",g.fc(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),g.Ab(2),g.kc("ngIf",t.loading),g.Ab(1),g.kc("ngIf",!t.loading))},directives:[q.a,ee.a,c.t,I.c,vt.a],pipes:[k.d],styles:[""]}),At),Et=["list"];function Rt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"perun-web-apps-attributes-list",6,7),g.Zb("page",(function(e){return g.xc(i),g.dc().pageChanged(e)})),g.Rb()}if(2&e){var a=g.dc();g.kc("pageSize",a.pageSize)("attributes",a.attributes)("selection",a.selected)}}var Ct,Lt=((Ct=function(){function e(t,a,s,n,c){i(this,e),this.dialog=t,this.attributesManager=a,this.facilityManager=s,this.tableConfigService=n,this.route=c,this.attributes=[],this.selected=new W.c(!0,[]),this.host={beanName:"",id:0},this.tableId=$.r}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe((function(t){e.hostId=t.hostId,e.facilityManager.getHostById(e.hostId).subscribe((function(t){e.host=t})),e.refreshTable()}))}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe((function(t){e.attributes=Object(d.j)(t),e.selected.clear(),e.loading=!1}))}},{key:"onSave",value:function(){var e=this;this.list.updateMapAttributes();var t=Object(d.o)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(p.f,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"addAttribute",value:function(){var e=this,t=Object(d.o)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Q.a,t).afterClosed().subscribe((function(t){"saved"===t&&e.refreshTable()}))}},{key:"removeAttribute",value:function(){var e=this,t=Object(d.o)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(K.a,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}()).\u0275fac=function(e){return new(e||Ct)(g.Mb(m.b),g.Mb(f.c),g.Mb(f.g),g.Mb($.pb),g.Mb(r.a))},Ct.\u0275cmp=g.Gb({type:Ct,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,t){var i;1&e&&g.Qc(Et,!0),2&e&&g.sc(i=g.ac())&&(t.list=i.first)},decls:15,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(e,t){1&e&&(g.Sb(0,"div"),g.Sb(1,"h1",0),g.Jc(2),g.ec(3,"translate"),g.Rb(),g.Sb(4,"perun-web-apps-refresh-button",1),g.Zb("refresh",(function(){return t.refreshTable()})),g.Rb(),g.Sb(5,"button",2),g.Zb("click",(function(){return t.addAttribute()})),g.Jc(6),g.ec(7,"translate"),g.Rb(),g.Sb(8,"button",3),g.Zb("click",(function(){return t.onSave()})),g.Jc(9),g.ec(10,"translate"),g.Rb(),g.Sb(11,"button",4),g.Zb("click",(function(){return t.removeAttribute()})),g.Jc(12),g.ec(13,"translate"),g.Rb(),g.Hc(14,Rt,2,3,"perun-web-apps-attributes-list",5),g.Rb()),2&e&&(g.Ab(2),g.Mc(" ",g.fc(3,8,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",t.host.hostname,""),g.Ab(4),g.Lc(" ",g.fc(7,10,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),g.Ab(2),g.kc("disabled",0===t.selected.selected.length),g.Ab(1),g.Lc(" ",g.fc(10,12,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),g.Ab(2),g.kc("disabled",0===t.selected.selected.length),g.Ab(1),g.Lc(" ",g.fc(13,14,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),g.Ab(2),g.kc("ngIf",!t.loading))},directives:[q.a,A.b,c.t,te.a],pipes:[k.d],styles:[""]}),Ct),Ft=n("iT3j");function _t(e,t){1&e&&g.Nb(0,"mat-spinner",5)}function Mt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"app-security-teams-list",6),g.Zb("page",(function(e){return g.xc(i),g.dc().pageChanged(e)})),g.Rb()}if(2&e){var a=g.dc();g.kc("pageSize",a.pageSize)("filterValue",a.filterValue)("securityTeams",a.securityTeams)("displayedColumns",a.displayedColumns)("selection",a.selected)}}var wt,Ot=((wt=function(){function e(t,a,s,n,c){i(this,e),this.dialog=t,this.facilitiesManager=a,this.tableConfigService=s,this.route=n,this.authResolver=c,this.securityTeams=[],this.selected=new W.c(!0,[]),this.filterValue="",this.tableId=$.A,this.displayedColumns=[]}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(t){e.facilitiesManager.getFacilityById(t.facilityId).subscribe((function(t){e.facility=t,e.refreshTable()}))}))}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe((function(t){e.securityTeams=t,e.selected.clear(),e.setAuthRights(),e.loading=!1}))}},{key:"setAuthRights",value:function(){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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"addSecurityTeam",value:function(){}},{key:"removeSecurityTeam",value:function(){}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}()).\u0275fac=function(e){return new(e||wt)(g.Mb(m.b),g.Mb(f.g),g.Mb($.pb),g.Mb(r.a),g.Mb(h.h))},wt.\u0275cmp=g.Gb({type:wt,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,"pageSize","filterValue","securityTeams","displayedColumns","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","securityTeams","displayedColumns","selection","page"]],template:function(e,t){1&e&&(g.Sb(0,"div"),g.Sb(1,"h1",0),g.Jc(2),g.ec(3,"translate"),g.Rb(),g.Sb(4,"perun-web-apps-refresh-button",1),g.Zb("refresh",(function(){return t.refreshTable()})),g.Rb(),g.Sb(5,"perun-web-apps-immediate-filter",2),g.Zb("filter",(function(e){return t.applyFilter(e)})),g.Rb(),g.Hc(6,_t,1,0,"mat-spinner",3),g.Hc(7,Mt,1,5,"app-security-teams-list",4),g.Rb()),2&e&&(g.Ab(2),g.Kc(g.fc(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),g.Ab(3),g.kc("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),g.Ab(1),g.kc("ngIf",t.loading),g.Ab(1),g.kc("ngIf",!t.loading))},directives:[q.a,ee.a,c.t,I.c,Ft.a],pipes:[k.d],styles:[""]}),wt),Dt=n("Fm3m"),zt=n("TNye"),Nt=n("CIWc"),Vt=n("RCwe"),Ht=n("NMas"),Yt=n("Jb3d"),Ut=n("WLDY");function Bt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"button",11),g.Zb("click",(function(){return g.xc(i),g.dc().forcePropagation()})),g.Jc(1),g.ec(2,"translate"),g.Rb()}if(2&e){var a=g.dc();g.kc("disabled",0===a.selected.selected.length),g.Ab(1),g.Lc(" ",g.fc(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function xt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"button",11),g.Zb("click",(function(){return g.xc(i),g.dc().allow()})),g.Jc(1),g.ec(2,"translate"),g.Rb()}if(2&e){var a=g.dc();g.kc("disabled",0===a.selected.selected.length||a.disableAllowButton),g.Ab(1),g.Lc(" ",g.fc(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Pt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"button",12),g.Zb("click",(function(){return g.xc(i),g.dc().block()})),g.Jc(1),g.ec(2,"translate"),g.Rb()}if(2&e){var a=g.dc();g.kc("disabled",0===a.selected.selected.length||a.disableBlockButton),g.Ab(1),g.Lc(" ",g.fc(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Gt(e,t){if(1&e&&(g.Sb(0,"button",13),g.ec(1,"translate"),g.Jc(2),g.ec(3,"translate"),g.Rb()),2&e){var i=g.dc(),a=g.tc(10);g.lc("matTooltip",g.fc(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),g.kc("matTooltipDisabled",!i.disableRemoveButton)("disabled",i.disableRemoveButton)("matMenuTriggerFor",a),g.Ab(2),g.Lc(" ",g.fc(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Zt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"button",7),g.Zb("click",(function(){return g.xc(i),g.dc().removeTaskResults()})),g.Jc(1),g.ec(2,"translate"),g.Rb()}2&e&&(g.Ab(1),g.Lc(" ",g.fc(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Jt(e,t){1&e&&g.Nb(0,"mat-spinner",14)}function jt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"perun-web-apps-services-status-list",15),g.Zb("page",(function(e){return g.xc(i),g.dc().pageChanged(e)}))("selectionChange",(function(){return g.xc(i),g.dc().selectionChanged()})),g.Rb()}if(2&e){var a=g.dc();g.kc("pageSize",a.pageSize)("filterValue",a.filterValue)("servicesStatus",a.servicesStates)("selection",a.selected)("disableRouting",!a.routeAuth)}}var Wt,Kt=((Wt=function(){function t(e,a,s,n,c,r,l,o,u,b){var f=this;i(this,t),this.route=e,this.tasksManager=a,this.tableConfigService=s,this.servicesManager=n,this.notificator=c,this.translate=r,this.authResolver=l,this.facilityManager=o,this.resourcesManager=u,this.dialog=b,this.servicesStates=[],this.selected=new W.c(!0,[]),this.filterValue="",this.tableId=$.D,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe((function(e){return f.successFPMessage=e})),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe((function(e){return f.successAllowMessage=e})),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe((function(e){return f.successBlockMessage=e})),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe((function(e){return f.successDeleteMessage=e})),r.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe((function(e){return f.allreadyDeletedMessage=e}))}return s(t,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(t){e.facilityId=parseInt(t.facilityId,10),e.facility={id:e.facilityId,beanName:"Facility"},e.refreshTable()}))}},{key:"forcePropagation",value:function(){var t,i=this,a=e(this.selected.selected);try{for(a.s();!(t=a.n()).done;){var s=t.value;this.servicesManager.forceServicePropagation(s.service.id,s.facility.id).subscribe((function(){i.refreshTable(),i.notificator.showSuccess(i.successFPMessage)}))}}catch(n){a.e(n)}finally{a.f()}}},{key:"allow",value:function(){var t,i=this,a=e(this.selected.selected);try{for(a.s();!(t=a.n()).done;){var s=t.value;this.servicesManager.unblockServiceOnFacility(s.service.id,s.facility.id).subscribe((function(){i.refreshTable(),i.notificator.showSuccess(i.successAllowMessage)}))}}catch(n){a.e(n)}finally{a.f()}}},{key:"block",value:function(){var t,i=this,a=e(this.selected.selected);try{for(a.s();!(t=a.n()).done;){var s=t.value;this.servicesManager.blockServiceOnFacility(s.service.id,s.facility.id).subscribe((function(){i.refreshTable(),i.notificator.showSuccess(i.successBlockMessage)}))}}catch(n){a.e(n)}finally{a.f()}}},{key:"removeTaskResults",value:function(){var e=this;this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe((function(t){var i=Object(d.o)();i.width="600px",i.data={theme:"facility-theme",taskResults:t},e.dialog.open(Nt.a,i)}))}},{key:"removeServiceFromFacility",value:function(){var e=this;this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe((function(t){var i=Object(d.o)();i.width="600px",e.taskId=e.taskIsNull?null:e.selected.selected[0].task.id,0===t.length?(i.data={theme:"facility-theme",taskId:e.taskId},e.dialog.open(Ht.a,i).afterClosed().subscribe((function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())}))):e.resourcesManager.getRichResourcesByIds(t.map((function(e){return e.id}))).subscribe((function(t){i.data={theme:"facility-theme",taskId:e.taskId,serviceId:e.selected.selected[0].service.id,facilityId:e.selected.selected[0].facility.id,resource:t},e.dialog.open(Vt.a,i).afterClosed().subscribe((function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())}))}))}))}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.tasksManager.getFacilityServicesState(this.facilityId).subscribe((function(t){e.servicesStates=t,e.selected.clear(),e.setAuthRights(),e.loading=!1}))}},{key:"setAuthRights",value:function(){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])}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"selectionChanged",value:function(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);var t,i=e(this.selected.selected);try{for(i.s();!(t=i.n()).done;)t.value.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}catch(a){i.e(a)}finally{i.f()}}}]),t}()).\u0275fac=function(e){return new(e||Wt)(g.Mb(r.a),g.Mb(f.o),g.Mb($.pb),g.Mb(f.n),g.Mb(h.l),g.Mb(k.e),g.Mb(h.h),g.Mb(f.g),g.Mb(f.m),g.Mb(m.b))},Wt.\u0275cmp=g.Gb({type:Wt,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange"]],template:function(e,t){1&e&&(g.Sb(0,"div"),g.Sb(1,"h1",0),g.Jc(2),g.ec(3,"translate"),g.Rb(),g.Sb(4,"perun-web-apps-refresh-button",1),g.Zb("refresh",(function(){return t.refreshTable()})),g.Rb(),g.Hc(5,Bt,3,4,"button",2),g.Hc(6,xt,3,4,"button",2),g.Hc(7,Pt,3,4,"button",3),g.Hc(8,Gt,4,9,"button",4),g.Sb(9,"mat-menu",null,5),g.Hc(11,Zt,3,3,"button",6),g.Sb(12,"button",7),g.Zb("click",(function(){return t.removeServiceFromFacility()})),g.Jc(13),g.ec(14,"translate"),g.Rb(),g.Rb(),g.Sb(15,"perun-web-apps-immediate-filter",8),g.Zb("filter",(function(e){return t.applyFilter(e)})),g.Rb(),g.Hc(16,Jt,1,0,"mat-spinner",9),g.Hc(17,jt,1,5,"perun-web-apps-services-status-list",10),g.Rb()),2&e&&(g.Ab(2),g.Kc(g.fc(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),g.Ab(3),g.kc("ngIf",!t.loading&&t.propagationAuth),g.Ab(1),g.kc("ngIf",!t.loading&&t.allowAuth),g.Ab(1),g.kc("ngIf",!t.loading&&t.blockAuth),g.Ab(1),g.kc("ngIf",!t.loading&&t.deleteAuth),g.Ab(3),g.kc("ngIf",!t.taskIsNull),g.Ab(2),g.Kc(g.fc(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")),g.Ab(2),g.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),g.Ab(1),g.kc("ngIf",t.loading),g.Ab(1),g.kc("ngIf",!t.loading))},directives:[q.a,c.t,Yt.e,Yt.b,ee.a,A.b,S.a,Yt.d,I.c,Ut.a],pipes:[k.d],styles:[""]}),Wt),$t=n("FcRk"),Qt=n("NC8S");function Xt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"perun-web-apps-refresh-button",6),g.Zb("refresh",(function(){return g.xc(i),g.dc().refreshTable()})),g.Rb()}}function qt(e,t){if(1&e){var i=g.Tb();g.Sb(0,"perun-web-apps-immediate-filter",7),g.Zb("filter",(function(e){return g.xc(i),g.dc().applyFilter(e)})),g.Rb()}2&e&&g.kc("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER")}function ei(e,t){1&e&&g.Nb(0,"mat-spinner",8)}function ti(e,t){1&e&&(g.Sb(0,"app-alert",9),g.Jc(1),g.ec(2,"translate"),g.Rb()),2&e&&(g.Ab(1),g.Lc(" ",g.fc(2,1,"FACILITY_DETAIL.ALLOWED_USERS.NO_USERS")," "))}var ii=function(){return["id","name"]};function ai(e,t){if(1&e){var i=g.Tb();g.Sb(0,"app-users-list",10),g.Zb("page",(function(e){return g.xc(i),g.dc().pageChanged(e)})),g.Rb()}if(2&e){var a=g.dc();g.kc("pageSize",a.pageSize)("users",a.users)("displayedColumns",g.oc(5,ii))("disableRouting",!a.routeAuth)("filter",a.filterValue)}}var si,ni=((si=function(){function e(t,a,s,n){i(this,e),this.route=t,this.facilityService=a,this.tableConfigService=s,this.authResolver=n,this.loading=!1,this.filterValue="",this.tableId=$.v}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(t){e.facilityId=t.facilityId,e.routeAuth=e.authResolver.isPerunAdmin(),e.refreshTable()}))}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilityService.getAssignedUsers(this.facilityId).subscribe((function(t){e.users=t,e.loading=!1}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}()).\u0275fac=function(e){return new(e||si)(g.Mb(r.a),g.Mb(f.g),g.Mb($.pb),g.Mb(h.h))},si.\u0275cmp=g.Gb({type:si,selectors:[["app-facility-allowed-users"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page"]],template:function(e,t){1&e&&(g.Sb(0,"div"),g.Sb(1,"h1",0),g.Jc(2),g.ec(3,"translate"),g.Rb(),g.Hc(4,Xt,1,0,"perun-web-apps-refresh-button",1),g.Hc(5,qt,1,1,"perun-web-apps-immediate-filter",2),g.Hc(6,ei,1,0,"mat-spinner",3),g.Hc(7,ti,3,3,"app-alert",4),g.Hc(8,ai,1,6,"app-users-list",5),g.Rb()),2&e&&(g.Ab(2),g.Kc(g.fc(3,6,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),g.Ab(2),g.kc("ngIf",!t.loading),g.Ab(1),g.kc("ngIf",!t.loading),g.Ab(1),g.kc("ngIf",t.loading),g.Ab(1),g.kc("ngIf",!t.loading&&(void 0===t.users||0===t.users.length)),g.Ab(1),g.kc("ngIf",!t.loading&&0!==t.users.length))},directives:[c.t,q.a,ee.a,I.c,$t.a,Qt.a],pipes:[k.d],styles:[""]}),si),ci=n("lfUW"),ri=n("COMt");function li(e,t){if(1&e){var i=g.Tb();g.Sb(0,"button",8),g.Zb("click",(function(){return g.xc(i),g.dc(2).removeTaskResult()})),g.Jc(1),g.ec(2,"translate"),g.Rb()}if(2&e){var a=g.dc(2);g.kc("disabled",0===a.selection.selected.length),g.Ab(1),g.Lc(" ",g.fc(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE")," ")}}function oi(e,t){1&e&&g.Nb(0,"mat-spinner",9)}function ui(e,t){if(1&e){var i=g.Tb();g.Sb(0,"perun-web-apps-task-results-list",10),g.Zb("page",(function(e){return g.xc(i),g.dc(2).pageChanged(e)})),g.Rb()}if(2&e){var a=g.dc(2);g.kc("displayedColumns",a.displayedColumns)("filterValue",a.filterValue)("pageSize",a.pageSize)("selection",a.selection)("taskResults",a.taskResults)}}function bi(e,t){if(1&e){var i=g.Tb();g.Sb(0,"div"),g.Sb(1,"h1",1),g.Jc(2),g.ec(3,"translate"),g.Sb(4,"span",2),g.Jc(5),g.Rb(),g.Rb(),g.Sb(6,"perun-web-apps-refresh-button",3),g.Zb("refresh",(function(){return g.xc(i),g.dc().refreshTable()})),g.Rb(),g.Hc(7,li,3,4,"button",4),g.Sb(8,"perun-web-apps-immediate-filter",5),g.Zb("filter",(function(e){return g.xc(i),g.dc().applyFilter(e)})),g.Rb(),g.Hc(9,oi,1,0,"mat-spinner",6),g.Hc(10,ui,1,5,"perun-web-apps-task-results-list",7),g.Rb()}if(2&e){var a=g.dc();g.Ab(2),g.Mc("",g.fc(3,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",a.task.service.name," "),g.Ab(3),g.Lc(" \xa0#",a.task.id," "),g.Ab(2),g.kc("ngIf",!a.loading&&a.removeAuth),g.Ab(1),g.kc("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),g.Ab(1),g.kc("ngIf",a.loading),g.Ab(1),g.kc("ngIf",!a.loading)}}var fi,di,hi,pi=[{path:"",component:l.a},{path:":facilityId",component:M,children:[{path:"",component:V,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:fe,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:H.a,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:ni,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Y.a,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:Kt,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:(fi=function(){function e(t,a,s,n,c){i(this,e),this.route=t,this.tableConfigService=a,this.taskManager=s,this.authResolver=n,this.dialog=c,this.loading=!1,this.filterValue="",this.selection=new W.c(!0,[]),this.tableId=$.Y,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(t){e.facility={id:parseInt(t.facilityId,10),beanName:"Facility"},e.removeAuth=e.authResolver.isAuthorized("deleteTask_Task_policy",[e.facility]),e.removeAuth||(e.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),e.route.params.subscribe((function(t){e.taskId=t.taskId,e.taskManager.getTaskById(e.taskId).subscribe((function(t){e.task=t,e.refreshTable()}))}))}))}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe((function(t){e.selection.clear(),e.taskResults=t,e.loading=!1}))}},{key:"removeTaskResult",value:function(){var e=this,t=Object(d.o)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Nt.a,t).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}(),fi.\u0275fac=function(e){return new(e||fi)(g.Mb(r.a),g.Mb($.pb),g.Mb(f.o),g.Mb(h.h),g.Mb(m.b))},fi.\u0275cmp=g.Gb({type:fi,selectors:[["app-facility-task-results"]],decls:1,vars:1,consts:[[4,"ngIf"],[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,"displayedColumns","filterValue","pageSize","selection","taskResults","page",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","pageSize","selection","taskResults","page"]],template:function(e,t){1&e&&g.Hc(0,bi,11,9,"div",0),2&e&&g.kc("ngIf",!t.loading)},directives:[c.t,q.a,ee.a,A.b,I.c,ri.a],pipes:[k.d],styles:[""]}),fi),data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:He,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:qe,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:It,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Lt,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:x,children:[{path:"",component:J,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:ut,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:xe,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:Ot,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:kt,data:{animation:"FacilitySettingsBlackListPage"}}]}]},{path:":facilityId/resources/:resourceId",component:U.a,children:[{path:"",component:B.a,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:pe.a,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:ge.a,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:zt.a,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:ci.a,data:{animation:"ResourceAssignedMembersComponent"}},{path:"settings",component:de.a,children:[{path:"",component:he.a,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Dt.a,data:{animation:"ResourceSettingsManagersPage"}}]}]}],gi=((di=function e(){i(this,e)}).\u0275mod=g.Kb({type:di}),di.\u0275inj=g.Jb({factory:function(e){return new(e||di)},imports:[[r.j.forChild(pi)],r.j]}),di),mi=n("PCNd"),yi=n("KoHB"),Ii=n("zrcO"),vi=((hi=function e(){i(this,e)}).\u0275mod=g.Kb({type:hi}),hi.\u0275inj=g.Jb({factory:function(e){return new(e||hi)},providers:[ve.c],imports:[[c.c,gi,mi.a,yi.a,j.d,ve.b,Ii.UsersModule]]}),hi)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/9-es2015.a3eca0a25271e32123bb.js b/dist/apps/admin-gui/9-es2015.a3eca0a25271e32123bb.js new file mode 100644 index 000000000..987468a83 --- /dev/null +++ b/dist/apps/admin-gui/9-es2015.a3eca0a25271e32123bb.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"B2++":function(t,e,i){"use strict";i.r(e),i.d(e,"VosModule",(function(){return tn}));var s=i("2kYt"),a=i("sEIs"),o=i("7TQF"),n=i("4sdY"),c=i("EkAj"),r=i("TkCa"),l=i("X2Q7"),b=i("8clQ"),u=i("Ssnw"),p=i("nyAh"),d=i("+0js"),h=i("EM62"),g=i("OZ4H"),m=i("EtYo"),f=i("csyo"),I=i("bFHC"),S=i("Y2X+"),A=i("ma6z"),T=i("PBFl"),E=i("s2Ay"),v=i("jEFW"),R=i("iD4z"),M=i("py76");function O(t,e){1&t&&h.Nb(0,"mat-spinner",3)}function N(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",12),h.Zb("click",(function(){return h.xc(t),h.dc(2).editGroup()})),h.Sb(1,"mat-icon"),h.Jc(2,"edit"),h.Rb(),h.Rb()}}function _(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",15),h.Zb("click",(function(){return h.xc(t),h.dc(3).onSyncDetail()})),h.ec(1,"groupSyncIcon"),h.Sb(2,"mat-icon"),h.ec(3,"groupSyncIconColor"),h.Jc(4),h.ec(5,"groupSyncIcon"),h.Rb(),h.Rb()}if(2&t){const t=h.dc(3);h.kc("disabled","sync_disabled"===h.fc(1,5,t.group)),h.Ab(2),h.Cb(h.fc(3,7,t.group)),h.Ab(2),h.Lc(" ",h.fc(5,9,t.group)," ")}}function L(t,e){if(1&t&&(h.Sb(0,"span"),h.Jc(1),h.ec(2,"translate"),h.Sb(3,"span",13),h.ec(4,"translate"),h.ec(5,"groupSyncToolTip"),h.Hc(6,_,6,11,"button",14),h.Rb(),h.Rb()),2&t){const t=h.dc(2);h.Ab(1),h.Lc(" , ",h.fc(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),h.Ab(2),h.kc("matTooltipPosition","above")("matTooltip",h.fc(4,6,h.fc(5,8,t.group))),h.Ab(3),h.kc("ngIf",t.syncAuth)}}const y=function(){return{color:"black"}},C=function(t,e){return["/organizations",t,"groups",e]},P=function(t){return["/organizations",t]};function k(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"div",4),h.Nb(2,"mat-icon",5),h.ec(3,"translate"),h.Sb(4,"div",6),h.Sb(5,"div",7),h.Sb(6,"a",8),h.Jc(7),h.Rb(),h.Sb(8,"span",9),h.Jc(9),h.Rb(),h.Hc(10,N,3,0,"button",10),h.Rb(),h.Sb(11,"span",11),h.Jc(12),h.ec(13,"translate"),h.ec(14,"translate"),h.Sb(15,"a",8),h.Jc(16),h.Rb(),h.Jc(17),h.ec(18,"translate"),h.Hc(19,L,7,10,"span",2),h.Rb(),h.Rb(),h.Rb(),h.Nb(20,"app-animated-router-outlet"),h.Rb()),2&t){const t=h.dc();h.Ab(2),h.lc("matTooltip",h.fc(3,13,"GROUP_DETAIL.ENTITY")),h.kc("ngStyle",h.oc(21,y)),h.Ab(4),h.kc("routerLink",h.qc(22,C,t.vo.id,t.group.id)),h.Ab(1),h.Lc(" ",t.group.shortName," "),h.Ab(2),h.Lc(" \xa0#",t.group.id," "),h.Ab(1),h.kc("ngIf","members"!=t.group.name&&t.editAuth),h.Ab(2),h.Mc(" ",h.fc(13,15,"GROUP_DETAIL.ENTITY"),", ",h.fc(14,17,"GROUP_DETAIL.VO_NAME"),": "),h.Ab(3),h.kc("routerLink",h.pc(25,P,t.vo.id)),h.Ab(1),h.Kc(t.vo.name),h.Ab(1),h.Mc(", ",h.fc(18,19,"GROUP_DETAIL.DESCRIPTION"),": ",t.group.description," "),h.Ab(2),h.kc("ngIf",t.syncEnabled)}}let G=(()=>{class t{constructor(t,e,i,s,a,o,n){this.sideMenuService=t,this.voService=e,this.route=i,this.sideMenuItemService=s,this.groupService=a,this.dialog=o,this.guiAuthResolver=n,this.editAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[p.a.GROUP_SYNC_ENABLED,p.a.GROUP_LAST_SYNC_STATE,p.a.GROUP_LAST_SYNC_TIMESTAMP,p.a.GROUP_STRUCTURE_SYNC_ENABLED,p.a.GROUP_LAST_STRUCTURE_SYNC_STATE,p.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.groupId;this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.groupService.getGroupById(e).subscribe(i=>{this.group=i,Object(b.b)("groups",this.group),Object(b.c)(this.group),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(e,this.attrNames).subscribe(t=>{this.group=t,this.syncEnabled=this.isSynchronized(),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]);const s=this.sideMenuItemService.parseVo(t),a=this.sideMenuItemService.parseGroup(i);this.sideMenuService.setAccessMenuItems([s,a]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}onSyncDetail(){const t=Object(b.o)();t.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(d.i,t)}editGroup(){const t=Object(b.o)();t.width="450px",t.data={theme:"group-theme",group:this.group,dialogType:d.h.GROUP},this.dialog.open(d.g,t).afterClosed().subscribe(t=>{t&&this.groupService.getGroupById(this.group.id).subscribe(t=>{this.group=t})})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(l.q),h.Mb(a.a),h.Mb(c.a),h.Mb(l.h),h.Mb(g.b),h.Mb(u.h))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-detail-page"]],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,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(t,e){1&t&&(h.Sb(0,"div",0),h.Nb(1,"perun-web-apps-back-button"),h.Hc(2,O,1,0,"mat-spinner",1),h.Hc(3,k,21,27,"div",2),h.Rb()),2&t&&(h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[m.a,s.t,f.c,I.a,S.a,s.w,a.i,A.a,T.b],pipes:[E.d,v.a,R.a,M.a],styles:[""],data:{animation:[r.a]}}),t})();function D(t,e){1&t&&h.Nb(0,"mat-spinner",3)}const V=function(t){return["/admin","users",t]};function w(t,e){if(1&t&&(h.Sb(0,"a",8),h.Jc(1),h.Rb()),2&t){const t=h.dc(2);h.kc("routerLink",h.pc(2,V,t.member.userId)),h.Ab(1),h.Lc(" ",t.member.userId," ")}}function x(t,e){if(1&t&&(h.Sb(0,"span"),h.Jc(1),h.Rb()),2&t){const t=h.dc(2);h.Ab(1),h.Kc(t.member.userId)}}const z=function(){return{color:"black"}},H=function(t,e){return["/organizations",t,"members",e]};function U(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"div",4),h.Nb(2,"mat-icon",5),h.ec(3,"translate"),h.Sb(4,"div",6),h.Sb(5,"div",7),h.Sb(6,"a",8),h.Jc(7),h.Rb(),h.Sb(8,"span",9),h.Jc(9),h.Rb(),h.Rb(),h.Sb(10,"span",10),h.Jc(11),h.ec(12,"translate"),h.ec(13,"translate"),h.Hc(14,w,2,4,"a",11),h.Hc(15,x,2,1,"span",2),h.Rb(),h.Rb(),h.Rb(),h.Nb(16,"app-animated-router-outlet"),h.Rb()),2&t){const t=h.dc();h.Ab(2),h.lc("matTooltip",h.fc(3,9,"MEMBER_DETAIL.ENTITY")),h.kc("ngStyle",h.oc(15,z)),h.Ab(4),h.kc("routerLink",h.qc(16,H,t.vo.id,t.member.id)),h.Ab(1),h.Lc(" ",t.fullName," "),h.Ab(2),h.Lc(" \xa0#",t.member.id," "),h.Ab(2),h.Mc(" ",h.fc(12,11,"MEMBER_DETAIL.ENTITY"),", ",h.fc(13,13,"MEMBER_DETAIL.USER_ID"),": "),h.Ab(3),h.kc("ngIf",t.isAuthorized),h.Ab(1),h.kc("ngIf",!t.isAuthorized)}}let J=(()=>{class t{constructor(t,e,i,s,a,o,n){this.sideMenuItemService=t,this.translate=e,this.sideMenuService=i,this.membersService=s,this.voService=a,this.route=o,this.authResolver=n,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.voId,i=t.memberId;this.isAuthorized=this.authResolver.isPerunAdmin(),this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.membersService.getRichMemberWithAttributes(i).subscribe(t=>{this.member=t;const e=this.sideMenuItemService.parseVo(this.vo),i=this.sideMenuItemService.parseMember(this.member,this.vo);this.fullName=i.label,this.sideMenuService.setAccessMenuItems([e,i]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(c.a),h.Mb(E.e),h.Mb(n.a),h.Mb(l.i),h.Mb(l.q),h.Mb(a.a),h.Mb(u.h))},t.\u0275cmp=h.Gb({type:t,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,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link",3,"routerLink",4,"ngIf"]],template:function(t,e){1&t&&(h.Sb(0,"div",0),h.Nb(1,"perun-web-apps-back-button"),h.Hc(2,D,1,0,"mat-spinner",1),h.Hc(3,U,17,19,"div",2),h.Rb()),2&t&&(h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[m.a,s.t,f.c,I.a,S.a,s.w,a.i,A.a],pipes:[E.d],styles:[""],data:{animation:[r.a]}}),t})();var B=i("hiWg"),F=i("ZG5M");function Z(t,e){1&t&&h.Nb(0,"mat-spinner",2)}function $(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"perun-web-apps-menu-buttons-field",3),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("items",t.navItems)("size","small")}}let K=(()=>{class t{constructor(t,e,i,s,a){this.sideMenuService=t,this.voService=e,this.route=i,this.router=s,this.authResolver=a,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})}initNavItems(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}initItems(){this.items=[{cssIcon:"perun-invite-member",label:"VO_DETAIL.OVERVIEW.INVITE_MEMBER",style:"vo-btn",url:`/organizations/${this.vo.id}/invite-member`,clickAction:function(t,e){const i=Object(b.o)();i.width="450px",i.data={voId:e},t.open(B.a,i)}},{cssIcon:"perun-service-identity",label:"VO_DETAIL.OVERVIEW.CREATE_SERVICE_MEMBER",style:"vo-btn",url:`/organizations/${this.vo.id}/create-service-member`,clickAction:function(t,e){}},{cssIcon:"perun-manager",label:"VO_DETAIL.OVERVIEW.ADD_MANAGER",style:"vo-btn",url:`/organizations/${this.vo.id}/add-manager`,clickAction:function(t,e){}},{cssIcon:"perun-group",label:"VO_DETAIL.OVERVIEW.CREATE_GROUP",style:"vo-btn",url:`/organizations/${this.vo.id}/create-group`,clickAction:function(t,e){}},{cssIcon:"perun-create1",label:"VO_DETAIL.OVERVIEW.ADD_MEMBER",style:"vo-btn",url:`/organizations/${this.vo.id}/invite-member`,clickAction:function(t,e){}}]}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(l.q),h.Mb(a.a),h.Mb(a.f),h.Mb(u.h))},t.\u0275cmp=h.Gb({type:t,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(t,e){1&t&&(h.Hc(0,Z,1,0,"mat-spinner",0),h.Hc(1,$,2,2,"div",1)),2&t&&(h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,F.a],styles:[""]}),t})();var j=i("tT6Y"),X=i("M7la"),W=i("JjRu");function Y(t,e){1&t&&h.Nb(0,"mat-spinner",3)}function q(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",13),h.Zb("click",(function(){return h.xc(t),h.dc(2).editVo()})),h.Sb(1,"mat-icon"),h.Jc(2,"edit"),h.Rb(),h.Rb()}}function Q(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",14),h.Zb("click",(function(){return h.xc(t),h.dc(2).removeVo()})),h.Sb(1,"mat-icon"),h.Jc(2,"delete_forever"),h.Rb(),h.Rb()}}const tt=function(){return{color:"black"}},et=function(t){return["/organizations/",t]};function it(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"div",4),h.Nb(2,"mat-icon",5),h.ec(3,"translate"),h.Sb(4,"div",6),h.Sb(5,"div",7),h.Sb(6,"a",8),h.Jc(7),h.Rb(),h.Sb(8,"span",9),h.Jc(9),h.Rb(),h.Hc(10,q,3,0,"button",10),h.Hc(11,Q,3,0,"button",11),h.Rb(),h.Sb(12,"span",12),h.Jc(13),h.ec(14,"translate"),h.ec(15,"translate"),h.Rb(),h.Rb(),h.Rb(),h.Nb(16,"app-animated-router-outlet"),h.Rb()),2&t){const t=h.dc();h.Ab(2),h.lc("matTooltip",h.fc(3,10,"VO_DETAIL.ENTITY")),h.kc("ngStyle",h.oc(16,tt)),h.Ab(4),h.kc("routerLink",h.pc(17,et,t.vo.id)),h.Ab(1),h.Lc(" ",t.vo.name," "),h.Ab(2),h.Lc(" \xa0#",t.vo.id," "),h.Ab(1),h.kc("ngIf",t.editAuth),h.Ab(1),h.kc("ngIf",t.removeAuth),h.Ab(2),h.Nc(" ",h.fc(14,12,"VO_DETAIL.ENTITY"),", ",h.fc(15,14,"VO_DETAIL.SHORT_NAME"),": ",t.vo.shortName," ")}}let st=(()=>{class t{constructor(t,e,i,s,a,o,n){this.sideMenuService=t,this.voService=e,this.route=i,this.router=s,this.sideMenuItemService=a,this.dialog=o,this.authResolver=n,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]);const e=this.sideMenuItemService.parseVo(t);this.sideMenuService.setAccessMenuItems([e]),Object(b.b)("vos",this.vo),Object(b.c)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const t=Object(b.o)();t.width="450px",t.data={theme:"vo-theme",vo:this.vo,dialogType:d.h.VO},this.dialog.open(d.g,t).afterClosed().subscribe(t=>{t&&this.voService.getVoById(this.vo.id).subscribe(t=>{this.vo=t})})}removeVo(){const t=Object(b.o)();t.width="500px",t.data={theme:"vo-theme",entity:this.vo,entityType:W.b.VO},this.dialog.open(W.a,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(l.q),h.Mb(a.a),h.Mb(a.f),h.Mb(c.a),h.Mb(g.b),h.Mb(u.h))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"vo-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo",3,"click"]],template:function(t,e){1&t&&(h.Sb(0,"div",0),h.Nb(1,"perun-web-apps-back-button"),h.Hc(2,Y,1,0,"mat-spinner",1),h.Hc(3,it,17,19,"div",2),h.Rb()),2&t&&(h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading&&void 0!==e.vo))},directives:[m.a,s.t,f.c,I.a,S.a,s.w,a.i,A.a,T.b],pipes:[E.d],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[r.a]}}),t})();var at=i("FlRo"),ot=i("mjJC"),nt=i("Meci"),ct=i("A6H7"),rt=i("7o/y"),lt=i("SAuR"),bt=i("j+u3");function ut(t,e){1&t&&h.Nb(0,"mat-spinner",2)}function pt(t,e){1&t&&h.Nb(0,"th",18)}function dt(t,e){if(1&t&&(h.Sb(0,"span"),h.Jc(1),h.Rb()),2&t){const t=h.dc().$implicit,e=h.dc(2);h.Ab(1),h.Lc(" ",e.attributes.get(t)[0],": ")}}function ht(t,e){if(1&t&&(h.Sb(0,"span"),h.Jc(1),h.ec(2,"attributeFriendlyName"),h.Rb()),2&t){const t=h.dc().$implicit;h.Ab(1),h.Lc(" ",h.fc(2,1,t),": ")}}function gt(t,e){if(1&t&&(h.Sb(0,"td",19),h.Hc(1,dt,2,1,"span",1),h.Hc(2,ht,3,3,"span",1),h.Rb()),2&t){const t=e.$implicit,i=h.dc(2);h.Ab(1),h.kc("ngIf",null!==i.attributes.get(t)[0]),h.Ab(1),h.kc("ngIf",null===i.attributes.get(t)[0])}}function mt(t,e){1&t&&h.Nb(0,"th",18)}function ft(t,e){if(1&t&&(h.Sb(0,"td",20),h.Jc(1),h.Rb()),2&t){const t=e.$implicit,i=h.dc(2);h.Ab(1),h.Lc(" ",i.attributes.get(t)[1]," ")}}function It(t,e){1&t&&h.Nb(0,"tr",21)}function St(t,e){1&t&&h.Nb(0,"th",18)}function At(t,e){if(1&t&&(h.Sb(0,"td",19),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.Ab(1),h.Lc(" ",t,": ")}}function Tt(t,e){1&t&&h.Nb(0,"th",18)}function Et(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"mat-icon",22),h.Jc(2),h.Rb(),h.Sb(3,"b",23),h.Jc(4),h.ec(5,"transformMemberStatus"),h.Rb(),h.Rb()),2&t){const t=h.dc(3);h.Ab(1),h.kc("color",t.statusIconColor),h.Ab(1),h.Lc(" ",t.statusIcon," "),h.Ab(2),h.Lc(" ",h.fc(5,3,t.member.status)," ")}}function vt(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",26),h.Zb("click",(function(){return h.xc(t),h.dc(4).changeExpiration()})),h.Sb(1,"mat-icon"),h.Jc(2,"edit"),h.Rb(),h.Rb()}}function Rt(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"i",24),h.Jc(2),h.ec(3,"parseDate"),h.Rb(),h.Hc(4,vt,3,0,"button",25),h.Rb()),2&t){const t=h.dc(3);h.Ab(2),h.Lc(" ",h.fc(3,2,t.expiration)," "),h.Ab(2),h.kc("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function Mt(t,e){if(1&t&&(h.Sb(0,"td",20),h.Hc(1,Et,6,5,"div",1),h.Hc(2,Rt,5,4,"div",1),h.Rb()),2&t){const t=e.$implicit;h.Ab(1),h.kc("ngIf","Status"===t),h.Ab(1),h.kc("ngIf","Expiration"===t)}}function Ot(t,e){1&t&&h.Nb(0,"tr",21)}function Nt(t,e){if(1&t){const t=h.Tb();h.Sb(0,"mat-card",27),h.Sb(1,"mat-card-header"),h.Sb(2,"mat-card-title"),h.Sb(3,"h1",6),h.Jc(4),h.ec(5,"translate"),h.Rb(),h.Rb(),h.Rb(),h.Sb(6,"mat-card-content",24),h.Sb(7,"div",28),h.ec(8,"translate"),h.Sb(9,"button",29),h.Zb("click",(function(){return h.xc(t),h.dc(2).requestPwdReset()})),h.Jc(10),h.ec(11,"translate"),h.Rb(),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=h.dc(2);h.Ab(4),h.Kc(h.fc(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),h.Ab(3),h.kc("matTooltip",h.fc(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",t.logins.length>0),h.Ab(2),h.kc("disabled",!t.logins.length),h.Ab(1),h.Lc(" ",h.fc(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function _t(t,e){1&t&&h.Nb(0,"th",18)}function Lt(t,e){if(1&t&&(h.Sb(0,"td",20),h.Jc(1),h.ec(2,"userFullName"),h.Rb()),2&t){const t=e.$implicit;h.Ab(1),h.Lc(" ",h.fc(2,1,t.user)," ")}}function yt(t,e){1&t&&h.Nb(0,"tr",21)}const Ct=function(){return["sponsors"]};function Pt(t,e){if(1&t&&(h.Sb(0,"mat-card-content"),h.Sb(1,"h5"),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"table",30),h.Qb(5,31),h.Hc(6,_t,1,0,"th",9),h.Hc(7,Lt,3,3,"td",12),h.Pb(),h.Hc(8,yt,1,0,"tr",13),h.Rb(),h.Rb()),2&t){const t=h.dc(3);h.Ab(2),h.Lc("",h.fc(3,3,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),":"),h.Ab(2),h.kc("dataSource",t.sponsorsDataSource),h.Ab(4),h.kc("matRowDefColumns",h.oc(5,Ct))}}function kt(t,e){if(1&t&&(h.Sb(0,"div",4),h.Sb(1,"mat-card",5),h.Sb(2,"mat-card-header"),h.Sb(3,"mat-card-title"),h.Sb(4,"h1",6),h.Jc(5),h.ec(6,"translate"),h.Rb(),h.Rb(),h.Rb(),h.Hc(7,Pt,9,6,"mat-card-content",1),h.Rb(),h.Rb()),2&t){const t=h.dc(2);h.Ab(5),h.Kc(h.fc(6,2,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")),h.Ab(2),h.kc("ngIf",0!==t.sponsors.length)}}function Gt(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"div",3),h.Sb(2,"div",4),h.Sb(3,"mat-card",5),h.Sb(4,"mat-card-header"),h.Sb(5,"mat-card-title"),h.Sb(6,"h1",6),h.Jc(7),h.ec(8,"translate"),h.Rb(),h.Rb(),h.Rb(),h.Sb(9,"mat-card-content"),h.Sb(10,"table",7),h.Qb(11,8),h.Hc(12,pt,1,0,"th",9),h.Hc(13,gt,3,2,"td",10),h.Pb(),h.Qb(14,11),h.Hc(15,mt,1,0,"th",9),h.Hc(16,ft,2,1,"td",12),h.Pb(),h.Hc(17,It,1,0,"tr",13),h.Rb(),h.Rb(),h.Rb(),h.Rb(),h.Sb(18,"div",4),h.Sb(19,"mat-card",5),h.Sb(20,"mat-card-header"),h.Sb(21,"mat-card-title"),h.Sb(22,"h1",6),h.Jc(23),h.ec(24,"translate"),h.Rb(),h.Rb(),h.Rb(),h.Sb(25,"mat-card-content"),h.Sb(26,"table",14),h.Qb(27,8),h.Hc(28,St,1,0,"th",9),h.Hc(29,At,2,1,"td",10),h.Pb(),h.Qb(30,11),h.Hc(31,Tt,1,0,"th",9),h.Hc(32,Mt,3,2,"td",12),h.Pb(),h.Hc(33,Ot,1,0,"tr",13),h.Rb(),h.Rb(),h.Rb(),h.Hc(34,Nt,12,11,"mat-card",15),h.Rb(),h.Hc(35,kt,8,4,"div",16),h.Rb(),h.Sb(36,"div"),h.Nb(37,"perun-web-apps-menu-buttons-field",17),h.Rb(),h.Rb()),2&t){const t=h.dc();h.Ab(7),h.Kc(h.fc(8,10,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),h.Ab(3),h.kc("dataSource",t.dataSource),h.Ab(7),h.kc("matRowDefColumns",t.displayedColumns),h.Ab(6),h.Kc(h.fc(24,12,"MEMBER_DETAIL.OVERVIEW.MEMBERSHIP")),h.Ab(3),h.kc("dataSource",t.membershipDataSource),h.Ab(7),h.kc("matRowDefColumns",t.displayedColumns),h.Ab(1),h.kc("ngIf",t.pwdResetAuth),h.Ab(1),h.kc("ngIf",t.member.sponsored),h.Ab(2),h.kc("items",t.navItems)("size","small")}}let Dt=(()=>{class t{constructor(t,e,i,s,a,o,n,c,r,l){this.attributesManager=t,this.membersService=e,this.usersManager=i,this.translate=s,this.route=a,this.dialog=o,this.authResolver=n,this.storeService=c,this.apiRequest=r,this.notificator=l,this.fullName="",this.statusIcon="",this.statusIconColor="",this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new at.o,this.membershipDataSource=new at.o,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new at.o,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{const e=t.memberId;this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(e).subscribe(t=>{const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.userId).subscribe(i=>{this.logins=i.filter(t=>e.includes(t.friendlyNameParameter)),this.member=t,this.fullName=Object(b.w)(this.member.user),this.statusIcon=Object(b.C)(this.member),this.statusIconColor=Object(b.B)(this.member),this.initAttributes(),this.dataSource=new at.o(Array.from(this.attributes.keys())),this.membershipDataSource=new at.o(["Status","Expiration"]),this.vo={id:t.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(t=>{this.sponsors=t,this.sponsorsDataSource=new at.o(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}changeExpiration(){const t=Object(b.o)();t.width="400px",t.data={memberId:this.member.id,expirationAttr:this.expirationAtt,mode:"vo"},this.dialog.open(d.d,t).afterClosed().subscribe(t=>{t&&this.refreshData()})}initAttributes(){this.attributeNames.forEach(t=>{this.attributes.set(t,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])})}initNavItems(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&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.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&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.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&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.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(t=>{this.member=t,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,p.a.MEMBER_DEF_EXPIRATION).subscribe(t=>{this.expirationAtt=t,this.expiration=t.value?t.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},t=>{"PrivilegeException"!==t.error.name?this.notificator.showError(t):this.membershipDataSource=new at.o(["Status"]),this.loading=!1})},()=>this.loading=!1)}requestPwdReset(){const t=Object(b.o)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(ot.a,t)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.c),h.Mb(l.i),h.Mb(l.p),h.Mb(E.e),h.Mb(a.a),h.Mb(g.b),h.Mb(u.h),h.Mb(u.m),h.Mb(u.b),h.Mb(u.l))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},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"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["class","mat-elevation-z3 mt-4",4,"ngIf"],["class","align-cards",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"vert-top","mr-1",3,"color"],[1,"vert-top"],[1,"column-center"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"mat-elevation-z3","mt-4"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",3,"disabled","click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"]],template:function(t,e){1&t&&(h.Hc(0,ut,1,0,"mat-spinner",0),h.Hc(1,Gt,38,14,"div",1)),2&t&&(h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,nt.a,nt.f,nt.m,nt.d,at.n,at.c,at.i,at.b,at.m,F.a,at.h,at.a,at.l,I.a,T.b,S.a],pipes:[E.d,ct.a,rt.a,lt.a,bt.a],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}"]}),t})();var Vt=i("hQLc");function wt(t,e){1&t&&h.Nb(0,"mat-spinner",2)}const xt=function(t,e){return["/organizations",t,"groups",e]};function zt(t,e){if(1&t&&(h.Sb(0,"p"),h.Jc(1),h.ec(2,"translate"),h.Sb(3,"a",4),h.Jc(4),h.Rb(),h.Rb()),2&t){const t=h.dc(2);h.Ab(1),h.Lc(" ",h.fc(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),h.Ab(2),h.kc("routerLink",h.qc(5,xt,t.parentGroup.voId,t.parentGroup.id)),h.Ab(1),h.Lc(" ",t.parentGroup.name," ")}}function Ht(t,e){if(1&t&&(h.Sb(0,"div"),h.Hc(1,zt,5,8,"p",1),h.Nb(2,"perun-web-apps-menu-buttons-field",3),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("ngIf",null!==t.parentGroup),h.Ab(1),h.kc("items",t.navItems)("size","small")}}let Ut=(()=>{class t{constructor(t,e,i,s,a,o,n){this.route=t,this.groupService=e,this.voService=i,this.guiAuthResolver=s,this.apiRequest=a,this.attributesManager=o,this.notificator=n,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.groupId=t.groupId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,null!==this.group.parentGroupId?this.loadParentGroupData():(this.parentGroup=null,this.initNavItems(),this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(){this.groupService.getGroupById(this.group.parentGroupId).subscribe(t=>{this.parentGroup=t,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[this.group])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.groupId}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[this.group])&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.groupId}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[this.group])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.groupId}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[this.group])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.groupId}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});const t=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),e=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);t&&i&&e&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});let s=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,p.a.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{s=!0},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)});const a=this.guiAuthResolver.isManagerPagePrivileged(this.group),o=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),n=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),c=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(s||a||o||n||c)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.groupId}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.h),h.Mb(l.q),h.Mb(u.h),h.Mb(u.b),h.Mb(l.c),h.Mb(u.l))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},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,"routerLink"]],template:function(t,e){1&t&&(h.Hc(0,wt,1,0,"mat-spinner",0),h.Hc(1,Ht,3,3,"div",1)),2&t&&(h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,F.a,a.i],pipes:[E.d],styles:[""]}),t})();var Jt=i("HdwC");let Bt=(()=>{class t{constructor(t){this.route=t}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&h.Nb(0,"app-animated-router-outlet")},directives:[A.a],styles:[""],data:{animation:[r.a]}}),t})();var Ft=i("Sv31");let Zt=(()=>{class t{constructor(t,e){this.route=t,this.router=e,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=e.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),e.events.subscribe(t=>{t instanceof a.b&&(this.currentUrl=t.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(a.f))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&h.Nb(0,"app-animated-router-outlet")},directives:[A.a],styles:[""],data:{animation:[r.a]}}),t})();var $t=i("cqs0"),Kt=i("mEf3"),jt=i("HHEo"),Xt=i("iyZ4"),Wt=i("IDQ9"),Yt=i("0XDM"),qt=i("A8Ay"),Qt=i("LKLE");const te=["list"];function ee(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",8),h.Zb("click",(function(){return h.xc(t),h.dc().onCreate()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "))}function ie(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",9),h.Zb("click",(function(){return h.xc(t),h.dc().onSave()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"VO_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," ")}}function se(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",10),h.Zb("click",(function(){return h.xc(t),h.dc().onDelete()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"VO_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," ")}}function ae(t,e){1&t&&h.Nb(0,"mat-spinner",11)}function oe(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-attributes-list",12,13),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("attributes",t.attributes)("selection",t.selection)}}let ne=(()=>{class t{constructor(t,e,i,s,a,o){this.attributesManager=t,this.route=e,this.dialog=i,this.notificator=s,this.tableConfigService=a,this.translate=o,this.attributes=[],this.selection=new $t.c(!0,[]),this.filterValue="",this.tableId=Xt.r,this.translate.get("VO_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe(t=>this.saveSuccessMessage=t),this.translate.get("VO_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe(t=>this.deleteSuccessMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.voId=t.voId,this.refreshTable()})}onDelete(){const t=Object(b.o)();t.width="450px",t.data={entityId:this.voId,entity:"vo",attributes:this.selection.selected},this.dialog.open(Kt.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onCreate(){const t=Object(b.o)();t.width="1050px",t.data={entityId:this.voId,entity:"vo",notEmptyAttributes:this.attributes,style:"vo-theme"},this.dialog.open(Wt.a,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=Object(b.o)();t.width="450px",t.data={entityId:this.voId,entity:"vo",attributes:this.selection.selected},this.dialog.open(d.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getVoAttributes(this.voId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.c),h.Mb(a.a),h.Mb(g.b),h.Mb(u.l),h.Mb(Xt.pb),h.Mb(E.e))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-attributes"]],viewQuery:function(t,e){var i;1&t&&h.Qc(te,!0),2&t&&h.sc(i=h.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"perun-web-apps-refresh-button",1),h.Zb("refresh",(function(){return e.refreshTable()})),h.Rb(),h.Hc(5,ee,3,3,"button",2),h.Hc(6,ie,3,4,"button",3),h.Hc(7,se,3,4,"button",4),h.Sb(8,"perun-web-apps-immediate-filter",5),h.Zb("filter",(function(t){return e.applyFilter(t)})),h.Rb(),h.Hc(9,ae,1,0,"mat-spinner",6),h.Hc(10,oe,2,4,"perun-web-apps-attributes-list",7),h.Rb()),2&t&&(h.Ab(2),h.Kc(h.fc(3,7,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.Ab(3),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[Yt.a,s.t,qt.a,T.b,f.c,Qt.a],pipes:[E.d],styles:[""]}),t})();function ce(t,e){1&t&&h.Nb(0,"mat-spinner",2)}function re(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"perun-web-apps-menu-buttons-field",3),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("items",t.items)("size","small")}}let le=(()=>{class t{constructor(t,e,i,s,a){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.route=s,this.router=a,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.items=[],this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(l.q),h.Mb(u.h),h.Mb(a.a),h.Mb(a.f))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(t,e){1&t&&(h.Hc(0,ce,1,0,"mat-spinner",0),h.Hc(1,re,2,2,"div",1)),2&t&&(h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,F.a],styles:[""]}),t})();var be=i("k8N0"),ue=i("nIj0"),pe=i("F1o0"),de=i("alep"),he=i("29Wa"),ge=i("R7+U"),me=i("Cd2c"),fe=i("mFH5"),Ie=i("+Tre");function Se(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",25),h.Sb(1,"mat-form-field",26),h.Sb(2,"input",20),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc(2).currentConfiguration.periodStatic=e})),h.ec(3,"translate"),h.Rb(),h.Sb(4,"mat-hint"),h.Jc(5),h.ec(6,"translate"),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=h.dc(2);h.Ab(2),h.lc("pattern",t.datePattern),h.lc("placeholder",h.fc(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.kc("ngModel",t.currentConfiguration.periodStatic),h.Ab(3),h.Kc(h.fc(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ae(t,e){if(1&t&&(h.Sb(0,"mat-option",27),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.kc("value",t.value),h.Ab(1),h.Kc(t.text)}}function Te(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",18),h.Sb(1,"mat-form-field",19),h.Sb(2,"input",20),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc(2).currentConfiguration.periodDynamic=e})),h.ec(3,"translate"),h.Rb(),h.Rb(),h.Sb(4,"mat-form-field"),h.Sb(5,"mat-label"),h.Jc(6),h.ec(7,"translate"),h.Rb(),h.Sb(8,"mat-select",8),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc(2).currentConfiguration.periodDynamicUnit=e})),h.Hc(9,Ae,2,2,"mat-option",17),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=h.dc(2);h.Ab(2),h.lc("pattern",t.dynamicAmountPattern),h.lc("placeholder",h.fc(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.kc("ngModel",t.currentConfiguration.periodDynamic),h.Ab(4),h.Kc(h.fc(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.Ab(2),h.kc("ngModel",t.currentConfiguration.periodDynamicUnit),h.Ab(1),h.kc("ngForOf",t.amountOptions)}}function Ee(t,e){if(1&t&&(h.Sb(0,"mat-option",27),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.kc("value",t),h.Ab(1),h.Kc(t)}}function ve(t,e){if(1&t&&(h.Sb(0,"mat-option",27),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.kc("value",t),h.Ab(1),h.Kc(t)}}function Re(t,e){if(1&t&&(h.Sb(0,"mat-option",27),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.kc("value",t.value),h.Ab(1),h.Kc(t.text)}}function Me(t,e){if(1&t&&(h.Sb(0,"mat-option",27),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.kc("value",t),h.Ab(1),h.Lc(" ",t," ")}}function Oe(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",25),h.Sb(1,"mat-form-field",26),h.Sb(2,"input",20),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc(3).currentConfiguration.specialLoaPeriodStatic=e})),h.ec(3,"translate"),h.Rb(),h.Sb(4,"mat-hint"),h.Jc(5),h.ec(6,"translate"),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=h.dc(3);h.Ab(2),h.lc("pattern",t.datePattern),h.lc("placeholder",h.fc(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.kc("ngModel",t.currentConfiguration.specialLoaPeriodStatic),h.Ab(3),h.Kc(h.fc(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ne(t,e){if(1&t&&(h.Sb(0,"mat-option",27),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.kc("value",t.value),h.Ab(1),h.Kc(t.text)}}function _e(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",18),h.Sb(1,"mat-form-field",19),h.Sb(2,"input",20),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc(3).currentConfiguration.specialLoaPeriodDynamic=e})),h.ec(3,"translate"),h.Rb(),h.Rb(),h.Sb(4,"mat-form-field"),h.Sb(5,"mat-label"),h.Jc(6),h.ec(7,"translate"),h.Rb(),h.Sb(8,"mat-select",8),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc(3).currentConfiguration.specialLoaPeriodDynamicUnit=e})),h.Hc(9,Ne,2,2,"mat-option",17),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=h.dc(3);h.Ab(2),h.lc("pattern",t.dynamicAmountPattern),h.lc("placeholder",h.fc(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.kc("ngModel",t.currentConfiguration.specialLoaPeriodDynamic),h.Ab(4),h.Kc(h.fc(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.Ab(2),h.kc("ngModel",t.currentConfiguration.specialLoaPeriodDynamicUnit),h.Ab(1),h.kc("ngForOf",t.amountOptions)}}function Le(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",28),h.Sb(1,"mat-radio-group",8),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc(2).currentConfiguration.specialLoaPeriodType=e})),h.Sb(2,"mat-radio-button",9,29),h.Jc(4),h.ec(5,"translate"),h.Rb(),h.Sb(6,"mat-radio-button",11,30),h.Jc(8),h.ec(9,"translate"),h.Rb(),h.Rb(),h.Hc(10,Oe,7,8,"div",13),h.Hc(11,_e,10,10,"div",14),h.Sb(12,"div"),h.Sb(13,"mat-checkbox",31),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=e})),h.Jc(14),h.ec(15,"translate"),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=h.tc(3),e=h.tc(7),i=h.dc(2);h.Ab(1),h.kc("ngModel",i.currentConfiguration.specialLoaPeriodType),h.Ab(3),h.Lc(" ",h.fc(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.Ab(4),h.Lc(" ",h.fc(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.Ab(2),h.kc("ngIf",t.checked),h.Ab(1),h.kc("ngIf",e.checked),h.Ab(2),h.kc("ngModel",i.currentConfiguration.specialLoaPeriodExtendExpiredMembers),h.Ab(1),h.Lc(" ",h.fc(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function ye(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",1),h.Sb(1,"div",2),h.Sb(2,"h1",3),h.Zb("click",(function(){return h.xc(t),h.tc(6).toggle()})),h.Jc(3),h.ec(4,"translate"),h.Rb(),h.Sb(5,"mat-slide-toggle",4,5),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.enabled=e})),h.Rb(),h.Rb(),h.Sb(7,"div"),h.Sb(8,"label",6),h.Jc(9),h.ec(10,"translate"),h.Rb(),h.Sb(11,"div",7),h.Sb(12,"mat-radio-group",8),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.periodType=e})),h.Sb(13,"mat-radio-button",9,10),h.Jc(15),h.ec(16,"translate"),h.Rb(),h.Sb(17,"mat-radio-button",11,12),h.Jc(19),h.ec(20,"translate"),h.Rb(),h.Rb(),h.Hc(21,Se,7,8,"div",13),h.Hc(22,Te,10,10,"div",14),h.Rb(),h.Sb(23,"app-settings-toggle-item",15),h.Zb("modelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.doNotAllowLoasEnabled=e})),h.ec(24,"translate"),h.Sb(25,"mat-form-field"),h.Sb(26,"mat-placeholder"),h.Jc(27),h.ec(28,"translate"),h.Rb(),h.Sb(29,"mat-select",16),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.doNotAllowLoas=e})),h.Hc(30,Ee,2,2,"mat-option",17),h.Rb(),h.Rb(),h.Rb(),h.Sb(31,"app-settings-toggle-item",15),h.Zb("modelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.doNotExtendLoasEnabled=e})),h.ec(32,"translate"),h.Sb(33,"mat-form-field"),h.Sb(34,"mat-placeholder"),h.Jc(35),h.ec(36,"translate"),h.Rb(),h.Sb(37,"mat-select",16),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.doNotExtendLoas=e})),h.Hc(38,ve,2,2,"mat-option",17),h.Rb(),h.Rb(),h.Rb(),h.Sb(39,"app-settings-toggle-item",15),h.Zb("modelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.gracePeriodEnabled=e})),h.ec(40,"translate"),h.Sb(41,"div",18),h.Sb(42,"mat-form-field",19),h.Sb(43,"input",20),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.gracePeriod=e})),h.ec(44,"translate"),h.Rb(),h.Rb(),h.Sb(45,"mat-form-field"),h.Sb(46,"mat-label"),h.Jc(47),h.ec(48,"translate"),h.Rb(),h.Sb(49,"mat-select",8),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.gracePeriodUnit=e})),h.Hc(50,Re,2,2,"mat-option",17),h.Rb(),h.Rb(),h.Rb(),h.Rb(),h.Sb(51,"app-settings-toggle-item",15),h.Zb("modelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.specialLoaPeriodEnabled=e})),h.ec(52,"translate"),h.Sb(53,"div",7),h.Sb(54,"div"),h.Sb(55,"mat-form-field"),h.Sb(56,"mat-label"),h.Jc(57),h.ec(58,"translate"),h.Rb(),h.Sb(59,"mat-select",8,21),h.Zb("ngModelChange",(function(e){return h.xc(t),h.dc().currentConfiguration.specialLoa=e})),h.Hc(61,Me,2,2,"mat-option",17),h.Rb(),h.Rb(),h.Hc(62,Le,16,13,"div",22),h.Rb(),h.Rb(),h.Rb(),h.Rb(),h.Sb(63,"div",23),h.ec(64,"translate"),h.Sb(65,"button",24),h.Zb("click",(function(){return h.xc(t),h.dc().saveChanges()})),h.Jc(66),h.ec(67,"translate"),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=h.tc(6),e=h.tc(14),i=h.tc(18),s=h.dc();h.Ab(2),h.Eb("unselected-setting",!t.checked),h.Ab(1),h.Lc(" ",h.fc(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),h.Ab(2),h.kc("ngModel",s.currentConfiguration.enabled),h.Ab(2),h.kc("@openClose",t.checked?"open":"closed"),h.Ab(2),h.Kc(h.fc(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),h.Ab(3),h.kc("ngModel",s.currentConfiguration.periodType),h.Ab(3),h.Lc(" ",h.fc(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.Ab(4),h.Lc(" ",h.fc(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.Ab(2),h.kc("ngIf",e.checked),h.Ab(1),h.kc("ngIf",i.checked),h.Ab(1),h.kc("model",s.currentConfiguration.doNotAllowLoasEnabled)("title",h.fc(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),h.Ab(4),h.Kc(h.fc(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),h.Ab(2),h.kc("ngModel",s.currentConfiguration.doNotAllowLoas),h.Ab(1),h.kc("ngForOf",s.LOAS),h.Ab(1),h.kc("model",s.currentConfiguration.doNotExtendLoasEnabled)("title",h.fc(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),h.Ab(4),h.Kc(h.fc(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),h.Ab(2),h.kc("ngModel",s.currentConfiguration.doNotExtendLoas),h.Ab(1),h.kc("ngForOf",s.LOAS),h.Ab(1),h.kc("model",s.currentConfiguration.gracePeriodEnabled)("title",h.fc(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),h.Ab(4),h.lc("pattern",s.dynamicAmountPattern),h.lc("placeholder",h.fc(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),h.kc("ngModel",s.currentConfiguration.gracePeriod),h.Ab(4),h.Kc(h.fc(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),h.Ab(2),h.kc("ngModel",s.currentConfiguration.gracePeriodUnit),h.Ab(1),h.kc("ngForOf",s.amountOptions),h.Ab(1),h.kc("model",s.currentConfiguration.specialLoaPeriodEnabled)("title",h.fc(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),h.Ab(6),h.Kc(h.fc(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),h.Ab(2),h.kc("ngModel",s.currentConfiguration.specialLoa),h.Ab(2),h.kc("ngForOf",s.LOAS),h.Ab(1),h.kc("ngIf",null!==s.currentConfiguration.specialLoa),h.Ab(1),h.lc("matTooltip",h.fc(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),h.kc("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),h.Ab(2),h.kc("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),h.Ab(1),h.Lc(" ",h.fc(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let Ce=(()=>{class t{constructor(){this.saveAttribute=new h.o,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 t=new Map;this.LOAS.forEach(e=>t.set(e,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}createInitConfiguration(){const t=new Map;return this.LOAS.forEach(e=>t.set(e,"")),{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(t){let e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}setPeriodValues(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";const i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}setDoNotAllowLoasValues(t,e){const i=[];return t.doNotAllowLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}setDoNotExtendLoasValues(t,e){const i=[];return t.doNotExtendLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}setGracePeriodValues(t,e){e.gracePeriodEnabled=!0;const i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}setSpecialLoaPeriodValues(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;let i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";const t=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=t}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}parseDynamicPeriod(t){return"+"+t.periodDynamic+t.periodDynamicUnit}parseStaticPeriod(t){return t.periodStatic}parseDontAllowLoas(t){if(!t.doNotAllowLoasEnabled)return null;let e="";return t.doNotAllowLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseDontExtendLoas(t){if(!t.doNotExtendLoasEnabled)return null;let e="";return t.doNotExtendLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseGracePeriod(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}parseSpecialLoaPeriod(t){if(!t.specialLoaPeriodEnabled)return null;let e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}parseSpecialLoaPeriodStatic(t){return t.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(t){if(!t.enabled)return null;const e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),s=this.parseDontExtendLoas(t),a=this.parseGracePeriod(t),o=this.parseSpecialLoaPeriod(t),n={period:e};return null!==s&&(n.doNotExtendLoa=s),null!==i&&(n.doNotAllowLoa=i),null!==a&&(n.gracePeriod=a),null!==o&&(n.periodLoa=o),n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Gb({type:t,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[h.yb],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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&h.Hc(0,ye,68,70,"div",0),2&t&&h.kc("ngIf",e.currentConfiguration)},directives:[s.t,be.a,ue.r,ue.u,pe.b,pe.a,de.a,he.c,he.h,ge.a,s.s,me.b,ue.c,ue.y,he.g,S.a,T.b,he.f,fe.n,Ie.a],pipes:[E.d],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;-ms-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[r.c]}}),t})();function Pe(t,e){if(1&t){const t=h.Tb();h.Sb(0,"app-expiration-settings",1),h.Zb("saveAttribute",(function(e){return h.xc(t),h.dc().saveExpirationAttribute(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("expirationAttribute",t.expirationAttribute)}}let ke=(()=>{class t{constructor(t,e,i,s,a){this.attributesManager=t,this.route=e,this.translate=i,this.notificator=s,this.apiRequest=a,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.loadSettings()})}loadSettings(){this.attributesManager.getVoAttributeByName(this.voId,p.a.VO_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.voId,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>{console.log(t),this.notificator.showRPCError(t.error,this.errorMessage)})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.c),h.Mb(a.a),h.Mb(E.e),h.Mb(u.l),h.Mb(u.b))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.Hc(0,Pe,1,1,"app-expiration-settings",0),2&t&&h.kc("ngIf",void 0!==e.expirationAttribute)},directives:[s.t,Ce],styles:[""],data:{animation:[r.c]}}),t})();var Ge=i("dWQl"),De=i("NU+N");function Ve(t,e){if(1&t&&h.Nb(0,"app-managers-page",1),2&t){const t=h.dc();h.kc("complementaryObject",t.vo)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)}}let we=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.voService=e,this.route=i,this.guiAuthResolver=s,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(g.b),h.Mb(l.q),h.Mb(a.a),h.Mb(u.h))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h.Hc(0,Ve,1,4,"app-managers-page",0),2&t&&h.kc("ngIf",e.vo)},directives:[s.t,De.a],styles:[""]}),t})();var xe=i("JVFj"),ze=i("ZTj5"),He=i("vNdQ"),Ue=i("zmEM"),Je=i("e+sS");function Be(t,e){if(1&t&&(h.Sb(0,"span",5),h.Jc(1),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.Lc(" #",t.application.id," ")}}function Fe(t,e){1&t&&h.Nb(0,"mat-spinner",6)}function Ze(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",17),h.Zb("click",(function(){return h.xc(t),h.dc(2).verifyApplication()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function $e(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",17),h.Zb("click",(function(){return h.xc(t),h.dc(2).approveApplication()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function Ke(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",18),h.Zb("click",(function(){return h.xc(t),h.dc(2).rejectApplication()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function je(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",18),h.Zb("click",(function(){return h.xc(t),h.dc(2).deleteApplication()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function Xe(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",19),h.Zb("click",(function(){return h.xc(t),h.dc(2).resendNotification()})),h.Sb(1,"i",14),h.Jc(2," mail_outline "),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()}2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function We(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"span",10),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Jc(4),h.Rb()),2&t){const t=h.dc(2);h.Ab(2),h.Kc(h.fc(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),h.Ab(2),h.Lc(": ",t.application.vo.name," ")}}function Ye(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"span",10),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Jc(4),h.Sb(5,"span",10),h.Jc(6),h.ec(7,"translate"),h.Rb(),h.Jc(8),h.Rb()),2&t){const t=h.dc(2);h.Ab(2),h.Kc(h.fc(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),h.Ab(2),h.Lc(": ",t.application.group.name," "),h.Ab(2),h.Kc(h.fc(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),h.Ab(2),h.Lc(": ",t.application.vo.name," ")}}function qe(t,e){1&t&&(h.Sb(0,"span"),h.Sb(1,"mat-icon",20),h.Jc(2,"arrow_right_alt"),h.Rb(),h.Jc(3," Initial "),h.Rb())}function Qe(t,e){1&t&&(h.Sb(0,"span"),h.Sb(1,"mat-icon",20),h.Jc(2,"restore"),h.Rb(),h.Jc(3," Extension "),h.Rb())}function ti(t,e){1&t&&(h.Sb(0,"span"),h.Sb(1,"mat-icon",20),h.Jc(2,"nat"),h.Rb(),h.Jc(3," Embedded "),h.Rb())}function ei(t,e){if(1&t&&(h.Sb(0,"div",21),h.Sb(1,"mat-card-title"),h.Sb(2,"i",22),h.Jc(3,"clear"),h.Rb(),h.Jc(4),h.ec(5,"translate"),h.Rb(),h.Sb(6,"div"),h.Sb(7,"span",10),h.Jc(8),h.ec(9,"translate"),h.Rb(),h.Jc(10),h.ec(11,"date"),h.Rb(),h.Rb()),2&t){const t=h.dc(2);h.Ab(4),h.Mc(" ",h.fc(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.Ab(4),h.Kc(h.fc(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.Ab(2),h.Lc(": ",h.gc(11,8,t.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function ii(t,e){if(1&t&&(h.Sb(0,"div",21),h.Sb(1,"mat-card-title"),h.Sb(2,"i",23),h.Jc(3,"done"),h.Rb(),h.Jc(4),h.ec(5,"translate"),h.Rb(),h.Sb(6,"div"),h.Sb(7,"span",10),h.Jc(8),h.ec(9,"translate"),h.Rb(),h.Jc(10),h.ec(11,"date"),h.Rb(),h.Rb()),2&t){const t=h.dc(2);h.Ab(4),h.Mc(" ",h.fc(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.Ab(4),h.Kc(h.fc(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.Ab(2),h.Lc(": ",h.gc(11,8,t.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function si(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"span",10),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Jc(4),h.Rb()),2&t){const t=h.dc(2);h.Ab(2),h.Kc(h.fc(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),h.Ab(2),h.Lc(": ",t.userMail,"")}}function ai(t,e){1&t&&h.Nb(0,"th",32)}function oi(t,e){if(1&t&&(h.Sb(0,"td",33),h.Jc(1),h.Rb()),2&t){const t=e.$implicit,i=h.dc(3);h.Ab(1),h.Mc("",i.getLabel(t.formItem),"",t.formItem.type.startsWith("FROM_FEDERATION")?"*":"","")}}function ni(t,e){1&t&&h.Nb(0,"th",32)}function ci(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",36),h.Zb("click",(function(){h.xc(t);const e=h.dc().$implicit;return h.dc(3).editApplicationData(e)})),h.Sb(1,"mat-icon"),h.Jc(2,"edit"),h.Rb(),h.Rb()}}function ri(t,e){if(1&t&&(h.Sb(0,"td",34),h.Jc(1),h.Hc(2,ci,3,0,"button",35),h.Rb()),2&t){const t=e.$implicit,i=h.dc(3);h.Ab(1),h.Lc(" ",t.value," "),h.Ab(1),h.kc("ngIf",!t.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===i.application.state||"VERIFIED"===i.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==t.formItem.type)}}function li(t,e){1&t&&h.Nb(0,"tr",37)}function bi(t,e){1&t&&h.Nb(0,"tr",38)}function ui(t,e){if(1&t&&(h.Sb(0,"table",24),h.Qb(1,25),h.Hc(2,ai,1,0,"th",26),h.Hc(3,oi,2,2,"td",27),h.Pb(),h.Qb(4,28),h.Hc(5,ni,1,0,"th",26),h.Hc(6,ri,3,2,"td",29),h.Pb(),h.Hc(7,li,1,0,"tr",30),h.Hc(8,bi,1,0,"tr",31),h.Rb()),2&t){const t=h.dc(2);h.kc("dataSource",t.dataSource),h.Ab(7),h.kc("matHeaderRowDef",t.displayedColumns),h.Ab(1),h.kc("matRowDefColumns",t.displayedColumns)}}function pi(t,e){1&t&&(h.Sb(0,"div",39),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.Ab(1),h.Lc("*",h.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS"),""))}function di(t,e){if(1&t&&(h.Sb(0,"div"),h.Hc(1,Ze,3,3,"button",7),h.Hc(2,$e,3,3,"button",7),h.Hc(3,Ke,3,3,"button",8),h.Hc(4,je,3,3,"button",8),h.Hc(5,Xe,5,3,"button",9),h.Hc(6,We,5,4,"div",4),h.Hc(7,Ye,9,8,"div",4),h.Sb(8,"div"),h.Sb(9,"span",10),h.Jc(10),h.ec(11,"translate"),h.Rb(),h.Jc(12,": "),h.Nb(13,"span",11),h.ec(14,"applicationState"),h.Rb(),h.Sb(15,"div"),h.Sb(16,"span",10),h.Jc(17),h.ec(18,"translate"),h.Rb(),h.Jc(19,": "),h.Hc(20,qe,4,0,"span",4),h.Hc(21,Qe,4,0,"span",4),h.Hc(22,ti,4,0,"span",4),h.Rb(),h.Hc(23,ei,12,11,"div",12),h.Hc(24,ii,12,11,"div",12),h.Sb(25,"div",13),h.Sb(26,"mat-card-title"),h.Sb(27,"i",14),h.Jc(28,"redo"),h.Rb(),h.Jc(29),h.ec(30,"translate"),h.ec(31,"userFullName"),h.Rb(),h.Hc(32,si,5,4,"div",4),h.Sb(33,"div"),h.Sb(34,"span",10),h.Jc(35),h.ec(36,"translate"),h.Rb(),h.Jc(37),h.Rb(),h.Sb(38,"div"),h.Sb(39,"span",10),h.Jc(40),h.ec(41,"translate"),h.Rb(),h.Jc(42),h.Rb(),h.Sb(43,"div"),h.Sb(44,"span",10),h.Jc(45),h.ec(46,"translate"),h.Rb(),h.Jc(47),h.ec(48,"date"),h.Rb(),h.Hc(49,ui,9,3,"table",15),h.Hc(50,pi,3,3,"div",16),h.Rb(),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("ngIf","NEW"==t.application.state&&t.verifyAuth),h.Ab(1),h.kc("ngIf",("VERIFIED"==t.application.state||"NEW"==t.application.state)&&t.approveAuth),h.Ab(1),h.kc("ngIf",("VERIFIED"==t.application.state||"NEW"==t.application.state)&&t.rejectAuth),h.Ab(1),h.kc("ngIf",("REJECTED"==t.application.state||"NEW"==t.application.state)&&t.deleteAuth),h.Ab(1),h.kc("ngIf",t.resendAuth),h.Ab(1),h.kc("ngIf",!t.application.group),h.Ab(1),h.kc("ngIf",t.application.group),h.Ab(3),h.Kc(h.fc(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),h.Ab(3),h.kc("outerHTML",h.fc(14,28,t.application.state),h.yc),h.Ab(4),h.Kc(h.fc(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),h.Ab(3),h.kc("ngIf","INITIAL"==t.application.type),h.Ab(1),h.kc("ngIf","EXTENSION"==t.application.type),h.Ab(1),h.kc("ngIf","EMBEDDED"==t.application.type),h.Ab(1),h.kc("ngIf","REJECTED"==t.application.state),h.Ab(1),h.kc("ngIf","APPROVED"==t.application.state),h.Ab(5),h.Mc(" ",h.fc(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===t.application.user?t.submittedBy():h.fc(31,34,t.application.user),""),h.Ab(3),h.kc("ngIf",t.userMail),h.Ab(3),h.Kc(h.fc(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),h.Ab(2),h.Lc(": ",t.application.extSourceName,""),h.Ab(3),h.Kc(h.fc(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),h.Ab(2),h.Lc(": ",t.application.extSourceLoa,""),h.Ab(3),h.Kc(h.fc(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.Ab(2),h.Lc(": ",h.gc(48,42,t.application.createdAt,"d.M.y H:mm:ss"),""),h.Ab(2),h.kc("ngIf",0!==t.userData.length),h.Ab(1),h.kc("ngIf",0!==t.userData.length)}}let hi=(()=>{class t{constructor(t,e,i,s,a,o,n,c){this.registrarManager=t,this.dialog=e,this.translate=i,this.route=s,this.notificator=a,this.router=o,this.authResolver=n,this.usersService=c,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.dialogTheme=t.groupId?"group-theme":t.memberId?"member-theme":"vo-theme",this.registrarManager.getApplicationById(t.applicationId).subscribe(t=>{this.application=t,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(t=>{var e;const i=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.userMail=null===(e=null==i?void 0:i.value)||void 0===e?void 0:e.toString(),this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(t=>{this.userData=t,this.dataSource=new at.o(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(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}resendNotification(){const t=Object(b.o)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(xe.a,t)}deleteApplication(){this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(t=>{this.notificator.showSuccess(t),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})}rejectApplication(){const t=Object(b.o)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ze.a,t).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,this.loading=!1})})}approveApplication(){this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(t=>{this.notificator.showSuccess(t)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,this.loading=!1})})}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(t=>{this.notificator.showSuccess(t)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,this.loading=!1})})}editApplicationData(t){const e=Object(b.o)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(He.a,e)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.l),h.Mb(g.b),h.Mb(E.e),h.Mb(a.a),h.Mb(u.l),h.Mb(a.f),h.Mb(u.h),h.Mb(l.p))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(h.Sb(0,"h2",0),h.Jc(1),h.ec(2,"translate"),h.Hc(3,Be,2,1,"span",1),h.Rb(),h.Nb(4,"mat-divider",2),h.Hc(5,Fe,1,0,"mat-spinner",3),h.Hc(6,di,51,45,"div",4)),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),h.Ab(2),h.kc("ngIf",!!e.application),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,Ue.a,f.c,nt.m,T.b,I.a,at.n,at.c,at.i,at.b,at.k,at.m,at.h,at.a,at.j,at.l],pipes:[E.d,Je.a,bt.a,s.f],styles:[""]}),t})();var gi=i("vUMc"),mi=i("got8");let fi=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&h.Nb(0,"app-animated-router-outlet")},directives:[A.a],styles:[""],data:{animation:[r.a]}}),t})();var Ii=i("KZIX"),Si=i("bdug");const Ai=["list"];function Ti(t,e){1&t&&(h.Jc(0),h.ec(1,"translate")),2&t&&h.Lc(" ",h.fc(1,1,"GROUP_DETAIL.ENTITY")," ")}function Ei(t,e){1&t&&h.Nb(0,"mat-spinner",10)}function vi(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-attributes-list",11,12),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("attributes",t.attributes)("selection",t.selection)}}function Ri(t,e){1&t&&(h.Jc(0),h.ec(1,"translate"),h.ec(2,"translate")),2&t&&h.Mc(" ",h.fc(1,2,"GROUP_DETAIL.ENTITY")," - ",h.fc(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Mi(t,e){if(1&t&&h.Nb(0,"app-two-entity-attribute-page",15),2&t){const t=h.dc(3);h.kc("firstEntity","group")("firstEntityId",t.groupId)("secondEntity","member")}}function Oi(t,e){if(1&t&&h.Hc(0,Mi,1,3,"app-two-entity-attribute-page",14),2&t){const t=h.dc(2);h.kc("ngIf",!t.loading)}}function Ni(t,e){1&t&&(h.Sb(0,"mat-tab"),h.Hc(1,Ri,3,6,"ng-template",1),h.Hc(2,Oi,1,1,"ng-template",13),h.Rb())}function _i(t,e){1&t&&(h.Jc(0),h.ec(1,"translate"),h.ec(2,"translate")),2&t&&h.Mc(" ",h.fc(1,2,"GROUP_DETAIL.ENTITY")," - ",h.fc(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Li(t,e){if(1&t&&h.Nb(0,"app-two-entity-attribute-page",15),2&t){const t=h.dc(3);h.kc("firstEntity","group")("firstEntityId",t.groupId)("secondEntity","resource")}}function yi(t,e){if(1&t&&h.Hc(0,Li,1,3,"app-two-entity-attribute-page",14),2&t){const t=h.dc(2);h.kc("ngIf",!t.loading)}}function Ci(t,e){1&t&&(h.Sb(0,"mat-tab"),h.Hc(1,_i,3,6,"ng-template",1),h.Hc(2,yi,1,1,"ng-template",13),h.Rb())}let Pi=(()=>{class t{constructor(t,e,i,s,a,o,n,c){this.route=t,this.attributesManager=e,this.groupManager=i,this.notificator=s,this.dialog=a,this.translate=o,this.tableConfigService=n,this.authResolver=c,this.selection=new $t.c(!0,[]),this.attributes=[],this.filterValue="",this.tableId=Xt.r,this.translate.get("GROUP_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe(t=>this.saveSuccessMessage=t),this.translate.get("GROUP_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe(t=>this.deleteSuccessMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.groupManager.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.groupResourceAttAuth=this.authResolver.isAuthorized("getAssignedResources_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_boolean_policy",[this.group]),this.refreshTable()})})}onCreate(){const t=Object(b.o)();t.width="1050px",t.data={entityId:this.groupId,entity:"group",notEmptyAttributes:this.attributes,style:"group-theme"},this.dialog.open(Wt.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=Object(b.o)();t.width="450px",t.data={entityId:this.groupId,entity:"group",attributes:this.selection.selected},this.dialog.open(d.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=Object(b.o)();t.width="450px",t.data={entityId:this.groupId,entity:"group",attributes:this.selection.selected},this.dialog.open(Kt.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getGroupAttributes(this.groupId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.c),h.Mb(l.h),h.Mb(u.l),h.Mb(g.b),h.Mb(E.e),h.Mb(Xt.pb),h.Mb(u.h))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-attributes"]],viewQuery:function(t,e){var i;1&t&&h.Qc(Ai,!0),2&t&&h.sc(i=h.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:22,vars:19,consts:[[1,"page-subtitle"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"mat-tab-group"),h.Sb(5,"mat-tab"),h.Hc(6,Ti,2,3,"ng-template",1),h.Sb(7,"perun-web-apps-refresh-button",2),h.Zb("refresh",(function(){return e.refreshTable()})),h.Rb(),h.Sb(8,"button",3),h.Zb("click",(function(){return e.onCreate()})),h.Jc(9),h.ec(10,"translate"),h.Rb(),h.Sb(11,"button",4),h.Zb("click",(function(){return e.onSave()})),h.Jc(12),h.ec(13,"translate"),h.Rb(),h.Sb(14,"button",5),h.Zb("click",(function(){return e.onDelete()})),h.Jc(15),h.ec(16,"translate"),h.Rb(),h.Sb(17,"perun-web-apps-immediate-filter",6),h.Zb("filter",(function(t){return e.applyFilter(t)})),h.Rb(),h.Hc(18,Ei,1,0,"mat-spinner",7),h.Hc(19,vi,2,4,"perun-web-apps-attributes-list",8),h.Rb(),h.Hc(20,Ni,3,0,"mat-tab",9),h.Hc(21,Ci,3,0,"mat-tab",9),h.Rb(),h.Rb()),2&t&&(h.Ab(2),h.Kc(h.fc(3,11,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.Ab(7),h.Lc(" ",h.fc(10,13,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),h.Ab(2),h.kc("disabled",0===e.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(13,15,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),h.Ab(2),h.kc("disabled",0===e.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(16,17,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),h.Ab(2),h.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",e.groupMemberAttAuth),h.Ab(1),h.kc("ngIf",e.groupResourceAttAuth))},directives:[Ii.c,Ii.a,Ii.d,Yt.a,T.b,qt.a,s.t,f.c,Qt.a,Ii.b,Si.a],pipes:[E.d],styles:[""]}),t})();function ki(t,e){1&t&&h.Nb(0,"mat-spinner",2)}function Gi(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"perun-web-apps-menu-buttons-field",3),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("items",t.items)("size","small")}}let Di=(()=>{class t{constructor(t,e,i,s,a,o,n,c,r){this.sideMenuService=t,this.voService=e,this.groupService=i,this.route=s,this.router=a,this.guiAuthResolver=o,this.apiRequest=n,this.attributesManager=c,this.notificator=r,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{const e=t.voId;this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.initItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,p.a.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.guiAuthResolver.isManagerPagePrivileged(this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group])&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[this.group])&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(l.q),h.Mb(l.h),h.Mb(a.a),h.Mb(a.f),h.Mb(u.h),h.Mb(u.b),h.Mb(l.c),h.Mb(u.l))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(t,e){1&t&&(h.Hc(0,ki,1,0,"mat-spinner",0),h.Hc(1,Gi,2,2,"div",1)),2&t&&(h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,F.a],styles:[""]}),t})();var Vi=i("IgBI");function wi(t,e){1&t&&h.Nb(0,"mat-spinner",3)}function xi(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",8),h.Zb("click",(function(){return h.xc(t),h.dc(2).switchToInitial()})),h.Sb(1,"i",9),h.Jc(2,"arrow_right_alt"),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()}2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function zi(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",8),h.Zb("click",(function(){return h.xc(t),h.dc(2).switchToExtension()})),h.Sb(1,"i",9),h.Jc(2,"cached"),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()}2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function Hi(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",8),h.Zb("click",(function(){return h.xc(t),h.dc(2).switchToEnglish()})),h.Sb(1,"i",9),h.Jc(2,"public"),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()}2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_ENGLISH")," "))}function Ui(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",8),h.Zb("click",(function(){return h.xc(t),h.dc(2).switchToCzech()})),h.Sb(1,"i",9),h.Jc(2,"public"),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()}2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_CZECH")," "))}function Ji(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"div",15),h.Nb(5,"input",16),h.Rb(),h.Rb(),h.Sb(6,"div",14),h.Sb(7,"span",17),h.Jc(8),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(5),h.Kc(e.getLocalizedHint(t))}}function Bi(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"div",15),h.Nb(5,"input",18),h.Rb(),h.Rb(),h.Sb(6,"div",14),h.Sb(7,"span",17),h.Jc(8),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(5),h.Kc(e.getLocalizedHint(t))}}function Fi(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"div",15),h.Nb(5,"input",19),h.Nb(6,"br"),h.Nb(7,"input",16),h.Rb(),h.Rb(),h.Sb(8,"div",14),h.Sb(9,"span",17),h.Jc(10),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(7),h.Kc(e.getLocalizedHint(t))}}function Zi(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"input",21),h.Jc(2),h.Nb(3,"br"),h.Rb()),2&t){const t=e.$implicit;h.Ab(2),h.Lc(" ",t,"")}}function $i(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"form",15),h.Hc(5,Zi,4,1,"div",7),h.Nb(6,"input",20),h.ec(7,"translate"),h.Rb(),h.Rb(),h.Sb(8,"div",14),h.Sb(9,"span",17),h.Jc(10),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(2),h.kc("ngForOf",e.getLocalizedOptions(t)),h.Ab(1),h.lc("value",h.fc(7,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),h.Ab(4),h.Kc(e.getLocalizedHint(t))}}function Ki(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"span",22),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(1),h.kc("innerHTML",e.getLocalizedLabel(t),h.yc)}}function ji(t,e){if(1&t&&(h.Sb(0,"option"),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.Ab(1),h.Kc(t)}}function Xi(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"div",15),h.Sb(5,"select",23),h.Hc(6,ji,2,1,"option",7),h.Rb(),h.Rb(),h.Rb(),h.Sb(7,"div",14),h.Sb(8,"span",17),h.Jc(9),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(3),h.kc("ngForOf",e.getLocalizedOptions(t)),h.Ab(3),h.Kc(e.getLocalizedHint(t))}}function Wi(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Nb(4,"textarea",15),h.Rb(),h.Sb(5,"div",14),h.Sb(6,"span",17),h.Jc(7),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(4),h.Kc(e.getLocalizedHint(t))}}function Yi(t,e){if(1&t&&(h.Sb(0,"option",28),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.Ab(1),h.Kc(t)}}function qi(t,e){1&t&&(h.Sb(0,"div",23),h.Sb(1,"form"),h.Nb(2,"input",29),h.Rb(),h.Rb())}function Qi(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"div",15),h.Sb(5,"select",24),h.Zb("ngModelChange",(function(e){h.xc(t);const i=h.dc(2).$implicit;return h.dc(2).mapForCombobox[i.id]=e})),h.Sb(6,"option",25),h.Jc(7),h.ec(8,"translate"),h.Rb(),h.Hc(9,Yi,2,1,"option",26),h.Rb(),h.Hc(10,qi,3,0,"div",27),h.Rb(),h.Rb(),h.Sb(11,"div",14),h.Sb(12,"span",17),h.Jc(13),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(2),h.kc("ngModel",e.mapForCombobox[t.id]),h.Ab(2),h.Kc(h.fc(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),h.Ab(2),h.kc("ngForOf",e.getLocalizedOptions(t)),h.Ab(1),h.kc("ngIf","true"===e.mapForCombobox[t.id]),h.Ab(3),h.Kc(e.getLocalizedHint(t))}}function ts(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"input",30),h.Jc(2),h.Rb()),2&t){const t=e.$implicit;h.Ab(2),h.Lc(" ",t," ")}}function es(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"div",15),h.Sb(5,"form",23),h.Hc(6,ts,3,1,"div",7),h.Rb(),h.Rb(),h.Rb(),h.Sb(7,"div",14),h.Sb(8,"span",17),h.Jc(9),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(3),h.kc("ngForOf",e.getLocalizedOptions(t)),h.Ab(3),h.Kc(e.getLocalizedHint(t))}}function is(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"div",15),h.Sb(5,"form",23),h.Nb(6,"input",30),h.Jc(7," example group1 "),h.Nb(8,"br"),h.Nb(9,"input",30),h.Jc(10," example group2 "),h.Nb(11,"br"),h.Nb(12,"input",30),h.Jc(13," example group3 "),h.Rb(),h.Rb(),h.Rb(),h.Sb(14,"div",14),h.Sb(15,"span",17),h.Jc(16),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(13),h.Kc(e.getLocalizedHint(t))}}function ss(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"button",31),h.Jc(2),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(2),h.Kc(e.getLocalizedLabel(t))}}function as(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"button",31),h.Jc(2),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(2),h.Kc(e.getLocalizedLabel(t))}}function os(t,e){if(1&t&&(h.Sb(0,"div",13),h.Sb(1,"div",14),h.Sb(2,"span",15),h.Jc(3),h.Rb(),h.Sb(4,"div",15),h.Sb(5,"select",32),h.Sb(6,"option",33),h.Jc(7),h.ec(8,"translate"),h.Rb(),h.Sb(9,"option",34),h.Jc(10,"(GMT -12:00) Eniwetok, Kwajalein"),h.Rb(),h.Sb(11,"option",35),h.Jc(12,"(GMT -11:00) Midway Island, Samoa"),h.Rb(),h.Sb(13,"option",36),h.Jc(14,"(GMT -10:00) Hawaii"),h.Rb(),h.Sb(15,"option",37),h.Jc(16,"(GMT -9:30) Taiohae"),h.Rb(),h.Sb(17,"option",38),h.Jc(18,"(GMT -9:00) Alaska"),h.Rb(),h.Sb(19,"option",39),h.Jc(20,"(GMT -8:00) Pacific Time (US & Canada)"),h.Rb(),h.Sb(21,"option",40),h.Jc(22,"(GMT -7:00) Mountain Time (US & Canada)"),h.Rb(),h.Sb(23,"option",41),h.Jc(24,"(GMT -6:00) Central Time (US & Canada), Mexico City"),h.Rb(),h.Sb(25,"option",42),h.Jc(26,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),h.Rb(),h.Sb(27,"option",43),h.Jc(28,"(GMT -4:30) Caracas"),h.Rb(),h.Sb(29,"option",44),h.Jc(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),h.Rb(),h.Sb(31,"option",45),h.Jc(32,"(GMT -3:30) Newfoundland"),h.Rb(),h.Sb(33,"option",46),h.Jc(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),h.Rb(),h.Sb(35,"option",47),h.Jc(36,"(GMT -2:00) Mid-Atlantic"),h.Rb(),h.Sb(37,"option",48),h.Jc(38,"(GMT -1:00) Azores, Cape Verde Islands"),h.Rb(),h.Sb(39,"option",49),h.Jc(40,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),h.Rb(),h.Sb(41,"option",50),h.Jc(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),h.Rb(),h.Sb(43,"option",51),h.Jc(44,"(GMT +2:00) Kaliningrad, South Africa"),h.Rb(),h.Sb(45,"option",52),h.Jc(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),h.Rb(),h.Sb(47,"option",53),h.Jc(48,"(GMT +3:30) Tehran"),h.Rb(),h.Sb(49,"option",54),h.Jc(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),h.Rb(),h.Sb(51,"option",55),h.Jc(52,"(GMT +4:30) Kabul"),h.Rb(),h.Sb(53,"option",56),h.Jc(54,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),h.Rb(),h.Sb(55,"option",57),h.Jc(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),h.Rb(),h.Sb(57,"option",58),h.Jc(58,"(GMT +5:45) Kathmandu, Pokhara"),h.Rb(),h.Sb(59,"option",59),h.Jc(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),h.Rb(),h.Sb(61,"option",60),h.Jc(62,"(GMT +6:30) Yangon, Mandalay"),h.Rb(),h.Sb(63,"option",61),h.Jc(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),h.Rb(),h.Sb(65,"option",62),h.Jc(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),h.Rb(),h.Sb(67,"option",63),h.Jc(68,"(GMT +8:45) Eucla"),h.Rb(),h.Sb(69,"option",64),h.Jc(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),h.Rb(),h.Sb(71,"option",65),h.Jc(72,"(GMT +9:30) Adelaide, Darwin"),h.Rb(),h.Sb(73,"option",66),h.Jc(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),h.Rb(),h.Sb(75,"option",67),h.Jc(76,"(GMT +10:30) Lord Howe Island"),h.Rb(),h.Sb(77,"option",68),h.Jc(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),h.Rb(),h.Sb(79,"option",69),h.Jc(80,"(GMT +11:30) Norfolk Island"),h.Rb(),h.Sb(81,"option",70),h.Jc(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),h.Rb(),h.Sb(83,"option",71),h.Jc(84,"(GMT +12:45) Chatham Islands"),h.Rb(),h.Sb(85,"option",72),h.Jc(86,"(GMT +13:00) Apia, Nukualofa"),h.Rb(),h.Sb(87,"option",73),h.Jc(88,"(GMT +14:00) Line Islands, Tokelau"),h.Rb(),h.Rb(),h.Rb(),h.Rb(),h.Sb(89,"div",14),h.Sb(90,"span",17),h.Jc(91),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.dc(2).$implicit,e=h.dc(2);h.Ab(3),h.Kc(e.getLocalizedLabel(t)),h.Ab(4),h.Lc(" ",h.fc(8,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),h.Ab(84),h.Kc(e.getLocalizedHint(t))}}function ns(t,e){if(1&t&&(h.Sb(0,"div",11),h.Hc(1,Ji,9,2,"div",12),h.Hc(2,Bi,9,2,"div",12),h.Hc(3,Fi,11,2,"div",12),h.Hc(4,$i,11,6,"div",12),h.Hc(5,Ki,2,1,"div",2),h.Hc(6,Xi,10,3,"div",12),h.Hc(7,Wi,8,2,"div",12),h.Hc(8,Qi,14,8,"div",12),h.Hc(9,es,10,3,"div",12),h.Hc(10,is,17,2,"div",12),h.Hc(11,ss,3,1,"div",12),h.Hc(12,as,3,1,"div",2),h.Hc(13,os,92,5,"div",12),h.Rb()),2&t){const t=h.dc().$implicit;h.Ab(1),h.kc("ngIf","TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type),h.Ab(1),h.kc("ngIf","FROM_FEDERATION_SHOW"===t.type),h.Ab(1),h.kc("ngIf","PASSWORD"===t.type),h.Ab(1),h.kc("ngIf","RADIO"===t.type),h.Ab(1),h.kc("ngIf","HEADING"===t.type||"HTML_COMMENT"===t.type),h.Ab(1),h.kc("ngIf","SELECTIONBOX"===t.type),h.Ab(1),h.kc("ngIf","TEXTAREA"===t.type),h.Ab(1),h.kc("ngIf","COMBOBOX"===t.type),h.Ab(1),h.kc("ngIf","CHECKBOX"===t.type),h.Ab(1),h.kc("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type),h.Ab(1),h.kc("ngIf","SUBMIT_BUTTON"===t.type),h.Ab(1),h.kc("ngIf","AUTO_SUBMIT_BUTTON"===t.type),h.Ab(1),h.kc("ngIf","TIMEZONE"===t.type)}}function cs(t,e){if(1&t&&(h.Sb(0,"div"),h.Hc(1,ns,14,13,"div",10),h.Rb()),2&t){const t=e.$implicit,i=h.dc(2);h.Ab(1),h.kc("ngIf",i.isValid(t))}}function rs(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"div",4),h.Hc(2,xi,5,3,"button",5),h.Hc(3,zi,5,3,"button",5),h.Hc(4,Hi,5,3,"button",5),h.Hc(5,Ui,5,3,"button",5),h.Rb(),h.Sb(6,"div",6),h.Hc(7,cs,2,1,"div",7),h.Rb(),h.Rb()),2&t){const t=h.dc();h.Ab(2),h.kc("ngIf",!t.initialPage),h.Ab(1),h.kc("ngIf",t.initialPage),h.Ab(1),h.kc("ngIf","cs"===t.language),h.Ab(1),h.kc("ngIf","en"===t.language),h.Ab(2),h.kc("ngForOf",t.applicationFormItems)}}let ls=(()=>{class t{constructor(t){this.route=t,this.loading=!0,this.applicationFormItems=[],this.language="en",this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.route.queryParamMap.subscribe(t=>{this.applicationFormItems=JSON.parse(t.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}switchToEnglish(){this.language="en"}switchToCzech(){this.language="cs"}getLocalizedOptions(t){if(t.i18n[this.language]){const e=t.i18n[this.language].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}isValid(t){if(t.forDelete)return!1;for(const e of t.applicationTypes){if("INITIAL"===e&&this.initialPage)return!0;if("EXTENSION"===e&&!this.initialPage)return!0}return!1}getLocalizedLabel(t){return t.i18n[this.language]?t.i18n[this.language].label:t.shortname}getLocalizedHint(t){return t.i18n[this.language]?t.i18n[this.language].help:""}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},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","d-flex","mb-2"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["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"],[1,"ml-2"],["type","text","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100"],["type","reset",3,"value"],["type","radio","name","temp"],[3,"innerHTML"],[1,"w-100"],[1,"w-100",3,"ngModel","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],["type","text"],["type","checkbox"],["mat-flat-button","","color","accent"],["name","timezone_offset","id","timezone-offset",1,"w-100"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Hc(3,wi,1,0,"mat-spinner",1),h.Hc(4,rs,8,5,"div",2)),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,s.s,T.b,ue.H,ue.s,ue.t,ue.w,ue.G,ue.D,ue.r,ue.u],pipes:[E.d],styles:[""]}),t})(),bs=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Gb({type:t,selectors:[["app-member-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&h.Nb(0,"app-animated-router-outlet")},directives:[A.a],styles:[""],data:{animation:[r.a]}}),t})();function us(t,e){1&t&&h.Nb(0,"mat-spinner",2)}function ps(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"perun-web-apps-menu-buttons-field",3),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("items",t.items)("size","small")}}let ds=(()=>{class t{constructor(t,e,i,s){this.sideMenuService=t,this.voService=e,this.memberManager=i,this.route=s,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{const e=t.voId;this.memberManager.getMemberById(t.memberId).subscribe(t=>{this.member=t,this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.initItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}initItems(){this.items=[]}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(l.q),h.Mb(l.i),h.Mb(a.a))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-member-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(t,e){1&t&&(h.Hc(0,us,1,0,"mat-spinner",0),h.Hc(1,ps,2,2,"div",1)),2&t&&(h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,F.a],styles:[""]}),t})();const hs=["list"];function gs(t,e){1&t&&(h.Jc(0),h.ec(1,"translate")),2&t&&h.Lc(" ",h.fc(1,1,"MEMBER_DETAIL.ENTITY")," ")}function ms(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",10),h.Zb("click",(function(){return h.xc(t),h.dc().onCreate()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "))}function fs(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",11),h.Zb("click",(function(){return h.xc(t),h.dc().onSave()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," ")}}function Is(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",12),h.Zb("click",(function(){return h.xc(t),h.dc().onDelete()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," ")}}function Ss(t,e){1&t&&h.Nb(0,"mat-spinner",13)}function As(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-attributes-list",14,15),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("attributes",t.attributes)("selection",t.selection)}}function Ts(t,e){1&t&&(h.Jc(0),h.ec(1,"translate"),h.ec(2,"translate")),2&t&&h.Mc(" ",h.fc(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.fc(2,4,"GROUP_DETAIL.ENTITY")," ")}function Es(t,e){if(1&t&&h.Nb(0,"app-two-entity-attribute-page",18),2&t){const t=h.dc(3);h.kc("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","group")}}function vs(t,e){if(1&t&&h.Hc(0,Es,1,3,"app-two-entity-attribute-page",17),2&t){const t=h.dc(2);h.kc("ngIf",!t.loading)}}function Rs(t,e){1&t&&(h.Sb(0,"mat-tab"),h.Hc(1,Ts,3,6,"ng-template",1),h.Hc(2,vs,1,1,"ng-template",16),h.Rb())}function Ms(t,e){1&t&&(h.Jc(0),h.ec(1,"translate"),h.ec(2,"translate")),2&t&&h.Mc(" ",h.fc(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.fc(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Os(t,e){if(1&t&&h.Nb(0,"app-two-entity-attribute-page",18),2&t){const t=h.dc(3);h.kc("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","resource")}}function Ns(t,e){if(1&t&&h.Hc(0,Os,1,3,"app-two-entity-attribute-page",17),2&t){const t=h.dc(2);h.kc("ngIf",!t.loading)}}function _s(t,e){1&t&&(h.Sb(0,"mat-tab"),h.Hc(1,Ms,3,6,"ng-template",1),h.Hc(2,Ns,1,1,"ng-template",16),h.Rb())}let Ls=(()=>{class t{constructor(t,e,i,s,a,o,n,c){this.route=t,this.attributesManager=e,this.notificator=i,this.dialog=s,this.translate=a,this.tableConfigService=o,this.authResolver=n,this.memberManager=c,this.selection=new $t.c(!0,[]),this.attributes=[],this.filterValue="",this.tableId=Xt.r,this.translate.get("MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe(t=>this.saveSuccessMessage=t),this.translate.get("MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe(t=>this.deleteSuccessMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAllowedResources_Member_policy",[this.member]),this.refreshTable()})})}onCreate(){const t=Object(b.o)();t.width="1050px",t.data={entityId:this.memberId,entity:"member",notEmptyAttributes:this.attributes,style:"member-theme"},this.dialog.open(Wt.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=Object(b.o)();t.width="450px",t.data={entityId:this.memberId,entity:"member",attributes:this.selection.selected},this.dialog.open(d.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=Object(b.o)();t.width="450px",t.data={entityId:this.memberId,entity:"member",attributes:this.selection.selected},this.dialog.open(Kt.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getMemberAttributes(this.memberId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.c),h.Mb(u.l),h.Mb(g.b),h.Mb(E.e),h.Mb(Xt.pb),h.Mb(u.h),h.Mb(l.i))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-member-attributes"]],viewQuery:function(t,e){var i;1&t&&h.Qc(hs,!0),2&t&&h.sc(i=h.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:16,vars:11,consts:[[1,"page-subtitle"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","class","mr-2 mt-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2 mt-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mt-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"mat-tab-group"),h.Sb(5,"mat-tab"),h.Hc(6,gs,2,3,"ng-template",1),h.Sb(7,"perun-web-apps-refresh-button",2),h.Zb("refresh",(function(){return e.refreshTable()})),h.Rb(),h.Hc(8,ms,3,3,"button",3),h.Hc(9,fs,3,4,"button",4),h.Hc(10,Is,3,4,"button",5),h.Sb(11,"perun-web-apps-immediate-filter",6),h.Zb("filter",(function(t){return e.applyFilter(t)})),h.Rb(),h.Hc(12,Ss,1,0,"mat-spinner",7),h.Hc(13,As,2,4,"perun-web-apps-attributes-list",8),h.Rb(),h.Hc(14,Rs,3,0,"mat-tab",9),h.Hc(15,_s,3,0,"mat-tab",9),h.Rb(),h.Rb()),2&t&&(h.Ab(2),h.Kc(h.fc(3,9,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.Ab(6),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",e.memberGroupAttAuth),h.Ab(1),h.kc("ngIf",e.memberResourceAttAuth))},directives:[Ii.c,Ii.a,Ii.d,Yt.a,s.t,qt.a,T.b,f.c,Qt.a,Ii.b,Si.a],pipes:[E.d],styles:[""]}),t})(),ys=(()=>{class t{constructor(t,e,i,s,a){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.route=s,this.router=a,this.items=[]}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initItems()})})}initItems(){this.items=[{cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[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.authResolver.isAuthorized("getResourcesState_Vo_policy",[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 t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(l.q),h.Mb(u.h),h.Mb(a.a),h.Mb(a.f))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Nb(1,"perun-web-apps-menu-buttons-field",0),h.Rb()),2&t&&(h.Ab(1),h.kc("items",e.items)("size","small"))},directives:[F.a],styles:[""]}),t})();var Cs=i("5bHy"),Ps=i("KSio"),ks=i("yLXW"),Gs=i("mPlY"),Ds=i("Rbfv");function Vs(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",7),h.Zb("click",(function(){return h.xc(t),h.dc().create()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function ws(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",8),h.Zb("click",(function(){return h.xc(t),h.dc().deleteTag()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function xs(t,e){1&t&&h.Nb(0,"mat-spinner",9)}function zs(t,e){if(1&t){const t=h.Tb();h.Sb(0,"app-resources-tags-list",10),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("selection",t.selection)("pageSize",t.pageSize)("resourceTags",t.resourceTag)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)}}let Hs=(()=>{class t{constructor(t,e,i,s,a,o,n,c){this.route=t,this.resourceManager=e,this.dialog=i,this.notificator=s,this.tableConfigService=a,this.translator=o,this.authResolver=n,this.voService=c,this.loading=!1,this.resourceTag=[],this.selection=new $t.c(!0,[]),this.tableId=Xt.mb,this.displayedColumns=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.updateData()})})}deleteTag(){const t=Object(b.o)();t.width="450px",t.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Gs.a,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}create(){const t=Object(b.o)();t.width="450px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(ks.a,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.voId).subscribe(t=>{this.resourceTag=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}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")}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.m),h.Mb(g.b),h.Mb(u.l),h.Mb(Xt.pb),h.Mb(E.e),h.Mb(u.h),h.Mb(l.q))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","page"]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Sb(3,"perun-web-apps-refresh-button",1),h.Zb("refresh",(function(){return e.updateData()})),h.Rb(),h.Hc(4,Vs,3,3,"button",2),h.Hc(5,ws,3,4,"button",3),h.Sb(6,"perun-web-apps-immediate-filter",4),h.Zb("filter",(function(t){return e.applyFilter(t)})),h.Rb(),h.Hc(7,xs,1,0,"mat-spinner",5),h.Hc(8,zs,1,5,"app-resources-tags-list",6)),2&t&&(h.Ab(1),h.Kc(h.fc(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),h.Ab(3),h.kc("ngIf",e.createAuth),h.Ab(1),h.kc("ngIf",e.deleteAuth),h.Ab(1),h.kc("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[Yt.a,s.t,qt.a,T.b,f.c,Ds.a],pipes:[E.d],styles:[""]}),t})();function Us(t,e){if(1&t){const t=h.Tb();h.Sb(0,"app-expiration-settings",1),h.Zb("saveAttribute",(function(e){return h.xc(t),h.dc().saveExpirationAttribute(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("expirationAttribute",t.expirationAttribute)}}let Js=(()=>{class t{constructor(t,e,i,s,a){this.attributesManager=t,this.route=e,this.translate=i,this.notificator=s,this.apiRequest=a,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.groupId=t.groupId,this.loadSettings()})}loadSettings(){this.attributesManager.getGroupAttributeByName(this.groupId,p.a.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.groupId,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>this.notificator.showRPCError(t.error,this.errorMessage))}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.c),h.Mb(a.a),h.Mb(E.e),h.Mb(u.l),h.Mb(u.b))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.Hc(0,Us,1,1,"app-expiration-settings",0),2&t&&h.kc("ngIf",void 0!==e.expirationAttribute)},directives:[s.t,Ce],styles:[""]}),t})();function Bs(t,e){if(1&t&&h.Nb(0,"app-managers-page",1),2&t){const t=h.dc();h.kc("complementaryObject",t.group)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)}}let Fs=(()=>{class t{constructor(t,e,i){this.groupService=t,this.route=e,this.guiAuthResolver=i,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.h),h.Mb(a.a),h.Mb(u.h))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h.Hc(0,Bs,1,4,"app-managers-page",0),2&t&&h.kc("ngIf",e.group)},directives:[s.t,De.a],styles:[""]}),t})();var Zs=i("zSH9"),$s=i("Tsqg"),Ks=i("0N5F"),js=i("is9t"),Xs=i("iAde"),Ws=i("cePI");function Ys(t,e){if(1&t){const t=h.Tb();h.Sb(0,"th",15),h.Sb(1,"mat-checkbox",16),h.Zb("change",(function(e){h.xc(t);const i=h.dc();return e?i.masterToggle():null})),h.Rb(),h.Rb()}if(2&t){const t=h.dc();h.Ab(1),h.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function qs(t,e){if(1&t){const t=h.Tb();h.Sb(0,"td",17),h.Sb(1,"mat-checkbox",18),h.Zb("change",(function(i){h.xc(t);const s=e.$implicit,a=h.dc();return i?a.toggle(s):null}))("click",(function(e){return h.xc(t),e.stopPropagation()})),h.Rb(),h.Rb()}if(2&t){const t=e.$implicit,i=h.dc();h.Ab(1),h.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Qs(t,e){1&t&&(h.Sb(0,"th",19),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function ta(t,e){if(1&t&&(h.Sb(0,"td",17),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.Ab(1),h.Kc(t.id)}}function ea(t,e){1&t&&(h.Sb(0,"th",19),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function ia(t,e){if(1&t&&(h.Sb(0,"td",20),h.Jc(1),h.Rb()),2&t){const t=e.$implicit,i=h.dc();h.Ab(1),h.Kc(i.getMailType(t))}}function sa(t,e){1&t&&(h.Sb(0,"th",19),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function aa(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"mat-icon",23),h.Jc(2,"arrow_right_alt"),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()),2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function oa(t,e){1&t&&(h.Sb(0,"mat-icon",24),h.Jc(1,"cached"),h.Rb(),h.Jc(2),h.ec(3,"translate")),2&t&&(h.Ab(2),h.Lc(" ",h.fc(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function na(t,e){if(1&t&&(h.Sb(0,"td",20),h.Hc(1,aa,5,3,"div",21),h.Hc(2,oa,4,3,"ng-template",null,22,h.Ic),h.Rb()),2&t){const t=e.$implicit,i=h.tc(3);h.Ab(1),h.kc("ngIf","INITIAL"==t.appType)("ngIfElse",i)}}function ca(t,e){1&t&&(h.Sb(0,"th",19),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function ra(t,e){if(1&t){const t=h.Tb();h.Sb(0,"td",20),h.Sb(1,"section"),h.Sb(2,"mat-checkbox",25),h.Zb("change",(function(){h.xc(t);const i=e.$implicit;return h.dc().changeSending(i)}))("click",(function(e){return h.xc(t),e.stopPropagation()})),h.ec(3,"translate"),h.Rb(),h.Rb(),h.Rb()}if(2&t){const t=e.$implicit,i=h.dc();h.Ab(2),h.lc("matTooltip",h.fc(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),h.kc("disabled",i.disableSend)("matTooltipDisabled",!i.disableSend)("ngModel",t.send)}}function la(t,e){1&t&&h.Nb(0,"tr",26)}function ba(t,e){if(1&t){const t=h.Tb();h.Sb(0,"tr",27),h.Zb("click",(function(){h.xc(t);const i=e.$implicit;return h.dc().openApplicationMailDetail(i)})),h.Rb()}2&t&&h.Eb("cursor-pointer",!0)}let ua=(()=>{class t{constructor(t,e,i,s,a,o){this.registrarService=t,this.translate=e,this.notificator=i,this.dialog=s,this.authResolver=a,this.tableCheckbox=o,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new $t.c(!0,[]),this.pageSize=10,this.selectionChange=new h.o,this.page=new h.o,this.pageSizeOptions=b.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new at.o(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(t){t.send?this.registrarService.setSendingEnabled({mails:[t],enabled:!1}).subscribe(()=>{t.send=!1}):this.registrarService.setSendingEnabled({mails:[t],enabled:!0}).subscribe(()=>{t.send=!0})}openApplicationMailDetail(t){const e=Object(b.o)();e.width="1400px",e.height="700px",e.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:t},this.dialog.open(Ks.a,e).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(t){let e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.updateTable(t)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.updateTable(t)})}toggle(t){this.selection.toggle(t),this.selectionChange.emit(this.selection)}updateTable(t){this.applicationMails=t,this.dataSource=new at.o(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.l),h.Mb(E.e),h.Mb(u.l),h.Mb(g.b),h.Mb(u.h),h.Mb(u.n))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-notification-list"]],viewQuery:function(t,e){var i;1&t&&(h.Dc(Ws.a,!0),h.Dc(Xs.a,!0)),2&t&&(h.sc(i=h.ac())&&(e.matSort=i.first),h.sc(i=h.ac())&&(e.matPaginator=i.first))},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",pageSize:"pageSize",theme:"theme"},outputs:{selectionChange:"selectionChange",page:"page"},features:[h.yb],decls:21,vars:6,consts:[[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltip","matTooltipDisabled","ngModel","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"]],template:function(t,e){1&t&&(h.Sb(0,"div",0),h.Sb(1,"div",1),h.Sb(2,"table",2),h.Qb(3,3),h.Hc(4,Ys,2,3,"th",4),h.Hc(5,qs,2,2,"td",5),h.Pb(),h.Qb(6,6),h.Hc(7,Qs,3,3,"th",7),h.Hc(8,ta,2,1,"td",5),h.Pb(),h.Qb(9,8),h.Hc(10,ea,3,3,"th",7),h.Hc(11,ia,2,1,"td",9),h.Pb(),h.Qb(12,10),h.Hc(13,sa,3,3,"th",7),h.Hc(14,na,4,2,"td",9),h.Pb(),h.Qb(15,11),h.Hc(16,ca,3,3,"th",7),h.Hc(17,ra,4,6,"td",9),h.Pb(),h.Hc(18,la,1,0,"tr",12),h.Hc(19,ba,1,2,"tr",13),h.Rb(),h.Rb(),h.Sb(20,"mat-paginator",14),h.Zb("page",(function(t){return e.page.emit(t)})),h.Rb(),h.Rb()),2&t&&(h.Ab(2),h.kc("dataSource",e.dataSource),h.Ab(16),h.kc("matHeaderRowDef",e.displayedColumns),h.Ab(1),h.kc("matRowDefColumns",e.displayedColumns),h.Ab(1),h.kc("length",e.applicationMails.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions))},directives:[at.n,Ws.a,at.c,at.i,at.b,at.k,at.m,Xs.a,at.h,Ie.a,at.a,Ws.b,s.t,I.a,S.a,ue.r,ue.u,at.j,at.l],pipes:[E.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();var pa=i("FcRk");function da(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",9),h.Zb("click",(function(){return h.xc(t),h.dc().add()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ha(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",10),h.Zb("click",(function(){return h.xc(t),h.dc().remove()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function ga(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",11),h.Zb("click",(function(){return h.xc(t),h.dc().changeEmailFooter()})),h.Sb(1,"i",12),h.Jc(2,"email"),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()}2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "))}function ma(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",13),h.Zb("click",(function(){return h.xc(t),h.dc().copy()})),h.Sb(1,"i",12),h.Jc(2,"file_copy"),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()}2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function fa(t,e){1&t&&h.Nb(0,"mat-spinner",14)}function Ia(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",15),h.Sb(1,"app-notification-list",16),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)}))("selectionChange",(function(e){return h.xc(t),h.dc().changeSelection(e)})),h.Rb(),h.Rb()}if(2&t){const t=h.dc();h.Ab(1),h.kc("applicationMails",t.applicationMails)("pageSize",t.pageSize)("voId",t.voId)("displayedColumns",t.displayedColumns)("disableSend",!t.addAuth)("selection",t.selection)("theme","vo-theme")}}function Sa(t,e){1&t&&(h.Sb(0,"app-alert",17),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.kc("alert_type","warn"),h.Ab(1),h.Lc(" ",h.fc(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let Aa=(()=>{class t{constructor(t,e,i,s,a,o,n,c){this.route=t,this.registrarService=e,this.translate=i,this.dialog=s,this.tableConfigService=a,this.notificator=o,this.authResolver=n,this.voService=c,this.loading=!1,this.applicationMails=[],this.selection=new $t.c(!0,[]),this.tableId=Xt.ob,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.registrarService.getVoApplicationForm(this.voId).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.applicationMails=t,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.setAuthRights(),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("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const t=Object(b.e)();t.formId=this.applicationForm.id;const e=Object(b.o)();e.width="1400px",e.height="700px",e.data={theme:"vo-theme",voId:this.voId,createMailNotification:!0,applicationMail:t,applicationMails:this.applicationMails},this.dialog.open(Ks.a,e).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=Object(b.o)();t.width="500px",t.data={voId:this.voId,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Zs.a,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=Object(b.o)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(js.a,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=Object(b.o)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open($s.a,t)}changeSelection(t){this.selection=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.l),h.Mb(E.e),h.Mb(g.b),h.Mb(Xt.pb),h.Mb(u.l),h.Mb(u.h),h.Mb(l.q))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:11,vars:10,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],[3,"alert_type",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["mat-stroked-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[3,"applicationMails","pageSize","voId","displayedColumns","disableSend","selection","theme","page","selectionChange"],[3,"alert_type"]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Sb(3,"div",1),h.Hc(4,da,3,3,"button",2),h.Hc(5,ha,3,4,"button",3),h.Hc(6,ga,5,3,"button",4),h.Hc(7,ma,5,3,"button",5),h.Rb(),h.Hc(8,fa,1,0,"mat-spinner",6),h.Hc(9,Ia,2,7,"div",7),h.Hc(10,Sa,3,4,"app-alert",8)),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,8,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.Ab(3),h.kc("ngIf",!e.loading&&e.addAuth),h.Ab(1),h.kc("ngIf",!e.loading&&e.removeAuth),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading&&e.copyAuth),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",0!==e.applicationMails.length&&!e.loading),h.Ab(1),h.kc("ngIf",0===e.applicationMails.length&&!e.loading))},directives:[s.t,T.b,f.c,ua,pa.a],pipes:[E.d],styles:[""]}),t})();var Ta=i("JKyc");function Ea(t,e){1&t&&h.Nb(0,"mat-spinner",3)}function va(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",12),h.Zb("click",(function(){return h.xc(t),h.dc(2).add()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Ra(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",13),h.Zb("click",(function(){return h.xc(t),h.dc(2).remove()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc(2);h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Ma(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",14),h.Zb("click",(function(){return h.xc(t),h.dc(2).copy()})),h.Sb(1,"i",8),h.Jc(2,"file_copy"),h.Rb(),h.Jc(3),h.ec(4,"translate"),h.Rb()}2&t&&(h.Ab(3),h.Lc(" ",h.fc(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Oa(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",15),h.Sb(1,"app-notification-list",16),h.Zb("page",(function(e){return h.xc(t),h.dc(2).pageChanged(e)}))("selectionChange",(function(e){return h.xc(t),h.dc(2).changeSelection(e)})),h.Rb(),h.Rb()}if(2&t){const t=h.dc(2);h.Ab(1),h.kc("disableSend",!t.addAuth)("displayedColumns",t.displayedColumns)("applicationMails",t.applicationMails)("pageSize",t.pageSize)("groupId",t.groupId)("selection",t.selection)("theme","group-theme")}}function Na(t,e){1&t&&(h.Sb(0,"app-alert",17),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS")," "))}function _a(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div"),h.Sb(1,"div",4),h.Hc(2,va,3,3,"button",5),h.Hc(3,Ra,3,4,"button",6),h.Sb(4,"button",7),h.Zb("click",(function(){return h.xc(t),h.dc().changeEmailFooter()})),h.Sb(5,"i",8),h.Jc(6,"email"),h.Rb(),h.Jc(7),h.ec(8,"translate"),h.Rb(),h.Hc(9,Ma,5,3,"button",9),h.Rb(),h.Hc(10,Oa,2,7,"div",10),h.Hc(11,Na,3,3,"app-alert",11),h.Rb()}if(2&t){const t=h.dc();h.Ab(2),h.kc("ngIf",t.addAuth),h.Ab(1),h.kc("ngIf",t.removeAuth),h.Ab(4),h.Lc(" ",h.fc(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),h.Ab(2),h.kc("ngIf",t.copyAuth),h.Ab(1),h.kc("ngIf",0!==t.applicationMails.length),h.Ab(1),h.kc("ngIf",0===t.applicationMails.length)}}function La(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",19),h.Zb("click",(function(){return h.xc(t),h.dc(2).createEmptyApplicationForm()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function ya(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"app-alert",17),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Hc(4,La,3,3,"button",18),h.Rb()),2&t){const t=h.dc();h.Ab(2),h.Kc(h.fc(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),h.Ab(2),h.kc("ngIf",t.createFormAuth)}}let Ca=(()=>{class t{constructor(t,e,i,s,a,o,n,c,r,l){this.route=t,this.registrarService=e,this.translate=i,this.dialog=s,this.apiRequest=a,this.tableConfigService=o,this.notificator=n,this.groupsService=c,this.guiAuthResolver=r,this.attributesService=l,this.loading=!1,this.applicationMails=[],this.selection=new $t.c(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=Xt.K}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupsService.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.groupId).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.applicationMails=t,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.groupId,p.a.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t),this.setAuthRights(),this.loading=!1})})},t=>{"FormNotExistsException"===t.error.name?(this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(t)})})})}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("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const t=Object(b.e)();t.formId=this.applicationForm.id;const e=Object(b.o)();e.width="1400px",e.height="700px",e.data={theme:"group-theme",voId:this.voId,groupId:this.groupId,createMailNotification:!0,applicationMail:t,applicationMails:this.applicationMails},this.dialog.open(Ks.a,e).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=Object(b.o)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Zs.a,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=Object(b.o)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(js.a,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=Object(b.o)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open($s.a,t)}changeSelection(t){this.selection=t}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.groupId).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.l),h.Mb(E.e),h.Mb(g.b),h.Mb(u.b),h.Mb(Xt.pb),h.Mb(u.l),h.Mb(l.h),h.Mb(u.h),h.Mb(l.c))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","d-flex"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"ml-auto",3,"click"],[1,"card","mt-2"],[3,"disableSend","displayedColumns","applicationMails","pageSize","groupId","selection","theme","page","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Hc(3,Ea,1,0,"mat-spinner",1),h.Hc(4,_a,12,8,"div",2),h.Hc(5,ya,5,4,"div",2)),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,4,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.noApplicationForm&&!e.loading),h.Ab(1),h.kc("ngIf",e.noApplicationForm&&!e.loading))},directives:[s.t,f.c,T.b,ua,pa.a],pipes:[E.d],styles:[""]}),t})();var Pa=i("R0qJ"),ka=i("aYBX"),Ga=i("ZWyU");function Da(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",7),h.Zb("click",(function(){return h.xc(t),h.dc().onAdd()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Va(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",8),h.Zb("click",(function(){return h.xc(t),h.dc().onRemove()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function wa(t,e){1&t&&h.Nb(0,"mat-spinner",9)}function xa(t,e){if(1&t){const t=h.Tb();h.Sb(0,"app-ext-sources-list",10),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("extSources",t.extSources)("hideColumns",t.hideColumns)("filterValue",t.filterValue)("selection",t.selection)}}let za=(()=>{class t{constructor(t,e,i,s,a,o,n,c){this.extSourceService=t,this.route=e,this.dialog=i,this.notificator=s,this.tableConfigService=a,this.translate=o,this.authResolver=n,this.voService=c,this.extSources=[],this.selection=new $t.c(!0,[]),this.filterValue="",this.tableId=Xt.ib,this.hideColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,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.hideColumns=this.removeAuth?[]:["select"]}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.voId).subscribe(t=>{this.extSources=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=Object(b.o)();t.width="1000px",t.data={voId:this.voId,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Pa.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=Object(b.o)();t.width="600px",t.data={voId:this.voId,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(ka.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.f),h.Mb(a.a),h.Mb(g.b),h.Mb(u.l),h.Mb(Xt.pb),h.Mb(E.e),h.Mb(u.h),h.Mb(l.q))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","hideColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","hideColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"perun-web-apps-refresh-button",1),h.Zb("refresh",(function(){return e.refreshTable()})),h.Rb(),h.Hc(5,Da,3,3,"button",2),h.Hc(6,Va,3,4,"button",3),h.Sb(7,"perun-web-apps-immediate-filter",4),h.Zb("filter",(function(t){return e.applyFilter(t)})),h.Rb(),h.Hc(8,wa,1,0,"mat-spinner",5),h.Hc(9,xa,1,5,"app-ext-sources-list",6),h.Rb()),2&t&&(h.Ab(2),h.Kc(h.fc(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.Ab(3),h.kc("ngIf",e.addAuth),h.Ab(1),h.kc("ngIf",e.removeAuth),h.Ab(1),h.kc("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[Yt.a,s.t,qt.a,T.b,f.c,Ga.a],pipes:[E.d],styles:[""]}),t})();var Ha=i("KtsV"),Ua=i("v0MX"),Ja=i("K9kF");const Ba=["list"];function Fa(t,e){1&t&&h.Nb(0,"mat-spinner",8)}const Za=function(){return["expiration","menu","recent"]};function $a(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-groups-list",9,10),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("groups",t.groups)("parentGroup",t.group)("authType","group-relations")("selection",t.selection)("filter",t.filterValue)("hideColumns",h.oc(8,Za))("disableHeadCheckbox",!0)}}let Ka=(()=>{class t{constructor(t,e,i,s){this.route=t,this.groupService=e,this.tableConfigService=i,this.dialog=s,this.selection=new $t.c(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=Xt.L}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.groupId=t.groupId,this.voId=t.voId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.refreshTable()})})}onCreate(){const t=Object(b.o)();t.width="1050px",t.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.voId,reverse:this.reverse},this.dialog.open(Ha.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=Object(b.o)();t.width="450px",t.data={groups:this.selection.selected,theme:"group-theme",groupId:+this.groupId,reverse:this.reverse},this.dialog.open(Ua.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getGroupUnions(this.groupId,this.reverse).subscribe(t=>{this.groups=t,this.selection.clear(),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.h),h.Mb(Xt.pb),h.Mb(g.b))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-settings-relations"]],viewQuery:function(t,e){var i;1&t&&h.Qc(Ba,!0),2&t&&h.sc(i=h.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"matTooltip","matTooltipDisabled","disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","parentGroup","authType","selection","filter","hideColumns","disableHeadCheckbox","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","parentGroup","authType","selection","filter","hideColumns","disableHeadCheckbox","page"],["list",""]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"perun-web-apps-refresh-button",1),h.Zb("refresh",(function(){return e.refreshTable()})),h.Rb(),h.Sb(5,"button",2),h.Zb("click",(function(){return e.onCreate()})),h.Jc(6),h.ec(7,"translate"),h.Rb(),h.Sb(8,"button",3),h.Zb("click",(function(){return e.onDelete()})),h.ec(9,"translate"),h.Jc(10),h.ec(11,"translate"),h.Rb(),h.Sb(12,"perun-web-apps-immediate-filter",4),h.Zb("filter",(function(t){return e.applyFilter(t)})),h.Rb(),h.Sb(13,"mat-checkbox",5),h.Zb("change",(function(){return e.showReverseUnions()})),h.Jc(14),h.ec(15,"translate"),h.Rb(),h.Hc(16,Fa,1,0,"mat-spinner",6),h.Hc(17,$a,2,9,"perun-web-apps-groups-list",7),h.Rb()),2&t&&(h.Ab(2),h.Kc(h.fc(3,10,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),h.Ab(4),h.Lc(" ",h.fc(7,12,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),h.Ab(2),h.lc("matTooltip",h.fc(9,14,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),h.kc("matTooltipDisabled",0===e.selection.selected.length||void 0!==e.list&&e.list.removeAuth)("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),h.Ab(2),h.Lc(" ",h.fc(11,16,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),h.Ab(2),h.kc("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.Ab(2),h.Kc(h.fc(15,18,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[Yt.a,T.b,S.a,qt.a,Ie.a,s.t,f.c,Ja.a],pipes:[E.d],styles:[""]}),t})();function ja(t,e){if(1&t&&h.Nb(0,"app-two-entity-attribute-page",3),2&t){const t=h.dc();h.kc("entityValues",t.resources)("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","resource")}}function Xa(t,e){1&t&&h.Nb(0,"mat-spinner",4)}let Wa=(()=>{class t{constructor(t,e){this.route=t,this.resourcesManagerService=e,this.resources=[]}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.memberId=t.memberId,this.resourcesManagerService.getAllowedResources(this.memberId).subscribe(t=>{this.resources=t,this.loading=!1})})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.m))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-member-settings-resource-attributes"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityValues","firstEntity","firstEntityId","secondEntity",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"entityValues","firstEntity","firstEntityId","secondEntity"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Hc(3,ja,1,4,"app-two-entity-attribute-page",1),h.Hc(4,Xa,1,0,"mat-spinner",2)),2&t&&(h.Ab(1),h.Kc(h.fc(2,3,"MEMBER_DETAIL.SETTINGS.RESOURCE_PAGE.TITLE")),h.Ab(2),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",e.loading))},directives:[s.t,Si.a,f.c],pipes:[E.d],styles:[""]}),t})();function Ya(t,e){if(1&t&&h.Nb(0,"app-two-entity-attribute-page",3),2&t){const t=h.dc();h.kc("entityValues",t.resources)("firstEntity","group")("firstEntityId",t.groupId)("secondEntity","resource")}}function qa(t,e){1&t&&h.Nb(0,"mat-spinner",4)}let Qa=(()=>{class t{constructor(t,e){this.route=t,this.resourcesManagerService=e,this.resources=[]}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.groupId=t.groupId,this.resourcesManagerService.getAssignedResourcesWithGroup(this.groupId).subscribe(t=>{this.resources=t,this.loading=!1})})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.m))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-settings-resource-attributes"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityValues","firstEntity","firstEntityId","secondEntity",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"entityValues","firstEntity","firstEntityId","secondEntity"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Hc(3,Ya,1,4,"app-two-entity-attribute-page",1),h.Hc(4,qa,1,0,"mat-spinner",2)),2&t&&(h.Ab(1),h.Kc(h.fc(2,3,"GROUP_DETAIL.SETTINGS.RESOURCE_ATTRIBUTES.TITLE")),h.Ab(2),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",e.loading))},directives:[s.t,Si.a,f.c],pipes:[E.d],styles:[""]}),t})();function to(t,e){if(1&t&&h.Nb(0,"app-two-entity-attribute-page",3),2&t){const t=h.dc();h.kc("entityValues",t.groups)("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","group")}}function eo(t,e){1&t&&h.Nb(0,"mat-spinner",4)}let io=(()=>{class t{constructor(t,e){this.route=t,this.groupsManagerService=e,this.groups=[]}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.memberId=t.memberId,this.groupsManagerService.getMemberGroups(this.memberId).subscribe(t=>{this.groups=t,this.loading=!1})})}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.h))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-member-settings-group-attributes"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityValues","firstEntity","firstEntityId","secondEntity",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"entityValues","firstEntity","firstEntityId","secondEntity"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Hc(3,to,1,4,"app-two-entity-attribute-page",1),h.Hc(4,eo,1,0,"mat-spinner",2)),2&t&&(h.Ab(1),h.Kc(h.fc(2,3,"MEMBER_DETAIL.SETTINGS.GROUP_PAGE.TITLE")),h.Ab(2),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",e.loading))},directives:[s.t,Si.a,f.c],pipes:[E.d],styles:[""]}),t})();var so=i("aag5"),ao=i("oCM2");function oo(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",6),h.Zb("click",(function(){return h.xc(t),h.dc().showAllDetails=!0})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function no(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",6),h.Zb("click",(function(){return h.xc(t),h.dc().showAllDetails=!1})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function co(t,e){1&t&&h.Nb(0,"mat-spinner",7)}function ro(t,e){if(1&t){const t=h.Tb();h.Sb(0,"app-applications-list",10),h.Zb("page",(function(e){return h.xc(t),h.dc(2).pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc(2);h.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)("displayedColumns",t.displayedColumns)}}function lo(t,e){if(1&t){const t=h.Tb();h.Sb(0,"app-perun-web-apps-application-list-details",11),h.Zb("page",(function(e){return h.xc(t),h.dc(2).detailPageChanged(e)})),h.Rb()}if(2&t){const t=h.dc(2);h.kc("pageSize",t.detailPageSize)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)}}function bo(t,e){if(1&t&&(h.Sb(0,"div"),h.Hc(1,ro,1,5,"app-applications-list",8),h.Hc(2,lo,1,4,"app-perun-web-apps-application-list-details",9),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("ngIf",!t.showAllDetails),h.Ab(1),h.kc("ngIf",t.showAllDetails)}}let uo=(()=>{class t{constructor(t,e,i,s){this.registrarManager=t,this.memberManager=e,this.tableConfigService=i,this.route=s,this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=Xt.N,this.tableId=Xt.O}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t}),this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.l),h.Mb(l.i),h.Mb(Xt.pb),h.Mb(a.a))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","member","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","member","page",4,"ngIf"],[3,"pageSize","filterValue","applications","member","displayedColumns","page"],[3,"pageSize","filterValue","applications","member","page"]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Sb(3,"div"),h.Sb(4,"perun-web-apps-refresh-button",1),h.Zb("refresh",(function(){return e.refreshTable()})),h.Rb(),h.Hc(5,oo,3,3,"button",2),h.Hc(6,no,3,3,"button",2),h.Sb(7,"perun-web-apps-immediate-filter",3),h.Zb("filter",(function(t){return e.applyFilter(t)})),h.Rb(),h.Rb(),h.Hc(8,co,1,0,"mat-spinner",4),h.Hc(9,bo,3,2,"div",5)),2&t&&(h.Ab(1),h.Kc(h.fc(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),h.Ab(4),h.kc("ngIf",!e.showAllDetails),h.Ab(1),h.kc("ngIf",e.showAllDetails),h.Ab(1),h.kc("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[Yt.a,s.t,qt.a,T.b,f.c,so.a,ao.a],pipes:[E.d],styles:[""]}),t})();var po=i("HHqq"),ho=i("23RZ");function go(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-refresh-button",6),h.Zb("refresh",(function(){return h.xc(t),h.dc().refreshTable()})),h.Rb()}}function mo(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",7),h.Zb("click",(function(){return h.xc(t),h.dc().addResource()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function fo(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-immediate-filter",8),h.Zb("filter",(function(e){return h.xc(t),h.dc().applyFilter(e)})),h.Rb()}2&t&&h.kc("placeholder","MEMBER_DETAIL.RESOURCES.FILTER")}function Io(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-resources-list",9),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("routingVo",!0)("disableRouting",!t.routeAuth)("resources",t.resources)}}function So(t,e){1&t&&h.Nb(0,"mat-spinner",10)}let Ao=(()=>{class t{constructor(t,e,i,s,a,o){this.dialog=t,this.tableConfigService=e,this.memberManager=i,this.resourceManager=s,this.route=a,this.authResolver=o,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=Xt.Q}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.memberManager.getMemberById(t.memberId).subscribe(t=>{this.member=t,this.refreshTable()})})}addResource(){const t=Object(b.o)();t.width="1200px",t.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(po.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(t=>{this.resources=t,this.setAuthRights(),this.loading=!1})}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(g.b),h.Mb(Xt.pb),h.Mb(l.i),h.Mb(l.m),h.Mb(a.a),h.Mb(u.h))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-member-resources"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["class","mr-2",3,"placeholder","filter",4,"ngIf"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],[1,"mr-2",3,"placeholder","filter"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Hc(4,go,1,0,"perun-web-apps-refresh-button",1),h.Hc(5,mo,3,3,"button",2),h.Hc(6,fo,1,1,"perun-web-apps-immediate-filter",3),h.Hc(7,Io,1,6,"perun-web-apps-resources-list",4),h.Rb(),h.Hc(8,So,1,0,"mat-spinner",5)),2&t&&(h.Ab(2),h.Kc(h.fc(3,6,"MEMBER_DETAIL.RESOURCES.TITLE")),h.Ab(2),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading&&e.addAuth),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",e.loading))},directives:[s.t,Yt.a,T.b,qt.a,ho.a,f.c],pipes:[E.d],styles:[""]}),t})();var To=i("nSPi"),Eo=i("y/MV"),vo=i("jblC"),Ro=i("GyaY"),Mo=i("HUrR"),Oo=i("gxIj"),No=i("Fm3m"),_o=i("TNye"),Lo=i("lfUW"),yo=i("+Jyz");function Co(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",7),h.Zb("click",(function(){return h.xc(t),h.dc().onAdd()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Po(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",8),h.Zb("click",(function(){return h.xc(t),h.dc().onRemove()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function ko(t,e){1&t&&h.Nb(0,"mat-spinner",9)}function Go(t,e){if(1&t){const t=h.Tb();h.Sb(0,"app-ext-sources-list",10),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("extSources",t.extSources)("hideColumns",t.hideColumns)("filterValue",t.filterValue)("selection",t.selection)}}let Do=(()=>{class t{constructor(t,e,i,s,a,o,n,c){this.extSourceService=t,this.route=e,this.dialog=i,this.notificator=s,this.tableConfigService=a,this.translate=o,this.authResolver=n,this.groupService=c,this.extSources=[],this.selection=new $t.c(!0,[]),this.filterValue="",this.tableId=Xt.G,this.hideColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,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.hideColumns=this.removeAuth?[]:["select"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.groupId).subscribe(t=>{this.extSources=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=Object(b.o)();t.width="1000px",t.data={voId:this.voId,groupId:this.groupId,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Pa.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=Object(b.o)();t.width="600px",t.data={voId:this.voId,groupId:this.groupId,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(ka.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.f),h.Mb(a.a),h.Mb(g.b),h.Mb(u.l),h.Mb(Xt.pb),h.Mb(E.e),h.Mb(u.h),h.Mb(l.h))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","hideColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","hideColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"perun-web-apps-refresh-button",1),h.Zb("refresh",(function(){return e.refreshTable()})),h.Rb(),h.Hc(5,Co,3,3,"button",2),h.Hc(6,Po,3,4,"button",3),h.Sb(7,"perun-web-apps-immediate-filter",4),h.Zb("filter",(function(t){return e.applyFilter(t)})),h.Rb(),h.Hc(8,ko,1,0,"mat-spinner",5),h.Hc(9,Go,1,5,"app-ext-sources-list",6),h.Rb()),2&t&&(h.Ab(2),h.Kc(h.fc(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.Ab(3),h.kc("ngIf",e.addAuth),h.Ab(1),h.kc("ngIf",e.removeAuth),h.Ab(1),h.kc("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[Yt.a,s.t,qt.a,T.b,f.c,Ga.a],pipes:[E.d],styles:[""]}),t})();var Vo=i("KF6X");function wo(t,e){1&t&&h.Nb(0,"mat-spinner",3)}function xo(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"app-statistics-card",4),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("rowNames",t.rowNames)("statistics",t.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let zo=(()=>{class t{constructor(t,e){this.voService=t,this.route=e,this.loading=!1,this.dataSource=new at.o,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.voId=t.voId,this.dataSource=new at.o(this.rowNames),this.voService.getVoMembersCountsByStatus(this.voId).subscribe(t=>{this.allMembersCount=0;for(const e of Object.keys(t))this.membersCount.set(e.toLowerCase(),t[e]),this.allMembersCount+=t[e];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(l.q),h.Mb(a.a))},t.\u0275cmp=h.Gb({type:t,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(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Hc(3,wo,1,0,"mat-spinner",1),h.Hc(4,xo,2,3,"div",2)),2&t&&(h.Ab(1),h.Kc(h.fc(2,3,"VO_DETAIL.STATISTICS.TITLE")),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,Vo.a],pipes:[E.d],styles:[""]}),t})();function Ho(t,e){1&t&&h.Nb(0,"mat-spinner",3)}function Uo(t,e){if(1&t&&(h.Sb(0,"div"),h.Nb(1,"app-statistics-card",4),h.Nb(2,"app-statistics-card",4),h.Rb()),2&t){const t=h.dc();h.Ab(1),h.kc("rowNames",t.voStatusCountsRowNames)("statistics",t.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),h.Ab(1),h.kc("rowNames",t.groupStatusCountsRowNames)("statistics",t.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Jo=(()=>{class t{constructor(t,e){this.route=t,this.groupService=e,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.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.groupService.getGroupMembersCount(this.groupId).subscribe(t=>{this.membersCountsByVoStatus.set("members",t),this.membersCountsByGroupStatus.set("members",t),this.groupService.getGroupMembersCountsByVoStatus(this.groupId).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByVoStatus.set(t.toLowerCase(),e)),this.groupService.getGroupMembersCountsByGroupStatus(this.groupId).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByGroupStatus.set(t.toLowerCase(),e)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(a.a),h.Mb(l.h))},t.\u0275cmp=h.Gb({type:t,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(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.Rb(),h.Hc(3,Ho,1,0,"mat-spinner",1),h.Hc(4,Uo,3,6,"div",2)),2&t&&(h.Ab(1),h.Kc(h.fc(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[s.t,f.c,Vo.a],pipes:[E.d],styles:[""]}),t})();var Bo=i("Qu9H");const Fo=["list"];function Zo(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",9),h.Zb("click",(function(){return h.xc(t),h.dc().onAddGroup()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function $o(t,e){1&t&&h.Nb(0,"mat-spinner",10)}const Ko=function(){return["expiration","vo","recent","menu"]};function jo(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-groups-list",11,12),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("selection",t.selected)("pageSize",t.pageSize)("hideColumns",h.oc(7,Ko))("disableRouting",!0)("filter",t.filterValue)("authType","application-form-manage-groups")("groups",t.groups)}}const Xo=[{path:"",component:o.a},{path:":voId",component:st,children:[{path:"",component:K,data:{animation:"VoOverviewPage"}},{path:"attributes",component:ne,data:{animation:"VoAttributesPage"}},{path:"groups",component:j.a,data:{animation:"VoGroupsPage"}},{path:"members",component:X.a,data:{animation:"VoMembersPage"}},{path:"resources",component:Bt,children:[{path:"",component:ys,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:Cs.a,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:Ps.a,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Hs,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:Ft.a,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:hi,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:yo.a,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"statistics",component:zo,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Zt,children:[{path:"",component:le,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:ke,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:we,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:Vi.a,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:ls,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:(()=>{class t{constructor(t,e,i,s,a){this.tableConfigService=t,this.groupsService=e,this.authResolver=i,this.dialog=s,this.route=a,this.groups=[],this.selected=new $t.c(!0,[]),this.tableId=Xt.o,this.filterValue=""}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.loadGroups()})}loadGroups(){this.loading=!0,this.groupsService.getGroupsToAutoRegistration(this.voId).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const t=Object(b.o)();t.width="900px",t.data={voId:this.voId,assignedGroups:this.groups.map(t=>t.id),theme:"vo-theme"},this.dialog.open(Bo.a,t).afterClosed().subscribe(t=>{t&&this.loadGroups()})}removeGroup(){const t=Object(b.o)();t.width="450px",t.data={items:this.selected.selected.map(t=>t.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"},this.dialog.open(d.m,t).afterClosed().subscribe(t=>{t&&this.groupsService.deleteGroupsFromAutoRegistration(this.selected.selected.map(t=>t.id)).subscribe(()=>{this.loadGroups()})})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(Xt.pb),h.Mb(l.h),h.Mb(u.h),h.Mb(g.b),h.Mb(a.a))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){var i;1&t&&h.Qc(Fo,!0),2&t&&h.sc(i=h.ac())&&(e.list=i.first)},decls:17,vars:22,consts:[[1,"page-subtitle"],[3,"alert_type"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"selection","pageSize","hideColumns","disableRouting","filter","authType","groups","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"selection","pageSize","hideColumns","disableRouting","filter","authType","groups","page"],["list",""]],template:function(t,e){1&t&&(h.Sb(0,"h1",0),h.Jc(1),h.ec(2,"translate"),h.ec(3,"translate"),h.Rb(),h.Sb(4,"app-alert",1),h.Jc(5),h.ec(6,"translate"),h.Rb(),h.Sb(7,"perun-web-apps-refresh-button",2),h.Zb("refresh",(function(){return e.loadGroups()})),h.Rb(),h.Hc(8,Zo,3,3,"button",3),h.Sb(9,"span",4),h.ec(10,"translate"),h.Sb(11,"button",5),h.Zb("click",(function(){return e.removeGroup()})),h.Jc(12),h.ec(13,"translate"),h.Rb(),h.Rb(),h.Sb(14,"perun-web-apps-immediate-filter",6),h.Zb("filter",(function(t){return e.filterValue=t})),h.Rb(),h.Hc(15,$o,1,0,"mat-spinner",7),h.Hc(16,jo,2,8,"perun-web-apps-groups-list",8)),2&t&&(h.Ab(1),h.Mc(" ",h.fc(2,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",h.fc(3,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),h.Ab(3),h.kc("alert_type","info"),h.Ab(1),h.Lc(" ",h.fc(6,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),h.Ab(3),h.kc("ngIf",e.addAuth),h.Ab(1),h.lc("matTooltip",h.fc(10,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),h.kc("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),h.Ab(2),h.kc("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),h.Ab(1),h.Lc(" ",h.fc(13,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),h.Ab(2),h.kc("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[pa.a,Yt.a,s.t,S.a,T.b,qt.a,f.c,Ja.a],pipes:[E.d],styles:[""]}),t})()},{path:"notifications",component:Aa,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:za,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:J,children:[{path:"",component:Dt,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:Ls,data:{animation:"MemberAttributesPage"}},{path:"groups",component:Vt.a,data:{animation:"MemberGroupsPage"}},{path:"applications",component:uo,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:hi,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:Ao,data:{animation:"MemberResourcesPage"}},{path:"settings",component:bs,children:[{path:"",component:ds,data:{animation:"MemberSettingsOverviewPage"}},{path:"resourceAttributes",component:Wa,data:{animation:"MemberSettingsResourceAttributesPage"}},{path:"groupAttributes",component:io,data:{animation:"MemberSettingsGroupAttributesPage"}}]}]},{path:":voId/groups/:groupId",component:G,children:[{path:"",component:Ut,data:{animation:"GroupOverviewPage"}},{path:"members",component:gi.a,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:Jt.a,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Ge.a,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:mi.a,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Pi,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Jo,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:fi,children:[{path:"",component:Di,data:{animation:"GroupSettingsOverviewPage"}},{path:"resourceAttributes",component:Qa,data:{animation:"GroupSettingsResourceAttributesPage"}},{path:"groupAttributes",component:io,data:{animation:"MemberSettingsGroupAttributesPage"}},{path:"expiration",component:Js,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Fs,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Ta.a,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:ls},{path:"notifications",component:Ca,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Ka,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Do,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:hi,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:To.a,children:[{path:"",component:Eo.a,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:vo.a,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:_o.a,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:Oo.a,data:{animation:"ResourceAttributesPage"}},{path:"members",component:Lo.a,data:{animation:"ResourceAssignedMembersComponent"}},{path:"settings",component:Ro.a,children:[{path:"",component:Mo.a,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:No.a,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Wo=(()=>{class t{}return t.\u0275mod=h.Kb({type:t}),t.\u0275inj=h.Jb({factory:function(e){return new(e||t)},imports:[[a.j.forChild(Xo)],a.j]}),t})();var Yo=i("PCNd"),qo=i("KoHB"),Qo=i("t47Z");let tn=(()=>{class t{}return t.\u0275mod=h.Kb({type:t}),t.\u0275inj=h.Jb({factory:function(e){return new(e||t)},imports:[[s.c,Wo,Yo.a,qo.a,jt.d,Qo.b]]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/9-es5.a3eca0a25271e32123bb.js b/dist/apps/admin-gui/9-es5.a3eca0a25271e32123bb.js new file mode 100644 index 000000000..d2f9b1148 --- /dev/null +++ b/dist/apps/admin-gui/9-es5.a3eca0a25271e32123bb.js @@ -0,0 +1 @@ +!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var i=[],a=!0,n=!1,o=void 0;try{for(var r,c=t[Symbol.iterator]();!(a=(r=c.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(s){n=!0,o=s}finally{try{a||null==c.return||c.return()}finally{if(n)throw o}}return i}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=i(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,s=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return c=t.done,t},e:function(t){s=!0,r=t},f:function(){try{c||null==a.return||a.return()}finally{if(s)throw r}}}}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i_policy",[t.group])?t.groupService.getRichGroupByIdWithAttributesByNames(i,t.attrNames).subscribe((function(e){t.group=e,t.syncEnabled=t.isSynchronized(),t.syncAuth=t.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[t.group])}),(function(){return t.loading=!1})):t.syncEnabled=!1,t.editAuth=t.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[t.group]);var n=t.sideMenuItemService.parseVo(e),o=t.sideMenuItemService.parseGroup(a);t.sideMenuService.setAccessMenuItems([n,o]),t.loading=!1}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}))}},{key:"isSynchronized",value:function(){return this.group.attributes.some((function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()}))}},{key:"onSyncDetail",value:function(){var t=Object(h.o)();t.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(m.i,t)}},{key:"editGroup",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:m.h.GROUP},this.dialog.open(m.g,e).afterClosed().subscribe((function(e){e&&t.groupService.getGroupById(t.group.id).subscribe((function(e){t.group=e}))}))}}]),t}()).\u0275fac=function(t){return new(t||x)(v.Mb(l.a),v.Mb(d.q),v.Mb(s.a),v.Mb(b.a),v.Mb(d.h),v.Mb(I.b),v.Mb(f.h))},x.\u0275cmp=v.Gb({type:x,selectors:[["app-group-detail-page"]],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,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(t,e){1&t&&(v.Sb(0,"div",0),v.Nb(1,"perun-web-apps-back-button"),v.Hc(2,_,1,0,"mat-spinner",1),v.Hc(3,w,21,27,"div",2),v.Rb()),2&t&&(v.Ab(2),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[S.a,c.t,A.c,T.a,E.a,c.w,s.i,R.a,y.b],pipes:[M.d,O.a,N.a,k.a],styles:[""],data:{animation:[p.a]}}),x);function H(t,e){1&t&&v.Nb(0,"mat-spinner",3)}var U=function(t){return["/admin","users",t]};function J(t,e){if(1&t&&(v.Sb(0,"a",8),v.Jc(1),v.Rb()),2&t){var i=v.dc(2);v.kc("routerLink",v.pc(2,U,i.member.userId)),v.Ab(1),v.Lc(" ",i.member.userId," ")}}function B(t,e){if(1&t&&(v.Sb(0,"span"),v.Jc(1),v.Rb()),2&t){var i=v.dc(2);v.Ab(1),v.Kc(i.member.userId)}}var F=function(){return{color:"black"}},Z=function(t,e){return["/organizations",t,"members",e]};function j(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"div",4),v.Nb(2,"mat-icon",5),v.ec(3,"translate"),v.Sb(4,"div",6),v.Sb(5,"div",7),v.Sb(6,"a",8),v.Jc(7),v.Rb(),v.Sb(8,"span",9),v.Jc(9),v.Rb(),v.Rb(),v.Sb(10,"span",10),v.Jc(11),v.ec(12,"translate"),v.ec(13,"translate"),v.Hc(14,J,2,4,"a",11),v.Hc(15,B,2,1,"span",2),v.Rb(),v.Rb(),v.Rb(),v.Nb(16,"app-animated-router-outlet"),v.Rb()),2&t){var i=v.dc();v.Ab(2),v.lc("matTooltip",v.fc(3,9,"MEMBER_DETAIL.ENTITY")),v.kc("ngStyle",v.oc(15,F)),v.Ab(4),v.kc("routerLink",v.qc(16,Z,i.vo.id,i.member.id)),v.Ab(1),v.Lc(" ",i.fullName," "),v.Ab(2),v.Lc(" \xa0#",i.member.id," "),v.Ab(2),v.Mc(" ",v.fc(12,11,"MEMBER_DETAIL.ENTITY"),", ",v.fc(13,13,"MEMBER_DETAIL.USER_ID"),": "),v.Ab(3),v.kc("ngIf",i.isAuthorized),v.Ab(1),v.kc("ngIf",!i.isAuthorized)}}var K,X=((K=function(){function t(e,i,a,o,r,c,s){n(this,t),this.sideMenuItemService=e,this.translate=i,this.sideMenuService=a,this.membersService=o,this.voService=r,this.route=c,this.authResolver=s,this.fullName="",this.isAuthorized=!1,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe((function(e){var i=e.voId,a=e.memberId;t.isAuthorized=t.authResolver.isPerunAdmin(),t.voService.getVoById(i).subscribe((function(e){t.vo=e,t.membersService.getRichMemberWithAttributes(a).subscribe((function(e){t.member=e;var i=t.sideMenuItemService.parseVo(t.vo),a=t.sideMenuItemService.parseMember(t.member,t.vo);t.fullName=a.label,t.sideMenuService.setAccessMenuItems([i,a]),t.loading=!1}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}))}}]),t}()).\u0275fac=function(t){return new(t||K)(v.Mb(b.a),v.Mb(M.e),v.Mb(l.a),v.Mb(d.i),v.Mb(d.q),v.Mb(s.a),v.Mb(f.h))},K.\u0275cmp=v.Gb({type:K,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,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link",3,"routerLink",4,"ngIf"]],template:function(t,e){1&t&&(v.Sb(0,"div",0),v.Nb(1,"perun-web-apps-back-button"),v.Hc(2,H,1,0,"mat-spinner",1),v.Hc(3,j,17,19,"div",2),v.Rb()),2&t&&(v.Ab(2),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[S.a,c.t,A.c,T.a,E.a,c.w,s.i,R.a],pipes:[M.d],styles:[""],data:{animation:[p.a]}}),K),W=o("hiWg"),Y=o("ZG5M");function $(t,e){1&t&&v.Nb(0,"mat-spinner",2)}function q(t,e){if(1&t&&(v.Sb(0,"div"),v.Nb(1,"perun-web-apps-menu-buttons-field",3),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.kc("items",i.navItems)("size","small")}}var Q,tt=((Q=function(){function t(e,i,a,o,r){n(this,t),this.sideMenuService=e,this.voService=i,this.route=a,this.router=o,this.authResolver=r,this.items=[],this.navItems=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe((function(e){t.voService.getVoById(e.voId).subscribe((function(e){t.vo=e,t.initNavItems(),t.loading=!1}),(function(){return t.loading=!1}))}))}},{key:"initNavItems",value:function(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/members"),label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/groups"),label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.vo.id,"/resources"),label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.vo.id,"/applications"),label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/sponsoredMembers"),label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/attributes"),label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.vo.id,"/statistics"),label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.vo.id,"/settings"),label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}},{key:"initItems",value:function(){this.items=[{cssIcon:"perun-invite-member",label:"VO_DETAIL.OVERVIEW.INVITE_MEMBER",style:"vo-btn",url:"/organizations/".concat(this.vo.id,"/invite-member"),clickAction:function(t,e){var i=Object(h.o)();i.width="450px",i.data={voId:e},t.open(W.a,i)}},{cssIcon:"perun-service-identity",label:"VO_DETAIL.OVERVIEW.CREATE_SERVICE_MEMBER",style:"vo-btn",url:"/organizations/".concat(this.vo.id,"/create-service-member"),clickAction:function(t,e){}},{cssIcon:"perun-manager",label:"VO_DETAIL.OVERVIEW.ADD_MANAGER",style:"vo-btn",url:"/organizations/".concat(this.vo.id,"/add-manager"),clickAction:function(t,e){}},{cssIcon:"perun-group",label:"VO_DETAIL.OVERVIEW.CREATE_GROUP",style:"vo-btn",url:"/organizations/".concat(this.vo.id,"/create-group"),clickAction:function(t,e){}},{cssIcon:"perun-create1",label:"VO_DETAIL.OVERVIEW.ADD_MEMBER",style:"vo-btn",url:"/organizations/".concat(this.vo.id,"/invite-member"),clickAction:function(t,e){}}]}}]),t}()).\u0275fac=function(t){return new(t||Q)(v.Mb(l.a),v.Mb(d.q),v.Mb(s.a),v.Mb(s.f),v.Mb(f.h))},Q.\u0275cmp=v.Gb({type:Q,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(t,e){1&t&&(v.Hc(0,$,1,0,"mat-spinner",0),v.Hc(1,q,2,2,"div",1)),2&t&&(v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[c.t,A.c,Y.a],styles:[""]}),Q),et=o("tT6Y"),it=o("M7la"),at=o("JjRu");function nt(t,e){1&t&&v.Nb(0,"mat-spinner",3)}function ot(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",13),v.Zb("click",(function(){return v.xc(i),v.dc(2).editVo()})),v.Sb(1,"mat-icon"),v.Jc(2,"edit"),v.Rb(),v.Rb()}}function rt(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",14),v.Zb("click",(function(){return v.xc(i),v.dc(2).removeVo()})),v.Sb(1,"mat-icon"),v.Jc(2,"delete_forever"),v.Rb(),v.Rb()}}var ct=function(){return{color:"black"}},st=function(t){return["/organizations/",t]};function ut(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"div",4),v.Nb(2,"mat-icon",5),v.ec(3,"translate"),v.Sb(4,"div",6),v.Sb(5,"div",7),v.Sb(6,"a",8),v.Jc(7),v.Rb(),v.Sb(8,"span",9),v.Jc(9),v.Rb(),v.Hc(10,ot,3,0,"button",10),v.Hc(11,rt,3,0,"button",11),v.Rb(),v.Sb(12,"span",12),v.Jc(13),v.ec(14,"translate"),v.ec(15,"translate"),v.Rb(),v.Rb(),v.Rb(),v.Nb(16,"app-animated-router-outlet"),v.Rb()),2&t){var i=v.dc();v.Ab(2),v.lc("matTooltip",v.fc(3,10,"VO_DETAIL.ENTITY")),v.kc("ngStyle",v.oc(16,ct)),v.Ab(4),v.kc("routerLink",v.pc(17,st,i.vo.id)),v.Ab(1),v.Lc(" ",i.vo.name," "),v.Ab(2),v.Lc(" \xa0#",i.vo.id," "),v.Ab(1),v.kc("ngIf",i.editAuth),v.Ab(1),v.kc("ngIf",i.removeAuth),v.Ab(2),v.Nc(" ",v.fc(14,12,"VO_DETAIL.ENTITY"),", ",v.fc(15,14,"VO_DETAIL.SHORT_NAME"),": ",i.vo.shortName," ")}}var lt,bt=((lt=function(){function t(e,i,a,o,r,c,s){n(this,t),this.sideMenuService=e,this.voService=i,this.route=a,this.router=o,this.sideMenuItemService=r,this.dialog=c,this.authResolver=s,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe((function(e){t.voService.getVoById(e.voId).subscribe((function(e){t.vo=e,t.editAuth=t.authResolver.isAuthorized("updateVo_Vo_policy",[t.vo]),t.removeAuth=t.authResolver.isAuthorized("deleteVo_Vo_policy",[t.vo]);var i=t.sideMenuItemService.parseVo(e);t.sideMenuService.setAccessMenuItems([i]),Object(h.b)("vos",t.vo),Object(h.c)(t.vo),t.loading=!1}),(function(){return t.loading=!1}))}))}},{key:"editVo",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:m.h.VO},this.dialog.open(m.g,e).afterClosed().subscribe((function(e){e&&t.voService.getVoById(t.vo.id).subscribe((function(e){t.vo=e}))}))}},{key:"removeVo",value:function(){var t=this,e=Object(h.o)();e.width="500px",e.data={theme:"vo-theme",entity:this.vo,entityType:at.b.VO},this.dialog.open(at.a,e).afterClosed().subscribe((function(e){e&&t.router.navigate([""])}))}}]),t}()).\u0275fac=function(t){return new(t||lt)(v.Mb(l.a),v.Mb(d.q),v.Mb(s.a),v.Mb(s.f),v.Mb(b.a),v.Mb(I.b),v.Mb(f.h))},lt.\u0275cmp=v.Gb({type:lt,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"vo-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo",3,"click"]],template:function(t,e){1&t&&(v.Sb(0,"div",0),v.Nb(1,"perun-web-apps-back-button"),v.Hc(2,nt,1,0,"mat-spinner",1),v.Hc(3,ut,17,19,"div",2),v.Rb()),2&t&&(v.Ab(2),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading&&void 0!==e.vo))},directives:[S.a,c.t,A.c,T.a,E.a,c.w,s.i,R.a,y.b],pipes:[M.d],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[p.a]}}),lt),pt=o("FlRo"),dt=o("mjJC"),ht=o("Meci"),ft=o("A6H7"),gt=o("7o/y"),mt=o("SAuR"),vt=o("j+u3");function It(t,e){1&t&&v.Nb(0,"mat-spinner",2)}function St(t,e){1&t&&v.Nb(0,"th",18)}function At(t,e){if(1&t&&(v.Sb(0,"span"),v.Jc(1),v.Rb()),2&t){var i=v.dc().$implicit,a=v.dc(2);v.Ab(1),v.Lc(" ",a.attributes.get(i)[0],": ")}}function Tt(t,e){if(1&t&&(v.Sb(0,"span"),v.Jc(1),v.ec(2,"attributeFriendlyName"),v.Rb()),2&t){var i=v.dc().$implicit;v.Ab(1),v.Lc(" ",v.fc(2,1,i),": ")}}function Et(t,e){if(1&t&&(v.Sb(0,"td",19),v.Hc(1,At,2,1,"span",1),v.Hc(2,Tt,3,3,"span",1),v.Rb()),2&t){var i=e.$implicit,a=v.dc(2);v.Ab(1),v.kc("ngIf",null!==a.attributes.get(i)[0]),v.Ab(1),v.kc("ngIf",null===a.attributes.get(i)[0])}}function Rt(t,e){1&t&&v.Nb(0,"th",18)}function yt(t,e){if(1&t&&(v.Sb(0,"td",20),v.Jc(1),v.Rb()),2&t){var i=e.$implicit,a=v.dc(2);v.Ab(1),v.Lc(" ",a.attributes.get(i)[1]," ")}}function Mt(t,e){1&t&&v.Nb(0,"tr",21)}function Ot(t,e){1&t&&v.Nb(0,"th",18)}function Nt(t,e){if(1&t&&(v.Sb(0,"td",19),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.Ab(1),v.Lc(" ",i,": ")}}function kt(t,e){1&t&&v.Nb(0,"th",18)}function _t(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"mat-icon",22),v.Jc(2),v.Rb(),v.Sb(3,"b",23),v.Jc(4),v.ec(5,"transformMemberStatus"),v.Rb(),v.Rb()),2&t){var i=v.dc(3);v.Ab(1),v.kc("color",i.statusIconColor),v.Ab(1),v.Lc(" ",i.statusIcon," "),v.Ab(2),v.Lc(" ",v.fc(5,3,i.member.status)," ")}}function Lt(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",26),v.Zb("click",(function(){return v.xc(i),v.dc(4).changeExpiration()})),v.Sb(1,"mat-icon"),v.Jc(2,"edit"),v.Rb(),v.Rb()}}function Ct(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"i",24),v.Jc(2),v.ec(3,"parseDate"),v.Rb(),v.Hc(4,Lt,3,0,"button",25),v.Rb()),2&t){var i=v.dc(3);v.Ab(2),v.Lc(" ",v.fc(3,2,i.expiration)," "),v.Ab(2),v.kc("ngIf",i.authResolver.isThisVoAdmin(i.vo.id))}}function Pt(t,e){if(1&t&&(v.Sb(0,"td",20),v.Hc(1,_t,6,5,"div",1),v.Hc(2,Ct,5,4,"div",1),v.Rb()),2&t){var i=e.$implicit;v.Ab(1),v.kc("ngIf","Status"===i),v.Ab(1),v.kc("ngIf","Expiration"===i)}}function Gt(t,e){1&t&&v.Nb(0,"tr",21)}function Dt(t,e){if(1&t){var i=v.Tb();v.Sb(0,"mat-card",27),v.Sb(1,"mat-card-header"),v.Sb(2,"mat-card-title"),v.Sb(3,"h1",6),v.Jc(4),v.ec(5,"translate"),v.Rb(),v.Rb(),v.Rb(),v.Sb(6,"mat-card-content",24),v.Sb(7,"div",28),v.ec(8,"translate"),v.Sb(9,"button",29),v.Zb("click",(function(){return v.xc(i),v.dc(2).requestPwdReset()})),v.Jc(10),v.ec(11,"translate"),v.Rb(),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=v.dc(2);v.Ab(4),v.Kc(v.fc(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),v.Ab(3),v.kc("matTooltip",v.fc(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",a.logins.length>0),v.Ab(2),v.kc("disabled",!a.logins.length),v.Ab(1),v.Lc(" ",v.fc(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Vt(t,e){1&t&&v.Nb(0,"th",18)}function wt(t,e){if(1&t&&(v.Sb(0,"td",20),v.Jc(1),v.ec(2,"userFullName"),v.Rb()),2&t){var i=e.$implicit;v.Ab(1),v.Lc(" ",v.fc(2,1,i.user)," ")}}function xt(t,e){1&t&&v.Nb(0,"tr",21)}var zt=function(){return["sponsors"]};function Ht(t,e){if(1&t&&(v.Sb(0,"mat-card-content"),v.Sb(1,"h5"),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Sb(4,"table",30),v.Qb(5,31),v.Hc(6,Vt,1,0,"th",9),v.Hc(7,wt,3,3,"td",12),v.Pb(),v.Hc(8,xt,1,0,"tr",13),v.Rb(),v.Rb()),2&t){var i=v.dc(3);v.Ab(2),v.Lc("",v.fc(3,3,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),":"),v.Ab(2),v.kc("dataSource",i.sponsorsDataSource),v.Ab(4),v.kc("matRowDefColumns",v.oc(5,zt))}}function Ut(t,e){if(1&t&&(v.Sb(0,"div",4),v.Sb(1,"mat-card",5),v.Sb(2,"mat-card-header"),v.Sb(3,"mat-card-title"),v.Sb(4,"h1",6),v.Jc(5),v.ec(6,"translate"),v.Rb(),v.Rb(),v.Rb(),v.Hc(7,Ht,9,6,"mat-card-content",1),v.Rb(),v.Rb()),2&t){var i=v.dc(2);v.Ab(5),v.Kc(v.fc(6,2,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")),v.Ab(2),v.kc("ngIf",0!==i.sponsors.length)}}function Jt(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"div",3),v.Sb(2,"div",4),v.Sb(3,"mat-card",5),v.Sb(4,"mat-card-header"),v.Sb(5,"mat-card-title"),v.Sb(6,"h1",6),v.Jc(7),v.ec(8,"translate"),v.Rb(),v.Rb(),v.Rb(),v.Sb(9,"mat-card-content"),v.Sb(10,"table",7),v.Qb(11,8),v.Hc(12,St,1,0,"th",9),v.Hc(13,Et,3,2,"td",10),v.Pb(),v.Qb(14,11),v.Hc(15,Rt,1,0,"th",9),v.Hc(16,yt,2,1,"td",12),v.Pb(),v.Hc(17,Mt,1,0,"tr",13),v.Rb(),v.Rb(),v.Rb(),v.Rb(),v.Sb(18,"div",4),v.Sb(19,"mat-card",5),v.Sb(20,"mat-card-header"),v.Sb(21,"mat-card-title"),v.Sb(22,"h1",6),v.Jc(23),v.ec(24,"translate"),v.Rb(),v.Rb(),v.Rb(),v.Sb(25,"mat-card-content"),v.Sb(26,"table",14),v.Qb(27,8),v.Hc(28,Ot,1,0,"th",9),v.Hc(29,Nt,2,1,"td",10),v.Pb(),v.Qb(30,11),v.Hc(31,kt,1,0,"th",9),v.Hc(32,Pt,3,2,"td",12),v.Pb(),v.Hc(33,Gt,1,0,"tr",13),v.Rb(),v.Rb(),v.Rb(),v.Hc(34,Dt,12,11,"mat-card",15),v.Rb(),v.Hc(35,Ut,8,4,"div",16),v.Rb(),v.Sb(36,"div"),v.Nb(37,"perun-web-apps-menu-buttons-field",17),v.Rb(),v.Rb()),2&t){var i=v.dc();v.Ab(7),v.Kc(v.fc(8,10,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),v.Ab(3),v.kc("dataSource",i.dataSource),v.Ab(7),v.kc("matRowDefColumns",i.displayedColumns),v.Ab(6),v.Kc(v.fc(24,12,"MEMBER_DETAIL.OVERVIEW.MEMBERSHIP")),v.Ab(3),v.kc("dataSource",i.membershipDataSource),v.Ab(7),v.kc("matRowDefColumns",i.displayedColumns),v.Ab(1),v.kc("ngIf",i.pwdResetAuth),v.Ab(1),v.kc("ngIf",i.member.sponsored),v.Ab(2),v.kc("items",i.navItems)("size","small")}}var Bt,Ft=((Bt=function(){function t(e,i,a,o,r,c,s,u,l,b){n(this,t),this.attributesManager=e,this.membersService=i,this.usersManager=a,this.translate=o,this.route=r,this.dialog=c,this.authResolver=s,this.storeService=u,this.apiRequest=l,this.notificator=b,this.fullName="",this.statusIcon="",this.statusIconColor="",this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new pt.o,this.membershipDataSource=new pt.o,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new pt.o,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe((function(e){var i=e.memberId;t.attributeNames=t.storeService.getMemberProfileAttributeNames(),t.membersService.getRichMemberWithAttributes(i).subscribe((function(e){var i=t.storeService.get("password_namespace_attributes").map((function(t){return(t=t.split(":"))[t.length-1]}));t.attributesManager.getLogins(e.userId).subscribe((function(a){t.logins=a.filter((function(t){return i.includes(t.friendlyNameParameter)})),t.member=e,t.fullName=Object(h.w)(t.member.user),t.statusIcon=Object(h.C)(t.member),t.statusIconColor=Object(h.B)(t.member),t.initAttributes(),t.dataSource=new pt.o(Array.from(t.attributes.keys())),t.membershipDataSource=new pt.o(["Status","Expiration"]),t.vo={id:e.voId,beanName:"Vo"},t.pwdResetAuth=t.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[t.vo,t.member]),t.member.sponsored&&t.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[t.member])?t.usersManager.getSponsorsForMember(t.member.id,null).subscribe((function(e){t.sponsors=e,t.sponsorsDataSource=new pt.o(t.sponsors),t.initNavItems(),t.refreshData()})):(t.initNavItems(),t.refreshData())}),(function(){return t.loading=!1}))}))}))}},{key:"changeExpiration",value:function(){var t=this,e=Object(h.o)();e.width="400px",e.data={memberId:this.member.id,expirationAttr:this.expirationAtt,mode:"vo"},this.dialog.open(m.d,e).afterClosed().subscribe((function(e){e&&t.refreshData()}))}},{key:"initAttributes",value:function(){var t=this;this.attributeNames.forEach((function(e){t.attributes.set(e,[null,"-"])})),this.filterAttributes()}},{key:"filterAttributes",value:function(){var t=this;null!==this.member.memberAttributes&&this.member.memberAttributes.forEach((function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])})),null!==this.member.userAttributes&&this.member.userAttributes.forEach((function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])}))}},{key:"initNavItems",value:function(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/groups"),label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/applications"),label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-resource",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/resources"),label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/members/").concat(this.member.id,"/attributes"),label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}},{key:"refreshData",value:function(){var t=this;this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe((function(e){t.member=e,t.apiRequest.dontHandleErrorForNext(),t.attributesManager.getMemberAttributeByName(t.member.id,g.a.MEMBER_DEF_EXPIRATION).subscribe((function(e){t.expirationAtt=e,t.expiration=e.value?e.value:t.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),t.loading=!1}),(function(e){"PrivilegeException"!==e.error.name?t.notificator.showError(e):t.membershipDataSource=new pt.o(["Status"]),t.loading=!1}))}),(function(){return t.loading=!1}))}},{key:"requestPwdReset",value:function(){var t=Object(h.o)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(dt.a,t)}}]),t}()).\u0275fac=function(t){return new(t||Bt)(v.Mb(d.c),v.Mb(d.i),v.Mb(d.p),v.Mb(M.e),v.Mb(s.a),v.Mb(I.b),v.Mb(f.h),v.Mb(f.m),v.Mb(f.b),v.Mb(f.l))},Bt.\u0275cmp=v.Gb({type:Bt,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},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"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["class","mat-elevation-z3 mt-4",4,"ngIf"],["class","align-cards",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"vert-top","mr-1",3,"color"],[1,"vert-top"],[1,"column-center"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"mat-elevation-z3","mt-4"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",3,"disabled","click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"]],template:function(t,e){1&t&&(v.Hc(0,It,1,0,"mat-spinner",0),v.Hc(1,Jt,38,14,"div",1)),2&t&&(v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[c.t,A.c,ht.a,ht.f,ht.m,ht.d,pt.n,pt.c,pt.i,pt.b,pt.m,Y.a,pt.h,pt.a,pt.l,T.a,y.b,E.a],pipes:[M.d,ft.a,gt.a,mt.a,vt.a],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}"]}),Bt),Zt=o("hQLc");function jt(t,e){1&t&&v.Nb(0,"mat-spinner",2)}var Kt=function(t,e){return["/organizations",t,"groups",e]};function Xt(t,e){if(1&t&&(v.Sb(0,"p"),v.Jc(1),v.ec(2,"translate"),v.Sb(3,"a",4),v.Jc(4),v.Rb(),v.Rb()),2&t){var i=v.dc(2);v.Ab(1),v.Lc(" ",v.fc(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),v.Ab(2),v.kc("routerLink",v.qc(5,Kt,i.parentGroup.voId,i.parentGroup.id)),v.Ab(1),v.Lc(" ",i.parentGroup.name," ")}}function Wt(t,e){if(1&t&&(v.Sb(0,"div"),v.Hc(1,Xt,5,8,"p",1),v.Nb(2,"perun-web-apps-menu-buttons-field",3),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.kc("ngIf",null!==i.parentGroup),v.Ab(1),v.kc("items",i.navItems)("size","small")}}var Yt,$t,qt,Qt=((Yt=function(){function t(e,i,a,o,r,c,s){n(this,t),this.route=e,this.groupService=i,this.voService=a,this.guiAuthResolver=o,this.apiRequest=r,this.attributesManager=c,this.notificator=s,this.navItems=[],this.parentGroup=null,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe((function(e){t.groupId=e.groupId,t.groupService.getGroupById(t.groupId).subscribe((function(e){t.group=e,null!==t.group.parentGroupId?t.loadParentGroupData():(t.parentGroup=null,t.initNavItems(),t.loading=!1)}),(function(){return t.loading=!1}))}))}},{key:"loadParentGroupData",value:function(){var t=this;this.groupService.getGroupById(this.group.parentGroupId).subscribe((function(e){t.parentGroup=e,t.initNavItems(),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"initNavItems",value:function(){var t=this;this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[this.group])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/members"),label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[this.group])&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/subgroups"),label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[this.group])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/resources"),label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[this.group])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/applications"),label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/attributes"),label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});var e=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),a=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);e&&a&&i&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/statistics"),label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});var n=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,g.a.GROUP_DEF_EXPIRATION_RULES).subscribe((function(){n=!0}),(function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)}));var o=this.guiAuthResolver.isManagerPagePrivileged(this.group),r=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),c=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),s=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(n||o||r||c||s)&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/settings"),label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}]),t}()).\u0275fac=function(t){return new(t||Yt)(v.Mb(s.a),v.Mb(d.h),v.Mb(d.q),v.Mb(f.h),v.Mb(f.b),v.Mb(d.c),v.Mb(f.l))},Yt.\u0275cmp=v.Gb({type:Yt,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},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,"routerLink"]],template:function(t,e){1&t&&(v.Hc(0,jt,1,0,"mat-spinner",0),v.Hc(1,Wt,3,3,"div",1)),2&t&&(v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[c.t,A.c,Y.a,s.i],pipes:[M.d],styles:[""]}),Yt),te=o("HdwC"),ee=(($t=function(){function t(e){n(this,t),this.route=e}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe((function(e){t.voId=e.voId}))}}]),t}()).\u0275fac=function(t){return new(t||$t)(v.Mb(s.a))},$t.\u0275cmp=v.Gb({type:$t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&v.Nb(0,"app-animated-router-outlet")},directives:[R.a],styles:[""],data:{animation:[p.a]}}),$t),ie=o("Sv31"),ae=((qt=function(){function t(e,i){var a=this;n(this,t),this.route=e,this.router=i,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=i.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),i.events.subscribe((function(t){t instanceof s.b&&(a.currentUrl=t.url,a.backButtonDisplayed=a.backButtonRegex.test(a.currentUrl))}))}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe((function(e){t.voId=e.voId}))}}]),t}()).\u0275fac=function(t){return new(t||qt)(v.Mb(s.a),v.Mb(s.f))},qt.\u0275cmp=v.Gb({type:qt,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&v.Nb(0,"app-animated-router-outlet")},directives:[R.a],styles:[""],data:{animation:[p.a]}}),qt),ne=o("cqs0"),oe=o("mEf3"),re=o("HHEo"),ce=o("iyZ4"),se=o("IDQ9"),ue=o("0XDM"),le=o("A8Ay"),be=o("LKLE"),pe=["list"];function de(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",8),v.Zb("click",(function(){return v.xc(i),v.dc().onCreate()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "))}function he(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",9),v.Zb("click",(function(){return v.xc(i),v.dc().onSave()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc();v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"VO_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," ")}}function fe(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",10),v.Zb("click",(function(){return v.xc(i),v.dc().onDelete()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc();v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"VO_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," ")}}function ge(t,e){1&t&&v.Nb(0,"mat-spinner",11)}function me(t,e){if(1&t){var i=v.Tb();v.Sb(0,"perun-web-apps-attributes-list",12,13),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("pageSize",a.pageSize)("filterValue",a.filterValue)("attributes",a.attributes)("selection",a.selection)}}var ve,Ie=((ve=function(){function t(e,i,a,o,r,c){var s=this;n(this,t),this.attributesManager=e,this.route=i,this.dialog=a,this.notificator=o,this.tableConfigService=r,this.translate=c,this.attributes=[],this.selection=new ne.c(!0,[]),this.filterValue="",this.tableId=ce.r,this.translate.get("VO_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe((function(t){return s.saveSuccessMessage=t})),this.translate.get("VO_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe((function(t){return s.deleteSuccessMessage=t}))}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.voId=e.voId,t.refreshTable()}))}},{key:"onDelete",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={entityId:this.voId,entity:"vo",attributes:this.selection.selected},this.dialog.open(oe.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onCreate",value:function(){var t=this,e=Object(h.o)();e.width="1050px",e.data={entityId:this.voId,entity:"vo",notEmptyAttributes:this.attributes,style:"vo-theme"},this.dialog.open(se.a,e).afterClosed().subscribe((function(e){"saved"===e&&t.refreshTable()}))}},{key:"onSave",value:function(){var t=this;this.list.updateMapAttributes();var e=Object(h.o)();e.width="450px",e.data={entityId:this.voId,entity:"vo",attributes:this.selection.selected},this.dialog.open(m.f,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributesManager.getVoAttributes(this.voId).subscribe((function(e){t.attributes=e,t.selection.clear(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||ve)(v.Mb(d.c),v.Mb(s.a),v.Mb(I.b),v.Mb(f.l),v.Mb(ce.pb),v.Mb(M.e))},ve.\u0275cmp=v.Gb({type:ve,selectors:[["app-vo-attributes"]],viewQuery:function(t,e){var i;1&t&&v.Qc(pe,!0),2&t&&v.sc(i=v.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(v.Sb(0,"div"),v.Sb(1,"h1",0),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Sb(4,"perun-web-apps-refresh-button",1),v.Zb("refresh",(function(){return e.refreshTable()})),v.Rb(),v.Hc(5,de,3,3,"button",2),v.Hc(6,he,3,4,"button",3),v.Hc(7,fe,3,4,"button",4),v.Sb(8,"perun-web-apps-immediate-filter",5),v.Zb("filter",(function(t){return e.applyFilter(t)})),v.Rb(),v.Hc(9,ge,1,0,"mat-spinner",6),v.Hc(10,me,2,4,"perun-web-apps-attributes-list",7),v.Rb()),2&t&&(v.Ab(2),v.Kc(v.fc(3,7,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),v.Ab(3),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[ue.a,c.t,le.a,y.b,A.c,be.a],pipes:[M.d],styles:[""]}),ve);function Se(t,e){1&t&&v.Nb(0,"mat-spinner",2)}function Ae(t,e){if(1&t&&(v.Sb(0,"div"),v.Nb(1,"perun-web-apps-menu-buttons-field",3),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.kc("items",i.items)("size","small")}}var Te,Ee=((Te=function(){function t(e,i,a,o,r){n(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=a,this.route=o,this.router=r,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe((function(e){t.voService.getVoById(e.voId).subscribe((function(e){t.vo=e,t.initItems(),t.loading=!1}),(function(){return t.loading=!1}))}))}},{key:"initItems",value:function(){this.items=[],this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/settings/expiration"),label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.vo.id,"/settings/managers"),label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.vo.id,"/settings/applicationForm"),label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.vo.id,"/settings/notifications"),label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.vo.id,"/settings/extsources"),label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}]),t}()).\u0275fac=function(t){return new(t||Te)(v.Mb(l.a),v.Mb(d.q),v.Mb(f.h),v.Mb(s.a),v.Mb(s.f))},Te.\u0275cmp=v.Gb({type:Te,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(t,e){1&t&&(v.Hc(0,Se,1,0,"mat-spinner",0),v.Hc(1,Ae,2,2,"div",1)),2&t&&(v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[c.t,A.c,Y.a],styles:[""]}),Te),Re=o("k8N0"),ye=o("nIj0"),Me=o("F1o0"),Oe=o("alep"),Ne=o("29Wa"),ke=o("R7+U"),_e=o("Cd2c"),Le=o("mFH5"),Ce=o("+Tre");function Pe(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",25),v.Sb(1,"mat-form-field",26),v.Sb(2,"input",20),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc(2).currentConfiguration.periodStatic=t})),v.ec(3,"translate"),v.Rb(),v.Sb(4,"mat-hint"),v.Jc(5),v.ec(6,"translate"),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=v.dc(2);v.Ab(2),v.lc("pattern",a.datePattern),v.lc("placeholder",v.fc(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),v.kc("ngModel",a.currentConfiguration.periodStatic),v.Ab(3),v.Kc(v.fc(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ge(t,e){if(1&t&&(v.Sb(0,"mat-option",27),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.kc("value",i.value),v.Ab(1),v.Kc(i.text)}}function De(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",18),v.Sb(1,"mat-form-field",19),v.Sb(2,"input",20),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc(2).currentConfiguration.periodDynamic=t})),v.ec(3,"translate"),v.Rb(),v.Rb(),v.Sb(4,"mat-form-field"),v.Sb(5,"mat-label"),v.Jc(6),v.ec(7,"translate"),v.Rb(),v.Sb(8,"mat-select",8),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc(2).currentConfiguration.periodDynamicUnit=t})),v.Hc(9,Ge,2,2,"mat-option",17),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=v.dc(2);v.Ab(2),v.lc("pattern",a.dynamicAmountPattern),v.lc("placeholder",v.fc(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),v.kc("ngModel",a.currentConfiguration.periodDynamic),v.Ab(4),v.Kc(v.fc(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),v.Ab(2),v.kc("ngModel",a.currentConfiguration.periodDynamicUnit),v.Ab(1),v.kc("ngForOf",a.amountOptions)}}function Ve(t,e){if(1&t&&(v.Sb(0,"mat-option",27),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.kc("value",i),v.Ab(1),v.Kc(i)}}function we(t,e){if(1&t&&(v.Sb(0,"mat-option",27),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.kc("value",i),v.Ab(1),v.Kc(i)}}function xe(t,e){if(1&t&&(v.Sb(0,"mat-option",27),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.kc("value",i.value),v.Ab(1),v.Kc(i.text)}}function ze(t,e){if(1&t&&(v.Sb(0,"mat-option",27),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.kc("value",i),v.Ab(1),v.Lc(" ",i," ")}}function He(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",25),v.Sb(1,"mat-form-field",26),v.Sb(2,"input",20),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc(3).currentConfiguration.specialLoaPeriodStatic=t})),v.ec(3,"translate"),v.Rb(),v.Sb(4,"mat-hint"),v.Jc(5),v.ec(6,"translate"),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=v.dc(3);v.Ab(2),v.lc("pattern",a.datePattern),v.lc("placeholder",v.fc(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),v.kc("ngModel",a.currentConfiguration.specialLoaPeriodStatic),v.Ab(3),v.Kc(v.fc(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ue(t,e){if(1&t&&(v.Sb(0,"mat-option",27),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.kc("value",i.value),v.Ab(1),v.Kc(i.text)}}function Je(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",18),v.Sb(1,"mat-form-field",19),v.Sb(2,"input",20),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc(3).currentConfiguration.specialLoaPeriodDynamic=t})),v.ec(3,"translate"),v.Rb(),v.Rb(),v.Sb(4,"mat-form-field"),v.Sb(5,"mat-label"),v.Jc(6),v.ec(7,"translate"),v.Rb(),v.Sb(8,"mat-select",8),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc(3).currentConfiguration.specialLoaPeriodDynamicUnit=t})),v.Hc(9,Ue,2,2,"mat-option",17),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=v.dc(3);v.Ab(2),v.lc("pattern",a.dynamicAmountPattern),v.lc("placeholder",v.fc(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),v.kc("ngModel",a.currentConfiguration.specialLoaPeriodDynamic),v.Ab(4),v.Kc(v.fc(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),v.Ab(2),v.kc("ngModel",a.currentConfiguration.specialLoaPeriodDynamicUnit),v.Ab(1),v.kc("ngForOf",a.amountOptions)}}function Be(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",28),v.Sb(1,"mat-radio-group",8),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc(2).currentConfiguration.specialLoaPeriodType=t})),v.Sb(2,"mat-radio-button",9,29),v.Jc(4),v.ec(5,"translate"),v.Rb(),v.Sb(6,"mat-radio-button",11,30),v.Jc(8),v.ec(9,"translate"),v.Rb(),v.Rb(),v.Hc(10,He,7,8,"div",13),v.Hc(11,Je,10,10,"div",14),v.Sb(12,"div"),v.Sb(13,"mat-checkbox",31),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=t})),v.Jc(14),v.ec(15,"translate"),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=v.tc(3),n=v.tc(7),o=v.dc(2);v.Ab(1),v.kc("ngModel",o.currentConfiguration.specialLoaPeriodType),v.Ab(3),v.Lc(" ",v.fc(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),v.Ab(4),v.Lc(" ",v.fc(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),v.Ab(2),v.kc("ngIf",a.checked),v.Ab(1),v.kc("ngIf",n.checked),v.Ab(2),v.kc("ngModel",o.currentConfiguration.specialLoaPeriodExtendExpiredMembers),v.Ab(1),v.Lc(" ",v.fc(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Fe(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",1),v.Sb(1,"div",2),v.Sb(2,"h1",3),v.Zb("click",(function(){return v.xc(i),v.tc(6).toggle()})),v.Jc(3),v.ec(4,"translate"),v.Rb(),v.Sb(5,"mat-slide-toggle",4,5),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.enabled=t})),v.Rb(),v.Rb(),v.Sb(7,"div"),v.Sb(8,"label",6),v.Jc(9),v.ec(10,"translate"),v.Rb(),v.Sb(11,"div",7),v.Sb(12,"mat-radio-group",8),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.periodType=t})),v.Sb(13,"mat-radio-button",9,10),v.Jc(15),v.ec(16,"translate"),v.Rb(),v.Sb(17,"mat-radio-button",11,12),v.Jc(19),v.ec(20,"translate"),v.Rb(),v.Rb(),v.Hc(21,Pe,7,8,"div",13),v.Hc(22,De,10,10,"div",14),v.Rb(),v.Sb(23,"app-settings-toggle-item",15),v.Zb("modelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.doNotAllowLoasEnabled=t})),v.ec(24,"translate"),v.Sb(25,"mat-form-field"),v.Sb(26,"mat-placeholder"),v.Jc(27),v.ec(28,"translate"),v.Rb(),v.Sb(29,"mat-select",16),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.doNotAllowLoas=t})),v.Hc(30,Ve,2,2,"mat-option",17),v.Rb(),v.Rb(),v.Rb(),v.Sb(31,"app-settings-toggle-item",15),v.Zb("modelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.doNotExtendLoasEnabled=t})),v.ec(32,"translate"),v.Sb(33,"mat-form-field"),v.Sb(34,"mat-placeholder"),v.Jc(35),v.ec(36,"translate"),v.Rb(),v.Sb(37,"mat-select",16),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.doNotExtendLoas=t})),v.Hc(38,we,2,2,"mat-option",17),v.Rb(),v.Rb(),v.Rb(),v.Sb(39,"app-settings-toggle-item",15),v.Zb("modelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.gracePeriodEnabled=t})),v.ec(40,"translate"),v.Sb(41,"div",18),v.Sb(42,"mat-form-field",19),v.Sb(43,"input",20),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.gracePeriod=t})),v.ec(44,"translate"),v.Rb(),v.Rb(),v.Sb(45,"mat-form-field"),v.Sb(46,"mat-label"),v.Jc(47),v.ec(48,"translate"),v.Rb(),v.Sb(49,"mat-select",8),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.gracePeriodUnit=t})),v.Hc(50,xe,2,2,"mat-option",17),v.Rb(),v.Rb(),v.Rb(),v.Rb(),v.Sb(51,"app-settings-toggle-item",15),v.Zb("modelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.specialLoaPeriodEnabled=t})),v.ec(52,"translate"),v.Sb(53,"div",7),v.Sb(54,"div"),v.Sb(55,"mat-form-field"),v.Sb(56,"mat-label"),v.Jc(57),v.ec(58,"translate"),v.Rb(),v.Sb(59,"mat-select",8,21),v.Zb("ngModelChange",(function(t){return v.xc(i),v.dc().currentConfiguration.specialLoa=t})),v.Hc(61,ze,2,2,"mat-option",17),v.Rb(),v.Rb(),v.Hc(62,Be,16,13,"div",22),v.Rb(),v.Rb(),v.Rb(),v.Rb(),v.Sb(63,"div",23),v.ec(64,"translate"),v.Sb(65,"button",24),v.Zb("click",(function(){return v.xc(i),v.dc().saveChanges()})),v.Jc(66),v.ec(67,"translate"),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=v.tc(6),n=v.tc(14),o=v.tc(18),r=v.dc();v.Ab(2),v.Eb("unselected-setting",!a.checked),v.Ab(1),v.Lc(" ",v.fc(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),v.Ab(2),v.kc("ngModel",r.currentConfiguration.enabled),v.Ab(2),v.kc("@openClose",a.checked?"open":"closed"),v.Ab(2),v.Kc(v.fc(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),v.Ab(3),v.kc("ngModel",r.currentConfiguration.periodType),v.Ab(3),v.Lc(" ",v.fc(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),v.Ab(4),v.Lc(" ",v.fc(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),v.Ab(2),v.kc("ngIf",n.checked),v.Ab(1),v.kc("ngIf",o.checked),v.Ab(1),v.kc("model",r.currentConfiguration.doNotAllowLoasEnabled)("title",v.fc(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),v.Ab(4),v.Kc(v.fc(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),v.Ab(2),v.kc("ngModel",r.currentConfiguration.doNotAllowLoas),v.Ab(1),v.kc("ngForOf",r.LOAS),v.Ab(1),v.kc("model",r.currentConfiguration.doNotExtendLoasEnabled)("title",v.fc(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),v.Ab(4),v.Kc(v.fc(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),v.Ab(2),v.kc("ngModel",r.currentConfiguration.doNotExtendLoas),v.Ab(1),v.kc("ngForOf",r.LOAS),v.Ab(1),v.kc("model",r.currentConfiguration.gracePeriodEnabled)("title",v.fc(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),v.Ab(4),v.lc("pattern",r.dynamicAmountPattern),v.lc("placeholder",v.fc(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),v.kc("ngModel",r.currentConfiguration.gracePeriod),v.Ab(4),v.Kc(v.fc(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),v.Ab(2),v.kc("ngModel",r.currentConfiguration.gracePeriodUnit),v.Ab(1),v.kc("ngForOf",r.amountOptions),v.Ab(1),v.kc("model",r.currentConfiguration.specialLoaPeriodEnabled)("title",v.fc(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),v.Ab(6),v.Kc(v.fc(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),v.Ab(2),v.kc("ngModel",r.currentConfiguration.specialLoa),v.Ab(2),v.kc("ngForOf",r.LOAS),v.Ab(1),v.kc("ngIf",null!==r.currentConfiguration.specialLoa),v.Ab(1),v.lc("matTooltip",v.fc(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),v.kc("matTooltipDisabled",r.expirationAttribute.writable)("matTooltipPosition","above"),v.Ab(2),v.kc("disabled",!r.areChangesMade()||!r.expirationAttribute.writable),v.Ab(1),v.Lc(" ",v.fc(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}var Ze,je=((Ze=function(){function t(){n(this,t),this.saveAttribute=new v.o,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"}]}return r(t,[{key:"ngOnInit",value:function(){var t=new Map;this.LOAS.forEach((function(e){return t.set(e,"")})),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}},{key:"ngOnChanges",value:function(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}},{key:"saveChanges",value:function(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}},{key:"areChangesMade",value:function(){var t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}},{key:"parseExpirationRulesAttribute",value:function(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}},{key:"parsePeriod",value:function(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}},{key:"createInitConfiguration",value:function(){var t=new Map;return this.LOAS.forEach((function(e){return t.set(e,"")})),{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}}},{key:"unParseAttrValue",value:function(t){var e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}},{key:"setPeriodValues",value:function(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";var i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}},{key:"setDoNotAllowLoasValues",value:function(t,e){var i=[];return t.doNotAllowLoa.split(",").forEach((function(t){return i.push(parseInt(t.trim(),10))})),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}},{key:"setDoNotExtendLoasValues",value:function(t,e){var i=[];return t.doNotExtendLoa.split(",").forEach((function(t){return i.push(parseInt(t.trim(),10))})),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}},{key:"setGracePeriodValues",value:function(t,e){e.gracePeriodEnabled=!0;var i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}},{key:"setSpecialLoaPeriodValues",value:function(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;var i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";var a=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=a}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}},{key:"parseDynamicPeriod",value:function(t){return"+"+t.periodDynamic+t.periodDynamicUnit}},{key:"parseStaticPeriod",value:function(t){return t.periodStatic}},{key:"parseDontAllowLoas",value:function(t){if(!t.doNotAllowLoasEnabled)return null;var e="";return t.doNotAllowLoas.forEach((function(t){return e+=t+","})),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseDontExtendLoas",value:function(t){if(!t.doNotExtendLoasEnabled)return null;var e="";return t.doNotExtendLoas.forEach((function(t){return e+=t+","})),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseGracePeriod",value:function(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}},{key:"parseSpecialLoaPeriod",value:function(t){if(!t.specialLoaPeriodEnabled)return null;var e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}},{key:"parseSpecialLoaPeriodStatic",value:function(t){return t.specialLoaPeriodStatic}},{key:"parseSpecialLoaPeriodDynamic",value:function(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}},{key:"parseAttributeValueFromConfig",value:function(t){if(!t.enabled)return null;var e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),a=this.parseDontExtendLoas(t),n=this.parseGracePeriod(t),o=this.parseSpecialLoaPeriod(t),r={period:e};return null!==a&&(r.doNotExtendLoa=a),null!==i&&(r.doNotAllowLoa=i),null!==n&&(r.gracePeriod=n),null!==o&&(r.periodLoa=o),r}}]),t}()).\u0275fac=function(t){return new(t||Ze)},Ze.\u0275cmp=v.Gb({type:Ze,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[v.yb],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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&v.Hc(0,Fe,68,70,"div",0),2&t&&v.kc("ngIf",e.currentConfiguration)},directives:[c.t,Re.a,ye.r,ye.u,Me.b,Me.a,Oe.a,Ne.c,Ne.h,ke.a,c.s,_e.b,ye.c,ye.y,Ne.g,E.a,y.b,Ne.f,Le.n,Ce.a],pipes:[M.d],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;-ms-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[p.c]}}),Ze);function Ke(t,e){if(1&t){var i=v.Tb();v.Sb(0,"app-expiration-settings",1),v.Zb("saveAttribute",(function(t){return v.xc(i),v.dc().saveExpirationAttribute(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("expirationAttribute",a.expirationAttribute)}}var Xe,We=((Xe=function(){function t(e,i,a,o,r){var c=this;n(this,t),this.attributesManager=e,this.route=i,this.translate=a,this.notificator=o,this.apiRequest=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe((function(t){return c.successMessage=t})),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe((function(t){return c.errorMessage=t}))}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe((function(e){t.voId=e.voId,t.loadSettings()}))}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.voId,g.a.VO_DEF_EXPIRATION_RULES).subscribe((function(e){t.expirationAttribute=e}))}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.voId,attribute:t}).subscribe((function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)}),(function(t){console.log(t),e.notificator.showRPCError(t.error,e.errorMessage)}))}}]),t}()).\u0275fac=function(t){return new(t||Xe)(v.Mb(d.c),v.Mb(s.a),v.Mb(M.e),v.Mb(f.l),v.Mb(f.b))},Xe.\u0275cmp=v.Gb({type:Xe,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&v.Hc(0,Ke,1,1,"app-expiration-settings",0),2&t&&v.kc("ngIf",void 0!==e.expirationAttribute)},directives:[c.t,je],styles:[""],data:{animation:[p.c]}}),Xe),Ye=o("dWQl"),$e=o("NU+N");function qe(t,e){if(1&t&&v.Nb(0,"app-managers-page",1),2&t){var i=v.dc();v.kc("complementaryObject",i.vo)("complementaryObjectType",i.type)("theme",i.theme)("availableRoles",i.availableRoles)}}var Qe,ti=((Qe=function(){function t(e,i,a,o){n(this,t),this.dialog=e,this.voService=i,this.route=a,this.guiAuthResolver=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe((function(e){t.voService.getVoById(e.voId).subscribe((function(e){t.vo=e}))})),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}]),t}()).\u0275fac=function(t){return new(t||Qe)(v.Mb(I.b),v.Mb(d.q),v.Mb(s.a),v.Mb(f.h))},Qe.\u0275cmp=v.Gb({type:Qe,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&v.Hc(0,qe,1,4,"app-managers-page",0),2&t&&v.kc("ngIf",e.vo)},directives:[c.t,$e.a],styles:[""]}),Qe),ei=o("JVFj"),ii=o("ZTj5"),ai=o("vNdQ"),ni=o("zmEM"),oi=o("e+sS");function ri(t,e){if(1&t&&(v.Sb(0,"span",5),v.Jc(1),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.Lc(" #",i.application.id," ")}}function ci(t,e){1&t&&v.Nb(0,"mat-spinner",6)}function si(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",17),v.Zb("click",(function(){return v.xc(i),v.dc(2).verifyApplication()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function ui(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",17),v.Zb("click",(function(){return v.xc(i),v.dc(2).approveApplication()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function li(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",18),v.Zb("click",(function(){return v.xc(i),v.dc(2).rejectApplication()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function bi(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",18),v.Zb("click",(function(){return v.xc(i),v.dc(2).deleteApplication()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function pi(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",19),v.Zb("click",(function(){return v.xc(i),v.dc(2).resendNotification()})),v.Sb(1,"i",14),v.Jc(2," mail_outline "),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()}2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function di(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"span",10),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Jc(4),v.Rb()),2&t){var i=v.dc(2);v.Ab(2),v.Kc(v.fc(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),v.Ab(2),v.Lc(": ",i.application.vo.name," ")}}function hi(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"span",10),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Jc(4),v.Sb(5,"span",10),v.Jc(6),v.ec(7,"translate"),v.Rb(),v.Jc(8),v.Rb()),2&t){var i=v.dc(2);v.Ab(2),v.Kc(v.fc(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),v.Ab(2),v.Lc(": ",i.application.group.name," "),v.Ab(2),v.Kc(v.fc(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),v.Ab(2),v.Lc(": ",i.application.vo.name," ")}}function fi(t,e){1&t&&(v.Sb(0,"span"),v.Sb(1,"mat-icon",20),v.Jc(2,"arrow_right_alt"),v.Rb(),v.Jc(3," Initial "),v.Rb())}function gi(t,e){1&t&&(v.Sb(0,"span"),v.Sb(1,"mat-icon",20),v.Jc(2,"restore"),v.Rb(),v.Jc(3," Extension "),v.Rb())}function mi(t,e){1&t&&(v.Sb(0,"span"),v.Sb(1,"mat-icon",20),v.Jc(2,"nat"),v.Rb(),v.Jc(3," Embedded "),v.Rb())}function vi(t,e){if(1&t&&(v.Sb(0,"div",21),v.Sb(1,"mat-card-title"),v.Sb(2,"i",22),v.Jc(3,"clear"),v.Rb(),v.Jc(4),v.ec(5,"translate"),v.Rb(),v.Sb(6,"div"),v.Sb(7,"span",10),v.Jc(8),v.ec(9,"translate"),v.Rb(),v.Jc(10),v.ec(11,"date"),v.Rb(),v.Rb()),2&t){var i=v.dc(2);v.Ab(4),v.Mc(" ",v.fc(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",i.getModifiedAtName(i.application.modifiedBy),""),v.Ab(4),v.Kc(v.fc(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),v.Ab(2),v.Lc(": ",v.gc(11,8,i.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Ii(t,e){if(1&t&&(v.Sb(0,"div",21),v.Sb(1,"mat-card-title"),v.Sb(2,"i",23),v.Jc(3,"done"),v.Rb(),v.Jc(4),v.ec(5,"translate"),v.Rb(),v.Sb(6,"div"),v.Sb(7,"span",10),v.Jc(8),v.ec(9,"translate"),v.Rb(),v.Jc(10),v.ec(11,"date"),v.Rb(),v.Rb()),2&t){var i=v.dc(2);v.Ab(4),v.Mc(" ",v.fc(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",i.getModifiedAtName(i.application.modifiedBy),""),v.Ab(4),v.Kc(v.fc(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),v.Ab(2),v.Lc(": ",v.gc(11,8,i.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Si(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"span",10),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Jc(4),v.Rb()),2&t){var i=v.dc(2);v.Ab(2),v.Kc(v.fc(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),v.Ab(2),v.Lc(": ",i.userMail,"")}}function Ai(t,e){1&t&&v.Nb(0,"th",32)}function Ti(t,e){if(1&t&&(v.Sb(0,"td",33),v.Jc(1),v.Rb()),2&t){var i=e.$implicit,a=v.dc(3);v.Ab(1),v.Mc("",a.getLabel(i.formItem),"",i.formItem.type.startsWith("FROM_FEDERATION")?"*":"","")}}function Ei(t,e){1&t&&v.Nb(0,"th",32)}function Ri(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",36),v.Zb("click",(function(){v.xc(i);var t=v.dc().$implicit;return v.dc(3).editApplicationData(t)})),v.Sb(1,"mat-icon"),v.Jc(2,"edit"),v.Rb(),v.Rb()}}function yi(t,e){if(1&t&&(v.Sb(0,"td",34),v.Jc(1),v.Hc(2,Ri,3,0,"button",35),v.Rb()),2&t){var i=e.$implicit,a=v.dc(3);v.Ab(1),v.Lc(" ",i.value," "),v.Ab(1),v.kc("ngIf",!i.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===a.application.state||"VERIFIED"===a.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==i.formItem.type)}}function Mi(t,e){1&t&&v.Nb(0,"tr",37)}function Oi(t,e){1&t&&v.Nb(0,"tr",38)}function Ni(t,e){if(1&t&&(v.Sb(0,"table",24),v.Qb(1,25),v.Hc(2,Ai,1,0,"th",26),v.Hc(3,Ti,2,2,"td",27),v.Pb(),v.Qb(4,28),v.Hc(5,Ei,1,0,"th",26),v.Hc(6,yi,3,2,"td",29),v.Pb(),v.Hc(7,Mi,1,0,"tr",30),v.Hc(8,Oi,1,0,"tr",31),v.Rb()),2&t){var i=v.dc(2);v.kc("dataSource",i.dataSource),v.Ab(7),v.kc("matHeaderRowDef",i.displayedColumns),v.Ab(1),v.kc("matRowDefColumns",i.displayedColumns)}}function ki(t,e){1&t&&(v.Sb(0,"div",39),v.Jc(1),v.ec(2,"translate"),v.Rb()),2&t&&(v.Ab(1),v.Lc("*",v.fc(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS"),""))}function _i(t,e){if(1&t&&(v.Sb(0,"div"),v.Hc(1,si,3,3,"button",7),v.Hc(2,ui,3,3,"button",7),v.Hc(3,li,3,3,"button",8),v.Hc(4,bi,3,3,"button",8),v.Hc(5,pi,5,3,"button",9),v.Hc(6,di,5,4,"div",4),v.Hc(7,hi,9,8,"div",4),v.Sb(8,"div"),v.Sb(9,"span",10),v.Jc(10),v.ec(11,"translate"),v.Rb(),v.Jc(12,": "),v.Nb(13,"span",11),v.ec(14,"applicationState"),v.Rb(),v.Sb(15,"div"),v.Sb(16,"span",10),v.Jc(17),v.ec(18,"translate"),v.Rb(),v.Jc(19,": "),v.Hc(20,fi,4,0,"span",4),v.Hc(21,gi,4,0,"span",4),v.Hc(22,mi,4,0,"span",4),v.Rb(),v.Hc(23,vi,12,11,"div",12),v.Hc(24,Ii,12,11,"div",12),v.Sb(25,"div",13),v.Sb(26,"mat-card-title"),v.Sb(27,"i",14),v.Jc(28,"redo"),v.Rb(),v.Jc(29),v.ec(30,"translate"),v.ec(31,"userFullName"),v.Rb(),v.Hc(32,Si,5,4,"div",4),v.Sb(33,"div"),v.Sb(34,"span",10),v.Jc(35),v.ec(36,"translate"),v.Rb(),v.Jc(37),v.Rb(),v.Sb(38,"div"),v.Sb(39,"span",10),v.Jc(40),v.ec(41,"translate"),v.Rb(),v.Jc(42),v.Rb(),v.Sb(43,"div"),v.Sb(44,"span",10),v.Jc(45),v.ec(46,"translate"),v.Rb(),v.Jc(47),v.ec(48,"date"),v.Rb(),v.Hc(49,Ni,9,3,"table",15),v.Hc(50,ki,3,3,"div",16),v.Rb(),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.kc("ngIf","NEW"==i.application.state&&i.verifyAuth),v.Ab(1),v.kc("ngIf",("VERIFIED"==i.application.state||"NEW"==i.application.state)&&i.approveAuth),v.Ab(1),v.kc("ngIf",("VERIFIED"==i.application.state||"NEW"==i.application.state)&&i.rejectAuth),v.Ab(1),v.kc("ngIf",("REJECTED"==i.application.state||"NEW"==i.application.state)&&i.deleteAuth),v.Ab(1),v.kc("ngIf",i.resendAuth),v.Ab(1),v.kc("ngIf",!i.application.group),v.Ab(1),v.kc("ngIf",i.application.group),v.Ab(3),v.Kc(v.fc(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),v.Ab(3),v.kc("outerHTML",v.fc(14,28,i.application.state),v.yc),v.Ab(4),v.Kc(v.fc(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),v.Ab(3),v.kc("ngIf","INITIAL"==i.application.type),v.Ab(1),v.kc("ngIf","EXTENSION"==i.application.type),v.Ab(1),v.kc("ngIf","EMBEDDED"==i.application.type),v.Ab(1),v.kc("ngIf","REJECTED"==i.application.state),v.Ab(1),v.kc("ngIf","APPROVED"==i.application.state),v.Ab(5),v.Mc(" ",v.fc(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===i.application.user?i.submittedBy():v.fc(31,34,i.application.user),""),v.Ab(3),v.kc("ngIf",i.userMail),v.Ab(3),v.Kc(v.fc(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),v.Ab(2),v.Lc(": ",i.application.extSourceName,""),v.Ab(3),v.Kc(v.fc(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),v.Ab(2),v.Lc(": ",i.application.extSourceLoa,""),v.Ab(3),v.Kc(v.fc(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),v.Ab(2),v.Lc(": ",v.gc(48,42,i.application.createdAt,"d.M.y H:mm:ss"),""),v.Ab(2),v.kc("ngIf",0!==i.userData.length),v.Ab(1),v.kc("ngIf",0!==i.userData.length)}}var Li,Ci,Pi=((Li=function(){function t(e,i,a,o,r,c,s,u){n(this,t),this.registrarManager=e,this.dialog=i,this.translate=a,this.route=o,this.notificator=r,this.router=c,this.authResolver=s,this.usersService=u,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe((function(e){t.dialogTheme=e.groupId?"group-theme":e.memberId?"member-theme":"vo-theme",t.registrarManager.getApplicationById(e.applicationId).subscribe((function(e){t.application=e,"EMBEDDED"===t.application.type&&t.application.user?t.usersService.getRichUserWithAttributes(t.application.user.id).subscribe((function(e){var i,a=e.userAttributes.find((function(t){return"preferredMail"===t.friendlyName}));t.userMail=null===(i=null==a?void 0:a.value)||void 0===i?void 0:i.toString(),t.setAuthRights(),t.loading=!1})):t.registrarManager.getApplicationDataById(t.application.id).subscribe((function(e){t.userData=e,t.dataSource=new pt.o(t.userData),t.setAuthRights(),t.loading=!1}))}))}))}},{key:"setAuthRights",value:function(){"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]))}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}},{key:"submittedBy",value:function(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}},{key:"getModifiedAtName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"resendNotification",value:function(){var t=Object(h.o)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ei.a,t)}},{key:"deleteApplication",value:function(){var t=this;this.registrarManager.deleteApplication(this.application.id).subscribe((function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe((function(e){t.notificator.showSuccess(e),t.router.navigateByUrl(t.router.url.substring(0,t.router.url.lastIndexOf("/")))}))}))}},{key:"rejectApplication",value:function(){var t=this,e=Object(h.o)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ii.a,e).afterClosed().subscribe((function(){t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe((function(e){t.application=e,t.loading=!1}))}))}},{key:"approveApplication",value:function(){var t=this;this.registrarManager.approveApplication(this.application.id).subscribe((function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe((function(e){t.notificator.showSuccess(e)})),t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe((function(e){t.application=e,t.loading=!1}))}))}},{key:"verifyApplication",value:function(){var t=this;this.registrarManager.verifyApplication(this.application.id).subscribe((function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe((function(e){t.notificator.showSuccess(e)})),t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe((function(e){t.application=e,t.loading=!1}))}))}},{key:"editApplicationData",value:function(t){var e=Object(h.o)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(ai.a,e)}}]),t}()).\u0275fac=function(t){return new(t||Li)(v.Mb(d.l),v.Mb(I.b),v.Mb(M.e),v.Mb(s.a),v.Mb(f.l),v.Mb(s.f),v.Mb(f.h),v.Mb(d.p))},Li.\u0275cmp=v.Gb({type:Li,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(v.Sb(0,"h2",0),v.Jc(1),v.ec(2,"translate"),v.Hc(3,ri,2,1,"span",1),v.Rb(),v.Nb(4,"mat-divider",2),v.Hc(5,ci,1,0,"mat-spinner",3),v.Hc(6,_i,51,45,"div",4)),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),v.Ab(2),v.kc("ngIf",!!e.application),v.Ab(2),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[c.t,ni.a,A.c,ht.m,y.b,T.a,pt.n,pt.c,pt.i,pt.b,pt.k,pt.m,pt.h,pt.a,pt.j,pt.l],pipes:[M.d,oi.a,vt.a,c.f],styles:[""]}),Li),Gi=o("vUMc"),Di=o("got8"),Vi=((Ci=function(){function t(){n(this,t)}return r(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||Ci)},Ci.\u0275cmp=v.Gb({type:Ci,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&v.Nb(0,"app-animated-router-outlet")},directives:[R.a],styles:[""],data:{animation:[p.a]}}),Ci),wi=o("KZIX"),xi=o("bdug"),zi=["list"];function Hi(t,e){1&t&&(v.Jc(0),v.ec(1,"translate")),2&t&&v.Lc(" ",v.fc(1,1,"GROUP_DETAIL.ENTITY")," ")}function Ui(t,e){1&t&&v.Nb(0,"mat-spinner",10)}function Ji(t,e){if(1&t){var i=v.Tb();v.Sb(0,"perun-web-apps-attributes-list",11,12),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("pageSize",a.pageSize)("filterValue",a.filterValue)("attributes",a.attributes)("selection",a.selection)}}function Bi(t,e){1&t&&(v.Jc(0),v.ec(1,"translate"),v.ec(2,"translate")),2&t&&v.Mc(" ",v.fc(1,2,"GROUP_DETAIL.ENTITY")," - ",v.fc(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Fi(t,e){if(1&t&&v.Nb(0,"app-two-entity-attribute-page",15),2&t){var i=v.dc(3);v.kc("firstEntity","group")("firstEntityId",i.groupId)("secondEntity","member")}}function Zi(t,e){if(1&t&&v.Hc(0,Fi,1,3,"app-two-entity-attribute-page",14),2&t){var i=v.dc(2);v.kc("ngIf",!i.loading)}}function ji(t,e){1&t&&(v.Sb(0,"mat-tab"),v.Hc(1,Bi,3,6,"ng-template",1),v.Hc(2,Zi,1,1,"ng-template",13),v.Rb())}function Ki(t,e){1&t&&(v.Jc(0),v.ec(1,"translate"),v.ec(2,"translate")),2&t&&v.Mc(" ",v.fc(1,2,"GROUP_DETAIL.ENTITY")," - ",v.fc(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Xi(t,e){if(1&t&&v.Nb(0,"app-two-entity-attribute-page",15),2&t){var i=v.dc(3);v.kc("firstEntity","group")("firstEntityId",i.groupId)("secondEntity","resource")}}function Wi(t,e){if(1&t&&v.Hc(0,Xi,1,3,"app-two-entity-attribute-page",14),2&t){var i=v.dc(2);v.kc("ngIf",!i.loading)}}function Yi(t,e){1&t&&(v.Sb(0,"mat-tab"),v.Hc(1,Ki,3,6,"ng-template",1),v.Hc(2,Wi,1,1,"ng-template",13),v.Rb())}var $i,qi=(($i=function(){function t(e,i,a,o,r,c,s,u){var l=this;n(this,t),this.route=e,this.attributesManager=i,this.groupManager=a,this.notificator=o,this.dialog=r,this.translate=c,this.tableConfigService=s,this.authResolver=u,this.selection=new ne.c(!0,[]),this.attributes=[],this.filterValue="",this.tableId=ce.r,this.translate.get("GROUP_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe((function(t){return l.saveSuccessMessage=t})),this.translate.get("GROUP_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe((function(t){return l.deleteSuccessMessage=t}))}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.groupId=e.groupId,t.groupManager.getGroupById(t.groupId).subscribe((function(e){t.group=e,t.groupResourceAttAuth=t.authResolver.isAuthorized("getAssignedResources_Group_policy",[t.group]),t.groupMemberAttAuth=t.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_boolean_policy",[t.group]),t.refreshTable()}))}))}},{key:"onCreate",value:function(){var t=this,e=Object(h.o)();e.width="1050px",e.data={entityId:this.groupId,entity:"group",notEmptyAttributes:this.attributes,style:"group-theme"},this.dialog.open(se.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onSave",value:function(){var t=this;this.list.updateMapAttributes();var e=Object(h.o)();e.width="450px",e.data={entityId:this.groupId,entity:"group",attributes:this.selection.selected},this.dialog.open(m.f,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onDelete",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={entityId:this.groupId,entity:"group",attributes:this.selection.selected},this.dialog.open(oe.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributesManager.getGroupAttributes(this.groupId).subscribe((function(e){t.attributes=e,t.selection.clear(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||$i)(v.Mb(s.a),v.Mb(d.c),v.Mb(d.h),v.Mb(f.l),v.Mb(I.b),v.Mb(M.e),v.Mb(ce.pb),v.Mb(f.h))},$i.\u0275cmp=v.Gb({type:$i,selectors:[["app-group-attributes"]],viewQuery:function(t,e){var i;1&t&&v.Qc(zi,!0),2&t&&v.sc(i=v.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:22,vars:19,consts:[[1,"page-subtitle"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(v.Sb(0,"div"),v.Sb(1,"h1",0),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Sb(4,"mat-tab-group"),v.Sb(5,"mat-tab"),v.Hc(6,Hi,2,3,"ng-template",1),v.Sb(7,"perun-web-apps-refresh-button",2),v.Zb("refresh",(function(){return e.refreshTable()})),v.Rb(),v.Sb(8,"button",3),v.Zb("click",(function(){return e.onCreate()})),v.Jc(9),v.ec(10,"translate"),v.Rb(),v.Sb(11,"button",4),v.Zb("click",(function(){return e.onSave()})),v.Jc(12),v.ec(13,"translate"),v.Rb(),v.Sb(14,"button",5),v.Zb("click",(function(){return e.onDelete()})),v.Jc(15),v.ec(16,"translate"),v.Rb(),v.Sb(17,"perun-web-apps-immediate-filter",6),v.Zb("filter",(function(t){return e.applyFilter(t)})),v.Rb(),v.Hc(18,Ui,1,0,"mat-spinner",7),v.Hc(19,Ji,2,4,"perun-web-apps-attributes-list",8),v.Rb(),v.Hc(20,ji,3,0,"mat-tab",9),v.Hc(21,Yi,3,0,"mat-tab",9),v.Rb(),v.Rb()),2&t&&(v.Ab(2),v.Kc(v.fc(3,11,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),v.Ab(7),v.Lc(" ",v.fc(10,13,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),v.Ab(2),v.kc("disabled",0===e.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(13,15,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),v.Ab(2),v.kc("disabled",0===e.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(16,17,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),v.Ab(2),v.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",e.groupMemberAttAuth),v.Ab(1),v.kc("ngIf",e.groupResourceAttAuth))},directives:[wi.c,wi.a,wi.d,ue.a,y.b,le.a,c.t,A.c,be.a,wi.b,xi.a],pipes:[M.d],styles:[""]}),$i);function Qi(t,e){1&t&&v.Nb(0,"mat-spinner",2)}function ta(t,e){if(1&t&&(v.Sb(0,"div"),v.Nb(1,"perun-web-apps-menu-buttons-field",3),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.kc("items",i.items)("size","small")}}var ea,ia=((ea=function(){function t(e,i,a,o,r,c,s,u,l){n(this,t),this.sideMenuService=e,this.voService=i,this.groupService=a,this.route=o,this.router=r,this.guiAuthResolver=c,this.apiRequest=s,this.attributesManager=u,this.notificator=l,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe((function(e){var i=e.voId;t.groupService.getGroupById(e.groupId).subscribe((function(e){t.group=e,t.voService.getVoById(i).subscribe((function(e){t.vo=e,t.initItems(),t.loading=!1}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}))}},{key:"initItems",value:function(){var t=this;this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,g.a.GROUP_DEF_EXPIRATION_RULES).subscribe((function(){t.items.push({cssIcon:"perun-group",url:"/organizations/".concat(t.vo.id,"/groups/").concat(t.group.id,"/settings/expiration"),label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})}),(function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)})),this.guiAuthResolver.isManagerPagePrivileged(this.group)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/managers"),label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/applicationForm"),label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/notifications"),label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group])&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/relations"),label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[this.group])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/extsources"),label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}]),t}()).\u0275fac=function(t){return new(t||ea)(v.Mb(l.a),v.Mb(d.q),v.Mb(d.h),v.Mb(s.a),v.Mb(s.f),v.Mb(f.h),v.Mb(f.b),v.Mb(d.c),v.Mb(f.l))},ea.\u0275cmp=v.Gb({type:ea,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(t,e){1&t&&(v.Hc(0,Qi,1,0,"mat-spinner",0),v.Hc(1,ta,2,2,"div",1)),2&t&&(v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[c.t,A.c,Y.a],styles:[""]}),ea),aa=o("IgBI");function na(t,e){1&t&&v.Nb(0,"mat-spinner",3)}function oa(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",8),v.Zb("click",(function(){return v.xc(i),v.dc(2).switchToInitial()})),v.Sb(1,"i",9),v.Jc(2,"arrow_right_alt"),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()}2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function ra(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",8),v.Zb("click",(function(){return v.xc(i),v.dc(2).switchToExtension()})),v.Sb(1,"i",9),v.Jc(2,"cached"),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()}2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function ca(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",8),v.Zb("click",(function(){return v.xc(i),v.dc(2).switchToEnglish()})),v.Sb(1,"i",9),v.Jc(2,"public"),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()}2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_ENGLISH")," "))}function sa(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",8),v.Zb("click",(function(){return v.xc(i),v.dc(2).switchToCzech()})),v.Sb(1,"i",9),v.Jc(2,"public"),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()}2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_CZECH")," "))}function ua(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"div",15),v.Nb(5,"input",16),v.Rb(),v.Rb(),v.Sb(6,"div",14),v.Sb(7,"span",17),v.Jc(8),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(5),v.Kc(a.getLocalizedHint(i))}}function la(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"div",15),v.Nb(5,"input",18),v.Rb(),v.Rb(),v.Sb(6,"div",14),v.Sb(7,"span",17),v.Jc(8),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(5),v.Kc(a.getLocalizedHint(i))}}function ba(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"div",15),v.Nb(5,"input",19),v.Nb(6,"br"),v.Nb(7,"input",16),v.Rb(),v.Rb(),v.Sb(8,"div",14),v.Sb(9,"span",17),v.Jc(10),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(7),v.Kc(a.getLocalizedHint(i))}}function pa(t,e){if(1&t&&(v.Sb(0,"div"),v.Nb(1,"input",21),v.Jc(2),v.Nb(3,"br"),v.Rb()),2&t){var i=e.$implicit;v.Ab(2),v.Lc(" ",i,"")}}function da(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"form",15),v.Hc(5,pa,4,1,"div",7),v.Nb(6,"input",20),v.ec(7,"translate"),v.Rb(),v.Rb(),v.Sb(8,"div",14),v.Sb(9,"span",17),v.Jc(10),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(2),v.kc("ngForOf",a.getLocalizedOptions(i)),v.Ab(1),v.lc("value",v.fc(7,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),v.Ab(4),v.Kc(a.getLocalizedHint(i))}}function ha(t,e){if(1&t&&(v.Sb(0,"div"),v.Nb(1,"span",22),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(1),v.kc("innerHTML",a.getLocalizedLabel(i),v.yc)}}function fa(t,e){if(1&t&&(v.Sb(0,"option"),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.Ab(1),v.Kc(i)}}function ga(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"div",15),v.Sb(5,"select",23),v.Hc(6,fa,2,1,"option",7),v.Rb(),v.Rb(),v.Rb(),v.Sb(7,"div",14),v.Sb(8,"span",17),v.Jc(9),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(3),v.kc("ngForOf",a.getLocalizedOptions(i)),v.Ab(3),v.Kc(a.getLocalizedHint(i))}}function ma(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Nb(4,"textarea",15),v.Rb(),v.Sb(5,"div",14),v.Sb(6,"span",17),v.Jc(7),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(4),v.Kc(a.getLocalizedHint(i))}}function va(t,e){if(1&t&&(v.Sb(0,"option",28),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.Ab(1),v.Kc(i)}}function Ia(t,e){1&t&&(v.Sb(0,"div",23),v.Sb(1,"form"),v.Nb(2,"input",29),v.Rb(),v.Rb())}function Sa(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"div",15),v.Sb(5,"select",24),v.Zb("ngModelChange",(function(t){v.xc(i);var e=v.dc(2).$implicit;return v.dc(2).mapForCombobox[e.id]=t})),v.Sb(6,"option",25),v.Jc(7),v.ec(8,"translate"),v.Rb(),v.Hc(9,va,2,1,"option",26),v.Rb(),v.Hc(10,Ia,3,0,"div",27),v.Rb(),v.Rb(),v.Sb(11,"div",14),v.Sb(12,"span",17),v.Jc(13),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=v.dc(2).$implicit,n=v.dc(2);v.Ab(3),v.Kc(n.getLocalizedLabel(a)),v.Ab(2),v.kc("ngModel",n.mapForCombobox[a.id]),v.Ab(2),v.Kc(v.fc(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),v.Ab(2),v.kc("ngForOf",n.getLocalizedOptions(a)),v.Ab(1),v.kc("ngIf","true"===n.mapForCombobox[a.id]),v.Ab(3),v.Kc(n.getLocalizedHint(a))}}function Aa(t,e){if(1&t&&(v.Sb(0,"div"),v.Nb(1,"input",30),v.Jc(2),v.Rb()),2&t){var i=e.$implicit;v.Ab(2),v.Lc(" ",i," ")}}function Ta(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"div",15),v.Sb(5,"form",23),v.Hc(6,Aa,3,1,"div",7),v.Rb(),v.Rb(),v.Rb(),v.Sb(7,"div",14),v.Sb(8,"span",17),v.Jc(9),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(3),v.kc("ngForOf",a.getLocalizedOptions(i)),v.Ab(3),v.Kc(a.getLocalizedHint(i))}}function Ea(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"div",15),v.Sb(5,"form",23),v.Nb(6,"input",30),v.Jc(7," example group1 "),v.Nb(8,"br"),v.Nb(9,"input",30),v.Jc(10," example group2 "),v.Nb(11,"br"),v.Nb(12,"input",30),v.Jc(13," example group3 "),v.Rb(),v.Rb(),v.Rb(),v.Sb(14,"div",14),v.Sb(15,"span",17),v.Jc(16),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(13),v.Kc(a.getLocalizedHint(i))}}function Ra(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"button",31),v.Jc(2),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(2),v.Kc(a.getLocalizedLabel(i))}}function ya(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"button",31),v.Jc(2),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(2),v.Kc(a.getLocalizedLabel(i))}}function Ma(t,e){if(1&t&&(v.Sb(0,"div",13),v.Sb(1,"div",14),v.Sb(2,"span",15),v.Jc(3),v.Rb(),v.Sb(4,"div",15),v.Sb(5,"select",32),v.Sb(6,"option",33),v.Jc(7),v.ec(8,"translate"),v.Rb(),v.Sb(9,"option",34),v.Jc(10,"(GMT -12:00) Eniwetok, Kwajalein"),v.Rb(),v.Sb(11,"option",35),v.Jc(12,"(GMT -11:00) Midway Island, Samoa"),v.Rb(),v.Sb(13,"option",36),v.Jc(14,"(GMT -10:00) Hawaii"),v.Rb(),v.Sb(15,"option",37),v.Jc(16,"(GMT -9:30) Taiohae"),v.Rb(),v.Sb(17,"option",38),v.Jc(18,"(GMT -9:00) Alaska"),v.Rb(),v.Sb(19,"option",39),v.Jc(20,"(GMT -8:00) Pacific Time (US & Canada)"),v.Rb(),v.Sb(21,"option",40),v.Jc(22,"(GMT -7:00) Mountain Time (US & Canada)"),v.Rb(),v.Sb(23,"option",41),v.Jc(24,"(GMT -6:00) Central Time (US & Canada), Mexico City"),v.Rb(),v.Sb(25,"option",42),v.Jc(26,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),v.Rb(),v.Sb(27,"option",43),v.Jc(28,"(GMT -4:30) Caracas"),v.Rb(),v.Sb(29,"option",44),v.Jc(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),v.Rb(),v.Sb(31,"option",45),v.Jc(32,"(GMT -3:30) Newfoundland"),v.Rb(),v.Sb(33,"option",46),v.Jc(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),v.Rb(),v.Sb(35,"option",47),v.Jc(36,"(GMT -2:00) Mid-Atlantic"),v.Rb(),v.Sb(37,"option",48),v.Jc(38,"(GMT -1:00) Azores, Cape Verde Islands"),v.Rb(),v.Sb(39,"option",49),v.Jc(40,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),v.Rb(),v.Sb(41,"option",50),v.Jc(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),v.Rb(),v.Sb(43,"option",51),v.Jc(44,"(GMT +2:00) Kaliningrad, South Africa"),v.Rb(),v.Sb(45,"option",52),v.Jc(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),v.Rb(),v.Sb(47,"option",53),v.Jc(48,"(GMT +3:30) Tehran"),v.Rb(),v.Sb(49,"option",54),v.Jc(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),v.Rb(),v.Sb(51,"option",55),v.Jc(52,"(GMT +4:30) Kabul"),v.Rb(),v.Sb(53,"option",56),v.Jc(54,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),v.Rb(),v.Sb(55,"option",57),v.Jc(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),v.Rb(),v.Sb(57,"option",58),v.Jc(58,"(GMT +5:45) Kathmandu, Pokhara"),v.Rb(),v.Sb(59,"option",59),v.Jc(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),v.Rb(),v.Sb(61,"option",60),v.Jc(62,"(GMT +6:30) Yangon, Mandalay"),v.Rb(),v.Sb(63,"option",61),v.Jc(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),v.Rb(),v.Sb(65,"option",62),v.Jc(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),v.Rb(),v.Sb(67,"option",63),v.Jc(68,"(GMT +8:45) Eucla"),v.Rb(),v.Sb(69,"option",64),v.Jc(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),v.Rb(),v.Sb(71,"option",65),v.Jc(72,"(GMT +9:30) Adelaide, Darwin"),v.Rb(),v.Sb(73,"option",66),v.Jc(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),v.Rb(),v.Sb(75,"option",67),v.Jc(76,"(GMT +10:30) Lord Howe Island"),v.Rb(),v.Sb(77,"option",68),v.Jc(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),v.Rb(),v.Sb(79,"option",69),v.Jc(80,"(GMT +11:30) Norfolk Island"),v.Rb(),v.Sb(81,"option",70),v.Jc(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),v.Rb(),v.Sb(83,"option",71),v.Jc(84,"(GMT +12:45) Chatham Islands"),v.Rb(),v.Sb(85,"option",72),v.Jc(86,"(GMT +13:00) Apia, Nukualofa"),v.Rb(),v.Sb(87,"option",73),v.Jc(88,"(GMT +14:00) Line Islands, Tokelau"),v.Rb(),v.Rb(),v.Rb(),v.Rb(),v.Sb(89,"div",14),v.Sb(90,"span",17),v.Jc(91),v.Rb(),v.Rb(),v.Rb()),2&t){var i=v.dc(2).$implicit,a=v.dc(2);v.Ab(3),v.Kc(a.getLocalizedLabel(i)),v.Ab(4),v.Lc(" ",v.fc(8,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),v.Ab(84),v.Kc(a.getLocalizedHint(i))}}function Oa(t,e){if(1&t&&(v.Sb(0,"div",11),v.Hc(1,ua,9,2,"div",12),v.Hc(2,la,9,2,"div",12),v.Hc(3,ba,11,2,"div",12),v.Hc(4,da,11,6,"div",12),v.Hc(5,ha,2,1,"div",2),v.Hc(6,ga,10,3,"div",12),v.Hc(7,ma,8,2,"div",12),v.Hc(8,Sa,14,8,"div",12),v.Hc(9,Ta,10,3,"div",12),v.Hc(10,Ea,17,2,"div",12),v.Hc(11,Ra,3,1,"div",12),v.Hc(12,ya,3,1,"div",2),v.Hc(13,Ma,92,5,"div",12),v.Rb()),2&t){var i=v.dc().$implicit;v.Ab(1),v.kc("ngIf","TEXTFIELD"===i.type||"VALIDATED_EMAIL"===i.type||"USERNAME"===i.type),v.Ab(1),v.kc("ngIf","FROM_FEDERATION_SHOW"===i.type),v.Ab(1),v.kc("ngIf","PASSWORD"===i.type),v.Ab(1),v.kc("ngIf","RADIO"===i.type),v.Ab(1),v.kc("ngIf","HEADING"===i.type||"HTML_COMMENT"===i.type),v.Ab(1),v.kc("ngIf","SELECTIONBOX"===i.type),v.Ab(1),v.kc("ngIf","TEXTAREA"===i.type),v.Ab(1),v.kc("ngIf","COMBOBOX"===i.type),v.Ab(1),v.kc("ngIf","CHECKBOX"===i.type),v.Ab(1),v.kc("ngIf","EMBEDDED_GROUP_APPLICATION"===i.type),v.Ab(1),v.kc("ngIf","SUBMIT_BUTTON"===i.type),v.Ab(1),v.kc("ngIf","AUTO_SUBMIT_BUTTON"===i.type),v.Ab(1),v.kc("ngIf","TIMEZONE"===i.type)}}function Na(t,e){if(1&t&&(v.Sb(0,"div"),v.Hc(1,Oa,14,13,"div",10),v.Rb()),2&t){var i=e.$implicit,a=v.dc(2);v.Ab(1),v.kc("ngIf",a.isValid(i))}}function ka(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"div",4),v.Hc(2,oa,5,3,"button",5),v.Hc(3,ra,5,3,"button",5),v.Hc(4,ca,5,3,"button",5),v.Hc(5,sa,5,3,"button",5),v.Rb(),v.Sb(6,"div",6),v.Hc(7,Na,2,1,"div",7),v.Rb(),v.Rb()),2&t){var i=v.dc();v.Ab(2),v.kc("ngIf",!i.initialPage),v.Ab(1),v.kc("ngIf",i.initialPage),v.Ab(1),v.kc("ngIf","cs"===i.language),v.Ab(1),v.kc("ngIf","en"===i.language),v.Ab(2),v.kc("ngForOf",i.applicationFormItems)}}var _a,La,Ca=((La=function(){function t(e){n(this,t),this.route=e,this.loading=!0,this.applicationFormItems=[],this.language="en",this.initialPage=!0,this.mapForCombobox=new Map}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.queryParamMap.subscribe((function(e){t.applicationFormItems=JSON.parse(e.get("applicationFormItems")),t.loading=!1}))}},{key:"switchToInitial",value:function(){this.initialPage=!0}},{key:"switchToExtension",value:function(){this.initialPage=!1}},{key:"switchToEnglish",value:function(){this.language="en"}},{key:"switchToCzech",value:function(){this.language="cs"}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.language]){var i=t.i18n[this.language].options;if(null!==i&&""!==i){var a,n=[],o=e(i.split("|"));try{for(o.s();!(a=o.n()).done;){var r=a.value;n.push(r.split("#")[1])}}catch(c){o.e(c)}finally{o.f()}return n}}return[]}},{key:"isValid",value:function(t){if(t.forDelete)return!1;var i,a=e(t.applicationTypes);try{for(a.s();!(i=a.n()).done;){var n=i.value;if("INITIAL"===n&&this.initialPage)return!0;if("EXTENSION"===n&&!this.initialPage)return!0}}catch(o){a.e(o)}finally{a.f()}return!1}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.language]?t.i18n[this.language].label:t.shortname}},{key:"getLocalizedHint",value:function(t){return t.i18n[this.language]?t.i18n[this.language].help:""}}]),t}()).\u0275fac=function(t){return new(t||La)(v.Mb(s.a))},La.\u0275cmp=v.Gb({type:La,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},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","d-flex","mb-2"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["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"],[1,"ml-2"],["type","text","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100"],["type","reset",3,"value"],["type","radio","name","temp"],[3,"innerHTML"],[1,"w-100"],[1,"w-100",3,"ngModel","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],["type","text"],["type","checkbox"],["mat-flat-button","","color","accent"],["name","timezone_offset","id","timezone-offset",1,"w-100"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.Rb(),v.Hc(3,na,1,0,"mat-spinner",1),v.Hc(4,ka,8,5,"div",2)),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),v.Ab(2),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[c.t,A.c,c.s,y.b,ye.H,ye.s,ye.t,ye.w,ye.G,ye.D,ye.r,ye.u],pipes:[M.d],styles:[""]}),La),Pa=((_a=function(){function t(){n(this,t)}return r(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||_a)},_a.\u0275cmp=v.Gb({type:_a,selectors:[["app-member-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:1,vars:0,template:function(t,e){1&t&&v.Nb(0,"app-animated-router-outlet")},directives:[R.a],styles:[""],data:{animation:[p.a]}}),_a);function Ga(t,e){1&t&&v.Nb(0,"mat-spinner",2)}function Da(t,e){if(1&t&&(v.Sb(0,"div"),v.Nb(1,"perun-web-apps-menu-buttons-field",3),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.kc("items",i.items)("size","small")}}var Va,wa=((Va=function(){function t(e,i,a,o){n(this,t),this.sideMenuService=e,this.voService=i,this.memberManager=a,this.route=o,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe((function(e){var i=e.voId;t.memberManager.getMemberById(e.memberId).subscribe((function(e){t.member=e,t.voService.getVoById(i).subscribe((function(e){t.vo=e,t.initItems(),t.loading=!1}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}))}},{key:"initItems",value:function(){this.items=[]}}]),t}()).\u0275fac=function(t){return new(t||Va)(v.Mb(l.a),v.Mb(d.q),v.Mb(d.i),v.Mb(s.a))},Va.\u0275cmp=v.Gb({type:Va,selectors:[["app-member-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(t,e){1&t&&(v.Hc(0,Ga,1,0,"mat-spinner",0),v.Hc(1,Da,2,2,"div",1)),2&t&&(v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[c.t,A.c,Y.a],styles:[""]}),Va),xa=["list"];function za(t,e){1&t&&(v.Jc(0),v.ec(1,"translate")),2&t&&v.Lc(" ",v.fc(1,1,"MEMBER_DETAIL.ENTITY")," ")}function Ha(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",10),v.Zb("click",(function(){return v.xc(i),v.dc().onCreate()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "))}function Ua(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",11),v.Zb("click",(function(){return v.xc(i),v.dc().onSave()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc();v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," ")}}function Ja(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",12),v.Zb("click",(function(){return v.xc(i),v.dc().onDelete()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc();v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," ")}}function Ba(t,e){1&t&&v.Nb(0,"mat-spinner",13)}function Fa(t,e){if(1&t){var i=v.Tb();v.Sb(0,"perun-web-apps-attributes-list",14,15),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("pageSize",a.pageSize)("filterValue",a.filterValue)("attributes",a.attributes)("selection",a.selection)}}function Za(t,e){1&t&&(v.Jc(0),v.ec(1,"translate"),v.ec(2,"translate")),2&t&&v.Mc(" ",v.fc(1,2,"MEMBER_DETAIL.ENTITY")," - ",v.fc(2,4,"GROUP_DETAIL.ENTITY")," ")}function ja(t,e){if(1&t&&v.Nb(0,"app-two-entity-attribute-page",18),2&t){var i=v.dc(3);v.kc("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","group")}}function Ka(t,e){if(1&t&&v.Hc(0,ja,1,3,"app-two-entity-attribute-page",17),2&t){var i=v.dc(2);v.kc("ngIf",!i.loading)}}function Xa(t,e){1&t&&(v.Sb(0,"mat-tab"),v.Hc(1,Za,3,6,"ng-template",1),v.Hc(2,Ka,1,1,"ng-template",16),v.Rb())}function Wa(t,e){1&t&&(v.Jc(0),v.ec(1,"translate"),v.ec(2,"translate")),2&t&&v.Mc(" ",v.fc(1,2,"MEMBER_DETAIL.ENTITY")," - ",v.fc(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Ya(t,e){if(1&t&&v.Nb(0,"app-two-entity-attribute-page",18),2&t){var i=v.dc(3);v.kc("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","resource")}}function $a(t,e){if(1&t&&v.Hc(0,Ya,1,3,"app-two-entity-attribute-page",17),2&t){var i=v.dc(2);v.kc("ngIf",!i.loading)}}function qa(t,e){1&t&&(v.Sb(0,"mat-tab"),v.Hc(1,Wa,3,6,"ng-template",1),v.Hc(2,$a,1,1,"ng-template",16),v.Rb())}var Qa,tn,en=((tn=function(){function t(e,i,a,o,r,c,s,u){var l=this;n(this,t),this.route=e,this.attributesManager=i,this.notificator=a,this.dialog=o,this.translate=r,this.tableConfigService=c,this.authResolver=s,this.memberManager=u,this.selection=new ne.c(!0,[]),this.attributes=[],this.filterValue="",this.tableId=ce.r,this.translate.get("MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_SAVE").subscribe((function(t){return l.saveSuccessMessage=t})),this.translate.get("MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SUCCESS_DELETE").subscribe((function(t){return l.deleteSuccessMessage=t}))}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.memberId=e.memberId,t.memberManager.getMemberById(t.memberId).subscribe((function(e){t.member=e,t.memberGroupAttAuth=t.authResolver.isAuthorized("getMemberGroups_Member_policy",[t.member]),t.memberResourceAttAuth=t.authResolver.isAuthorized("getAllowedResources_Member_policy",[t.member]),t.refreshTable()}))}))}},{key:"onCreate",value:function(){var t=this,e=Object(h.o)();e.width="1050px",e.data={entityId:this.memberId,entity:"member",notEmptyAttributes:this.attributes,style:"member-theme"},this.dialog.open(se.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onSave",value:function(){var t=this;this.list.updateMapAttributes();var e=Object(h.o)();e.width="450px",e.data={entityId:this.memberId,entity:"member",attributes:this.selection.selected},this.dialog.open(m.f,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onDelete",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={entityId:this.memberId,entity:"member",attributes:this.selection.selected},this.dialog.open(oe.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributesManager.getMemberAttributes(this.memberId).subscribe((function(e){t.attributes=e,t.selection.clear(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||tn)(v.Mb(s.a),v.Mb(d.c),v.Mb(f.l),v.Mb(I.b),v.Mb(M.e),v.Mb(ce.pb),v.Mb(f.h),v.Mb(d.i))},tn.\u0275cmp=v.Gb({type:tn,selectors:[["app-member-attributes"]],viewQuery:function(t,e){var i;1&t&&v.Qc(xa,!0),2&t&&v.sc(i=v.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:16,vars:11,consts:[[1,"page-subtitle"],["matTabLabel",""],[1,"mt-2",3,"refresh"],["mat-flat-button","","class","mr-2 mt-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2 mt-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mt-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""],["matTabContent",""],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(v.Sb(0,"div"),v.Sb(1,"h1",0),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Sb(4,"mat-tab-group"),v.Sb(5,"mat-tab"),v.Hc(6,za,2,3,"ng-template",1),v.Sb(7,"perun-web-apps-refresh-button",2),v.Zb("refresh",(function(){return e.refreshTable()})),v.Rb(),v.Hc(8,Ha,3,3,"button",3),v.Hc(9,Ua,3,4,"button",4),v.Hc(10,Ja,3,4,"button",5),v.Sb(11,"perun-web-apps-immediate-filter",6),v.Zb("filter",(function(t){return e.applyFilter(t)})),v.Rb(),v.Hc(12,Ba,1,0,"mat-spinner",7),v.Hc(13,Fa,2,4,"perun-web-apps-attributes-list",8),v.Rb(),v.Hc(14,Xa,3,0,"mat-tab",9),v.Hc(15,qa,3,0,"mat-tab",9),v.Rb(),v.Rb()),2&t&&(v.Ab(2),v.Kc(v.fc(3,9,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),v.Ab(6),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",e.memberGroupAttAuth),v.Ab(1),v.kc("ngIf",e.memberResourceAttAuth))},directives:[wi.c,wi.a,wi.d,ue.a,c.t,le.a,y.b,A.c,be.a,wi.b,xi.a],pipes:[M.d],styles:[""]}),tn),an=((Qa=function(){function t(e,i,a,o,r){n(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=a,this.route=o,this.router=r,this.items=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe((function(e){t.voService.getVoById(e.voId).subscribe((function(e){t.vo=e,t.initItems()}))}))}},{key:"initItems",value:function(){this.items=[{cssIcon:"perun-resource",url:"/organizations/".concat(this.vo.id,"/resources/preview"),label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resource-tags",url:"/organizations/".concat(this.vo.id,"/resources/tags"),label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resources-state",url:"/organizations/".concat(this.vo.id,"/resources/states"),label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}]),t}()).\u0275fac=function(t){return new(t||Qa)(v.Mb(l.a),v.Mb(d.q),v.Mb(f.h),v.Mb(s.a),v.Mb(s.f))},Qa.\u0275cmp=v.Gb({type:Qa,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(v.Sb(0,"div"),v.Nb(1,"perun-web-apps-menu-buttons-field",0),v.Rb()),2&t&&(v.Ab(1),v.kc("items",e.items)("size","small"))},directives:[Y.a],styles:[""]}),Qa),nn=o("5bHy"),on=o("KSio"),rn=o("yLXW"),cn=o("mPlY"),sn=o("Rbfv");function un(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",7),v.Zb("click",(function(){return v.xc(i),v.dc().create()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function ln(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",8),v.Zb("click",(function(){return v.xc(i),v.dc().deleteTag()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc();v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function bn(t,e){1&t&&v.Nb(0,"mat-spinner",9)}function pn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"app-resources-tags-list",10),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("selection",a.selection)("pageSize",a.pageSize)("resourceTags",a.resourceTag)("filterValue",a.filterValue)("displayedColumns",a.displayedColumns)}}var dn,hn=((dn=function(){function t(e,i,a,o,r,c,s,u){n(this,t),this.route=e,this.resourceManager=i,this.dialog=a,this.notificator=o,this.tableConfigService=r,this.translator=c,this.authResolver=s,this.voService=u,this.loading=!1,this.resourceTag=[],this.selection=new ne.c(!0,[]),this.tableId=ce.mb,this.displayedColumns=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe((function(e){t.voId=e.voId,t.voService.getVoById(t.voId).subscribe((function(e){t.vo=e,t.updateData()}))}))}},{key:"deleteTag",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(cn.a,e).afterClosed().subscribe((function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.updateData())}))}},{key:"create",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(rn.a,e).afterClosed().subscribe((function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.updateData())}))}},{key:"updateData",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.voId).subscribe((function(e){t.resourceTag=e,t.selection.clear(),t.setAuthRights(),t.loading=!1}))}},{key:"setAuthRights",value:function(){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")}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||dn)(v.Mb(s.a),v.Mb(d.m),v.Mb(I.b),v.Mb(f.l),v.Mb(ce.pb),v.Mb(M.e),v.Mb(f.h),v.Mb(d.q))},dn.\u0275cmp=v.Gb({type:dn,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","page"]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.Rb(),v.Sb(3,"perun-web-apps-refresh-button",1),v.Zb("refresh",(function(){return e.updateData()})),v.Rb(),v.Hc(4,un,3,3,"button",2),v.Hc(5,ln,3,4,"button",3),v.Sb(6,"perun-web-apps-immediate-filter",4),v.Zb("filter",(function(t){return e.applyFilter(t)})),v.Rb(),v.Hc(7,bn,1,0,"mat-spinner",5),v.Hc(8,pn,1,5,"app-resources-tags-list",6)),2&t&&(v.Ab(1),v.Kc(v.fc(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),v.Ab(3),v.kc("ngIf",e.createAuth),v.Ab(1),v.kc("ngIf",e.deleteAuth),v.Ab(1),v.kc("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[ue.a,c.t,le.a,y.b,A.c,sn.a],pipes:[M.d],styles:[""]}),dn);function fn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"app-expiration-settings",1),v.Zb("saveAttribute",(function(t){return v.xc(i),v.dc().saveExpirationAttribute(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("expirationAttribute",a.expirationAttribute)}}var gn,mn=((gn=function(){function t(e,i,a,o,r){var c=this;n(this,t),this.attributesManager=e,this.route=i,this.translate=a,this.notificator=o,this.apiRequest=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe((function(t){return c.successMessage=t})),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe((function(t){return c.errorMessage=t}))}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe((function(e){t.groupId=e.groupId,t.loadSettings()}))}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.groupId,g.a.GROUP_DEF_EXPIRATION_RULES).subscribe((function(e){t.expirationAttribute=e}))}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.groupId,attribute:t}).subscribe((function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)}),(function(t){return e.notificator.showRPCError(t.error,e.errorMessage)}))}}]),t}()).\u0275fac=function(t){return new(t||gn)(v.Mb(d.c),v.Mb(s.a),v.Mb(M.e),v.Mb(f.l),v.Mb(f.b))},gn.\u0275cmp=v.Gb({type:gn,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&v.Hc(0,fn,1,1,"app-expiration-settings",0),2&t&&v.kc("ngIf",void 0!==e.expirationAttribute)},directives:[c.t,je],styles:[""]}),gn);function vn(t,e){if(1&t&&v.Nb(0,"app-managers-page",1),2&t){var i=v.dc();v.kc("complementaryObject",i.group)("complementaryObjectType",i.type)("theme",i.theme)("availableRoles",i.availableRoles)}}var In,Sn=((In=function(){function t(e,i,a){n(this,t),this.groupService=e,this.route=i,this.guiAuthResolver=a,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe((function(e){t.groupService.getGroupById(e.groupId).subscribe((function(e){t.group=e}))})),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}]),t}()).\u0275fac=function(t){return new(t||In)(v.Mb(d.h),v.Mb(s.a),v.Mb(f.h))},In.\u0275cmp=v.Gb({type:In,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&v.Hc(0,vn,1,4,"app-managers-page",0),2&t&&v.kc("ngIf",e.group)},directives:[c.t,$e.a],styles:[""]}),In),An=o("zSH9"),Tn=o("Tsqg"),En=o("0N5F"),Rn=o("is9t"),yn=o("iAde"),Mn=o("cePI");function On(t,e){if(1&t){var i=v.Tb();v.Sb(0,"th",15),v.Sb(1,"mat-checkbox",16),v.Zb("change",(function(t){v.xc(i);var e=v.dc();return t?e.masterToggle():null})),v.Rb(),v.Rb()}if(2&t){var a=v.dc();v.Ab(1),v.kc("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function Nn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"td",17),v.Sb(1,"mat-checkbox",18),v.Zb("change",(function(t){v.xc(i);var a=e.$implicit,n=v.dc();return t?n.toggle(a):null}))("click",(function(t){return v.xc(i),t.stopPropagation()})),v.Rb(),v.Rb()}if(2&t){var a=e.$implicit,n=v.dc();v.Ab(1),v.kc("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function kn(t,e){1&t&&(v.Sb(0,"th",19),v.Jc(1),v.ec(2,"translate"),v.Rb()),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function _n(t,e){if(1&t&&(v.Sb(0,"td",17),v.Jc(1),v.Rb()),2&t){var i=e.$implicit;v.Ab(1),v.Kc(i.id)}}function Ln(t,e){1&t&&(v.Sb(0,"th",19),v.Jc(1),v.ec(2,"translate"),v.Rb()),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Cn(t,e){if(1&t&&(v.Sb(0,"td",20),v.Jc(1),v.Rb()),2&t){var i=e.$implicit,a=v.dc();v.Ab(1),v.Kc(a.getMailType(i))}}function Pn(t,e){1&t&&(v.Sb(0,"th",19),v.Jc(1),v.ec(2,"translate"),v.Rb()),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Gn(t,e){1&t&&(v.Sb(0,"div"),v.Sb(1,"mat-icon",23),v.Jc(2,"arrow_right_alt"),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()),2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Dn(t,e){1&t&&(v.Sb(0,"mat-icon",24),v.Jc(1,"cached"),v.Rb(),v.Jc(2),v.ec(3,"translate")),2&t&&(v.Ab(2),v.Lc(" ",v.fc(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Vn(t,e){if(1&t&&(v.Sb(0,"td",20),v.Hc(1,Gn,5,3,"div",21),v.Hc(2,Dn,4,3,"ng-template",null,22,v.Ic),v.Rb()),2&t){var i=e.$implicit,a=v.tc(3);v.Ab(1),v.kc("ngIf","INITIAL"==i.appType)("ngIfElse",a)}}function wn(t,e){1&t&&(v.Sb(0,"th",19),v.Jc(1),v.ec(2,"translate"),v.Rb()),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function xn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"td",20),v.Sb(1,"section"),v.Sb(2,"mat-checkbox",25),v.Zb("change",(function(){v.xc(i);var t=e.$implicit;return v.dc().changeSending(t)}))("click",(function(t){return v.xc(i),t.stopPropagation()})),v.ec(3,"translate"),v.Rb(),v.Rb(),v.Rb()}if(2&t){var a=e.$implicit,n=v.dc();v.Ab(2),v.lc("matTooltip",v.fc(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),v.kc("disabled",n.disableSend)("matTooltipDisabled",!n.disableSend)("ngModel",a.send)}}function zn(t,e){1&t&&v.Nb(0,"tr",26)}function Hn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"tr",27),v.Zb("click",(function(){v.xc(i);var t=e.$implicit;return v.dc().openApplicationMailDetail(t)})),v.Rb()}2&t&&v.Eb("cursor-pointer",!0)}var Un,Jn=((Un=function(){function t(e,i,a,o,r,c){n(this,t),this.registrarService=e,this.translate=i,this.notificator=a,this.dialog=o,this.authResolver=r,this.tableCheckbox=c,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new ne.c(!0,[]),this.pageSize=10,this.selectionChange=new v.o,this.page=new v.o,this.pageSizeOptions=h.a}return r(t,[{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new pt.o(this.applicationMails),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeSending",value:function(t){t.send?this.registrarService.setSendingEnabled({mails:[t],enabled:!1}).subscribe((function(){t.send=!1})):this.registrarService.setSendingEnabled({mails:[t],enabled:!0}).subscribe((function(){t.send=!0}))}},{key:"openApplicationMailDetail",value:function(t){var e=this,i=Object(h.o)();i.width="1400px",i.height="700px",i.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:t},this.dialog.open(En.a,i).afterClosed().subscribe((function(t){t&&(e.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe((function(t){e.notificator.showSuccess(t)})),e.selection.clear(),e.selectionChange.emit(e.selection),e.update())}))}},{key:"getMailType",value:function(t){var e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe((function(t){e=t})),e}},{key:"update",value:function(){var t=this;this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe((function(e){t.updateTable(e)})):this.registrarService.getApplicationMailsForVo(this.voId).subscribe((function(e){t.updateTable(e)}))}},{key:"toggle",value:function(t){this.selection.toggle(t),this.selectionChange.emit(this.selection)}},{key:"updateTable",value:function(t){this.applicationMails=t,this.dataSource=new pt.o(this.applicationMails),this.setDataSource()}},{key:"setDataSource",value:function(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}()).\u0275fac=function(t){return new(t||Un)(v.Mb(d.l),v.Mb(M.e),v.Mb(f.l),v.Mb(I.b),v.Mb(f.h),v.Mb(f.n))},Un.\u0275cmp=v.Gb({type:Un,selectors:[["app-notification-list"]],viewQuery:function(t,e){var i;1&t&&(v.Dc(Mn.a,!0),v.Dc(yn.a,!0)),2&t&&(v.sc(i=v.ac())&&(e.matSort=i.first),v.sc(i=v.ac())&&(e.matPaginator=i.first))},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",pageSize:"pageSize",theme:"theme"},outputs:{selectionChange:"selectionChange",page:"page"},features:[v.yb],decls:21,vars:6,consts:[[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltip","matTooltipDisabled","ngModel","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"]],template:function(t,e){1&t&&(v.Sb(0,"div",0),v.Sb(1,"div",1),v.Sb(2,"table",2),v.Qb(3,3),v.Hc(4,On,2,3,"th",4),v.Hc(5,Nn,2,2,"td",5),v.Pb(),v.Qb(6,6),v.Hc(7,kn,3,3,"th",7),v.Hc(8,_n,2,1,"td",5),v.Pb(),v.Qb(9,8),v.Hc(10,Ln,3,3,"th",7),v.Hc(11,Cn,2,1,"td",9),v.Pb(),v.Qb(12,10),v.Hc(13,Pn,3,3,"th",7),v.Hc(14,Vn,4,2,"td",9),v.Pb(),v.Qb(15,11),v.Hc(16,wn,3,3,"th",7),v.Hc(17,xn,4,6,"td",9),v.Pb(),v.Hc(18,zn,1,0,"tr",12),v.Hc(19,Hn,1,2,"tr",13),v.Rb(),v.Rb(),v.Sb(20,"mat-paginator",14),v.Zb("page",(function(t){return e.page.emit(t)})),v.Rb(),v.Rb()),2&t&&(v.Ab(2),v.kc("dataSource",e.dataSource),v.Ab(16),v.kc("matHeaderRowDef",e.displayedColumns),v.Ab(1),v.kc("matRowDefColumns",e.displayedColumns),v.Ab(1),v.kc("length",e.applicationMails.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions))},directives:[pt.n,Mn.a,pt.c,pt.i,pt.b,pt.k,pt.m,yn.a,pt.h,Ce.a,pt.a,Mn.b,c.t,T.a,E.a,ye.r,ye.u,pt.j,pt.l],pipes:[M.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Un),Bn=o("FcRk");function Fn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",9),v.Zb("click",(function(){return v.xc(i),v.dc().add()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Zn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",10),v.Zb("click",(function(){return v.xc(i),v.dc().remove()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc();v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function jn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",11),v.Zb("click",(function(){return v.xc(i),v.dc().changeEmailFooter()})),v.Sb(1,"i",12),v.Jc(2,"email"),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()}2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "))}function Kn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",13),v.Zb("click",(function(){return v.xc(i),v.dc().copy()})),v.Sb(1,"i",12),v.Jc(2,"file_copy"),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()}2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Xn(t,e){1&t&&v.Nb(0,"mat-spinner",14)}function Wn(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",15),v.Sb(1,"app-notification-list",16),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)}))("selectionChange",(function(t){return v.xc(i),v.dc().changeSelection(t)})),v.Rb(),v.Rb()}if(2&t){var a=v.dc();v.Ab(1),v.kc("applicationMails",a.applicationMails)("pageSize",a.pageSize)("voId",a.voId)("displayedColumns",a.displayedColumns)("disableSend",!a.addAuth)("selection",a.selection)("theme","vo-theme")}}function Yn(t,e){1&t&&(v.Sb(0,"app-alert",17),v.Jc(1),v.ec(2,"translate"),v.Rb()),2&t&&(v.kc("alert_type","warn"),v.Ab(1),v.Lc(" ",v.fc(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}var $n,qn=(($n=function(){function t(e,i,a,o,r,c,s,u){n(this,t),this.route=e,this.registrarService=i,this.translate=a,this.dialog=o,this.tableConfigService=r,this.notificator=c,this.authResolver=s,this.voService=u,this.loading=!1,this.applicationMails=[],this.selection=new ne.c(!0,[]),this.tableId=ce.ob,this.displayedColumns=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe((function(e){t.voId=e.voId,t.registrarService.getVoApplicationForm(t.voId).subscribe((function(e){t.applicationForm=e,t.registrarService.getApplicationMailsForVo(t.voId).subscribe((function(e){t.applicationMails=e,t.voService.getVoById(t.voId).subscribe((function(e){t.vo=e,t.setAuthRights(),t.loading=!1}))}))}))}))}},{key:"setAuthRights",value:function(){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("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}},{key:"add",value:function(){var t=this,e=Object(h.e)();e.formId=this.applicationForm.id;var i=Object(h.o)();i.width="1400px",i.height="700px",i.data={theme:"vo-theme",voId:this.voId,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(En.a,i).afterClosed().subscribe((function(e){e&&(t.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.selection.clear(),t.updateTable())}))}},{key:"remove",value:function(){var t=this,e=Object(h.o)();e.width="500px",e.data={voId:this.voId,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(An.a,e).afterClosed().subscribe((function(e){e&&(t.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.selection.clear(),t.updateTable())}))}},{key:"copy",value:function(){var t=this,e=Object(h.o)();e.width="500px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Rn.a,e).afterClosed().subscribe((function(e){e&&(t.selection.clear(),t.updateTable())}))}},{key:"updateTable",value:function(){var t=this;this.loading=!0,this.registrarService.getApplicationMailsForVo(this.voId).subscribe((function(e){t.applicationMails=e,t.loading=!1}))}},{key:"changeEmailFooter",value:function(){var t=Object(h.o)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Tn.a,t)}},{key:"changeSelection",value:function(t){this.selection=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||$n)(v.Mb(s.a),v.Mb(d.l),v.Mb(M.e),v.Mb(I.b),v.Mb(ce.pb),v.Mb(f.l),v.Mb(f.h),v.Mb(d.q))},$n.\u0275cmp=v.Gb({type:$n,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:11,vars:10,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],[3,"alert_type",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["mat-stroked-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[3,"applicationMails","pageSize","voId","displayedColumns","disableSend","selection","theme","page","selectionChange"],[3,"alert_type"]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.Rb(),v.Sb(3,"div",1),v.Hc(4,Fn,3,3,"button",2),v.Hc(5,Zn,3,4,"button",3),v.Hc(6,jn,5,3,"button",4),v.Hc(7,Kn,5,3,"button",5),v.Rb(),v.Hc(8,Xn,1,0,"mat-spinner",6),v.Hc(9,Wn,2,7,"div",7),v.Hc(10,Yn,3,4,"app-alert",8)),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,8,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),v.Ab(3),v.kc("ngIf",!e.loading&&e.addAuth),v.Ab(1),v.kc("ngIf",!e.loading&&e.removeAuth),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",!e.loading&&e.copyAuth),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",0!==e.applicationMails.length&&!e.loading),v.Ab(1),v.kc("ngIf",0===e.applicationMails.length&&!e.loading))},directives:[c.t,y.b,A.c,Jn,Bn.a],pipes:[M.d],styles:[""]}),$n),Qn=o("JKyc");function to(t,e){1&t&&v.Nb(0,"mat-spinner",3)}function eo(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",12),v.Zb("click",(function(){return v.xc(i),v.dc(2).add()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function io(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",13),v.Zb("click",(function(){return v.xc(i),v.dc(2).remove()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc(2);v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function ao(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",14),v.Zb("click",(function(){return v.xc(i),v.dc(2).copy()})),v.Sb(1,"i",8),v.Jc(2,"file_copy"),v.Rb(),v.Jc(3),v.ec(4,"translate"),v.Rb()}2&t&&(v.Ab(3),v.Lc(" ",v.fc(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function no(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div",15),v.Sb(1,"app-notification-list",16),v.Zb("page",(function(t){return v.xc(i),v.dc(2).pageChanged(t)}))("selectionChange",(function(t){return v.xc(i),v.dc(2).changeSelection(t)})),v.Rb(),v.Rb()}if(2&t){var a=v.dc(2);v.Ab(1),v.kc("disableSend",!a.addAuth)("displayedColumns",a.displayedColumns)("applicationMails",a.applicationMails)("pageSize",a.pageSize)("groupId",a.groupId)("selection",a.selection)("theme","group-theme")}}function oo(t,e){1&t&&(v.Sb(0,"app-alert",17),v.Jc(1),v.ec(2,"translate"),v.Rb()),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS")," "))}function ro(t,e){if(1&t){var i=v.Tb();v.Sb(0,"div"),v.Sb(1,"div",4),v.Hc(2,eo,3,3,"button",5),v.Hc(3,io,3,4,"button",6),v.Sb(4,"button",7),v.Zb("click",(function(){return v.xc(i),v.dc().changeEmailFooter()})),v.Sb(5,"i",8),v.Jc(6,"email"),v.Rb(),v.Jc(7),v.ec(8,"translate"),v.Rb(),v.Hc(9,ao,5,3,"button",9),v.Rb(),v.Hc(10,no,2,7,"div",10),v.Hc(11,oo,3,3,"app-alert",11),v.Rb()}if(2&t){var a=v.dc();v.Ab(2),v.kc("ngIf",a.addAuth),v.Ab(1),v.kc("ngIf",a.removeAuth),v.Ab(4),v.Lc(" ",v.fc(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),v.Ab(2),v.kc("ngIf",a.copyAuth),v.Ab(1),v.kc("ngIf",0!==a.applicationMails.length),v.Ab(1),v.kc("ngIf",0===a.applicationMails.length)}}function co(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",19),v.Zb("click",(function(){return v.xc(i),v.dc(2).createEmptyApplicationForm()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function so(t,e){if(1&t&&(v.Sb(0,"div"),v.Sb(1,"app-alert",17),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Hc(4,co,3,3,"button",18),v.Rb()),2&t){var i=v.dc();v.Ab(2),v.Kc(v.fc(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),v.Ab(2),v.kc("ngIf",i.createFormAuth)}}var uo,lo=((uo=function(){function t(e,i,a,o,r,c,s,u,l,b){n(this,t),this.route=e,this.registrarService=i,this.translate=a,this.dialog=o,this.apiRequest=r,this.tableConfigService=c,this.notificator=s,this.groupsService=u,this.guiAuthResolver=l,this.attributesService=b,this.loading=!1,this.applicationMails=[],this.selection=new ne.c(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=ce.K}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe((function(e){t.voId=e.voId,t.groupId=e.groupId,t.groupsService.getGroupById(t.groupId).subscribe((function(e){t.group=e,t.apiRequest.dontHandleErrorForNext(),t.registrarService.getGroupApplicationForm(t.groupId).subscribe((function(e){t.applicationForm=e,t.registrarService.getApplicationMailsForGroup(t.groupId).subscribe((function(e){t.applicationMails=e,t.apiRequest.dontHandleErrorForNext(),t.attributesService.getGroupAttributeByName(t.groupId,g.a.GROUP_DEF_EXPIRATION_RULES).subscribe((function(){t.setAuthRights(),t.loading=!1}),(function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e),t.setAuthRights(),t.loading=!1}))}))}),(function(e){"FormNotExistsException"===e.error.name?(t.setAuthRights(),t.loading=!1):t.notificator.showRPCError(e)}))}))}))}},{key:"setAuthRights",value:function(){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("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}},{key:"add",value:function(){var t=this,e=Object(h.e)();e.formId=this.applicationForm.id;var i=Object(h.o)();i.width="1400px",i.height="700px",i.data={theme:"group-theme",voId:this.voId,groupId:this.groupId,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(En.a,i).afterClosed().subscribe((function(e){e&&(t.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.selection.clear(),t.updateTable())}))}},{key:"remove",value:function(){var t=this,e=Object(h.o)();e.width="500px",e.data={voId:this.voId,groupId:this.groupId,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(An.a,e).afterClosed().subscribe((function(e){e&&(t.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.selection.clear(),t.updateTable())}))}},{key:"copy",value:function(){var t=this,e=Object(h.o)();e.width="500px",e.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(Rn.a,e).afterClosed().subscribe((function(e){e&&(t.selection.clear(),t.updateTable())}))}},{key:"updateTable",value:function(){var t=this;this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe((function(e){t.applicationMails=e,t.loading=!1}))}},{key:"changeEmailFooter",value:function(){var t=Object(h.o)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(Tn.a,t)}},{key:"changeSelection",value:function(t){this.selection=t}},{key:"createEmptyApplicationForm",value:function(){var t=this;this.registrarService.createApplicationFormInGroup(this.groupId).subscribe((function(){t.noApplicationForm=!1,t.ngOnInit()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||uo)(v.Mb(s.a),v.Mb(d.l),v.Mb(M.e),v.Mb(I.b),v.Mb(f.b),v.Mb(ce.pb),v.Mb(f.l),v.Mb(d.h),v.Mb(f.h),v.Mb(d.c))},uo.\u0275cmp=v.Gb({type:uo,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","d-flex"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"ml-auto",3,"click"],[1,"card","mt-2"],[3,"disableSend","displayedColumns","applicationMails","pageSize","groupId","selection","theme","page","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.Rb(),v.Hc(3,to,1,0,"mat-spinner",1),v.Hc(4,ro,12,8,"div",2),v.Hc(5,so,5,4,"div",2)),2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,4,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),v.Ab(2),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.noApplicationForm&&!e.loading),v.Ab(1),v.kc("ngIf",e.noApplicationForm&&!e.loading))},directives:[c.t,A.c,y.b,Jn,Bn.a],pipes:[M.d],styles:[""]}),uo),bo=o("R0qJ"),po=o("aYBX"),ho=o("ZWyU");function fo(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",7),v.Zb("click",(function(){return v.xc(i),v.dc().onAdd()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function go(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",8),v.Zb("click",(function(){return v.xc(i),v.dc().onRemove()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc();v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function mo(t,e){1&t&&v.Nb(0,"mat-spinner",9)}function vo(t,e){if(1&t){var i=v.Tb();v.Sb(0,"app-ext-sources-list",10),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("pageSize",a.pageSize)("extSources",a.extSources)("hideColumns",a.hideColumns)("filterValue",a.filterValue)("selection",a.selection)}}var Io,So=((Io=function(){function t(e,i,a,o,r,c,s,u){var l=this;n(this,t),this.extSourceService=e,this.route=i,this.dialog=a,this.notificator=o,this.tableConfigService=r,this.translate=c,this.authResolver=s,this.voService=u,this.extSources=[],this.selection=new ne.c(!0,[]),this.filterValue="",this.tableId=ce.ib,this.hideColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe((function(t){return l.successMessage=t}))}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe((function(e){t.voId=e.voId,t.voService.getVoById(t.voId).subscribe((function(e){t.vo=e,t.refreshTable()}))}))}},{key:"setAuthRights",value:function(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.hideColumns=this.removeAuth?[]:["select"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.extSourceService.getVoExtSources(this.voId).subscribe((function(e){t.extSources=e,t.selection.clear(),t.setAuthRights(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onAdd",value:function(){var t=this,e=Object(h.o)();e.width="1000px",e.data={voId:this.voId,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(bo.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onRemove",value:function(){var t=this,e=Object(h.o)();e.width="600px",e.data={voId:this.voId,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(po.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||Io)(v.Mb(d.f),v.Mb(s.a),v.Mb(I.b),v.Mb(f.l),v.Mb(ce.pb),v.Mb(M.e),v.Mb(f.h),v.Mb(d.q))},Io.\u0275cmp=v.Gb({type:Io,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","hideColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","hideColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(v.Sb(0,"div"),v.Sb(1,"h1",0),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Sb(4,"perun-web-apps-refresh-button",1),v.Zb("refresh",(function(){return e.refreshTable()})),v.Rb(),v.Hc(5,fo,3,3,"button",2),v.Hc(6,go,3,4,"button",3),v.Sb(7,"perun-web-apps-immediate-filter",4),v.Zb("filter",(function(t){return e.applyFilter(t)})),v.Rb(),v.Hc(8,mo,1,0,"mat-spinner",5),v.Hc(9,vo,1,5,"app-ext-sources-list",6),v.Rb()),2&t&&(v.Ab(2),v.Kc(v.fc(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),v.Ab(3),v.kc("ngIf",e.addAuth),v.Ab(1),v.kc("ngIf",e.removeAuth),v.Ab(1),v.kc("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[ue.a,c.t,le.a,y.b,A.c,ho.a],pipes:[M.d],styles:[""]}),Io),Ao=o("KtsV"),To=o("v0MX"),Eo=o("K9kF"),Ro=["list"];function yo(t,e){1&t&&v.Nb(0,"mat-spinner",8)}var Mo=function(){return["expiration","menu","recent"]};function Oo(t,e){if(1&t){var i=v.Tb();v.Sb(0,"perun-web-apps-groups-list",9,10),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("pageSize",a.pageSize)("groups",a.groups)("parentGroup",a.group)("authType","group-relations")("selection",a.selection)("filter",a.filterValue)("hideColumns",v.oc(8,Mo))("disableHeadCheckbox",!0)}}var No,ko=((No=function(){function t(e,i,a,o){n(this,t),this.route=e,this.groupService=i,this.tableConfigService=a,this.dialog=o,this.selection=new ne.c(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=ce.L}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe((function(e){t.groupId=e.groupId,t.voId=e.voId,t.groupService.getGroupById(t.groupId).subscribe((function(e){t.group=e,t.refreshTable()}))}))}},{key:"onCreate",value:function(){var t=this,e=Object(h.o)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.voId,reverse:this.reverse},this.dialog.open(Ao.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onDelete",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:+this.groupId,reverse:this.reverse},this.dialog.open(To.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupService.getGroupUnions(this.groupId,this.reverse).subscribe((function(e){t.groups=e,t.selection.clear(),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"showReverseUnions",value:function(){this.reverse=!this.reverse,this.refreshTable()}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||No)(v.Mb(s.a),v.Mb(d.h),v.Mb(ce.pb),v.Mb(I.b))},No.\u0275cmp=v.Gb({type:No,selectors:[["app-group-settings-relations"]],viewQuery:function(t,e){var i;1&t&&v.Qc(Ro,!0),2&t&&v.sc(i=v.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&v.Eb("router-component",!0)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"matTooltip","matTooltipDisabled","disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","parentGroup","authType","selection","filter","hideColumns","disableHeadCheckbox","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","parentGroup","authType","selection","filter","hideColumns","disableHeadCheckbox","page"],["list",""]],template:function(t,e){1&t&&(v.Sb(0,"div"),v.Sb(1,"h1",0),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Sb(4,"perun-web-apps-refresh-button",1),v.Zb("refresh",(function(){return e.refreshTable()})),v.Rb(),v.Sb(5,"button",2),v.Zb("click",(function(){return e.onCreate()})),v.Jc(6),v.ec(7,"translate"),v.Rb(),v.Sb(8,"button",3),v.Zb("click",(function(){return e.onDelete()})),v.ec(9,"translate"),v.Jc(10),v.ec(11,"translate"),v.Rb(),v.Sb(12,"perun-web-apps-immediate-filter",4),v.Zb("filter",(function(t){return e.applyFilter(t)})),v.Rb(),v.Sb(13,"mat-checkbox",5),v.Zb("change",(function(){return e.showReverseUnions()})),v.Jc(14),v.ec(15,"translate"),v.Rb(),v.Hc(16,yo,1,0,"mat-spinner",6),v.Hc(17,Oo,2,9,"perun-web-apps-groups-list",7),v.Rb()),2&t&&(v.Ab(2),v.Kc(v.fc(3,10,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),v.Ab(4),v.Lc(" ",v.fc(7,12,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),v.Ab(2),v.lc("matTooltip",v.fc(9,14,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),v.kc("matTooltipDisabled",0===e.selection.selected.length||void 0!==e.list&&e.list.removeAuth)("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),v.Ab(2),v.Lc(" ",v.fc(11,16,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),v.Ab(2),v.kc("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),v.Ab(2),v.Kc(v.fc(15,18,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),v.Ab(2),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[ue.a,y.b,E.a,le.a,Ce.a,c.t,A.c,Eo.a],pipes:[M.d],styles:[""]}),No);function _o(t,e){if(1&t&&v.Nb(0,"app-two-entity-attribute-page",3),2&t){var i=v.dc();v.kc("entityValues",i.resources)("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","resource")}}function Lo(t,e){1&t&&v.Nb(0,"mat-spinner",4)}var Co,Po=((Co=function(){function t(e,i){n(this,t),this.route=e,this.resourcesManagerService=i,this.resources=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe((function(e){t.memberId=e.memberId,t.resourcesManagerService.getAllowedResources(t.memberId).subscribe((function(e){t.resources=e,t.loading=!1}))}))}}]),t}()).\u0275fac=function(t){return new(t||Co)(v.Mb(s.a),v.Mb(d.m))},Co.\u0275cmp=v.Gb({type:Co,selectors:[["app-member-settings-resource-attributes"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityValues","firstEntity","firstEntityId","secondEntity",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"entityValues","firstEntity","firstEntityId","secondEntity"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.Rb(),v.Hc(3,_o,1,4,"app-two-entity-attribute-page",1),v.Hc(4,Lo,1,0,"mat-spinner",2)),2&t&&(v.Ab(1),v.Kc(v.fc(2,3,"MEMBER_DETAIL.SETTINGS.RESOURCE_PAGE.TITLE")),v.Ab(2),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",e.loading))},directives:[c.t,xi.a,A.c],pipes:[M.d],styles:[""]}),Co);function Go(t,e){if(1&t&&v.Nb(0,"app-two-entity-attribute-page",3),2&t){var i=v.dc();v.kc("entityValues",i.resources)("firstEntity","group")("firstEntityId",i.groupId)("secondEntity","resource")}}function Do(t,e){1&t&&v.Nb(0,"mat-spinner",4)}var Vo,wo=((Vo=function(){function t(e,i){n(this,t),this.route=e,this.resourcesManagerService=i,this.resources=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe((function(e){t.groupId=e.groupId,t.resourcesManagerService.getAssignedResourcesWithGroup(t.groupId).subscribe((function(e){t.resources=e,t.loading=!1}))}))}}]),t}()).\u0275fac=function(t){return new(t||Vo)(v.Mb(s.a),v.Mb(d.m))},Vo.\u0275cmp=v.Gb({type:Vo,selectors:[["app-group-settings-resource-attributes"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityValues","firstEntity","firstEntityId","secondEntity",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"entityValues","firstEntity","firstEntityId","secondEntity"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.Rb(),v.Hc(3,Go,1,4,"app-two-entity-attribute-page",1),v.Hc(4,Do,1,0,"mat-spinner",2)),2&t&&(v.Ab(1),v.Kc(v.fc(2,3,"GROUP_DETAIL.SETTINGS.RESOURCE_ATTRIBUTES.TITLE")),v.Ab(2),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",e.loading))},directives:[c.t,xi.a,A.c],pipes:[M.d],styles:[""]}),Vo);function xo(t,e){if(1&t&&v.Nb(0,"app-two-entity-attribute-page",3),2&t){var i=v.dc();v.kc("entityValues",i.groups)("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","group")}}function zo(t,e){1&t&&v.Nb(0,"mat-spinner",4)}var Ho,Uo=((Ho=function(){function t(e,i){n(this,t),this.route=e,this.groupsManagerService=i,this.groups=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe((function(e){t.memberId=e.memberId,t.groupsManagerService.getMemberGroups(t.memberId).subscribe((function(e){t.groups=e,t.loading=!1}))}))}}]),t}()).\u0275fac=function(t){return new(t||Ho)(v.Mb(s.a),v.Mb(d.h))},Ho.\u0275cmp=v.Gb({type:Ho,selectors:[["app-member-settings-group-attributes"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityValues","firstEntity","firstEntityId","secondEntity",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"entityValues","firstEntity","firstEntityId","secondEntity"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.Rb(),v.Hc(3,xo,1,4,"app-two-entity-attribute-page",1),v.Hc(4,zo,1,0,"mat-spinner",2)),2&t&&(v.Ab(1),v.Kc(v.fc(2,3,"MEMBER_DETAIL.SETTINGS.GROUP_PAGE.TITLE")),v.Ab(2),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",e.loading))},directives:[c.t,xi.a,A.c],pipes:[M.d],styles:[""]}),Ho),Jo=o("aag5"),Bo=o("oCM2");function Fo(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",6),v.Zb("click",(function(){return v.xc(i),v.dc().showAllDetails=!0})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Zo(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",6),v.Zb("click",(function(){return v.xc(i),v.dc().showAllDetails=!1})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function jo(t,e){1&t&&v.Nb(0,"mat-spinner",7)}function Ko(t,e){if(1&t){var i=v.Tb();v.Sb(0,"app-applications-list",10),v.Zb("page",(function(t){return v.xc(i),v.dc(2).pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc(2);v.kc("pageSize",a.pageSize)("filterValue",a.filterValue)("applications",a.applications)("member",a.member)("displayedColumns",a.displayedColumns)}}function Xo(t,e){if(1&t){var i=v.Tb();v.Sb(0,"app-perun-web-apps-application-list-details",11),v.Zb("page",(function(t){return v.xc(i),v.dc(2).detailPageChanged(t)})),v.Rb()}if(2&t){var a=v.dc(2);v.kc("pageSize",a.detailPageSize)("filterValue",a.filterValue)("applications",a.applications)("member",a.member)}}function Wo(t,e){if(1&t&&(v.Sb(0,"div"),v.Hc(1,Ko,1,5,"app-applications-list",8),v.Hc(2,Xo,1,4,"app-perun-web-apps-application-list-details",9),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.kc("ngIf",!i.showAllDetails),v.Ab(1),v.kc("ngIf",i.showAllDetails)}}var Yo,$o=((Yo=function(){function t(e,i,a,o){n(this,t),this.registrarManager=e,this.memberManager=i,this.tableConfigService=a,this.route=o,this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=ce.N,this.tableId=ce.O}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe((function(e){t.memberId=e.memberId,t.memberManager.getMemberById(t.memberId).subscribe((function(e){t.member=e})),t.registrarManager.getApplicationsForMember(t.memberId).subscribe((function(e){t.applications=e,t.loading=!1}))}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.registrarManager.getApplicationsForMember(this.memberId).subscribe((function(e){t.applications=e,t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"detailPageChanged",value:function(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||Yo)(v.Mb(d.l),v.Mb(d.i),v.Mb(ce.pb),v.Mb(s.a))},Yo.\u0275cmp=v.Gb({type:Yo,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","member","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","member","page",4,"ngIf"],[3,"pageSize","filterValue","applications","member","displayedColumns","page"],[3,"pageSize","filterValue","applications","member","page"]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.Rb(),v.Sb(3,"div"),v.Sb(4,"perun-web-apps-refresh-button",1),v.Zb("refresh",(function(){return e.refreshTable()})),v.Rb(),v.Hc(5,Fo,3,3,"button",2),v.Hc(6,Zo,3,3,"button",2),v.Sb(7,"perun-web-apps-immediate-filter",3),v.Zb("filter",(function(t){return e.applyFilter(t)})),v.Rb(),v.Rb(),v.Hc(8,jo,1,0,"mat-spinner",4),v.Hc(9,Wo,3,2,"div",5)),2&t&&(v.Ab(1),v.Kc(v.fc(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),v.Ab(4),v.kc("ngIf",!e.showAllDetails),v.Ab(1),v.kc("ngIf",e.showAllDetails),v.Ab(1),v.kc("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[ue.a,c.t,le.a,y.b,A.c,Jo.a,Bo.a],pipes:[M.d],styles:[""]}),Yo),qo=o("HHqq"),Qo=o("23RZ");function tr(t,e){if(1&t){var i=v.Tb();v.Sb(0,"perun-web-apps-refresh-button",6),v.Zb("refresh",(function(){return v.xc(i),v.dc().refreshTable()})),v.Rb()}}function er(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",7),v.Zb("click",(function(){return v.xc(i),v.dc().addResource()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ir(t,e){if(1&t){var i=v.Tb();v.Sb(0,"perun-web-apps-immediate-filter",8),v.Zb("filter",(function(t){return v.xc(i),v.dc().applyFilter(t)})),v.Rb()}2&t&&v.kc("placeholder","MEMBER_DETAIL.RESOURCES.FILTER")}function ar(t,e){if(1&t){var i=v.Tb();v.Sb(0,"perun-web-apps-resources-list",9),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("pageSize",a.pageSize)("filterValue",a.filterValue)("displayedColumns",a.displayedColumns)("routingVo",!0)("disableRouting",!a.routeAuth)("resources",a.resources)}}function nr(t,e){1&t&&v.Nb(0,"mat-spinner",10)}var or,rr=((or=function(){function t(e,i,a,o,r,c){n(this,t),this.dialog=e,this.tableConfigService=i,this.memberManager=a,this.resourceManager=o,this.route=r,this.authResolver=c,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=ce.Q}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.memberManager.getMemberById(e.memberId).subscribe((function(e){t.member=e,t.refreshTable()}))}))}},{key:"addResource",value:function(){var t=this,e=Object(h.o)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(qo.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe((function(e){t.resources=e,t.setAuthRights(),t.loading=!1}))}},{key:"setAuthRights",value:function(){var t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||or)(v.Mb(I.b),v.Mb(ce.pb),v.Mb(d.i),v.Mb(d.m),v.Mb(s.a),v.Mb(f.h))},or.\u0275cmp=v.Gb({type:or,selectors:[["app-member-resources"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["class","mr-2",3,"placeholder","filter",4,"ngIf"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],[1,"mr-2",3,"placeholder","filter"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(v.Sb(0,"div"),v.Sb(1,"h1",0),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Hc(4,tr,1,0,"perun-web-apps-refresh-button",1),v.Hc(5,er,3,3,"button",2),v.Hc(6,ir,1,1,"perun-web-apps-immediate-filter",3),v.Hc(7,ar,1,6,"perun-web-apps-resources-list",4),v.Rb(),v.Hc(8,nr,1,0,"mat-spinner",5)),2&t&&(v.Ab(2),v.Kc(v.fc(3,6,"MEMBER_DETAIL.RESOURCES.TITLE")),v.Ab(2),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",!e.loading&&e.addAuth),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",!e.loading),v.Ab(1),v.kc("ngIf",e.loading))},directives:[c.t,ue.a,y.b,le.a,Qo.a,A.c],pipes:[M.d],styles:[""]}),or),cr=o("nSPi"),sr=o("y/MV"),ur=o("jblC"),lr=o("GyaY"),br=o("HUrR"),pr=o("gxIj"),dr=o("Fm3m"),hr=o("TNye"),fr=o("lfUW"),gr=o("+Jyz");function mr(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",7),v.Zb("click",(function(){return v.xc(i),v.dc().onAdd()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}2&t&&(v.Ab(1),v.Lc(" ",v.fc(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function vr(t,e){if(1&t){var i=v.Tb();v.Sb(0,"button",8),v.Zb("click",(function(){return v.xc(i),v.dc().onRemove()})),v.Jc(1),v.ec(2,"translate"),v.Rb()}if(2&t){var a=v.dc();v.kc("disabled",0===a.selection.selected.length),v.Ab(1),v.Lc(" ",v.fc(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Ir(t,e){1&t&&v.Nb(0,"mat-spinner",9)}function Sr(t,e){if(1&t){var i=v.Tb();v.Sb(0,"app-ext-sources-list",10),v.Zb("page",(function(t){return v.xc(i),v.dc().pageChanged(t)})),v.Rb()}if(2&t){var a=v.dc();v.kc("pageSize",a.pageSize)("extSources",a.extSources)("hideColumns",a.hideColumns)("filterValue",a.filterValue)("selection",a.selection)}}var Ar,Tr=((Ar=function(){function t(e,i,a,o,r,c,s,u){var l=this;n(this,t),this.extSourceService=e,this.route=i,this.dialog=a,this.notificator=o,this.tableConfigService=r,this.translate=c,this.authResolver=s,this.groupService=u,this.extSources=[],this.selection=new ne.c(!0,[]),this.filterValue="",this.tableId=ce.G,this.hideColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe((function(t){return l.successMessage=t}))}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe((function(e){t.voId=e.voId,t.groupId=e.groupId,t.groupService.getGroupById(t.groupId).subscribe((function(e){t.group=e,t.refreshTable()}))}))}},{key:"setAuthRights",value:function(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.hideColumns=this.removeAuth?[]:["select"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.extSourceService.getGroupExtSources(this.groupId).subscribe((function(e){t.extSources=e,t.selection.clear(),t.setAuthRights(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onAdd",value:function(){var t=this,e=Object(h.o)();e.width="1000px",e.data={voId:this.voId,groupId:this.groupId,extSources:this.extSources,theme:"group-theme"},this.dialog.open(bo.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onRemove",value:function(){var t=this,e=Object(h.o)();e.width="600px",e.data={voId:this.voId,groupId:this.groupId,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(po.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}()).\u0275fac=function(t){return new(t||Ar)(v.Mb(d.f),v.Mb(s.a),v.Mb(I.b),v.Mb(f.l),v.Mb(ce.pb),v.Mb(M.e),v.Mb(f.h),v.Mb(d.h))},Ar.\u0275cmp=v.Gb({type:Ar,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","hideColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","hideColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(v.Sb(0,"div"),v.Sb(1,"h1",0),v.Jc(2),v.ec(3,"translate"),v.Rb(),v.Sb(4,"perun-web-apps-refresh-button",1),v.Zb("refresh",(function(){return e.refreshTable()})),v.Rb(),v.Hc(5,mr,3,3,"button",2),v.Hc(6,vr,3,4,"button",3),v.Sb(7,"perun-web-apps-immediate-filter",4),v.Zb("filter",(function(t){return e.applyFilter(t)})),v.Rb(),v.Hc(8,Ir,1,0,"mat-spinner",5),v.Hc(9,Sr,1,5,"app-ext-sources-list",6),v.Rb()),2&t&&(v.Ab(2),v.Kc(v.fc(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),v.Ab(3),v.kc("ngIf",e.addAuth),v.Ab(1),v.kc("ngIf",e.removeAuth),v.Ab(1),v.kc("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[ue.a,c.t,le.a,y.b,A.c,ho.a],pipes:[M.d],styles:[""]}),Ar),Er=o("KF6X");function Rr(t,e){1&t&&v.Nb(0,"mat-spinner",3)}function yr(t,e){if(1&t&&(v.Sb(0,"div"),v.Nb(1,"app-statistics-card",4),v.Rb()),2&t){var i=v.dc();v.Ab(1),v.kc("rowNames",i.rowNames)("statistics",i.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}var Mr,Or=((Mr=function(){function t(e,i){n(this,t),this.voService=e,this.route=i,this.loading=!1,this.dataSource=new pt.o,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe((function(e){t.voId=e.voId,t.dataSource=new pt.o(t.rowNames),t.voService.getVoMembersCountsByStatus(t.voId).subscribe((function(e){t.allMembersCount=0;for(var i=0,a=Object.keys(e);i_policy",[{id:this.voId,beanName:"Vo"}])}}]),t}(),xr.\u0275fac=function(t){return new(t||xr)(v.Mb(ce.pb),v.Mb(d.h),v.Mb(f.h),v.Mb(I.b),v.Mb(s.a))},xr.\u0275cmp=v.Gb({type:xr,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){var i;1&t&&v.Qc(Pr,!0),2&t&&v.sc(i=v.ac())&&(e.list=i.first)},decls:17,vars:22,consts:[[1,"page-subtitle"],[3,"alert_type"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"selection","pageSize","hideColumns","disableRouting","filter","authType","groups","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"selection","pageSize","hideColumns","disableRouting","filter","authType","groups","page"],["list",""]],template:function(t,e){1&t&&(v.Sb(0,"h1",0),v.Jc(1),v.ec(2,"translate"),v.ec(3,"translate"),v.Rb(),v.Sb(4,"app-alert",1),v.Jc(5),v.ec(6,"translate"),v.Rb(),v.Sb(7,"perun-web-apps-refresh-button",2),v.Zb("refresh",(function(){return e.loadGroups()})),v.Rb(),v.Hc(8,Gr,3,3,"button",3),v.Sb(9,"span",4),v.ec(10,"translate"),v.Sb(11,"button",5),v.Zb("click",(function(){return e.removeGroup()})),v.Jc(12),v.ec(13,"translate"),v.Rb(),v.Rb(),v.Sb(14,"perun-web-apps-immediate-filter",6),v.Zb("filter",(function(t){return e.filterValue=t})),v.Rb(),v.Hc(15,Dr,1,0,"mat-spinner",7),v.Hc(16,wr,2,8,"perun-web-apps-groups-list",8)),2&t&&(v.Ab(1),v.Mc(" ",v.fc(2,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",v.fc(3,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),v.Ab(3),v.kc("alert_type","info"),v.Ab(1),v.Lc(" ",v.fc(6,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),v.Ab(3),v.kc("ngIf",e.addAuth),v.Ab(1),v.lc("matTooltip",v.fc(10,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),v.kc("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),v.Ab(2),v.kc("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),v.Ab(1),v.Lc(" ",v.fc(13,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),v.Ab(2),v.kc("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),v.Ab(1),v.kc("ngIf",e.loading),v.Ab(1),v.kc("ngIf",!e.loading))},directives:[Bn.a,ue.a,c.t,E.a,y.b,le.a,A.c,Eo.a],pipes:[M.d],styles:[""]}),xr)},{path:"notifications",component:qn,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:So,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:X,children:[{path:"",component:Ft,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:en,data:{animation:"MemberAttributesPage"}},{path:"groups",component:Zt.a,data:{animation:"MemberGroupsPage"}},{path:"applications",component:$o,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Pi,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:rr,data:{animation:"MemberResourcesPage"}},{path:"settings",component:Pa,children:[{path:"",component:wa,data:{animation:"MemberSettingsOverviewPage"}},{path:"resourceAttributes",component:Po,data:{animation:"MemberSettingsResourceAttributesPage"}},{path:"groupAttributes",component:Uo,data:{animation:"MemberSettingsGroupAttributesPage"}}]}]},{path:":voId/groups/:groupId",component:z,children:[{path:"",component:Qt,data:{animation:"GroupOverviewPage"}},{path:"members",component:Gi.a,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:te.a,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Ye.a,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Di.a,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:qi,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Lr,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Vi,children:[{path:"",component:ia,data:{animation:"GroupSettingsOverviewPage"}},{path:"resourceAttributes",component:wo,data:{animation:"GroupSettingsResourceAttributesPage"}},{path:"groupAttributes",component:Uo,data:{animation:"MemberSettingsGroupAttributesPage"}},{path:"expiration",component:mn,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Sn,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Qn.a,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Ca},{path:"notifications",component:lo,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:ko,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Tr,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Pi,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:cr.a,children:[{path:"",component:sr.a,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ur.a,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:hr.a,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:pr.a,data:{animation:"ResourceAttributesPage"}},{path:"members",component:fr.a,data:{animation:"ResourceAssignedMembersComponent"}},{path:"settings",component:lr.a,children:[{path:"",component:br.a,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dr.a,data:{animation:"ResourceSettingsManagersPage"}}]}]}],Jr=((zr=function t(){n(this,t)}).\u0275mod=v.Kb({type:zr}),zr.\u0275inj=v.Jb({factory:function(t){return new(t||zr)},imports:[[s.j.forChild(Ur)],s.j]}),zr),Br=o("PCNd"),Fr=o("KoHB"),Zr=o("t47Z"),jr=((Hr=function t(){n(this,t)}).\u0275mod=v.Kb({type:Hr}),Hr.\u0275inj=v.Jb({factory:function(t){return new(t||Hr)},imports:[[c.c,Jr,Br.a,Fr.a,re.d,Zr.b]]}),Hr)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/assets/config/defaultConfig.json b/dist/apps/admin-gui/assets/config/defaultConfig.json new file mode 100644 index 000000000..33672b9b9 --- /dev/null +++ b/dist/apps/admin-gui/assets/config/defaultConfig.json @@ -0,0 +1,113 @@ +{ + "config": "default", + "api_url": "http://localhost/krb/rpc", + "document_title": "Perun Web Gui", + "isDevel": false, + "display_warning": false, + "warning_message": "BETA version of new Perun GUI. It doesn’t contain all functionality. Please report any issues to support mail below.", + + "oidc_client" : { + "oauth_authority": "https://login.cesnet.cz/oidc/", + "oauth_callback": "http://gui-dev.org/api-callback", + "oauth_client_id": "411471d9-5e3d-48bd-9717-25f1fa634d20", + "oauth_post_logout_redirect_uri": "", + "oauth_redirect_uri": "http://gui-dev.org/api-callback", + "oauth_silent_redirect_uri": "http://gui-dev.org/silent-refresh.html", + "oauth_load_user_info": false, + "oauth_scopes": "openid profile perun_api perun_admin", + "oauth_response_type": "id_token token" + }, + "login_namespace_attributes": [ + "urn:perun:user:attribute-def:def:login-namespace:einfra", + "urn:perun:user:attribute-def:def:login-namespace:einfra-services", + "urn:perun:user:attribute-def:def:login-namespace:cesnet", + "urn:perun:user:attribute-def:def:login-namespace:mu" + ], + "sponsor_namespace_attributes": [], + "password_namespace_attributes": [ + "urn:perun:user:attribute-def:def:login-namespace:einfra", + "urn:perun:user:attribute-def:def:login-namespace:einfra-services", + "urn:perun:user:attribute-def:def:login-namespace:egi-ui", + "urn:perun:user:attribute-def:def:login-namespace:sitola" + ], + "allow_empty_sponsor_namespace": false, + "member_profile_attributes_friendly_names": [ + "organization", + "workplace", + "researchGroup", + "mail", + "phone", + "address", + "preferredLanguage", + "preferredMail" + ], + "pwd_reset_base_url": "https://perun-dev.cesnet.cz/fed/pwd-reset/", + "skip_oidc": false, + "groupNameSecondaryRegex": "^[-a-zA-Z.0-9_ ]+$", + "groupNameErrorMessage": "Name cannot be empty and can contain only characters a-z, A-Z, numbers, spaces, dots, '_' and '-'", + "footer_perun_web_web": "https://perun-aai.org/", + "footer_perun_team_web": "https://perun-aai.org/team", + "footer_privacy_policy_web": "https://perun-aai.org/", + "footer_users_documentation_web": "https://perun-aai.org/documentation/user-manual", + "footer_administrator_documentation": "https://perun-aai.org/documentation/technical-documentation", + "footer_github_releases": "https://github.com/CESNET/perun-web-apps/releases", + "footer_support_mail": "perun@cesnet.cz", + "footer_copyright": [ + { + "name": "CESNET", + "webpage": "https://www.cesnet.cz/" + }, + { + "name": "CERIT-SC", + "webpage": "https://www.cerit-sc.cz/" + } + ], + "log_out_enabled": true, + "logo_padding": "16px 8px", + "logo": "image/svg+xml\n\n\t.st0{fill:#FFFFFF;}\n\n\n\n\t\n\t\n\n", + "theme": { + "content_bg_color": "", + "backButtonColor": "#000000", + + "nav_bg_color": "#102027", + "nav_text_color": "#ffffff", + "nav_icon_color": "#ffffff", + "footer_bg_color": "#263238", + "footer_headers_text_color": "#ffffff", + "footer_links_text_color": "#e0e0e0", + "footer_copyright_text_color": "#9e9e9e", + "sidemenu_divider_color": "#263238", + "sidemenu_bg_color": "#263238", + "sidemenu_border_color": "#071e24", + "sidemenu_item_links_bg_color": "#1b2428", + "sidemenu_item_icon_color": "#ffffff", + "sidemenu_hover_color": "#566268", + "sidemenu_root_active_color": "#465258", + "sidemenu-link-hover": "#566268", + "sidemenu-link-active": "#465258", + "sidemenu_text_color":"#ffffff", + "sidemenu_vo_bg_color":"#283593", + "sidemenu_member_bg_color": "#ad1457", + "sidemenu_group_bg_color":"#33691e", + "sidemenu_facility_bg_color": "#d84315", + "sidemenu_resource_bg_color":"#6a1b9a", + "sidemenu_user_bg_color": "#00796b", + "sidemenu_service_bg_color": "#561335", + "sidemenu_item_links_text_color": "#ffffff", + "sidemenu_vo_text_color": "#ffffff", + "sidemenu_member_text_color":"#ffffff", + "sidemenu_group_text_color": "#ffffff", + "sidemenu_facility_text_color":"#ffffff", + "sidemenu_resource_text_color": "#ffffff", + "sidemenu_user_text_color":"#ffffff", + "sidemenu_service_text_color": "#ffffff", + "vo_color": "#283593", + "group_color": "#33691e", + "facility_color": "#d84315", + "resource_color": "#6a1b9a", + "user_color": "#00796b", + "member_color": "#ad1457", + "admin_color": "#c62828", + "service_color": "#561335" + } +} diff --git a/dist/apps/admin-gui/assets/config/instanceConfig.json b/dist/apps/admin-gui/assets/config/instanceConfig.json new file mode 100644 index 000000000..64648e56b --- /dev/null +++ b/dist/apps/admin-gui/assets/config/instanceConfig.json @@ -0,0 +1,16 @@ +{ + "api_url": "https://perun-dev.cesnet.cz/oauth/rpc/", + + "member_profile_attributes_friendly_names": [ + "organization", + "login-namespace:mu", + "workplace", + "mail", + "phone", + "preferredLanguage", + "preferredMail" + ], + "sponsor_namespace_attributes": ["urn:perun:user:attribute-def:def:login-namespace:mu"], + "user_profile_url": "https://profile.aai.elixir-czech.org/profile", + "allow_empty_sponsor_namespace": "true" +} diff --git a/dist/apps/admin-gui/assets/config/version.json b/dist/apps/admin-gui/assets/config/version.json new file mode 100644 index 000000000..9a8fd5d7f --- /dev/null +++ b/dist/apps/admin-gui/assets/config/version.json @@ -0,0 +1 @@ +{"version":"0.21.0"} diff --git a/dist/apps/admin-gui/assets/i18n/en.json b/dist/apps/admin-gui/assets/i18n/en.json new file mode 100644 index 000000000..bea055094 --- /dev/null +++ b/dist/apps/admin-gui/assets/i18n/en.json @@ -0,0 +1,2490 @@ +{ + "GENERAL": { + "PRINCIPAL_ERROR": { + "TITLE": "Server error", + "MESSAGE": "The server is not responding, because it is probably being restarted. Please, try it again later.", + "ACTION": "Refresh" + }, + "PAGE_NOT_FOUND": { + "TITLE": "404: Page not found" + }, + "PROXY_OVERLOAD_PREVENTION": { + "TITLE": "Page not found", + "MESSAGE": "The page you are trying to access is missing. If you wish to continue please click the button below that will redirect you to our home page.", + "ACTION": "Redirect" + } + }, + "NAV": { + "LOGOUT": "Log out", + "PROFILE": "Profile", + "NOTIFICATIONS_TOOLTIP": "Recent notifications", + "RELOAD_ROLES": "Reload roles", + "RELOAD_ROLES_SUCCESS": "Roles reloaded" + }, + "MAIN_MENU": { + "ACCESS": "Access management", + "FACILITIES": "Facilities management", + "ADMIN": "Perun admin", + "HOME": "Home", + "ACCESS_DESC": "Manage organizations, groups and members.", + "FACILITIES_DESC": "Manage facilities and resources.", + "ADMIN_DESC": "Manage attributes, users and do diagnostics.", + "PROFILE_DESC": "View information about you and your organizations and groups.", + "MY_PROFILE": "My profile" + }, + "VO_MANAGEMENT": { + "TITLE": "Select organization", + "CREATE_VO": "New", + "REMOVE_VO": "Remove", + "FILTER_PLACEHOLDER": "Filter by name", + "SETTINGS": { + "EXPIRATION": { + "TITLE": "Membership expiration", + "DISABLED": "Disabled", + "ENABLED": "Enabled", + "PERIOD_LABEL": "Period", + "PERIOD_TYPE_STATIC": "Static", + "PERIOD_TYPE_DYNAMIC": "Dynamic", + "PERIOD_INPUT_STATIC": "Date", + "DP_HINT": "Date in format DD.MM.", + "AMOUNT_VALUE": "Amount", + "AMOUNT_TYPE": "Unit", + "DONT_ALLOW_LOA_LABEL": "Don't allow LOAs", + "DONT_ALLOW_LOA_SELECT": "Choose LOAs", + "DONT_EXTEND_LOA_LABEL": "Don't extend LOAs", + "DONT_EXTEND_LOA_SELECT": "Choose LOAs", + "GRACE_PERIOD_LABEL": "Grace period", + "GRACE_AMOUNT_VALUE": "Amount", + "GRACE_AMOUNT_TYPE": "Unit", + "LOA_PERIOD_LABEL": "Special period for loa", + "SAVE": "Save", + "SPECIAL_LOA_SELECT": "Choose loa", + "EXTEND_EXPIRED_MEMBERS_CHECKBOX": "Extend already expired members", + "PERMISSION_DENIED_HINT": "You don't have permission to change expiration settings" + } + } + }, + "FACILITY_MANAGEMENT": { + "TITLE": "Select facility", + "FILTER_PLACEHOLDER": "Filter by name, id, description, owner, host or destination", + "CREATE": "Create", + "DELETE": "Delete" + }, + "USER_MANAGEMENT": { + "TITLE": "Users", + "INPUT_PLACEHOLDER": "Enter user's name, login or email...", + "NO_USERS_FOUND": "No users found." + }, + "FACILITY_DETAIL": { + "ENTITY": "Facility", + "DESCRIPTION": "Description", + "BACK": "Back", + "RESOURCES": { + "TITLE": "Resources", + "DELETE": "Remove selected", + "CREATE": "New", + "NO_RESOURCES_ALERT": "No resources found." + }, + "SERVICE_CONFIG": { + "UNSELECTED": "-- Unselect --", + "TITLE": "Service configuration", + "SERVICE_SELECT": "Service", + "SERVICE_SELECT_NO_SERVICE": "-- No services are assigned. --", + "FAC_SELECT": "Facility", + "RES_SELECT": "Resource", + "GROUP_SELECT": "Group", + "VO_SELECT": "Vo", + "MEMBER_SELECT": "Member", + "GROUP_SELECT_DEFAULT": " -- Select resource first -- ", + "VO_SELECT_DEFAULT": " -- Select resource first -- ", + "MEMBER_SELECT_DEFAULT": " -- Select member first -- ", + "ALL_SERVICES": "Select from all services", + "NOT_SELECTED": "Show all set attributes", + "ALL": "Show required attributes for all services" + }, + "ALLOWED_GROUPS": { + "SHOW_VOS_GROUPS": "Select organization", + "TABLE_GROUP_ID": "Id", + "TABLE_GROUP_NAME": "Name", + "ALL": "All", + "NO_GROUPS_ALERT": "No groups found.", + "FILTER": "Filter by name, id or description" + }, + "SERVICES_DESTINATIONS": { + "TITLE": "Services Destinations", + "ADD": "Add", + "REMOVE": "Remove", + "FILTER": "Filter", + "REMOVE_SUCCESS": "Destinations were successfully removed", + "ADD_SUCCESS": "Destinations were successfully added", + "ALLOW": "Allow", + "BLOCK": "Block", + "ALLOW_SUCCESS": "Service was successfully allowed on destination", + "BLOCK_SUCCESS": "Service was successfully blocked on destination" + }, + "SETTINGS": { + "ATTRIBUTES": { + "TITLE": "Attributes", + "DELETE": "Remove selected", + "FILTER": "Filter by id, name, value or description", + "SAVE": "Save selected", + "CREATE": "Add", + "CANCEL": "Cancel", + "SUCCESS_DELETE": "Attributes deleted successfully", + "SUCCESS_SAVE": "Attributes saved successfully" + }, + "BLACKLIST": { + "TITLE": "Blacklist", + "FILTER": "Filter" + }, + "OWNERS": { + "TITLE": "Owners", + "ADD": "Add", + "DELETE": "Delete", + "NO_OWNERS": "This facility does not have any owners" + } + }, + "HOSTS": { + "TITLE": "Hosts", + "ADD": "Add", + "REMOVE": "Remove", + "FILTER": "Filter", + "HOSTS_DETAIL": { + "TITLE": "Host detail - ", + "ADD": "Add", + "REMOVE": "Remove", + "SAVE": "Save" + } + }, + "SECURITY_TEAMS": { + "TITLE": "Security teams", + "ADD": "Add", + "REMOVE": "Remove", + "FILTER": "Filter" + }, + "SERVICES_STATUS": { + "TITLE": "Services status", + "FORCE_PROPAGATION": "Force propagation", + "ALLOW": "Allow", + "BLOCK": "Block", + "REMOVE": "Remove", + "REMOVE_TASK_RESULTS": "Task results", + "REMOVE_SERVICE_FROM_FACILITY": "Service from facility", + "SUCCESS_FORCE_PROPAGATION": "Service propagation forced", + "SUCCESS_ALLOW": "Services allowed", + "SUCCESS_BLOCK": "Services blocked", + "SUCCESS_DELETE": "Tasks deleted", + "ALREADY_DELETED": "Task was already deleted" + }, + "ALLOWED_USERS": { + "TITLE": "Allowed users", + "FILTER": "Filter allowed users", + "NO_USERS": "No users assigned." + }, + "TASK_RESULTS": { + "TITLE": "Task results", + "REMOVE": "Remove", + "FILTER": "Filter by id, destination, service or status" + } + }, + "RESOURCE_DETAIL": { + "ENTITY": "Resource", + "DESCRIPTION": "Description", + "VO": "Organization", + "FACILITY": "Facility", + "ASSIGNED_GROUPS": { + "TITLE": "Assigned groups", + "ADD_GROUP": "Add..", + "REMOVE_GROUP": "Remove groups", + "FILTER_GROUPS": "Filter groups", + "NO_GROUPS": "No groups.", + "REMOVE_TOOLTIP": "You are not authorized to remove one or more of the selected groups." + }, + "ASSIGNED_SERVICES": { + "TITLE": "Assigned services", + "ADD_SERVICE": "Add", + "REMOVE_SERVICE": "Remove services", + "FILTER_SERVICES": "Filter services", + "NO_SERVICES": "No services." + }, + "ASSIGNED_MEMBERS": { + "TITLE": "Assigned members", + "FILTER": "Filter members" + }, + "SETTINGS": { + "ATTRIBUTES": { + "TITLE": "Attributes", + "DELETE": "Remove selected", + "FILTER": "Filter by id, name, value or description", + "SAVE": "Save selected", + "CREATE": "Add", + "CANCEL": "Cancel", + "SUCCESS_DELETE": "Attributes deleted successfully", + "SUCCESS_SAVE": "Attributes saved successfully" + } + } + }, + "VO_DETAIL": { + "ENTITY": "Organization", + "SHORT_NAME": "Short name", + "BACK": "Back", + "RESOURCES": { + "LIST": { + "TITLE": "Resources", + "DELETE": "Remove selected", + "NO_RESOURCES_ALERT": "No resources found." + }, + "STATES": { + "TITLE": "Resources state", + "ERROR_RESOURCES": "Resources with tasks in error state", + "FROM": "from", + "TASKS_WITH_ERROR_STATE": "tasks with error state", + "OK_RESOURCES": "Resources with tasks in Ok state", + "NO_TASKS": "No service configuration was propagated to this resource.", + "NOT_YET": "Not yet", + "NO_RESOURCES_IN_ERROR": "No resources with task in error state", + "NO_RESOURCES_IN_OK": "No resources with task in success state", + "TABLE_ID": "Task Id", + "TABLE_SERVICE": "Service", + "TABLE_STATUS": "Status", + "TABLE_SCHEDULED": "Scheduled", + "TABLE_STARTED": "Started", + "TABLE_ENDED": "Ended" + }, + "TAGS": { + "TITLE": "Resource tags", + "TAG_ID": "Tag ID", + "TAG_NAME": "Tag name", + "CREATE_BUTTON": "Create", + "DELETE_BUTTON": "Delete", + "EDIT_BUTTON": "Edit", + "SAVE_BUTTON": "Save", + "SEARCH": "Filter by ID or name", + "DELETE_SUCCESS": "Resource tags were successfully deleted.", + "CREATE_SUCCESS": "Resource tag was successfully created.", + "NO_TAGS": "VO has no resource tags defined." + } + }, + "GROUPS": { + "TITLE": "Groups", + "CREATE_GROUP": "Create", + "DELETE_GROUP": "Delete", + "TITLE_SUBGROUPS": "Subgroups", + "LIST_VIEW": "List view", + "TREE_VIEW": "Tree view", + "FILTER": "Filter", + "NO_GROUPS": "No groups found", + "GROUP_SYNCED": "Synchronized", + "GROUP_NOT_SYNCED": "Not synchronized", + "GROUP_SYNC_FAILED": "Last synchronization failed", + "GROUP_NOT_YET_SYNCED": "Not yet synced", + "GROUP_STRUCTURE_SYNCED": "Group structure synchronized", + "DELETE_PERMISSION_HINT": "You don't have permission to delete some of the selected groups." + }, + "MEMBERS": { + "TITLE": "Members", + "ADD_MEMBER": "Add", + "ADD_MEMBER_DISABLED": "You cannot add members manually into this Vo.", + "REMOVE_MEMBERS": "Remove", + "SEARCH_DESCRIPTION": "Search by name, login or email", + "LIST_MEMBERS": "List all members", + "NO_MEMBERS_ALERT": "No members found.", + "FILTER_STATUS": "Select Status", + "INVITE": "Invite", + "EMPTY_SEARCH": "Search field cannot be empty" + }, + "OVERVIEW": { + "INVITE_MEMBER": "Invite member", + "CREATE_SERVICE_MEMBER": "Create service member", + "ADD_MANAGER": "Add manager", + "CREATE_GROUP": "Create group", + "ADD_MEMBER": "Add member" + }, + "SETTINGS": { + "EXPIRATION": { + "SUCCESS_MESSAGE": "Settings saved.", + "ERROR_MESSAGE": "Failed to save settings." + }, + "APPLICATION_FORM": { + "TITLE": "Application form", + "DRAG_AND_DROP_INFO": "You can move the table items by dragging them with the handle on the left side.", + "ADD_BUTTON": "Add", + "COPY_VO_BUTTON": "Copy from VO/Group", + "PREVIEW_BUTTON": "Preview", + "SETTINGS_BUTTON": "Change Settings", + "NO_APPLICATION_FORM": "Application form have no items.", + "SHORTNAME": "Short name", + "TYPE": "Type", + "PREVIEW": "Preview", + "EDIT": "Edit", + "MANAGE_GROUPS": "Manage groups", + "DELETE": "Delete", + "MODULE_NAME": "Module name", + "APPLICATION_TYPE": "Approval style", + "MANUAL": "Manual", + "AUTOMATIC": "Automatic", + "CHANGE_SETTINGS_SUCCESS": "Settings were successfully changed", + "CHANGE_APPLICATION_FORM_ITEMS_SUCCESS": "Application form items were successfully changed", + "NOT_SELECTED": "Not selected", + "CLEAR_SELECTION": "Clear Selection", + "HIDDEN_VALUE": "Hidden", + "OTHER_VALUE": "-- other value --", + "SAVE_BUTTON": "Save Application Form", + "MARK_DELETE": "Marked for deletion", + "REVERT_DELETE": "Restore", + "CLEAR": "Clear form", + "CLEAR_TOOLTIP": "Removes all form items", + "TYPES": { + "HEADER": "Header", + "SUBMIT_BUTTON": "Submit button", + "HTML_COMMENT": "Custom HTML text", + "TEXTFIELD": "Input text field", + "FROM_FEDERATION_SHOW": "Input text field pre-filled from external source", + "FROM_FEDERATION_HIDDEN": "Hidden input text pre-filled from external source", + "VALIDATED_EMAIL": "Input text field for email", + "SELECTIONBOX": "Single value selection from list", + "USERNAME": "Input text field for username", + "PASSWORD": "Input text field for password", + "TEXTAREA": "Input text multi-line field", + "COMBOBOX": "Single value selection with opt. custom value", + "CHECKBOX": "Checkbox (multiple selection)", + "RADIO": "Radio (single selection)", + "TIMEZONE": "Selection of timezone", + "AUTO_SUBMIT_BUTTON": "Submit button with auto-submit", + "EMBEDDED_GROUP_APPLICATION": "Groups for embedded applications" + }, + "HIDDEN": { + "ALWAYS": "Always", + "NEVER": "Never", + "IF_PREFILLED": "If prefilled (self or other item, if dependency specified)", + "IF_EMPTY": "If empty (self or other item, if dependency specified)" + }, + "DISABLED": { + "ALWAYS": "Always", + "NEVER": "Never", + "IF_PREFILLED": "If prefilled (self or other item)", + "IF_EMPTY": "If empty (self or other item)" + }, + "WIDGET_DESCRIPTION": { + "HEADER": "Item is used to display customizable heading of form. Can have any HTML content.", + "SUBMIT_BUTTON": "Button used to submit the form with 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 form. Useful for explanation descriptions, dividing parts of form etc.", + "TEXTFIELD": "Editable text field useful to gather short text input, e.g. name, phone.", + "FROM_FEDERATION_SHOW": "Non-editable and visible form item. Form is submitted even on invalid input ! Useful to automatically gather information provided by AUTH mechanism (IdP federation, certificate).", + "FROM_FEDERATION_HIDDEN": "Non-editable and hidden form item. Form is submitted even on invalid input ! Useful to automatically gather information provided by AUTH mechanism (IdP federation, certificate).", + "VALIDATED_EMAIL": "Special text field to gather and verify user`s email address. Input is checked on email address format. If user enters new value, then validation email is sent. Application then can't be approved unless provided email address is validated.", + "SELECTIONBOX": "Simple selection box with defined custom values that user can choose.", + "USERNAME": "Special text field to gather user`s login. It checks login availability on user input.", + "PASSWORD": "Two password fields to gather user`s new password. Input is never displayed. User must type same password in both fields.", + "TEXTAREA": "Editable text area useful to gather longer text input with linebreaks, e.g. comments, SSH key", + "COMBOBOX": "Selection box with defined custom values and one special option: \"--custom value--\", which allows users to input own text (as simple text field).", + "CHECKBOX": "List of defined custom options with checkboxes. Selected values are gathered as comma separated string.", + "RADIO": "List of defined custom options with radio buttons. Single selection model. Value is stored as string.", + "TIMEZONE": "Selection box with pre-defined values of UTC timezones.", + "AUTO_SUBMIT_BUTTON": "Button used to auto-submit the form with custom label. All other form items are checked on valid input before submission. If validation fail (at least once) user must submit form manually. If it's OK, then form is automatically submitted.", + "EMBEDDED_GROUP_APPLICATION": "Checkbox of real organization groups which the user can check and thus submit an application to these groups" + }, + "PREVIEW_PAGE": { + "TITLE": "Application form preview", + "SWITCH_ENGLISH": "Switch to English", + "SWITCH_CZECH": "Switch to Czech", + "SWITCH_EXTENSION": "Switch to Extension", + "SWITCH_INITIAL": "Switch to Initial" + }, + "MANAGE_GROUPS_PAGE": { + "TITLE": "Manage groups for registration", + "ADD": "Add", + "REMOVE": "Remove", + "HELP": "On this page, you can set up a set of groups that will be displayed to users on an application to the organization. The user can select any set of these groups and for these selected groups, there will be applications submitted automatically.", + "FILTER": "Filter", + "REMOVE_GROUP_DIALOG_TITLE": "Confirm removing groups", + "REMOVE_GROUP_DIALOG_DESCRIPTION": "Following groups will be removed from the group list that is offered to users for registration.", + "REMOVE_PERMISSION_HINT": "You don't have permission to remove some of the selected groups." + } + }, + "ATTRIBUTES": { + "TITLE": "Attributes", + "DELETE": "Remove selected", + "FILTER": "Filter by id, name, value or description", + "SAVE": "Save selected", + "CREATE": "Add", + "CANCEL": "Cancel", + "SUCCESS_DELETE": "Attributes deleted successfully", + "SUCCESS_SAVE": "Attributes saved successfully" + }, + "NOTIFICATIONS": { + "TITLE": "Email notifications", + "ADD": "Add", + "REMOVE": "Remove", + "EMAIL_FOOTER": "E-mail footer", + "COPY_FROM_VO": "Copy from Vo", + "TABLE_EMAIL_ID": "E-Mail ID", + "TABLE_EMAIL_TYPE": "E-Mail type", + "TABLE_APPLICATION_TYPE": "Application type", + "TABLE_SENDING_ENABLED": "Sending enabled", + "TABLE_APPLICATION_TYPE_INITIAL": "Initial", + "TABLE_APPLICATION_TYPE_EXTENSION": "Extension", + "MAIL_TYPE_APP_CREATED_USER": "Created / user", + "MAIL_TYPE_APP_CREATED_VO_ADMIN": "Created / manager", + "MAIL_TYPE_MAIL_VALIDATION": "Mail validation / user", + "MAIL_TYPE_APP_APPROVED_USER": "Approved / user", + "MAIL_TYPE_APP_REJECTED_USER": "Rejected / user", + "MAIL_TYPE_APP_ERROR_VO_ADMIN": "Error / manager", + "MAIL_TYPE_USER_INVITE": "Invitation / user", + "DELETE_SUCCESS": "Email notification deleted.", + "NO_EMAILS": "No mail notifications found for this VO.", + "EDIT_SUCCESS": "Email notification was successfully edited", + "ADD_SUCCESS": "Email notification was successfully added", + "DISABLED_HINT": "You don't have permission to change sending settings." + }, + "EXT_SOURCES": { + "TITLE": "External sources", + "ADD": "Add", + "REMOVE": "Remove", + "FILTER": "Filter by ID, name or type", + "SUCCESS_REMOVED": "External source successfully removed: " + }, + "SPONSORED_MEMBERS": { + "TITLE": "Sponsored members", + "CREATE": "Create", + "CREATE_ONE": "Create sponsored member", + "GENERATE": "Generate sponsored members", + "FILTER": "Filter by name or ID", + "SPONSOR_EXISTING": "Sponsor existing member", + "NO_SPONSORS": "This organization has no members with the role SPONSOR" + } + }, + "APPLICATION": { + "TITLE": "Application", + "FILTER": "Filter", + "SELECTION_ALL": "All", + "SELECTION_WFMV": "Waiting for mail verification", + "SELECTION_SUBMITTED": "Submitted", + "SELECTION_PENDING": "Pending", + "SELECTION_APPROVED": "Approved", + "SELECTION_REJECTED": "Rejected", + "SHOW_GROUP_APPLICATIONS": "Show group applications", + "TABLE_ID": "App ID", + "TABLE_CREATED_DATE": "Created Date", + "TABLE_TYPE": "Type", + "TABLE_STATE": "State", + "TABLE_GROUPS_SELECTION": "Groups applications", + "TABLE_SUBMITTED_BY": "Submitted by", + "TABLE_LOA": "LoA", + "TABLE_GROUP_NAME": "Group name", + "TABLE_MODIFIED_BY": "Modified by", + "TABLE_VO_ID": "Vo ID", + "TABLE_GROUP_ID": "Group ID", + "TABLE_FEDINFO": "FedInfo", + "TABLE_EXTSOURCENAME": "extSourceName", + "TABLE_EXTSOURCETYPE": "extSourceType", + "TABLE_MODIFIED_AT": "Modified at", + "TABLE_USER": "User", + "TABLE_CREATED_BY": "Created by", + "TABLE_VO_NAME": "Vo name", + "NO_APPLICATION_FOUND": "No applications matching search criteria found for this VO or it's groups.", + "SHOW_ALL_DETAILS": "Show more details", + "SHOW_LESS_DETAILS": "Show less details", + "STATE": { + "APPROVED": "Approved", + "REJECTED": "Rejected", + "NEW": "Waiting for mail verification", + "VERIFIED": "Submitted" + }, + "DATE" : { + "START": "Start date", + "END": "End date" + }, + "APPLICATION_DETAIL": { + "TITLE": "Application detail", + "APPROVE": "Approve", + "REJECT": "Reject", + "SEND_NOTIFICATION": "Re-send notifications", + "DELETE": "Delete", + "TYPE": "Type", + "STATE": "State", + "SUBMITTED_BY": "Submitted by", + "EXT_SRC": "From External Source", + "LOA": "Level of Assurance", + "MAIL": "Preferred mail", + "APPLICATION_FOR_VO": "Application for Organization", + "APPLICATION_FOR_GROUP": "Application for Group", + "APPLICATION_IN_VO": "in Organization", + "APPROVED_BY": "Approved by", + "REJECTED_BY": "Rejected by", + "DATE": "Date", + "VALUE_BY_EXTERNALS": "Value provided by external source.", + "VERIFY": "Verify", + "DELETE_MESSAGE": "Application was deleted", + "APPROVE_MESSAGE": "Application was approved", + "VERIFY_MESSAGE": "Application was verified" + } + }, + "STATISTICS": { + "TITLE": "Statistics", + "MEMBERS_COUNT": "Members by status" + } + }, + "GROUP_DETAIL": { + "ENTITY": "Group", + "VO_NAME": "Organization", + "DESCRIPTION": "Description", + "SYNCHRONIZATION": "Synchronization", + "SUBGROUPS": { + "TITLE": "Subgroups", + "CREATE_GROUP": "Create subgroup", + "DELETE_GROUP": "Delete subgroup", + "NO_SUBGROUPS": "This group has no subgroups.", + "FILTER": "Filter", + "LIST_VIEW": "List view", + "TREE_VIEW": "Tree view", + "DELETE_PERMISSION_HINT": "You don't have permission to delete some of the selected subgroups." + }, + "SUBGROUP_INFO": "This group is a subgroup of ", + "STATS_BY_GROUP_STATUS": "Members by group status", + "STATS_BY_VO_STATUS": "Members by VO status", + "MEMBERS": { + "TITLE": "Members", + "ACTIONS_DISABLED": "Actions with members are disabled, because this group is filled with members from external source.", + "ADD_MEMBER": "Add", + "ADD_MEMBER_DISABLED": "You cannot add members manually into this group.", + "REMOVE_MEMBERS": "Remove", + "SEARCH_DESCRIPTION": "Search by name, login or email", + "LIST_ALL": "List all members", + "SEARCH_ALERT": "In this group are too many members and load all of them would take a long time. You can search particular member by name, login or email or list all members and wait for a while.", + "NO_MEMBERS_ALERT": "No members found.", + "INVITE_MEMBER": "Invite", + "SYNCHRONIZED": "Action is disabled on this group, group is filled with members from external source.", + "EMPTY_SEARCH": "Search field cannot be empty", + "FILTER_STATUS": "Select VO status", + "FILTER_GROUP_STATUS": "Select group status" + }, + "RESOURCES": { + "TITLE": "Resources", + "DELETE": "Remove selected", + "ADD": "Add", + "DELETE_PERMISSION_HINT": "You don't have permission to remove some of the selected resources.", + "NO_RESOURCES_WARNING": "Group has no resources assigned." + }, + "SETTINGS": { + "ATTRIBUTES": { + "TITLE": "Attributes", + "DELETE": "Remove selected", + "FILTER": "Filter by id, name, value or description", + "SAVE": "Save selected", + "CREATE": "Add", + "CANCEL": "Cancel", + "SUCCESS_DELETE": "Attributes deleted successfully", + "SUCCESS_SAVE": "Attributes saved successfully" + }, + "RESOURCE_ATTRIBUTES": { + "TITLE": "Resource attributes" + }, + "EXPIRATION": { + "SUCCESS_MESSAGE": "Settings saved.", + "ERROR_MESSAGE": "Failed to save settings." + }, + "MANAGERS": { + "TITLE": "Managers", + "ADD": "Add", + "REMOVE": "Remove", + "SELECT_MODE": "Select mode", + "SELECT_ROLE": "Select role", + "USER": "User", + "GROUP": "Group", + "NO_MANAGERS": "This role has no managers.", + "NO_GROUP_MANAGERS": "This role has no group managers." + }, + "APPLICATION_FORM": { + "TITLE": "Application form", + "MODULE_NAME": "Module name", + "APPLICATION_TYPE": "Approval style", + "AUTOMATIC": "Automatic", + "MANUAL": "Manual", + "SETTINGS_BUTTON": "Change Settings", + "ADD_BUTTON": "Add", + "COPY_GROUP_BUTTON": "Copy from VO/Group", + "PREVIEW_BUTTON": "Preview", + "DRAG_AND_DROP_INFO": "You can move with table items by dragging and dropping", + "NO_APPLICATION_FORM": "Application form doesn't exists", + "CREATE_APPLICATION_FORM": "Create empty form", + "CLEAR": "Clear form", + "CLEAR_TOOLTIP": "Removes all form items", + "CHANGE_SETTINGS_SUCCESS": "Application form settings successfully changed.", + "ALLOW_EMBEDDED": "Allowed for embedded applications" + }, + "NOTIFICATIONS": { + "TITLE": "Email notifications", + "ADD": "Add", + "REMOVE": "Remove", + "EMAIL_FOOTER": "E-mail footer", + "COPY_FROM_VO": "Copy from Vo/Group", + "NO_EMAILS": "No mail notifications found for this group.", + "ADD_SUCCESS": "Email notification was successfully added", + "DELETE_SUCCESS": "Email notification deleted.", + "NO_APPLICATION_FORM": "Application form doesn't exist", + "CREATE_APPLICATION_FORM": "Create application form" + }, + "RELATIONS": { + "TITLE": "Relations", + "DELETE": "Remove selected", + "CREATE": "Add", + "FILTER": "Filter by name, id or description", + "REVERSE_UNIONS": "Show reverse unions", + "DELETE_TOOLTIP": "You don't have permission to remove some of the selected relations." + }, + "EXT_SOURCES": { + "TITLE": "External sources", + "ADD": "Add", + "REMOVE": "Remove", + "FILTER": "Filter by ID, name or type", + "SUCCESS_REMOVED": "External source successfully removed: " + } + }, + "STATISTICS":{ + "TITLE": "Statistics", + "VO_STATUS_COUNT": "Members by organization status", + "GROUP_STATUS_COUNT": "Members by group status" + } + }, + "MEMBER_DETAIL": { + "ENTITY": "Member", + "USER_ID": "User ID", + "USER_LINK": "See user detail", + "OVERVIEW": { + "NEVER_EXPIRES": "never", + "MEMBERSHIP": "Membership", + "STATUS": "Status:", + "EXPIRATION": "Expiration:", + "PERSONAL": "Personal information", + "SPONSORED_BY": "This member is sponsored", + "SPONSORS": "Sponsors", + "RESET_PASSWORD": "Reset password", + "RESET_DISABLED": "Unsupported functionality for user's namespaces", + "SEND_REQUEST": "Send request" + }, + "GROUPS": { + "TITLE": "Member groups", + "ADD": "Add", + "REMOVE": "Remove", + "REMOVE_PERMISSION_HINT": "You don't have permission to remove some of the selected groups." + }, + "APPLICATIONS": { + "TITLE": "Application", + "SHOW_ALL_DETAILS": "Show more details", + "SHOW_LESS_DETAILS": "Show less details", + "FILTER": "Filter" + }, + "RESOURCES": { + "TITLE": "Resources", + "FILTER": "Filter", + "ADD": "Add" + }, + "SETTINGS": { + "ATTRIBUTES": { + "TITLE": "Attributes", + "DELETE": "Remove selected", + "FILTER": "Filter by id, name, value or description", + "SAVE": "Save selected", + "CREATE": "Add", + "CANCEL": "Cancel", + "SUCCESS_DELETE": "Attributes deleted successfully", + "SUCCESS_SAVE": "Attributes saved successfully" + }, + "RESOURCE_PAGE": { + "TITLE": "Resource Attributes", + "DELETE": "Remove", + "FILTER": "Filter resources by name", + "SAVE": "Save", + "CREATE": "Add", + "NO_FILTERED_ENTITY_MESSAGE": "No resources that match the filter found", + "NO_ENTITY_MESSAGE": "No assigned resources" + }, + "USER_PAGE": { + "TITLE": "Facility Attributes", + "FILTER": "Filter facilities by name", + "NO_ENTITY_MESSAGE": "You have no assigned facilities", + "NO_FILTERED_ENTITY_MESSAGE": "No facilities that match the filter found" + }, + "GROUP_PAGE": { + "TITLE": "Group attributes", + "FILTER": "Filter groups by name", + "NO_ENTITY_MESSAGE": "No assigned groups", + "NO_FILTERED_ENTITY_MESSAGE": "No groups that match the filter found" + } + } + }, + "SERVICE_DETAIL": { + "ENTITY": "Service", + "DESCRIPTION": "Description", + "REQUIRED_ATTRIBUTES": { + "TITLE": "Required attributes", + "ADD": "Add", + "REMOVE": "Remove", + "FILTER": "Filter" + }, + "DESTINATIONS": { + "TITLE": "Service destinations", + "FILTER": "Filter by id, facility or destination", + "ALLOW": "Allow", + "BLOCK": "Block", + "REMOVE": "Remove", + "ALLOW_SUCCESS": "Service was successfully allowed on destination", + "BLOCK_SUCCESS": "Service was successfully blocked on destination" + } + }, + "MENU_ITEMS": { + "VO": { + "OVERVIEW": "Overview", + "MEMBERS": "Members", + "GROUPS": "Groups", + "APPLICATIONS": "Applications", + "RESOURCES": "Resources", + "RESOURCE_PREVIEW": "Resource list", + "RESOURCE_STATES": "Resource states", + "RESOURCE_TAGS": "Resource tags", + "SETTINGS": "Advanced settings", + "ATTRIBUTES": "Attributes", + "EXPIRATION": "Membership", + "MANAGERS": "Managers", + "APPLICATION_FORM": "Application form", + "NOTIFICATIONS": "Notifications", + "EXTSOURCES": "External sources", + "SPONSORS": "Sponsors", + "SPONSORED_MEMBERS": "Sponsored members", + "STATISTICS": "Statistics" + }, + "FACILITY": { + "OVERVIEW": "Overview", + "RESOURCES": "Resources", + "ALLOWED_GROUPS": "Allowed groups", + "SETTINGS": "Advanced settings", + "ATTRIBUTES": "Attributes", + "SERVICE_CONFIG": "Services configuration", + "OWNERS": "Owners", + "MANAGERS": "Managers", + "SERVICES_DESTINATIONS": "Services destinations", + "HOSTS": "Hosts", + "BLACKLIST": "Blacklist", + "SECURITY_TEAMS": "Security teams", + "SERVICES_STATUS": "Services status", + "ALLOWED_USERS": "Allowed users" + }, + "RESOURCE": { + "OVERVIEW": "Overview", + "ASSIGNED_GROUPS": "Assigned groups", + "SETTINGS": "Advanced settings", + "ATTRIBUTES": "Attributes", + "MANAGERS": "Managers", + "ASSIGNED_SERVICES": "Assigned services", + "ASSIGNED_MEMBERS": "Assigned members" + }, + "GROUP": { + "OVERVIEW": "Overview", + "MEMBERS": "Members", + "SUBGROUPS": "Subgroups", + "RESOURCES": "Resources", + "APPLICATIONS": "Applications", + "SETTINGS": "Advanced settings", + "ATTRIBUTES": "Attributes", + "RESOURCE_ATTRIBUTES": "Resource attributes", + "MANAGERS": "Managers", + "EXPIRATION": "Membership", + "APPLICATION_FORM": "Application form", + "NOTIFICATIONS": "Notifications", + "RELATIONS": "Relations", + "EXTSOURCES": "External sources", + "STATISTICS": "Statistics" + }, + "MEMBER": { + "OVERVIEW": "Overview", + "GROUPS": "Groups", + "SETTINGS": "Advanced settings", + "ATTRIBUTES": "Attributes", + "RESOURCE_ATTRIBUTES": "Resource attributes", + "GROUP_ATTRIBUTES": "Group attributes", + "APPLICATIONS": "Applications", + "RESOURCES": "Resources" + }, + "ADMIN": { + "TITLE": "Perun admin", + "OVERVIEW": "Overview", + "ATTRIBUTES": "Attributes", + "VISUALIZER": "Visualizer", + "USERS": "Users", + "EXT_SOURCES": "External sources", + "GROUPS": "Groups", + "SETTINGS": "Advanced settings", + "ORGANIZATIONS": "Organizations", + "SERVICES": "Services", + "OWNERS": "Owners" + }, + "VISUALIZER": { + "ATTR_DEPENDENCIES": "Modules dependencies", + "USER_DESTINATION": "User-destination relationship" + }, + "USER": { + "OVERVIEW": "Overview", + "GROUPS": "Groups", + "SETTINGS": "Advanced Settings", + "ORGANIZATIONS": "Organizations", + "DETAIL": "Detail", + "ATTRIBUTES": "Attributes", + "FACILITY_ATTRIBUTES": "Facility attributes", + "TITLE": "User - ", + "ROLES": "Roles", + "GUI_CONFIG": "Gui configuration", + "SERVICE_IDENTITIES": "Service Identities", + "IDENTITIES": "Identities", + "PASSWORD_RESET": "Password reset", + "FACILITIES": "Facilities", + "RESOURCES": "Resources", + "ASSOCIATED_USERS": "Associated users", + "ENTITY": "User", + "USER_TYPE": "User type" + }, + "SERVICE": { + "OVERVIEW": "Overview", + "REQUIRED_ATTRIBUTES": "Required attributes", + "DESTINATIONS": "Destinations" + } + }, + "DIALOGS": { + "GROUP_SYNC_DETAIL": { + "TITLE": "Group synchronization detail", + "FORCE": "Force synchronization", + "FORCE_STRUCTURE": "Force subgroups synchronizations", + "FORCE_SUCCESS": "Synchronization forced", + "STRUCT_FORCE_SUCCESS": "Synchronizations for subgroups forced.", + "CANCEL": "Close", + "NORMAL_SYNC": "Basic synchronization", + "STRUCT_SYNC": "Structured synchronization", + "GROUP_NAME": "Group name: ", + "SYNCHRONIZATION": "Synchronization: ", + "LAST_SYNC_STATE": "Last synchronization state: ", + "LAST_SYNC_TIME": "Last synchronization time: " + }, + "IMPORT_ATTRIBUTE": { + "INFO": "To import an attribute, you have to paste the content, which you copied on the attribute definitions detail dialog.", + "HINT": "Paste the copied content here", + "TITLE": "Import attribute definition", + "CREATE": "Create attribute", + "CANCEL": "Cancel" + }, + "MOVE_GROUP": { + "TITLE": "Move group - ", + "INFO": "Selected group will be moved (including all its sub-groups).", + "GROUP_SELECT": "Select a new parent group", + "CANCEL": "Cancel", + "CONFIRM": "Move", + "NO_GROUP": "Move to the root", + "TO_GROUP": "Move under a group", + "ERROR": "Failed to move group", + "SUCCESS": "Group successfully moved", + "DISABLED_HINT": "You must select an existing group.", + "CANNOT_MOVE": "You don't have permission to move this group." + }, + "CREATE_GROUP": { + "TITLE": "Create group", + "TITLE_SUB_GROUP": "Create subgroup for ", + "NAME": "Name", + "DESCRIPTION": "Description", + "CANCEL": "Cancel", + "CREATE": "Create", + "SUCCESS": "New group successfully created", + "SUCCESS_SUBGROUP": "New subgroup successfully created", + "FILL_VALUE": "Please fill this value.", + "AS_SUBGROUP": "As sub-group", + "PARENT_GROUP": "Parent group", + "INVALID_PARENT_GROUP": "Selecting parent group is required", + "INVALID_DESCRIPTION": "Description must contain at least 1 and less than 128 characters" + }, + "CREATE_VO": { + "TITLE": "Create organization", + "FULL_NAME": "Full name:", + "SHORT_NAME": "Short name:", + "CANCEL": "Cancel", + "CREATE": "Create", + "SUCCESS": "New organization was successfully created", + "TOOLTIP": "Short name and full name have to be filled and valid", + "FILL_FULL_NAME": "Length of full name has to be between 1 to 128 characters", + "FILL_SHORT_NAME": "Length of short name has to be between 1 to 32 characters, allowed characters are a-z, A-Z, 0-9, ., _, -" + }, + "REMOVE_VO": { + "TITLE": "Remove organization", + "CANCEL": "Cancel", + "REMOVE": "Remove", + "FORCE": "Force", + "FORCE_WARNING": "Using force also deletes all groups, members and resources of selected organizations.", + "DESCRIPTION": "Following organizations will be removed", + "ASK": "Do you want to proceed?", + "SUCCESS": "Organization was successfully removed" + }, + "INVITE_MEMBER": { + "TITLE": "Invite member", + "DESCRIPTION_VO": "The person you are inviting will receive an email with a link to VOs application form. You can set up an email template in: (Vo) Settings -> Notifications.", + "DESCRIPTION_GROUP": "The person you are inviting will receive an email with a link to Groups application form. You can set up an email template in: (Group) Settings -> Notifications.", + "INVITE": "Invite", + "CANCEL": "Cancel", + "NAME": "Name", + "EMAIL": "Email", + "LANGUAGE": "Language", + "LANGUAGE_ENGLISH": "English", + "LANGUAGE_CZECH": "Czech", + "EMAIL_ERROR": "Fill in an correct email!", + "SUCCESS": "Invite was send to given email", + "NAME_ERROR": "Name cannot be empty" + }, + "DELETE_ATTRIBUTES": { + "TITLE": "Confirm delete action", + "DESCRIPTION": "Following attributes will be removed.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Delete", + "SUCCESS": "Selected attributes were removed" + }, + "DELETE_GROUP": { + "TITLE": "Confirm delete action", + "DESCRIPTION": "Following groups (including all sub-groups) will be deleted.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Delete", + "SUCCESS": "Selected groups were deleted" + }, + "REMOVE_MEMBERS": { + "TITLE": "Confirm removal", + "DESCRIPTION": "Following members will be removed from VO and their settings will be lost.\n\nYou can consider changing their status to \"DISABLED\", which will prevent them from accessing VO resources.", + "DESCRIPTION_GROUP": "Following members will be removed from group. They will lose access to resources provided by this group.", + "ASK": "Do you want to proceed?", + "SUCCESS": "Selected members were deleted", + "SUCCESS_GROUP": "Selected members were removed", + "REMOVE": "Delete", + "REMOVE_GROUP": "Remove" + }, + "REMOVE_RESOURCES": { + "TITLE": "Confirm removal", + "DESCRIPTION": "Following resources will be removed.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Delete", + "SUCCESS": "Selected resources were deleted" + }, + "REMOVE_MANAGERS": { + "TITLE": "Confirm removal", + "DESCRIPTION": "Following managers will be removed.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Remove", + "SUCCESS": "Selected managers were removed" + }, + "ADD_MANAGERS": { + "TITLE": "Add manager", + "DESCRIPTION": "Search user by name, login or email", + "SEARCH": "Search", + "CANCEL": "Cancel", + "CREATE": "Add", + "SUCCESS": "Selected managers were added", + "COUNT": "Count", + "NO_USERS_FOUND": "No users found", + "EMPTY_SEARCH_MESSAGE": "Search field cannot be empty" + }, + "ADD_MEMBERS": { + "TITLE": "Add member", + "DESCRIPTION": "Search user by name, login or email", + "SEARCH": "Search", + "CANCEL": "Cancel", + "CREATE": "Add", + "INVITE": "Invite", + "SUCCESS": "Selected members were added", + "SUCCESS_INVITE": "Invite was send to given user", + "VALIDATION_SUCCESS": "Member validation was successful", + "NO_USERS_FOUND": "No users found", + "ADD_MEMBER_PERMISSION_TOOLTIP": "You don't have permission to add member", + "EMPTY_SEARCH_MESSAGE": "Search field cannot be empty" + }, + "ADD_GROUPS": { + "TITLE": "Add group", + "SEARCH": "Search", + "CANCEL": "Cancel", + "CREATE": "Add", + "SUCCESS": "Selected groups were added", + "COUNT": "Count", + "NO_GROUPS_FOUND": "No groups found", + "SELECT_VO": "Select organization", + "FILTER_GROUPS": "Filter groups by id, name or description" + }, + "REMOVE_GROUPS": { + "TITLE": "Confirm removal", + "DESCRIPTION": "Following groups will be removed.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Remove", + "SUCCESS": "Selected groups were removed" + }, + "RE_SEND_NOTIFICATION": { + "TITLE": "Re-send notification", + "SEND": "Send", + "CANCEL": "Cancel", + "SELECT": "Select notification", + "REASON": "Reason", + "SUCCESS": "Notification was sent", + "NOTIFICATION_TYPE": { + "APP_CREATED_USER": "Created / user", + "APP_CREATED_VO_ADMIN": "Created / manager", + "MAIL_VALIDATION": "Mail validation / user", + "APP_APPROVED_USER": "Approved / user", + "APP_REJECTED_USER": "Rejected / user", + "APP_ERROR_VO_ADMIN": "Error / manager" + } + }, + "EDIT_ATTRIBUTES": { + "TITLE": "Confirm edit action", + "DESCRIPTION": "Following attributes will be edited.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "SAVE": "Save", + "SUCCESS": "Selected attributes were edited" + }, + "REJECT_APPLICATION": { + "TITLE": "Specify reason", + "TEXT": "Please specify reason of rejection to let user know why was application rejected.", + "SUBMIT": "Reject", + "CANCEL": "Cancel", + "SUCCESS": "Application was rejected" + }, + "UPDATE_APPLICATION_FORM": { + "TITLE": "Change application form settings", + "MODULE_NAME": "Module name", + "INITIAL": "Initial", + "EXTENSION": "Extension", + "EMBEDDED": "Embedded", + "MANUAL": "Manual", + "AUTOMATIC": "Automatic", + "SUBMIT_BUTTON": "Submit", + "CANCEL_BUTTON": "Cancel" + }, + "DELETE_APPLICATION_FORM_ITEM": { + "TITLE": "Delete confirm", + "INFO_1": "Deleting of form items is NOT RECOMMENDED!", + "INFO_2": "You will loose access to data users submitted in older applications within this form item!", + "INFO_3": "Do you want to continue?", + "CANCEL_BUTTON": "Cancel", + "SUBMIT_BUTTON": "Delete" + }, + "APPLICATION_FORM_COPY_ITEMS": { + "TITLE": "Copy form items from VO / group", + "SOURCE_VO": "Source VO", + "SOURCE_GROUP": "Source group", + "CANCEL_BUTTON": "Cancel", + "SUBMIT_BUTTON": "Submit", + "NO_GROUP_SELECTED": "Not selected", + "DESCRIPTION": "All form items from selected Group or VO will be added to yours.", + "ERROR_INVALID_VO": "Please choose Vo from options", + "ERROR_NO_VO": "Please choose Vo", + "ERROR_INVALID_GROUP": "Please choose group from options", + "ERROR_NO_GROUP": "Please choose group", + "SUCCESS": "Form items copied", + "PRIVILEGE": "You cannot copy application form for this combination of organization and group", + "NO_FORM": "Selected entity has no form" + }, + "APPLICATION_FORM_ADD_ITEM": { + "TITLE": "Add form item", + "CREATE": "Create", + "CANCEL": "Cancel", + "SHORT_NAME": "Short Name", + "INPUT_WIDGET": "Input widget", + "INSERT_AFTER": "Insert after", + "INSERT_TO_BEGINNING": "- insert to the beginning -", + "NO_SHORTNAME_ERROR": "Please fill the shortname", + "FILL_NAME": "Length of name has to be between 1 to 128 characters" + }, + "APPLICATION_FORM_EDIT_ITEM": { + "TITLE": "Edit form item", + "SHORT_NAME": "Short name", + "SHORT_NAME_DESCRIPTION": "Internal item identification (used as fallback when you forgot to set \"Label\" for some language).", + "CANCEL_BUTTON": "Cancel", + "SUBMIT_BUTTON": "Submit", + "BASIC_SETTINGS": "Basic settings", + "LANGUAGE_CS": "Language: cz", + "LANGUAGE_EN": "Language: en", + "INPUT_WIDGET": "Input widget", + "INPUT_WIDGET_DESCRIPTION": "Specify what input widget is used for this item.", + "DISPLAY_ON_APPLICATION": "Display on application", + "INITIAL": "Initial", + "EXTENSION": "Extension", + "DISPLAY_ON_APPLICATION_DESCRIPTION": "Define on which application types is this item displayed.", + "CONTENT": "Content", + "CONTENT_DESCRIPTION": "HTML formatted content of form item. It spans through all columns to full form width.", + "LABEL": "Label", + "LABEL_DESCRIPTION": "Label displayed to users to identify item on application form. If empty, \"Short name\" from basic settings is used as fallback.", + "LABEL_BUTTON_DESCRIPTION": "Label displayed on submit button.", + "HELP": "Help", + "HELP_DESCRIPTION": "Help text displayed to user along with input widget.", + "ERROR": "Error", + "ERROR_DESCRIPTION": "Error message displayed to user when enters wrong value.", + "REGEX": "Regular expression", + "REGEX_DESCRIPTION": "Regular expression used for item value validation (before submitting by user).", + "SOURCE_ATTRIBUTE": "Source attribute", + "SOURCE_ATTRIBUTE_DESCRIPTION": "Select attribute, which will be used to pre-fill form value. You can select also VO attributes.", + "DESTINATION_ATTRIBUTE": "Destination attribute", + "DESTINATION_ATTRIBUTE_DESCRIPTION": "Select attribute, where will be submitted value stored after accepting user`s application.", + "FEDERATION_ATTRIBUTE": "Federation attribute", + "FEDERATION_ATTRIBUTE_DESCRIPTION": "Select federation attribute to get pre-filed value from.", + "REQUIRED": "Required", + "REQUIRED_DESCRIPTION": "If checked, user can`t submit empty value (doesn't apply to non-editable fields).", + "NO_SELECTED_ITEM": "No item selected (empty value)", + "CUSTOM_VALUE": " -- custom value -- ", + "OPTIONS": "Options", + "OPTIONS_DESCRIPTION": "Define possible options for selection in SELECTIONBOX, COMBOBOX, CHECKBOX, RADIO widget. Empty options are not used.", + "ADD_OPTION": "Add option", + "VALUE": "Value", + "SORT_BY_LABEL_AZ": "Sort by label(A-Z)", + "SORT_BY_LABEL_ZA": "Sort by label(Z-A)", + "UPDATABLE": "Updatable", + "UPDATABLE_DESCRIPTION": "If set, the user can edit this item after submission.", + "HIDDEN": "Hidden", + "HIDDEN_DESCRIPTION": "When the item should be hidden during the submission.", + "HIDDEN_DEPENDENCY": "Hidden dependency", + "HIDDEN_DEPENDENCY_DESCRIPTION": "Other form item, which is used to decide, if this one should be hidden.", + "DISABLED": "Disabled", + "DISABLED_DESCRIPTION": "When the item should be disabled during the submission.", + "DISABLED_DEPENDENCY": "Disabled dependency", + "DISABLED_DEPENDENCY_DESCRIPTION": "Other form item, which is used to decide, if this one should be disabled." + }, + "APPLICATION_FORM_DELETE_MAIL": { + "TITLE": "Confirm delete action", + "DESCRIPTION": "Following mail definitions will be removed and users won't receive them anymore.", + "CONFIRMATION": "Do you want to proceed?", + "SUBMIT": "Delete", + "CANCEL": "Cancel" + }, + "CREATE_ATTRIBUTE": { + "SET_NEW": "Set new attributes", + "SAVE": "Save selected", + "CANCEL": "Cancel", + "SUCCESS_SAVE": "Attributes saved successfully", + "ERROR_EMPTY_VALUE": "You can't save attribute with empty value" + }, + "CREATE_RESOURCE_TAG": { + "TITLE": "Create resource tag", + "NAME": "Tag name", + "CREATE": "Create", + "CANCEL": "Cancel", + "EMPTY_NAME": "Please fill name" + }, + "DELETE_RESOURCE_TAG": { + "TITLE": "Confirm delete action", + "DESCRIPTION": "Following tags will be deleted and won't be used to tag VO resources.", + "ASK": "Do you want to proceed?", + "SUBMIT": "Delete", + "CANCEL": "Cancel" + }, + "NOTIFICATIONS_EDIT_FOOTER": { + "TITLE": "Edit mail footer", + "DESCRIPTION": "This text will be added as footer for all email notifications (replacing {mailFooter} tag in mail definition).", + "LABEL": "Footer text", + "SUBMIT_BUTTON": "Save", + "CANCEL_BUTTON": "Cancel", + "SUCCESS": "Email footer was successfully edited.", + "HINT": "You don't have permission to edit email footer." + }, + "NOTIFICATIONS_ADD_EDIT_MAIL": { + "TITLE_CREATE": "Add email notification", + "TITLE_EDIT": "Edit notification", + "CANCEL_BUTTON": "Cancel", + "CREATE_BUTTON": "Create", + "SAVE_BUTTON": "Save", + "EDIT_HINT": "You don't have permission to edit notifications.", + "BASIC_SETTINGS": "Basic settings", + "EMAIL_TYPE": "Email type", + "EMAIL_TYPE_DESCRIPTION_CREATE": "Selected type of notification (action which trigger sending and who is notified).", + "EMAIL_TYPE_DESCRIPTION_EDIT": "Type of notification (action which trigger sending and who is notified).", + "APPLICATION_TYPE": "Application type", + "INITIAL": "Initial", + "EXTENSION": "Extension", + "APPLICATION_TYPE_DESCRIPTION_CREATE": "Select which application type will trigger sending.", + "APPLICATION_TYPE_DESCRIPTION_EDIT": "Application type which will trigger sending.", + "SENDING_ENABLED": "Sending enabled", + "SENDING_ENABLED_DESCRIPTION": "If checked, notification will be sent. Un-check it to temporary disable sending.", + "LANG_EN": "Language: en", + "LANG_CS": "Language: cz", + "AVAILABLE_TAGS": "Available tags", + "SUBJECT": "Subject", + "TEXT": "Text", + "SHOW_TAGS": "Show tags", + "HIDE_TAGS": "Hide tags", + "TAGS_DESCRIPTION": "Following tags can be used in mail's subject and text and are replaced by actual data on sending. Just choose place where you want tag and click on tag button. When no data for tag is found, it's replaced by whitespace.", + "APPLICATION_RELATED_SECTION": "Application related", + "USER_RELATED_SECTION": "User related", + "VALIDATION_LINKS_USERS_SECTION": "Validation links for users", + "APPLICATION_LINKS_USERS_SECTION": "Application GUI links for users", + "APPLICATION_LINKS_ADMINISTRATOR_SECTION": "Application GUI links for administrators", + "PERUN_LINKS_ADMINISTRATOR_SECTION": "Perun GUI links for administrators", + "USER_INVITATIONS_SECTION": "User invitations", + "APPID_DESCRIPTION": "application ID", + "ACTOR_DESCRIPTION": "user's login used when submitting application", + "EXTSOURCE_DESCRIPTION": "user's identity provider when submitting application", + "VONAME_DESCRIPTION": "name of VO of application form", + "GROUPNAME_DESCRIPTION": "name of group, if application form is for group membership", + "MAILFOOTER_DESCRIPTION": "common mail footer defined by VO", + "ERRORS_DESCRIPTION": "errors description, what happened while processing new application. Useful for VO administrators", + "CUSTOMMESSAGE_DESCRIPTION": "optional message passed by administrators when rejecting an application", + "FIRSTNAME_DESCRIPTION": "users first name taken from application form or Perun", + "LASTNAME_DESCRIPTION": "users last name taken from application form or Perun", + "DISPLAYNAME_DESCRIPTION": "users display name taken from application form or Perun", + "MAIL_DESCRIPTION": "users preferred mail from application form or Perun", + "PHONE_DESCRIPTION": "users phone from application form or Perun", + "LOGINNAMESPACE_DESCRIPTION": "user's login in selected namespace, taken from registration form or Perun. You MUST specify the namespace, e.g. {login-einfra} will print user's login in einfra namespace.", + "MEMBERSHIPEXPIRATION_DESCRIPTION": "membership expiration date decided after membership creation or extension", + "VALIDATION_LINKS_DESCRIPTION": "Works only for \"Mail validation / user \" mail type! Used to verify email address provided by users => verify application.", + "VALIDATIONLINK_DESCRIPTION": "link for email address verification. Please make sure you set \"Registrar URL\" setting of your VO/group. If you don't specify authorization in \"Registrar URL\", you can use following options:", + "VALIDATIONKRB_DESCRIPTION": "link for Kerberos authentication", + "VALIDATIONFED_DESCRIPTION": "link for Shibboleth IdP (federation) authentication", + "VALIDATIONCERT_DESCRIPTION": "link for personal certificate authentication", + "VALIDATIONNON_DESCRIPTION": "link without any authentication", + "REDIRECTURL_DESCRIPTION": "contains the URL parameter which was present during the application submission. If the application was initial, contains the value of the 'targetnew' URL parameter. If the application was extensional, contains the value of the 'targetexisting' parameter.", + "APPLICATION_LINKS_DESCRIPTION": "Used to navigate users to the list of theirs applications.", + "APPGUIURL_DESCRIPTION": "link to overview of submitted registrations for users. Please make sure you set \"Registrar URL\" setting of your VO/group. If you don't specify authorization in \"Registrar URL\", you can use following options:", + "APPGUIURLKRB_DESCRIPTION": "link for Kerberos authentication", + "APPGUIURLFED_DESCRIPTION": "link for Shibboleth IdP (federation) authentication", + "APPGUIURLCERT_DESCRIPTION": "link for personal certificate authentication", + "APPGUIURLNON_DESCRIPTION": "link without any authentication", + "APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION": "Used to navigate administrators to the registration detail, where they can check and approve or reject the application.", + "APPDETAILURL_DESCRIPTION": "link to registration detail in administrative GUI. Please make sure you set \"Registrar URL\" setting of your VO/group. If you don't specify authorization in \"Registrar URL\", you can use following options:", + "APPDETAILURLKRB_DESCRIPTION": "link for Kerberos authentication", + "APPDETAILURLFED_DESCRIPTION": "link for Shibboleth IdP (federation) authentication", + "APPDETAILURLCERT_DESCRIPTION": "link for personal certificate authentication", + "PERUN_LINKS_ADMINISTRATOR_DESCRIPTION": "Used to navigate administrators to the administrative GUI of Perun. Can be used for users to locate user detail too.", + "PERUNGUIURL_DESCRIPTION": "link to administrative GUI. Please make sure you set \"Registrar URL\" setting of your VO/group. If you don't specify authorization in \"Registrar URL\", you can use following options:", + "PERUNGUIURLKRB_DESCRIPTION": "link for Kerberos authentication", + "PERUNGUIURLFED_DESCRIPTION": "link for Shibboleth IdP (federation) authentication", + "PERUNGUIURLCERT_DESCRIPTION": "link for personal certificate authentication", + "USER_INVITATIONS_DESCRIPTION": "Following tags can be used on user invitation template", + "USER_INVITATIONS_VONAME_DESCRIPTION": "name of VO to invite user into", + "USER_INVITATIONS_GROUPNAME_DESCRIPTION": "name of Group to invite user into", + "USER_INVITATIONS_DISPLAYNAME_DESCRIPTION": "invited user's name", + "USER_INVITATIONS_MAILFOOTER_DESCRIPTION": "common mail footer defined by VO", + "INVITATIONLINK_DESCRIPTION": "link to registration form. Please make sure you set \"Registrar URL\" setting of your VO/group. If you don't specify authorization in \"Registrar URL\", you can use following options:", + "INVITATIONLINKKRB_DESCRIPTION": "link for Kerberos authentication", + "INVITATIONLINKFED_DESCRIPTION": "link for Shibboleth IdP (federation) authentication", + "INVITATIONLINKCERT_DESCRIPTION": "link for personal certificate authentication", + "INVITATIONLINKNON_DESCRIPTION": "link without any authentication", + "INVALID_NOTIFICATION": "Notification with selected type and selected application type already exist." + }, + "NOTIFICATIONS_COPY_MAILS": { + "TITLE": "Copy mail notifications from Vo/group", + "SOURCE_VO": "Source VO", + "SOURCE_GROUP": "Source group", + "CANCEL_BUTTON": "Cancel", + "SUBMIT_BUTTON": "Submit", + "NO_GROUP_SELECTED": "Not selected", + "DESCRIPTION": "All mail definitions will be added to yours.", + "ERROR_INVALID_VO": "Please choose Vo from options", + "ERROR_NO_VO": "Please choose Vo", + "ERROR_INVALID_GROUP": "Please choose Group from options", + "ERROR_NO_GROUP": "Please choose Group" + }, + "IMPORT_ATTRIBUTE_DEFINITION": { + "SUCCESS": "Attribute imported." + }, + "CREATE_ATTRIBUTE_DEFINITION": { + "TITLE": "Create Attribute Definition", + "FRIENDLY_NAME": "Friendly name", + "DISPLAY_NAME": "Display name", + "DESCRIPTION": "Description", + "ENTITY": "Entity", + "DEFINITION": "Definition", + "VALUE_TYPE": "Value Type", + "UNIQUE": "Unique", + "READ": "Read", + "WRITE": "Write", + "SELF": "Self", + "SELF_PUBLIC": "Self Public", + "SELF_VO": "Self Vo", + "VO": "Vo", + "GROUP": "Group", + "FACILITY": "Facility", + "CANCEL": "Cancel", + "CONFIRM": "Create", + "SUCCESS": "Attribute Definition successfully created", + "ERROR_FIELD_EMPTY": "This field can't be empty", + "ERROR_SELECT_SOMETHING": "You have to select something", + "ERROR_FILL_REQUIRED": "Fill all required fields", + "TOOLTIP_UNIQUE": "Entityless Attributes or Attributes with definitions 'virt' CAN'T be UNIQUE", + "TOOLTIP_CONFIRM": "Fill every required field" + }, + "DELETE_ATTRIBUTE_DEFINITION": { + "TITLE": "Confirm delete action", + "TEXT_LINE1": "Following attribute definitions will be removed.", + "TEXT_LINE2": "Do you want to proceed?", + "CANCEL": "Cancel", + "CONFIRM": "Delete", + "WARNING": "This action will also delete all assigned values", + "SUCCESS": "Selected attributes has been deleted successfully" + }, + "NOTIFICATION_LIST": { + "TITLE": "Recent notifications", + "CANCEL": "Cancel", + "NO_NOTIFICATIONS_ALERT": "There are no recent notifications", + "CLEAR": "Clear notifications" + }, + "CREATE_RELATION": { + "TITLE": "Create relation", + "CANCEL": "Cancel", + "CREATE": "Create", + "SUCCESS": "Relation successfully created" + }, + "REMOVE_RELATION": { + "TITLE": "Confirm removal", + "DESCRIPTION": "Following relations will be removed.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Remove", + "SUCCESS": "Selected relations were removed" + }, + "CHANGE_STATUS": { + "TITLE": "Change status", + "CANCEL": "Cancel", + "CURRENT_STATUS": "Current status", + "NEW_STATUS": "New status", + "CHANGE_VALID": "Changing status to VALID will trigger automatic configuration for provided resources. \nIf successful, member will have access on provided resources. \nIf not, see displayed error message and do manual configuration on 'settings' tab on members detail.", + "INVALID_DESCRIPTION": "Member have configuration error and DON'T have access on provided resources. You can check what is wrong by changing member's status to VALID. If possible, procedure will configure all necessary settings by itself.", + "SUCCESS": "Member status was changed" + }, + "REMOVE_GROUP_FROM_RESOURCE": { + "TITLE": "Confirm delete action", + "DESCRIPTION": "Following groups will be removed from resource.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Delete", + "SUCCESS": "Selected groups were removed from resource" + }, + "ASSIGN_GROUP_TO_RESOURCE": { + "TITLE": "Assign group", + "FILTER_DESCRIPTION": "Find group", + "ADD_BUTTON": "Add", + "CANCEL_BUTTON": "Cancel", + "SUCCESS_MESSAGE": "Selected groups were assigned to resource", + "CONFIGURE_GROUPS": "Configure group(s) before assign", + "ADD_TOOLTIP": "You don't have privileges to perform this action for one or more groups." + }, + "ASSIGN_SERVICE_TO_RESOURCE": { + "TITLE": "Assign service", + "FILTER_DESCRIPTION": "Find service", + "ADD_BUTTON": "Add", + "CANCEL_BUTTON": "Cancel", + "SUCCESS_MESSAGE": "Selected services were assigned to resource" + }, + "REMOVE_SERVICE_FROM_RESOURCE": { + "TITLE": "Confirm removal", + "DESCRIPTION": "Following services will be removed from resource.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Delete", + "SUCCESS": "Selected services were removed from resource" + }, + "CREATE_RESOURCE": { + "NAME": "Name", + "DESCRIPTION": "Description", + "CANCEL": "Cancel", + "CREATE": "Create", + "SUCCESS": "Resource successfully created", + "INCORRECT_NAME": "Name cannot be empty and can contain only characters a-z, A-Z, numbers, spaces, dots, '_' and '-'", + "FILL_DESCRIPTION": "Description cannot be empty" + }, + "ADD_EXT_SOURCES": { + "TITLE": "Add external sources", + "FILTER": "Filter by ID, name or type", + "CANCEL": "Cancel", + "ADD": "Add", + "SUCCESS_ADDED": "External sources were successfully added" + }, + "REMOVE_EXT_SOURCES": { + "TITLE": "Remove external sources", + "DESCRIPTION": "Following external sources will be removed.", + "ASK": "Are you sure you want to proceed?", + "CANCEL": "Cancel", + "REMOVE": "Remove", + "SUCCESS_REMOVED": "External sources were successfully removed" + }, + "EDIT_ATTRIBUTE_DEFINITION": { + "COPY_FOR_IMPORT": "Copy for import", + "COPIED": "Data copied to clipboard.", + "COPY": "Copy failed.", + "SUCCESS": "Attribute definition successfully edited", + "DISPLAY_NAME": "Display name", + "ERROR_FIELD_EMPTY": "This field can't be empty", + "DESCRIPTION": "Description", + "UNIQUE": "Unique", + "TOOLTIP_UNIQUE": "Entityless Attributes or Attributes with definitions 'virt' CAN'T be UNIQUE", + "READ": "Read", + "WRITE": "Write", + "SELF": "Self", + "SELF_PUBLIC": "Self Public", + "SELF_VO": "Self Vo", + "VO": "Vo", + "GROUP": "Group", + "FACILITY": "Facility", + "CANCEL": "Cancel", + "CONFIRM": "Submit", + "TOOLTIP_CONFIRM": "Fill every required field", + "SHOW_KEYS": "Show keys", + "SERVICES": "Dependent services:" + }, + "REMOVE_DESTINATIONS": { + "TITLE": "Remove destination from service", + "WARNING": "Removing destination will stop propagation of service's configuration for this destination/service.", + "DESCRIPTION": "Following destinations will be removed.", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "CONFIRM": "Remove", + "SUCCESS": "Destinations were successfully removed from service." + }, + "ADD_SERVICE_DESTINATION": { + "TITLE": "Add destination", + "DESCRIPTION": "Please add destinations for service configuration delivery. New service configuration can be performed directly on facility (dest. type HOST) or sent to URL or by an email.", + "SERVICE": "Service", + "SELECTION_ALL": "All", + "NO_SERVICE": "No service available", + "CHOOSE_SERVICE": "You must choose service", + "IS_SERVICES_ONLY_ON_FACILITY": "Show only services on facility", + "TYPE": "Type", + "HOST": "Host", + "REQUIRED_FIELD": "Destination value can't be empty.", + "INVALID_DESTINATION": "The specified value for the selected destination type is invalid.", + "USE_FACILITY_HOST": "Use names of all facility's hosts", + "PROPAGATION": "Propagation", + "PROPAGATION_TYPE_PARALLEL": "PARALLEL - Data for all destinations and one service are pushed in parallel.", + "PROPAGATION_TYPE_DUMMY": "DUMMY - Service provisioning data is generated by Perun, but not pushed to destination. Destinations can pull data by themselves.", + "CANCEL": "Cancel", + "ADD": "Add" + }, + "ADD_GROUP_RESOURCES": { + "TITLE": "Add resources", + "FILTER": "Filter by ID, name or description", + "CANCEL": "Cancel", + "ADD": "Add", + "ADD_PERMISSION_TOOLTIP": "You don't have permission to assign some of the selected resources.", + "SUCCESS": "Resources successfully added" + }, + "ADD_GROUP_TO_REGISTRATION": { + "TITLE": "Assing group to registration", + "FILTER_DESCRIPTION": "Filter", + "CANCEL_BUTTON": "Cancel", + "ADD_BUTTON": "Assign groups" + }, + "ADD_USER_EXT_SOURCE": { + "TITLE": "Add user ext source", + "ADD": "Add", + "CANCEL": "Cancel", + "SUCCESS": "User external source has been added", + "LOGIN": "Login", + "EXT_SOURCE": "External source", + "EMPTY_LOGIN": "Login cannot be empty", + "EMPTY_EXT_SOURCE": "External source cannot be empty" + }, + "ADD_HOST": { + "TITLE": "Add hosts", + "ADD": "Add", + "CANCEL": "Cancel", + "SUBTITLE": "Hostnames", + "HINT": "Enter one host per line. You can use \"[x-y]\" in hostname to generate hosts with numbers from x to y. This replacer can be specified multiple times in one hostname to generate MxN combinations.", + "WARNING": "Please enter at least one hostname to add it to facility.", + "SUCCESS": "Added hosts.", + "EMPTY_MESSAGE": "Hostnames cannot be empty", + "INVALID_HOST": "Invalid host name: " + }, + "REMOVE_HOST": { + "TITLE": "Confirm removal", + "WARNING": "Removing host(s) won't stop services propagation. For this please remove proper 'Services destinations'.", + "DESCRIPTION": "Following hosts will be removed from facility.", + "CONFIRM": "Delete", + "CANCEL": "Cancel", + "ASK": "Do you want to proceed?", + "SUCCESS": "Removed hosts." + }, + "ADD_OWNERS": { + "TITLE": "Add facility owners", + "FILTER": "Filter by id, name, contact or type", + "CANCEL": "Cancel", + "ADD": "Add", + "SUCCESS": "Owners were successfully added" + }, + "REMOVE_OWNERS": { + "TITLE": "Remove facility owners", + "CANCEL": "Cancel", + "DELETE": "Delete", + "DESCRIPTION": "Following facility owners will be removed.", + "ASK": "Are you sure you want to proceed?", + "SUCCESS": "Owners were successfully removed" + }, + "CREATE_EDIT_SERVICE": { + "CREATE_TITLE": "Create service", + "EDIT_TITLE": "Edit service", + "CREATE": "Create", + "EDIT": "Edit", + "CANCEL": "Cancel", + "NAME": "Name:", + "DESCRIPTION": "Description:", + "STATUS": "Status:", + "DELAY": "Delay:", + "RECURRENCE": "Recurrence:", + "PATH": "Script path:", + "STATUS_HINT": "Enabled/Disabled", + "REQUIRE_NAME": "Name cannot be empty", + "REQUIRE_PATH": "Script path cannot be empty", + "INVALID_DELAY": "Delay must be a number", + "INVALID_RECURRENCE": "Recurrence must be a number", + "CREATE_SUCCESS": "Created service", + "EDIT_SUCCESS": "Service was edited" + }, + "DELETE_SERVICE": { + "TITLE": "Delete service", + "DESCRIPTION": "Following items will be removed", + "ASK": "Do you want to proceed?", + "CANCEL": "Cancel", + "DELETE": "Delete", + "SUCCESS": "Service deleted" + }, + "ADD_MEMBER_TO_RESOURCE": { + "TITLE": "Add member to resource", + "CONTINUE": "Continue", + "CANCEL": "Cancel", + "BACK": "Back", + "SUBMIT": "Submit", + "FILTER": "Filter by facility:", + "SELECTED": "Selected resource:", + "DESCRIPTION": "Description:", + "SERVICES": "Services on resource:", + "SUCCESS": "Member was added to resource", + "NO_GROUPS": "Resource has no groups assigned", + "ADD_GROUP": "Add group", + "SELECT_RESOURCE": "Select resource" + }, + "CREATE_FACILITY": { + "TITLE": "Create facility", + "NAME": "Name", + "DESCRIPTION": "Description", + "AS_COPY": "As copy of", + "CREATE": "Create", + "CANCEL": "Cancel", + "SUCCESS": "Created facility.", + "REQUIRE_NAME": "Facility name can't be empty.", + "NO_COPY": "--- No copy ---" + }, + "DELETE_FACILITY": { + "TITLE": "Delete facility", + "DESCRIPTION": "Following facility will be removed.", + "ASK": "Are you sure you want to proceed?", + "CANCEL": "Cancel", + "CONFIRM": "Delete", + "SUCCESS": "Facility deleted." + }, + "ADD_MEMBER_GROUP": { + "TITLE": "Add groups", + "ADD": "Add", + "CANCEL": "Cancel", + "SUCCESS": "Groups added", + "FILTER": "Filter" + }, + "REMOVE_MEMBER_GROUP": { + "TITLE": "Remove groups", + "CANCEL": "Cancel", + "REMOVE": "Remove", + "DESCRIPTION": "Following groups will be removed.", + "ASK": "Do you want to proceed?", + "SUCCESS": "Groups were removed" + }, + "ADD_REQUIRED_ATTRIBUTES": { + "TITLE": "Add required attributes", + "ADD": "Add", + "CANCEL": "Cancel", + "SUCCESS": "Required attributes were added.", + "FILTER": "Filter" + }, + "REMOVE_REQUIRED_ATTRIBUTES": { + "TITLE": "Remove required attributes", + "DESCRIPTION": "Following items will be removed:", + "ASK": "Do you want to proceed?", + "REMOVE": "Remove", + "CANCEL": "Cancel", + "SUCCESS": "Required attributes were removed." + }, + "CHANGE_EXPIRATION": { + "TITLE_VO": "Change member expiration", + "TITLE_GROUP": "Change member's group expiration", + "TITLE_SPONSORSHIP": "Change sponsorship expiration", + "CURRENT_EXPIRATION": "Current expiration: ", + "NEW_EXPIRATION": "New expiration: ", + "DATE_LABEL": "Expire to a date", + "EXPIRATION_NEVER": "Never expire", + "WRONG_FORMAT": "The date has to be in format yyyy-mm-dd", + "CANCEL": "Cancel", + "SAVE": "Save", + "SUCCESS": "Expiration successfully changed", + "SAVE_HINT": "You don't have permission to change expiration date." + }, + "EDIT_GROUP": { + "SUCCESS": "Changes were successfully saved", + "TITLE": "Edit group", + "NAME": "Name", + "DESCRIPTION": "Description", + "SAVE": "Save", + "CANCEL": "Cancel" + }, + "CONNECT_IDENTITY": { + "TITLE": "Connect identity", + "CONNECT": "Connect", + "CANCEL": "Cancel", + "SEARCH": "Search", + "EMPTY_SEARCH_MESSAGE": "Search field cannot be empty", + "SEARCH_HINT": "Type in user`s First name, Last name (or both) or Login or Email.", + "NO_IDENTITIES": "No user matching search criteria found.", + "SUCCESS": "Identity was connected." + }, + "DISCONNECT_IDENTITY": { + "TITLE": "Disconnect identity", + "REMOVE": "Disconnect", + "CANCEL": "Cancel", + "DESCRIPTION": "Following identities will be disconnected from user.", + "ASK": "Do you want to proceed?", + "SUCCESS": "Identity was disconnected." + }, + "EDIT_FACILITY_RESOURCE_GROUP_VO": { + "EDIT_FACILITY": "Edit facility", + "EDIT_RESOURCE": "Edit resource", + "EDIT_VO": "Edit organization", + "EDIT_GROUP": "Edit group", + "SHORT_NAME": "Short name", + "NAME": "Name", + "DESCRIPTION": "Description", + "CANCEL_BUTTON": "Cancel", + "SUBMIT_BUTTON": "Submit", + "RESOURCE_SUCCESS": "Resource successfully updated", + "FACILITY_SUCCESS": "Facility successfully updated", + "GROUP_SUCCESS": "Group successfully updated", + "VO_SUCCESS": "Vo successfully updated", + "FILL_NAME": "Length of name has to be between 1 to 128 characters", + "FILL_DESCRIPTION": "This field has to contain between 1 to 128 characters" + }, + "EDIT_USER": { + "DIALOG_TITLE": "Edit user", + "TITLE_BEFORE": "Title before name", + "TITLE_AFTER": "Title after name", + "FIRST_NAME": "First name", + "MIDDLE_NAME": "Middle name", + "LAST_NAME": "Last name", + "SAVE": "Save", + "CANCEL": "Cancel", + "SUCCESS": "User successfully updated", + "ERROR_LAST_NAME": "Last name cannot be empty or longer than 128 characters", + "ERROR_FIRST_NAME": "First name cannot be empty or longer than 128 characters", + "ERROR_LENGTH": "Length of field has to be less than 128 characters" + }, + "DELETE_TASK_RESULT": { + "TITLE": "Remove task results", + "CANCEL": "Cancel", + "REMOVE": "Remove", + "DESCRIPTION": "Following task results will be removed.", + "ASK": "Do you want to proceed?", + "SUCCESS": "Task results were successfully removed", + "RESULT_ID": "Result id", + "DESTINATION": "Destination", + "TIME": "Time" + }, + "REMOVE_SERVICE_FROM_FACILITY": { + "TITLE": "Remove service from facility", + "CHECKBOXES_DESCRIPTION": "You can also remove:", + "CHECKBOXES_DISABLED": "Enabled only for all resources", + "CHECKBOX_TASK_AND_TASK_RESULTS" : "Task and task results", + "CHECKBOX_TASK_RESULTS" : "Task results", + "CHECKBOX_DESTINATION" : "Destination", + "DESCRIPTION": "Following resources will be affected.", + "ASK": "Do you want to proceed?", + "SUCCESS": "Service was successfully removed", + "CANCEL": "Cancel", + "REMOVE": "Remove" + }, + "DELETE_TASK": { + "TITLE": "This service is not assigned to any resource", + "DESCRIPTION": "You can delete task and task results.", + "SUCCESS": "Service was successfully deleted", + "CANCEL": "Cancel", + "DELETE": "Delete" + }, + "EDIT_APPLICATION_FORM_ITEM_DATA": { + "TITLE": "Edit item: ", + "INVALID_EMAIL": "Email is invalid", + "EMPTY_INPUT": "This field is required", + "CANCEL": "Cancel", + "SUBMIT": "Submit", + "SUCCESS": "Application form item data edited successfully" + }, + "CREATE_SPONSORED_MEMBER": { + "TITLE": "Create sponsored member", + "FIRST_NAME": "First name", + "LAST_NAME": "Last name", + "TITLE_BEFORE": "Title before", + "TITLE_AFTER": "Title after", + "PASSWORD": "Password", + "NAMESPACE": "Namespace", + "SPONSOR_ID": "Sponsor ID", + "CANCEL": "Cancel", + "OK": "Ok", + "CREATE": "Create", + "LOGIN": "Login", + "EMAIL": "Email", + "SUCCESS": "Sponsored user created", + "EMAIL_ERROR": "Email is not valid", + "LENGTH_ERROR": "Empty value is not allowed", + "BACKEND_ERROR": "Entered password doesn't meet the selected namespace's criteria", + "BACKEND_ERROR_LONG": "Entered password doesn't match criteria for strong password and it can't be accepted. Please, make sure that the entered password is at least 8 characters long, contains at least one of: A-z, 0-9, and special characters.", + "SHOW_PASSWORD": "Show password", + "NAMESPACE_ERROR": "Selection of namespace is required", + "FUNCTIONALITY_NOT_SUPPORTED": "This functionality is not yet supported.", + "LOGIN_DISABLED": "Setting login is disabled for this namespace", + "PASSWORD_RESET_DISABLED": "Sending activation link is disabled for this namespace", + "PASSWORD_DISABLED": "Setting password is disabled for this namespace", + "SUCCESSFULLY_CREATED": "Sponsored member was successfully created", + "USER": "User", + "WAS_CREATED": "was successfully created", + "COPY_INFORMATION": "Please save this information. It will not be possible to access this information later.", + "PASSWORD_RESET": "Let the created user change his password via a given email address", + "PASSWORD_VIA_EMAIL": "User will choose his password via an email sent to the entered e-mail address", + "EXPIRATION": "Sponsorship expiration", + "EXPIRE_DATE": "Expire to a date", + "EXPIRE_NEVER": "Never expire", + "EXPIRATION_ERROR": "The date has to be in format yyyy-mm-dd", + "SELECT_SPONSOR": "Choose sponsor for created user", + "SELECT_SELF": "Make myself sponsor", + "SELECT_OTHER": "Select other sponsor from this organization", + "SELECT_SELF_DISABLED": "You must be sponsor in this organization", + "SELECT_OTHER_DISABLED": "You don't have permission to select other sponsor", + "NEXT": "Next", + "BACK": "Back", + "SUBMIT": "Submit", + "USER_LABEL": "User", + "NAMESPACE_LABEL": "Namespace", + "SPONSORSHIP_LABEL": "Sponsorship", + "USER_TITLE": "User name", + "NAMESPACE_TITLE": "Namespace details", + "SPONSORSHIP_TITLE": "Sponsorship options" + }, + "GENERATE_SPONSORED_MEMBERS": { + "TITLE": "Generate sponsored members", + "NAMESPACE": "Namespace", + "NAMESPACE_ERROR": "Selection of namespace is required", + "NAMES_ERROR": "This field cannot be empty", + "HINT": "Please insert to the field below correctly formated text. List and order of valid attributes is:", + "INSERT_HERE": "Here insert correctly formatted text", + "ERROR_FORMAT": "This line is not filled with all mandatory attributes", + "ERROR_EMAIL": "Email on this line is not valid", + "ERROR_LOGIN": "Login on this line must be filled", + "CANCEL": "Cancel", + "SUBMIT": "Submit", + "SUCCESS": "Members successfully created", + "EMAIL": "Email", + "PASSWORD_MANAGEMENT": "Password management", + "PASSWORD_RESET": "Let created users change their password via given email addresses.", + "GENERATE_PASSWORD": "Generate random passwords", + "EXPIRATION": "Sponsorship expiration", + "GROUP_ASSIGMENT": "Group assigment", + "NO_ASSIGN": "Do not assign to any group", + "ASSIGN_TO_NEW": "Create new group to be assigned to", + "ASSIGN_EXISTING": "Assign to existing groups", + "DISABLED_ASSIGN_NEW": "You don't have permission to create groups in this organization, or manual adding of members is disabled", + "DISABLED_ASSIGN_EXISTING": "You don't have permission to add members to any existing group in this organization, or manual adding of members is disabled", + "NEXT": "Next", + "BACK": "Back", + "USERS_INFO": "Users information", + "USERS_LABEL": "Users", + "PASSWORD_LABEL": "Password", + "EXPIRATION_LABEL": "Sponsorship", + "GROUPS_LABEL": "Group", + "CREATE_NEW_GROUP": "Create new group", + "SELECT_EXISTING_GROUPS": "Select from existing groups", + "DONT_ASSIGN_INFO": "Created users will become members of this organization, but won't be assigned to any additional groups. You will be able to change this manually later.", + "NO_NAMESPACE_PASSWORD_INFO": "Generated members will not have password." + }, + "EDIT_MEMBER_SPONSORS": { + "TITLE": "Edit sponsored member", + "EXPIRATION": "Sponsorship expiration", + "TABLE_ID": "id", + "TABLE_NAME": "name", + "TABLE_EXPIRATION": "expiration", + "CANCEL": "Cancel", + "SUBMIT": "Submit", + "REMOVE_SPONSOR_DISABLED": "You are not authorized to remove sponsor", + "SUCCESS": "Sponsors successfully edited" + }, + "PASSWORD_RESET_REQUEST": { + "TITLE": "Password reset request", + "LANGUAGE": "Language", + "NAMESPACE": "Namespace", + "EMAIL": "Email, where the request will be send", + "LOGIN": "Login:", + "SEND": "Send", + "CANCEL": "Cancel", + "SUCCESS": "Request has successfully been sent." + }, + "CHANGE_EMAIL": { + "TITLE": "Change preffered email", + "INPUT_PLACEHOLDER": "New email", + "CANCEL": "Cancel", + "CHANGE": "Change", + "SUCCESS": "Request for changing preferred email has been sent. Please check your mailbox.", + "PENDING_MAILS_BEGIN": "Validation e-mail has been sent to ", + "PENDING_MAILS_END": ". Check your inbox and complete validation by clicking on link in received e-mail.", + "EMAIL_ERROR": "Email is not valid" + }, + "NEW_VERSION": { + "TITLE": "New version is available!", + "DESCRIPTION": "New version is available. Please, reload the page to apply the changes.", + "LATER": "Got it! I will reload later", + "RELOAD": "Reload" + }, + "SPONSOR_EXISTING_MEMBER": { + "TITLE": "Sponsor existing member", + "CANCEL": "Cancel", + "SPONSOR": "Sponsor", + "SEARCH": "Search", + "DESCRIPTION": "Search by member name", + "EMPTY_SEARCH_MESSAGE": "Search field cannot be empty", + "EXPIRATION": "Sponsorship expiration", + "BEGIN_SEARCH": "Search for members you would like to sponsor", + "SUCCESS": "Members successfully sponsored" + }, + "ADD_OWNER": { + "TITLE": "Create owner", + "NAME": "Name", + "FILL_NAME": "Name cannot be empty", + "CONTACT": "Contact", + "FILL_CONTACT": "Contact cannot be empty", + "CONTACT_FORMAT": "Invalid format, e.g. mail@domain.com", + "TYPE1": "Administrative", + "TYPE2": "Technical", + "CANCEL": "Cancel", + "TOOLTIP": "Please, fill name and contact", + "CREATE": "Create", + "SUCCESS": "Owner successfully created" + }, + "DELETE_OWNER": { + "TITLE": "Delete owner", + "DESCRIPTION": "Selected owners will be deleted.", + "ASK": "Are you sure, you want to continue?", + "CANCEL": "Cancel", + "DELETE": "Delete", + "SUCCESS": "Owners successfully removed" + }, + "DELETE_ENTITY": { + "BASIC": "Do you want to delete only this", + "OR": "or", + "RELATIONS": "with all relations", + "DELETE": "Delete", + "CANCEL": "Cancel", + "VO": "organization", + "GROUP": "group", + "FACILITY": "facility", + "RESOURCE": "resource", + "CONTROL": "Type \"DELETE\" to confirm", + "ASK": "Are you sure you want to permanently delete", + "WARN": "This action will also delete all", + "SUCCESS": "was successfully deleted", + "GROUP_RELATION": "Groups (including subgroups)", + "MEMBER_RELATION": "Members", + "RESOURCE_RELATION": "Resources" + } + }, + "MEMBERS_LIST": { + "ID": "Id", + "NAME": "Name", + "STATUS": "VO status", + "GROUP_STATUS": "Group status", + "ALREADY_SPONSORED": "Already \nsponsored", + "EMAIL": "Email", + "LOGINS": "Logins", + "ORGANIZATION": "Organization", + "NO_MEMBERS_ALERT": "No members present", + "NO_FILTER_RESULTS_ALERT": "There are no members matching your query", + "INDIRECT_MEMBER": "Indirect member", + "CHECKBOX_TOOLTIP": "Indirect members cannot be removed" + }, + "MEMBERS_CANDIDATES_LIST": { + "STATUS": "Status", + "NAME": "Name", + "ORGANIZATION": "Organization or Ext source", + "EMAIL": "Email", + "LOGINS": "Logins", + "ALREADY_MEMBER": "Already member" + }, + "MANAGERS_LIST": { + "ID": "User ID", + "NAME": "Name", + "ORGANIZATION": "Organization", + "EMAIL": "Email", + "LOGINS": "Logins", + "PERSON": "Person", + "SERVICE": "Service" + }, + "ADMIN_USER": { + "ENTITY": "User", + "USER_TYPE": "User type" + }, + "ADMIN": { + "TITLE": "Perun admin", + "ATTRIBUTES": { + "TITLE": "Attribute definitions", + "TABLE_ATTR_ID": "Id", + "TABLE_ATTR_FRIENDLY_NAME": "Friendly name", + "TABLE_ATTR_ENTITY": "Entity", + "TABLE_ATTR_DEF": "Def", + "TABLE_ATTR_TYPE": "Type", + "TABLE_ATTR_UNIQUE": "Unique", + "CREATE": "New attribute definition", + "IMPORT": "Import", + "DELETE": "Delete", + "SEARCH": "Filter by ID, name, entity, definition, or type", + "NO_ATTRIBUTES": "There are no attributes available." + }, + "USERS": { + "TITLE": "Users", + "SEARCH_PLACEHOLDER": "Search by name, email or login", + "SEARCH_INFO": "You can search users by name, email or login or you can list all users without vo.", + "NO_USERS_FOUND": "No users found.", + "EMPTY_SEARCH": "Search field cannot be empty", + "USERS_WITHOUT_VO": "Find users without organization" + }, + "OWNERS": { + "TITLE": "Owners", + "ADD": "Create", + "DELETE": "Delete", + "FILTER": "Filter" + }, + "VISUALIZER": { + "ATTR_DEPENDENCIES": { + "TITLE": "Attribute modules dependencies", + "HINT": "You can use arrow keys to move the image." + }, + "USER_DESTINATION": { + "TITLE": "User destination relationship", + "SELECT_USER": "Select User", + "SELECT_DESTINATION": "Select Destination", + "DESTINATION_EXAMPLE": "eg. documents.ics.muni.cz", + "SELECT_SERVICE": "Select Service", + "SUBMIT_BUTTON": "Find relationships", + "USER_HINT": "Type names with punctuation, case insensitive", + "USER_EXAMPLE": "eg. Jan Novák", + "SELECT_NO_SERVICE": "I don't want specify service", + "BUTTON_NEXT": "Next", + "BUTTON_BACK": "Previous", + "ERROR_NO_NAME": "Please fill name", + "ERROR_WRONG_NAME": "Given name not found", + "ERROR_NO_DESTINATION": "Please fill destination", + "ERROR_WRONG_DESTINATION": "Given destination not found", + "ERROR_NOT_CHOSEN_SERVICE": "Please choose service", + "FOUND_1": "Path was found between user", + "FOUND_2": "and destination", + "FOUND_3": "for service", + "NOT_FOUND_1": "For user", + "NOT_FOUND_2": "and destination", + "NOT_FOUND_3": "with dependency on service", + "NOT_FOUND_4": "weren't found any connection in database", + "USER": "User", + "GROUP": "Group", + "VO": "Vo", + "RESOURCE": "Resource", + "FACILITY": "Facility", + "SERVICE": "Service", + "DESTINATION": "Destination" + } + }, + "EXT_SOURCES": { + "TITLE": "External sources", + "LOAD": "Load External sources", + "SEARCH": "Search by ID, Name or Type", + "LOAD_SUCCESS": "External sources successfully loaded" + }, + "SERVICES": { + "TITLE": "Services", + "CREATE": "Create service", + "DELETE": "Delete", + "FILTER": "Filter" + } + }, + "USER_DETAIL": { + "DASHBOARD": { + "TITLE": "Welcome ", + "RECENTLY_VIEWED": "Recently viewed", + "NO_RECENTLY_VIEWED": "No recently viewed", + "NOT_MANAGER": "It looks like you don’t manage anything here.", + "NOT_MANAGER_INFO_NO_USER_PROFILE": "If you want to administrate information about yourself you can look on your profile", + "NOT_MANAGER_INFO": "If you want to administrate information about yourself please choose one of the options", + "GO_TO_MY_PROFILE": "See My profile", + "GO_TO_USER_PROFILE": "Go User Profile Application", + "MANAGEABLE_ENTITIES": "Manageable entities", + "CARD_TITLE_VOADMIN": "Manager in Organizations", + "ROLE_INFO_VOADMIN": "You can manage organizations that are listed below", + "CARD_TITLE_GROUPADMIN": "Manager in Groups", + "ROLE_INFO_GROUPADMIN": "You can manage groups that are listed below", + "CARD_TITLE_FACILITYADMIN": "Manager in Facilities", + "ROLE_INFO_FACILITYADMIN": "You can manage facilities that are listed below", + "CARD_TITLE_SPONSOR": "Sponsor in Organizations", + "ROLE_INFO_SPONSOR": "You can create sponsored members in organization that are listed below", + "CARD_TITLE_RESOURCEADMIN": "Manager in Resources", + "ROLE_INFO_RESOURCEADMIN": "You can manage resources that are listed below", + "CARD_TITLE_TOPGROUPCREATOR": "Group creator in Organizations", + "ROLE_INFO_TOPGROUPCREATOR": "You can create group in the organizations that are listed below", + "CARD_TITLE_VOOBSERVER": "Observer in Organizations", + "ROLE_INFO_VOOBSERVER": "You can observe organizations that are listed below", + "CARD_TITLE_GROUPOBSERVER": "Observer in Groups", + "ROLE_INFO_GROUPOBSERVER": "You can observe groups that are listed below", + "CARD_TITLE_FACILITYOBSERVER": "Observer in Facilities", + "ROLE_INFO_FACILITYOBSERVER": "You can observe facilities that are listed below", + "CARD_TITLE_RESOURCEOBSERVER": "Observer in Resources", + "ROLE_INFO_RESOURCEOBSERVER": "You can observe resources that are listed below", + "DASHBOARD_SETTINGS": "Dashboard Settings", + "SHOW_RECENTLY_VIEWED": "Show Recently viewed", + "SHOW_ROLES": "Show roles" + }, + "OVERVIEW": { + "GENERAL_SETTINGS": "General settings" + }, + "IDENTITIES": { + "TITLE": "Identities", + "ADD": "Add", + "REMOVE": "Remove" + }, + "FACILITIES": { + "TITLE": "Facilities", + "FILTER_PLACEHOLDER": "Filter by id, name or description" + }, + "RESOURCES": { + "TITLE": "Resources" + }, + "SETTINGS": { + "ATTRIBUTES": { + "TITLE": "Attributes", + "DELETE": "Remove selected", + "FILTER": "Filter by id, name, value or description", + "SAVE": "Save selected", + "CREATE": "Add", + "CANCEL": "Cancel", + "SUCCESS_DELETE": "Attributes deleted successfully", + "SUCCESS_SAVE": "Attributes saved successfully" + }, + "SERVICE_IDENTITIES": { + "TITLE": "Service identities", + "CREATE": "Add", + "DELETE": "Remove", + "NO_IDENTITIES": "You have no service identities assigned." + }, + "GUI_CONFIG": { + "PREF_TABLE_PAGE_SIZE": "Preferred table page size", + "TITLE": "Gui Configuration" + }, + "ASSOCIATED_USERS": { + "TITLE": "Associated users", + "ADD": "Add", + "REMOVE": "Remove", + "NO_ASSOCIATED_USERS": "You have no associated users assigned." + }, + "FACILITY_ATTRIBUTES": { + "TITLE": "Facility attributes" + } + } + }, + "SHARED": { + "COMPONENTS": { + "RESOURCES_TAGS_LIST": { + "EDIT_SUCCESS": "Resource tag was successfully edited." + }, + "USERS_LIST": { + "TABLE_SEARCH": "Filter by name or ID" + }, + "REFRESH_BUTTON": { + "TOOLTIP": "Refresh" + }, + "MANAGERS_PAGE": { + "TITLE": "Managers", + "ADD": "Add", + "REMOVE": "Remove", + "SELECT_MODE": "Select mode", + "SELECT_ROLE": "Select role", + "USER": "Users", + "GROUP": "Groups", + "NO_MANAGERS": "This role has no managers.", + "NO_GROUP_MANAGERS": "This role has no group managers.", + "NO_AVAILABLE_ROLES": "This entity has no available manager roles or you dont have privileges to manage them" + }, + "EXT_SOURCES_LIST": { + "ID": "ID", + "NAME": "Name", + "TYPE": "Type", + "NO_EXT_SOURCES": "No external sources", + "NO_FILTER_RESULTS": "There are no external sources matching your query" + }, + "SERVICES_LIST": { + "ID": "Service Id", + "NAME": "Name", + "ENABLED": "Enabled", + "SCRIPT": "Script", + "DESCRIPTION": "Description", + "NO_SERVICES_WARNING": "No services assigned.", + "DISABLED": "Disabled" + }, + "ENTITYLESS_ATTRIBUTES_LIST": { + "CANCEL": "Back", + "SAVE": "Save", + "ADD": "Add", + "REMOVE": "Remove", + "KEY": "Key", + "VALUE": "Value", + "NO_KEYS_WARNING": "Use 'Add' button to add new Key-Attribute pair", + "SAVE_SUCCESS": "Attributes successfully saved", + "REMOVE_SUCCESS": "Attributes successfully removed" + }, + "USER_DETAIL": { + "GROUPS": { + "YOU_ARE_MEMBER": "Groups where you are member", + "YOU_ARE_ADMIN": "Groups where you are admin", + "USER_IS_MEMBER": "Groups where user is member", + "USER_IS_ADMIN": "Groups where user is admin", + "FILTER": "Filter by name or ID" + } + }, + "HOSTS_LIST": { + "TABLE_HOST_ID": "Host ID", + "TABLE_HOST_NAME": "Host name", + "NO_HOST_WARNING": "No hosts found" + }, + "BLACKLIST_LIST": { + "USER_ID": "User ID", + "NAME": "Name", + "REASON": "Reason", + "NO_BANS_WARNING": "No bans found" + }, + "OWNERS_LIST": { + "ID": "Id", + "NAME": "Name", + "CONTACT": "Contact", + "TYPE": "Type", + "NO_OWNERS": "No owners match the given filter" + }, + "SECURITY_TEAMS_LIST": { + "ID": "id", + "NAME": "name", + "DESCRIPTION": "description", + "NO_SECURITY_TEAMS_WARNING": "No security teams found" + }, + "SPONSORED_MEMBERS_LIST": { + "ID": "Id", + "NAME": "Name", + "SPONSORS": "Sponsors", + "NO_SPONSORED_MEMBERS_WARNING": "No sponsored members found", + "PASSWORD_RESET": "Reset password" + }, + "DESTINATIONS_LIST": { + "DESTINATION_ID": "Destination ID", + "SERVICE": "Service", + "FACILITY": "Facility", + "DESTINATION": "Destination", + "TYPE": "Type", + "ALLOWED": "Allowed", + "BLOCKED": "Blocked", + "PROPAGATION_TYPE": "Propagation type", + "NO_DESTINATIONS": "No destinations found" + }, + "FACILITIES_LIST": { + "ID": "Id", + "NAME": "Name", + "DESCRIPTION": "Description", + "TECHNICAL_OWNERS": "Technical owners", + "DESTINATIONS": "Destinations", + "HOSTS": "Hosts", + "NO_FACILITIES_WARNING": "No facilities found" + } + }, + "IDENTITY_DETAIL": { + "TITLE": "Identity detail", + "ADD": "Add", + "REMOVE": "Remove", + "SAVE": "Save" + } + }, + "ROLES": { + "TITLE": "Roles", + "VOADMIN": "Vo admin", + "VOADMIN_VOS": "Organizations you are manager of", + "VOOBSERVER": "Vo observer", + "VOOBSERVER_VOS": "Organizations you are observer of", + "TOPGROUPCREATOR": "Top group creator", + "TOPGROUPCREATOR_VOS": "Organizations, where you can create groups", + "PERUN_ADMIN": "Perun admin", + "SELF": "Self", + "SELF_VOS": "Organizations you are member of", + "SELF_IDENTITIES": "Identities linked to your Perun account", + "SELF_VOS_ADMIN": "Organizations where user is member", + "SELF_IDENTITIES_ADMIN": "User's identities", + "FACILITYADMIN": "Facility admin", + "FACILITYADMIN_FACILITIES": "Facilities you are manager of", + "FACILITYOBSERVER": "Facility observer", + "FACILITYOBSERVER_FACILITIES": "Facilities you are observer of", + "TRUSTEDFACILITYADMIN": "Trusted facility admin", + "TRUSTEDFACILITYADMIN_VOS": "Virtual organizations you are trusted facility admin in", + "GROUPOBSERVER": "Group observer", + "GROUPOBSERVER_GROUPS": "Groups you are observer of", + "GROUPADMIN": "Group admin", + "GROUPADMIN_GROUPS": "Groups you are manager of", + "RESOURCEADMIN": "Resource admin", + "RESOURCEADMIN_RESOURCES": "Resources you are manager of", + "SPONSOR": "Sponsor", + "SPONSOR_VOS": "Organizations, where you are sponsor", + "SPONSORSHIP": "Sponsorship", + "SPONSORSHIP_MEMBERS": "Members you are sponsor of", + "RESOURCESELFSERVICE": "Resource self service", + "RESOURCESELFSERVICE_RESOURCES": "Resources you are manager of", + "RESOURCEOBSERVER": "Resource observer", + "RESOURCEOBSERVER_RESOURCES": "Resources you are observer of" + }, + "SHARED_LIB": { + "PERUN": { + "COMPONENTS": { + "GROUPS_LIST": { + "TABLE_GROUP_ID": "Id", + "TABLE_VO_NAME": "Organization", + "TABLE_GROUP_NAME": "Name", + "TABLE_SEARCH": "Filter by name, description or ID", + "TABLE_GROUP_DESCRIPTION": "Description", + "TABLE_GROUP_EXPIRATION": "Expiration", + "DISABLED_HINT": "You cannot add members to this group or user is already member.", + "ALREADY_MEMBER_TOOLTIP": "User is already member of group", + "CREATE_RELATION_AUTH_TOOLTIP": "You don't have permission to create relation with this group.", + "SYNCHRONIZED_GROUP": "Group is filled with members from external source" + }, + "GROUP_MENU": { + "MOVE": "Move group", + "RENAME": "Update name/description", + "COPY": "Copy group name to clipboard" + }, + "GROUP_SEARCH_SELECT": { + "SELECT_GROUP": "Select group", + "FIND_GROUP": "Find group...", + "NO_GROUP_FOUND": "No matching group found" + }, + "VOS_LIST": { + "ID": "Id", + "NAME": "Name", + "SHORTNAME": "Short name" + }, + "VO_SEARCH_SELECT": { + "SELECT_VO": "Select organization", + "FIND_VO": "Find organization...", + "NO_VO_FOUND": "No matching vo found" + }, + "RESOURCES_LIST": { + "TITLE": "Resources", + "DELETE": "Remove selected", + "TABLE_RESOURCE_ID": "id", + "TABLE_RESOURCE_NAME": "Name", + "TABLE_VO_NAME": "Organization", + "TABLE_FACILITY_NAME": "Facility name", + "TABLE_RESOURCE_TAGS": "Tags", + "TABLE_SEARCH": "Filter", + "TABLE_RESOURCE_DESCRIPTION": "Description", + "NO_RESOURCES_WARNING": "No resources assigned." + }, + "RESOURCE_SEARCH_SELECT": { + "SELECT_RESOURCE": "Select resource", + "FIND_RESOURCE": "Find resource...", + "NO_RESOURCE_FOUND": "No matching resource found" + }, + "MEMBER_SEARCH_SELECT": { + "SELECT_MEMBER": "Select member", + "FIND_MEMBER": "Find member...", + "NO_MEMBER_FOUND": "No matching member found" + }, + "FACILITY_SEARCH_SELECT": { + "SELECT_FACILITY": "Select facility", + "FIND_FACILITY": "Find facility...", + "NO_FACILITY_FOUND": "No matching facility found" + }, + "APP_FORM_ITEM_SEARCH_SELECT": { + "SELECT_ITEM": "Select item", + "FIND_ITEM": "Find item...", + "NO_ITEM_FOUND": "No matching item found", + "NO_ITEM": "No item selected (empty value)", + "NEW_ITEM": "-- new item --" + }, + "USER_SEARCH_SELECT": { + "SELECT_USER": "Select user", + "FIND_USER": "Find user...", + "NO_USER_FOUND": "No matching user found" + }, + "ATTRIBUTE_VALUE_LIST": { + "EDIT_DIALOG": { + "TITLE": "Edit attribute value", + "SUBMIT_BUTTON": "Submit", + "CANCEL_BUTTON": "Cancel" + }, + "DELETE_DIALOG": { + "TITLE": "Delete attribute value", + "DESCRIPTION": "Do you really want to delete this attribute list value from list?", + "SUBMIT_BUTTON": "Delete", + "CANCEL_BUTTON": "Cancel" + } + }, + "ATTRIBUTES_LIST": { + "FILTER": "Filter by id, name, value or description", + "ID": "Id", + "NAME": "Name", + "VALUE": "Value", + "DESCRIPTION": "Description", + "DISABLED_HINT": "You don't have permission to change this attribute.", + "EMPTY": "No settings found. Use 'Add' button to add new setting.", + "CHECKBOX_TOOLTIP": "You don't have privileges to edit this attribute" + }, + "USER_DONT_EXIST": { + "TITLE": "Requested user (by ID or external identity) doesn't exist." + }, + "TABLE_OPTIONS": { + "EXPORT_TO_FILE": "Export to file" + }, + "NOTIFICATOR": { + "NOTIFICATION": { + "DEFAULT_ACTION": "Show", + "DIALOG_CLOSE": "Close", + "DIALOG_BUG_REPORT": "Report a bug", + "DEFAULT_RPC_ERROR_MESSAGE": "An operation failed.", + "PRIVILEGE_EXCEPTION": "You are not authorized to perform this action" + } + }, + "USER_EXT_SOURCES_LIST": { + "MAIL": "Email", + "EXT_SOURCE_NAME": "Federated identity", + "LOGIN": "Login", + "LAST_ACCESS": "Last access", + "NO_IDENTITIES": "No external identities found", + "ID": "Id", + "LOA": "Level of assurance" + }, + "BUG_REPORT": { + "TITLE": "Report a bug", + "SUBJECT": "Subject", + "SUBJECT_VALUE": "Reported error: ", + "SUBJECT_ERROR": "Subject cannot be empty.", + "MESSAGE": "Message", + "MESSAGE_PLACEHOLDER": "Please describe your problem and which of your actions lead to this problem.", + "MESSAGE_ERROR": "Please tell us something about the problem.", + "CANCEL": "Cancel", + "SEND": "Send", + "SUCCESS1": "Ticket with ID: ", + "SUCCESS2": " was created." + }, + "REMOVE_USER_EXT_SOURCE": { + "TITLE": "Remove user's external identity", + "DESCRIPTION": "Following external identity will be removed", + "ASK": "Are you sure you want to continue?", + "CANCEL": "Cancel", + "REMOVE": "Remove", + "SUCCESS": "User external source successfully removed" + }, + "PASSWORD_RESET": { + "TITLE": "Password reset", + "CHANGE_PASSWORD": "Change password", + "NAMESPACE": "Namespace", + "LOGIN": "Login", + "NOT_SUPPORTED": "Password reset is not supported for your current namespaces" + }, + "SHOW_VALUE": { + "CLOSE": "Close", + "COPY": "Copy to clipboard" + }, + "SERVICES_STATUS_LIST": { + "TABLE_SEARCH": "Filter by service name, id or state", + "TASK_ID": "Task ID", + "SERVICE_NAME": "Service", + "STATUS": "Status", + "BLOCKED": "Blocked", + "STARTED": "Started", + "ENDED": "Ended", + "NO_SERVICES_STATUS_WARNING": "No service configuration was propagated to this facility.", + "NOT_YET": "NOT YET" + }, + "TASK_RESULTS_LIST": { + "RESULT_ID": "Result id", + "DESTINATION": "Destination", + "TYPE": "Type", + "SERVICE": "Service", + "STATUS": "Status", + "TIME": "Time", + "RETURN_CODE": "Return code", + "STANDARD_MESSAGE": "Standard message", + "ERROR_MESSAGE": "Error message", + "NO_RESULTS_WARNING": "No task results found" + }, + "SESSION_EXPIRATION": { + "TITLE": "Session expiration", + "DESCRIPTION": "Your session has expired. Please sign in to continue.", + "SIGN_IN": "Sign in" + }, + "RECENTLY_VIEWED_ICON": { + "RECENT": "Recently viewed" + }, + "FOOTER": { + "ABOUT_PERUN": "About", + "HELP": "Help", + "PERUN_WEB": "Perun website", + "PERUN_TEAM": "Perun team", + "SUPPORT": "Support", + "USER_DOCUMENTATION": "Documentation", + "ADMINISTRATOR_DOCUMENTATION": "API Documentation", + "REPORT_ISSUE": "Report Issue", + "PRIVACY_POLICY": "Privacy Policy" + }, + "REPORT_ISSUE": { + "TITLE": "Report an issue", + "SUBJECT": "Subject", + "SUBJECT_ERROR": "Subject cannot be empty.", + "MESSAGE": "Message", + "MESSAGE_PLACEHOLDER": "Please describe the issue", + "MESSAGE_HINT": "Please try to describe in detail the problem.", + "CANCEL": "Cancel", + "SEND": "Send", + "SUCCESS": "Issue report was sended and got ticket number: " + }, + "UNIVERSAL_REMOVE_ITEMS_DIALOG": { + "ASK": "Do you want to proceed?", + "CANCEL_BUTTON": "Cancel", + "SUBMIT_BUTTON": "Submit" + } + }, + "ORGANIZATIONS": { + "TITLE": "User organizations", + "FILTER": "Filter by name or ID", + "YOU_ARE_ADMIN": "Organizations where you are admin", + "YOU_ARE_MEMBER": "Organizations where you are member", + "USER_IS_ADMIN": "Organizations where user is admin", + "USER_IS_MEMBER": "Organizations where user is member" + }, + "GROUPS": { + "MEMBER_GROUPS": "Member groups", + "ADMINS_GROUPS": "Groups where user is admin" + }, + "REFRESH_BUTTON": "Refresh", + "SERVICES_CONFIGURATIONS": { + "ADD": "Add", + "SAVE": "Save" + } + }, + "UI": { + "ALERTS": { + "NO_GROUPS": "No groups found.", + "NO_ORGANIZATIONS": "No organizations found", + "NO_FILTER_RESULTS_ALERT": "No results match given search criteria.", + "NO_MEMBERS": "No members found", + "NO_USERS": "No users found.", + "NO_FACILITIES": "No facilities found." + } + } + } +} diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-blue.svg new file mode 100644 index 000000000..d76576670 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-blue.svg @@ -0,0 +1,37 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-grey.svg new file mode 100644 index 000000000..500287874 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-grey.svg @@ -0,0 +1,37 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-white.svg new file mode 100644 index 000000000..898bd1635 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/application_form-white.svg @@ -0,0 +1,37 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/applications-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/applications-blue.svg new file mode 100644 index 000000000..4b2870e2f --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/applications-blue.svg @@ -0,0 +1,25 @@ + + + + + + + + + + ]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/applications-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/applications-white.svg new file mode 100644 index 000000000..9610d4d12 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/applications-white.svg @@ -0,0 +1,25 @@ + + + + + + + + + + ]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/apply1-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/apply1-blue.svg new file mode 100644 index 000000000..d1810c472 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/apply1-blue.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/apply1-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/apply1-grey.svg new file mode 100644 index 000000000..40bb7ba56 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/apply1-grey.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/apply2-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/apply2-blue.svg new file mode 100644 index 000000000..272d4853e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/apply2-blue.svg @@ -0,0 +1,30 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/apply2-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/apply2-grey.svg new file mode 100644 index 000000000..146dae84e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/apply2-grey.svg @@ -0,0 +1,30 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/apply3-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/apply3-blue.svg new file mode 100644 index 000000000..fd0c11997 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/apply3-blue.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/apply3-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/apply3-grey.svg new file mode 100644 index 000000000..db57f55ce --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/apply3-grey.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/arrow_push_or_forward.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/arrow_push_or_forward.svg new file mode 100644 index 000000000..36a6a63de --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/arrow_push_or_forward.svg @@ -0,0 +1,10 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/attributes-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/attributes-blue.svg new file mode 100644 index 000000000..5039490cd --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/attributes-blue.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/attributes-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/attributes-white.svg new file mode 100644 index 000000000..58a12fe09 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/attributes-white.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/audit_log-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/audit_log-blue.svg new file mode 100644 index 000000000..5a13894a9 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/audit_log-blue.svg @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/authentication-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/authentication-blue.svg new file mode 100644 index 000000000..59b2c9c5e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/authentication-blue.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/authentication-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/authentication-grey.svg new file mode 100644 index 000000000..85d977e27 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/authentication-grey.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/back.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/back.svg new file mode 100644 index 000000000..795e12cd7 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/back.svg @@ -0,0 +1,9 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/black_list-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/black_list-grey.svg new file mode 100644 index 000000000..0957eee69 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/black_list-grey.svg @@ -0,0 +1,30 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/black_list-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/black_list-white.svg new file mode 100644 index 000000000..ddca048e3 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/black_list-white.svg @@ -0,0 +1,30 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-blue.svg new file mode 100644 index 000000000..26e38bed7 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-blue.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-grey.svg new file mode 100644 index 000000000..062e3f289 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-grey.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-red.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-red.svg new file mode 100644 index 000000000..886ef6d07 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/cancel-red.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-blue.svg new file mode 100644 index 000000000..3486f2f19 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-blue.svg @@ -0,0 +1,11 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-grey.svg new file mode 100644 index 000000000..7f993da9a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-grey.svg @@ -0,0 +1,11 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-red.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-red.svg new file mode 100644 index 000000000..cf9bda0e2 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/close_or_reject-red.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/contact-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/contact-blue.svg new file mode 100644 index 000000000..9121e7830 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/contact-blue.svg @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/contact-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/contact-grey.svg new file mode 100644 index 000000000..2573235b2 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/contact-grey.svg @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/copy_from-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/copy_from-blue.svg new file mode 100644 index 000000000..e040ada1c --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/copy_from-blue.svg @@ -0,0 +1,36 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/copy_from-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/copy_from-grey.svg new file mode 100644 index 000000000..b4852f58f --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/copy_from-grey.svg @@ -0,0 +1,36 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/create1-green.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/create1-green.svg new file mode 100644 index 000000000..db7d46918 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/create1-green.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/create1-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/create1-grey.svg new file mode 100644 index 000000000..cb673938a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/create1-grey.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/create1-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/create1-white.svg new file mode 100644 index 000000000..45f63f5ab --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/create1-white.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/create2-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/create2-blue.svg new file mode 100644 index 000000000..9b34acc29 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/create2-blue.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/create2-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/create2-grey.svg new file mode 100644 index 000000000..2d02c89b9 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/create2-grey.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/create3-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/create3-blue.svg new file mode 100644 index 000000000..42017cfa2 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/create3-blue.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/create3-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/create3-grey.svg new file mode 100644 index 000000000..e9228df5b --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/create3-grey.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/delete-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/delete-grey.svg new file mode 100644 index 000000000..2e5c26d69 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/delete-grey.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/delete-red.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/delete-red.svg new file mode 100644 index 000000000..dfe266d4e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/delete-red.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/disabled.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/disabled.svg new file mode 100644 index 000000000..e93278ba3 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/disabled.svg @@ -0,0 +1,11 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/edit1-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/edit1-blue.svg new file mode 100644 index 000000000..ab7d3436a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/edit1-blue.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/edit1-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/edit1-grey.svg new file mode 100644 index 000000000..214479231 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/edit1-grey.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/edit2-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/edit2-blue.svg new file mode 100644 index 000000000..9a0c8ec73 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/edit2-blue.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/edit2-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/edit2-grey.svg new file mode 100644 index 000000000..37fc8c6b6 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/edit2-grey.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/expired.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/expired.svg new file mode 100644 index 000000000..072ae3958 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/expired.svg @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/external_sources-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/external_sources-grey.svg new file mode 100644 index 000000000..adb8486f0 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/external_sources-grey.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/external_sources-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/external_sources-white.svg new file mode 100644 index 000000000..54bd255a1 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/external_sources-white.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/facility-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/facility-blue.svg new file mode 100644 index 000000000..fb79e3e99 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/facility-blue.svg @@ -0,0 +1,38 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/facility-dark.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/facility-dark.svg new file mode 100644 index 000000000..8855ee673 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/facility-dark.svg @@ -0,0 +1,25 @@ + + + + + + + + + + ]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/facility-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/facility-grey.svg new file mode 100644 index 000000000..8c1d2634c --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/facility-grey.svg @@ -0,0 +1,38 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/facility-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/facility-white.svg new file mode 100644 index 000000000..91c331e15 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/facility-white.svg @@ -0,0 +1,25 @@ + + + + + + + + + + ]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/facility.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/facility.svg new file mode 100644 index 000000000..b19e386c6 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/facility.svg @@ -0,0 +1,25 @@ + + + + + + + + + + ]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/filter-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/filter-blue.svg new file mode 100644 index 000000000..004d25c26 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/filter-blue.svg @@ -0,0 +1,14 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/filter-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/filter-grey.svg new file mode 100644 index 000000000..8c9a9eb2d --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/filter-grey.svg @@ -0,0 +1,14 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/group-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/group-blue.svg new file mode 100644 index 000000000..20d188cf9 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/group-blue.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/group-dark.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/group-dark.svg new file mode 100644 index 000000000..7dca8033f --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/group-dark.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/group-green.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/group-green.svg new file mode 100644 index 000000000..5b28830a8 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/group-green.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/group-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/group-grey.svg new file mode 100644 index 000000000..5ced6f9bf --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/group-grey.svg @@ -0,0 +1,37 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/group-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/group-white.svg new file mode 100644 index 000000000..919482277 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/group-white.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/home.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/home.svg new file mode 100644 index 000000000..88fda3548 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/home.svg @@ -0,0 +1,10 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/host-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/host-blue.svg new file mode 100644 index 000000000..257b32be3 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/host-blue.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/host-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/host-grey.svg new file mode 100644 index 000000000..d44a03658 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/host-grey.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator1-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator1-blue.svg new file mode 100644 index 000000000..5e5a078ce --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator1-blue.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator1-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator1-grey.svg new file mode 100644 index 000000000..9ba758160 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator1-grey.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator2-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator2-blue.svg new file mode 100644 index 000000000..5e1a98e68 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator2-blue.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator2-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator2-grey.svg new file mode 100644 index 000000000..364cebf22 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/identity_consolidator2-grey.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/info-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/info-blue.svg new file mode 100644 index 000000000..1ce8ec2a2 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/info-blue.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/info-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/info-grey.svg new file mode 100644 index 000000000..5c4465a88 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/info-grey.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/invalid.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/invalid.svg new file mode 100644 index 000000000..ee0f0021f --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/invalid.svg @@ -0,0 +1,10 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-blue.svg new file mode 100644 index 000000000..1a92c2312 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-blue.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-grey.svg new file mode 100644 index 000000000..9f538738e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-grey.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-white.svg new file mode 100644 index 000000000..6b0e517f0 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/invite_member-white.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/logout-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/logout-blue.svg new file mode 100644 index 000000000..cc0655746 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/logout-blue.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/logout-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/logout-grey.svg new file mode 100644 index 000000000..de805b1bb --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/logout-grey.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_blue.svg new file mode 100644 index 000000000..32135c632 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_blue.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_orange.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_orange.svg new file mode 100644 index 000000000..c8c23875a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_orange.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_purple.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_purple.svg new file mode 100644 index 000000000..05852796a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_purple.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_white.svg new file mode 100644 index 000000000..a643c5699 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/manage_facility_white.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/manager-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/manager-blue.svg new file mode 100644 index 000000000..74690699c --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/manager-blue.svg @@ -0,0 +1,13 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/manager-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/manager-grey.svg new file mode 100644 index 000000000..c77f62f20 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/manager-grey.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/manager-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/manager-white.svg new file mode 100644 index 000000000..633b1828f --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/manager-white.svg @@ -0,0 +1,13 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/member-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/member-blue.svg new file mode 100644 index 000000000..8b2672c40 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/member-blue.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/module.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/module.svg new file mode 100644 index 000000000..b39eea2f9 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/module.svg @@ -0,0 +1,12 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/module_dependencies.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/module_dependencies.svg new file mode 100644 index 000000000..fc18f265e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/module_dependencies.svg @@ -0,0 +1,21 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/move_down-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/move_down-blue.svg new file mode 100644 index 000000000..935c477ee --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/move_down-blue.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/move_down-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/move_down-grey.svg new file mode 100644 index 000000000..97b2c042d --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/move_down-grey.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_left-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_left-blue.svg new file mode 100644 index 000000000..afe825cf7 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_left-blue.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_left-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_left-grey.svg new file mode 100644 index 000000000..ce23b5043 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_left-grey.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_right-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_right-blue.svg new file mode 100644 index 000000000..43b3b72af --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_right-blue.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_right-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_right-grey.svg new file mode 100644 index 000000000..9ddf05386 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/move_tab_right-grey.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/move_up-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/move_up-blue.svg new file mode 100644 index 000000000..aa5956576 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/move_up-blue.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/move_up-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/move_up-grey.svg new file mode 100644 index 000000000..41a688c2b --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/move_up-grey.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/note-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/note-blue.svg new file mode 100644 index 000000000..6dfb70990 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/note-blue.svg @@ -0,0 +1,17 @@ + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/notification-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/notification-blue.svg new file mode 100644 index 000000000..c06eccb54 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/notification-blue.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/notification-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/notification-grey.svg new file mode 100644 index 000000000..644887d5d --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/notification-grey.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/notification-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/notification-white.svg new file mode 100644 index 000000000..c06eccb54 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/notification-white.svg @@ -0,0 +1,29 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/owner-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/owner-blue.svg new file mode 100644 index 000000000..7449868e8 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/owner-blue.svg @@ -0,0 +1,30 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/owner-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/owner-grey.svg new file mode 100644 index 000000000..5ed9a4da6 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/owner-grey.svg @@ -0,0 +1,30 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/perun.ico b/dist/apps/admin-gui/assets/img/PerunWebImages/perun.ico new file mode 100644 index 000000000..167b0c7f7 Binary files /dev/null and b/dist/apps/admin-gui/assets/img/PerunWebImages/perun.ico differ diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-blue.svg new file mode 100644 index 000000000..d629747ce --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-blue.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-dark.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-dark.svg new file mode 100644 index 000000000..a51e82663 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-dark.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-grey.svg new file mode 100644 index 000000000..ff7a46b50 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-grey.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-red.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-red.svg new file mode 100644 index 000000000..bcb15a162 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-red.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-white.svg new file mode 100644 index 000000000..a6c62d2dd --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_admin-white.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/perun_logo-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_logo-white.svg new file mode 100644 index 000000000..c81110578 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/perun_logo-white.svg @@ -0,0 +1,74 @@ + + + +image/svg+xml + + + + + + + \ No newline at end of file diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/preview-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/preview-white.svg new file mode 100644 index 000000000..8acb7db63 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/preview-white.svg @@ -0,0 +1,41 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/propagation-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/propagation-blue.svg new file mode 100644 index 000000000..b26bfbef0 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/propagation-blue.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/propagations-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/propagations-blue.svg new file mode 100644 index 000000000..ff84c2f28 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/propagations-blue.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/propagations-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/propagations-grey.svg new file mode 100644 index 000000000..517d7bb32 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/propagations-grey.svg @@ -0,0 +1,28 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/publications-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/publications-blue.svg new file mode 100644 index 000000000..0632c7ddd --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/publications-blue.svg @@ -0,0 +1,40 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/publications-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/publications-grey.svg new file mode 100644 index 000000000..550dde8ea --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/publications-grey.svg @@ -0,0 +1,40 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_page-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_page-blue.svg new file mode 100644 index 000000000..e22299d78 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_page-blue.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_page-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_page-grey.svg new file mode 100644 index 000000000..ae2794aaf --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_page-grey.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_tab-black.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_tab-black.svg new file mode 100644 index 000000000..7b4c32c40 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_tab-black.svg @@ -0,0 +1,30 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_tab-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_tab-grey.svg new file mode 100644 index 000000000..ed5d28f4d --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/refresh_tab-grey.svg @@ -0,0 +1,30 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/relations-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/relations-blue.svg new file mode 100644 index 000000000..db30f7635 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/relations-blue.svg @@ -0,0 +1,41 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/relations-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/relations-grey.svg new file mode 100644 index 000000000..633ca1374 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/relations-grey.svg @@ -0,0 +1,41 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/remove.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/remove.svg new file mode 100644 index 000000000..94d0c3ae0 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/remove.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resource-black.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resource-black.svg new file mode 100644 index 000000000..35e6781da --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resource-black.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resource-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resource-blue.svg new file mode 100644 index 000000000..3ac6ce6f6 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resource-blue.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resource-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resource-white.svg new file mode 100644 index 000000000..26b4d17ca --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resource-white.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-blue.svg new file mode 100644 index 000000000..88ce2d8ec --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-blue.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-grey.svg new file mode 100644 index 000000000..c7f03e6f6 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-grey.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-white.svg new file mode 100644 index 000000000..88ce2d8ec --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resource_tags-white.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-blue.svg new file mode 100644 index 000000000..4ec4161f8 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-blue.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-grey.svg new file mode 100644 index 000000000..a465e2327 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-grey.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-white.svg new file mode 100644 index 000000000..4ec4161f8 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/resources_state-white.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/save-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/save-blue.svg new file mode 100644 index 000000000..5d6b4f861 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/save-blue.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/save-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/save-grey.svg new file mode 100644 index 000000000..f17cefd45 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/save-grey.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/searcher-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/searcher-blue.svg new file mode 100644 index 000000000..930ef3206 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/searcher-blue.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/searcher-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/searcher-grey.svg new file mode 100644 index 000000000..1b865fa4a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/searcher-grey.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/security_admin-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/security_admin-blue.svg new file mode 100644 index 000000000..4db034998 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/security_admin-blue.svg @@ -0,0 +1,45 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/security_admin-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/security_admin-grey.svg new file mode 100644 index 000000000..a0cff6606 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/security_admin-grey.svg @@ -0,0 +1,45 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service-grey.svg new file mode 100644 index 000000000..b64facfd4 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service-grey.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service-white.svg new file mode 100644 index 000000000..361f6206e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service-white.svg @@ -0,0 +1,15 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_destination-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_destination-blue.svg new file mode 100644 index 000000000..76b14db6c --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_destination-blue.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_destination-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_destination-grey.svg new file mode 100644 index 000000000..46b4125c9 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_destination-grey.svg @@ -0,0 +1,35 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-blue.svg new file mode 100644 index 000000000..1424ccf4e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-blue.svg @@ -0,0 +1,44 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-grey.svg new file mode 100644 index 000000000..f750d1466 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-grey.svg @@ -0,0 +1,44 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-white.svg new file mode 100644 index 000000000..28d91372c --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_identity-white.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_packages-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_packages-blue.svg new file mode 100644 index 000000000..19a670c04 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_packages-blue.svg @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_packages-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_packages-grey.svg new file mode 100644 index 000000000..2d4d5c56f --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_packages-grey.svg @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_status-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_status-blue.svg new file mode 100644 index 000000000..ca1269afa --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_status-blue.svg @@ -0,0 +1,41 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/service_status-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/service_status-grey.svg new file mode 100644 index 000000000..1de8f8d0e --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/service_status-grey.svg @@ -0,0 +1,41 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/settings1-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/settings1-blue.svg new file mode 100644 index 000000000..5b802c08a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/settings1-blue.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/settings1-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/settings1-grey.svg new file mode 100644 index 000000000..d50e3d01a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/settings1-grey.svg @@ -0,0 +1,34 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/settings2-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/settings2-blue.svg new file mode 100644 index 000000000..ffdbdea52 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/settings2-blue.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/settings2-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/settings2-white.svg new file mode 100644 index 000000000..3cbcc5e63 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/settings2-white.svg @@ -0,0 +1,24 @@ + + + + + + + + + + ]> + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/statistics-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/statistics-blue.svg new file mode 100644 index 000000000..a5b5aa471 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/statistics-blue.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/statistics-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/statistics-grey.svg new file mode 100644 index 000000000..857501cb1 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/statistics-grey.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/subgroup-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/subgroup-blue.svg new file mode 100644 index 000000000..65ea3fa7d --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/subgroup-blue.svg @@ -0,0 +1,41 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/subgroup-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/subgroup-grey.svg new file mode 100644 index 000000000..1c20d609c --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/subgroup-grey.svg @@ -0,0 +1,41 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/user-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/user-blue.svg new file mode 100644 index 000000000..a0d72a784 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/user-blue.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/user-dark.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/user-dark.svg new file mode 100644 index 000000000..d82c60620 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/user-dark.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/user-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/user-grey.svg new file mode 100644 index 000000000..50f38d8ac --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/user-grey.svg @@ -0,0 +1,31 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/user-pink.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/user-pink.svg new file mode 100644 index 000000000..b94b8b459 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/user-pink.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/user-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/user-white.svg new file mode 100644 index 000000000..c92cd0e53 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/user-white.svg @@ -0,0 +1,23 @@ + + + + + + + + + + ]> + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/user_destination_relationship.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/user_destination_relationship.svg new file mode 100644 index 000000000..fa1cd6af9 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/user_destination_relationship.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/valid.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/valid.svg new file mode 100644 index 000000000..bd9bcd7d9 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/valid.svg @@ -0,0 +1,10 @@ + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/verify-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/verify-blue.svg new file mode 100644 index 000000000..9a7aa2ffe --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/verify-blue.svg @@ -0,0 +1,33 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/verify-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/verify-grey.svg new file mode 100644 index 000000000..ef0082ed4 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/verify-grey.svg @@ -0,0 +1,33 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/vo-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/vo-blue.svg new file mode 100644 index 000000000..cb940e9e8 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/vo-blue.svg @@ -0,0 +1,32 @@ + + + + + + + + + + ]> + + + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/vo-dark.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/vo-dark.svg new file mode 100644 index 000000000..fab52177b --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/vo-dark.svg @@ -0,0 +1,32 @@ + + + + + + + + + + ]> + + + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/vo-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/vo-grey.svg new file mode 100644 index 000000000..89406e79d --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/vo-grey.svg @@ -0,0 +1,51 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/vo-white.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/vo-white.svg new file mode 100644 index 000000000..73fd93526 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/vo-white.svg @@ -0,0 +1,32 @@ + + + + + + + + + + ]> + + + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/vo.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/vo.svg new file mode 100644 index 000000000..cb940e9e8 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/vo.svg @@ -0,0 +1,32 @@ + + + + + + + + + + ]> + + + + + + + + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/warning-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/warning-blue.svg new file mode 100644 index 000000000..bf31b6f3a --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/warning-blue.svg @@ -0,0 +1,17 @@ + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/white_list-blue.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/white_list-blue.svg new file mode 100644 index 000000000..4368c6639 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/white_list-blue.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/assets/img/PerunWebImages/white_list-grey.svg b/dist/apps/admin-gui/assets/img/PerunWebImages/white_list-grey.svg new file mode 100644 index 000000000..fc3e6c824 --- /dev/null +++ b/dist/apps/admin-gui/assets/img/PerunWebImages/white_list-grey.svg @@ -0,0 +1,32 @@ + + + + + + + + + + +]> + + + + + + + + + + + + diff --git a/dist/apps/admin-gui/index.html b/dist/apps/admin-gui/index.html new file mode 100644 index 000000000..8f3305deb --- /dev/null +++ b/dist/apps/admin-gui/index.html @@ -0,0 +1,31 @@ + + + + + Perun Web Gui + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/dist/apps/admin-gui/main-es2015.0a860f7c3d976bbee5e2.js b/dist/apps/admin-gui/main-es2015.0a860f7c3d976bbee5e2.js new file mode 100644 index 000000000..b1cdedc7b --- /dev/null +++ b/dist/apps/admin-gui/main-es2015.0a860f7c3d976bbee5e2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+0js":function(t,e,i){"use strict";i.d(e,"d",(function(){return S})),i.d(e,"e",(function(){return T})),i.d(e,"h",(function(){return L})),i.d(e,"g",(function(){return F})),i.d(e,"i",(function(){return U})),i.d(e,"j",(function(){return Y})),i.d(e,"k",(function(){return st})),i.d(e,"l",(function(){return rt})),i.d(e,"f",(function(){return ht})),i.d(e,"b",(function(){return dt})),i.d(e,"a",(function(){return pt})),i.d(e,"c",(function(){return mt})),i.d(e,"m",(function(){return Et}));var n=i("2kYt"),s=i("s2Ay"),o=i("FlRo"),r=i("OZ4H"),a=i("PBFl"),c=i("29Wa"),l=i("nIj0"),u=i("Cd2c"),h=i("csyo"),d=i("F1o0"),p=i("gcUQ"),f=i("HHFY"),g=i("bFHC"),b=(i("t47Z"),i("KoHB"),i("EM62")),m=i("Ssnw"),A=i("X2Q7"),y=i("nyAh"),w=i("SAuR");function v(t,e){1&t&&b.Nb(0,"mat-spinner",4)}function _(t,e){if(1&t){const t=b.Tb();b.Sb(0,"div"),b.Sb(1,"div",5),b.Sb(2,"p"),b.Sb(3,"strong"),b.Jc(4),b.ec(5,"translate"),b.Rb(),b.Jc(6),b.ec(7,"parseDate"),b.Rb(),b.Sb(8,"p"),b.Sb(9,"strong"),b.Jc(10),b.ec(11,"translate"),b.Rb(),b.Jc(12),b.ec(13,"parseDate"),b.Rb(),b.Sb(14,"mat-radio-group",6),b.Zb("ngModelChange",(function(e){return b.xc(t),b.dc().newExpiration=e})),b.Sb(15,"mat-radio-button",7),b.Sb(16,"mat-form-field",8),b.Zb("click",(function(){return b.xc(t),b.tc(23).open()})),b.Sb(17,"mat-label"),b.Jc(18),b.ec(19,"translate"),b.Rb(),b.Sb(20,"input",9),b.Zb("dateChange",(function(){return b.xc(t),b.dc().setExpiration()})),b.Rb(),b.Nb(21,"mat-datepicker-toggle",10),b.Nb(22,"mat-datepicker",11,12),b.Rb(),b.Rb(),b.Sb(24,"mat-radio-button",13),b.Jc(25),b.ec(26,"translate"),b.Rb(),b.Rb(),b.Rb(),b.Sb(27,"div",14),b.Sb(28,"button",15),b.Zb("click",(function(){return b.xc(t),b.dc().onCancel()})),b.Jc(29),b.ec(30,"translate"),b.Rb(),b.Sb(31,"button",16),b.Zb("click",(function(){return b.xc(t),b.dc().onChange()})),b.Jc(32),b.ec(33,"translate"),b.Rb(),b.Rb(),b.Rb()}if(2&t){const t=b.tc(23),e=b.dc();b.Ab(4),b.Kc(b.fc(5,17,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),b.Ab(2),b.Lc(" ",b.fc(7,19,e.currentExpiration),""),b.Ab(4),b.Kc(b.fc(11,21,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),b.Ab(2),b.Lc(" ",e.newExpiration?b.fc(13,23,e.newExpiration):"never",""),b.Ab(2),b.kc("ngModel",e.newExpiration),b.Ab(1),b.lc("value",e.expirationControl.value),b.Ab(3),b.Kc(b.fc(19,25,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),b.Ab(2),b.kc("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",t),b.Ab(1),b.kc("for",t)("disabled",!1),b.Ab(1),b.kc("disabled",!1),b.Ab(3),b.Lc(" ",b.fc(26,27,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),b.Ab(4),b.Lc(" ",b.fc(30,29,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),b.Ab(2),b.kc("disabled",e.expirationControl.invalid),b.Ab(1),b.Lc(" ",b.fc(33,31,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}}let S=(()=>{class t{constructor(t,e,i,n,s,o){switch(this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.translate=s,this.notificator=o,this.mode="vo",this.title="",s.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t),this.data.mode){case"group":s.get("DIALOGS.CHANGE_EXPIRATION.TITLE_GROUP").subscribe(t=>this.title=t);break;case"vo":s.get("DIALOGS.CHANGE_EXPIRATION.TITLE_VO").subscribe(t=>this.title=t);break;case"sponsor":s.get("DIALOGS.CHANGE_EXPIRATION.TITLE_SPONSORSHIP").subscribe(t=>this.title=t)}}ngOnInit(){this.mode=this.data.mode;const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),"sponsor"!==this.mode?(this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.expirationControl=new l.g(this.currentExpiration),this.newExpiration=this.currentExpiration,"never"===this.expirationControl.value&&this.expirationControl.setValue(null)):(this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.expirationControl=new l.g(this.data.sponsor.validityTo),this.newExpiration=this.currentExpiration)}onChange(){this.loading=!0,"sponsor"!==this.mode?this.expirationAttr?this.changeExpiration():this.attributesManagerService.getAttributeDefinitionByName("vo"===this.mode?y.a.MEMBER_DEF_EXPIRATION:y.a.MEMBER_DEF_GROUP_EXPIRATION).subscribe(t=>{this.expirationAttr=t,this.changeExpiration()}):this.changeSponsorshipExpiration()}onCancel(){this.dialogRef.close(!1)}setExpiration(){this.newExpiration=Object(n.I)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue(Object(n.I)(this.expirationControl.value,"yyyy-MM-dd","en"))}changeExpiration(){this.expirationAttr.value="never"===this.newExpiration?null:this.newExpiration,"group"===this.mode?this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1):this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}changeSponsorshipExpiration(){this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===this.newExpiration?null:this.newExpiration).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a),b.Mb(A.c),b.Mb(A.i),b.Mb(s.e),b.Mb(m.l))},t.\u0275cmp=b.Gb({type:t,selectors:[["perun-web-apps-change-expiration-dialog"]],decls:5,vars:3,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["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","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(b.Sb(0,"div",0),b.Sb(1,"h1",1),b.Jc(2),b.Rb(),b.Hc(3,v,1,0,"mat-spinner",2),b.Hc(4,_,34,33,"div",3),b.Rb()),2&t&&(b.Ab(2),b.Kc(e.title),b.Ab(1),b.kc("ngIf",e.loading),b.Ab(1),b.kc("ngIf",!e.loading))},directives:[r.j,n.t,h.c,r.g,d.b,l.r,l.u,d.a,c.c,c.g,u.b,l.c,p.f,l.h,p.h,c.j,p.d,r.c,a.b],pipes:[s.d,w.a],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),t})();var E=i("sEIs");function R(t,e){1&t&&b.Nb(0,"mat-spinner",6)}function C(t,e){if(1&t&&(b.Sb(0,"div",7),b.Sb(1,"div",8),b.Jc(2),b.ec(3,"translate"),b.Rb(),b.Sb(4,"div",9),b.Jc(5),b.ec(6,"translate"),b.Rb(),b.Sb(7,"div",8),b.Jc(8),b.ec(9,"translate"),b.Rb(),b.Sb(10,"div",10),b.Jc(11),b.ec(12,"translate"),b.Rb(),b.Rb()),2&t){const t=b.dc();b.Ab(2),b.Mc("",b.fc(3,5,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," : ",t.data.member.status,""),b.Ab(3),b.Kc(b.fc(6,7,"DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION")),b.Ab(3),b.Lc("",b.fc(9,9,"DIALOGS.CHANGE_STATUS.NEW_STATUS"),": VALID"),b.Ab(3),b.Kc(b.fc(12,11,"DIALOGS.CHANGE_STATUS.CHANGE_VALID"))}}let T=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.memberManager=i,this.notificatorService=n,this.translate=s,this.route=o,this.loading=!1}ngOnInit(){this.route.params.subscribe(t=>{this.theme=t.groupId?"group-theme":"vo-theme"})}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.memberManager.setStatus(this.data.member.id,"VALID").subscribe(()=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(t=>{this.notificatorService.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a),b.Mb(A.i),b.Mb(m.l),b.Mb(s.e),b.Mb(E.a))},t.\u0275cmp=b.Gb({type:t,selectors:[["perun-web-apps-change-member-status-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"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],[1,"text-muted"]],template:function(t,e){1&t&&(b.Sb(0,"div"),b.Sb(1,"h1",0),b.Jc(2),b.ec(3,"translate"),b.Rb(),b.Hc(4,R,1,0,"mat-spinner",1),b.Hc(5,C,13,13,"div",2),b.Sb(6,"div",3),b.Sb(7,"button",4),b.Zb("click",(function(){return e.cancel()})),b.Jc(8),b.ec(9,"translate"),b.Rb(),b.Sb(10,"button",5),b.Zb("click",(function(){return e.submit()})),b.Jc(11),b.ec(12,"translate"),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Cb(e.theme),b.Ab(2),b.Kc(b.fc(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),b.Ab(2),b.kc("ngIf",e.loading),b.Ab(1),b.kc("ngIf",!e.loading),b.Ab(3),b.Lc(" ",b.fc(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),b.Ab(2),b.kc("disabled",e.loading),b.Ab(1),b.Lc(" ",b.fc(12,13,"DIALOGS.CHANGE_STATUS.TITLE")," "))},directives:[r.j,n.t,r.c,a.b,h.c,r.g],pipes:[s.d],styles:[""]}),t})();function k(t,e){1&t&&(b.Sb(0,"h1",7),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")))}function I(t,e){1&t&&(b.Sb(0,"h1",7),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")))}function O(t,e){1&t&&(b.Sb(0,"h1",7),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")))}function D(t,e){1&t&&(b.Sb(0,"h1",7),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")))}function M(t,e){1&t&&b.Nb(0,"mat-spinner",8)}function P(t,e){if(1&t&&(b.Sb(0,"mat-form-field"),b.Nb(1,"input",13),b.ec(2,"translate"),b.Rb()),2&t){const t=b.dc(2);b.Ab(1),b.mc("placeholder","",b.fc(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),b.kc("value",t.shortName)}}function x(t,e){if(1&t&&(b.Sb(0,"mat-form-field",14),b.Nb(1,"textarea",15),b.ec(2,"translate"),b.Sb(3,"mat-error"),b.Jc(4),b.ec(5,"translate"),b.Rb(),b.Rb()),2&t){const t=b.dc(2);b.Ab(1),b.mc("placeholder","",b.fc(2,3,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),b.kc("formControl",t.descriptionCtrl),b.Ab(3),b.Lc(" ",b.fc(5,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_DESCRIPTION")," ")}}function N(t,e){if(1&t&&(b.Sb(0,"div",9),b.Hc(1,P,3,4,"mat-form-field",10),b.Sb(2,"mat-form-field"),b.Nb(3,"input",11),b.ec(4,"translate"),b.Sb(5,"mat-error"),b.Jc(6),b.ec(7,"translate"),b.Rb(),b.Rb(),b.Hc(8,x,6,7,"mat-form-field",12),b.Rb()),2&t){const t=b.dc();b.Ab(1),b.kc("ngIf",2===t.dialogType),b.Ab(2),b.mc("placeholder","",b.fc(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),b.kc("formControl",t.nameCtrl),b.Ab(3),b.Lc(" ",t.invalidNameMessage.length?t.invalidNameMessage:b.fc(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),b.Ab(2),b.kc("ngIf",2!==t.dialogType)}}var L=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({});let F=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=n,this.facilitiesManager=s,this.resourcesManager=o,this.groupsManager=r,this.vosManager=a,this.store=c,this.invalidNameMessage=this.data.dialogType===L.GROUP?this.store.get("groupNameErrorMessage"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===L.GROUP?this.store.get("groupNameSecondaryRegex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case L.FACILITY:this.nameCtrl=new l.g(this.data.facility.name,[l.F.required,l.F.pattern(".*[\\S]+.*"),l.F.maxLength(129)]),this.descriptionCtrl=new l.g(this.data.facility.description,[l.F.required,l.F.pattern(".*[\\S]+.*"),l.F.maxLength(129)]);break;case L.RESOURCE:this.nameCtrl=new l.g(this.data.resource.name,[l.F.required,l.F.pattern(".*[\\S]+.*"),l.F.maxLength(129)]),this.descriptionCtrl=new l.g(this.data.resource.description,[l.F.required,l.F.pattern(".*[\\S]+.*"),l.F.maxLength(129)]);break;case L.GROUP:const t=this.data.group.name.split(":");this.nameCtrl=new l.g(t[t.length-1],[l.F.required,l.F.pattern(".*[\\S]+.*"),l.F.pattern(this.secondaryRegex),l.F.maxLength(129)]),this.descriptionCtrl=new l.g(this.data.group.description,[l.F.required,l.F.pattern(".*[\\S]+.*"),l.F.maxLength(129)]);break;case L.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new l.g(this.data.vo.name,[l.F.required,l.F.pattern(".*[\\S]+.*"),l.F.maxLength(129)]),this.descriptionCtrl=new l.g}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case L.FACILITY:this.editFacility();break;case L.RESOURCE:this.editResource();break;case L.GROUP:this.editGroup();break;case L.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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(t=>{const e=t;e.name=this.nameCtrl.value,e.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:e}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a),b.Mb(m.l),b.Mb(s.e),b.Mb(A.g),b.Mb(A.m),b.Mb(A.h),b.Mb(A.q),b.Mb(m.m))},t.\u0275cmp=b.Gb({type:t,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","","required","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(t,e){1&t&&(b.Sb(0,"div"),b.Hc(1,k,3,3,"h1",0),b.Hc(2,I,3,3,"h1",0),b.Hc(3,O,3,3,"h1",0),b.Hc(4,D,3,3,"h1",0),b.Sb(5,"div",1),b.Hc(6,M,1,0,"mat-spinner",2),b.Hc(7,N,9,9,"div",3),b.Rb(),b.Sb(8,"div",4),b.Sb(9,"button",5),b.Zb("click",(function(){return e.cancel()})),b.Jc(10),b.ec(11,"translate"),b.Rb(),b.Sb(12,"button",6),b.Zb("click",(function(){return e.submit()})),b.Jc(13),b.ec(14,"translate"),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Cb(e.theme),b.Ab(1),b.kc("ngIf",0===e.dialogType),b.Ab(1),b.kc("ngIf",1===e.dialogType),b.Ab(1),b.kc("ngIf",2===e.dialogType),b.Ab(1),b.kc("ngIf",3===e.dialogType),b.Ab(2),b.kc("ngIf",e.loading),b.Ab(1),b.kc("ngIf",!e.loading),b.Ab(3),b.Lc(" ",b.fc(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),b.Ab(2),b.kc("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),b.Ab(1),b.Lc(" ",b.fc(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[n.t,r.g,r.c,a.b,r.j,h.c,c.c,u.b,l.c,l.C,l.r,l.h,c.b,u.d],pipes:[s.d],styles:[""]}),t})();var z=i("8clQ");function H(t,e){1&t&&b.Nb(0,"mat-spinner",8)}function B(t,e){if(1&t&&(b.Sb(0,"div",9),b.Sb(1,"span"),b.Jc(2),b.ec(3,"translate"),b.Sb(4,"b"),b.Jc(5),b.Rb(),b.Rb(),b.Nb(6,"br"),b.Sb(7,"span"),b.Jc(8),b.ec(9,"translate"),b.Sb(10,"b"),b.Jc(11),b.ec(12,"translate"),b.Rb(),b.Rb(),b.Nb(13,"br"),b.Sb(14,"span"),b.Jc(15),b.ec(16,"translate"),b.Sb(17,"b"),b.Jc(18),b.ec(19,"translate"),b.Rb(),b.Rb(),b.Nb(20,"br"),b.Sb(21,"span"),b.Jc(22),b.ec(23,"translate"),b.Sb(24,"b"),b.Jc(25),b.ec(26,"translate"),b.Rb(),b.Rb(),b.Rb()),2&t){const t=b.dc();b.Ab(2),b.Lc(" ",b.fc(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),b.Ab(3),b.Kc(t.group.name),b.Ab(3),b.Lc(" ",b.fc(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),b.Ab(3),b.Kc(b.fc(12,12,t.getSynchronizationType())),b.Ab(4),b.Lc(" ",b.fc(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),b.Ab(3),b.Kc(b.fc(19,16,t.getLastSyncState())),b.Ab(4),b.Lc(" ",b.fc(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),b.Ab(3),b.Kc(b.fc(26,20,t.getLastSyncTime()))}}function j(t,e){if(1&t){const t=b.Tb();b.Sb(0,"button",10),b.Zb("click",(function(){return b.xc(t),b.dc().onForceStructure()})),b.Jc(1),b.ec(2,"translate"),b.Rb()}if(2&t){const t=b.dc();b.kc("disabled",t.loading),b.Ab(1),b.Lc(" ",b.fc(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function G(t,e){if(1&t){const t=b.Tb();b.Sb(0,"button",10),b.Zb("click",(function(){return b.xc(t),b.dc().onForce()})),b.Jc(1),b.ec(2,"translate"),b.Rb()}if(2&t){const t=b.dc();b.kc("disabled",t.loading),b.Ab(1),b.Lc(" ",b.fc(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let U=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,this.loading=!0}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onForceStructure(){this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1)}getSynchronizationType(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}isBasic(){return"BASIC"===this.type}isStructured(){return"STRUCTURED"===this.type}getLastSyncState(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}getLastSyncTime(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[y.a.GROUP_SYNC_ENABLED,y.a.GROUP_LAST_SYNC_STATE,y.a.GROUP_LAST_SYNC_TIMESTAMP,y.a.GROUP_STRUCTURE_SYNC_ENABLED,y.a.GROUP_LAST_STRUCTURE_SYNC_STATE,y.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.group=t,this.syncEnabled=Object(z.l)(this.group.attributes,y.a.GROUP_SYNC_ENABLED).value,this.lastSyncState=Object(z.l)(this.group.attributes,y.a.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=Object(z.l)(this.group.attributes,y.a.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=Object(z.l)(this.group.attributes,y.a.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=Object(z.l)(this.group.attributes,y.a.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=Object(z.l)(this.group.attributes,y.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==this.syncEnabled&&"true"===this.syncEnabled&&(this.type="BASIC"),null!==this.structSyncEnabled&&this.structSyncEnabled&&(this.type="STRUCTURED"),this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a),b.Mb(A.h),b.Mb(m.l))},t.\u0275cmp=b.Gb({type:t,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-icon-button","",3,"click"],["class","ml-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(b.Sb(0,"div"),b.Sb(1,"h1",0),b.Jc(2),b.ec(3,"translate"),b.Rb(),b.Hc(4,H,1,0,"mat-spinner",1),b.Hc(5,B,27,22,"div",2),b.Sb(6,"div",3),b.Sb(7,"div",4),b.Sb(8,"button",5),b.Zb("click",(function(){return e.refresh()})),b.Sb(9,"mat-icon"),b.Jc(10,"refresh"),b.Rb(),b.Rb(),b.Hc(11,j,3,4,"button",6),b.Hc(12,G,3,4,"button",6),b.Sb(13,"button",7),b.Zb("click",(function(){return e.onCancel()})),b.Jc(14),b.ec(15,"translate"),b.Rb(),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Cb(e.theme),b.Ab(2),b.Kc(b.fc(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),b.Ab(2),b.kc("ngIf",e.loading),b.Ab(1),b.kc("ngIf",!e.loading),b.Ab(6),b.kc("ngIf",e.isStructured()),b.Ab(1),b.kc("ngIf",e.isBasic()||e.isStructured()),b.Ab(2),b.Lc(" ",b.fc(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[r.j,n.t,r.c,a.b,g.a,h.c,r.g],pipes:[s.d],styles:[""]}),t})();var K=i("9RND");function V(t,e){1&t&&b.Nb(0,"mat-spinner",7)}function q(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function J(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function W(t,e){if(1&t){const t=b.Tb();b.Sb(0,"div",8),b.Sb(1,"mat-form-field"),b.Sb(2,"mat-label"),b.Jc(3),b.ec(4,"translate"),b.Rb(),b.Sb(5,"input",9,10),b.Zb("ngModelChange",(function(e){return b.xc(t),b.dc().subject=e})),b.Rb(),b.Hc(7,q,3,3,"mat-error",11),b.Rb(),b.Sb(8,"mat-form-field"),b.Sb(9,"mat-label"),b.Jc(10),b.ec(11,"translate"),b.Rb(),b.Sb(12,"textarea",12,13),b.Zb("ngModelChange",(function(e){return b.xc(t),b.dc().message=e})),b.ec(14,"translate"),b.Jc(15," "),b.Rb(),b.Hc(16,J,3,3,"mat-error",11),b.Rb(),b.Rb()}if(2&t){const t=b.tc(6),e=b.tc(13),i=b.dc();b.Ab(3),b.Kc(b.fc(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),b.Ab(2),b.kc("ngModel",i.subject),b.Ab(2),b.kc("ngIf",t.invalid),b.Ab(3),b.Kc(b.fc(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),b.Ab(2),b.lc("placeholder",b.fc(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),b.kc("ngModel",i.message),b.Ab(4),b.kc("ngIf",e.invalid)}}let Z=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},t=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;return e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.call+"\n\n"),this.data.error.payload&&(e=e.concat("Payload:\n"+this.data.error.payload+"\n\n")),e=e.concat("Sended from new Perun Gui, version: "+K.a),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(s.e),b.Mb(m.l),b.Mb(A.k),b.Mb(r.a),b.Mb(m.m))},t.\u0275cmp=b.Gb({type:t,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(t,e){1&t&&(b.Sb(0,"h1",0),b.Jc(1),b.ec(2,"translate"),b.Rb(),b.Hc(3,V,1,0,"mat-spinner",1),b.Hc(4,W,17,13,"div",2),b.Sb(5,"div",3),b.Sb(6,"div",4),b.Sb(7,"button",5),b.Zb("click",(function(){return e.dialogRef.close()})),b.Jc(8),b.ec(9,"translate"),b.Rb(),b.Sb(10,"button",6),b.Zb("click",(function(){return e.sendBugReport()})),b.Jc(11),b.ec(12,"translate"),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),b.Ab(2),b.kc("ngIf",e.loading),b.Ab(1),b.kc("ngIf",!e.loading),b.Ab(4),b.Lc(" ",b.fc(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),b.Ab(2),b.kc("disabled",""===e.message||""===e.subject||e.loading),b.Ab(1),b.Lc(" ",b.fc(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[r.j,n.t,r.c,a.b,h.c,r.g,c.c,c.g,u.b,l.c,l.C,l.r,l.u,c.b],pipes:[s.d],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),Y=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=Object(z.o)();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(Z,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.b),b.Mb(r.a))},t.\u0275cmp=b.Gb({type:t,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(t,e){1&t&&(b.Sb(0,"h1",0),b.Jc(1),b.Rb(),b.Sb(2,"div",1),b.Jc(3),b.Rb(),b.Sb(4,"div",2),b.Sb(5,"div",3),b.Sb(6,"button",4),b.Zb("click",(function(){return e.onBugReportClick()})),b.Jc(7),b.ec(8,"translate"),b.Rb(),b.Sb(9,"button",5),b.Zb("click",(function(){return e.onCloseClick()})),b.Jc(10),b.ec(11,"translate"),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Ab(1),b.Kc(e.data.title),b.Ab(2),b.Lc("\n",e.data.description,"\n"),b.Ab(3),b.kc("hidden","error"!==e.data.type),b.Ab(1),b.Lc(" ",b.fc(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),b.Ab(3),b.Lc(" ",b.fc(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[r.j,r.g,r.c,a.b],pipes:[s.d],styles:[""]}),t})();var $=i("W5/Z");function X(t,e){1&t&&b.Nb(0,"mat-spinner",3)}function Q(t,e){1&t&&b.Nb(0,"th",15)}function tt(t,e){if(1&t&&(b.Sb(0,"td",16),b.Jc(1),b.Rb()),2&t){const t=e.$implicit;b.Ab(1),b.Lc(" ",t.userExtSource.extSource.name," ")}}function et(t,e){1&t&&b.Nb(0,"tr",17)}function it(t,e){1&t&&b.Nb(0,"tr",18)}function nt(t,e){if(1&t){const t=b.Tb();b.Sb(0,"div"),b.Sb(1,"div",4),b.Sb(2,"p"),b.Jc(3),b.ec(4,"translate"),b.ec(5,"customTranslate"),b.Rb(),b.Sb(6,"div",5),b.Jc(7),b.ec(8,"translate"),b.ec(9,"customTranslate"),b.Rb(),b.Sb(10,"table",6),b.Qb(11,7),b.Hc(12,Q,1,0,"th",8),b.Hc(13,tt,2,1,"td",9),b.Pb(),b.Hc(14,et,1,0,"tr",10),b.Hc(15,it,1,0,"tr",11),b.Rb(),b.Rb(),b.Sb(16,"div",12),b.Sb(17,"button",13),b.Zb("click",(function(){return b.xc(t),b.dc().onCancel()})),b.Jc(18),b.ec(19,"translate"),b.ec(20,"customTranslate"),b.Rb(),b.Sb(21,"button",14),b.Zb("click",(function(){return b.xc(t),b.dc().onSubmit()})),b.Jc(22),b.ec(23,"translate"),b.ec(24,"customTranslate"),b.Rb(),b.Rb(),b.Rb()}if(2&t){const t=b.dc();b.Ab(3),b.Lc(" ",b.fc(4,7,b.fc(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),b.Ab(4),b.Lc(" ",b.fc(8,11,b.fc(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),b.Ab(3),b.kc("dataSource",t.dataSource),b.Ab(4),b.kc("matHeaderRowDef",t.displayedColumns),b.Ab(1),b.kc("matRowDefColumns",t.displayedColumns),b.Ab(3),b.Lc(" ",b.fc(19,15,b.fc(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),b.Ab(4),b.Lc(" ",b.fc(23,19,b.fc(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let st=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new o.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 t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a),b.Mb(A.p),b.Mb(s.e),b.Mb(m.l))},t.\u0275cmp=b.Gb({type:t,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(t,e){1&t&&(b.Sb(0,"h1",0),b.Jc(1),b.ec(2,"translate"),b.ec(3,"customTranslate"),b.Rb(),b.Sb(4,"div"),b.Hc(5,X,1,0,"mat-spinner",1),b.Hc(6,nt,25,23,"div",2),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,6,b.fc(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),b.Ab(3),b.Cb(e.theme),b.Ab(1),b.kc("ngIf",e.loading),b.Ab(1),b.kc("ngIf",!e.loading))},directives:[r.j,n.t,h.c,r.g,o.n,o.c,o.i,o.b,o.k,o.m,r.c,a.b,o.h,o.a,o.j,o.l],pipes:[s.d,$.a],styles:[""]}),t})();var ot=i("H0K4");let rt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a))},t.\u0275cmp=b.Gb({type:t,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(t,e){1&t&&(b.Sb(0,"h1",0),b.Jc(1),b.Rb(),b.Sb(2,"div",1),b.Sb(3,"textarea",2),b.Jc(4),b.Rb(),b.Rb(),b.Sb(5,"div",3),b.Sb(6,"button",4),b.Zb("click",(function(){return e.onCancel()})),b.Jc(7),b.ec(8,"translate"),b.Rb(),b.Sb(9,"button",5),b.Jc(10),b.ec(11,"translate"),b.Rb(),b.Rb()),2&t&&(b.Ab(1),b.Kc(e.title),b.Ab(3),b.Kc(e.value),b.Ab(3),b.Lc(" ",b.fc(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),b.Ab(2),b.kc("cdkCopyToClipboard",e.value),b.Ab(1),b.Lc(" ",b.fc(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[r.j,r.g,ot.c,u.b,r.c,a.b,f.a],pipes:[s.d],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})();function at(t,e){1&t&&b.Nb(0,"th",12)}function ct(t,e){if(1&t&&(b.Sb(0,"td",13),b.Jc(1),b.Rb()),2&t){const t=e.$implicit;b.Ab(1),b.Lc(" ",t.displayName," ")}}function lt(t,e){1&t&&b.Nb(0,"tr",14)}function ut(t,e){1&t&&b.Nb(0,"tr",15)}let ht=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.attributesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new o.o(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default: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":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":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a),b.Mb(m.l),b.Mb(s.e),b.Mb(A.c))},t.\u0275cmp=b.Gb({type:t,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(t,e){1&t&&(b.Sb(0,"h1",0),b.Jc(1),b.ec(2,"translate"),b.Rb(),b.Sb(3,"div",1),b.Sb(4,"div"),b.Jc(5),b.ec(6,"translate"),b.Rb(),b.Sb(7,"div",2),b.Jc(8),b.ec(9,"translate"),b.Rb(),b.Sb(10,"table",3),b.Qb(11,4),b.Hc(12,at,1,0,"th",5),b.Hc(13,ct,2,1,"td",6),b.Pb(),b.Hc(14,lt,1,0,"tr",7),b.Hc(15,ut,1,0,"tr",8),b.Rb(),b.Rb(),b.Sb(16,"div",9),b.Sb(17,"button",10),b.Zb("click",(function(){return e.onCancel()})),b.Jc(18),b.ec(19,"translate"),b.Rb(),b.Sb(20,"button",11),b.Zb("click",(function(){return e.onSubmit()})),b.Jc(21),b.ec(22,"translate"),b.Rb(),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),b.Ab(4),b.Lc(" ",b.fc(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),b.Ab(3),b.Lc(" ",b.fc(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),b.Ab(2),b.kc("dataSource",e.dataSource),b.Ab(4),b.kc("matHeaderRowDef",e.displayedColumns),b.Ab(1),b.kc("matRowDefColumns",e.displayedColumns),b.Ab(3),b.Lc(" ",b.fc(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),b.Ab(3),b.Lc(" ",b.fc(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[r.j,r.g,o.n,o.c,o.i,o.b,o.k,o.m,r.c,a.b,o.h,o.a,o.j,o.l],pipes:[s.d],styles:[""]}),t})(),dt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a))},t.\u0275cmp=b.Gb({type:t,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(t,e){1&t&&(b.Sb(0,"h5",0),b.Jc(1),b.ec(2,"translate"),b.Rb(),b.Sb(3,"div",1),b.Sb(4,"mat-form-field"),b.Sb(5,"textarea",2),b.Zb("ngModelChange",(function(t){return e.attributeValue=t})),b.Rb(),b.Rb(),b.Rb(),b.Sb(6,"div",3),b.Sb(7,"button",4),b.Zb("click",(function(){return e.cancel()})),b.Jc(8),b.ec(9,"translate"),b.Rb(),b.Sb(10,"button",5),b.Zb("click",(function(){return e.submit()})),b.Jc(11),b.ec(12,"translate"),b.Rb(),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),b.Ab(4),b.kc("ngModel",e.attributeValue),b.Ab(3),b.Lc(" ",b.fc(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),b.Ab(3),b.Lc(" ",b.fc(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.j,r.g,c.c,ot.c,u.b,l.c,l.r,l.u,r.c,a.b],pipes:[s.d],styles:[""]}),t})(),pt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a))},t.\u0275cmp=b.Gb({type:t,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(t,e){1&t&&(b.Sb(0,"h5",0),b.Jc(1),b.ec(2,"translate"),b.Rb(),b.Sb(3,"div",1),b.Sb(4,"div"),b.Jc(5),b.ec(6,"translate"),b.Rb(),b.Sb(7,"div",2),b.Jc(8),b.Rb(),b.Rb(),b.Sb(9,"div",3),b.Sb(10,"button",4),b.Zb("click",(function(){return e.cancel()})),b.Jc(11),b.ec(12,"translate"),b.Rb(),b.Sb(13,"button",5),b.Zb("click",(function(){return e.submit()})),b.Jc(14),b.ec(15,"translate"),b.Rb(),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),b.Ab(4),b.Lc(" ",b.fc(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),b.Ab(3),b.Lc(" ",e.data.name," "),b.Ab(3),b.Lc(" ",b.fc(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),b.Ab(3),b.Lc(" ",b.fc(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.j,r.g,r.c,a.b],pipes:[s.d],styles:[""]}),t})();var ft=i("FcRk");function gt(t,e){if(1&t&&(b.Sb(0,"app-alert",9),b.Jc(1),b.Rb()),2&t){const t=b.dc();b.Ab(1),b.Kc(t.pendingEmailsMessage)}}function bt(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.ec(3,"customTranslate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,b.fc(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let mt=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new l.g(null,[l.F.required,l.F.pattern(/^(([^<>()\[\].,;:\s@"]+(\.[^<>()\[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"").subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a),b.Mb(s.e),b.Mb(m.l),b.Mb(A.p))},t.\u0275cmp=b.Gb({type:t,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(t,e){1&t&&(b.Sb(0,"h1",0),b.Jc(1),b.ec(2,"translate"),b.ec(3,"customTranslate"),b.Rb(),b.Sb(4,"div",1),b.Hc(5,gt,2,1,"app-alert",2),b.Sb(6,"mat-form-field",3),b.Sb(7,"label",3),b.Nb(8,"input",4),b.ec(9,"translate"),b.ec(10,"customTranslate"),b.Rb(),b.Hc(11,bt,4,5,"mat-error",5),b.Rb(),b.Rb(),b.Sb(12,"div",6),b.Sb(13,"button",7),b.Zb("click",(function(){return e.onCancel()})),b.Jc(14),b.ec(15,"translate"),b.ec(16,"customTranslate"),b.Rb(),b.Sb(17,"button",8),b.Zb("click",(function(){return e.onSubmit()})),b.Jc(18),b.ec(19,"translate"),b.ec(20,"customTranslate"),b.Rb(),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,8,b.fc(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),b.Ab(4),b.kc("ngIf",e.pendingMails.length),b.Ab(3),b.lc("placeholder",b.fc(9,12,b.fc(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),b.kc("formControl",e.emailControl),b.Ab(3),b.kc("ngIf",e.emailControl.invalid),b.Ab(3),b.Lc(" ",b.fc(15,16,b.fc(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),b.Ab(3),b.kc("disabled",!e.emailControl.valid),b.Ab(1),b.Lc(" ",b.fc(19,20,b.fc(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[r.j,r.g,n.t,c.c,u.b,l.c,l.C,l.r,l.h,r.c,a.b,ft.a,c.b],pipes:[s.d,$.a],styles:[""]}),t})();function At(t,e){1&t&&b.Nb(0,"mat-spinner",6)}function yt(t,e){1&t&&b.Nb(0,"th",15)}function wt(t,e){if(1&t&&(b.Sb(0,"td",16),b.Jc(1),b.Rb()),2&t){const t=e.$implicit;b.Ab(1),b.Lc(" ",t," ")}}function vt(t,e){1&t&&b.Nb(0,"tr",17)}function _t(t,e){1&t&&b.Nb(0,"tr",18)}function St(t,e){if(1&t&&(b.Sb(0,"div",7),b.Sb(1,"p"),b.Jc(2),b.ec(3,"translate"),b.Rb(),b.Sb(4,"div",8),b.Jc(5),b.ec(6,"translate"),b.Rb(),b.Sb(7,"table",9),b.Qb(8,10),b.Hc(9,yt,1,0,"th",11),b.Hc(10,wt,2,1,"td",12),b.Pb(),b.Hc(11,vt,1,0,"tr",13),b.Hc(12,_t,1,0,"tr",14),b.Rb(),b.Rb()),2&t){const t=b.dc();b.Ab(2),b.Lc(" ",b.fc(3,5,t.data.description)," "),b.Ab(3),b.Lc(" ",b.fc(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),b.Ab(2),b.kc("dataSource",t.dataSource),b.Ab(4),b.kc("matHeaderRowDef",t.displayedColumns),b.Ab(1),b.kc("matRowDefColumns",t.displayedColumns)}}let Et=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new o.o(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(b.Mb(r.i),b.Mb(r.a))},t.\u0275cmp=b.Gb({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(b.Sb(0,"div"),b.Sb(1,"h1",0),b.Jc(2),b.ec(3,"translate"),b.Rb(),b.Hc(4,At,1,0,"mat-spinner",1),b.Hc(5,St,13,9,"div",2),b.Sb(6,"div",3),b.Sb(7,"button",4),b.Zb("click",(function(){return e.onCancel()})),b.Jc(8),b.ec(9,"translate"),b.Rb(),b.Sb(10,"button",5),b.Zb("click",(function(){return e.onSubmit()})),b.Jc(11),b.ec(12,"translate"),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Cb(e.theme),b.Ab(2),b.Kc(b.fc(3,9,e.data.title)),b.Ab(2),b.kc("ngIf",e.loading),b.Ab(1),b.kc("ngIf",!e.loading),b.Ab(3),b.Lc(" ",b.fc(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),b.Ab(2),b.kc("disabled",e.loading),b.Ab(1),b.Lc(" ",b.fc(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.j,n.t,r.c,a.b,h.c,r.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l],pipes:[s.d],styles:[""]}),t})()},"+Jyz":function(t,e,i){"use strict";i.d(e,"a",(function(){return D}));var n=i("X2Q7"),s=i("cqs0"),o=i("iyZ4"),r=i("8clQ"),a=i("7Y6W"),c=i("jMG3"),l=i("Ssnw"),u=i("EtR/"),h=i("nyAh"),d=i("Iydx"),p=i("EM62"),f=i("sEIs"),g=i("OZ4H"),b=i("0XDM"),m=i("Y2X+"),A=i("2kYt"),y=i("Jb3d"),w=i("A8Ay"),v=i("PBFl"),_=i("csyo"),S=i("pnmw"),E=i("s2Ay");function R(t,e){if(1&t&&(p.Sb(0,"button",10),p.Jc(1),p.ec(2,"translate"),p.Rb()),2&t){const t=p.dc(),e=p.tc(9);p.kc("disabled",t.findSponsorsAuth&&0===t.voSponsors.length)("matMenuTriggerFor",e),p.Ab(1),p.Lc(" ",p.fc(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function C(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",11),p.Zb("click",(function(){return p.xc(t),p.dc().onCreate()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function T(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",11),p.Zb("click",(function(){return p.xc(t),p.dc().onGenerate()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function k(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",12),p.Zb("click",(function(){return p.xc(t),p.dc().onSponsorExistingMember()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function I(t,e){1&t&&p.Nb(0,"mat-spinner",13)}function O(t,e){if(1&t){const t=p.Tb();p.Sb(0,"app-sponsored-members-list",14),p.Zb("page",(function(e){return p.xc(t),p.dc().pageChanged(e)}))("refreshTable",(function(){return p.xc(t),p.dc().refresh()})),p.Rb()}if(2&t){const t=p.dc();p.kc("sponsoredMembers",t.members)("disableRouting",!t.routeAuth)("selection",t.selection)("filterValue",t.searchString)("pageSize",t.pageSize)}}let D=(()=>{class t{constructor(t,e,i,n,r,a,c){this.membersManager=t,this.route=e,this.dialog=i,this.authResolver=n,this.tableConfigService=r,this.storeService=a,this.authzResolver=c,this.members=[],this.voSponsors=[],this.attrNames=[],this.selection=new s.c(!0,[]),this.searchString="",this.loading=!1,this.tableId=o.X}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.voId=t.voId,this.vo={id:this.voId,beanName:"Vo"};const e=["SPONSOR"],i=new Map;this.authResolver.getRolesAuthorization(e,this.vo,i),this.findSponsorsAuth=i.get(e[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(d.a.SPONSOR,this.vo.id,"Vo",[h.a.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(t=>{this.voSponsors=t,this.setAuthRights(),this.refresh()}):(this.setAuthRights(),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 t=Object(r.o)();t.width="620px",t.data={entityId:this.voId,voId:this.voId,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(a.a,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onGenerate(){const t=Object(r.o)();t.width="750px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(c.a,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onSponsorExistingMember(){const t=Object(r.o)();t.width="650px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(u.a,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.voId,this.attrNames).subscribe(t=>{this.selection.clear(),this.members=t,this.setAuthRights(),this.loading=!1})}applyFilter(t){this.searchString=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Mb(n.i),p.Mb(f.a),p.Mb(g.b),p.Mb(l.h),p.Mb(o.pb),p.Mb(l.m),p.Mb(n.d))},t.\u0275cmp=p.Gb({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.Eb("router-component",!0)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable"]],template:function(t,e){1&t&&(p.Sb(0,"div"),p.Sb(1,"h1",0),p.Jc(2),p.ec(3,"translate"),p.Rb(),p.Sb(4,"perun-web-apps-refresh-button",1),p.Zb("refresh",(function(){return e.refresh()})),p.Rb(),p.Sb(5,"span",2),p.ec(6,"translate"),p.Hc(7,R,3,5,"button",3),p.Rb(),p.Sb(8,"mat-menu",null,4),p.Hc(10,C,3,3,"button",5),p.Hc(11,T,3,3,"button",5),p.Rb(),p.Hc(12,k,3,3,"button",6),p.Sb(13,"perun-web-apps-immediate-filter",7),p.Zb("filter",(function(t){return e.applyFilter(t)})),p.Rb(),p.Hc(14,I,1,0,"mat-spinner",8),p.Hc(15,O,1,5,"app-sponsored-members-list",9),p.Rb()),2&t&&(p.Ab(2),p.Kc(p.fc(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),p.Ab(3),p.lc("matTooltip",p.fc(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),p.kc("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),p.Ab(2),p.kc("ngIf",!e.loading&&(e.createAuth||e.generateAuth)),p.Ab(3),p.kc("ngIf",e.createAuth),p.Ab(1),p.kc("ngIf",e.generateAuth),p.Ab(1),p.kc("ngIf",!e.loading&&e.setSponsorshipAuth),p.Ab(1),p.kc("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),p.Ab(1),p.kc("ngIf",e.loading),p.Ab(1),p.kc("ngIf",!e.loading))},directives:[b.a,m.a,A.t,y.e,w.a,v.b,y.d,y.b,_.c,S.a],pipes:[E.d],styles:[""]}),t})()},"+MEm":function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n=i("Ssnw"),s=i("EM62"),o=i("OZ4H"),r=i("2kYt"),a=i("PBFl"),c=i("qvOF"),l=i("tmvS"),u=i("FcRk"),h=i("s2Ay");function d(t,e){if(1&t&&(s.Sb(0,"div",9),s.Nb(1,"perun-web-apps-notification",10),s.Rb()),2&t){const t=e.$implicit;s.Ab(1),s.kc("data",t)("inDialog",!0)}}function p(t,e){if(1&t&&(s.Sb(0,"div",6),s.Sb(1,"cdk-virtual-scroll-viewport",7),s.Hc(2,d,2,2,"div",8),s.Rb(),s.Rb()),2&t){const t=s.dc();s.Ab(2),s.kc("cdkVirtualForOf",t.notifications)}}function f(t,e){1&t&&(s.Sb(0,"app-alert",11),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let g=(()=>{class t{constructor(t,e){this.dialogRef=t,this.notificationStorageService=e}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(o.i),s.Mb(n.k))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-show-notification-history-dialog"]],decls:12,vars:11,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(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Hc(3,p,3,1,"div",1),s.Hc(4,f,3,3,"app-alert",2),s.Sb(5,"div",3),s.Sb(6,"button",4),s.Zb("click",(function(){return e.onClear()})),s.Jc(7),s.ec(8,"translate"),s.Rb(),s.Sb(9,"button",5),s.Zb("click",(function(){return e.onCancel()})),s.Jc(10),s.ec(11,"translate"),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),s.Ab(2),s.kc("ngIf",0!==e.notifications.length),s.Ab(1),s.kc("ngIf",0===e.notifications.length),s.Ab(3),s.Lc(" ",s.fc(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),s.Ab(3),s.Lc(" ",s.fc(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[o.j,r.t,o.c,a.b,c.e,c.a,c.d,l.a,u.a],pipes:[h.d],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t})()},"+Tre":function(t,e,i){"use strict";i.d(e,"a",(function(){return w})),i.d(e,"b",(function(){return R})),i.d(e,"c",(function(){return _}));var n=i("5XID"),s=i("EM62"),o=i("nIj0"),r=i("mFH5"),a=i("5lCh"),c=i("TKFd"),l=i("sg/T");const u=["input"],h=function(){return{enterDuration:150}},d=["*"],p=new s.r("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),f=new s.r("mat-checkbox-click-action");let g=0;const b={provide:o.p,useExisting:Object(s.U)(()=>w),multi:!0};class m{}class A{constructor(t){this._elementRef=t}}const y=Object(r.D)(Object(r.y)(Object(r.z)(Object(r.A)(A))));let w=(()=>{class t extends y{constructor(t,e,i,n,o,r,a,c){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=r,this._animationMode=a,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++g,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.o,this.indeterminateChange=new s.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(o)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=Object(n.c)(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Object(n.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Object(n.c)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new m;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+i}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(s.h),s.Mb(l.h),s.Mb(s.A),s.Xb("tabindex"),s.Mb(f,8),s.Mb(a.a,8),s.Mb(p,8))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(s.Qc(u,!0),s.Qc(r.s,!0)),2&t&&(s.sc(i=s.ac())&&(e._inputElement=i.first),s.sc(i=s.ac())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Vb("id",e.id),s.Bb("tabindex",null),s.Eb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s.zb([b]),s.xb],ngContentSelectors:d,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.jc(),s.Sb(0,"label",0,1),s.Sb(2,"div",2),s.Sb(3,"input",3,4),s.Zb("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Rb(),s.Sb(5,"div",5),s.Nb(6,"div",6),s.Rb(),s.Nb(7,"div",7),s.Sb(8,"div",8),s.cc(),s.Sb(9,"svg",9),s.Nb(10,"path",10),s.Rb(),s.bc(),s.Nb(11,"div",11),s.Rb(),s.Rb(),s.Sb(12,"span",12,13),s.Zb("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Sb(14,"span",14),s.Jc(15,"\xa0"),s.Rb(),s.ic(16),s.Rb(),s.Rb()),2&t){const t=s.tc(1),i=s.tc(13);s.Bb("for",e.inputId),s.Ab(2),s.Eb("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.Ab(1),s.kc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.Bb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),s.Ab(2),s.kc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.oc(18,h))}},directives:[r.s,c.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const v={provide:o.o,useExisting:Object(s.U)(()=>_),multi:!0};let _=(()=>{class t extends o.b{}return t.\u0275fac=function(e){return S(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.zb([v]),s.xb]}),t})();const S=s.Ub(_);let E=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})(),R=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[r.t,r.i,c.c,E],r.i,E]}),t})()},"+TsY":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}whenValueIsArray(t){let e="";return t.forEach((function(t){e=e.concat(t+", ")})),e}whenValueIsMap(t){let e="";return t.forEach((t,i)=>{e=e.concat(i+": "+t+", ")}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"anyToString",type:t,pure:!0}),t})()},"/VkC":function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("csyo"),h=i("PBFl");function d(t,e){1&t&&a.Nb(0,"mat-spinner",4)}function p(t,e){1&t&&a.Nb(0,"th",13)}function f(t,e){if(1&t&&(a.Sb(0,"td",14),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",15)}function b(t,e){1&t&&a.Nb(0,"tr",16)}function m(t,e){if(1&t&&(a.Sb(0,"div",5),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",6),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",7),a.Qb(8,8),a.Hc(9,p,1,0,"th",9),a.Hc(10,f,2,1,"td",10),a.Pb(),a.Hc(11,g,1,0,"tr",11),a.Hc(12,b,1,0,"tr",12),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}function A(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",17),a.Sb(1,"button",18),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"button",19),a.Zb("click",(function(){return a.xc(t),a.dc().onSubmit()})),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),a.Ab(2),a.kc("disabled",t.loading),a.Ab(1),a.Lc(" ",a.fc(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.ownersManagerService=s,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new r.o(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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(c.e),a.Mb(s.j))},t.\u0275cmp=a.Gb({type:t,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"],["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(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Hc(3,d,1,0,"mat-spinner",1),a.Hc(4,m,13,9,"div",2),a.Hc(5,A,7,7,"div",3)),2&t&&(a.Ab(1),a.Kc(a.fc(2,4,"DIALOGS.DELETE_OWNER.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[n.j,l.t,u.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l,n.c,h.b],pipes:[c.d],styles:[""]}),t})()},"/bE8":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("iyZ4"),a=i("cqs0"),c=i("EM62"),l=i("s2Ay"),u=i("2kYt"),h=i("PBFl"),d=i("csyo"),p=i("pynj"),f=i("gcZR");function g(t,e){1&t&&c.Nb(0,"mat-spinner",6)}function b(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-services-list",10),c.Zb("page",(function(e){return c.xc(t),c.dc(2).pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc(2);c.kc("pageSize",t.pageSize)("disableRouting",!0)("services",t.unAssignedServices)("filterValue",t.filterValue)("selection",t.selection)}}function m(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div",7),c.Sb(1,"perun-web-apps-debounce-filter",8),c.Zb("filter",(function(e){return c.xc(t),c.dc().applyFilter(e)})),c.ec(2,"translate"),c.Rb(),c.Hc(3,b,1,5,"app-services-list",9),c.Rb()}if(2&t){const t=c.dc();c.Ab(1),c.lc("placeholder",c.fc(2,2,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),c.Ab(2),c.kc("ngIf",!t.loading)}}let A=(()=>{class t{constructor(t,e,i,n,s,o,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourceManager=s,this.servicesManager=o,this.tableConfigService=c,this.loading=!1,this.selection=new a.c(!0,[]),this.tableId=r.q,this.filterValue=""}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(t=>{this.servicesManager.getServices().subscribe(e=>{this.unAssignedServices=e;for(const i of t)for(const t of e)i.id===t.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(t),1);this.filteredServices=this.unAssignedServices,this.loading=!1})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const t=[];for(const e of this.selection.selected)t.push(e.id);this.resourceManager.assignServices(this.data.resourceId,t).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(s.l),c.Mb(l.e),c.Mb(o.m),c.Mb(o.n),c.Mb(r.pb))},t.\u0275cmp=c.Gb({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"placeholder","filter"],[3,"pageSize","disableRouting","services","filterValue","selection","page",4,"ngIf"],[3,"pageSize","disableRouting","services","filterValue","selection","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,g,1,0,"mat-spinner",1),c.Hc(5,m,4,4,"div",2),c.Sb(6,"div",3),c.Sb(7,"button",4),c.Zb("click",(function(){return e.onCancel()})),c.Jc(8),c.ec(9,"translate"),c.Rb(),c.Sb(10,"button",5),c.Zb("click",(function(){return e.onAdd()})),c.Jc(11),c.ec(12,"translate"),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Cb(e.theme),c.Ab(2),c.Kc(c.fc(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(3),c.Lc(" ",c.fc(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),c.Ab(2),c.kc("disabled",0===e.selection.selected.length||e.loading),c.Ab(1),c.Lc(" ",c.fc(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.ADD_BUTTON")," "))},directives:[n.j,u.t,n.c,h.b,d.c,n.g,p.a,f.a],pipes:[l.d],styles:[""]}),t})()},"/nwi":function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("X2Q7"),s=i("OZ4H"),o=i("FlRo"),r=i("Ssnw"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("FcRk"),p=i("pgvo");function f(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function g(t,e){if(1&t&&a.Nb(0,"app-perun-web-apps-destination-list",11),2&t){const t=a.dc(2);a.kc("destinations",t.destinations)("displayedColumns",t.displayedColumns)}}function b(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"app-alert",8),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"p"),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"div",9),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Hc(10,g,1,2,"app-perun-web-apps-destination-list",10),a.Rb()),2&t){const t=a.dc();a.Ab(1),a.kc("alert_type","warn"),a.Ab(1),a.Kc(a.fc(3,5,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),a.Ab(3),a.Kc(a.fc(6,7,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(9,9,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),a.Ab(2),a.kc("ngIf",!t.loading)}}let m=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.serviceManager=s,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 o.o(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 t=this.destinations.pop();this.serviceManager.removeDestination(t.service.id,t.facility.id,t.destination,t.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(r.l),a.Mb(c.e),a.Mb(n.n))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"alert_type"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Hc(4,f,1,0,"mat-spinner",1),a.Hc(5,b,11,11,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onConfirm()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),a.Ab(2),a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL"),""),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM"),""))},directives:[s.j,l.t,s.c,u.b,h.c,s.g,d.a,p.a],pipes:[c.d],styles:[""]}),t})()},"/vgl":function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,"a",(function(){return n}))},0:function(t,e,i){t.exports=i("zUnb")},"0N5F":function(t,e,i){"use strict";i.d(e,"a",(function(){return N}));var n=i("OZ4H"),s=i("TkCa"),o=i("X2Q7"),r=i("Ssnw"),a=i("EM62"),c=i("2kYt"),l=i("PBFl"),u=i("Y2X+"),h=i("csyo"),d=i("FcRk"),p=i("KZIX"),f=i("29Wa"),g=i("R7+U"),b=i("nIj0"),m=i("mFH5"),A=i("+Tre"),y=i("Cd2c"),w=i("VYu3"),v=i("s2Ay");function _(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",9),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Rb()),2&t&&(a.Ab(2),a.Kc(a.fc(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function S(t,e){1&t&&(a.Sb(0,"h1",9),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function E(t,e){1&t&&a.Nb(0,"mat-spinner",10)}function R(t,e){1&t&&(a.Sb(0,"div",34),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function C(t,e){1&t&&(a.Sb(0,"div",34),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function T(t,e){1&t&&(a.Sb(0,"mat-option",36),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function k(t,e){1&t&&(a.Sb(0,"div",34),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function I(t,e){1&t&&(a.Sb(0,"div",34),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function O(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",37),a.Sb(1,"div",38),a.Sb(2,"div",39),a.Sb(3,"span",40),a.Jc(4),a.ec(5,"translate"),a.Rb(),a.Sb(6,"mat-form-field",18),a.Sb(7,"input",41,42),a.Zb("focus",(function(){return a.xc(t),a.dc(2).isTextFocused=!1}))("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationMail.message.en.subject=e})),a.Rb(),a.Rb(),a.Rb(),a.Sb(9,"div",43),a.Jc(10),a.ec(11,"translate"),a.Rb(),a.Sb(12,"button",44),a.Zb("click",(function(){a.xc(t);const e=a.dc(2);return e.showTags=!e.showTags})),a.Jc(13),a.ec(14,"translate"),a.ec(15,"translate"),a.Rb(),a.Sb(16,"mat-form-field",18),a.Sb(17,"textarea",45,46),a.Zb("focus",(function(){return a.xc(t),a.dc(2).isTextFocused=!0}))("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationMail.message.en.text=e})),a.Jc(19," "),a.Rb(),a.Rb(),a.Rb(),a.Sb(20,"div"),a.Sb(21,"app-tag-bar",47),a.Zb("addedTag",(function(e){a.xc(t);const i=a.tc(8),n=a.tc(18);return a.dc(2).addTag(i,n,"en",e)})),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(4),a.Lc("",a.fc(5,6,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT")," :"),a.Ab(3),a.kc("ngModel",t.applicationMail.message.en.subject),a.Ab(3),a.Lc(" ",a.fc(11,8,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),a.Ab(3),a.Lc(" ",t.showTags?a.fc(14,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):a.fc(15,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),a.Ab(4),a.kc("ngModel",t.applicationMail.message.en.text),a.Ab(3),a.kc("@tagsOpenClose",t.showTags?"open":"closed")}}function D(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",37),a.Sb(1,"div",38),a.Sb(2,"div",39),a.Sb(3,"span",40),a.Jc(4),a.ec(5,"translate"),a.Rb(),a.Sb(6,"mat-form-field",18),a.Sb(7,"input",41,48),a.Zb("focus",(function(){return a.xc(t),a.dc(2).isTextFocused=!1}))("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationMail.message.cs.subject=e})),a.Rb(),a.Rb(),a.Rb(),a.Sb(9,"div",43),a.Jc(10),a.ec(11,"translate"),a.Rb(),a.Sb(12,"button",44),a.Zb("click",(function(){a.xc(t);const e=a.dc(2);return e.showTags=!e.showTags})),a.Jc(13),a.ec(14,"translate"),a.ec(15,"translate"),a.Rb(),a.Sb(16,"mat-form-field",18),a.Sb(17,"textarea",45,49),a.Zb("focus",(function(){return a.xc(t),a.dc(2).isTextFocused=!0}))("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationMail.message.cs.text=e})),a.Jc(19," "),a.Rb(),a.Rb(),a.Rb(),a.Sb(20,"div"),a.Sb(21,"app-tag-bar",47),a.Zb("addedTag",(function(e){a.xc(t);const i=a.tc(8),n=a.tc(18);return a.dc(2).addTag(i,n,"cs",e)})),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(4),a.Lc("",a.fc(5,6,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT")," :"),a.Ab(3),a.kc("ngModel",t.applicationMail.message.cs.subject),a.Ab(3),a.Lc(" ",a.fc(11,8,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),a.Ab(3),a.Lc(" ",t.showTags?a.fc(14,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):a.fc(15,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),a.Ab(4),a.kc("ngModel",t.applicationMail.message.cs.text),a.Ab(3),a.kc("@tagsOpenClose",t.showTags?"open":"closed")}}function M(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",11),a.Sb(1,"div"),a.Sb(2,"app-alert",12),a.Jc(3),a.ec(4,"translate"),a.Rb(),a.Rb(),a.Sb(5,"mat-tab-group",13),a.Sb(6,"mat-tab",14),a.ec(7,"translate"),a.Sb(8,"div",15),a.Sb(9,"span",16),a.Jc(10),a.ec(11,"translate"),a.Rb(),a.Sb(12,"div",17),a.Sb(13,"mat-form-field",18),a.Sb(14,"mat-select",19),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().applicationMail.mailType=e}))("selectionChange",(function(){return a.xc(t),a.dc().notificationExist()})),a.Sb(15,"mat-option",20),a.Jc(16),a.ec(17,"translate"),a.Rb(),a.Sb(18,"mat-option",21),a.Jc(19),a.ec(20,"translate"),a.Rb(),a.Sb(21,"mat-option",22),a.Jc(22),a.ec(23,"translate"),a.Rb(),a.Sb(24,"mat-option",23),a.Jc(25),a.ec(26,"translate"),a.Rb(),a.Sb(27,"mat-option",24),a.Jc(28),a.ec(29,"translate"),a.Rb(),a.Sb(30,"mat-option",25),a.Jc(31),a.ec(32,"translate"),a.Rb(),a.Sb(33,"mat-option",26),a.Jc(34),a.ec(35,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb(),a.Rb(),a.Sb(36,"div",27),a.Nb(37,"span",28),a.Hc(38,R,3,3,"div",29),a.Hc(39,C,3,3,"div",29),a.Rb(),a.Sb(40,"div",15),a.Sb(41,"span",30),a.Jc(42),a.ec(43,"translate"),a.Rb(),a.Sb(44,"div",17),a.Sb(45,"mat-form-field",18),a.Sb(46,"mat-select",19),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().applicationMail.appType=e}))("selectionChange",(function(){return a.xc(t),a.dc().notificationExist()})),a.Sb(47,"mat-option",31),a.Jc(48),a.ec(49,"translate"),a.Rb(),a.Hc(50,T,3,3,"mat-option",32),a.Rb(),a.Rb(),a.Rb(),a.Rb(),a.Sb(51,"div",27),a.Nb(52,"span",28),a.Hc(53,k,3,3,"div",29),a.Hc(54,I,3,3,"div",29),a.Rb(),a.Sb(55,"div",15),a.Sb(56,"span",30),a.Jc(57),a.ec(58,"translate"),a.Rb(),a.Sb(59,"div",17),a.Sb(60,"mat-checkbox",33),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().applicationMail.send=e})),a.Rb(),a.Rb(),a.Rb(),a.Sb(61,"div",27),a.Nb(62,"span",28),a.Sb(63,"div",34),a.Jc(64),a.ec(65,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Sb(66,"mat-tab",14),a.ec(67,"translate"),a.Hc(68,O,22,14,"ng-template",35),a.Rb(),a.Sb(69,"mat-tab",14),a.ec(70,"translate"),a.Hc(71,D,22,14,"ng-template",35),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(1),a.kc("@openClose",t.invalidNotification?"open":"closed"),a.Ab(2),a.Kc(a.fc(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),a.Ab(3),a.lc("label",a.fc(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),a.Ab(4),a.Lc("",a.fc(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),a.Ab(4),a.kc("ngModel",t.applicationMail.mailType)("disabled",!t.data.createMailNotification),a.Ab(2),a.Lc(" ",a.fc(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),a.Ab(3),a.Lc(" ",a.fc(20,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),a.Ab(3),a.Lc(" ",a.fc(23,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),a.Ab(3),a.Lc(" ",a.fc(26,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),a.Ab(3),a.Lc(" ",a.fc(29,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),a.Ab(3),a.Lc(" ",a.fc(32,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),a.Ab(3),a.Lc(" ",a.fc(35,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),a.Ab(4),a.kc("ngIf",!t.data.createMailNotification),a.Ab(1),a.kc("ngIf",t.data.createMailNotification),a.Ab(3),a.Lc("",a.fc(43,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),a.Ab(4),a.kc("ngModel",t.applicationMail.appType)("disabled",!t.data.createMailNotification),a.Ab(2),a.Lc(" ",a.fc(49,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),a.Ab(2),a.kc("ngIf","USER_INVITE"!==t.applicationMail.mailType),a.Ab(3),a.kc("ngIf",!t.data.createMailNotification),a.Ab(1),a.kc("ngIf",t.data.createMailNotification),a.Ab(3),a.Lc("",a.fc(58,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),a.Ab(3),a.kc("ngModel",t.applicationMail.send),a.Ab(4),a.Lc(" ",a.fc(65,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),a.Ab(2),a.lc("label",a.fc(67,55,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_EN")),a.Ab(3),a.lc("label",a.fc(70,57,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_CS"))}}function P(t,e){if(1&t){const t=a.Tb();a.Sb(0,"button",50),a.Zb("click",(function(){return a.xc(t),a.dc().create()})),a.Jc(1),a.ec(2,"translate"),a.Rb()}if(2&t){const t=a.dc();a.kc("disabled",t.invalidNotification||t.loading),a.Ab(1),a.Lc(" ",a.fc(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function x(t,e){if(1&t){const t=a.Tb();a.Sb(0,"button",50),a.Zb("click",(function(){return a.xc(t),a.dc().save()})),a.Jc(1),a.ec(2,"translate"),a.Rb()}if(2&t){const t=a.dc();a.kc("disabled",t.loading||!t.editAuth),a.Ab(1),a.Lc(" ",a.fc(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let N=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.registrarService=e,this.data=i,this.authResolver=n,this.groupsService=s,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.language="en",this.loading=!1}ngOnInit(){this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(t=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[t])}):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(t,e,i,n){let s;s=this.isTextFocused?e:t;const o=s.selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,o)+n+this.applicationMail.message[i].text.substring(o):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,o)+n+this.applicationMail.message[i].subject.substring(o),s.focus()}notificationExist(){for(const t of this.data.applicationMails)if(t.mailType===this.applicationMail.mailType&&t.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(o.l),a.Mb(n.a),a.Mb(r.h),a.Mb(o.h))},t.\u0275cmp=a.Gb({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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","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"],["matTabContent",""],["value","EXTENSION"],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],[1,"font-weight-bold","pr-2"],["matInput","",3,"ngModel","focus","ngModelChange"],["enInput",""],[1,"font-weight-bold"],["mat-flat-button","",3,"click"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["enTextarea",""],[3,"addedTag"],["csInput",""],["csTextarea",""],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(a.Sb(0,"div"),a.Sb(1,"div",0),a.Hc(2,_,4,3,"div",1),a.Hc(3,S,3,3,"ng-template",null,2,a.Ic),a.Hc(5,E,1,0,"mat-spinner",3),a.Hc(6,M,72,59,"div",4),a.Sb(7,"div",5),a.Sb(8,"button",6),a.Zb("click",(function(){return e.cancel()})),a.Jc(9),a.ec(10,"translate"),a.Rb(),a.Hc(11,P,3,4,"button",7),a.Sb(12,"div",8),a.ec(13,"translate"),a.Hc(14,x,3,4,"button",7),a.Rb(),a.Rb(),a.Rb(),a.Rb()),2&t){const t=a.tc(4);a.Db("",e.theme," h-100"),a.Ab(2),a.kc("ngIf",e.data.createMailNotification)("ngIfElse",t),a.Ab(3),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),a.Ab(2),a.kc("ngIf",e.data.createMailNotification),a.Ab(1),a.lc("matTooltip",a.fc(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),a.kc("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),a.Ab(2),a.kc("ngIf",!e.data.createMailNotification)}},directives:[c.t,n.c,l.b,u.a,n.j,h.c,n.g,d.a,p.c,p.a,f.c,g.a,b.r,b.u,m.n,A.a,p.b,y.b,b.c,w.a],pipes:[v.d],styles:[""],data:{animation:[s.h,s.c]}}),t})()},"0XDM":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),s=i("PBFl"),o=i("Y2X+"),r=i("bFHC"),a=i("s2Ay");let c=(()=>{class t{constructor(){this.refresh=new n.o}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(n.Sb(0,"button",0),n.Zb("click",(function(t){return e.onClickbutton(t)})),n.ec(1,"translate"),n.Nb(2,"mat-icon",1),n.Rb()),2&t&&(n.lc("matTooltip",n.fc(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.kc("disabled",e.disabled),n.Ab(2),n.lc("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[s.b,o.a,r.a],pipes:[a.d],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})()},"1Gb8":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),s=i("s2Ay");let o=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t,...e){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_HIDDEN").subscribe(t=>{this.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(t=>{this.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_SHOW").subscribe(t=>{this.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(t=>{this.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(t=>{this.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(t=>{this.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(t=>{this.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(t=>{this.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(t=>{this.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(t=>{this.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(t=>{this.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(t=>{this.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(t=>{this.returnData=t});break;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.e))},t.\u0275pipe=n.Lb({name:"applicationFormWidgetDescription",type:t,pure:!0}),t})()},"1MAX":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("dUuy"),s=i("i9P/"),o=i("sWLk"),r=i("qEfY"),a=i("eY+9"),c=i("/vgl"),l=i("X0qr");const u=t=>{if(t&&"function"==typeof t[r.a])return u=t,t=>{const e=u[r.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(n.a)(t);if(Object(c.a)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[o.a])return e=t,t=>{const i=e[o.a]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,u}},"22FB":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),s=i("8clQ"),o=i("LAw4"),r=i("s2Ay");let a=(()=>{class t{constructor(){this.memberSelected=new n.o,this.memberFullNameFunction=t=>Object(s.w)(t.user)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.memberSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.members)("searchFunction",e.memberFullNameFunction)("mainTextFunction",e.memberFullNameFunction)("selectPlaceholder",n.fc(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",n.fc(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",n.fc(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[o.a],pipes:[r.d],styles:[""]}),t})()},"23RZ":function(t,e,i){"use strict";i.d(e,"a",(function(){return j}));var n=i("EM62"),s=i("iAde"),o=i("cePI"),r=i("FlRo"),a=i("cqs0"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("Ds80"),f=i("sEIs"),g=i("TQS+"),b=i("FcRk"),m=i("s2Ay"),A=i("dhrr"),y=i("aea8");function w(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",22),n.Sb(1,"mat-checkbox",23),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function v(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",24),n.Sb(1,"mat-checkbox",25),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.itemSelectionToggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function _(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function S(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function E(t,e){1&t&&n.Nb(0,"th",22)}function R(t,e){if(1&t&&(n.Sb(0,"td",27),n.Nb(1,"perun-web-apps-recently-viewed-icon",28),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("recentIds",i.recentIds)("id",t.id)}}function C(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function T(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.name)}}function k(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function I(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.vo.name)}}function O(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function D(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.facility.name)}}function M(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function P(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.ec(2,"resourceTagsToString"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.resourceTags))}}function x(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function N(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.description)}}function L(t,e){1&t&&n.Nb(0,"tr",29)}const F=function(t){return[t]};function z(t,e){if(1&t&&(n.Nb(0,"tr",30),n.ec(1,"getResourceRoute"),n.ec(2,"getResourceRoute")),2&t){const t=e.$implicit,i=n.dc();n.Eb("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),n.kc("routerLink",i.disableRouting?null:n.gc(1,6,t,i.routingVo))("perunWebAppsMiddleClickRouterLink",n.pc(12,F,i.disableRouting?null:n.gc(2,9,t,i.routingVo)))}}function H(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function B(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let j=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new a.c(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","facility","tags","description"],this.pageSizeOptions=c.a,this.page=new n.o,this.allSelected=new n.o,this.removeAuth=!1,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.guiAuthResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.o(this.resources),this.setDataSource(),this.dataSource.filter=this.filterValue,this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":if(!t.resourceTags)return t[e];let n="";return t.resourceTags.forEach((function(t){n=n.concat(t.tagName)})),n;default:return t[e]}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}isAllSelected(){const t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1),this.setAuth()}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}setAuth(){this.removeAuth=this.selection.selected.reduce((t,e)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",[e,this.groupToResource]),!0),this.addAuth=this.selection.selected.reduce((t,e)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[e,this.groupToResource]),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds"},outputs:{page:"page",allSelected:"allSelected"},features:[n.yb],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","facility"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,w,2,3,"th",6),n.Hc(7,v,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,_,3,3,"th",9),n.Hc(10,S,2,1,"td",10),n.Pb(),n.Qb(11,11),n.Hc(12,E,1,0,"th",6),n.Hc(13,R,2,2,"td",12),n.Pb(),n.Qb(14,13),n.Hc(15,C,3,3,"th",9),n.Hc(16,T,2,1,"td",12),n.Pb(),n.Qb(17,14),n.Hc(18,k,3,3,"th",9),n.Hc(19,I,2,1,"td",12),n.Pb(),n.Qb(20,15),n.Hc(21,O,3,3,"th",9),n.Hc(22,D,2,1,"td",12),n.Pb(),n.Qb(23,16),n.Hc(24,M,3,3,"th",9),n.Hc(25,P,3,3,"td",12),n.Pb(),n.Qb(26,17),n.Hc(27,x,3,3,"th",9),n.Hc(28,N,2,1,"td",12),n.Pb(),n.Hc(29,L,1,0,"tr",18),n.Hc(30,z,3,14,"tr",19),n.Rb(),n.Rb(),n.Sb(31,"mat-paginator",20),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(32,H,3,3,"app-alert",21),n.Hc(33,B,3,3,"app-alert",21)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(25),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.resources.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.Ab(1),n.kc("ngIf",0===e.resources.length))},directives:[u.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,s.a,h.t,r.h,d.a,r.a,o.b,p.a,r.j,r.l,f.g,g.c,b.a],pipes:[m.d,A.a,y.a],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},"25CY":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"29Wa":function(t,e,i){"use strict";i.d(e,"a",(function(){return Y})),i.d(e,"b",(function(){return L})),i.d(e,"c",(function(){return $})),i.d(e,"d",(function(){return z})),i.d(e,"e",(function(){return X})),i.d(e,"f",(function(){return j})),i.d(e,"g",(function(){return G})),i.d(e,"h",(function(){return U})),i.d(e,"i",(function(){return K})),i.d(e,"j",(function(){return V}));var n=i("TKFd"),s=i("2kYt"),o=i("EM62"),r=i("mFH5"),a=i("5XID"),c=i("ZTXN"),l=i("g6G6"),u=i("KTx3"),h=i("jIqt"),d=i("kuMc"),p=i("J+dc"),f=i("f7+R"),g=i("5lCh"),b=i("E5oP"),m=i("cZZj");const A=["underline"],y=["connectionContainer"],w=["inputContainer"],v=["label"];function _(t,e){1&t&&(o.Qb(0),o.Sb(1,"div",14),o.Nb(2,"div",15),o.Nb(3,"div",16),o.Nb(4,"div",17),o.Rb(),o.Sb(5,"div",18),o.Nb(6,"div",15),o.Nb(7,"div",16),o.Nb(8,"div",17),o.Rb(),o.Pb())}function S(t,e){1&t&&(o.Sb(0,"div",19),o.ic(1,1),o.Rb())}function E(t,e){if(1&t&&(o.Qb(0),o.ic(1,2),o.Sb(2,"span"),o.Jc(3),o.Rb(),o.Pb()),2&t){const t=o.dc(2);o.Ab(3),o.Kc(t._control.placeholder)}}function R(t,e){1&t&&o.ic(0,3,["*ngSwitchCase","true"])}function C(t,e){1&t&&(o.Sb(0,"span",23),o.Jc(1," *"),o.Rb())}function T(t,e){if(1&t){const t=o.Tb();o.Sb(0,"label",20,21),o.Zb("cdkObserveContent",(function(){return o.xc(t),o.dc().updateOutlineGap()})),o.Hc(2,E,4,1,"ng-container",12),o.Hc(3,R,1,0,"ng-content",12),o.Hc(4,C,2,0,"span",22),o.Rb()}if(2&t){const t=o.dc();o.Eb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),o.kc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),o.Bb("for",t._control.id)("aria-owns",t._control.id),o.Ab(2),o.kc("ngSwitchCase",!1),o.Ab(1),o.kc("ngSwitchCase",!0),o.Ab(1),o.kc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function k(t,e){1&t&&(o.Sb(0,"div",24),o.ic(1,4),o.Rb())}function I(t,e){if(1&t&&(o.Sb(0,"div",25,26),o.Nb(2,"span",27),o.Rb()),2&t){const t=o.dc();o.Ab(2),o.Eb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function O(t,e){if(1&t&&(o.Sb(0,"div"),o.ic(1,5),o.Rb()),2&t){const t=o.dc();o.kc("@transitionMessages",t._subscriptAnimationState)}}function D(t,e){if(1&t&&(o.Sb(0,"div",31),o.Jc(1),o.Rb()),2&t){const t=o.dc(2);o.kc("id",t._hintLabelId),o.Ab(1),o.Kc(t.hintLabel)}}function M(t,e){if(1&t&&(o.Sb(0,"div",28),o.Hc(1,D,2,2,"div",29),o.ic(2,6),o.Nb(3,"div",30),o.ic(4,7),o.Rb()),2&t){const t=o.dc();o.kc("@transitionMessages",t._subscriptAnimationState),o.Ab(1),o.kc("ngIf",t.hintLabel)}}const P=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],x=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0,L=(()=>{class t{constructor(){this.id="mat-error-"+N++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o.Bb("id",e.id)},inputs:{id:"id"}}),t})();const F={transitionMessages:Object(f.n)("transitionMessages",[Object(f.k)("enter",Object(f.l)({opacity:1,transform:"translateY(0%)"})),Object(f.m)("void => enter",[Object(f.l)({opacity:0,transform:"translateY(-100%)"}),Object(f.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t}),t})();function H(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let B=0,j=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+B++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.Bb("id",e.id)("align",null),o.Eb("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-label"]]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-placeholder"]]}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matPrefix",""]]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matSuffix",""]]}),t})(),q=0;class J{constructor(t){this._elementRef=t}}const W=Object(r.y)(J,"primary"),Z=new o.r("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Y=new o.r("MatFormField");let $=(()=>{class t extends W{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+q++,this._labelId="mat-form-field-label-"+q++,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(a.c)(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Object(h.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(u.a)(this._label.nativeElement,"transitionend").pipe(Object(p.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(i=>{if("start"===i.align){if(t||this.hintLabel)throw H("start");t=i}else if("end"===i.align){if(e)throw H("end");e=i}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=this._getStartEnd(t.children[0].getBoundingClientRect());let a=0;for(const e of t.children)a+=e.offsetWidth;e=Math.abs(r-o)-5,i=a>0?.75*a+10:0}for(let r=0;r{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},imports:[[s.c,r.i,n.c],r.i]}),t})()},"2Zb0":function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("ajPJ"),s=i("Ssnw"),o=i("8clQ"),r=i("9RND"),a=i("EM62"),c=i("OZ4H"),l=i("2kYt"),u=i("s2Ay");function h(t,e){if(1&t&&(a.Sb(0,"span"),a.Sb(1,"a",13),a.Jc(2),a.Rb(),a.Jc(3,", "),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.kc("href",t.webpage,a.zc),a.Ab(1),a.Lc(" ",t.name,"")}}const d=function(t){return{background:t}},p=function(t){return{color:t}};let f=(()=>{class t{constructor(t,e,i){this.storeService=t,this.dialog=e,this.store=i,this.perunwebpage="",this.perunTeamWebpage="",this.privacyPolicy="",this.userDocumentationWebpage="",this.administratorDocumentationWebpage="",this.supportMail="",this.version="",this.copyright=[],this.backgroundColor=this.store.get("theme","footer_bg_color"),this.footerCopyrightTextColor=this.store.get("theme","footer_copyright_text_color"),this.linksTextColor=this.store.get("theme","footer_links_text_color"),this.footerHeadersTextColor=this.store.get("theme","footer_headers_text_color"),this.githubRepository=this.storeService.get("footer_github_releases"),this.currentYear=(new Date).getFullYear()}ngOnInit(){this.perunwebpage=this.storeService.get("footer_perun_web_web"),this.perunTeamWebpage=this.storeService.get("footer_perun_team_web"),this.privacyPolicy=this.storeService.get("footer_privacy_policy_web"),this.userDocumentationWebpage=this.storeService.get("footer_users_documentation_web"),this.administratorDocumentationWebpage=this.storeService.get("footer_administrator_documentation"),this.supportMail=this.storeService.get("footer_support_mail"),this.version=r.a,this.copyright=this.storeService.get("footer_copyright")}openBugReportDialog(){const t=Object(o.o)();t.width="550px",this.dialog.open(n.a,t)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.m),a.Mb(c.b),a.Mb(s.m))},t.\u0275cmp=a.Gb({type:t,selectors:[["perun-web-apps-footer"]],decls:53,vars:73,consts:[[1,"font-small",3,"ngStyle"],[1,"container-fluid","text-center","text-md-left","pr-xl-5","pl-xl-5"],[1,"row"],[1,"col-md-4","mx-auto","footer-col"],[1,"text-uppercase","font-weight-bold",3,"ngStyle"],[1,"list-unstyled"],["target","_blank",3,"href","ngStyle"],["id","clickable",3,"ngStyle","click"],[3,"ngStyle"],[1,"material-icons","align-bottom"],[1,"my-0"],["id","copyright",1,"footer-copyright","text-center","py-2",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"]],template:function(t,e){1&t&&(a.Sb(0,"footer",0),a.Sb(1,"div",1),a.Sb(2,"div",2),a.Sb(3,"div",3),a.Sb(4,"h6",4),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"ul",5),a.Sb(8,"li"),a.Sb(9,"a",6),a.Jc(10),a.ec(11,"translate"),a.Rb(),a.Rb(),a.Sb(12,"li"),a.Sb(13,"a",6),a.Jc(14),a.ec(15,"translate"),a.Rb(),a.Rb(),a.Sb(16,"li"),a.Sb(17,"a",6),a.Jc(18),a.ec(19,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb(),a.Sb(20,"div",3),a.Sb(21,"h6",4),a.Jc(22),a.ec(23,"translate"),a.Rb(),a.Sb(24,"ul",5),a.Sb(25,"li"),a.Sb(26,"a",6),a.Jc(27),a.ec(28,"translate"),a.Rb(),a.Rb(),a.Sb(29,"li"),a.Sb(30,"a",6),a.Jc(31),a.ec(32,"translate"),a.Rb(),a.Rb(),a.Sb(33,"li"),a.Sb(34,"span",7),a.Zb("click",(function(){return e.openBugReportDialog()})),a.Jc(35),a.ec(36,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb(),a.Sb(37,"div",3),a.Sb(38,"h6",4),a.Jc(39),a.ec(40,"translate"),a.Rb(),a.Sb(41,"ul",5),a.Sb(42,"li",8),a.Sb(43,"i",9),a.Jc(44," mail "),a.Rb(),a.Jc(45),a.Rb(),a.Rb(),a.Rb(),a.Rb(),a.Rb(),a.Nb(46,"hr",10),a.Sb(47,"div",11),a.Jc(48),a.Hc(49,h,4,2,"span",12),a.Jc(50," Version "),a.Sb(51,"a",13),a.Jc(52),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.kc("ngStyle",a.pc(49,d,e.backgroundColor)),a.Ab(4),a.kc("ngStyle",a.pc(51,p,e.footerHeadersTextColor)),a.Ab(1),a.Lc(" ",a.fc(6,31,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.ABOUT_PERUN")," "),a.Ab(4),a.kc("href",e.perunwebpage,a.zc)("ngStyle",a.pc(53,p,e.linksTextColor)),a.Ab(1),a.Kc(a.fc(11,33,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PERUN_WEB")),a.Ab(3),a.kc("href",e.perunTeamWebpage,a.zc)("ngStyle",a.pc(55,p,e.linksTextColor)),a.Ab(1),a.Kc(a.fc(15,35,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PERUN_TEAM")),a.Ab(3),a.kc("href",e.privacyPolicy,a.zc)("ngStyle",a.pc(57,p,e.linksTextColor)),a.Ab(1),a.Kc(a.fc(19,37,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PRIVACY_POLICY")),a.Ab(3),a.kc("ngStyle",a.pc(59,p,e.footerHeadersTextColor)),a.Ab(1),a.Lc(" ",a.fc(23,39,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.HELP")," "),a.Ab(4),a.kc("href",e.userDocumentationWebpage,a.zc)("ngStyle",a.pc(61,p,e.linksTextColor)),a.Ab(1),a.Kc(a.fc(28,41,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.USER_DOCUMENTATION")),a.Ab(3),a.kc("href",e.administratorDocumentationWebpage,a.zc)("ngStyle",a.pc(63,p,e.linksTextColor)),a.Ab(1),a.Kc(a.fc(32,43,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.ADMINISTRATOR_DOCUMENTATION")),a.Ab(3),a.kc("ngStyle",a.pc(65,p,e.linksTextColor)),a.Ab(1),a.Kc(a.fc(36,45,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.REPORT_ISSUE")),a.Ab(3),a.kc("ngStyle",a.pc(67,p,e.footerHeadersTextColor)),a.Ab(1),a.Lc(" ",a.fc(40,47,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.SUPPORT")," "),a.Ab(3),a.kc("ngStyle",a.pc(69,p,e.linksTextColor)),a.Ab(3),a.Lc(" ",e.supportMail," "),a.Ab(2),a.kc("ngStyle",a.pc(71,p,e.footerCopyrightTextColor)),a.Ab(1),a.Lc(" \xa9 ",e.currentYear," Copyright: "),a.Ab(1),a.kc("ngForOf",e.copyright),a.Ab(2),a.kc("href",e.githubRepository,a.zc),a.Ab(1),a.Kc(e.version))},directives:[l.w,l.s],pipes:[u.d],styles:["footer[_ngcontent-%COMP%]{height:100%}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap}a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}li[_ngcontent-%COMP%]{color:#e0e0e0}#clickable[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},"2kYt":function(t,e,i){"use strict";i.d(e,"a",(function(){return w})),i.d(e,"b",(function(){return Pt})),i.d(e,"c",(function(){return $t})),i.d(e,"d",(function(){return Jt})),i.d(e,"e",(function(){return c})),i.d(e,"f",(function(){return zt})),i.d(e,"g",(function(){return Vt})),i.d(e,"h",(function(){return _})),i.d(e,"i",(function(){return Bt})),i.d(e,"j",(function(){return jt})),i.d(e,"k",(function(){return Gt})),i.d(e,"l",(function(){return Ut})),i.d(e,"m",(function(){return h})),i.d(e,"n",(function(){return S})),i.d(e,"o",(function(){return A})),i.d(e,"p",(function(){return xt})),i.d(e,"q",(function(){return dt})),i.d(e,"r",(function(){return pt})),i.d(e,"s",(function(){return gt})),i.d(e,"t",(function(){return mt})),i.d(e,"u",(function(){return Et})),i.d(e,"v",(function(){return Rt})),i.d(e,"w",(function(){return Ct})),i.d(e,"x",(function(){return vt})),i.d(e,"y",(function(){return _t})),i.d(e,"z",(function(){return St})),i.d(e,"A",(function(){return Tt})),i.d(e,"B",(function(){return v})),i.d(e,"C",(function(){return qt})),i.d(e,"D",(function(){return l})),i.d(e,"E",(function(){return Yt})),i.d(e,"F",(function(){return Lt})),i.d(e,"G",(function(){return Ft})),i.d(e,"H",(function(){return te})),i.d(e,"I",(function(){return W})),i.d(e,"J",(function(){return Qt})),i.d(e,"K",(function(){return a})),i.d(e,"L",(function(){return Xt})),i.d(e,"M",(function(){return o})),i.d(e,"N",(function(){return ht})),i.d(e,"O",(function(){return r}));var n=i("EM62");let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.r("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Ib)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(n.Wb)(d)}const h=new n.r("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=o().getLocation(),this._history=o().getHistory()}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){o().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){o().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(c))},t.\u0275prov=Object(n.Ib)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d(Object(n.Wb)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function b(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function m(t){return t&&"?"!==t[0]?"?"+t:t}let A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Ib)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(n.Wb)(c).location;return new v(Object(n.Wb)(l),e&&e.origin||"")}const w=new n.r("appBaseHref");let v=(()=>{class t extends A{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+m(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+m(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+m(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(l),n.Wb(w,8))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends A{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+m(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+m(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(l),n.Wb(w,8))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t{constructor(t,e){this._subject=new n.o,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=b(R(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+m(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,R(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+m(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+m(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(A),n.Wb(l))},t.normalizeQueryParams=m,t.joinWithSlash=g,t.stripTrailingSlash=b,t.\u0275prov=Object(n.Ib)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new S(Object(n.Wb)(A),Object(n.Wb)(l))}function R(t){return t.replace(/\/index.html$/,"")}const C={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var T=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),k=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),I=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),O=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),D=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),M=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function P(t,e){return B(Object(n.kb)(t)[n.bb.DateFormat],e)}function x(t,e){return B(Object(n.kb)(t)[n.bb.TimeFormat],e)}function N(t,e){return B(Object(n.kb)(t)[n.bb.DateTimeFormat],e)}function L(t,e){const i=Object(n.kb)(t),s=i[n.bb.NumberSymbols][e];if(void 0===s){if(e===M.CurrencyDecimal)return i[n.bb.NumberSymbols][M.Decimal];if(e===M.CurrencyGroup)return i[n.bb.NumberSymbols][M.Group]}return s}function F(t,e){return Object(n.kb)(t)[n.bb.NumberFormats][e]}const z=n.nb;function H(t){if(!t[n.bb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.bb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function B(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function j(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const G=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},K=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var V=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),q=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),J=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function W(t,e,i,s){let o=function(t){if(nt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,i,n]=t.split("-").map(t=>+t);return new Date(e,i-1,n)}let i;if(i=t.match(G))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,l),e}(i)}const e=new Date(t);if(!nt(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,i){const s=function(t){return Object(n.kb)(t)[n.bb.LocaleId]}(e);if(U[s]=U[s]||{},U[s][i])return U[s][i];let o="";switch(i){case"shortDate":o=P(e,D.Short);break;case"mediumDate":o=P(e,D.Medium);break;case"longDate":o=P(e,D.Long);break;case"fullDate":o=P(e,D.Full);break;case"shortTime":o=x(e,D.Short);break;case"mediumTime":o=x(e,D.Medium);break;case"longTime":o=x(e,D.Long);break;case"fullTime":o=x(e,D.Full);break;case"short":const i=t(e,"shortTime"),n=t(e,"shortDate");o=Z(N(e,D.Short),[i,n]);break;case"medium":const s=t(e,"mediumTime"),r=t(e,"mediumDate");o=Z(N(e,D.Medium),[s,r]);break;case"long":const a=t(e,"longTime"),c=t(e,"longDate");o=Z(N(e,D.Long),[a,c]);break;case"full":const l=t(e,"fullTime"),u=t(e,"fullDate");o=Z(N(e,D.Full),[l,u])}return o&&(U[s][i]=o),o}(i,e)||e;let r,a=[];for(;e;){if(r=K.exec(e),!r){a.push(e);break}{a=a.concat(r.slice(1));const t=a.pop();if(!t)break;e=t}}let c=o.getTimezoneOffset();s&&(c=it(s,c),o=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(it(e,n)-n))}(o,s));let l="";return a.forEach(t=>{const e=function(t){if(et[t])return et[t];let e;switch(t){case"G":case"GG":case"GGG":e=X(J.Eras,O.Abbreviated);break;case"GGGG":e=X(J.Eras,O.Wide);break;case"GGGGG":e=X(J.Eras,O.Narrow);break;case"y":e=$(q.FullYear,1,0,!1,!0);break;case"yy":e=$(q.FullYear,2,0,!0,!0);break;case"yyy":e=$(q.FullYear,3,0,!1,!0);break;case"yyyy":e=$(q.FullYear,4,0,!1,!0);break;case"M":case"L":e=$(q.Month,1,1);break;case"MM":case"LL":e=$(q.Month,2,1);break;case"MMM":e=X(J.Months,O.Abbreviated);break;case"MMMM":e=X(J.Months,O.Wide);break;case"MMMMM":e=X(J.Months,O.Narrow);break;case"LLL":e=X(J.Months,O.Abbreviated,I.Standalone);break;case"LLLL":e=X(J.Months,O.Wide,I.Standalone);break;case"LLLLL":e=X(J.Months,O.Narrow,I.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=$(q.Date,1);break;case"dd":e=$(q.Date,2);break;case"E":case"EE":case"EEE":e=X(J.Days,O.Abbreviated);break;case"EEEE":e=X(J.Days,O.Wide);break;case"EEEEE":e=X(J.Days,O.Narrow);break;case"EEEEEE":e=X(J.Days,O.Short);break;case"a":case"aa":case"aaa":e=X(J.DayPeriods,O.Abbreviated);break;case"aaaa":e=X(J.DayPeriods,O.Wide);break;case"aaaaa":e=X(J.DayPeriods,O.Narrow);break;case"b":case"bb":case"bbb":e=X(J.DayPeriods,O.Abbreviated,I.Standalone,!0);break;case"bbbb":e=X(J.DayPeriods,O.Wide,I.Standalone,!0);break;case"bbbbb":e=X(J.DayPeriods,O.Narrow,I.Standalone,!0);break;case"B":case"BB":case"BBB":e=X(J.DayPeriods,O.Abbreviated,I.Format,!0);break;case"BBBB":e=X(J.DayPeriods,O.Wide,I.Format,!0);break;case"BBBBB":e=X(J.DayPeriods,O.Narrow,I.Format,!0);break;case"h":e=$(q.Hours,1,-12);break;case"hh":e=$(q.Hours,2,-12);break;case"H":e=$(q.Hours,1);break;case"HH":e=$(q.Hours,2);break;case"m":e=$(q.Minutes,1);break;case"mm":e=$(q.Minutes,2);break;case"s":e=$(q.Seconds,1);break;case"ss":e=$(q.Seconds,2);break;case"S":e=$(q.FractionalSeconds,1);break;case"SS":e=$(q.FractionalSeconds,2);break;case"SSS":e=$(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Q(V.Short);break;case"ZZZZZ":e=Q(V.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Q(V.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Q(V.Long);break;default:return null}return et[t]=e,e}(t);l+=e?e(o,i,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Z(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,i){return null!=e&&i in e?e[i]:t}))),t}function Y(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===q.Hours)0===a&&-12===i&&(a=12);else if(t===q.FractionalSeconds)return c=e,Y(a,3).substr(0,c);var c;const l=L(r,M.MinusSign);return Y(a,e,l,n,s)}}function X(t,e,i=I.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case J.Months:return function(t,e,i){const s=Object(n.kb)(t),o=B([s[n.bb.MonthsFormat],s[n.bb.MonthsStandalone]],e);return B(o,i)}(e,o,s)[t.getMonth()];case J.Days:return function(t,e,i){const s=Object(n.kb)(t),o=B([s[n.bb.DaysFormat],s[n.bb.DaysStandalone]],e);return B(o,i)}(e,o,s)[t.getDay()];case J.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=Object(n.kb)(t);return H(e),(e[n.bb.ExtraData][2]||[]).map(t=>"string"==typeof t?j(t):[j(t[0]),j(t[1])])}(e),i=function(t,e,i){const s=Object(n.kb)(t);H(s);const o=B([s[n.bb.ExtraData][0],s[n.bb.ExtraData][1]],e)||[];return B(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case V.Short:return(s>=0?"+":"")+Y(r,2,o)+Y(Math.abs(s%60),2,o);case V.ShortGMT:return"GMT"+(s>=0?"+":"")+Y(r,1,o);case V.Long:return"GMT"+(s>=0?"+":"")+Y(r,2,o)+":"+Y(Math.abs(s%60),2,o);case V.Extended:return 0===n?"Z":(s>=0?"+":"")+Y(r,2,o)+":"+Y(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=(o=i,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}var o;return Y(s,t,L(n,M.MinusSign))}}const et={};function it(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function nt(t){return t instanceof Date&&!isNaN(t.valueOf())}const st=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ot(t,e,i,n,s,o,r=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,i,n,s,o,r=Math.abs(t)+"",a=0;for((i=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(i<0&&(i=n),i+=+r.slice(n+1),r=r.substring(0,n)):i<0&&(i=r.length),n=0;"0"===r.charAt(n);n++);if(n===(o=r.length))e=[0],i=1;else{for(o--;"0"===r.charAt(o);)o--;for(i-=n,e=[],s=0;n<=o;n++,s++)e[s]=Number(r.charAt(n))}return i>22&&(e=e.splice(0,21),a=i-1,i=1),{digits:e,exponent:a,integerLen:i}}(t);r&&(l=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(o){const t=o.match(st);if(null===t)throw new Error(o+" is not a valid digit info");const e=t[1],i=t[3],n=t[5];null!=e&&(u=at(e)),null!=i&&(h=at(i)),null!=n?d=at(n):null!=i&&h>d&&(d=h)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,s=n.length-t.integerLen;const o=Math.min(Math.max(e,s),i);let r=o+t.integerLen,a=n[r];if(r>0){n.splice(Math.max(t.integerLen,r));for(let t=r;t=5)if(r-1<0){for(let e=0;e>r;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[r-1]++;for(;s=l?n.pop():c=!1),e>=10?1:0}),0);u&&(n.unshift(u),t.integerLen++)}(l,h,d);let p=l.digits,f=l.integerLen;const g=l.exponent;let b=[];for(c=p.every(t=>!t);f0?b=p.splice(f,p.length):(b=p,p=[0]);const m=[];for(p.length>=e.lgSize&&m.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)m.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&m.unshift(p.join("")),a=m.join(L(i,n)),b.length&&(a+=L(i,s)+b.join("")),g&&(a+=L(i,M.Exponential)+"+"+g)}else a=L(i,M.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function rt(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],o=n[1],r=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=r[0],c=r[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u-1)return s;if(s=i.getPluralCategory(t,n),e.indexOf(s)>-1)return s;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}let ut=(()=>{class t extends ct{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(z(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(n.v))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();function ht(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let dt=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(n.qb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(n.vb)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.t),n.Mb(n.u),n.Mb(n.l),n.Mb(n.F))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),pt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(n.y);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(n.j)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.Q))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[n.yb]}),t})();class ft{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(n.W)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ft(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new bt(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new bt(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.Q),n.Mb(n.M),n.Mb(n.t))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class bt{constructor(t,e){this.record=t,this.view=e}}let mt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new At,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){yt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){yt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.Q),n.Mb(n.M))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class At{constructor(){this.$implicit=null,this.ngIf=null}}function yt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(n.vb)(e)}'.`)}class wt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let vt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new wt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.Q),n.Mb(n.M),n.Mb(vt,1))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),St=(()=>{class t{constructor(t,e,i){i._addDefault(new wt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.Q),n.Mb(n.M),n.Mb(vt,1))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Et=(()=>{class t{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=lt(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(ct))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),t})(),Rt=(()=>{class t{constructor(t,e,i,n){this.value=t;const s=!isNaN(Number(t));n.addCase(s?"="+t:t,new wt(i,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb("ngPluralCase"),n.Mb(n.M),n.Mb(n.Q),n.Mb(Et,1))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngPluralCase",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.u),n.Mb(n.F))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Tt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){for(let t of i)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.Q))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.yb]}),t})();function kt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(n.vb)(t)}'`)}class It{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ot{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Dt=new Ot,Mt=new It;let Pt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(n.sb)(e))return Dt;if(Object(n.rb)(e))return Mt;throw kt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Yb())},t.\u0275pipe=n.Lb({name:"async",type:t,pure:!1}),t})(),xt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw kt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"lowercase",type:t,pure:!0}),t})();const Nt=/(?:[A-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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\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-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\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]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Lt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw kt(t,e);return e.replace(Nt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"titlecase",type:t,pure:!0}),t})(),Ft=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw kt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"uppercase",type:t,pure:!0}),t})(),zt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return W(e,i,s||this.locale,n)}catch(o){throw kt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.v))},t.\u0275pipe=n.Lb({name:"date",type:t,pure:!0}),t})();const Ht=/#/g;let Bt=(()=>{class t{constructor(t){this._localization=t}transform(e,i,n){if(null==e)return"";if("object"!=typeof i||null===i)throw kt(t,i);return i[lt(e,Object.keys(i),this._localization,n)].replace(Ht,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(ct))},t.\u0275pipe=n.Lb({name:"i18nPlural",type:t,pure:!0}),t})(),jt=(()=>{class t{transform(e,i){if(null==e)return"";if("object"!=typeof i||"string"!=typeof e)throw kt(t,i);return i.hasOwnProperty(e)?i[e]:i.hasOwnProperty("other")?i.other:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"i18nSelect",type:t,pure:!0}),t})(),Gt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"json",type:t,pure:!1}),t})(),Ut=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Kt){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.u))},t.\u0275pipe=n.Lb({name:"keyvalue",type:t,pure:!1}),t})();function Kt(t,e){const i=t.key,n=e.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i{class t{constructor(t){this._locale=t}transform(e,i,n){if(Wt(e))return null;n=n||this._locale;try{return function(t,e,i){return ot(t,rt(F(e,T.Decimal),L(e,M.MinusSign)),e,M.Group,M.Decimal,i)}(Zt(e),n,i)}catch(s){throw kt(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.v))},t.\u0275pipe=n.Lb({name:"number",type:t,pure:!0}),t})(),qt=(()=>{class t{constructor(t){this._locale=t}transform(e,i,n){if(Wt(e))return null;n=n||this._locale;try{return function(t,e,i){return ot(t,rt(F(e,T.Percent),L(e,M.MinusSign)),e,M.Group,M.Decimal,i,!0).replace(new RegExp("%","g"),L(e,M.PercentSign))}(Zt(e),n,i)}catch(s){throw kt(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.v))},t.\u0275pipe=n.Lb({name:"percent",type:t,pure:!0}),t})(),Jt=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,i,s="symbol",o,r){if(Wt(e))return null;r=r||this._locale,"boolean"==typeof s&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),s=s?"symbol":"code");let a=i||this._defaultCurrencyCode;"code"!==s&&(a="symbol"===s||"symbol-narrow"===s?function(t,e,i="en"){const s=function(t){return Object(n.kb)(t)[n.bb.Currencies]}(i)[t]||C[t]||[],o=s[1];return"narrow"===e&&"string"==typeof o?o:s[0]||t}(a,"symbol"===s?"wide":"narrow",r):s);try{return function(t,e,i,n,s){const o=rt(F(e,T.Currency),L(e,M.MinusSign));return o.minFrac=function(t){let e;const i=C[t];return i&&(e=i[2]),"number"==typeof e?e:2}(n),o.maxFrac=o.minFrac,ot(t,o,e,M.CurrencyGroup,M.CurrencyDecimal,s).replace("\xa4",i).replace("\xa4","").trim()}(Zt(e),r,a,i,o)}catch(c){throw kt(t,c.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.v),n.Mb(n.k))},t.\u0275pipe=n.Lb({name:"currency",type:t,pure:!0}),t})();function Wt(t){return null==t||""===t||t!=t}function Zt(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}let Yt=(()=>{class t{transform(e,i,n){if(null==e)return e;if(!this.supports(e))throw kt(t,e);return e.slice(i,n)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"slice",type:t,pure:!1}),t})(),$t=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[{provide:ct,useClass:ut}]}),t})();const Xt="browser";function Qt(t){return t===Xt}let te=(()=>{class t{}return t.\u0275prov=Object(n.Ib)({token:t,providedIn:"root",factory:()=>new ee(Object(n.Wb)(c),window,Object(n.Wb)(n.n))}),t})();class ee{constructor(t,e,i){this.document=t,this.window=e,this.errorHandler=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=ie(this.window.history)||ie(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function ie(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},"3EQ+":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("X2Q7"),o=i("EM62"),r=i("2kYt"),a=i("PBFl"),c=i("csyo"),l=i("29Wa"),u=i("Cd2c"),h=i("nIj0"),d=i("R7+U"),p=i("mFH5"),f=i("s2Ay");function g(t,e){1&t&&o.Nb(0,"mat-spinner",6)}function b(t,e){if(1&t){const t=o.Tb();o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Sb(3,"mat-form-field",9),o.Sb(4,"mat-select",10),o.Zb("valueChange",(function(e){return o.xc(t),o.dc(2).embeddedState=e})),o.Sb(5,"mat-option",11),o.Jc(6),o.ec(7,"translate"),o.Rb(),o.Sb(8,"mat-option",12),o.Jc(9),o.ec(10,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Rb()}if(2&t){const t=o.dc(2);o.Ab(1),o.Lc(" ",o.fc(2,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),": "),o.Ab(3),o.kc("value",t.embeddedState),o.Ab(2),o.Kc(o.fc(7,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.Ab(3),o.Kc(o.fc(10,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function m(t,e){if(1&t){const t=o.Tb();o.Sb(0,"div",7),o.Sb(1,"div"),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Sb(4,"mat-form-field"),o.Sb(5,"input",8),o.Zb("ngModelChange",(function(e){return o.xc(t),o.dc().moduleName=e})),o.Rb(),o.Rb(),o.Sb(6,"div"),o.Jc(7),o.ec(8,"translate"),o.Rb(),o.Sb(9,"mat-form-field",9),o.Sb(10,"mat-select",10),o.Zb("valueChange",(function(e){return o.xc(t),o.dc().initialState=e})),o.Sb(11,"mat-option",11),o.Jc(12),o.ec(13,"translate"),o.Rb(),o.Sb(14,"mat-option",12),o.Jc(15),o.ec(16,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Sb(17,"div"),o.Jc(18),o.ec(19,"translate"),o.Rb(),o.Sb(20,"mat-form-field",9),o.Sb(21,"mat-select",10),o.Zb("valueChange",(function(e){return o.xc(t),o.dc().extensionState=e})),o.Sb(22,"mat-option",11),o.Jc(23),o.ec(24,"translate"),o.Rb(),o.Sb(25,"mat-option",12),o.Jc(26),o.ec(27,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(28,b,11,10,"div",13),o.Rb()}if(2&t){const t=o.dc();o.Ab(2),o.Kc(o.fc(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.Ab(3),o.kc("ngModel",t.moduleName),o.Ab(2),o.Lc(" ",o.fc(8,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),": "),o.Ab(3),o.kc("value",t.initialState),o.Ab(2),o.Kc(o.fc(13,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.Ab(3),o.Kc(o.fc(16,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.Ab(3),o.Lc(" ",o.fc(19,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),": "),o.Ab(3),o.kc("value",t.extensionState),o.Ab(2),o.Kc(o.fc(24,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.Ab(3),o.Kc(o.fc(27,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.Ab(2),o.kc("ngIf","group"===t.entity)}}let A=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.registrarManager=i,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}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(t=>{this.dialogRef.close(t)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.i),o.Mb(n.a),o.Mb(s.l))},t.\u0275cmp=o.Gb({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(t,e){1&t&&(o.Sb(0,"div"),o.Sb(1,"h1",0),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Hc(4,g,1,0,"mat-spinner",1),o.Hc(5,m,29,25,"div",2),o.Sb(6,"div",3),o.Sb(7,"button",4),o.Zb("click",(function(){return e.onCancel()})),o.Jc(8),o.ec(9,"translate"),o.Rb(),o.Sb(10,"button",5),o.Zb("click",(function(){return e.submit()})),o.Jc(11),o.ec(12,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Cb(e.theme),o.Ab(2),o.Kc(o.fc(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.Ab(2),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading),o.Ab(3),o.Lc(" ",o.fc(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.Ab(2),o.kc("disabled",e.loading),o.Ab(1),o.Lc(" ",o.fc(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.j,r.t,n.c,a.b,c.c,n.g,l.c,u.b,h.c,h.r,h.u,d.a,p.n],pipes:[f.d],styles:[""]}),t})()},"3Uyd":function(t,e,i){"use strict";i.d(e,"a",(function(){return K})),i.d(e,"b",(function(){return q})),i.d(e,"c",(function(){return H})),i.d(e,"d",(function(){return B})),i.d(e,"e",(function(){return L})),i.d(e,"f",(function(){return G})),i.d(e,"g",(function(){return j})),i.d(e,"h",(function(){return U}));var n=i("EM62"),s=i("5XID"),o=i("ZTXN"),r=i("bwdy"),a=i("cqs0");let c=0,l=(()=>{class t{constructor(){this._stateChanges=new o.a,this._openCloseAllActions=new o.a,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=Object(s.c)(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n.yb]}),t})(),u=0,h=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=r.a.EMPTY,this.closed=new n.o,this.opened=new n.o,this.destroyed=new n.o,this.expandedChange=new n.o,this.id="cdk-accordion-child-"+u++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=Object(s.c)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(s.c)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l,12),n.Mb(n.h),n.Mb(a.d))},t.\u0275dir=n.Hb({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n.zb([{provide:l,useValue:void 0}])]}),t})(),d=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})();var p=i("Sv/w"),f=i("2kYt"),g=i("sg/T"),b=i("fAiE"),m=i("Ohay"),A=i("jIqt"),y=i("xVbo"),w=i("J+dc"),v=i("6Oco"),_=i("g6G6"),S=i("f7+R"),E=i("5lCh");const R=["body"];function C(t,e){}const T=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],k=["mat-expansion-panel-header","*","mat-action-row"],I=function(t,e){return{collapsedHeight:t,expandedHeight:e}},O=function(t,e){return{value:t,params:e}};function D(t,e){if(1&t&&n.Nb(0,"span",2),2&t){const t=n.dc();n.kc("@indicatorRotate",t._getExpandedState())}}const M=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],P=["mat-panel-title","mat-panel-description","*"],x=new n.r("MAT_ACCORDION"),N={indicatorRotate:Object(S.n)("indicatorRotate",[Object(S.k)("collapsed, void",Object(S.l)({transform:"rotate(0deg)"})),Object(S.k)("expanded",Object(S.l)({transform:"rotate(180deg)"})),Object(S.m)("expanded <=> collapsed, void => collapsed",Object(S.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:Object(S.n)("expansionHeight",[Object(S.k)("collapsed, void",Object(S.l)({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),Object(S.k)("expanded",Object(S.l)({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),Object(S.m)("expanded <=> collapsed, void => collapsed",Object(S.g)([Object(S.i)("@indicatorRotate",Object(S.f)(),{optional:!0}),Object(S.e)("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:Object(S.n)("bodyExpansion",[Object(S.k)("collapsed, void",Object(S.l)({height:"0px",visibility:"hidden"})),Object(S.k)("expanded",Object(S.l)({height:"*",visibility:"visible"})),Object(S.m)("expanded <=> collapsed, void => collapsed",Object(S.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let L=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.M))},t.\u0275dir=n.Hb({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),F=0;const z=new n.r("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let H=(()=>{class t extends h{constructor(t,e,i,s,r,a,c){super(t,e,i),this._viewContainerRef=s,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new n.o,this.afterCollapse=new n.o,this._inputChanges=new o.a,this._headerId="mat-expansion-panel-header-"+F++,this._bodyAnimationDone=new o.a,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe(Object(m.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=Object(s.c)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(Object(A.a)(null),Object(y.a)(()=>this.expanded&&!this._portal),Object(w.a)(1)).subscribe(()=>{this._portal=new p.j(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(x,12),n.Mb(n.h),n.Mb(a.d),n.Mb(n.Q),n.Mb(f.e),n.Mb(E.a,8),n.Mb(z,8))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var s;1&t&&n.Fb(i,L,!0),2&t&&n.sc(s=n.ac())&&(e._lazyContent=s.first)},viewQuery:function(t,e){var i;1&t&&n.Qc(R,!0),2&t&&n.sc(i=n.ac())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.Eb("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n.zb([{provide:x,useValue:void 0}]),n.xb,n.yb],ngContentSelectors:k,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.jc(T),n.ic(0),n.Sb(1,"div",0,1),n.Zb("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),n.Sb(3,"div",2),n.ic(4,1),n.Hc(5,C,0,0,"ng-template",3),n.Rb(),n.ic(6,2),n.Rb()),2&t&&(n.Ab(1),n.kc("@bodyExpansion",e._getExpandedState())("id",e.id),n.Bb("aria-labelledby",e._headerId),n.Ab(4),n.kc("cdkPortalOutlet",e._portal))},directives:[p.c],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[N.bodyExpansion]},changeDetection:0}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t})(),j=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=r.a.EMPTY,this._animationsDisabled=!0;const o=t.accordion?t.accordion._stateChanges.pipe(Object(y.a)(t=>!(!t.hideToggle&&!t.togglePosition))):v.a;this._parentChangeSubscription=Object(_.a)(t.opened,t.closed,o,t._inputChanges.pipe(Object(y.a)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Object(y.a)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),i.monitor(e).subscribe(e=>{e&&t.accordion&&t.accordion._handleHeaderFocus(this)}),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}_animationStarted(){this._animationsDisabled=!1}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}_keydown(t){switch(t.keyCode){case b.o:case b.g:Object(b.t)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(H,1),n.Mb(n.l),n.Mb(g.h),n.Mb(n.h),n.Mb(z,8))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:19,hostBindings:function(t,e){1&t&&(n.Fc("@expansionHeight.start",(function(){return e._animationStarted()})),n.Zb("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(n.Bb("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Gc("@.disabled",e._animationsDisabled)("@expansionHeight",n.qc(16,O,e._getExpandedState(),n.qc(13,I,e.collapsedHeight,e.expandedHeight))),n.Eb("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:P,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.jc(M),n.Sb(0,"span",0),n.ic(1),n.ic(2,1),n.ic(3,2),n.Rb(),n.Hc(4,D,1,1,"span",1)),2&t&&(n.Ab(4),n.kc("ngIf",e._showToggle()))},directives:[f.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;position:relative}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[N.indicatorRotate,N.expansionHeaderHeight]},changeDetection:0}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),K=(()=>{class t extends l{constructor(){super(...arguments),this._ownHeaders=new n.E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=Object(s.c)(t)}ngAfterContentInit(){this._headers.changes.pipe(Object(A.a)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new g.g(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;e===b.i?Object(b.t)(t)||(i.setFirstItemActive(),t.preventDefault()):e===b.f?Object(b.t)(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return V(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var s;1&t&&n.Fb(i,j,!0),2&t&&n.sc(s=n.ac())&&(e._headers=s)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.Eb("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n.zb([{provide:x,useExisting:t}]),n.xb]}),t})();const V=n.Ub(K);let q=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[f.c,d,p.i]]}),t})()},"3jrC":function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("X2Q7"),s=i("Ssnw"),o=i("FlRo"),r=i("EM62"),a=i("2kYt"),c=i("cePI"),l=i("FcRk"),u=i("PBFl"),h=i("s2Ay"),d=i("W5/Z");function p(t,e){1&t&&(r.Sb(0,"app-alert"),r.Jc(1),r.ec(2,"translate"),r.ec(3,"customTranslate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,r.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function f(t,e){1&t&&(r.Sb(0,"th",15),r.Jc(1),r.ec(2,"translate"),r.ec(3,"customTranslate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,r.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function g(t,e){if(1&t&&(r.Sb(0,"td",16),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.Ab(1),r.Kc(t.friendlyNameParameter)}}function b(t,e){1&t&&(r.Sb(0,"th",15),r.Jc(1),r.ec(2,"translate"),r.ec(3,"customTranslate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,r.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function m(t,e){if(1&t&&(r.Sb(0,"td",17),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.Ab(1),r.Kc(t.value)}}function A(t,e){1&t&&r.Nb(0,"th",15)}function y(t,e){if(1&t){const t=r.Tb();r.Sb(0,"td",18),r.Sb(1,"button",19),r.Zb("click",(function(){r.xc(t);const i=e.$implicit;return r.dc().changePassword(i.friendlyNameParameter)})),r.Jc(2),r.ec(3,"translate"),r.ec(4,"customTranslate"),r.Rb(),r.Rb()}if(2&t){const t=e.$implicit,i=r.dc();r.Ab(1),r.kc("disabled",!i.logins.includes(t)),r.Ab(1),r.Kc(r.fc(3,2,r.fc(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function w(t,e){1&t&&r.Nb(0,"tr",20)}function v(t,e){1&t&&r.Nb(0,"tr",21)}let _=(()=>{class t{constructor(t,e){this.attributesManagerService=t,this.store=e,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new o.o(t)})}changePassword(t){const e=this.store.get("pwd_reset_base_url");location.href=`${e}?login-namespace=${t}`}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.c),r.Mb(s.m))},t.\u0275cmp=r.Gb({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(r.Sb(0,"h1",0),r.Jc(1),r.ec(2,"translate"),r.ec(3,"customTranslate"),r.Rb(),r.Hc(4,p,4,5,"app-alert",1),r.Sb(5,"div",2),r.Sb(6,"div",3),r.Sb(7,"div",4),r.Sb(8,"table",5),r.Qb(9,6),r.Hc(10,f,4,5,"th",7),r.Hc(11,g,2,1,"td",8),r.Pb(),r.Qb(12,9),r.Hc(13,b,4,5,"th",7),r.Hc(14,m,2,1,"td",10),r.Pb(),r.Qb(15,11),r.Hc(16,A,1,0,"th",7),r.Hc(17,y,5,6,"td",12),r.Pb(),r.Hc(18,w,1,0,"tr",13),r.Hc(19,v,1,0,"tr",14),r.Rb(),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,5,r.fc(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),r.Ab(3),r.kc("ngIf",!e.logins.length),r.Ab(4),r.kc("dataSource",e.dataSource),r.Ab(10),r.kc("matHeaderRowDef",e.displayedColumns),r.Ab(1),r.kc("matRowDefColumns",e.displayedColumns))},directives:[a.t,o.n,c.a,o.c,o.i,o.b,o.k,o.m,l.a,o.h,o.a,u.b,o.j,o.l],pipes:[h.d,d.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})()},"3lSR":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("cJ9h"),s=i("5E2i");function o(t=Number.POSITIVE_INFINITY){return Object(n.a)(s.a,t)}},"3p4X":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("IdLP"),s=i("Efrr"),o=i("KRZI");function r(t=0,e=s.a){return(!Object(o.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=s.a),new n.a(i=>(i.add(e.schedule(a,t,{subscriber:i,counter:0,period:t})),i))}function a(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},"47ST":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("IdLP");function s(t,e){return new n.a(e?i=>e.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},"49Zq":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Kc(a.fc(3,5,"DIALOGS.DELETE_FACILITY.DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.DELETE_FACILITY.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new r.o([this.facility])}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(n.g),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-delete-facility-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onConfirm()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.DELETE_FACILITY.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.DELETE_FACILITY.CANCEL"),""),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.DELETE_FACILITY.CONFIRM"),""))},directives:[s.j,l.t,s.c,u.b,h.c,s.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t})()},"4CqK":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,...e){const i=t.find(t=>"mail"===t.friendlyName);return i?i.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"getMailFromAttributes",type:t,pure:!0}),t})()},"4e/d":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("pBDD"),s=i("r9RI"),o=i("mW0F");function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.a{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.a(this,void 0,void 0);this.add(n);const r=Object(o.a)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},"4sdY":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{constructor(){this.accessItemsChange=new n.o,this.facilityItemsChange=new n.o,this.adminItemsChange=new n.o,this.userItemsChange=new n.o,this.resetChange=new n.o,this.homeItemsChange=new n.o}setHomeItems(t){this.homeItemsChange.emit(t)}setAccessMenuItems(t){this.accessItemsChange.emit(t)}setFacilityMenuItems(t){this.facilityItemsChange.emit(t)}setAdminItems(t){this.adminItemsChange.emit(t)}setUserItems(t){this.userItemsChange.emit(t)}reset(){this.resetChange.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"5E2i":function(t,e,i){"use strict";function n(t){return t}i.d(e,"a",(function(){return n}))},"5XID":function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return c})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return o}));var n=i("EM62");function s(t){return null!=t&&""+t!="false"}function o(t,e=0){return r(t)?Number(t):e}function r(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof n.l?t.nativeElement:t}},"5bHy":function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("cqs0"),s=i("X2Q7"),o=i("V78E"),r=i("iyZ4"),a=i("8clQ"),c=i("Ssnw"),l=i("EM62"),u=i("sEIs"),h=i("OZ4H"),d=i("0XDM"),p=i("2kYt"),f=i("A8Ay"),g=i("PBFl"),b=i("csyo"),m=i("23RZ"),A=i("s2Ay");function y(t,e){if(1&t){const t=l.Tb();l.Sb(0,"button",6),l.Zb("click",(function(){return l.xc(t),l.dc().deleteSelectedResources()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}if(2&t){const t=l.dc();l.kc("disabled",0===t.selected.selected.length),l.Ab(1),l.Lc(" ",l.fc(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function w(t,e){1&t&&l.Nb(0,"mat-spinner",7)}function v(t,e){if(1&t){const t=l.Tb();l.Sb(0,"perun-web-apps-resources-list",8),l.Zb("page",(function(e){return l.xc(t),l.dc().pageChanged(e)})),l.Rb()}if(2&t){const t=l.dc();l.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routeAuth)("selection",t.selected)("displayedColumns",t.displayedColumns)}}let _=(()=>{class t{constructor(t,e,i,s,o,a){this.resourcesManager=t,this.voService=e,this.route=i,this.tableConfigService=s,this.dialog=o,this.authResolver=a,this.resources=[],this.selected=new n.c(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=r.lb,this.routeAuth=!1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,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(t=>{this.resources=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}deleteSelectedResources(){const t=Object(a.o)();t.width="450px",t.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(l.Mb(s.m),l.Mb(s.q),l.Mb(u.a),l.Mb(r.pb),l.Mb(h.b),l.Mb(c.h))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("router-component",!0)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page"]],template:function(t,e){1&t&&(l.Sb(0,"div"),l.Sb(1,"h1",0),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"perun-web-apps-refresh-button",1),l.Zb("refresh",(function(){return e.refreshTable()})),l.Rb(),l.Hc(5,y,3,4,"button",2),l.Sb(6,"perun-web-apps-immediate-filter",3),l.Zb("filter",(function(t){return e.applyFilter(t)})),l.Rb(),l.Hc(7,w,1,0,"mat-spinner",4),l.Hc(8,v,1,7,"perun-web-apps-resources-list",5),l.Rb()),2&t&&(l.Ab(2),l.Kc(l.fc(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),l.Ab(3),l.kc("ngIf",!e.loading&&e.removeAuth),l.Ab(1),l.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading))},directives:[d.a,p.t,f.a,g.b,b.c,m.a],pipes:[A.d],styles:[""]}),t})()},"5kIe":function(t,e,i){"use strict";i.d(e,"a",(function(){return I}));var n=i("EM62"),s=i("cePI"),o=i("iAde"),r=i("cqs0"),a=i("FlRo"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("FcRk"),f=i("s2Ay");function g(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",18),n.Sb(1,"mat-checkbox",19),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function b(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",20),n.Sb(1,"mat-checkbox",21),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function m(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.ID")))}function A(t,e){if(1&t&&(n.Sb(0,"td",20),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Lc(" ",t.id," ")}}function y(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.NAME")))}function w(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.name)}}function v(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.CONTACT")))}function _(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.contact)}}function S(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.TYPE")))}function E(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.type)}}function R(t,e){1&t&&n.Nb(0,"tr",24)}function C(t,e){1&t&&n.Nb(0,"tr",25)}function T(t,e){1&t&&(n.Sb(0,"app-alert",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.NO_OWNERS")))}function k(t,e){1&t&&(n.Sb(0,"app-alert",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.NO_OWNERS")))}let I=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.hideColumns=[],this.selection=new r.c(!0,[]),this.pageSize=10,this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.page=new n.o,this.pageSizeOptions=c.a}set matPaginator(t){this.paginator=t}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new a.o(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-owners-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matPaginator=i.first),n.sc(i=n.ac())&&(e.matSort=i.first))},inputs:{owners:"owners",hideColumns:"hideColumns",selection:"selection",pageSize:"pageSize",filterValue:"filterValue",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:25,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSizeOptions","pageSize","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,g,2,3,"th",6),n.Hc(7,b,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,m,3,3,"th",9),n.Hc(10,A,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,y,3,3,"th",9),n.Hc(13,w,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,v,3,3,"th",9),n.Hc(16,_,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,S,3,3,"th",9),n.Hc(19,E,2,1,"td",11),n.Pb(),n.Hc(20,R,1,0,"tr",14),n.Hc(21,C,1,0,"tr",15),n.Rb(),n.Rb(),n.Sb(22,"mat-paginator",16),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(23,T,3,3,"app-alert",17),n.Hc(24,k,3,3,"app-alert",17)),2&t&&(n.kc("hidden",!e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(16),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.owners.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.Ab(1),n.kc("ngIf",!e.owners.length),n.Ab(1),n.kc("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[u.a,a.n,s.a,a.c,a.i,a.b,a.k,a.m,o.a,h.t,a.h,d.a,a.a,s.b,a.j,a.l,p.a],pipes:[f.d],styles:[""]}),t})()},"5lCh":function(t,e,i){"use strict";i.d(e,"a",(function(){return ge})),i.d(e,"b",(function(){return me}));var n=i("EM62"),s=i("e4iD"),o=i("f7+R");function r(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new o.d;case 1:return t[0];default:return new o.o(t)}}function c(t,e,i,n,s={},r={}){const a=[],c=[];let l=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==l,h=n&&u||{};Object.keys(t).forEach(i=>{let n=i,c=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),c){case o.p:c=s[i];break;case o.a:c=r[i];break;default:c=e.normalizeStyleValue(i,n,c,a)}h[n]=c}),n||c.push(h),u=h,l=i}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&u(i,"start",t)));break;case"done":t.onDone(()=>n(i&&u(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&u(i,"destroy",t)))}}function u(t,e,i){const n=i.totalTime,s=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function h(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function d(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,g=(t,e)=>!1,b=(t,e,i)=>[];const m=r();(m||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),g=(()=>{if(m||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):g}})(),b=(t,e,i)=>{let n=[];if(i)n.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&n.push(i)}return n});let A=null,y=!1;function w(t){A||(A=("undefined"!=typeof document?document.body:null)||{},y=!!A.style&&"WebkitAppearance"in A.style);let e=!0;return A.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in A.style,!e&&y)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in A.style),e}const v=g,_=f,S=b;function E(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let R=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return _(t,e)}query(t,e,i){return S(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],a){return new o.d(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{}return t.NOOP=new R,t})();function T(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:k(parseFloat(e[1]),e[2])}function k(t,e){switch(e){case"s":return 1e3*t;default:return t}}function I(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=k(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=k(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function O(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function D(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else O(t,i);return i}function M(t,e,i){return i?e+":"+i+";":""}function P(t){let e="";for(let i=0;i{const s=G(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),r()&&P(t))}function N(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=G(e);t.style[i]=""}),r()&&P(t))}function L(t){return Array.isArray(t)?1==t.length?t[0]:Object(o.j)(t):t}const F=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){let e=[];if("string"==typeof t){let i;for(;i=F.exec(t);)e.push(i[1]);F.lastIndex=0}return e}function H(t,e,i){const n=t.toString(),s=n.replace(F,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push("Please provide a value for the animation param "+n),s=""),s.toString()});return s==n?t:s}function B(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const j=/-+([a-z0-9])/g;function G(t){return t.replace(j,(...t)=>t[1].toUpperCase())}function U(t,e){return 0===t||0===e}function K(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Y(s,r)),"<"!=o[0]||"*"==s&&"*"==r||e.push(Y(r,s))}(t,i,e)):i.push(t),i}const W=new Set(["true","1"]),Z=new Set(["false","0"]);function Y(t,e){const i=W.has(t)||Z.has(t),n=W.has(e)||Z.has(e);return(s,o)=>{let r="*"==t||t==s,a="*"==e||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?W.has(t):Z.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?W.has(e):Z.has(e)),r&&a}}const $=new RegExp("s*:selfs*,?","g");function X(t,e,i){return new Q(t).build(e,i)}class Q{constructor(t){this._driver=t}build(t,e){const i=new tt(e);return this._resetContextStyleTimingState(i),V(this,L(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{z(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=B(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=V(this,L(t.animation),e);return{type:1,matchers:J(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:it(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>V(this,t,e)),options:it(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=V(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:it(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return nt(I(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=nt(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||I(n,e),nt(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Object(o.l)({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=Object(o.l)(t)}e.currentTime+=i.duration+i.delay;const a=this.visitStyle(s,e);a.isEmptyStep=r,n=a}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==o.a?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(et(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=z(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(et(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(et(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),l=0;return null!=c&&(n++,l=i.offset=c),r=r||l<0||l>1,o=o||l0&&n{const o=u>0?n==h?1:u*n:s[n],r=o*f;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:V(this,L(t.animation),e),options:it(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:it(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:it(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace($,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,d(e.collectedStyles,e.currentQuerySelector,{});const r=V(this,L(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:it(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:I(t.timings,e.errors,!0);return{type:12,animation:V(this,L(t.animation),e),timings:i,options:null}}}class tt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function et(t){return!Array.isArray(t)&&"object"==typeof t}function it(t){var e;return t?(t=O(t)).params&&(t.params=(e=t.params)?O(e):null):t={},t}function nt(t,e,i){return{duration:t,delay:e,easing:i}}function st(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class ot{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const rt=new RegExp(":enter","g"),at=new RegExp(":leave","g");function ct(t,e,i,n,s,o={},r={},a,c,l=[]){return(new lt).buildKeyframes(t,e,i,n,s,o,r,a,c,l)}class lt{buildKeyframes(t,e,i,n,s,o,r,a,c,l=[]){c=c||new ot;const u=new ht(t,e,c,n,s,l,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),V(this,i,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[st(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?T(i.duration):null,o=null!=i.delay?T(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),V(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ut);const t=T(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>V(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?T(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),V(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return I(e.params?H(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?T(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),V(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;V(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-l+(n.startTime-i.currentTimeline.startTime)}}const ut={};class ht{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new dt(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=T(i.duration)),null!=i.delay&&(n.delay=T(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=H(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new ht(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new pt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(rt,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class dt{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new dt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||o.a,this._currentKeyframe[t]=o.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=o.a})):D(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=H(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:o.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const a=D(s,!0);Object.keys(a).forEach(i=>{const n=a[i];n==o.p?t.add(i):n==o.a&&e.add(i)}),i||(a.offset=r/this.duration),n.push(a)});const s=t.size?B(t.values()):[],r=e.size?B(e.values()):[];if(i){const t=n[0],e=O(t);t.offset=0,e.offset=1,n=[t,e]}return st(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class pt extends dt{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=D(t[0],!1);a.offset=0,s.push(a);const c=D(t[0],!1);c.offset=ft(r),s.push(c);const l=t.length-1;for(let n=1;n<=l;n++){let r=D(t[n],!1);r.offset=ft((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return st(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function ft(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class gt{}class bt extends gt{normalizePropertyName(t,e){return G(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(mt[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const mt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function At(t,e,i,n,s,o,r,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const yt={};class wt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||yt,p=this.buildStyles(i,r&&r.params||yt,u),f=a&&a.params||yt,g=this.buildStyles(n,f,u),b=new Set,m=new Map,A=new Map,y="void"===n,w={params:Object.assign(Object.assign({},h),f)},v=l?[]:ct(t,e,this.ast.animation,s,o,p,g,w,c,u);let _=0;if(v.forEach(t=>{_=Math.max(t.duration+t.delay,_)}),u.length)return At(e,this._triggerName,i,n,y,p,g,[],[],m,A,_,u);v.forEach(t=>{const i=t.element,n=d(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=d(A,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&b.add(i)});const S=B(b.values());return At(e,this._triggerName,i,n,y,p,g,v,S,m,A,_)}}class vt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=O(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=H(o,n,e)),i[t]=o})}}),i}}class _t{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new vt(t.style,t.options&&t.options.params||{})}),St(this.states,"true","1"),St(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new wt(t,e,this.states))}),this.fallbackTransition=new wt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function St(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Et=new ot;class Rt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=X(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: "+i.join("\n"));this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=c(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const c=new Map;if(s?(r=ct(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Et,n),r.forEach(t=>{const e=d(c,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error("Unable to create the animation due to the following errors: "+n.join("\n"));c.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,o.a)})});const l=a(r.map(t=>{const e=c.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,i,n){const s=h(e,"","","");return l(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Ct=[],Tt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class It{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=O(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const Ot=new It("void");class Dt{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,zt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=d(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(zt(t,"ng-trigger"),zt(t,"ng-trigger-"+e),a[e]=Ot),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new Pt(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(zt(t,"ng-trigger"),zt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new It(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=Ot),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{N(t,i),x(t,n)})}return}const l=d(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!n)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(zt(t,"ng-animate-queued"),o.onStart(()=>{Ht(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),l.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&a(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,o=this._engine.statesByElement.get(t)[n]||Ot,r=new It("void"),a=new Pt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:o,toState:r,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Tt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){zt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=h(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,l(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Mt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Dt(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),zt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ht(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(xt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return xt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Tt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const i=new ot,n=[],s=new Map,r=[],c=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+m++;b.set(e,i),t.forEach(t=>zt(t,i))});const A=[],y=new Set,w=new Set;for(let o=0;oy.add(t)):w.add(t))}const v=new Map,_=Ft(f,Array.from(y));_.forEach((t,e)=>{const i="ng-leave"+m++;v.set(e,i),t.forEach(t=>zt(t,i))}),t.push(()=>{g.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>Ht(t,i))}),_.forEach((t,e)=>{const i=v.get(e);t.forEach(t=>Ht(t,i))}),A.forEach(t=>{this.processLeaveNode(t)})});const S=[],E=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(S.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const o=!p||!this.driver.containsElement(p,s),a=v.get(s),h=b.get(s),f=this._buildInstruction(t,i,h,a,o);if(f.errors&&f.errors.length)E.push(f);else{if(o)return e.onStart(()=>N(s,f.fromStyles)),e.onDestroy(()=>x(s,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>N(s,f.fromStyles)),e.onDestroy(()=>x(s,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>d(c,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=l.get(e);t||l.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=u.get(e);n||u.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),S.forEach(t=>t.destroy()),this.reportError(t)}const R=new Map,C=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,R))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(R,e,[]).push(t),t.destroy()})});const T=A.filter(t=>jt(t,l,u)),k=new Map;Lt(k,this.driver,w,u,o.a).forEach(t=>{jt(t,l,u)&&T.push(t)});const I=new Map;g.forEach((t,e)=>{Lt(I,this.driver,new Set(t),l,o.p)}),T.forEach(t=>{const e=k.get(t),i=I.get(t);k.set(t,Object.assign(Object.assign({},e),i))});const O=[],D=[],M={};r.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(h.has(e))return o.onDestroy(()=>x(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=M;if(C.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=C.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>C.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,R,s,I,k);if(o.setRealPlayer(i),t===M)O.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=a(e)),n.push(o)}}else N(e,r.fromStyles),o.onDestroy(()=>x(e,r.toStyles)),D.push(o),h.has(e)&&n.push(o)}),D.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=a(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let o=0;o!t.destroyed);n.length?Bt(this,t,n):this.processLeaveNode(t)}return A.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=d(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}N(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const l=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,g=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new o.d(e.duration,e.delay);const g=a!==u,b=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===a),m=s.get(a),A=r.get(a),y=c(0,this._normalizer,0,e.keyframes,m,A),w=this._buildPlayer(e,y,b);if(e.subTimeline&&n&&f.add(a),g){const e=new Pt(t,l,a);e.setRealPlayer(w),h.push(e)}return w});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>zt(t,"ng-animating"));const b=a(g);return b.onDestroy(()=>{p.forEach(t=>Ht(t,"ng-animating")),x(u,e.toStyles)}),f.forEach(t=>{d(n,t,[]).push(b)}),b}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new o.d(t.duration,t.delay)}}class Pt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new o.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>l(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function xt(t){return t&&1===t.nodeType}function Nt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Lt(t,e,i,n,s){const o=[];i.forEach(t=>o.push(Nt(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=kt,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>Nt(t,o[a++])),r}function Ft(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let o=s.get(e);if(o)return o;const r=e.parentNode;return o=i.has(r)?r:n.has(r)?1:t(r),s.set(e,o),o}(t);1!==e&&i.get(e).push(t)}),i}function zt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Ht(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Bt(t,e,i){a(i).onDone(()=>t.processLeaveNode(e))}function jt(t,e,i){const n=i.get(t);if(!n)return!1;let s=e.get(t);return s?n.forEach(t=>s.add(t)):e.set(t,n),i.delete(t),!0}class Gt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Mt(t,e,i),this._timelineEngine=new Rt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=X(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new _t(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=p(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=p(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ut(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Vt(e[0]),e.length>1&&(n=Vt(e[e.length-1]))):e&&(i=Vt(e)),i||n?new Kt(t,i,n):null}let Kt=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&x(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(x(this._element,this._initialStyles),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),x(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Vt(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Qt(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),$t(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Qt(t,"").split(","),n=Yt(i,e);n>=0&&(i.splice(n,1),Xt(t,"",i.join(",")))}(this._element,this._name))}}function Wt(t,e,i){Xt(t,"PlayState",i,Zt(t,e))}function Zt(t,e){const i=Qt(t,"");return i.indexOf(",")>0?Yt(i.split(","),e):Yt([i],e)}function Yt(t,e){for(let i=0;i=0)return i;return-1}function $t(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Xt(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Qt(t,e){return t.style["animation"+e]}class te{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:q(this.element,i))})}this.currentSnapshot=t}}class ee extends o.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=E(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ie{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return w(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return _(t,e)}query(t,e,i){return S(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>E(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=s+"}\n"}),n+="}\n";const o=document.createElement("style");return o.innerHTML=n,o}animate(t,e,i,n,s,o=[],r){r&&this._notifyFaultyScrubber();const a=o.filter(t=>t instanceof te),c={};U(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=K(t,e,c));if(0==i)return new ee(t,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=Ut(t,e),p=new te(t,e,u,i,n,s,l,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class ne{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class se{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(oe().toString()),this._cssKeyframesDriver=new ie}validateStyleProperty(t){return w(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return _(t,e)}query(t,e,i){return S(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},l=o.filter(t=>t instanceof ne);U(i,n)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=Ut(t,e=K(t,e=e.map(t=>D(t,!1)),c));return new ne(t,e,a,u)}}function oe(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var re=i("2kYt");let ae=(()=>{class t extends o.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.R.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Object(o.j)(t):t;return ue(this._renderer,null,e,"register",[i]),new ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(n.G),n.Wb(re.e))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();class ce extends o.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new le(this._id,t,e||{},this._renderer)}}class le{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ue(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ue(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let he=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new de("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new pe(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(n.G),n.Wb(Gt),n.Wb(n.A))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();class de{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class pe extends de{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let fe=(()=>{class t extends Gt{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(re.e),n.Wb(C),n.Wb(gt))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();const ge=new n.r("AnimationModuleType"),be=[{provide:C,useFactory:function(){return"function"==typeof oe()?new se:new ie}},{provide:ge,useValue:"BrowserAnimations"},{provide:o.b,useClass:ae},{provide:gt,useFactory:function(){return new bt}},{provide:Gt,useClass:fe},{provide:n.G,useFactory:function(t,e,i){return new he(t,e,i)},deps:[s.f,Gt,n.A]}];let me=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:be,imports:[s.a]}),t})()},"5uDM":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("cJ9h");function s(t,e){return Object(n.a)(t,e,1)}},"5uGe":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("IJgj"),s=i("rWo0"),o=i("bwdy"),r=i("25CY"),a=i("HgnN"),c=i("i9P/");class l extends o.a{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,i)}}[r.a](){return this}static create(t,e,i){const n=new l(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;Object(n.a)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.a&&(a=Object.create(e),Object(n.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.a;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw i;Object(c.a)(i)}}__tryOrSetError(t,e,i){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(Object(c.a)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"66mq":function(t,e,i){"use strict";i.d(e,"a",(function(){return b})),i.d(e,"b",(function(){return A}));var n=i("EM62"),s=i("2kYt"),o=i("mFH5"),r=i("5XID"),a=i("5lCh"),c=i("bwdy"),l=i("KTx3"),u=i("xVbo");const h=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=Object(o.y)(d,"primary"),f=new n.r("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(n.V)(s.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let g=0,b=(()=>{class t extends p{constructor(t,e,i,s){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new n.o,this._animationEndSubscription=c.a.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+g++;const o=s?s.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${o}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=m(Object(r.f)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=m(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Object(l.a)(t,"transitionend").pipe(Object(u.a)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.A),n.Mb(a.a,8),n.Mb(f,8))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&n.Qc(h,!0),2&t&&n.sc(i=n.ac())&&(e._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(n.Bb("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),n.Eb("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.xb],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(n.cc(),n.Sb(0,"svg",0),n.Sb(1,"defs"),n.Sb(2,"pattern",1),n.Nb(3,"circle",2),n.Rb(),n.Rb(),n.Nb(4,"rect",3),n.Rb(),n.bc(),n.Nb(5,"div",4),n.Nb(6,"div",5,6),n.Nb(8,"div",7)),2&t&&(n.Ab(2),n.kc("id",e.progressbarId),n.Ab(2),n.Bb("fill",e._rectangleFillValue),n.Ab(1),n.kc("ngStyle",e._bufferTransform()),n.Ab(1),n.kc("ngStyle",e._primaryTransform()))},directives:[s.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function m(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let A=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[s.c,o.i],o.i]}),t})()},"6Oco":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return o}));var n=i("IdLP");const s=new n.a(t=>t.complete());function o(t){return t?function(t){return new n.a(e=>t.schedule(()=>e.complete()))}(t):s}},"6Xhx":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return a}));var n=i("EM62"),s=(i("X2Q7"),i("s2Ay")),o=i("LAw4");const r={};let a=(()=>{class t{constructor(t){this.translate=t,this.item=null,this.itemSelected=new n.o,this.nameFunction=t=>t===r?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname,this.secondaryFunction=t=>t===r?"":t.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id,this.searchFunction=t=>t===r?"":t.shortname+t.id}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.e))},t.\u0275cmp=n.Gb({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(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.itemSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.fc(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.fc(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.fc(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.a],pipes:[s.d],styles:[""]}),t})()},"6mVK":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Kc(a.fc(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.groupManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new r.o(this.data.groups)}onRemove(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.groupManager.removeMember(t,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 t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(n.h),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onRemove()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc("",a.fc(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc("",a.fc(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[s.j,l.t,s.c,u.b,h.c,s.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t})()},"77So":function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("EM62"),s=i("cePI"),o=i("cqs0"),r=i("iAde"),a=i("FlRo"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("FcRk"),f=i("s2Ay"),g=i("j+u3");function b(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",17),n.Sb(1,"mat-checkbox",18),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function m(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function A(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")))}function y(t,e){if(1&t&&(n.Sb(0,"td",19),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t[1].id)}}function w(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")))}function v(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t[1]))}}function _(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")))}function S(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t[0].description)}}function E(t,e){1&t&&n.Nb(0,"tr",23)}function R(t,e){1&t&&n.Nb(0,"tr",24)}function C(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function T(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let k=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.bansOnFacilitiesWithUsers=[],this.selection=new o.c(!0,[]),this.pageSize=10,this.page=new n.o,this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=c.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"userId"!==t)),this.dataSource=new a.o(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"userId":return t[1].id.toString();case"reason":return t[0].description;case"name":return Object(c.z)(t[1]);default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(s.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",pageSize:"pageSize"},outputs:{page:"page"},features:[n.yb],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,b,2,3,"th",6),n.Hc(7,m,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,A,3,3,"th",9),n.Hc(10,y,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,w,3,3,"th",9),n.Hc(13,v,3,3,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,_,3,3,"th",9),n.Hc(16,S,2,1,"td",11),n.Pb(),n.Hc(17,E,1,0,"tr",13),n.Hc(18,R,1,0,"tr",14),n.Rb(),n.Rb(),n.Sb(19,"mat-paginator",15),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(20,C,3,3,"app-alert",16),n.Hc(21,T,3,3,"app-alert",16)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.bansOnFacilitiesWithUsers.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(13),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.bansOnFacilitiesWithUsers.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.bansOnFacilitiesWithUsers.length),n.Ab(1),n.kc("ngIf",0===e.bansOnFacilitiesWithUsers.length))},directives:[u.a,a.n,s.a,a.c,a.i,a.b,a.k,a.m,r.a,h.t,a.h,d.a,a.a,s.b,a.j,a.l,p.a],pipes:[f.d,g.a],styles:[""]}),t})()},"7TQF":function(t,e,i){"use strict";i.d(e,"a",(function(){return I}));var n=i("4sdY"),s=i("X2Q7"),o=i("8clQ"),r=i("Ssnw"),a=i("cqs0"),c=i("tDou"),l=i("iyZ4"),u=i("JjRu"),h=i("EM62"),d=i("OZ4H"),p=i("EtYo"),f=i("bFHC"),g=i("2kYt"),b=i("0XDM"),m=i("PBFl"),A=i("A8Ay"),y=i("csyo"),w=i("qySP"),v=i("s2Ay");function _(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-refresh-button",9),h.Zb("refresh",(function(){return h.xc(t),h.dc().refreshTable()})),h.Rb()}}function S(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",10),h.Zb("click",(function(){return h.xc(t),h.dc().onCreateVo()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function E(t,e){if(1&t){const t=h.Tb();h.Sb(0,"button",11),h.Zb("click",(function(){return h.xc(t),h.dc().onRemoveVo()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){const t=h.dc();h.kc("disabled",0===t.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function R(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-immediate-filter",12),h.Zb("filter",(function(e){return h.xc(t),h.dc().applyFilter(e)})),h.Rb()}2&t&&h.kc("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function C(t,e){1&t&&h.Nb(0,"mat-spinner",13)}function T(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-vos-list",14),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("recentIds",t.recentIds)("selection",t.selection)("vos",t.vos)}}const k=function(){return{color:"black"}};let I=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.sideMenuService=t,this.voService=e,this.guiAuthResolver=i,this.tableConfigService=n,this.dialog=s,this.notificator=o,this.apiRequest=r,this.initAuthService=a,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=l.nb}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new a.c(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(t=>{this.vos=t,this.recentIds=Object(o.r)("vos"),this.loading=!1},t=>{"PrivilegeException"===t.error.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(t)})}applyFilter(t){this.filterValue=t}onCreateVo(){const t=Object(o.o)();t.width="600px",t.data={theme:"vo-theme"},this.dialog.open(c.a,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const t=Object(o.o)();t.width="500px",t.data={theme:"vo-theme",entity:this.selection.selected[0],entityType:u.b.VO},this.dialog.open(u.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(s.q),h.Mb(r.h),h.Mb(l.pb),h.Mb(d.b),h.Mb(r.l),h.Mb(r.b),h.Mb(r.i))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},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",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page"]],template:function(t,e){1&t&&(h.Sb(0,"div",0),h.Nb(1,"perun-web-apps-back-button"),h.Sb(2,"h1",1),h.Nb(3,"mat-icon",2),h.Jc(4),h.ec(5,"translate"),h.Rb(),h.Hc(6,_,1,0,"perun-web-apps-refresh-button",3),h.Hc(7,S,3,3,"button",4),h.Hc(8,E,3,4,"button",5),h.Hc(9,R,1,2,"perun-web-apps-immediate-filter",6),h.Hc(10,C,1,0,"mat-spinner",7),h.Hc(11,T,1,6,"perun-web-apps-vos-list",8),h.Rb()),2&t&&(h.Ab(3),h.kc("ngStyle",h.oc(10,k)),h.Ab(1),h.Lc(" ",h.fc(5,8,"VO_MANAGEMENT.TITLE")," "),h.Ab(2),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading&&e.createAuth),h.Ab(1),h.kc("ngIf",!e.loading&&e.deleteAuth),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[p.a,f.a,g.w,g.t,b.a,m.b,A.a,y.c,w.a],pipes:[v.d],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},"7Y6W":function(t,e,i){"use strict";i.d(e,"a",(function(){return Q}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("nIj0"),a=i("2kYt"),c=i("Iydx"),l=i("8lHc"),u=i("ROBh"),h=i("TLy2"),d=i("YtkY"),p=i("4e/d"),f=i("EM62"),g=i("s2Ay"),b=i("csyo"),m=i("x9Az"),A=i("29Wa"),y=i("Cd2c"),w=i("PBFl"),v=i("R7+U"),_=i("Y2X+"),S=i("+Tre"),E=i("F1o0"),R=i("HMTk"),C=i("FcRk"),T=i("mFH5"),k=i("bFHC"),I=i("jqZM"),O=i("j+u3");function D(t,e){1&t&&(f.Sb(0,"h1",4),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Kc(f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")))}function M(t,e){1&t&&f.Nb(0,"mat-spinner",5)}function P(t,e){1&t&&(f.Jc(0),f.ec(1,"translate")),2&t&&f.Kc(f.fc(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function x(t,e){1&t&&(f.Sb(0,"app-alert",42),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function N(t,e){1&t&&(f.Sb(0,"mat-error"),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function L(t,e){1&t&&(f.Sb(0,"mat-error"),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function F(t,e){1&t&&(f.Jc(0),f.ec(1,"translate")),2&t&&f.Kc(f.fc(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function z(t,e){if(1&t&&(f.Sb(0,"mat-option",43),f.Jc(1),f.Rb()),2&t){const t=e.$implicit;f.kc("value",t),f.Ab(1),f.Lc(" ",t," ")}}function H(t,e){1&t&&(f.Sb(0,"mat-error"),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function B(t,e){1&t&&(f.Sb(0,"mat-error"),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function j(t,e){1&t&&f.Nb(0,"mat-spinner",44),2&t&&f.kc("diameter",18)}function G(t,e){1&t&&(f.Sb(0,"mat-icon",45),f.ec(1,"translate"),f.Jc(2," error "),f.Rb()),2&t&&f.kc("matTooltip",f.fc(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR_LONG"))}function U(t,e){1&t&&(f.Sb(0,"mat-error"),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Kc(f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")))}function K(t,e){1&t&&(f.Sb(0,"mat-error"),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Kc(f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR")))}function V(t,e){1&t&&(f.Sb(0,"mat-error"),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function q(t,e){1&t&&(f.Jc(0),f.ec(1,"translate")),2&t&&f.Kc(f.fc(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function J(t,e){if(1&t){const t=f.Tb();f.Sb(0,"div"),f.Sb(1,"perun-web-apps-user-search-select",46),f.Zb("userSelected",(function(e){return f.xc(t),f.dc(2).selectedSponsor=e})),f.Rb(),f.Rb()}if(2&t){const t=f.dc(2);f.Ab(1),f.kc("users",t.voSponsors)("disableAutoSelect",!0)}}function W(t,e){if(1&t){const t=f.Tb();f.Sb(0,"div",6),f.Sb(1,"mat-horizontal-stepper",7),f.Sb(2,"mat-step",8),f.Hc(3,P,2,3,"ng-template",9),f.Hc(4,x,3,3,"app-alert",10),f.Sb(5,"form",11),f.Sb(6,"h5",12),f.Jc(7),f.ec(8,"translate"),f.Rb(),f.Sb(9,"mat-form-field",13),f.Nb(10,"input",14),f.ec(11,"translate"),f.Hc(12,N,3,3,"mat-error",15),f.Rb(),f.Sb(13,"mat-form-field"),f.Nb(14,"input",16),f.ec(15,"translate"),f.Hc(16,L,3,3,"mat-error",15),f.Rb(),f.Sb(17,"mat-form-field"),f.Nb(18,"input",17),f.ec(19,"translate"),f.Rb(),f.Sb(20,"mat-form-field"),f.Nb(21,"input",18),f.ec(22,"translate"),f.Rb(),f.Rb(),f.Sb(23,"div",19),f.Sb(24,"button",20),f.Zb("click",(function(){return f.xc(t),f.dc().onCancel()})),f.Jc(25),f.ec(26,"translate"),f.Rb(),f.Sb(27,"button",21),f.Jc(28),f.ec(29,"translate"),f.Rb(),f.Rb(),f.Rb(),f.Sb(30,"mat-step",8),f.Hc(31,F,2,3,"ng-template",9),f.Sb(32,"h5",12),f.Jc(33),f.ec(34,"translate"),f.Rb(),f.Sb(35,"form",22),f.Sb(36,"mat-form-field"),f.Sb(37,"mat-select",23),f.Zb("valueChange",(function(e){return f.xc(t),f.dc().onNamespaceChanged(e)})),f.ec(38,"translate"),f.Hc(39,z,2,2,"mat-option",24),f.Rb(),f.Hc(40,H,3,3,"mat-error",15),f.Rb(),f.Sb(41,"mat-form-field",25),f.ec(42,"translate"),f.Nb(43,"input",26),f.ec(44,"translate"),f.Hc(45,B,3,3,"mat-error",15),f.Rb(),f.Sb(46,"span",25),f.ec(47,"translate"),f.Sb(48,"mat-checkbox",27),f.Zb("change",(function(){return f.xc(t),f.dc().passwordResetChange()})),f.Jc(49),f.ec(50,"translate"),f.Rb(),f.Rb(),f.Sb(51,"mat-form-field",25),f.Nb(52,"input",28),f.ec(53,"translate"),f.Hc(54,j,1,1,"mat-spinner",29),f.Hc(55,G,3,3,"mat-icon",30),f.Hc(56,U,3,3,"mat-error",15),f.Hc(57,K,3,3,"mat-error",15),f.Rb(),f.Sb(58,"mat-checkbox",31),f.Jc(59),f.ec(60,"translate"),f.Rb(),f.Sb(61,"mat-form-field"),f.Nb(62,"input",32),f.ec(63,"translate"),f.Hc(64,V,3,3,"mat-error",15),f.Rb(),f.Sb(65,"div",19),f.Sb(66,"button",20),f.Zb("click",(function(){return f.xc(t),f.dc().onCancel()})),f.Jc(67),f.ec(68,"translate"),f.Rb(),f.Sb(69,"button",33),f.Jc(70),f.ec(71,"translate"),f.Rb(),f.Sb(72,"button",34),f.Jc(73),f.ec(74,"translate"),f.Rb(),f.Rb(),f.Rb(),f.Rb(),f.Sb(75,"mat-step"),f.Hc(76,q,2,3,"ng-template",9),f.Sb(77,"div",35),f.Sb(78,"h5",12),f.Jc(79),f.ec(80,"translate"),f.Rb(),f.Sb(81,"div",13),f.Sb(82,"h6"),f.Jc(83),f.ec(84,"translate"),f.Rb(),f.Sb(85,"mat-radio-group",36),f.Zb("ngModelChange",(function(e){return f.xc(t),f.dc().sponsorType=e})),f.Sb(86,"span",37),f.ec(87,"translate"),f.Sb(88,"mat-radio-button",38),f.Zb("click",(function(){return f.xc(t),f.dc().selectedSponsor=null})),f.Jc(89),f.ec(90,"translate"),f.Rb(),f.Rb(),f.Sb(91,"span",37),f.ec(92,"translate"),f.Sb(93,"mat-radio-button",39),f.Jc(94),f.ec(95,"translate"),f.Rb(),f.Rb(),f.Rb(),f.Hc(96,J,2,2,"div",15),f.Rb(),f.Sb(97,"h6",13),f.Jc(98),f.ec(99,"translate"),f.Rb(),f.Sb(100,"perun-web-apps-expiration-select",40),f.Zb("datePicker",(function(e){return f.xc(t),f.dc().setExpiration(e)})),f.Rb(),f.Rb(),f.Sb(101,"div",19),f.Sb(102,"button",20),f.Zb("click",(function(){return f.xc(t),f.dc().onCancel()})),f.Jc(103),f.ec(104,"translate"),f.Rb(),f.Sb(105,"button",33),f.Jc(106),f.ec(107,"translate"),f.Rb(),f.Sb(108,"button",41),f.Zb("click",(function(){return f.xc(t),f.dc().onConfirm()})),f.Jc(109),f.ec(110,"translate"),f.Rb(),f.Rb(),f.Rb(),f.Rb(),f.Rb()}if(2&t){const t=f.dc();f.Ab(1),f.kc("linear",!0),f.Ab(1),f.kc("stepControl",t.userControl),f.Ab(2),f.kc("ngIf",t.functionalityNotSupported),f.Ab(1),f.kc("formGroup",t.userControl),f.Ab(2),f.Lc(" ",f.fc(8,60,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),f.Ab(3),f.lc("placeholder",f.fc(11,62,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),f.Ab(2),f.kc("ngIf",t.userControl.hasError("required","firstName")),f.Ab(2),f.lc("placeholder",f.fc(15,64,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),f.Ab(2),f.kc("ngIf",t.userControl.hasError("required","lastName")),f.Ab(2),f.lc("placeholder",f.fc(19,66,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),f.Ab(3),f.lc("placeholder",f.fc(22,68,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),f.Ab(4),f.Lc(" ",f.fc(26,70,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),f.Ab(2),f.kc("disabled",t.userControl.invalid),f.Ab(1),f.Lc(" ",f.fc(29,72,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),f.Ab(2),f.kc("stepControl",t.namespaceControl),f.Ab(3),f.Kc(f.fc(34,74,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),f.Ab(2),f.kc("formGroup",t.namespaceControl),f.Ab(2),f.lc("placeholder",f.fc(38,76,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),f.Ab(2),f.kc("ngForOf",t.namespaceOptions),f.Ab(1),f.kc("ngIf",t.namespaceControl.hasError("required","namespace")),f.Ab(1),f.lc("matTooltip",f.fc(42,78,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),f.kc("matTooltipDisabled",t.namespaceControl.get("login").enabled),f.Ab(2),f.lc("placeholder",f.fc(44,80,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),f.Ab(2),f.kc("ngIf",t.namespaceControl.hasError("required","login")),f.Ab(1),f.lc("matTooltip",f.fc(47,82,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),f.kc("matTooltipDisabled",t.namespaceControl.get("passwordReset").enabled),f.Ab(3),f.Lc("",f.fc(50,84,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),f.Ab(2),f.kc("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.namespaceControl.get("password").enabled),f.Ab(1),f.lc("placeholder",f.fc(53,86,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")),f.kc("type",t.namespaceControl.get("showPassword").value?"text":"password")("errorStateMatcher",t.passwordStateMatcher),f.Ab(2),f.kc("ngIf",t.namespaceControl.get("password").pending),f.Ab(1),f.kc("ngIf",t.namespaceControl.get("password").dirty&&null!==t.namespaceControl.get("password").errors),f.Ab(1),f.kc("ngIf",t.namespaceControl.get("password").hasError("required")),f.Ab(1),f.kc("ngIf",t.namespaceControl.get("password").hasError("backendError")),f.Ab(2),f.Lc(" ",f.fc(60,88,"DIALOGS.CREATE_SPONSORED_MEMBER.SHOW_PASSWORD")," "),f.Ab(3),f.lc("placeholder",f.fc(63,90,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),f.Ab(2),f.kc("ngIf",t.namespaceControl.hasError("required","email")||t.namespaceControl.hasError("pattern","email")),f.Ab(3),f.Lc(" ",f.fc(68,92,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),f.Ab(3),f.Lc(" ",f.fc(71,94,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),f.Ab(2),f.kc("disabled",t.namespaceControl.invalid||t.namespaceControl.get("password").pending),f.Ab(1),f.Lc(" ",f.fc(74,96,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),f.Ab(6),f.Kc(f.fc(80,98,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),f.Ab(4),f.Kc(f.fc(84,100,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),f.Ab(2),f.kc("ngModel",t.sponsorType),f.Ab(1),f.lc("matTooltip",f.fc(87,102,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),f.kc("matTooltipDisabled",t.isSponsor),f.Ab(2),f.kc("disabled",!t.isSponsor),f.Ab(1),f.Lc(" ",f.fc(90,104,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),f.Ab(2),f.lc("matTooltip",f.fc(92,106,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),f.kc("matTooltipDisabled",t.isPerunAdmin),f.Ab(2),f.kc("disabled",!t.isPerunAdmin),f.Ab(1),f.Lc(" ",f.fc(95,108,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),f.Ab(2),f.kc("ngIf","other"===t.sponsorType),f.Ab(2),f.Kc(f.fc(99,110,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),f.Ab(5),f.Lc(" ",f.fc(104,112,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),f.Ab(3),f.Lc(" ",f.fc(107,114,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),f.Ab(2),f.kc("disabled",null===t.sponsorType||"other"===t.sponsorType&&null===t.selectedSponsor),f.Ab(1),f.Lc(" ",f.fc(110,116,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function Z(t,e){if(1&t&&(f.Sb(0,"div",6),f.Sb(1,"div",47),f.Sb(2,"mat-icon",48),f.Jc(3,"done"),f.Rb(),f.Jc(4),f.ec(5,"translate"),f.Sb(6,"i"),f.Jc(7),f.ec(8,"userFullName"),f.Rb(),f.Jc(9),f.ec(10,"translate"),f.Rb(),f.Sb(11,"div"),f.Jc(12),f.ec(13,"translate"),f.Rb(),f.Sb(14,"div"),f.Jc(15),f.ec(16,"translate"),f.Rb(),f.Sb(17,"app-alert",49),f.Jc(18),f.ec(19,"translate"),f.Rb(),f.Rb()),2&t){const t=f.dc();f.Ab(4),f.Lc(" ",f.fc(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),f.Ab(3),f.Kc(f.fc(8,10,t.createdMember.user)),f.Ab(2),f.Lc(" ",f.fc(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),f.Ab(3),f.Mc("",f.fc(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",t.loginThatWasSet,""),f.Ab(3),f.Mc("",f.fc(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",t.namespaceControl.get("password").value," "),f.Ab(3),f.Kc(f.fc(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function Y(t,e){if(1&t){const t=f.Tb();f.Sb(0,"div",19),f.Sb(1,"button",50),f.Zb("click",(function(){return f.xc(t),f.dc().onCancel()})),f.Jc(2),f.ec(3,"translate"),f.Rb(),f.Rb()}2&t&&(f.Ab(2),f.Lc(" ",f.fc(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}class ${isErrorState(t,e){return!!(t&&t.invalid&&t.dirty)}}const X=(t,e,i,n=500)=>s=>Object(l.a)(n).pipe(Object(h.a)(()=>(i.dontHandleErrorForNext(),null===t||"No namespace"===t?Object(u.a)(null):e.checkPasswordStrength(s.value,t))),Object(d.a)(()=>null),Object(p.a)(t=>Object(u.a)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})));let Q=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l){this.dialogRef=t,this.data=e,this.membersService=i,this.apiRequestConfiguration=n,this.usersService=s,this.store=o,this.translator=r,this.authzService=a,this.guiAuthResolver=c,this.formBuilder=l,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.parsedRules=new Map,this.emailRegx=/^(([^<>+()\[\]\\.,;:\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]{2,3}))$/,this.userControl=null,this.namespaceControl=null,this.passwordStateMatcher=new $,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(c.a.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.userControl=this.formBuilder.group({firstName:["",r.F.required],lastName:["",r.F.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",r.F.required],login:["",[r.F.required]],password:["",r.F.required,[X(null,this.usersService,this.apiRequestConfiguration)]],passwordReset:[!1,[]],showPassword:[!1,[]],email:["",[r.F.required,r.F.pattern(this.emailRegx)]]}),this.membersService.getAllNamespacesRules().subscribe(t=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(t),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1})}parseNamespaceRules(){for(const t of this.namespaceRules){this.namespaceOptions.push(t.namespaceName);const e={login:"disabled",password:"disabled"};this.parseAttributes(e,t.requiredAttributes,"required"),this.parseAttributes(e,t.optionalAttributes,"optional"),this.parsedRules.set(t.namespaceName,e)}}parseAttributes(t,e,i){for(const n of e)switch(n){case"login":t.login=i;break;case"password":t.password=i}}onConfirm(){this.loading=!0;const t={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},e=this.namespaceControl.get("namespace").value,i=this.parsedRules.get(e);"No namespace"!==e&&(t.userData.namespace=e),"disabled"!==i.login&&(t.userData.login=this.namespaceControl.get("login").value),"disabled"!==i.password&&(t.sendActivationLink=this.namespaceControl.get("passwordReset").value,t.userData.password=this.namespaceControl.get("password").value),"never"!==this.expiration&&(t.validityTo=this.expiration),this.membersService.createSponsoredMember(t).subscribe(t=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=t,t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>t.friendlyNameParameter===e).filter(t=>null!==t.value).forEach(t=>{this.loginThatWasSet=t.value.toString()}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}enableFormControl(t,e,i=[]){t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}onNamespaceChanged(t){const e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("password"),s=this.namespaceControl.get("passwordReset"),o=this.namespaceControl.get("showPassword");"disabled"!==e.login?this.enableFormControl(i,"optional"===e.login?[]:[r.F.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?(this.enableFormControl(n,"optional"===e.password?[]:[r.F.required],[X(t,this.usersService,this.apiRequestConfiguration)]),this.enableFormControl(s,[]),this.enableFormControl(o,[])):(n.disable(),n.setValue(""),s.disable(),s.setValue(!1),o.disable(),o.setValue(!1))}passwordResetChange(){const t=this.namespaceControl.get("password");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue("")):t.enable()}setExpiration(t){this.expiration="never"===t?"never":Object(a.I)(t,"yyyy-MM-dd","en-GB")}getPasswordDisabledTooltip(){return this.namespaceControl.get("passwordReset").value?this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_VIA_EMAIL"):this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_DISABLED")}}return t.\u0275fac=function(e){return new(e||t)(f.Mb(n.i),f.Mb(n.a),f.Mb(s.i),f.Mb(o.b),f.Mb(s.p),f.Mb(o.m),f.Mb(g.e),f.Mb(s.d),f.Mb(o.h),f.Mb(r.f))},t.\u0275cmp=f.Gb({type:t,selectors:[["app-create-sponsored-member-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"dialog-container","mt-4",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],["matInput","","formControlName","password",3,"type","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["color","warn","matSuffix","",3,"matTooltip",4,"ngIf"],["formControlName","showPassword",1,"example-margin"],["matInput","","required","","formControlName","email",3,"placeholder"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled"],[1,"dialog-container"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[1,"mt-2",3,"datePicker"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","error"],[3,"value"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",3,"matTooltip"],[3,"users","disableAutoSelect","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(t,e){1&t&&(f.Sb(0,"div"),f.Hc(1,D,3,3,"h1",0),f.Hc(2,M,1,0,"mat-spinner",1),f.Hc(3,W,111,118,"div",2),f.Hc(4,Z,20,20,"div",2),f.Hc(5,Y,4,3,"div",3),f.Rb()),2&t&&(f.Cb(e.theme),f.Ab(1),f.kc("ngIf",!e.successfullyCreated),f.Ab(1),f.kc("ngIf",e.loading),f.Ab(1),f.kc("ngIf",!e.loading&&!e.successfullyCreated),f.Ab(1),f.kc("ngIf",!e.loading&&e.successfullyCreated),f.Ab(1),f.kc("ngIf",e.successfullyCreated))},directives:[a.t,n.j,b.c,n.g,m.a,m.b,m.d,r.H,r.s,r.j,A.c,y.b,r.c,r.r,r.i,r.C,n.c,w.b,m.h,v.a,a.s,_.a,S.a,m.i,E.b,r.u,E.a,R.a,C.a,A.b,T.n,A.j,k.a,I.a],pipes:[g.d,O.a],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}"]}),t})()},"7fDV":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){return t.substring(40)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"extSourceType",type:t,pure:!0}),t})()},"7ntQ":function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("ZTXN"),s=i("IdLP"),o=i("5uGe"),r=i("bwdy");function a(){return function(t){return t.lift(new c(t))}}class c{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new l(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class l extends o.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class u extends s.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.a.EMPTY)),t}refCount(){return a()(this)}}const h=(()=>{const t=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class d extends n.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function p(){return new n.a}function f(){return t=>{return a()((e=p,function(t){let i;i="function"==typeof e?e:function(){return e};const n=Object.create(t,h);return n.source=t,n.subjectFactory=i,n})(t));var e}}},"7o/y":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?"invalid"===t.toLowerCase()||e&&"invalid"===t.toLowerCase()?"INACTIVE":t:"ACTIVE"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"transformMemberStatus",type:t,pure:!0}),t})()},"8clQ":function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"C",(function(){return c})),i.d(e,"B",(function(){return l})),i.d(e,"v",(function(){return u})),i.d(e,"E",(function(){return h})),i.d(e,"F",(function(){return d})),i.d(e,"x",(function(){return p})),i.d(e,"w",(function(){return f})),i.d(e,"z",(function(){return g})),i.d(e,"t",(function(){return b})),i.d(e,"D",(function(){return m})),i.d(e,"h",(function(){return A})),i.d(e,"r",(function(){return y})),i.d(e,"b",(function(){return w})),i.d(e,"c",(function(){return v})),i.d(e,"G",(function(){return _})),i.d(e,"j",(function(){return S})),i.d(e,"k",(function(){return E})),i.d(e,"l",(function(){return R})),i.d(e,"m",(function(){return C})),i.d(e,"p",(function(){return T})),i.d(e,"e",(function(){return k})),i.d(e,"o",(function(){return I})),i.d(e,"d",(function(){return O})),i.d(e,"s",(function(){return D})),i.d(e,"y",(function(){return M})),i.d(e,"A",(function(){return P})),i.d(e,"q",(function(){return x})),i.d(e,"u",(function(){return N})),i.d(e,"g",(function(){return L})),i.d(e,"f",(function(){return F})),i.d(e,"n",(function(){return z})),i.d(e,"i",(function(){return H}));var n=i("D57K"),s=i("OZ4H"),o=i("2kYt"),r=i("etrl");const a=[5,10,25,100,1e3,1e4];function c(t){switch(t.status){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete"}}function l(t){switch(t.status){case"VALID":return"accent";case"INVALID":return"warn";default:return""}}function u(t){let e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(t=>{"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function h(t){let e="";return t&&t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e}function d(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function p(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function f(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function g(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function b(t){let e="";return t.split(/(?=[A-Z])/g).forEach(t=>{e=e.concat(t.toLowerCase()),e=e.concat(" ")}),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1),e}function m(t){let e="";for(const i of t)"technical"===i.type&&(e+=i.name+", ");return e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function A(t,e){return Object(n.a)(this,void 0,void 0,(function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()}))}function y(t){return JSON.parse(localStorage.getItem(t))||[]}function w(t,e){if(null===localStorage.getItem(t)){const i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(t)),n=function(t,e){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(e.id),i.length>5&&i.pop(),localStorage.setItem(t,JSON.stringify(i))}}function v(t){if(null===localStorage.getItem("recent")){let e;e="Group"===t.beanName?[{id:t.id,name:t.shortName,type:t.beanName,voId:t.voId}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(e))}else{const e=JSON.parse(localStorage.getItem("recent"));let i;i="Group"===t.beanName?{id:t.id,name:t.shortName,type:t.beanName,voId:t.voId}:{id:t.id,name:t.name,type:t.beanName,voId:t.voId};const n=function(t,e){for(let i=0;i0&&e.splice(n,1),0!==n&&e.unshift(i),e.length>5&&e.pop(),localStorage.setItem("recent",JSON.stringify(e))}}function _(t){let e="";return t&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)}),e}function S(t){return t.filter(t=>!t.namespace.includes("def:core"))}function E(t,e){const i=e.find(e=>e.id===t);return i?i.parentGroupId?E(i.parentGroupId,e).concat(i):[i]:[]}function R(t,e){for(const i of t)if(i.namespace+":"+i.friendlyName===e)return i;return null}function C(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function T(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){const i=t.split("/");for(const t in i)if(t.startsWith("CN="))return e=t.substring(3),decodeURIComponent(e.replace(/\\x/g,"%"))}var e;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function k(){return{appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{en:{locale:"en",subject:"",text:""},cs:{locale:"cs",subject:"",text:""}}}}function I(){const t=new s.e;return t.disableClose=!0,t.autoFocus=!1,t}function O(){return{applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{en:{locale:"en",errorMessage:"",help:"",label:"",options:""},cs:{locale:"cs",errorMessage:"",help:"",label:"",options:""}},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null}}function D(t){return"virt"===t.namespace.split(":")[4]}function M(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?"invalid"===t.toLowerCase()||e&&"invalid"===t.toLowerCase()?"INACTIVE":t:"ACTIVE"}function P(t){let e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(t=>{"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)})),e}function x(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}function N(t){return t&&"never"!==t.toLowerCase()?Object(o.I)(t,"d.M.yyyy","en"):t}function L(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return new Intl.Collator("cs",{numeric:!0}).compare(r,a)*("asc"===o?1:-1)}):t}function F(t,e,i,n,s){e=e.toLowerCase();let o="";return i.forEach(e=>{o+=";"+n(t,e,s)}),-1!==o.toLowerCase().indexOf(e)}function z(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function H(t,e="csv",i="export"){switch(e){case"csv":const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const a=o.join("\r\n"),c=new Blob([a],{type:"text/csv"});Object(r.saveAs)(c,`${i}.${e}`)}}},"8cyV":function(t,e,i){"use strict";i.d(e,"a",(function(){return E}));var n=i("EM62"),s=i("fAiE"),o=i("oqI+"),r=i("+0js"),a=i("8clQ"),c=i("OZ4H"),l=i("S17y"),u=i("2kYt"),h=i("bFHC"),d=i("Y2X+"),p=i("PBFl"),f=i("29Wa"),g=i("Cd2c");function b(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-icon",9),n.Zb("mousedown",(function(){return n.xc(t),n.dc(2).dragDisabled=!1})),n.Jc(1,"drag_indicator"),n.Rb()}}function m(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-icon",10),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc().edit(e)})),n.Jc(1,"edit"),n.Rb()}}function A(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-icon",11),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc().remove(e)})),n.Jc(1,"cancel"),n.Rb()}}function y(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-chip",4),n.Zb("removed",(function(){n.xc(t);const i=e.$implicit,s=n.dc();return s.remove(i),s._sendEventToParent()})),n.Hc(1,b,2,0,"mat-icon",5),n.Sb(2,"div",6),n.Zb("click",(function(){n.xc(t);const i=e.$implicit,s=n.dc();return s.readonly&&void 0!==s.attribute.displayName&&s.showValue(i,s.attribute.displayName)})),n.Jc(3),n.Rb(),n.Hc(4,m,2,0,"mat-icon",7),n.Hc(5,A,2,0,"mat-icon",8),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.kc("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),n.Ab(1),n.kc("ngIf",i.removable),n.Ab(1),n.Eb("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),n.Ab(1),n.Kc(t),n.Ab(1),n.kc("ngIf",i.removable),n.Ab(1),n.kc("ngIf",i.removable)}}function w(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"more_horiz"),n.Rb())}function v(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"keyboard_arrow_up"),n.Rb())}function _(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div",12),n.Sb(1,"span",13),n.Sb(2,"button",14),n.Zb("click",(function(){return n.xc(t),n.dc().onShowChange()})),n.Hc(3,w,2,0,"mat-icon",15),n.Hc(4,v,2,0,"mat-icon",15),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.Ab(2),n.kc("ngIf",!t.showMore),n.Ab(1),n.kc("ngIf",t.showMore)}}function S(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-form-field",12),n.Sb(1,"input",16),n.Zb("matChipInputTokenEnd",(function(e){return n.xc(t),n.dc().add(e)}))("change",(function(){return n.xc(t),n.dc()._sendEventToParent()})),n.Rb(),n.Rb()}if(2&t){const t=n.dc(),e=n.tc(2);n.Ab(1),n.kc("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let E=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[s.g,s.c],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.o,this.readonly=!1}ngOnInit(){this.removable=!Object(a.s)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Object(a.s)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=Object(a.o)();e.width="400px",e.data={name:t},this.dialog.open(r.a,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,Object(o.h)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=Object(a.o)();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(r.b,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=Object(a.o)();i.width="350px",i.data={value:t,title:e},this.dialog.open(r.l,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.b))},t.\u0275cmp=n.Gb({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"mat-chip-list",0,1),n.Zb("cdkDropListDropped",(function(t){return e.drop(t),e._sendEventToParent()})),n.Hc(3,y,6,9,"mat-chip",2),n.Hc(4,_,5,4,"div",3),n.Hc(5,S,2,3,"mat-form-field",3),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.kc("cdkDropListDisabled",e.dragDisabled),n.Ab(2),n.kc("ngForOf",e.values.slice(0,e.itemsShown)),n.Ab(1),n.kc("ngIf",e.values.length>e.defaultItemsShown),n.Ab(1),n.kc("ngIf",!e.readonly))},directives:[l.d,o.e,u.s,u.t,l.a,o.a,h.a,d.a,p.b,f.c,g.b,l.c],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},"8j5Y":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("5uGe");function s(){}var o=i("IJgj");function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.a{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,Object(o.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},"8lHc":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("IdLP"),s=i("Efrr"),o=i("KRZI"),r=i("gBlb");function a(t=0,e,i){let a=-1;return Object(o.a)(e)?a=Number(e)<1?1:Number(e):Object(r.a)(e)&&(i=e),Object(r.a)(i)||(i=s.a),new n.a(e=>{const n=Object(o.a)(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},"9RND":function(t){t.exports=JSON.parse('{"a":"0.21.0"}')},"9bRT":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("IdLP");function s(t){return!!t&&(t instanceof n.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"9wx0":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),s=i("PBFl"),o=i("Jb3d"),r=i("bFHC"),a=i("s2Ay");let c=(()=>{class t{constructor(){this.exportData=new n.o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(n.Sb(0,"div",0),n.Sb(1,"button",1),n.Sb(2,"mat-icon"),n.Jc(3,"more_vert"),n.Rb(),n.Rb(),n.Sb(4,"mat-menu",null,2),n.Sb(6,"button",3),n.Jc(7),n.ec(8,"translate"),n.Rb(),n.Rb(),n.Sb(9,"mat-menu",null,4),n.Sb(11,"button",5),n.Zb("click",(function(){return e.exportData.emit("csv")})),n.Jc(12,"Csv"),n.Rb(),n.Rb(),n.Rb()),2&t){const t=n.tc(5),e=n.tc(10);n.Ab(1),n.kc("matMenuTriggerFor",t),n.Ab(5),n.kc("matMenuTriggerFor",e),n.Ab(1),n.Lc(" ",n.fc(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[s.b,o.d,r.a,o.e,o.b],pipes:[a.d],styles:[".position-right[_ngcontent-%COMP%]{position:absolute;right:20px;margin:-1.25rem}"]}),t})()},A1vf:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("4sdY"),s=i("Sy1n"),o=i("EkAj"),r=i("Ssnw"),a=i("TkCa"),c=i("EM62");function l(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",9),c.Rb()),2&t){const t=e.$implicit,i=e.index,n=c.dc();c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",n.sideNav)("item",t)("index",i)}}function u(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",10),c.Rb()),2&t){const t=e.$implicit,i=e.index,n=c.dc();c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.accessItems.length-1)}}function h(t,e){if(1&t&&c.Nb(0,"app-side-menu-root-item",2),2&t){const t=c.dc();c.kc("sideNav",t.sideNav)("item",t.facilityItem)}}function d(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",10),c.Rb()),2&t){const t=e.$implicit,i=e.index,n=c.dc(2);c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.facilityItems.length-1)}}function p(t,e){if(1&t&&(c.Sb(0,"div"),c.Hc(1,d,2,5,"div",3),c.Rb()),2&t){const t=c.dc();c.Ab(1),c.kc("ngForOf",t.facilityItems)}}function f(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",10),c.Rb()),2&t){const t=e.$implicit,i=e.index,n=c.dc();c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.userItems.length-1)}}function g(t,e){if(1&t&&c.Nb(0,"app-side-menu-root-item",6),2&t){const t=c.dc();c.kc("sideNav",t.sideNav)("showOpen",t.adminItemOpened)("item",t.adminItem)}}function b(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",10),c.Rb()),2&t){const t=e.$implicit,i=e.index,n=c.dc(2);c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",n.sideNav)("item",t)("index",i)("showLinks",!0)}}function m(t,e){if(1&t&&(c.Sb(0,"div"),c.Hc(1,b,2,5,"div",3),c.Rb()),2&t){const t=c.dc();c.Ab(1),c.kc("ngForOf",t.adminItems)}}let A=(()=>{class t{constructor(t,e,i,n){this.sideMenuService=t,this.sideMenuItemService=e,this.authResolver=i,this.store=n,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}ngOnInit(){this.mobileView=window.innerWidth<=s.a.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(t=>{this.setFacilityItems(t)}),this.sideMenuService.accessItemsChange.subscribe(t=>{this.setAccessItems(t)}),this.sideMenuService.adminItemsChange.subscribe(t=>{this.setAdminItems(t)}),this.sideMenuService.userItemsChange.subscribe(t=>{this.setUserItems(t)}),this.sideMenuService.homeItemsChange.subscribe(t=>{this.setHomeItems(t)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}setHomeItems(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}setFacilityItems(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}setAccessItems(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}setUserItems(t){this.userItemOpened=!0,this.resetExceptUser(),this.setNewItems(this.userItems,t)}setAdminItems(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}setNewItems(t,e){const i=t.length>e.length?t.length:e.length;for(let n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){const e=t.length;for(let i=0;i{class t{transform(t,...e){return Object(n.t)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"attributeFriendlyName",type:t,pure:!0}),t})()},A8Ay:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("EM62"),s=i("nIj0"),o=i("29Wa"),r=i("2kYt"),a=i("Cd2c"),c=i("TQS+"),l=i("s2Ay");function u(t,e){if(1&t&&(n.Nb(0,"input",3),n.ec(1,"translate")),2&t){const t=n.dc();n.lc("placeholder",n.fc(1,2,t.placeholder)),n.kc("formControl",t.formControl)}}function h(t,e){if(1&t&&(n.Nb(0,"input",4),n.ec(1,"translate")),2&t){const t=n.dc();n.lc("placeholder",n.fc(1,2,t.placeholder)),n.kc("formControl",t.formControl)}}let d=(()=>{class t{constructor(){this.filter=new n.o,this.autoFocus=!1,this.formControl=new s.g}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.Sb(0,"mat-form-field",0),n.Hc(1,u,2,4,"input",1),n.Hc(2,h,2,4,"input",2),n.Rb()),2&t&&(n.Ab(1),n.kc("ngIf",e.autoFocus),n.Ab(1),n.kc("ngIf",!e.autoFocus))},directives:[o.c,r.t,a.b,s.c,c.a,s.r,s.h],pipes:[l.d],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important}"]}),t})()},ABWF:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),s=i("LAw4"),o=i("s2Ay");let r=(()=>{class t{constructor(){this.groupSelected=new n.o,this.disableAutoSelect=!1,this.nameFunction=t=>t.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect"},outputs:{groupSelected:"groupSelected"},decls:4,vars:13,consts:[[1,"long-input",3,"entities","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.groupSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.groups)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.fc(1,7,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.fc(2,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.fc(3,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))},directives:[s.a],pipes:[o.d],styles:[""]}),t})()},AtkZ:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("nIj0"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("29Wa"),p=i("Cd2c"),f=i("R7+U"),g=i("mFH5");function b(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function m(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-option",13),a.Zb("click",(function(){a.xc(t);const i=e.$implicit;return a.dc(2).srcFacility=i})),a.Jc(1),a.Rb()}if(2&t){const t=e.$implicit;a.kc("value",t),a.Ab(1),a.Lc(" ",t.name," ")}}function A(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",7),a.Sb(1,"mat-form-field"),a.Nb(2,"input",8),a.ec(3,"translate"),a.Sb(4,"mat-error"),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Sb(7,"mat-form-field"),a.Nb(8,"input",9),a.ec(9,"translate"),a.Rb(),a.Sb(10,"mat-form-field"),a.Sb(11,"mat-select",10),a.ec(12,"translate"),a.Sb(13,"mat-option",11),a.Zb("click",(function(){return a.xc(t),a.dc().srcFacility=null})),a.Jc(14),a.ec(15,"translate"),a.Rb(),a.Hc(16,m,2,2,"mat-option",12),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.lc("placeholder",a.fc(3,8,"DIALOGS.CREATE_FACILITY.NAME")),a.kc("formControl",t.nameControl),a.Ab(3),a.Kc(a.fc(6,10,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),a.Ab(3),a.lc("placeholder",a.fc(9,12,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),a.kc("formControl",t.descControl),a.Ab(3),a.lc("placeholder",a.fc(12,14,"DIALOGS.CREATE_FACILITY.AS_COPY")),a.Ab(3),a.Lc(" ",a.fc(15,16,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),a.Ab(2),a.kc("ngForOf",t.facilities)}}let y=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.nameControl=new r.g("",[r.F.required]),this.descControl=new r.g(""),this.srcFacility=null,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(t=>{this.facilities=t,this.loading=!1},()=>this.loading=!1)}copyFacilitySettings(t){this.facilitiesManager.copyAttributes(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,t).subscribe(()=>{this.handleSuccess()},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}onCreate(){this.loading=!0,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(t=>{null!==this.srcFacility?this.copyFacilitySettings(t.id):this.handleSuccess()})}handleSuccess(){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.g),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-create-facility-dialog"]],decls:13,vars:15,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"],["mat-flat-button","","color","accent",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,b,1,0,"mat-spinner",1),a.Hc(5,A,17,18,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onCreate()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.CREATE_FACILITY.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Kc(a.fc(9,11,"DIALOGS.CREATE_FACILITY.CANCEL")),a.Ab(2),a.kc("disabled",0===e.nameControl.value.trim().length||e.loading),a.Ab(1),a.Kc(a.fc(12,13,"DIALOGS.CREATE_FACILITY.CREATE")))},directives:[l.t,n.c,u.b,h.c,n.g,d.c,p.b,r.c,r.C,r.r,r.h,d.b,f.a,g.n,l.s],pipes:[c.d],styles:[""]}),t})()},AytR:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n={production:!0,api_url:"https://perun-dev.cesnet.cz/oauth/rpc/",oauth_authority:"https://login.cesnet.cz/oidc/",oauth_callback:"https://gui-dev.perun-aai.org/api-callback",oauth_client_id:"411471d9-5e3d-48bd-9717-25f1fa634d20",oauth_redirect_uri:"https://gui-dev.perun-aai.org/api-callback",oauth_post_logout_redirect_uri:"https://gui-dev.perun-aai.org/",oauth_silent_redirect_uri:"https://gui-dev.perun-aai.org/silent-refresh.html"}},"B/Qt":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("Ssnw"),s=i("EM62"),o=i("sEIs"),r=i("2kYt");let a=(()=>{class t{constructor(t,e,i,n){this.router=t,this.route=e,this.location=i,this.forceRoute=n}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(t=>{this.router.navigate([t.redirectTo])}):this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(o.f),s.Mb(o.a),s.Mb(r.n),s.Mb(n.g))},t.\u0275cmp=s.Gb({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})()},BYpP:function(t,e,i){"use strict";i.d(e,"a",(function(){return U})),i.d(e,"b",(function(){return K})),i.d(e,"c",(function(){return j}));var n=i("EM62"),s=i("nIj0"),o=i("mFH5"),r=i("R7+U"),a=i("29Wa"),c=i("fAiE"),l=i("C05f"),u=i("ROBh"),h=i("HM3f"),d=i("ZTXN"),p=i("TLy2"),f=i("YtkY"),g=i("jIqt"),b=i("BwBJ"),m=i("kuMc"),A=i("J+dc"),y=i("xVbo"),w=i("8j5Y"),v=i("SrNW"),_=i("PBFl"),S=i("+Tre"),E=i("bFHC"),R=i("csyo"),C=i("Y2X+"),T=i("2kYt"),k=i("qvOF"),I=i("sg/T");const O=["searchSelectInput"],D=["innerSelectSearch"];function M(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-checkbox",9),n.Zb("change",(function(e){return n.xc(t),n.dc()._emitSelectAllBooleanToParent(e.checked)})),n.Rb()}if(2&t){const t=n.dc();n.kc("color",null==t.matFormField?null:t.matFormField.color)("checked",t.toggleAllCheckboxChecked)("indeterminate",t.toggleAllCheckboxIndeterminate)("matTooltip",t.toggleAllCheckboxTooltipMessage)("matTooltipPosition",t.toogleAllCheckboxTooltipPosition)}}function P(t,e){1&t&&n.Nb(0,"mat-spinner",10)}function x(t,e){1&t&&n.ic(0,1,["*ngIf","clearIcon; else defaultIcon"])}function N(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"close"),n.Rb())}function L(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",11),n.Zb("click",(function(){return n.xc(t),n.dc()._reset(!0)})),n.Hc(1,x,1,0,"ng-content",12),n.Hc(2,N,2,0,"ng-template",null,13,n.Ic),n.Rb()}if(2&t){const t=n.tc(3),e=n.dc();n.Ab(1),n.kc("ngIf",e.clearIcon)("ngIfElse",t)}}function F(t,e){if(1&t&&(n.Sb(0,"div",14),n.Jc(1),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.Lc(" ",t.noEntriesFoundLabel,"\n")}}const z=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],H=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},B=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let j=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})();var G;let U=(()=>{let t=G=class{constructor(t,e,i,o=null,r,a=null){this.matSelect=t,this.changeDetectorRef=e,this._viewportRuler=i,this.matOption=o,this.liveAnnouncer=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",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.toggleAll=new n.o,this.onTouched=t=>{},this._options$=new l.a(null),this.optionsList$=this._options$.pipe(Object(p.a)(t=>t?t.changes.pipe(Object(f.a)(t=>t.toArray()),Object(g.a)(t.toArray())):Object(u.a)(null))),this.optionsLength$=this.optionsList$.pipe(Object(f.a)(t=>t?t.length:0)),this._formControl=new s.g(""),this._showNoEntriesFound$=Object(h.a)([this._formControl.valueChanges,this.optionsLength$]).pipe(Object(f.a)(([t,e])=>this.noEntriesFoundLabel&&t&&e===this.getOptionsLengthOffset())),this._onDestroy=new d.a}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(t){this._options$.next(t)}get _options(){return this._options$.getValue()}ngOnInit(){const t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.initMultiSelectedValuesTracking(),this.matSelect.openedChange.pipe(Object(b.a)(1),Object(m.a)(this._onDestroy)).subscribe(t=>{t?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(Object(A.a)(1)).pipe(Object(m.a)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe(Object(m.a)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe(Object(m.a)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const e=this._options.toArray()[this.getOptionsLengthOffset()],i=this.matSelect._keyManager;i&&this.matSelect.panelOpen&&(!this.matSelect.compareWith(t,e)&&i.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),t=e})})}),this._showNoEntriesFound$.pipe(Object(m.a)(this._onDestroy)).subscribe(t=>{this.matOption&&(t?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(Object(m.a)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Object(m.a)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(t){this.toggleAll.emit(t)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(t){(t.key&&1===t.key.length||t.keyCode>=c.a&&t.keyCode<=c.r||t.keyCode>=c.s&&t.keyCode<=c.k||t.keyCode===c.o||this.preventHomeEndKeyPropagation&&(t.keyCode===c.i||t.keyCode===c.f))&&t.stopPropagation(),!0===this.enableClearOnEscapePressed&&t.keyCode===c.h&&this.value&&(this._reset(!0),t.stopPropagation())}_handleKeyup(t){if(t.keyCode===c.q||t.keyCode===c.e){const t=this.matSelect._getAriaActiveDescendant(),e=this._options.toArray().findIndex(e=>e.id===t);if(-1!==e){const t=this._options.toArray()[e];this.liveAnnouncer.announce(t.viewValue+" "+this.getAriaIndex(e)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(t){return 0===this.getOptionsLengthOffset()?t+1:t}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(t){this._formControl.valueChanges.pipe(Object(y.a)(t=>t!==this._lastExternalInputValue),Object(w.a)(()=>this._lastExternalInputValue=void 0),Object(m.a)(this._onDestroy)).subscribe(t)}registerOnTouched(t){this.onTouched=t}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}_reset(t){this._formControl.setValue(""),t&&this._focus()}initMultipleHandling(){this.matSelect.valueChange.pipe(Object(m.a)(this._onDestroy)).subscribe(t=>{if(this.matSelect.multiple){let e=!1;if(this._formControl.value&&this._formControl.value.length&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);const i=this.matSelect.options.map(t=>t.value);this.previousSelectedValues.forEach(n=>{t.some(t=>this.matSelect.compareWith(t,n))||i.some(t=>this.matSelect.compareWith(t,n))||(t.push(n),e=!0)})}e&&(this.matSelect._onChange(t),this.previousSelectedValues=t)}})}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=Object(o.w)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,s=this.matSelect.panel.nativeElement.scrollTop,a=this.innerSelectSearch.nativeElement.offsetHeight,c=Math.floor((r.d-a)/t),l=Math.round((s+a)/t)-1;l>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:l+c<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(r.d-a))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let t,e=this.innerSelectSearch.nativeElement;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}initMultiSelectedValuesTracking(){this._formControl.valueChanges.pipe(Object(g.a)(void 0),Object(v.a)((t,e)=>({currentValue:e,previousValue:t.currentValue}),{currentValue:void 0,previousValue:void 0}),Object(m.a)(this._onDestroy)).subscribe(t=>{const e=this._options?this._options.toArray():[];this.matSelect.multiple&&!t.previousValue&&(this.previousSelectedValues=e.filter(t=>t.selected).map(t=>t.value))})}getOptionsLengthOffset(){return this.matOption?1:0}};return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.a),n.Mb(n.h),n.Mb(k.h),n.Mb(o.n,8),n.Mb(I.k),n.Mb(a.c,8))},t.\u0275cmp=n.Gb({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){var s;1&t&&n.Fb(i,j,!0),2&t&&n.sc(s=n.ac())&&(e.clearIcon=s.first)},viewQuery:function(t,e){var i;1&t&&(n.Dc(O,!0,n.l),n.Dc(D,!0,n.l)),2&t&&(n.sc(i=n.ac())&&(e.searchSelectInput=i.first),n.sc(i=n.ac())&&(e.innerSelectSearch=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&n.Eb("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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"},outputs:{toggleAll:"toggleAll"},features:[n.zb([{provide:s.p,useExisting:Object(n.U)(()=>G),multi:!0}])],ngContentSelectors:B,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",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(n.jc(z),n.Nb(0,"input",0),n.Sb(1,"div",1,2),n.Hc(3,M,1,5,"mat-checkbox",3),n.Sb(4,"input",4,5),n.Zb("keydown",(function(t){return e._handleKeydown(t)}))("keyup",(function(t){return e._handleKeyup(t)}))("blur",(function(){return e.onBlur()})),n.Rb(),n.Hc(6,P,1,0,"mat-spinner",6),n.Hc(7,L,4,2,"button",7),n.ic(8),n.Rb(),n.Hc(9,F,2,1,"div",8),n.ec(10,"async")),2&t&&(n.Ab(1),n.kc("ngClass",n.qc(11,H,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),n.Ab(2),n.kc("ngIf",e._isToggleAllCheckboxVisible()),n.Ab(1),n.kc("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),n.Bb("aria-label",e.ariaLabel),n.Ab(2),n.kc("ngIf",e.searching),n.Ab(1),n.kc("ngIf",e.value&&!e.searching),n.Ab(2),n.kc("ngIf",n.fc(10,9,e._showNoEntriesFound$)))},directives:[T.q,T.t,s.c,s.r,s.h,S.a,C.a,R.c,_.b,E.a],pipes:[T.b],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}),t})(),K=(()=>{let t=class{};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[T.c,s.B,_.c,S.b,E.b,R.b,C.b]]}),t})()},BnyX:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("EM62"),s=i("29Wa"),o=i("Cd2c"),r=i("gcUQ"),a=i("nIj0"),c=i("s2Ay");let l=(()=>{class t{constructor(){this.datePicker=new n.o}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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"space-right",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-form-field",0),n.Zb("click",(function(){return n.xc(t),n.tc(7).open()})),n.Sb(1,"mat-label"),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Sb(4,"input",1),n.Zb("dateChange",(function(){return e.dateChange()})),n.Rb(),n.Nb(5,"mat-datepicker-toggle",2),n.Nb(6,"mat-datepicker",null,3),n.Rb(),n.Sb(8,"mat-form-field",4),n.Zb("click",(function(){return n.xc(t),n.tc(15).open()})),n.Sb(9,"mat-label"),n.Jc(10),n.ec(11,"translate"),n.Rb(),n.Sb(12,"input",1),n.Zb("dateChange",(function(){return e.dateChange()})),n.Rb(),n.Nb(13,"mat-datepicker-toggle",2),n.Nb(14,"mat-datepicker",null,5),n.Rb()}if(2&t){const t=n.tc(7),i=n.tc(15);n.Ab(2),n.Kc(n.fc(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.Ab(2),n.kc("matDatepicker",t)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.Ab(1),n.kc("for",t),n.Ab(5),n.Kc(n.fc(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.Ab(2),n.kc("matDatepicker",i)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.Ab(1),n.kc("for",i)}},directives:[s.c,s.g,o.b,r.f,a.c,a.r,a.h,r.h,s.j,r.d],pipes:[c.d],styles:[""]}),t})()},BwBJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("Efrr"),s=i("5uGe"),o=i("ryP2");function r(t,e=n.a){var i;const s=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new a(s,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))}}class c extends s.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.time=t,this.notification=e}}},C05f:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("ZTXN"),s=i("MiDb");class o extends n.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},C5kn:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"memberStatusIconColor",type:t,pure:!0}),t})()},CIWc:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&(a.Sb(0,"th",17),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")))}function f(t,e){if(1&t&&(a.Sb(0,"td",18),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.id," ")}}function g(t,e){1&t&&(a.Sb(0,"th",17),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")))}function b(t,e){if(1&t&&(a.Sb(0,"td",18),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.destination.destination," ")}}function m(t,e){1&t&&(a.Sb(0,"th",17),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function A(t,e){if(1&t&&(a.Sb(0,"td",18),a.Jc(1),a.ec(2,"date"),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",a.gc(2,1,t.timestamp,"d.M.y H:mm:ss")," ")}}function y(t,e){1&t&&a.Nb(0,"tr",19)}function w(t,e){1&t&&a.Nb(0,"tr",20)}function v(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,3,3,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Qb(11,13),a.Hc(12,g,3,3,"th",11),a.Hc(13,b,2,1,"td",12),a.Pb(),a.Qb(14,14),a.Hc(15,m,3,3,"th",11),a.Hc(16,A,3,4,"td",12),a.Pb(),a.Hc(17,y,1,0,"tr",15),a.Hc(18,w,1,0,"tr",16),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Kc(a.fc(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(10),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let _=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.taskManager=i,this.notificator=n,this.translate=s,this.loading=!1,this.dataSource=new r.o(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}deleteResults(){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.deleteResults()},()=>this.loading=!1)}onDelete(){this.deleteResults()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(n.o),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,v,19,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onDelete()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),a.Ab(2),a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[s.j,l.t,s.c,u.b,h.c,s.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d,l.f],styles:[""]}),t})()},COMt:function(t,e,i){"use strict";i.d(e,"a",(function(){return B}));var n=i("EM62"),s=i("cqs0"),o=i("iAde"),r=i("cePI"),a=i("FlRo"),c=i("8clQ"),l=i("Ssnw"),u=i("2kYt"),h=i("9wx0"),d=i("+Tre"),p=i("FcRk"),f=i("s2Ay");function g(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",23),n.Sb(1,"mat-checkbox",24),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function b(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",25),n.Sb(1,"mat-checkbox",26),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function m(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function A(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function y(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function w(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.destination.destination)}}function v(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function _(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.destination.type.toUpperCase())}}function S(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function E(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.service.name)}}function R(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function C(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.status)}}function T(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function k(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.gc(2,1,t.timestamp,"d.M.y H:mm:ss"))}}function I(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function O(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.returnCode)}}function D(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function M(t,e){if(1&t&&(n.Sb(0,"span"),n.Jc(1),n.Nb(2,"br"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t)}}function P(t,e){if(1&t&&(n.Sb(0,"td",25),n.Hc(1,M,3,1,"span",28),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngForOf",t.standardMessage.split("\n"))}}function x(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function N(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.errorMessage)}}function L(t,e){1&t&&n.Nb(0,"tr",29)}function F(t,e){if(1&t&&n.Nb(0,"tr",30),2&t){const t=e.$implicit;n.Eb("yellowTableItem","WARNING"===t.status)("greenTableItem","DONE"===t.status)("redTableItem","ERROR"===t.status||"DENIED"===t.status)}}function z(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function H(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let B=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.pageSizeOptions=c.a,this.taskResults=[],this.selection=new s.c(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.page=new n.o}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new a.o(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return Object(u.I)(t.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}getSortDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return Object(u.I)(t.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getSortDataForColumn,this))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Dc(o.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:40,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",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,"yellowTableItem","greenTableItem","redTableItem",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,g,2,3,"th",6),n.Hc(7,b,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,m,3,3,"th",9),n.Hc(10,A,2,1,"td",10),n.Pb(),n.Qb(11,11),n.Hc(12,y,3,3,"th",9),n.Hc(13,w,2,1,"td",10),n.Pb(),n.Qb(14,12),n.Hc(15,v,3,3,"th",9),n.Hc(16,_,2,1,"td",10),n.Pb(),n.Qb(17,13),n.Hc(18,S,3,3,"th",9),n.Hc(19,E,2,1,"td",10),n.Pb(),n.Qb(20,14),n.Hc(21,R,3,3,"th",9),n.Hc(22,C,2,1,"td",10),n.Pb(),n.Qb(23,15),n.Hc(24,T,3,3,"th",9),n.Hc(25,k,3,4,"td",10),n.Pb(),n.Qb(26,16),n.Hc(27,I,3,3,"th",9),n.Hc(28,O,2,1,"td",10),n.Pb(),n.Qb(29,17),n.Hc(30,D,3,3,"th",9),n.Hc(31,P,2,1,"td",10),n.Pb(),n.Qb(32,18),n.Hc(33,x,3,3,"th",9),n.Hc(34,N,2,1,"td",10),n.Pb(),n.Hc(35,L,1,0,"tr",19),n.Hc(36,F,1,6,"tr",20),n.Rb(),n.Rb(),n.Sb(37,"mat-paginator",21),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(38,z,3,3,"app-alert",22),n.Hc(39,H,3,3,"app-alert",22)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.taskResults.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(31),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.taskResults.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.taskResults.length),n.Ab(1),n.kc("ngIf",0===e.taskResults.length))},directives:[h.a,a.n,r.a,a.c,a.i,a.b,a.k,a.m,o.a,u.t,a.h,d.a,a.a,r.b,u.s,a.j,a.l,p.a],pipes:[f.d,u.f],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),t})()},Cd2c:function(t,e,i){"use strict";i.d(e,"a",(function(){return p})),i.d(e,"b",(function(){return A})),i.d(e,"c",(function(){return y})),i.d(e,"d",(function(){return h}));var n=i("H0K4"),s=i("EM62"),o=i("5XID"),r=i("cZZj"),a=i("mFH5"),c=i("29Wa"),l=i("ZTXN"),u=i("nIj0");let h=(()=>{class t extends n.c{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return d(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[s.xb]}),t})();const d=s.Ub(h),p=new s.r("MAT_INPUT_VALUE_ACCESSOR"),f=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class b{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const m=Object(a.B)(b);let A=(()=>{class t extends m{constructor(t,e,i,n,s,o,a,c,u){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new l.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Object(r.e)().has(t));const h=this._elementRef.nativeElement,d=h.nodeName.toLowerCase();this._inputValueAccessor=a||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===d,this._isTextarea="textarea"===d,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(t){this._disabled=Object(o.c)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Object(o.c)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Object(r.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Object(o.c)(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(f.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(r.a),s.Mb(u.q,10),s.Mb(u.t,8),s.Mb(u.j,8),s.Mb(a.d),s.Mb(p,10),s.Mb(n.a),s.Mb(s.A))},t.\u0275dir=s.Hb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&s.Zb("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(s.Vb("disabled",e.disabled)("required",e.required),s.Bb("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),s.Eb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[s.zb([{provide:c.d,useExisting:t}]),s.xb,s.yb]}),t})(),y=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[a.d],imports:[[n.d,c.e],n.d,c.e]}),t})()},"D+oT":function(t,e,i){"use strict";i.d(e,"a",(function(){return E}));var n=i("X2Q7"),s=i("iyZ4"),o=i("nyAh"),r=i("Ssnw"),a=i("nIj0"),c=i("EM62"),l=i("29Wa"),u=i("Cd2c"),h=i("PBFl"),d=i("bFHC"),p=i("2kYt"),f=i("csyo"),g=i("NC8S"),b=i("FcRk"),m=i("s2Ay");function A(t,e){1&t&&c.Nb(0,"mat-spinner",8)}const y=function(){return["user","id","name","email","logins","organization"]};function w(t,e){if(1&t){const t=c.Tb();c.Sb(0,"app-users-list",11),c.Zb("page",(function(e){return c.xc(t),c.dc(2).pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc(2);c.kc("pageSize",t.pageSize)("displayedColumns",c.oc(3,y))("users",t.users)}}function v(t,e){1&t&&(c.Sb(0,"app-alert",12),c.Jc(1),c.ec(2,"translate"),c.Rb()),2&t&&(c.kc("alert_type","info"),c.Ab(1),c.Lc(" ",c.fc(2,2,"ADMIN.USERS.SEARCH_INFO")," "))}function _(t,e){1&t&&(c.Sb(0,"app-alert",12),c.Jc(1),c.ec(2,"translate"),c.Rb()),2&t&&(c.kc("alert_type","warn"),c.Ab(1),c.Lc(" ",c.fc(2,2,"ADMIN.USERS.NO_USERS_FOUND")," "))}function S(t,e){if(1&t&&(c.Sb(0,"div"),c.Hc(1,w,1,4,"app-users-list",9),c.Hc(2,v,3,4,"app-alert",10),c.Hc(3,_,3,4,"app-alert",10),c.Rb()),2&t){const t=c.dc();c.Ab(1),c.kc("ngIf",void 0!==t.users&&t.users.length>0),c.Ab(1),c.kc("ngIf",!t.firstSearchDone),c.Ab(1),c.kc("ngIf",t.firstSearchDone&&0===t.users.length)}}let E=(()=>{class t{constructor(t,e,i){this.usersService=t,this.storeService=e,this.tableConfigService=i,this.loading=!1,this.firstSearchDone=!1,this.tableId=s.n,this.attributes=[]}ngOnInit(){this.searchControl=new a.g("",[a.F.required,a.F.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.attributes=[o.a.USER_DEF_ORGANIZATION,o.a.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(){this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.loading=!0,this.firstSearchDone=!0,this.usersService.findRichUsersWithAttributes(this.searchControl.value,this.attributes).subscribe(t=>{this.users=t,this.loading=!1},()=>{this.loading=!1}))}onKeyInput(t){"Enter"===t.key&&this.onSearchByString()}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}findUsersWithoutVO(){this.loading=!0,this.firstSearchDone=!0,this.usersService.getRichUsersWithoutVoWithAttributes(this.attributes).subscribe(t=>{this.users=t,this.loading=!1},()=>this.loading=!1)}}return t.id="AdminUsersComponent",t.\u0275fac=function(e){return new(e||t)(c.Mb(n.p),c.Mb(r.m),c.Mb(s.pb))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},decls:19,vars:17,consts:[[3,"keyup"],[1,"page-subtitle"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","users","page",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"pageSize","displayedColumns","users","page"],[3,"alert_type"]],template:function(t,e){1&t&&(c.Sb(0,"div",0),c.Zb("keyup",(function(t){return e.onKeyInput(t)})),c.Sb(1,"h1",1),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"mat-form-field",2),c.Sb(5,"label"),c.Nb(6,"input",3),c.ec(7,"translate"),c.Rb(),c.Sb(8,"mat-error"),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Rb(),c.Sb(11,"button",4),c.Zb("click",(function(){return e.onSearchByString()})),c.Sb(12,"mat-icon"),c.Jc(13,"search"),c.Rb(),c.Rb(),c.Sb(14,"button",5),c.Zb("click",(function(){return e.findUsersWithoutVO()})),c.Jc(15),c.ec(16,"translate"),c.Rb(),c.Hc(17,A,1,0,"mat-spinner",6),c.Hc(18,S,4,3,"div",7),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,9,"ADMIN.USERS.TITLE")),c.Ab(4),c.lc("placeholder",c.fc(7,11,"ADMIN.USERS.SEARCH_PLACEHOLDER")),c.kc("formControl",e.searchControl),c.Ab(3),c.Lc(" ",c.fc(10,13,"ADMIN.USERS.EMPTY_SEARCH")," "),c.Ab(2),c.kc("disabled",e.loading),c.Ab(3),c.kc("disabled",e.loading),c.Ab(1),c.Lc(" ",c.fc(16,15,"ADMIN.USERS.USERS_WITHOUT_VO")," "),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[l.c,u.b,a.c,a.r,a.h,l.b,h.b,d.a,p.t,f.c,g.a,b.a],pipes:[m.d],styles:[".search-field[_ngcontent-%COMP%]{width:300px}"]}),t})()},D57K:function(t,e,i){"use strict";function n(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}function s(t,e,i,n){return new(i||(i=Promise))((function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,a)}c((n=n.apply(t,e||[])).next())}))}i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s}))},"DG/E":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},Dkjx:function(t,e,i){"use strict";i.d(e,"a",(function(){return I}));var n=i("OZ4H"),s=i("TkCa"),o=i("X2Q7"),r=i("nIj0"),a=i("EM62"),c=i("2kYt"),l=i("PBFl"),u=i("csyo"),h=i("29Wa"),d=i("R7+U"),p=i("+Tre"),f=i("mFH5"),g=i("Cd2c"),b=i("s2Ay");function m(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function A(t,e){1&t&&(a.Sb(0,"mat-option",19),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function y(t,e){1&t&&(a.Sb(0,"mat-option",20),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function w(t,e){if(1&t&&(a.Sb(0,"mat-option",21),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t),a.Ab(1),a.Lc(" ",t.name," ")}}function v(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function _(t,e){if(1&t&&(a.Sb(0,"mat-option",21),a.Jc(1),a.Rb()),2&t){const t=e.$implicit,i=a.dc(2);a.kc("value",t),a.Ab(1),a.Lc(" ",i.getTypeForView(t)," ")}}function S(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function E(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function R(t,e){if(1&t&&(a.Sb(0,"mat-form-field",22),a.Nb(1,"input",23),a.Hc(2,S,3,3,"mat-error",13),a.Hc(3,E,3,3,"mat-error",13),a.Rb()),2&t){const t=a.dc(2);a.Ab(1),a.lc("placeholder",t.getTypeForView(t.selectedType)),a.kc("formControl",t.destinationControl),a.Ab(1),a.kc("ngIf","host"===t.selectedType&&!t.useFacilityHost&&t.destinationControl.hasError("required")),a.Ab(1),a.kc("ngIf",t.destinationControl.hasError("invalidDestination"))}}function C(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-checkbox",24),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).useFacilityHost=e})),a.Jc(1),a.ec(2,"translate"),a.Rb()}if(2&t){const t=a.dc(2);a.kc("ngModel",t.useFacilityHost),a.Ab(1),a.Lc(" ",a.fc(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function T(t,e){if(1&t&&(a.Sb(0,"mat-option",21),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t),a.Ab(1),a.Lc(" ",t," ")}}function k(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",7),a.Sb(1,"div",8),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"mat-form-field"),a.Sb(5,"mat-select",9),a.ec(6,"translate"),a.Hc(7,A,3,3,"mat-option",10),a.Hc(8,y,3,3,"mat-option",11),a.Hc(9,w,2,2,"mat-option",12),a.Rb(),a.Hc(10,v,3,3,"mat-error",13),a.Rb(),a.Sb(11,"mat-checkbox",14),a.Zb("change",(function(){return a.xc(t),a.dc().getServices()}))("ngModelChange",(function(e){return a.xc(t),a.dc().servicesOnFacility=e})),a.Jc(12),a.ec(13,"translate"),a.Rb(),a.Sb(14,"mat-form-field"),a.Sb(15,"mat-select",15),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().selectedType=e}))("selectionChange",(function(){return a.xc(t),a.dc().destinationControl.updateValueAndValidity()})),a.ec(16,"translate"),a.Hc(17,_,2,2,"mat-option",12),a.Rb(),a.Rb(),a.Hc(18,R,4,4,"mat-form-field",16),a.Hc(19,C,3,4,"mat-checkbox",17),a.Sb(20,"mat-form-field"),a.Sb(21,"mat-select",18),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().selectedPropagation=e})),a.ec(22,"translate"),a.Hc(23,T,2,2,"mat-option",12),a.Rb(),a.Rb(),a.Sb(24,"div",8),a.Jc(25),a.ec(26,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Kc(a.fc(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),a.Ab(3),a.lc("placeholder",a.fc(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),a.kc("formControl",t.serviceControl),a.Ab(2),a.kc("ngIf",0!==t.services.length),a.Ab(1),a.kc("ngIf",0===t.services.length),a.Ab(1),a.kc("ngForOf",t.services),a.Ab(1),a.kc("ngIf",null==t.serviceControl.value),a.Ab(1),a.kc("ngModel",t.servicesOnFacility),a.Ab(1),a.Kc(a.fc(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),a.Ab(3),a.lc("placeholder",a.fc(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),a.kc("ngModel",t.selectedType),a.Ab(2),a.kc("ngForOf",t.types),a.Ab(1),a.kc("ngIf",!("host"===t.selectedType&&t.useFacilityHost)),a.Ab(1),a.kc("ngIf","host"===t.selectedType),a.Ab(2),a.lc("placeholder",a.fc(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),a.kc("ngModel",t.selectedPropagation),a.Ab(2),a.kc("ngForOf",t.propagations),a.Ab(2),a.Lc(" ",a.fc(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+t.selectedPropagation)," ")}}let I=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.servicesManager=n,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(/^(([^<>()\[\]\\.,;:\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]{2,}))$/),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("[(http(s)?):\\/\\/(www\\.)?a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-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.loading=!0,this.serviceControl=new r.g(void 0,r.F.required),this.destinationControl=new r.g("",this.getDestinationValidator()),this.emailControl=new r.g("",[r.F.required,r.F.pattern(this.emailRegex)]),this.facilitiesManager.getHosts(this.data.facility.id).subscribe(t=>{this.hosts=t,this.servicesOnFacility=!0,this.getServices(),this.loading=!1},()=>this.loading=!1)}getDestinationValidator(){return t=>{if(!t.value)return null;let e;switch(this.selectedType){case"host":case"host-windows-proxy":e=this.hostPattern;break;case"email":case"semail":e=this.emailRegex;break;case"url":e=this.urlPattern;break;case"user@host":case"user@host-windows":e=this.userAtHostPattern;break;case"user@host:port":e=this.userAtHostPortPattern;break;case"service-specific":e=this.serviceSpecificPattern;break;default:return null}return e.test(t.value)?null:{invalidDestination:{value:t.value}}}}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?this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(t=>{this.services=t},()=>this.loading=!1):this.servicesManager.getServices().subscribe(t=>{this.services=t},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(t){return"semail"===t?"Send Mail":"service-specific"===t?"Service Specific":t}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.g),a.Mb(o.n))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,m,1,0,"mat-spinner",1),a.Hc(5,k,27,30,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.data.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading||e.invalidDestination()||e.serviceControl.invalid||"noService"===e.serviceControl.value),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[n.j,c.t,n.c,l.b,u.c,n.g,h.c,d.a,r.C,r.r,r.h,c.s,p.a,r.u,f.n,h.b,g.b,r.c],pipes:[b.d],styles:[""],data:{animation:[s.c]}}),t})()},DnAX:function(t,e,i){"use strict";i.d(e,"a",(function(){return it}));var n=i("OZ4H"),s=i("X2Q7"),o=i("8clQ"),r=i("HHEo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("KZIX"),p=i("dEHC"),f=i("29Wa"),g=i("Cd2c"),b=i("nIj0"),m=i("+Tre"),A=i("R7+U"),y=i("mFH5"),w=i("6Xhx"),v=i("H0K4"),_=i("g3Wv"),S=i("rmDM"),E=i("Qgg6");function R(t,e){1&t&&a.Nb(0,"mat-spinner",7)}function C(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"section"),a.Sb(5,"mat-checkbox",20),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(3).applicationFormItem.updatable=e})),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(3);a.Ab(1),a.kc("label",a.fc(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE"))("description",a.fc(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.updatable)}}function T(t,e){if(1&t&&(a.Sb(0,"mat-option",23),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t.value),a.Ab(1),a.Lc(" ",t.displayName," ")}}function k(t,e){if(1&t&&(a.Sb(0,"mat-option",23),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t.value),a.Ab(1),a.Lc(" ",t.displayName," ")}}function I(t,e){if(1&t&&(a.Sb(0,"mat-option",23),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t.value),a.Ab(1),a.Lc(" ",t.displayName," ")}}function O(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",12),a.Sb(1,"mat-form-field",12),a.Sb(2,"input",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(3).applicationFormItem.federationAttribute=e})),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(3);a.Ab(2),a.kc("ngModel",t.applicationFormItem.federationAttribute)}}function D(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"section"),a.Sb(5,"mat-checkbox",20),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.required=e})),a.Rb(),a.Rb(),a.Rb(),a.Hc(6,C,6,7,"div",16),a.Sb(7,"app-edit-application-form-item-line",11),a.ec(8,"translate"),a.ec(9,"translate"),a.Sb(10,"mat-form-field",12),a.Sb(11,"mat-select",17),a.Zb("valueChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.perunSourceAttribute=e})),a.Hc(12,T,2,2,"mat-option",18),a.Rb(),a.Rb(),a.Rb(),a.Sb(13,"app-edit-application-form-item-line",11),a.ec(14,"translate"),a.ec(15,"translate"),a.Sb(16,"mat-form-field",12),a.Sb(17,"mat-select",17),a.Zb("valueChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.perunDestinationAttribute=e})),a.Hc(18,k,2,2,"mat-option",18),a.Rb(),a.Rb(),a.Rb(),a.Sb(19,"app-edit-application-form-item-line",11),a.ec(20,"translate"),a.ec(21,"translate"),a.Sb(22,"mat-form-field",12),a.Sb(23,"mat-select",21),a.Zb("selectionChange",(function(){return a.xc(t),a.dc(2).federationAttributeschanged()}))("valueChange",(function(e){return a.xc(t),a.dc(2).federationAttribute=e})),a.Hc(24,I,2,2,"mat-option",18),a.Rb(),a.Rb(),a.Hc(25,O,3,1,"div",22),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED"))("description",a.fc(3,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.required),a.Ab(1),a.kc("ngIf",t.typesWithUpdatable.indexOf(t.applicationFormItem.type)>-1),a.Ab(1),a.kc("label",a.fc(8,21,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",a.fc(9,23,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),a.Ab(4),a.kc("value",t.applicationFormItem.perunSourceAttribute),a.Ab(1),a.kc("ngForOf",t.sourceAttributes),a.Ab(1),a.kc("label",a.fc(14,25,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",a.fc(15,27,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),a.Ab(4),a.kc("value",t.applicationFormItem.perunDestinationAttribute),a.Ab(1),a.kc("ngForOf",t.destinationAttributes),a.Ab(1),a.kc("label",a.fc(20,29,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",a.fc(21,31,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),a.Ab(4),a.kc("value",t.federationAttribute),a.Ab(1),a.kc("ngForOf",t.federationAttributes),a.Ab(1),a.kc("ngIf","custom"===t.federationAttribute)}}function M(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"mat-form-field",12),a.Sb(5,"input",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.regex=e})),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",a.fc(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.regex)}}function P(t,e){if(1&t&&(a.Sb(0,"mat-option",23),a.Jc(1),a.ec(2,"applicationFormItemDisabled"),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t),a.Ab(1),a.Lc(" ",a.fc(2,2,t)," ")}}function x(t,e){if(1&t){const t=a.Tb();a.Sb(0,"perun-web-apps-app-form-item-search-select",24),a.Zb("itemSelected",(function(e){return a.xc(t),a.dc(3).disabledDependencyItem=e})),a.Rb()}if(2&t){const t=a.dc(3);a.kc("item",t.disabledDependencyItem)("items",t.possibleDependencyItems)}}function N(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"mat-form-field",12),a.Sb(5,"mat-select",17),a.Zb("valueChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.disabled=e})),a.Hc(6,P,3,4,"mat-option",18),a.Rb(),a.Rb(),a.Rb(),a.Sb(7,"app-edit-application-form-item-line",11),a.ec(8,"translate"),a.ec(9,"translate"),a.Sb(10,"div",12),a.Hc(11,x,1,2,"perun-web-apps-app-form-item-search-select",19),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",a.fc(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),a.Ab(4),a.kc("value",t.applicationFormItem.disabled),a.Ab(1),a.kc("ngForOf",t.disabledValues),a.Ab(1),a.kc("label",a.fc(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",a.fc(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),a.Ab(4),a.kc("ngIf",null!==t.disabledDependencyItem)}}function L(t,e){if(1&t&&(a.Sb(0,"mat-option",23),a.Jc(1),a.ec(2,"applicationFormItemHidden"),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t),a.Ab(1),a.Lc(" ",a.fc(2,2,t)," ")}}function F(t,e){if(1&t){const t=a.Tb();a.Sb(0,"perun-web-apps-app-form-item-search-select",24),a.Zb("itemSelected",(function(e){return a.xc(t),a.dc(2).hiddenDependencyItem=e})),a.Rb()}if(2&t){const t=a.dc(2);a.kc("item",t.hiddenDependencyItem)("items",t.possibleDependencyItems)}}function z(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"mat-form-field",12),a.Sb(5,"textarea",25),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.en.label=e})),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",a.fc(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),a.Ab(4),a.kc("cdkTextareaAutosize",!0)("ngModel",t.applicationFormItem.i18n.en.label)}}function H(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"mat-form-field",12),a.Sb(5,"textarea",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.en.label=e})),a.Rb(),a.Rb(),a.Rb(),a.Sb(6,"app-edit-application-form-item-line",11),a.ec(7,"translate"),a.ec(8,"translate"),a.Sb(9,"mat-form-field",12),a.Sb(10,"textarea",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.en.help=e})),a.Rb(),a.Rb(),a.Rb(),a.Sb(11,"app-edit-application-form-item-line",11),a.ec(12,"translate"),a.ec(13,"translate"),a.Sb(14,"mat-form-field",12),a.Sb(15,"textarea",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.en.errorMessage=e})),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",a.fc(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.i18n.en.label),a.Ab(1),a.kc("label",a.fc(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",a.fc(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.i18n.en.help),a.Ab(1),a.kc("label",a.fc(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",a.fc(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.i18n.en.errorMessage)}}function B(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"mat-form-field",12),a.Sb(5,"textarea",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.en.label=e})),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",a.fc(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.i18n.en.label)}}function j(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Sb(3,"mat-form-field"),a.Sb(4,"input",13),a.Zb("ngModelChange",(function(i){return a.xc(t),e.$implicit[0]=i})),a.Rb(),a.Rb(),a.Jc(5),a.ec(6,"translate"),a.Sb(7,"mat-form-field"),a.Sb(8,"input",13),a.Zb("ngModelChange",(function(i){return a.xc(t),e.$implicit[1]=i})),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",a.fc(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),a.Ab(3),a.kc("ngModel",t[0]),a.Ab(1),a.Lc(" ",a.fc(6,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),a.Ab(3),a.kc("ngModel",t[1])}}function G(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"div",26),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",27),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"div",28),a.Sb(8,"button",29),a.Zb("click",(function(){return a.xc(t),a.dc(2).sortEnOptionsAZ()})),a.Sb(9,"i",30),a.Jc(10,"arrow_downward"),a.Rb(),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Sb(13,"button",31),a.Zb("click",(function(){return a.xc(t),a.dc(2).sortEnOptionsZA()})),a.Sb(14,"i",30),a.Jc(15,"arrow_upward"),a.Rb(),a.Jc(16),a.ec(17,"translate"),a.Rb(),a.Rb(),a.Hc(18,j,9,8,"div",32),a.Sb(19,"button",33),a.Zb("click",(function(){return a.xc(t),a.dc(2).addEnOption()})),a.Jc(20),a.ec(21,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(2),a.Lc("",a.fc(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),":"),a.Ab(3),a.Lc(" ",a.fc(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),a.Ab(6),a.Lc(" ",a.fc(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),a.Ab(5),a.Lc(" ",a.fc(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),a.Ab(2),a.kc("ngForOf",t.optionsEn),a.Ab(2),a.Lc(" ",a.fc(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}function U(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"mat-form-field",12),a.Sb(5,"textarea",25),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.cs.label=e})),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",a.fc(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),a.Ab(4),a.kc("cdkTextareaAutosize",!0)("ngModel",t.applicationFormItem.i18n.cs.label)}}function K(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"mat-form-field",12),a.Sb(5,"textarea",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.cs.label=e})),a.Rb(),a.Rb(),a.Rb(),a.Sb(6,"app-edit-application-form-item-line",11),a.ec(7,"translate"),a.ec(8,"translate"),a.Sb(9,"mat-form-field",12),a.Sb(10,"textarea",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.cs.help=e})),a.Rb(),a.Rb(),a.Rb(),a.Sb(11,"app-edit-application-form-item-line",11),a.ec(12,"translate"),a.ec(13,"translate"),a.Sb(14,"mat-form-field",12),a.Sb(15,"textarea",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.cs.errorMessage=e})),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",a.fc(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.i18n.cs.label),a.Ab(1),a.kc("label",a.fc(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",a.fc(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.i18n.cs.help),a.Ab(1),a.kc("label",a.fc(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",a.fc(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.i18n.cs.errorMessage)}}function V(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"app-edit-application-form-item-line",11),a.ec(2,"translate"),a.ec(3,"translate"),a.Sb(4,"mat-form-field",12),a.Sb(5,"textarea",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc(2).applicationFormItem.i18n.cs.label=e})),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(1),a.kc("label",a.fc(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",a.fc(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.i18n.cs.label)}}function q(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Sb(3,"mat-form-field"),a.Sb(4,"input",13),a.Zb("ngModelChange",(function(i){return a.xc(t),e.$implicit[0]=i})),a.Rb(),a.Rb(),a.Jc(5),a.ec(6,"translate"),a.Sb(7,"mat-form-field"),a.Sb(8,"input",13),a.Zb("ngModelChange",(function(i){return a.xc(t),e.$implicit[1]=i})),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",a.fc(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),a.Ab(3),a.kc("ngModel",t[0]),a.Ab(1),a.Lc(" ",a.fc(6,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),a.Ab(3),a.kc("ngModel",t[1])}}function J(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"div",26),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",27),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"div",28),a.Sb(8,"button",29),a.Zb("click",(function(){return a.xc(t),a.dc(2).sortCsOptionsAZ()})),a.Sb(9,"i",30),a.Jc(10,"arrow_downward"),a.Rb(),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Sb(13,"button",31),a.Zb("click",(function(){return a.xc(t),a.dc(2).sortCsOptionsZA()})),a.Sb(14,"i",30),a.Jc(15,"arrow_upward"),a.Rb(),a.Jc(16),a.ec(17,"translate"),a.Rb(),a.Rb(),a.Hc(18,q,9,8,"div",32),a.Sb(19,"button",33),a.Zb("click",(function(){return a.xc(t),a.dc(2).addCsOption()})),a.Jc(20),a.ec(21,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc(2);a.Ab(2),a.Lc("",a.fc(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),":"),a.Ab(3),a.Lc(" ",a.fc(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),a.Ab(6),a.Lc(" ",a.fc(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),a.Ab(5),a.Lc(" ",a.fc(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),a.Ab(2),a.kc("ngForOf",t.optionsCs),a.Ab(2),a.Lc(" ",a.fc(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const W=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},Z=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},Y=function(){return["HEADING","HTML_COMMENT"]},$=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},X=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},Q=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function tt(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",8),a.Sb(1,"mat-tab-group",9),a.Sb(2,"mat-tab",10),a.ec(3,"translate"),a.Sb(4,"app-edit-application-form-item-line",11),a.ec(5,"translate"),a.ec(6,"translate"),a.Sb(7,"mat-form-field",12),a.Sb(8,"input",13),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().applicationFormItem.shortname=e})),a.Rb(),a.Rb(),a.Rb(),a.Sb(9,"app-edit-application-form-item-line",11),a.ec(10,"translate"),a.ec(11,"translate"),a.Jc(12),a.ec(13,"applicationFormItemType"),a.Rb(),a.Sb(14,"app-edit-application-form-item-line",11),a.ec(15,"translate"),a.ec(16,"translate"),a.Sb(17,"section"),a.Sb(18,"mat-checkbox",14),a.Zb("change",(function(){return a.xc(t),a.dc().onChangingType("INITIAL")})),a.Jc(19),a.ec(20,"translate"),a.Rb(),a.Sb(21,"mat-checkbox",15),a.Zb("change",(function(){return a.xc(t),a.dc().onChangingType("EXTENSION")})),a.Jc(22),a.ec(23,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(24,D,26,33,"div",16),a.Hc(25,M,6,7,"div",16),a.Hc(26,N,12,15,"div",16),a.Sb(27,"app-edit-application-form-item-line",11),a.ec(28,"translate"),a.ec(29,"translate"),a.Sb(30,"mat-form-field",12),a.Sb(31,"mat-select",17),a.Zb("valueChange",(function(e){return a.xc(t),a.dc().applicationFormItem.hidden=e})),a.Hc(32,L,3,4,"mat-option",18),a.Rb(),a.Rb(),a.Rb(),a.Sb(33,"app-edit-application-form-item-line",11),a.ec(34,"translate"),a.ec(35,"translate"),a.Sb(36,"div",12),a.Hc(37,F,1,2,"perun-web-apps-app-form-item-search-select",19),a.Rb(),a.Rb(),a.Rb(),a.Sb(38,"mat-tab",10),a.ec(39,"translate"),a.Hc(40,z,6,8,"div",16),a.Hc(41,H,16,21,"div",16),a.Hc(42,B,6,7,"div",16),a.Hc(43,G,22,16,"div",16),a.Rb(),a.Sb(44,"mat-tab",10),a.ec(45,"translate"),a.Hc(46,U,6,8,"div",16),a.Hc(47,K,16,21,"div",16),a.Hc(48,V,6,7,"div",16),a.Hc(49,J,22,16,"div",16),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.lc("label",a.fc(3,33,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),a.Ab(2),a.kc("label",a.fc(5,35,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",a.fc(6,37,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.shortname),a.Ab(1),a.kc("label",a.fc(10,39,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",a.fc(11,41,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(13,43,t.applicationFormItem.type)," "),a.Ab(2),a.kc("label",a.fc(15,45,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",a.fc(16,47,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),a.Ab(4),a.kc("ngModel",t.applicationFormItem.applicationTypes.includes("INITIAL")),a.Ab(1),a.Lc(" ",a.fc(20,49,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),a.Ab(2),a.kc("ngModel",t.applicationFormItem.applicationTypes.includes("EXTENSION")),a.Ab(1),a.Lc(" ",a.fc(23,51,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),a.Ab(2),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(65,W))),a.Ab(1),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(66,Z))),a.Ab(1),a.kc("ngIf",t.typesWithDisabled.indexOf(t.applicationFormItem.type)>-1),a.Ab(1),a.kc("label",a.fc(28,53,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",a.fc(29,55,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),a.Ab(4),a.kc("value",t.applicationFormItem.hidden),a.Ab(1),a.kc("ngForOf",t.hiddenValues),a.Ab(1),a.kc("label",a.fc(34,57,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",a.fc(35,59,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),a.Ab(4),a.kc("ngIf",null!==t.hiddenDependencyItem),a.Ab(1),a.lc("label",a.fc(39,61,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_EN")),a.Ab(2),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(67,Y))),a.Ab(1),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(68,$))),a.Ab(1),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(69,X))),a.Ab(1),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(70,Q))),a.Ab(1),a.lc("label",a.fc(45,63,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_CS")),a.Ab(2),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(71,Y))),a.Ab(1),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(72,$))),a.Ab(1),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(73,X))),a.Ab(1),a.kc("ngIf",t.isApplicationFormItemOfType(a.oc(74,Q)))}}class et{constructor(t,e){this.value=e,this.displayName=t}}let it=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.attributesManager=i,this.translateService=n,this.federationAttributes=[],this.federationAttribute="",this.sourceAttributes=[],this.destinationAttributes=[],this.optionsEn=[],this.optionsCs=[],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=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.hiddenDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=r.b),this.disabledDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=r.b),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=Object(o.d)(),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attributeDefinitions=t,this.getDestinationAndSourceAttributes(),this.loading=!1},()=>this.loading=!1),this.getFederationAttributes(),this.getFederationAttribute(),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}getPossibleDepItems(){return[r.b].concat(this.data.allItems.filter(t=>this.dependencyTypes.indexOf(t.type)>-1).filter(t=>t.id!==this.data.applicationFormItem.id))}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===r.b?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===r.b?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(t){if(this.applicationFormItem.applicationTypes.includes(t)){const e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}getDestinationAndSourceAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{this.sourceAttributes.push(new et(t,"")),this.destinationAttributes.push(new et(t,""))});for(const t of this.attributeDefinitions)"user"===t.entity.toLowerCase()||"member"===t.entity.toLowerCase()?(this.sourceAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName)),this.destinationAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName))):("vo"===t.entity.toLowerCase()||"group"===t.entity.toLowerCase()&&this.data.group)&&this.sourceAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName))}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{this.federationAttributes.push(new et(t,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(t=>{this.federationAttributes.push(new et(t,"custom")),this.federationAttributes.push(new et("Display name","displayName")),this.federationAttributes.push(new et("Common name","cn")),this.federationAttributes.push(new et("Mail","mail")),this.federationAttributes.push(new et("Organization","o")),this.federationAttributes.push(new et("Level of Assurance (LoA)","loa")),this.federationAttributes.push(new et("First name","givenName")),this.federationAttributes.push(new et("Surname","sn")),this.federationAttributes.push(new et("EPPN","eppn")),this.federationAttributes.push(new et("IdP Category","md_entityCategory")),this.federationAttributes.push(new et("IdP Affiliation","affiliation")),this.federationAttributes.push(new et("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.federationAttributes.push(new et("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.federationAttributes.push(new et("schacHomeOrganization","schacHomeOrganization")),this.federationAttributes.push(new et("Login","uid")),this.federationAttributes.push(new et("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){if(this.applicationFormItem.federationAttribute){for(const t of this.federationAttributes)if(t.value===this.applicationFormItem.federationAttribute)return void(this.federationAttribute=t.value);this.federationAttribute="custom"}}federationAttributeschanged(){this.applicationFormItem.federationAttribute="custom"!==this.federationAttribute?this.federationAttribute:""}getDefinition(t){const e=t.namespace.split(":");return null===e[4]?"null":e[4]}addEnOption(){this.optionsEn.push(["",""])}addCsOption(){this.optionsCs.push(["",""])}updateOptions(){let t="";for(const i of this.optionsEn)""!==i[0]&&""!==i[1]&&(t=""===t?i[0]+"#"+i[1]:t+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n.en.options=t;let e="";for(const i of this.optionsCs)""!==i[0]&&""!==i[1]&&(e=""===e?i[0]+"#"+i[1]:e+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n.cs.options=e}getOptions(){if(this.applicationFormItem.i18n.en.options){const t=this.applicationFormItem.i18n.en.options.split("|");for(const e of t){const t=e.split("#");this.optionsEn.push([t[0],t[1]])}}if(this.applicationFormItem.i18n.cs.options){const t=this.applicationFormItem.i18n.cs.options.split("|");for(const e of t){const t=e.split("#");this.optionsCs.push([t[0],t[1]])}}}sortEnOptionsAZ(){this.optionsEn=this.optionsEn.sort((t,e)=>t[1]>e[1]?1:t[1]t[1]>e[1]?-1:t[1]t[1]>e[1]?-1:t[1]t[1]>e[1]?1:t[1]-1}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.c),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"label","description"],[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,"ngModel","ngModelChange"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"div",0),a.Sb(2,"h1",1),a.Jc(3),a.ec(4,"translate"),a.Rb(),a.Hc(5,R,1,0,"mat-spinner",2),a.Hc(6,tt,50,75,"div",3),a.Sb(7,"div",4),a.Sb(8,"button",5),a.Zb("click",(function(){return e.cancel()})),a.Jc(9),a.ec(10,"translate"),a.Rb(),a.Sb(11,"button",6),a.Zb("click",(function(){return e.submit()})),a.Jc(12),a.ec(13,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Db("",e.theme," h-100"),a.Ab(3),a.Mc("",a.fc(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname,""),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,d.c,d.a,p.a,f.c,g.b,b.c,b.r,b.u,m.a,A.a,l.s,y.n,w.a,v.c],pipes:[c.d,_.a,S.a,E.a],styles:[""]}),t})()},Ds80:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("EM62"),s=i("2kYt"),o=i("bFHC"),r=i("Y2X+"),a=i("s2Ay");function c(t,e){1&t&&(n.Sb(0,"mat-icon",1),n.ec(1,"translate"),n.Jc(2," visibility\n"),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let l=(()=>{class t{constructor(){this.recentIds=[]}ngOnChanges(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},features:[n.yb],decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(t,e){1&t&&n.Hc(0,c,3,3,"mat-icon",0),2&t&&n.kc("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[s.t,o.a,r.a],pipes:[a.d],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})()},E5oP:function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r}));var n=i("EM62"),s=i("2kYt");const o=new n.r("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(n.V)(s.e)}});let r=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.o,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(o,8))},t.\u0275prov=Object(n.Ib)({factory:function(){return new t(Object(n.Wb)(o,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new n.o}get dir(){return this._dir}set dir(t){const e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Bb("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[n.zb([{provide:r,useExisting:t}])]}),t})(),c=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})()},EFHi:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),s=i("EM62");let o=(()=>{class t{transform(t,...e){return Object(n.D)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"technicalOwners",type:t,pure:!0}),t})()},EM62:function(t,e,i){"use strict";i.d(e,"a",(function(){return To})),i.d(e,"b",(function(){return Wc})),i.d(e,"c",(function(){return Uc})),i.d(e,"d",(function(){return jc})),i.d(e,"e",(function(){return Gc})),i.d(e,"f",(function(){return Bl})),i.d(e,"g",(function(){return kl})),i.d(e,"h",(function(){return co})),i.d(e,"i",(function(){return ol})),i.d(e,"j",(function(){return ca})),i.d(e,"k",(function(){return $c})),i.d(e,"l",(function(){return la})),i.d(e,"m",(function(){return Ll})),i.d(e,"n",(function(){return Oi})),i.d(e,"o",(function(){return mc})),i.d(e,"p",(function(){return q})),i.d(e,"q",(function(){return u})),i.d(e,"r",(function(){return V})),i.d(e,"s",(function(){return Co})),i.d(e,"t",(function(){return ka})),i.d(e,"u",(function(){return Ia})),i.d(e,"v",(function(){return Yc})),i.d(e,"w",(function(){return at})),i.d(e,"x",(function(){return Ol})),i.d(e,"y",(function(){return rt})),i.d(e,"z",(function(){return Sl})),i.d(e,"A",(function(){return cl})),i.d(e,"B",(function(){return h})),i.d(e,"C",(function(){return Jc})),i.d(e,"D",(function(){return qc})),i.d(e,"E",(function(){return yc})),i.d(e,"F",(function(){return pa})),i.d(e,"G",(function(){return ha})),i.d(e,"H",(function(){return da})),i.d(e,"I",(function(){return ga})),i.d(e,"J",(function(){return yn})),i.d(e,"K",(function(){return p})),i.d(e,"L",(function(){return Pl})),i.d(e,"M",(function(){return Pa})),i.d(e,"N",(function(){return bl})),i.d(e,"O",(function(){return uo})),i.d(e,"P",(function(){return ba})),i.d(e,"Q",(function(){return Na})),i.d(e,"R",(function(){return bt})),i.d(e,"S",(function(){return El})),i.d(e,"T",(function(){return Wi})),i.d(e,"U",(function(){return O})),i.d(e,"V",(function(){return it})),i.d(e,"W",(function(){return Ji})),i.d(e,"X",(function(){return zl})),i.d(e,"Y",(function(){return yl})),i.d(e,"Z",(function(){return Zc})),i.d(e,"ab",(function(){return ho})),i.d(e,"bb",(function(){return $a})),i.d(e,"cb",(function(){return mn})),i.d(e,"db",(function(){return Qi})),i.d(e,"eb",(function(){return zi})),i.d(e,"fb",(function(){return Bi})),i.d(e,"gb",(function(){return Ki})),i.d(e,"hb",(function(){return Gi})),i.d(e,"ib",(function(){return ji})),i.d(e,"jb",(function(){return Ui})),i.d(e,"kb",(function(){return Ja})),i.d(e,"lb",(function(){return Fl})),i.d(e,"mb",(function(){return Wa})),i.d(e,"nb",(function(){return Za})),i.d(e,"ob",(function(){return Hi})),i.d(e,"pb",(function(){return F})),i.d(e,"qb",(function(){return zo})),i.d(e,"rb",(function(){return cr})),i.d(e,"sb",(function(){return ar})),i.d(e,"tb",(function(){return qa})),i.d(e,"ub",(function(){return Jt})),i.d(e,"vb",(function(){return T})),i.d(e,"wb",(function(){return Fi})),i.d(e,"xb",(function(){return Oo})),i.d(e,"yb",(function(){return jt})),i.d(e,"zb",(function(){return oa})),i.d(e,"Ab",(function(){return Bn})),i.d(e,"Bb",(function(){return Vo})),i.d(e,"Cb",(function(){return Or})),i.d(e,"Db",(function(){return Zr})),i.d(e,"Eb",(function(){return Ir})),i.d(e,"Fb",(function(){return Mc})),i.d(e,"Gb",(function(){return wt})),i.d(e,"Hb",(function(){return kt})),i.d(e,"Ib",(function(){return m})),i.d(e,"Jb",(function(){return A})),i.d(e,"Kb",(function(){return Rt})),i.d(e,"Lb",(function(){return It})),i.d(e,"Mb",(function(){return Yo})),i.d(e,"Nb",(function(){return ir})),i.d(e,"Ob",(function(){return or})),i.d(e,"Pb",(function(){return sr})),i.d(e,"Qb",(function(){return nr})),i.d(e,"Rb",(function(){return er})),i.d(e,"Sb",(function(){return tr})),i.d(e,"Tb",(function(){return rr})),i.d(e,"Ub",(function(){return Ci})),i.d(e,"Vb",(function(){return Yr})),i.d(e,"Wb",(function(){return et})),i.d(e,"Xb",(function(){return $o})),i.d(e,"Yb",(function(){return Bc})),i.d(e,"Zb",(function(){return lr})),i.d(e,"ac",(function(){return Nc})),i.d(e,"bc",(function(){return Be})),i.d(e,"cc",(function(){return He})),i.d(e,"dc",(function(){return fr})),i.d(e,"ec",(function(){return hc})),i.d(e,"fc",(function(){return dc})),i.d(e,"gc",(function(){return pc})),i.d(e,"hc",(function(){return fc})),i.d(e,"ic",(function(){return mr})),i.d(e,"jc",(function(){return br})),i.d(e,"kc",(function(){return Xo})),i.d(e,"lc",(function(){return Ar})),i.d(e,"mc",(function(){return yr})),i.d(e,"nc",(function(){return wr})),i.d(e,"oc",(function(){return nc})),i.d(e,"pc",(function(){return sc})),i.d(e,"qc",(function(){return oc})),i.d(e,"rc",(function(){return rc})),i.d(e,"sc",(function(){return kc})),i.d(e,"tc",(function(){return Zo})),i.d(e,"uc",(function(){return ai})),i.d(e,"vc",(function(){return ri})),i.d(e,"wc",(function(){return oi})),i.d(e,"xc",(function(){return pe})),i.d(e,"yc",(function(){return wn})),i.d(e,"zc",(function(){return vn})),i.d(e,"Ac",(function(){return vt})),i.d(e,"Bc",(function(){return Ct})),i.d(e,"Cc",(function(){return Pc})),i.d(e,"Dc",(function(){return Ic})),i.d(e,"Ec",(function(){return kr})),i.d(e,"Fc",(function(){return ur})),i.d(e,"Gc",(function(){return $r})),i.d(e,"Hc",(function(){return Wo})),i.d(e,"Ic",(function(){return Hc})),i.d(e,"Jc",(function(){return Gr})),i.d(e,"Kc",(function(){return Ur})),i.d(e,"Lc",(function(){return Kr})),i.d(e,"Mc",(function(){return Vr})),i.d(e,"Nc",(function(){return qr})),i.d(e,"Oc",(function(){return Jr})),i.d(e,"Pc",(function(){return Wr})),i.d(e,"Qc",(function(){return Oc}));var n=i("ZTXN"),s=i("bwdy"),o=i("IdLP"),r=i("g6G6"),a=i("7ntQ");function c(t){return{toString:t}.toString()}function l(t,e,i){return c(()=>{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const u=l("Inject",t=>({token:t})),h=l("Optional"),d=l("Self"),p=l("SkipSelf");var f=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function g(t){for(let e in t)if(t[e]===g)return e;throw Error("Could not find renamed property on target object.")}function b(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function m(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return w(t,t[_])||w(t,t[R])}function w(t,e){return e&&e.token===t?e:null}function v(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(C))?t[S]:null}const _=g({\u0275prov:g}),S=g({\u0275inj:g}),E=g({\u0275provFallback:g}),R=g({ngInjectableDef:g}),C=g({ngInjectorDef:g});function T(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(T).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function k(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const I=g({__forward_ref__:g});function O(t){return t.__forward_ref__=O,t.toString=function(){return T(this())},t}function D(t){return M(t)?t():t}function M(t){return"function"==typeof t&&t.hasOwnProperty(I)&&t.__forward_ref__===O}const P="undefined"!=typeof globalThis&&globalThis,x="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,L="undefined"!=typeof global&&global,F=P||L||x||N,z=g({\u0275cmp:g}),H=g({\u0275dir:g}),B=g({\u0275pipe:g}),j=g({\u0275mod:g}),G=g({\u0275loc:g}),U=g({\u0275fac:g}),K=g({__NG_ELEMENT_ID__:g});class V{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=m({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const q=new V("INJECTOR",-1),J={},W=/\n/gm,Z=g({provide:String,useValue:g});let Y,$=void 0;function X(t){const e=$;return $=t,e}function Q(t){const e=Y;return Y=t,e}function tt(t,e=f.Default){if(void 0===$)throw new Error("inject() must be called from an injection context");return null===$?nt(t,void 0,e):$.get(t,e&f.Optional?null:void 0,e)}function et(t,e=f.Default){return(Y||tt)(D(t),e)}const it=et;function nt(t,e,i){const n=y(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&f.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${T(t)}]`)}function st(t){const e=[];for(let i=0;iArray.isArray(t)?ct(t,e):e(t))}function lt(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ut(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ht(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function pt(t,e){const i=ft(t,e);if(i>=0)return t[1|i]}function ft(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}var gt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),bt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const mt={},At=[];let yt=0;function wt(t){return c(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===gt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||At,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||bt.Emulated,id:"c",styles:t.styles||At,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=yt++,i.inputs=Tt(t.inputs,e),i.outputs=Tt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(_t):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(St):null,i})}function vt(t,e,i){const n=t.\u0275cmp;n.directiveDefs=()=>e.map(_t),n.pipeDefs=()=>i.map(St)}function _t(t){return Ot(t)||function(t){return t[H]||null}(t)}function St(t){return function(t){return t[B]||null}(t)}const Et={};function Rt(t){const e={type:t.type,bootstrap:t.bootstrap||At,declarations:t.declarations||At,imports:t.imports||At,exports:t.exports||At,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&c(()=>{Et[t.id]=t.type}),e}function Ct(t,e){return c(()=>{const i=Mt(t,!0);i.declarations=e.declarations||At,i.imports=e.imports||At,i.exports=e.exports||At})}function Tt(t,e){if(null==t)return mt;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const kt=wt;function It(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ot(t){return t[z]||null}function Dt(t,e){return t.hasOwnProperty(U)?t[U]:null}function Mt(t,e){const i=t[j]||null;if(!i&&!0===e)throw new Error(`Type ${T(t)} does not have '\u0275mod' property.`);return i}function Pt(t){return Array.isArray(t)&&"object"==typeof t[1]}function xt(t){return Array.isArray(t)&&!0===t[1]}function Nt(t){return 0!=(8&t.flags)}function Lt(t){return 2==(2&t.flags)}function Ft(t){return 1==(1&t.flags)}function zt(t){return null!==t.template}function Ht(t){return 0!=(512&t[2])}class Bt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function jt(){return Gt}function Gt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Kt),Ut}function Ut(){const t=Vt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===mt)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Kt(t,e,i,n){const s=Vt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:mt,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new Bt(c&&c.currentValue,e,r===mt),t[n]=e}function Vt(t){return t.__ngSimpleChanges__||null}jt.ngInherit=!0;let qt=void 0;function Jt(t){qt=t}function Wt(){return void 0!==qt?qt:"undefined"!=typeof document?document:void 0}function Zt(t){return!!t.listen}const Yt={createRenderer:(t,e)=>Wt()};function $t(t){for(;Array.isArray(t);)t=t[0];return t}function Xt(t,e){return $t(e[t+20])}function Qt(t,e){return $t(e[t.index])}function te(t,e){return t.data[e+20]}function ee(t,e){return t[e+20]}function ie(t,e){const i=e[t];return Pt(i)?i:i[0]}function ne(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function se(t){return 4==(4&t[2])}function oe(t){return 128==(128&t[2])}function re(t,e){return null===t||null==e?null:t[e]}function ae(t){t[18]=0}function ce(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const le={lFrame:Me(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ue(){return le.bindingsEnabled}function he(){return le.lFrame.lView}function de(){return le.lFrame.tView}function pe(t){le.lFrame.contextLView=t}function fe(){return le.lFrame.currentTNode}function ge(t,e){le.lFrame.currentTNode=t,le.lFrame.isParent=e}function be(){return le.lFrame.isParent}function me(){le.lFrame.isParent=!1}function Ae(){return le.checkNoChangesMode}function ye(t){le.checkNoChangesMode=t}function we(){const t=le.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ve(){return le.lFrame.bindingIndex}function _e(){return le.lFrame.bindingIndex++}function Se(t){const e=le.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Ee(t,e){const i=le.lFrame;i.bindingIndex=i.bindingRootIndex=t,Re(e)}function Re(t){le.lFrame.currentDirectiveIndex=t}function Ce(t){const e=le.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Te(){return le.lFrame.currentQueryIndex}function ke(t){le.lFrame.currentQueryIndex=t}function Ie(t,e){const i=De();le.lFrame=i,i.currentTNode=e,i.lView=t}function Oe(t){const e=De(),i=t[1];le.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex}function De(){const t=le.lFrame,e=null===t?null:t.child;return null===e?Me(t):e}function Me(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Pe(){const t=le.lFrame;return le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const xe=Pe;function Ne(){const t=Pe();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Le(){return le.lFrame.selectedIndex}function Fe(t){le.lFrame.selectedIndex=t}function ze(){const t=le.lFrame;return te(t.tView,t.selectedIndex)}function He(){le.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Be(){le.lFrame.currentNamespace=null}function je(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[r]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(r)):o.call(r)}class Je{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function We(t,e,i){const n=Zt(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}function ii(t){return"string"==typeof t?t:null==t?"":""+t}function ni(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ii(t)}const si=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function oi(t){return{name:"window",target:t.ownerDocument.defaultView}}function ri(t){return{name:"document",target:t.ownerDocument}}function ai(t){return{name:"body",target:t.ownerDocument.body}}function ci(t){return t instanceof Function?t():t}let li=!0;function ui(t){const e=li;return li=t,e}let hi=0;function di(t,e){const i=fi(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,pi(n.data,t),pi(e,null),pi(n.blueprint,null));const s=gi(t,e),o=t.injectorIndex;if(Qe(s)){const t=ti(s),i=ei(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function pi(t,e){t.push(0,0,0,0,0,0,0,0,e)}function fi(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function gi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function bi(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(K)&&(n=i[K]),null==n&&(n=i[K]=hi++);const s=255&n,o=1<0?255&e:e}(i);if("function"==typeof s){Ie(e,t);try{const t=s();if(null!=t||n&f.Optional)return t;throw new Error(`No provider for ${ni(i)}!`)}finally{xe()}}else if("number"==typeof s){if(-1===s)return new Ei(t,e);let o=null,r=fi(t,e),a=-1,c=n&f.Host?e[16][6]:null;for((-1===r||n&f.SkipSelf)&&(a=-1===r?gi(t,e):e[r+8],-1!==a&&Si(n,!1)?(o=e[1],r=ti(a),e=ei(a,e)):r=-1);-1!==r;){const t=e[1];if(_i(s,r,t.data)){const t=yi(r,e,i,o,n,c);if(t!==Ai)return t}a=e[r+8],-1!==a&&Si(n,e[1].data[r+8]===c)&&_i(s,r,e)?(o=t,r=ti(a),e=ei(a,e)):r=-1}}}if(n&f.Optional&&void 0===s&&(s=null),0==(n&(f.Self|f.Host))){const t=e[9],o=Q(void 0);try{return t?t.get(i,s,n&f.Optional):nt(i,s,n&f.Optional)}finally{Q(o)}}if(n&f.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${ni(i)}]`)}const Ai={};function yi(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=wi(a,r,i,null==n?Lt(a)&&li:n!=r&&2===a.type,s&f.Host&&o===a);return null!==c?vi(e,r,c,a):Ai}function wi(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,l=o>>20,u=s?a+l:t.directiveEnd;for(let h=n?a:a+l;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&&zt(t)&&t.type===i)return c}return null}function vi(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof Je){const r=s;if(r.resolving)throw new Error("Circular dep for "+ni(o[i]));const a=ui(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?Q(r.injectImpl):null;Ie(t,n);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=Gt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&Q(c),ui(a),r.resolving=!1,xe()}}return s}function _i(t,e,i){const n=64&t,s=32&t;let o;return o=128&t?n?s?i[e+7]:i[e+6]:s?i[e+5]:i[e+4]:n?s?i[e+3]:i[e+2]:s?i[e+1]:i[e],!!(o&1<{const t=Ri(D(e));return t?t():null};let i=Dt(e);if(null===i){const t=v(e);i=t&&t.factory}return i||null}function Ci(t){return c(()=>{const e=t.prototype.constructor,i=e[U]||Ri(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[U]||Ri(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Ti(t){return t.ngDebugContext}function ki(t){return t.ngOriginalError}function Ii(t,...e){t.error(...e)}class Oi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Ii}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?Ti(t)?Ti(t):this._findContext(ki(t)):null}_findOriginalError(t){let e=ki(t);for(;e&&ki(e);)e=ki(e);return e}}class Di{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Mi extends Di{getTypeName(){return"HTML"}}class Pi extends Di{getTypeName(){return"Style"}}class xi extends Di{getTypeName(){return"Script"}}class Ni extends Di{getTypeName(){return"URL"}}class Li extends Di{getTypeName(){return"ResourceURL"}}function Fi(t){return t instanceof Di?t.changingThisBreaksApplicationSecurity:t}function zi(t,e){const i=Hi(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see http://g.co/ng/security#xss)`)}return i===e}function Hi(t){return t instanceof Di&&t.getTypeName()||null}function Bi(t){return new Mi(t)}function ji(t){return new Pi(t)}function Gi(t){return new xi(t)}function Ui(t){return new Ni(t)}function Ki(t){return new Li(t)}let Vi=!0,qi=!1;function Ji(){return qi=!0,Vi}function Wi(){if(qi)throw new Error("Cannot enable prod mode after platform setup.");Vi=!1}class Zi{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Yi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const i=this.inertDocument.createElement("body");return i.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Qi(t.trim())).join(", ")),this.buf.push(" ",e,'="',gn(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();an.hasOwnProperty(e)&&!nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(gn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const pn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fn=/([^\#-~ |!])/g;function gn(t){return t.replace(/&/g,"&").replace(pn,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(fn,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let bn;function mn(t,e){let i=null;try{bn=bn||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Zi:new Yi(t)}(t);let n=e?String(e):"";i=bn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=bn.getInertBodyElement(n)}while(n!==o);const r=new dn,a=r.sanitizeChildren(An(i)||i);return Ji()&&r.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(i){const t=An(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function An(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function wn(t){const e=_n();return e?e.sanitize(yn.HTML,t)||"":zi(t,"HTML")?Fi(t):mn(Wt(),ii(t))}function vn(t){const e=_n();return e?e.sanitize(yn.URL,t)||"":zi(t,"URL")?Fi(t):Qi(ii(t))}function _n(){const t=he();return t&&t[12]}function Sn(t,e){t.__ngContext__=e}function En(t,e,i){let n=t.length;for(;;){const s=t.indexOf(e,i);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const i=e.length;if(s+i===n||t.charCodeAt(s+i)<=32)return s}i=s+1}}function Rn(t,e,i){let n=0;for(;no?"":s[u+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==En(e,l,0)||2&n&&l!==t){if(In(n))return!1;r=!0}}}}else{if(!r&&!In(n)&&!In(c))return!1;if(r&&In(c))continue;r=!1,n=c|1&n}}return In(n)||r}function In(t){return 0==(1&t)}function On(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||In(r)||(e+=Pn(o,s),s=""),n=r,o=o||!In(n);i++}return""!==s&&(e+=Pn(o,s)),e}const Nn={};function Ln(t){const e=t[3];return xt(e)?e[3]:e}function Fn(t){return Hn(t[13])}function zn(t){return Hn(t[4])}function Hn(t){for(;null!==t&&!xt(t);)t=t[4];return t}function Bn(t){jn(de(),he(),Le()+t,Ae())}function jn(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&Ge(e,n,i)}else{const n=t.preOrderHooks;null!==n&&Ue(e,n,0,i)}Fe(i)}function Gn(t,e){return t<<17|e<<2}function Un(t){return t>>17&32767}function Kn(t){return 2|t}function Vn(t){return(131068&t)>>2}function qn(t,e){return-131069&t|e<<2}function Jn(t){return 1|t}function Wn(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&jn(t,e,0,Ae()),i(n,s)}finally{Fe(o)}}function is(t,e,i){if(Nt(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0&&function t(e){for(let n=Fn(e);null!==n;n=zn(n))for(let e=10;e0&&t(i)}const i=e[1].components;if(null!==i)for(let n=0;n0&&t(s)}}(i)}}function Es(t,e){const i=ie(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function Ds(t){return t[7]||(t[7]=[])}function Ms(t,e,i){return(null===t||zt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function Ps(t,e){const i=t[9],n=i?i.get(Oi,null):null;n&&n.handleError(e)}function xs(t,e,i,n,s){for(let o=0;o0&&(t[i-1][4]=n[4]);const r=ut(t,10+e);Zs(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Hs(t,e){if(!(256&e[2])){const i=e[11];Zt(i)&&i.destroyNode&&Zs(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Bs(t[1],t);for(;e;){let i=null;if(Pt(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)Pt(e)&&Bs(e[1],e),e=e[3];null===e&&(e=t),Pt(e)&&Bs(e[1],e),i=e&&e[4]}e=i}}(e)}}function Bs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?t[a]():t[-a].unsubscribe(),n+=2}else i[n].call(t[i[n+1]]);e[7]=null}}(t,e),1===e[1].type&&Zt(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&xt(e[3])){i!==e[3]&&Fs(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function js(t,e,i){let n=e.parent;for(;null!=n&&(3===n.type||4===n.type);)n=(e=n).parent;if(null===n)return i[0];if(e&&4===e.type&&4&e.flags)return Qt(e,i).parentNode;if(2&n.flags){const e=t.data,i=e[e[n.index].directiveStart].encapsulation;if(i!==bt.ShadowDom&&i!==bt.Native)return null}return Qt(n,i)}function Gs(t,e,i,n){Zt(t)?t.insertBefore(e,i,n):e.insertBefore(i,n,!0)}function Us(t,e,i){Zt(t)?t.appendChild(e,i):e.appendChild(i)}function Ks(t,e,i,n){null!==n?Gs(t,e,i,n):Us(t,e,i)}function Vs(t,e){return Zt(t)?t.parentNode(e):e.parentNode}function qs(t,e){return 3===t.type||4===t.type?Qt(t,e):null}function Js(t,e,i,n){const s=js(t,n,e);if(null!=s){const t=e[11],o=qs(n.parent||e[6],e);if(Array.isArray(i))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Hs(this._lView[1],this._lView)}onDestroy(t){as(this._lView[1],this._lView,null,t)}markForCheck(){Cs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ts(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){ye(!0);try{Ts(t,e,i)}finally{ye(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Zs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class to extends Qs{constructor(t){super(t),this._view=t}detectChanges(){ks(this._view)}checkNoChanges(){!function(t){ye(!0);try{ks(t)}finally{ye(!1)}}(this._view)}get context(){return null}}let eo,io,no;function so(t,e,i){return eo||(eo=class extends t{}),new eo(Qt(e,i))}function oo(t,e,i,n){return io||(io=class extends t{constructor(t,e,i){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Yn(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationView[this._declarationTContainer.index];const n=this._declarationView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Xn(e,i,t),new Qs(i)}}),0===i.type?new io(n,i,so(e,i,n)):null}function ro(t,e,i,n){let s;no||(no=class extends t{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostView=i}get element(){return so(e,this._hostTNode,this._hostView)}get injector(){return new Ei(this._hostTNode,this._hostView)}get parentInjector(){const t=gi(this._hostTNode,this._hostView);if(Qe(t)){const e=ei(t,this._hostView),i=ti(t);return new Ei(e[1].data[i+8],e)}return new Ei(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(rt,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),xt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new no(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=10+n,o=i.length;n>0&&(i[s-1][4]=e),n{class t{}return t.__NG_ELEMENT_ID__=()=>lo(),t})();const lo=ao,uo=Function,ho=new V("Set Injector scope."),po={},fo={},go=[];let bo=void 0;function mo(){return void 0===bo&&(bo=new ot),bo}function Ao(t,e=null,i=null,n){return new yo(t,i,e||mo(),n)}class yo{constructor(t,e,i,n=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ct(e,i=>this.processProvider(i,t,e)),ct([t],t=>this.processInjectorType(t,[],s)),this.records.set(q,_o(void 0,this));const o=this.records.get(ho);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:T(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=J,i=f.Default){this.assertNotDestroyed();const n=X(this);try{if(!(i&f.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof V)&&y(t);e=i&&this.injectableDefInScope(i)?_o(wo(t),po):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&f.Self?mo():this.parent).get(t,e=i&f.Optional&&e===J?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(T(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=T(e);if(Array.isArray(e))s=e.map(T).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):T(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(W,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{X(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(T(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=D(t)))return!1;let n=v(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=v(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{ct(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||go))}}this.injectorDefTypes.add(o),this.records.set(o,_o(n.factory,po));const a=n.providers;if(null!=a&&!r){const e=t;ct(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=Eo(t=D(t))?t:D(t&&t.provide);const s=function(t,e,i){return So(t)?_o(void 0,t.useValue):_o(vo(t),po)}(t);if(Eo(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=_o(void 0,po,!0),e.factory=()=>st(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===po&&(e.value=fo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function wo(t){const e=y(t),i=null!==e?e.factory:Dt(t);if(null!==i)return i;const n=v(t);if(null!==n)return n.factory;if(t instanceof V)throw new Error(`Token ${T(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=ht(e,"?");throw new Error(`Can't resolve all parameters for ${T(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[_]||t[R]||t[E]&&t[E]());if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function vo(t,e,i){let n=void 0;if(Eo(t)){const e=D(t);return Dt(e)||wo(e)}if(So(t))n=()=>D(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...st(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>et(D(t.useExisting));else{const e=D(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Dt(e)||wo(e);n=()=>new e(...st(t.deps))}var s;return n}function _o(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function So(t){return null!==t&&"object"==typeof t&&Z in t}function Eo(t){return"function"==typeof t}const Ro=function(t,e,i){return function(t,e=null,i=null,n){const s=Ao(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let Co=(()=>{class t{static create(t,e){return Array.isArray(t)?Ro(t,e,""):Ro(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=J,t.NULL=new ot,t.\u0275prov=m({token:t,providedIn:"any",factory:()=>et(q)}),t.__NG_ELEMENT_ID__=-1,t})();const To=new V("AnalyzeForEntryComponents");function ko(t,e,i){let n=i?t.styles:null,s=i?t.classes:null,o=0;if(null!==e)for(let r=0;r=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=$e(s.hostAttrs,i=$e(i,s.hostAttrs))}}(n)}function Do(t){return t===mt?{}:t===At?[]:t}function Mo(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Po(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function xo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let No=null;function Lo(){if(!No){const t=F.Symbol;if(t&&t.iterator)No=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea($t(t[n.index])).target:n.index;if(Zt(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=pr(n,e,o,!1);const t=i.listen(p.name||f,s,o);u.push(o,t),l&&l.push(s,b,g,g+1)}}else o=pr(n,e,o,!0),f.addEventListener(s,o,r),u.push(o),l&&l.push(s,b,g,r)}const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,le.lFrame.contextLView))[8]}(t)}function gr(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Er={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Rr(t){return t.substring(Er.key,Er.keyEnd)}function Cr(t,e){const i=Er.textEnd;return i===e?-1:(e=Er.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Er.key=e,i),Tr(t,e,i))}function Tr(t,e,i){for(;e=0;i=Cr(e,i))dt(t,Rr(e),!0)}function Mr(t,e,i,n){const s=he(),o=de(),r=Se(2);o.firstUpdatePass&&Nr(o,t,r,n),e!==Nn&&jo(s,r,e)&&zr(o,o.data[Le()+20],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=T(Fi(t)))),t}(e,i),n,r)}function Pr(t,e,i,n){const s=de(),o=Se(2);s.firstUpdatePass&&Nr(s,null,o,n);const r=he();if(i!==Nn&&jo(r,o,i)){const a=s.data[Le()+20];if(jr(a,n)&&!xr(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=k(t,i||"")),Qo(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===Nn&&(s=vr);let c=0,l=0,u=0=t.expandoStartIndex}function Nr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[Le()+20],r=xr(t,i);jr(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=Ce(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Fr(i=Lr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Lr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==Vn(n))return t[Un(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Lr(null,t,e,i[1],n),i=Fr(i,e.attrs,n),function(t,e,i,n){t[Un(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n=void 0;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else l=i;if(s)if(0!==c){const e=Un(t[a+1]);t[n+1]=Gn(e,a),0!==e&&(t[e+1]=qn(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=Gn(a,0),0!==a&&(t[a+1]=qn(t[a+1],n)),a=n;else t[n+1]=Gn(c,0),0===a?a=n:t[c+1]=qn(t[c+1],n),c=n;u&&(t[n+1]=Kn(t[n+1])),_r(t,l,n,!0),_r(t,l,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ft(o,e)>=0&&(i[n+1]=Jn(i[n+1]))}(e,l,t,n,o),r=Gn(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Lr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,l=null===c;let u=i[s+1];u===Nn&&(u=l?vr:void 0);let h=l?pt(u,n):c===n?u:void 0;if(o&&!Br(h)&&(h=pt(e,n)),Br(h)&&(a=h,r))return a;const d=t[s+1];s=r?Un(d):Vn(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=pt(t,n))}return a}function Br(t){return void 0!==t}function jr(t,e){return 0!=(t.flags&(e?16:32))}function Gr(t,e=""){const i=he(),n=de(),s=t+20,o=n.firstCreatePass?$n(n,t,2,null,null):n.data[s],r=i[s]=function(t,e){return Zt(e)?e.createText(t):e.createTextNode(t)}(e,i[11]);Js(n,i,r,o),ge(o,!1)}function Ur(t){return Kr("",t,""),Ur}function Kr(t,e,i){const n=he(),s=qo(n,t,e,i);return s!==Nn&&Ns(n,Le(),s),Kr}function Vr(t,e,i,n,s){const o=he(),r=Jo(o,t,e,i,n,s);return r!==Nn&&Ns(o,Le(),r),Vr}function qr(t,e,i,n,s,o,r){const a=he(),c=function(t,e,i,n,s,o,r,a){const c=Uo(t,ve(),i,s,r);return Se(3),c?e+ii(i)+n+ii(s)+o+ii(r)+a:Nn}(a,t,e,i,n,s,o,r);return c!==Nn&&Ns(a,Le(),c),qr}function Jr(t,e,i,n,s,o,r,a,c){const l=he(),u=function(t,e,i,n,s,o,r,a,c,l){const u=Ko(t,ve(),i,s,r,c);return Se(4),u?e+ii(i)+n+ii(s)+o+ii(r)+a+ii(c)+l:Nn}(l,t,e,i,n,s,o,r,a,c);return u!==Nn&&Ns(l,Le(),u),Jr}function Wr(t,e,i,n,s,o,r,a,c,l,u){const h=he(),d=function(t,e,i,n,s,o,r,a,c,l,u,h){const d=ve();let p=Ko(t,d,i,s,r,c);return p=jo(t,d+4,u)||p,Se(5),p?e+ii(i)+n+ii(s)+o+ii(r)+a+ii(c)+l+ii(u)+h:Nn}(h,t,e,i,n,s,o,r,a,c,l,u);return d!==Nn&&Ns(h,Le(),d),Wr}function Zr(t,e,i){Pr(dt,Dr,qo(he(),t,e,i),!0)}function Yr(t,e,i){const n=he();return jo(n,_e(),e)&&ls(de(),ze(),n,t,e,n[11],i,!0),Yr}function $r(t,e,i){const n=he();if(jo(n,_e(),e)){const s=de(),o=ze();ls(s,o,n,t,e,Ms(Ce(s.data),o,n),i,!0)}return $r}function Xr(t,e,i,n,s){if(t=D(t),Array.isArray(t))for(let o=0;o>20;if(Eo(t)||!t.multi){const n=new Je(c,s,Yo),p=ea(a,e,s?u:u+d,h);-1===p?(bi(di(l,r),o,a),Qr(o,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ea(a,e,u+d,h),f=ea(a,e,u,u+d),g=p>=0&&i[p],b=f>=0&&i[f];if(s&&!b||!s&&!g){bi(di(l,r),o,a);const u=function(t,e,i,n,s){const o=new Je(t,i,Yo);return o.multi=[],o.index=e,o.componentProviders=0,ta(o,s,n&&!i),o}(s?na:ia,i.length,s,n,c);!s&&b&&(i[f].providerFactory=u),Qr(o,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),i.push(u),r.push(u)}else Qr(o,t,p>-1?p:f,ta(i[s?f:p],c,!s&&n));!s&&n&&b&&i[f].componentProviders++}}}function Qr(t,e,i,n){const s=Eo(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function ta(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ea(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=de();if(n.firstCreatePass){const s=zt(t);Xr(i,n.data,n.blueprint,s,!0),Xr(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ra{}class aa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${T(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ca=(()=>{class t{}return t.NULL=new aa,t})(),la=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>ua(t),t})();const ua=function(t){return so(t,fe(),he())};class ha{}var da=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let pa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>fa(),t})();const fa=function(){const t=he(),e=ie(fe().index,t);return function(t){const e=t[11];if(Zt(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Pt(e)?e:t)};let ga=(()=>{class t{}return t.\u0275prov=m({token:t,providedIn:"root",factory:()=>null}),t})();class ba{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ma=new ba("10.1.5");class Aa{constructor(){}supports(t){return zo(t)}create(t){return new wa(t)}}const ya=(t,e)=>e;class wa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ya}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):t=this._addAfter(new va(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Sa),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class va{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class _a{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Sa{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new _a,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ea(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Ta(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ta{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let ka=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,i)},deps:[[t,new p,new h]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=m({token:t,providedIn:"root",factory:()=>new t([new Aa])}),t})(),Ia=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,i)},deps:[[t,new p,new h]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=m({token:t,providedIn:"root",factory:()=>new t([new Ra])}),t})();const Oa=[new Ra],Da=new ka([new Aa]),Ma=new Ia(Oa);let Pa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>xa(t,la),t})();const xa=function(t,e){return oo(t,e,fe(),he())};let Na=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>La(t,la),t})();const La=function(t,e){return ro(t,e,fe(),he())},Fa={};class za extends ca{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Ot(t);return new ja(e,this.ngModule)}}function Ha(t){const e=[];for(let i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}const Ba=new V("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>si});class ja extends ra{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(xn).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ha(this.componentDef.inputs)}get outputs(){return Ha(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,Fa,s);return o!==Fa||n===Fa?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(ha,Yt),r=s.get(ga,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=i?function(t,e,i){if(Zt(t))return t.selectRootElement(e,i===bt.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Zn(c,o.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:si,clean:Os,playerHandler:null,flags:0},d=rs(0,null,null,1,0,null,null,null,null,null),p=Yn(null,d,h,u,null,null,o,a,r,s);let f,g;Oe(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=$n(r,0,2,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(ko(a,c,!0),null!==t&&(We(s,t,c),null!==a.classes&&Xs(s,t,a.classes),null!==a.styles&&$s(s,t,a.styles)));const l=n.createRenderer(t,e),u=Yn(i,os(e),null,e.onPush?64:16,i[20],a,n,l,null,null);return r.firstCreatePass&&(bi(di(a,i),r,e.type),gs(r,a),ms(a,i.length,1)),Rs(i,u),i[20]=u}(l,this.componentDef,p,o,a);if(l)if(i)We(a,l,["ng-version",ma.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&Xs(a,l,e.join(" "))}if(g=te(d,0),void 0!==e){const t=g.projection=[];for(let i=0;it(r,e)),e.contentQueries&&e.contentQueries(1,r,i.length-1);const a=fe();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Fe(a.index-20);const t=i[1];hs(t,e),ds(t,i,e.hostVars),ps(e,r)}return r}(t,this.componentDef,p,h,[Io]),Xn(d,p,null)}finally{Ne()}return new Ga(this.componentType,f,so(la,g,p),p,g)}}class Ga extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new to(n),this.componentType=t}get injector(){return new Ei(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Ua=void 0;var Ka=["en",[["a","p"],["AM","PM"],Ua],[["AM","PM"],Ua,Ua],[["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"]],Ua,[["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"]],Ua,[["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}",Ua,"{1} 'at' {0}",Ua],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Va={};function qa(t,e,i){"string"!=typeof e&&(i=e,e=t[$a.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Va[e]=t,i&&(Va[e][$a.ExtraData]=i)}function Ja(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Ya(e);if(i)return i;const n=e.split("-")[0];if(i=Ya(n),i)return i;if("en"===n)return Ka;throw new Error(`Missing locale data for the locale "${t}".`)}function Wa(t){return Ja(t)[$a.CurrencyCode]||null}function Za(t){return Ja(t)[$a.PluralCase]}function Ya(t){return t in Va||(Va[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),Va[t]}var $a=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let Xa="en-US";function Qa(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Xa=t.toLowerCase().replace(/_/g,"-"))}const tc=new Map;class ec extends rt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new za(this);const i=Mt(t),n=t[G]||null;n&&Qa(n),this._bootstrapComponents=ci(i.bootstrap),this._r3Injector=Ao(t,e,[{provide:rt,useValue:this},{provide:ca,useValue:this.componentFactoryResolver}],T(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Co.THROW_IF_NOT_FOUND,i=f.Default){return t===Co||t===rt||t===q?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ic extends at{constructor(t){super(),this.moduleType=t,null!==Mt(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${T(e)} vs ${T(e.name)}`)})(t,tc.get(t),e),tc.set(t,e)}let i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach(e=>t(e))}(t)}create(t){return new ec(this.moduleType,t)}}function nc(t,e,i){const n=we()+t,s=he();return s[n]===Nn?Bo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function sc(t,e,i,n){return cc(he(),we(),t,e,i,n)}function oc(t,e,i,n,s){return lc(he(),we(),t,e,i,n,s)}function rc(t,e,i,n,s,o){return uc(he(),we(),t,e,i,n,s,o)}function ac(t,e){const i=t[e];return i===Nn?void 0:i}function cc(t,e,i,n,s,o){const r=e+i;return jo(t,r,s)?Bo(t,r+1,o?n.call(o,s):n(s)):ac(t,r+1)}function lc(t,e,i,n,s,o,r){const a=e+i;return Go(t,a,s,o)?Bo(t,a+2,r?n.call(r,s,o):n(s,o)):ac(t,a+2)}function uc(t,e,i,n,s,o,r,a){const c=e+i;return Uo(t,c,s,o,r)?Bo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):ac(t,c+3)}function hc(t,e){const i=de();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new Error(`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=Dt(n.type)),r=Q(Yo);try{const e=ui(!1),n=o();return ui(e),function(t,e,i,n){const s=i+20;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=n}(i,he(),t,n),n}finally{Q(r)}}function dc(t,e,i){const n=he(),s=ee(n,t);return bc(n,gc(n,t)?cc(n,we(),e,s.transform,i,s):s.transform(i))}function pc(t,e,i,n){const s=he(),o=ee(s,t);return bc(s,gc(s,t)?lc(s,we(),e,o.transform,i,n,o):o.transform(i,n))}function fc(t,e,i,n,s){const o=he(),r=ee(o,t);return bc(o,gc(o,t)?uc(o,we(),e,r.transform,i,n,s,r):r.transform(i,n,s))}function gc(t,e){return t[1].data[e+20].pure}function bc(t,e){return Fo.isWrapped(e)&&(e=Fo.unwrap(e),t[ve()]=Nn),e}const mc=class extends n.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,o=t=>null,r=()=>null;t&&"object"==typeof t?(n=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(o=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(o=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(r=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const a=super.subscribe(n,o,r);return t instanceof s.a&&t.add(a),a}};function Ac(){return this._results[Lo()]()}class yc{constructor(){this.dirty=!0,this._results=[],this.changes=new mc,this.length=0;const t=Lo(),e=yc.prototype;e[t]||(e[t]=Ac)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,i){void 0===i&&(i=e);for(let n=0;n0)s.push(a[e/2]);else{const o=r[e+1],a=i[-n];for(let e=10;e{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(et(jc,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const Uc=new V("AppId"),Kc={provide:Uc,useFactory:function(){return`${Vc()}${Vc()}${Vc()}`},deps:[]};function Vc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const qc=new V("Platform Initializer"),Jc=new V("Platform ID"),Wc=new V("appBootstrapListener");let Zc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const Yc=new V("LocaleId"),$c=new V("DefaultCurrencyCode");class Xc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Qc=function(t){return new ic(t)},tl=Qc,el=function(t){return Promise.resolve(Qc(t))},il=function(t){const e=Qc(t),i=ci(Mt(t).declarations).reduce((t,e)=>{const i=Ot(e);return i&&t.push(new ja(i)),t},[]);return new Xc(e,i)},nl=il,sl=function(t){return Promise.resolve(il(t))};let ol=(()=>{class t{constructor(){this.compileModuleSync=tl,this.compileModuleAsync=el,this.compileModuleAndAllComponentsSync=nl,this.compileModuleAndAllComponentsAsync=sl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const rl=(()=>Promise.resolve(0))();function al(t){"undefined"==typeof Zone?rl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class cl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new mc(!1),this.onMicrotaskEmpty=new mc(!1),this.onStable=new mc(!1),this.onError=new mc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,dl(t),hl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),dl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(i,n,s,o,r,a)=>{try{return pl(t),i.invokeTask(s,o,r,a)}finally{e&&"eventTask"===o.type&&e(),fl(t)}},onInvoke:(e,i,n,s,o,r,a)=>{try{return pl(t),e.invoke(n,s,o,r,a)}finally{fl(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,dl(t),hl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(cl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,ul,ll,ll);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}function ll(){}const ul={};function hl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function dl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function pl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function fl(t){t._nesting--,hl(t)}class gl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new mc,this.onMicrotaskEmpty=new mc,this.onStable=new mc,this.onError=new mc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let bl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{cl.assertNotInAngularZone(),al(()=>{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())al(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(et(cl))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})(),ml=(()=>{class t{constructor(){this._applications=new Map,vl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return vl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();class Al{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function yl(t){vl=t}let wl,vl=new Al;const _l=new V("AllowMultipleToken");class Sl{constructor(t,e){this.name=t,this.token=e}}function El(t,e,i=[]){const n="Platform: "+e,s=new V(n);return(e=[])=>{let o=Rl();if(!o||o.injector.get(_l,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:ho,useValue:"platform"});!function(t){if(wl&&!wl.destroyed&&!wl.injector.get(_l,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wl=t.get(Cl);const e=t.get(qc,null);e&&e.forEach(t=>t())}(Co.create({providers:t,name:n}))}return function(t){const e=Rl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Rl(){return wl&&!wl.destroyed?wl:null}let Cl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new gl:("zone.js"===t?void 0:t)||new cl({enableLongStackTrace:Ji(),shouldCoalesceEventChangeDetection:e}),i}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),n=[{provide:cl,useValue:i}];return i.run(()=>{const e=Co.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Oi,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Il(this._modules,s)),i.runOutsideAngular(()=>i.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,i){try{const n=i();return ar(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(Gc);return t.runInitializers(),t.donePromise.then(()=>(Qa(s.injector.get(Yc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Tl({},e);return function(t,e,i){const n=new ic(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(kl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${T(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(et(Co))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function Tl(t,e){return Array.isArray(e)?e.reduce(Tl,t):Object.assign(Object.assign({},t),e)}let kl=(()=>{class t{constructor(t,e,i,n,s,c){this._zone=t,this._console=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ji(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new o.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{cl.assertNotInAngularZone(),al(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{cl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=Object(r.a)(l,u.pipe(Object(a.a)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ra?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(rt),s=i.create(Co.NULL,[],e||i.selector,n);s.onDestroy(()=>{this._unloadComponent(s)});const o=s.injector.get(bl,null);return o&&s.injector.get(ml).registerApplication(s.location.nativeElement,o),this._loadComponent(s),Ji()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Il(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Wc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Il(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(et(cl),et(Zc),et(Co),et(Oi),et(ca),et(Gc))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function Il(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Ol{}class Dl{}const Ml={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Pl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ml}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>xl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>xl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(et(ol),et(Dl,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function xl(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}class Nl extends co{}class Ll extends Nl{}const Fl=function(t){return null},zl=El(null,"core",[{provide:Jc,useValue:"unknown"},{provide:Cl,deps:[Co]},{provide:ml,deps:[]},{provide:Zc,deps:[]}]),Hl=[{provide:kl,useClass:kl,deps:[cl,Zc,Co,Oi,ca,Gc]},{provide:Ba,deps:[cl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Gc,useClass:Gc,deps:[[new h,jc]]},{provide:ol,useClass:ol,deps:[]},Kc,{provide:ka,useFactory:function(){return Da},deps:[]},{provide:Ia,useFactory:function(){return Ma},deps:[]},{provide:Yc,useFactory:function(t){return Qa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new u(Yc),new h,new p]]},{provide:$c,useValue:"USD"}];let Bl=(()=>{class t{constructor(t){}}return t.\u0275mod=Rt({type:t}),t.\u0275inj=A({factory:function(e){return new(e||t)(et(kl))},providers:Hl}),t})()},ESXS:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new r.o(this.data.services)}onSubmit(){this.loading=!0;const t=[];for(const e of this.data.services)t.push(e.id);this.resourcesManager.removeServices(this.data.resourceId,t).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.l),a.Mb(c.e),a.Mb(o.m))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t})()},EWqr:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("bwdy");class s extends n.a{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},Efrr:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EWqr");const s=new(i("DG/E").a)(n.a)},EkAj:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("Ssnw"),s=i("X2Q7"),o=i("8clQ"),r=i("t47Z"),a=i("nyAh"),c=i("EM62"),l=i("s2Ay");let u=(()=>{class t{constructor(t,e,i,n,s,o,r){this.translate=t,this.authResolver=e,this.store=i,this.apiRequest=n,this.attributesManager=s,this.notificator=o,this.guiAuthResolver=r,this.baseItemColor=this.store.get("theme","sidemenu_bg_color"),this.voBgColor=this.store.get("theme","sidemenu_vo_bg_color"),this.memberBgColor=this.store.get("theme","sidemenu_member_bg_color"),this.groupBgColor=this.store.get("theme","sidemenu_group_bg_color"),this.facilityBgColor=this.store.get("theme","sidemenu_facility_bg_color"),this.resourceBgColor=this.store.get("theme","sidemenu_resource_bg_color"),this.userBgColor=this.store.get("theme","sidemenu_user_bg_color"),this.serviceBgColor=this.store.get("theme","sidemenu_service_bg_color"),this.baseItemTextColor=this.store.get("theme","sidemenu_text_color"),this.voTextColor=this.store.get("theme","sidemenu_vo_text_color"),this.memberTextColor=this.store.get("theme","sidemenu_member_text_color"),this.groupTextColor=this.store.get("theme","sidemenu_group_text_color"),this.facilityTextColor=this.store.get("theme","sidemenu_facility_text_color"),this.resourceTextColor=this.store.get("theme","sidemenu_resource_text_color"),this.userTextColor=this.store.get("theme","sidemenu_user_text_color"),this.serviceTextColor=this.store.get("theme","sidemenu_service_text_color")}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.baseItemColor,textColorCss:this.baseItemTextColor}}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.baseItemColor,textColorCss:this.baseItemTextColor}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,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.baseItemColor,textColorCss:this.baseItemTextColor,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.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.baseItemColor,textColorCss:this.baseItemTextColor,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$"}]}}parseFacility(t){return{label:t.name,baseLink:["/facilities/"+t.id],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(t,e){const i=(new r.a).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getResourceLinks(t,e,i){const n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:e+"/\\d+/resources/\\d+$"}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:e+"/\\d+/resources/\\d+/groups$"}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:e+"/\\d+/resources/\\d+/services$"}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:e+"/\\d+/resources/\\d+/members$"}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:e+"/\\d+/resources/\\d+/attributes$"}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:e+"/\\d+/resources/\\d+/settings$",children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:e+"/\\d+/resources/\\d+/settings/managers$"}],showChildrenRegex:e+"/\\d+/resources/\\d+/settings"}),n}parseGroup(t){return{label:t.name,baseLink:[`/organizations/${t.voId}/groups/${t.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(t){return{label:t.name,baseLink:["/organizations/"+t.id],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(t,e){return{label:Object(o.w)(t.user),baseLink:[`/organizations/${t.voId}/members/${t.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(t,e,i){return{label:Object(o.w)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(t){return{label:t.name,baseLink:["/admin/services/"+t.id],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:["/admin/services/"+t.id],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${t.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${t.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(t){const e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:["/organizations/"+t.id],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${t.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${t.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){const i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${t.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${t.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${t.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${t.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${t.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${t.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"});const i=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),n=this.authResolver.isManagerPagePrivileged(t),s=this.authResolver.isThisVoAdminOrObserver(t.id);if(n||i||s){const o=[];s&&o.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),n&&o.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),s&&o.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),s&&o.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),i&&o.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${t.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:o,showChildrenRegex:"/organizations/\\d+/settings"})}return e}getUserLinks(t,e,i){const n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:i+"$"}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[e+"/organizations"],activatedRegex:i+"/organizations"}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[e+"/groups"],activatedRegex:i+"/groups"}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[e+"/identities"],activatedRegex:i+"/identities"}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:[e+"/facilities"],activatedRegex:i+"/facilities"}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:[e+"/resources"],activatedRegex:i+"/resources"}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[e+"/attributes"],activatedRegex:i+"/attributes"}),n.push({label:"MENU_ITEMS.USER.ROLES",url:[e+"/roles"],activatedRegex:`^${e}/roles`}),n.push({label:"MENU_ITEMS.ADMIN.SETTINGS",url:[e+"/settings"],activatedRegex:i+"/settings$",children:[],showChildrenRegex:i+"/settings"}),n[n.length-1].children.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[e+"/settings/associated-users"],activatedRegex:`^${e}/settings/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[e+"/settings/service-identities"],activatedRegex:`^${e}/settings/service-identities`}),n}getMemberLinks(t,e){const i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${t.voId}/members/${t.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`//organizations/${t.voId}/members/${t.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`//organizations/${t.voId}/members/${t.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${t.voId}/members/${t.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${t.voId}/members/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}getFacilityLinks(t){const e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:["/facilities/"+t.id],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${t.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${t.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${t.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${t.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${t.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${t.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});const i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),s=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||s||o){const r=[];s&&r.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&r.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&r.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${t.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&r.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:r,showChildrenRegex:"/facilities/\\d+/settings"})}return e}getGroupLinks(t){const e=[],i=[];e.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${t.voId}/groups/${t.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${t.voId}/groups/${t.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&e.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${t.voId}/groups/${t.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),e.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${t.voId}/groups/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});const n=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),s=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return n&&s&&o&&e.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${t.voId}/groups/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,a.a.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{i.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${t.voId}/groups/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&i.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${t.voId}/groups/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==i.length&&e.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${t.voId}/groups/${t.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:i,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),e}}return t.\u0275fac=function(e){return new(e||t)(c.Wb(l.e),c.Wb(n.h),c.Wb(n.m),c.Wb(n.b),c.Wb(s.c),c.Wb(n.l),c.Wb(n.h))},t.\u0275prov=c.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},EkHC:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("cqs0"),s=i("X2Q7"),o=i("iyZ4"),r=i("8clQ"),a=(i("HHEo"),i("mEf3")),c=i("+0js"),l=i("IDQ9"),u=i("EM62"),h=i("OZ4H"),d=i("sEIs"),p=i("0XDM"),f=i("PBFl"),g=i("2kYt"),b=i("csyo"),m=i("LKLE"),A=i("s2Ay");const y=["list"];function w(t,e){1&t&&u.Nb(0,"mat-spinner",7)}function v(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-attributes-list",8,9),u.Zb("page",(function(e){return u.xc(t),u.dc().pageChanged(e)})),u.Rb()}if(2&t){const t=u.dc();u.kc("pageSize",t.pageSize)("attributes",t.attributes)("selection",t.selection)}}let _=(()=>{class t{constructor(t,e,i,s,r){this.dialog=t,this.attributesManager=e,this.tableConfigService=i,this.userService=s,this.route=r,this.loading=!1,this.selection=new n.c(!0,[]),this.tableId=o.r,this.attributes=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(t=>{this.userService.getUserExtSourceById(t.identityId).subscribe(t=>{this.userExtSource=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(t=>{this.attributes=Object(r.j)(t),this.selection.clear(),this.loading=!1})}onAdd(){const t=Object(r.o)();t.width="1050px",t.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(l.a,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=Object(r.o)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(c.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=Object(r.o)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(a.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(u.Mb(h.b),u.Mb(s.c),u.Mb(o.pb),u.Mb(s.p),u.Mb(d.a))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-identity-detail"]],viewQuery:function(t,e){var i;1&t&&u.Qc(y,!0),2&t&&u.sc(i=u.ac())&&(e.list=i.first)},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(u.Sb(0,"div"),u.Sb(1,"h1",0),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Sb(4,"perun-web-apps-refresh-button",1),u.Zb("refresh",(function(){return e.refreshTable()})),u.Rb(),u.Sb(5,"button",2),u.Zb("click",(function(){return e.onSave()})),u.Jc(6),u.ec(7,"translate"),u.Rb(),u.Sb(8,"button",3),u.Zb("click",(function(){return e.onAdd()})),u.Jc(9),u.ec(10,"translate"),u.Rb(),u.Sb(11,"button",4),u.Zb("click",(function(){return e.onRemove()})),u.Jc(12),u.ec(13,"translate"),u.Rb(),u.Hc(14,w,1,0,"mat-spinner",5),u.Hc(15,v,2,3,"perun-web-apps-attributes-list",6),u.Rb()),2&t&&(u.Ab(2),u.Mc("",u.fc(3,9,"SHARED.IDENTITY_DETAIL.TITLE")," - ",e.userExtSource?e.userExtSource.extSource.name:"",""),u.Ab(3),u.kc("disabled",0===e.selection.selected.length),u.Ab(1),u.Kc(u.fc(7,11,"SHARED.IDENTITY_DETAIL.SAVE")),u.Ab(3),u.Kc(u.fc(10,13,"SHARED.IDENTITY_DETAIL.ADD")),u.Ab(2),u.kc("disabled",0===e.selection.selected.length),u.Ab(1),u.Kc(u.fc(13,15,"SHARED.IDENTITY_DETAIL.REMOVE")),u.Ab(2),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading))},directives:[p.a,f.b,g.t,b.c,m.a],pipes:[A.d],styles:[""]}),t})()},"EtR/":function(t,e,i){"use strict";i.d(e,"a",(function(){return E}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("2kYt"),a=i("nIj0"),c=i("cqs0"),l=i("nyAh"),u=i("iyZ4"),h=i("EM62"),d=i("s2Ay"),p=i("29Wa"),f=i("Cd2c"),g=i("PBFl"),b=i("HMTk"),m=i("csyo"),A=i("nz2m"),y=i("FcRk");function w(t,e){1&t&&h.Nb(0,"mat-spinner",12)}const v=function(){return["groupStatus","organization","logins","type"]};function _(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-members-list",13),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb()}if(2&t){const t=h.dc();h.kc("pageSize",t.pageSize)("hidden",t.loading)("members",t.members)("selection",t.selection)("hideColumns",h.oc(6,v))("disableRouting",!0)}}function S(t,e){1&t&&(h.Sb(0,"app-alert",14),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let E=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=s,this.translate=o,this.tableConfigService=r,this.loading=!1,this.tableId=u.h,this.expiration="never",this.searchCtrl=new a.g("",[a.F.required]),this.firstSearchDone=!1,this.members=[],this.selection=new c.c(!0,[])}ngOnInit(){this.theme=this.data.theme,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId)}onCancel(){this.dialogRef.close(!1)}sponsor(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();e.sponsored?this.membersService.sponsorMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(t)}setExpiration(t){this.expiration="never"===t?"never":Object(r.I)(t,"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,[l.a.MEMBER_DEF_EXPIRATION,l.a.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1},()=>this.loading=!1))}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.i),h.Mb(n.a),h.Mb(s.m),h.Mb(o.i),h.Mb(s.l),h.Mb(d.e),h.Mb(u.pb))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","hidden","members","selection","hideColumns","disableRouting","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","hidden","members","selection","hideColumns","disableRouting","page"],["alert_type","warn"]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"div",1),h.Sb(5,"mat-form-field",2),h.Sb(6,"label"),h.Sb(7,"input",3),h.Zb("keyup.enter",(function(){return e.onSearchByString()})),h.ec(8,"translate"),h.Rb(),h.Rb(),h.Sb(9,"mat-error"),h.Jc(10),h.ec(11,"translate"),h.Rb(),h.Rb(),h.Sb(12,"button",4),h.Zb("click",(function(){return e.onSearchByString()})),h.Jc(13),h.ec(14,"translate"),h.Rb(),h.Hc(15,w,1,0,"mat-spinner",5),h.Hc(16,_,1,7,"perun-web-apps-members-list",6),h.Hc(17,S,3,3,"app-alert",7),h.Sb(18,"div"),h.Nb(19,"br"),h.Sb(20,"h6"),h.Jc(21),h.ec(22,"translate"),h.Rb(),h.Sb(23,"perun-web-apps-expiration-select",8),h.Zb("datePicker",(function(t){return e.setExpiration(t)})),h.Rb(),h.Rb(),h.Rb(),h.Sb(24,"div",9),h.Sb(25,"button",10),h.Zb("click",(function(){return e.onCancel()})),h.Jc(26),h.ec(27,"translate"),h.Rb(),h.Sb(28,"button",11),h.Zb("click",(function(){return e.onSubmit()})),h.Jc(29),h.ec(30,"translate"),h.Rb(),h.Rb(),h.Rb()),2&t&&(h.Cb(e.theme),h.Ab(2),h.Kc(h.fc(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),h.Ab(5),h.lc("placeholder",h.fc(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),h.kc("formControl",e.searchCtrl),h.Ab(3),h.Lc(" ",h.fc(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),h.Ab(2),h.kc("disabled",e.loading),h.Ab(1),h.Lc(" ",h.fc(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",e.firstSearchDone),h.Ab(1),h.kc("ngIf",!e.firstSearchDone),h.Ab(4),h.Kc(h.fc(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),h.Ab(5),h.Lc(" ",h.fc(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),h.Ab(2),h.kc("disabled",e.loading||0===e.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[n.j,n.g,p.c,f.b,a.c,a.r,a.h,p.b,g.b,r.t,b.a,n.c,m.c,A.a,y.a],pipes:[d.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),t})()},EtYo:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("Ssnw"),s=i("EM62"),o=i("2kYt"),r=i("PBFl"),a=i("Y2X+"),c=i("bFHC"),l=i("s2Ay");const u=function(t){return{color:t}};let h=(()=>{class t{constructor(t,e){this.location=t,this.storeService=e}ngOnInit(){this.backButtonColor=this.storeService.get("theme","backButtonColor")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(o.n),s.Mb(n.m))},t.\u0275cmp=s.Gb({type:t,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(t,e){1&t&&(s.Sb(0,"button",0),s.Zb("click",(function(){return e.goBack()})),s.ec(1,"translate"),s.Sb(2,"mat-icon",1),s.Jc(3,"arrow_right_alt"),s.Rb(),s.Rb()),2&t&&(s.lc("matTooltip",s.fc(1,2,"Back")),s.kc("ngStyle",s.pc(4,u,e.backButtonColor)))},directives:[r.b,o.w,a.a,c.a],pipes:[l.d],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t})()},F1o0:function(t,e,i){"use strict";i.d(e,"a",(function(){return v})),i.d(e,"b",(function(){return m})),i.d(e,"c",(function(){return S}));var n=i("EM62"),s=i("mFH5"),o=i("5XID"),r=i("nIj0"),a=i("5lCh"),c=i("sg/T"),l=i("cqs0");const u=["input"],h=function(){return{enterDuration:150}},d=["*"],p=new n.r("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let f=0;const g={provide:r.p,useExisting:Object(n.U)(()=>m),multi:!0};class b{constructor(t,e){this.source=t,this.value=e}}let m=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+f++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.o}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(o.c)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=Object(o.c)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 b(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.h))},t.\u0275dir=n.Hb({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var s;1&t&&n.Fb(i,v,!0),2&t&&n.sc(s=n.ac())&&(e._radios=s)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[n.zb([g])]}),t})();class A{constructor(t){this._elementRef=t}}const y=Object(s.z)(Object(s.D)(A));let w=(()=>{class t extends y{constructor(t,e,i,s,o,r,a){super(e),this._changeDetector=i,this._focusMonitor=s,this._radioDispatcher=o,this._animationMode=r,this._providerOverride=a,this._uniqueId="mat-radio-"+ ++f,this.id=this._uniqueId,this.change=new n.o,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=o.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=Object(o.c)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(Object(o.c)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=Object(o.c)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return(this.id||this._uniqueId)+"-input"}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new b(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(m,8),n.Mb(n.l),n.Mb(n.h),n.Mb(c.h),n.Mb(l.d),n.Mb(a.a,8),n.Mb(p,8))},t.\u0275dir=n.Hb({type:t,viewQuery:function(t,e){var i;1&t&&n.Qc(u,!0),2&t&&n.sc(i=n.ac())&&(e._inputElement=i.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[n.xb]}),t})(),v=(()=>{class t extends w{}return t.\u0275fac=function(e){return _(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&n.Zb("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(n.Bb("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.Eb("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.xb],ngContentSelectors:d,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(t,e){if(1&t&&(n.jc(),n.Sb(0,"label",0,1),n.Sb(2,"div",2),n.Nb(3,"div",3),n.Nb(4,"div",4),n.Sb(5,"input",5,6),n.Zb("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),n.Rb(),n.Sb(7,"div",7),n.Nb(8,"div",8),n.Rb(),n.Rb(),n.Sb(9,"div",9),n.Sb(10,"span",10),n.Jc(11,"\xa0"),n.Rb(),n.ic(12),n.Rb(),n.Rb()),2&t){const t=n.tc(1);n.Bb("for",e.inputId),n.Ab(5),n.kc("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),n.Bb("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.Ab(2),n.kc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.oc(18,h)),n.Ab(2),n.Eb("mat-radio-label-before","before"==e.labelPosition)}},directives:[s.s],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;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;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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}.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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})();const _=n.Ub(v);let S=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[s.t,s.i],s.i]}),t})()},FU6l:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},FcRk:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),s=i("2kYt"),o=i("bFHC");function r(t,e){1&t&&(n.Sb(0,"mat-icon",2),n.Jc(1," error "),n.Rb())}const a=["*"];let c=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:a,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(n.jc(),n.Sb(0,"div",0),n.Hc(1,r,2,0,"mat-icon",1),n.ic(2),n.Rb()),2&t&&(n.Eb("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),n.Ab(1),n.kc("ngIf","error"!==e.alert_type))},directives:[s.t,o.a],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t})()},FlRo:function(t,e,i){"use strict";i.d(e,"a",(function(){return wt})),i.d(e,"b",(function(){return ut})),i.d(e,"c",(function(){return bt})),i.d(e,"d",(function(){return yt})),i.d(e,"e",(function(){return ft})),i.d(e,"f",(function(){return It})),i.d(e,"g",(function(){return St})),i.d(e,"h",(function(){return At})),i.d(e,"i",(function(){return dt})),i.d(e,"j",(function(){return Tt})),i.d(e,"k",(function(){return vt})),i.d(e,"l",(function(){return Dt})),i.d(e,"m",(function(){return Rt})),i.d(e,"n",(function(){return ct})),i.d(e,"o",(function(){return Lt})),i.d(e,"p",(function(){return Nt})),i.d(e,"q",(function(){return Pt}));var n=i("5XID"),s=i("cqs0"),o=i("EM62"),r=i("E5oP"),a=i("cZZj"),c=i("2kYt"),l=i("ZTXN"),u=i("C05f"),h=i("9bRT"),d=i("ROBh"),p=i("kuMc");const f=[[["caption"]]],g=["caption"];function b(t,e){if(1&t&&(o.Sb(0,"th",3),o.Jc(1),o.Rb()),2&t){const t=o.dc();o.Ec("text-align",t.justify),o.Ab(1),o.Lc(" ",t.headerText," ")}}function m(t,e){if(1&t&&(o.Sb(0,"td",4),o.Jc(1),o.Rb()),2&t){const t=e.$implicit,i=o.dc();o.Ec("text-align",i.justify),o.Ab(1),o.Lc(" ",i.dataAccessor(t,i.name)," ")}}function A(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Object(n.c)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const y=new o.r("CDK_TABLE"),w=new o.r("text-column-options");let v=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.M))},t.\u0275dir=o.Hb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.M))},t.\u0275dir=o.Hb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),S=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.M))},t.\u0275dir=o.Hb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class E{}const R=A(E);let C=(()=>{class t extends R{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Object(n.c)(t),this._hasStickyChanged=e!==this._stickyEnd}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(y,8))},t.\u0275dir=o.Hb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){var n;1&t&&(o.Fb(i,v,!0),o.Fb(i,_,!0),o.Fb(i,S,!0)),2&t&&(o.sc(n=o.ac())&&(e.cell=n.first),o.sc(n=o.ac())&&(e.headerCell=n.first),o.sc(n=o.ac())&&(e.footerCell=n.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[o.zb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.xb]}),t})();class T{constructor(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}}let k=(()=>{class t extends T{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(C),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[o.xb]}),t})(),I=(()=>{class t extends T{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(C),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[o.xb]}),t})(),O=(()=>{class t extends T{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(C),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[o.xb]}),t})(),D=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof x?t.headerCell.template:this instanceof F?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.M),o.Mb(o.t))},t.\u0275dir=o.Hb({type:t,features:[o.yb]}),t})();class M extends D{}const P=A(M);let x=(()=>{class t extends P{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.M),o.Mb(o.t),o.Mb(y,8))},t.\u0275dir=o.Hb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[o.xb,o.yb]}),t})();class N extends D{}const L=A(N);let F=(()=>{class t extends L{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.M),o.Mb(o.t),o.Mb(y,8))},t.\u0275dir=o.Hb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[o.xb,o.yb]}),t})(),z=(()=>{class t extends D{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.M),o.Mb(o.t),o.Mb(y,8))},t.\u0275dir=o.Hb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[o.xb]}),t})(),H=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.Q))},t.\u0275dir=o.Hb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Ob(0,0)},directives:[H],encapsulation:2}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Ob(0,0)},directives:[H],encapsulation:2}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Ob(0,0)},directives:[H],encapsulation:2}),t})();const U=["top","bottom","left","right"];class K{constructor(t,e,i,n=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._isBrowser=n}clearStickyPositioning(t,e){for(const i of t)if(i.nodeType===i.ELEMENT_NODE){this._removeStickyStyle(i,e);for(let t=0;tt)||i.some(t=>t);if(!t.length||!n||!this._isBrowser)return;const s=t[0],o=s.children.length,r=this._getCellWidths(s),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),l="rtl"===this.direction;for(const u of t)for(let t=0;t!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)}_removeStickyStyle(t,e){for(const i of e)t.style[i]="";t.style.zIndex=this._getCalculatedZIndex(t),U.some(e=>!!t.style[e])||(t.style.position="",t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i){t.classList.add(this._stickCellCss),t.style[e]=i+"px",t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of U)t.style[n]&&(i+=e[n]);return i?""+i:""}_getCellWidths(t){const e=[],i=t.children;for(let n=0;n0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}function V(t){return Error(`Could not find column with id "${t}".`)}let q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.Q),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["","rowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.Q),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),W=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.Q),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Z=(()=>{class t{constructor(t,e,i,n,s,o,r){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._onDestroy=new l.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new u.a({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){Object(o.W)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}.`),this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Object(n.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),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._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(s.e)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return;const e=this._rowOutlet.viewContainer;t.forEachOperation((t,i,n)=>{if(null==t.previousIndex)this._insertRow(t.item,n);else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this.updateStickyColumnStyles()}setHeaderRowDef(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}setFooterRowDef(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Y(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{if(this._columnDefsByName.has(t.name))throw Error(`Duplicate column definition name provided: "${t.name}".`);this._columnDefsByName.set(t.name,t)})}_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 t=this._rowDefs.filter(t=>!t.when);if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff();this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}_switchDataSource(t){this._data=[],Object(s.e)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;if(Object(s.e)(this.dataSource)?t=this.dataSource.connect(this):Object(h.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(d.a)(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(Object(p.a)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>{const e=this._columnDefsByName.get(t);if(!e)throw V(t);return e}),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}if(!i.length)throw function(t){return Error("Could not find a matching row definition for theprovided row data: "+JSON.stringify(t))}(t);return i}_insertRow(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}_renderRow(t,e,i,n={}){t.viewContainer.createEmbeddedView(e.template,n,i);for(let s of this._getCellTemplates(e))H.mostRecentCellOutlet&&H.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);if(!i)throw V(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup"),e.appendChild(i.outlet.elementRef.nativeElement),t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new K(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:Object(d.a)()).pipe(Object(p.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.t),o.Mb(o.h),o.Mb(o.l),o.Xb("role"),o.Mb(r.c,8),o.Mb(c.e),o.Mb(a.a))},t.\u0275cmp=o.Gb({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){var n;1&t&&(o.Fb(i,C,!0),o.Fb(i,z,!0),o.Fb(i,x,!0),o.Fb(i,F,!0)),2&t&&(o.sc(n=o.ac())&&(e._contentColumnDefs=n),o.sc(n=o.ac())&&(e._contentRowDefs=n),o.sc(n=o.ac())&&(e._contentHeaderRowDefs=n),o.sc(n=o.ac())&&(e._contentFooterRowDefs=n))},viewQuery:function(t,e){var i;1&t&&(o.Dc(q,!0),o.Dc(J,!0),o.Dc(W,!0)),2&t&&(o.sc(i=o.ac())&&(e._rowOutlet=i.first),o.sc(i=o.ac())&&(e._headerRowOutlet=i.first),o.sc(i=o.ac())&&(e._footerRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[o.zb([{provide:y,useExisting:t}])],ngContentSelectors:g,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.jc(f),o.ic(0),o.Ob(1,0),o.Ob(2,1),o.Ob(3,2))},directives:[J,q,W],encapsulation:2}),t})();function Y(t,e){return t.concat(Array.from(e))}let $=(()=>{class t{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),!this._table)throw Error("Text column could not find a parent table for registration.");this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;if(Object(o.W)()&&!t)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(Z,8),o.Mb(w,8))},t.\u0275cmp=o.Gb({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var i;1&t&&(o.Dc(C,!0),o.Dc(v,!0),o.Dc(_,!0)),2&t&&(o.sc(i=o.ac())&&(e.columnDef=i.first),o.sc(i=o.ac())&&(e.cell=i.first),o.sc(i=o.ac())&&(e.headerCell=i.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(o.Qb(0,0),o.Hc(1,b,2,3,"th",1),o.Hc(2,m,2,3,"td",2),o.Pb())},directives:[C,_,v,k,O],encapsulation:2}),t})(),X=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)}}),t})();var Q=i("mFH5"),tt=i("bwdy"),et=i("g6G6"),it=i("HM3f"),nt=i("YtkY");const st=[[["caption"]]],ot=["caption"];function rt(t,e){if(1&t&&(o.Sb(0,"th",3),o.Jc(1),o.Rb()),2&t){const t=o.dc();o.Ec("text-align",t.justify),o.Ab(1),o.Lc(" ",t.headerText," ")}}function at(t,e){if(1&t&&(o.Sb(0,"td",4),o.Jc(1),o.Rb()),2&t){const t=e.$implicit,i=o.dc();o.Ec("text-align",i.justify),o.Ab(1),o.Lc(" ",i.dataAccessor(t,i.name)," ")}}let ct=(()=>{class t extends Z{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky"}}return t.\u0275fac=function(e){return lt(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[o.zb([{provide:Z,useExisting:t},{provide:y,useExisting:t}]),o.xb],ngContentSelectors:ot,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.jc(st),o.ic(0),o.Ob(1,0),o.Ob(2,1),o.Ob(3,2))},directives:[J,q,W],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-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,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-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,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-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,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),t})();const lt=o.Ub(ct);let ut=(()=>{class t extends v{}return t.\u0275fac=function(e){return ht(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matCellDef",""]],features:[o.zb([{provide:v,useExisting:t}]),o.xb]}),t})();const ht=o.Ub(ut);let dt=(()=>{class t extends _{}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matHeaderCellDef",""]],features:[o.zb([{provide:_,useExisting:t}]),o.xb]}),t})();const pt=o.Ub(dt);let ft=(()=>{class t extends S{}return t.\u0275fac=function(e){return gt(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matFooterCellDef",""]],features:[o.zb([{provide:S,useExisting:t}]),o.xb]}),t})();const gt=o.Ub(ft);let bt=(()=>{class t extends C{}return t.\u0275fac=function(e){return mt(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[o.zb([{provide:C,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.xb]}),t})();const mt=o.Ub(bt);let At=(()=>{class t extends k{constructor(t,e){super(t,e),e.nativeElement.classList.add("mat-column-"+t.cssClassFriendlyName)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(C),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[o.xb]}),t})(),yt=(()=>{class t extends I{constructor(t,e){super(t,e),e.nativeElement.classList.add("mat-column-"+t.cssClassFriendlyName)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(C),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[o.xb]}),t})(),wt=(()=>{class t extends O{constructor(t,e){super(t,e),e.nativeElement.classList.add("mat-column-"+t.cssClassFriendlyName)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(C),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[o.xb]}),t})(),vt=(()=>{class t extends x{}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[o.zb([{provide:x,useExisting:t}]),o.xb]}),t})();const _t=o.Ub(vt);let St=(()=>{class t extends F{}return t.\u0275fac=function(e){return Et(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[o.zb([{provide:F,useExisting:t}]),o.xb]}),t})();const Et=o.Ub(St);let Rt=(()=>{class t extends z{}return t.\u0275fac=function(e){return Ct(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[o.zb([{provide:z,useExisting:t}]),o.xb]}),t})();const Ct=o.Ub(Rt);let Tt=(()=>{class t extends B{}return t.\u0275fac=function(e){return kt(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[o.zb([{provide:B,useExisting:t}]),o.xb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Ob(0,0)},directives:[H],encapsulation:2}),t})();const kt=o.Ub(Tt);let It=(()=>{class t extends j{}return t.\u0275fac=function(e){return Ot(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[o.zb([{provide:j,useExisting:t}]),o.xb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Ob(0,0)},directives:[H],encapsulation:2}),t})();const Ot=o.Ub(It);let Dt=(()=>{class t extends G{}return t.\u0275fac=function(e){return Mt(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[o.zb([{provide:G,useExisting:t}]),o.xb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Ob(0,0)},directives:[H],encapsulation:2}),t})();const Mt=o.Ub(Dt);let Pt=(()=>{class t extends ${}return t.\u0275fac=function(e){return xt(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-text-column"]],features:[o.xb],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(t,e){1&t&&(o.Qb(0,0),o.Hc(1,rt,2,3,"th",1),o.Hc(2,at,2,3,"td",2),o.Pb())},directives:[bt,dt,ut,At,wt],encapsulation:2}),t})();const xt=o.Ub(Pt);let Nt=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},imports:[[X,Q.i],Q.i]}),t})();class Lt extends s.b{constructor(t=[]){super(),this._renderData=new u.a([]),this._filter=new u.a(""),this._internalPageChanges=new l.a,this._renderChangesSubscription=tt.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(Object(n.a)(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i),r=0;return null!=s&&null!=o?s>o?r=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new u.a(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Object(et.a)(this._sort.sortChange,this._sort.initialized):Object(d.a)(null),e=this._paginator?Object(et.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(d.a)(null),i=this._data,n=Object(it.a)([i,this._filter]).pipe(Object(nt.a)(([t])=>this._filterData(t))),s=Object(it.a)([n,t]).pipe(Object(nt.a)(([t])=>this._orderData(t))),o=Object(it.a)([s,e]).pipe(Object(nt.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}},GoAz:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("IdLP"),s=i("1MAX"),o=i("bwdy"),r=i("qEfY"),a=i("czMQ"),c=i("sWLk"),l=i("/vgl"),u=i("eY+9");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.a]}(t))return function(t,e){return new n.a(i=>{const n=new o.a;return n.add(e.schedule(()=>{const s=t[r.a]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(Object(l.a)(t))return function(t,e){return new n.a(i=>{const n=new o.a;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.a(i=>{const n=new o.a;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.a](),n.add(e.schedule((function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())})))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.a?t:new n.a(Object(s.a)(t))}},Gtvd:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("FlRo"),s=i("X2Q7"),o=i("OZ4H"),r=i("Ssnw"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("csyo"),h=i("PBFl");function d(t,e){1&t&&a.Nb(0,"mat-spinner",4)}function p(t,e){1&t&&a.Nb(0,"th",13)}function f(t,e){if(1&t&&(a.Sb(0,"td",14),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",15)}function b(t,e){1&t&&a.Nb(0,"tr",16)}function m(t,e){if(1&t&&(a.Sb(0,"div",5),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",6),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",7),a.Qb(8,8),a.Hc(9,p,1,0,"th",9),a.Hc(10,f,2,1,"td",10),a.Pb(),a.Hc(11,g,1,0,"tr",11),a.Hc(12,b,1,0,"tr",12),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}function A(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",17),a.Sb(1,"button",18),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"button",19),a.Zb("click",(function(){return a.xc(t),a.dc().onSubmit()})),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),a.Ab(2),a.kc("disabled",t.loading),a.Ab(1),a.Lc(" ",a.fc(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new n.o(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.data.resources.map(t=>t.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,t).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(o.i),a.Mb(o.a),a.Mb(r.l),a.Mb(c.e),a.Mb(s.m))},t.\u0275cmp=a.Gb({type:t,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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Hc(6,A,7,7,"div",3),a.Rb()),2&t&&(a.Cb(e.data.theme),a.Ab(2),a.Kc(a.fc(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[o.j,l.t,u.c,o.g,n.n,n.c,n.i,n.b,n.k,n.m,n.h,n.a,n.j,n.l,o.c,h.b],pipes:[c.d],styles:[""]}),t})()},H0K4:function(t,e,i){"use strict";i.d(e,"a",(function(){return p})),i.d(e,"b",(function(){return f})),i.d(e,"c",(function(){return g})),i.d(e,"d",(function(){return b}));var n=i("cZZj"),s=i("EM62"),o=i("5XID"),r=i("6Oco"),a=i("ZTXN"),c=i("KTx3"),l=i("prE9"),u=i("kuMc"),h=i("2kYt");const d=Object(n.f)({passive:!0});let p=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return r.a;const e=Object(o.e)(t),i=this._monitoredElements.get(e);if(i)return i.subject.asObservable();const n=new a.a,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",c,d)}}),n.asObservable()}stopMonitoring(t){const e=Object(o.e)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.a),s.Wb(s.A))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(n.a),Object(s.Wb)(s.A))},token:t,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new s.o}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(p))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),g=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new a.a,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Object(o.f)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Object(o.f)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=Object(o.c)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();Object(c.a)(t,"resize").pipe(Object(l.a)(16),Object(u.a)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=e.placeholder;e.classList.add(this._measuringClass),e.placeholder="",e.style.height=e.scrollHeight-4+"px",e.classList.remove(this._measuringClass),e.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(n.a),s.Mb(s.A),s.Mb(h.e,8))},t.\u0275dir=s.Hb({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.Zb("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),b=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[n.b]]}),t})()},H2Dp:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e,i){return t.filter(t=>t[i].includes(e)).filter((t,e,n)=>n.findIndex(e=>e[i]===t[i])===e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"filterUniqueObjects",type:t,pure:!0}),t})()},HHEo:function(t,e,i){"use strict";i.d(e,"d",(function(){return N})),i.d(e,"a",(function(){return L.a})),i.d(e,"c",(function(){return F.a})),i.d(e,"e",(function(){return z.a})),i.d(e,"b",(function(){return H.b}));var n=i("2kYt"),s=i("+Tre"),o=i("FlRo"),r=i("s2Ay"),a=i("sEIs"),c=i("cePI"),l=i("iAde"),u=i("csyo"),h=i("KoHB"),d=i("bFHC"),p=i("Jb3d"),f=i("PBFl"),g=i("Y2X+"),b=i("29Wa"),m=i("nIj0"),A=i("Cd2c"),y=i("S17y"),w=i("oqI+"),v=i("mFH5"),_=i("t47Z"),S=i("HHFY"),E=i("QcI7"),R=i("gcUQ"),C=i("F1o0"),T=i("R7+U"),k=i("BYpP"),I=i("qvOF"),O=i("OZ4H"),D=i("EM62");let M=(()=>{class t extends v.u{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(e){return P(e||t)},t.\u0275prov=D.Ib({token:t,factory:t.\u0275fac}),t})();const P=D.Ub(M),x={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 N=(()=>{class t{}return t.\u0275mod=D.Kb({type:t}),t.\u0275inj=D.Jb({factory:function(e){return new(e||t)},providers:[{provide:v.c,useClass:M},{provide:v.e,useValue:x}],imports:[[n.c,s.b,o.p,m.l,y.g,w.g,r.c,a.j,c.c,l.b,u.b,h.a,d.b,p.c,f.c,g.b,b.e,m.B,A.c,v.t,_.b,S.c,E.e,R.g,C.c,v.o,T.b,k.b,I.g,O.h]]}),t})();i("LKLE");var L=i("nhAq"),F=(i("b7Yx"),i("8cyV"),i("U3ra"),i("UX+r"),i("23RZ"),i("tmvS"),i("YFHD"),i("3jrC")),z=i("B/Qt"),H=(i("K9kF"),i("XAvq"),i("HMTk"),i("2Zb0"),i("oYGW"),i("6Xhx"))},HHFY:function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return l}));var n=i("2kYt"),s=i("EM62");class o{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.opacity="0",n.position="absolute",n.left=n.top="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let r=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new o(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.e))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(n.e))},token:t,providedIn:"root"}),t})();const a=new s.r("CKD_COPY_TO_CLIPBOARD_CONFIG");let c=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.o,this._deprecatedCopied=this.copied,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone?this._ngZone.runOutsideAngular(()=>setTimeout(n,1)):setTimeout(n,1)};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(r),s.Mb(s.A),s.Mb(a,8))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.Zb("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),t})(),l=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})()},HHqq:function(t,e,i){"use strict";i.d(e,"a",(function(){return x}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("nIj0"),a=i("jIqt"),c=i("YtkY"),l=i("cqs0"),u=i("EM62"),h=i("s2Ay"),d=i("x9Az"),p=i("2kYt"),f=i("PBFl"),g=i("csyo"),b=i("29Wa"),m=i("Cd2c"),A=i("ulve"),y=i("R7+U"),w=i("mFH5"),v=i("K9kF"),_=i("FcRk");function S(t,e){1&t&&(u.Jc(0),u.ec(1,"translate")),2&t&&u.Kc(u.fc(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function E(t,e){1&t&&u.Nb(0,"mat-spinner",13)}function R(t,e){if(1&t&&(u.Sb(0,"mat-option",24),u.Jc(1),u.Rb()),2&t){const t=e.$implicit;u.kc("value",t),u.Ab(1),u.Lc(" ",t," ")}}function C(t,e){if(1&t){const t=u.Tb();u.Sb(0,"mat-option",25),u.Zb("click",(function(){u.xc(t);const i=e.$implicit,n=u.dc(2),s=u.tc(6);return n.setResource(i),s.selected.completed=!0})),u.Jc(1),u.Rb()}if(2&t){const t=e.$implicit;u.kc("value",t),u.Ab(1),u.Lc(" ",t.name," ")}}function T(t,e){if(1&t&&(u.Sb(0,"div",22),u.Jc(1),u.Rb()),2&t){const t=e.$implicit;u.Ab(1),u.Kc(t.name)}}function k(t,e){if(1&t&&(u.Sb(0,"div"),u.Sb(1,"div"),u.Sb(2,"mat-form-field",14),u.Nb(3,"input",15),u.ec(4,"translate"),u.Sb(5,"mat-autocomplete",16,17),u.Hc(7,R,2,2,"mat-option",18),u.ec(8,"async"),u.Rb(),u.Rb(),u.Rb(),u.Sb(9,"div"),u.Sb(10,"mat-form-field",14),u.Sb(11,"mat-select",19),u.ec(12,"translate"),u.Hc(13,C,2,2,"mat-option",20),u.ec(14,"async"),u.Rb(),u.Rb(),u.Rb(),u.Sb(15,"div"),u.Sb(16,"span",21),u.Jc(17),u.ec(18,"translate"),u.Rb(),u.Sb(19,"div",22),u.Jc(20),u.Rb(),u.Rb(),u.Sb(21,"div"),u.Sb(22,"span",21),u.Jc(23),u.ec(24,"translate"),u.Rb(),u.Hc(25,T,2,1,"div",23),u.Rb(),u.Rb()),2&t){const t=u.tc(6),e=u.dc();u.Ab(3),u.lc("placeholder",u.fc(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),u.kc("formControl",e.facilityCtrl)("matAutocomplete",t),u.Ab(4),u.kc("ngForOf",u.fc(8,12,e.filteredFacilities)),u.Ab(4),u.lc("placeholder",u.fc(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),u.Ab(2),u.kc("ngForOf",u.fc(14,16,e.filteredResources)),u.Ab(4),u.Kc(u.fc(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),u.Ab(3),u.Lc(" ",e.description," "),u.Ab(3),u.Kc(u.fc(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),u.Ab(2),u.kc("ngForOf",e.services)}}function I(t,e){1&t&&(u.Jc(0),u.ec(1,"translate")),2&t&&u.Kc(u.fc(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function O(t,e){1&t&&u.Nb(0,"mat-spinner",13)}const D=function(){return["recent","vo","expiration","menu"]};function M(t,e){if(1&t&&(u.Sb(0,"div"),u.Nb(1,"perun-web-apps-groups-list",26),u.Rb()),2&t){const t=u.dc();u.Ab(1),u.kc("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisable",t.membersGroupsId)("groups",t.groups)("hideColumns",u.oc(7,D))("selection",t.selectedGroups)}}function P(t,e){1&t&&(u.Sb(0,"app-alert",27),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}let x=(()=>{class t{constructor(t,e,i,n,s,o,a){this.dialogRef=t,this.data=e,this.resourceManager=i,this.groupManager=n,this.notificator=s,this.translate=o,this.authResolver=a,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new r.g,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new l.c(!1,[])}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(t=>{this.resources=t,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}getResourceFacilities(){const t=new Set;for(const e of this.resources)t.add(e.facility.name);this.facilitiesNames=Array.from(t),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe(Object(a.a)(""),Object(c.a)(t=>this.filterFacilities(t))),this.filteredResources=this.facilityCtrl.valueChanges.pipe(Object(a.a)(""),Object(c.a)(t=>this.filterResources(t)))}filterFacilities(t){const e=t.toLowerCase();return this.facilitiesNames.filter(t=>t.toLowerCase().indexOf(e)>=0).sort((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase()))}filterResources(t){if(null==t)return this.resources;const e=t.toLowerCase();return this.resources.filter(t=>0===t.facility.name.toLowerCase().indexOf(e)).sort((t,e)=>t.name.toLowerCase().localeCompare(e.name.toLowerCase()))}setResource(t){this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(t=>{this.services=t,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>{this.groups=t,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(t=>{this.membersGroupsId=new Set(t.map(t=>t.id)),this.groups.forEach(t=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])||this.membersGroupsId.add(t.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)}}return t.\u0275fac=function(e){return new(e||t)(u.Mb(n.i),u.Mb(n.a),u.Mb(o.m),u.Mb(o.h),u.Mb(s.l),u.Mb(h.e),u.Mb(s.h))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-add-member-to-resource-dialog"]],decls:30,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto",3,"click"],[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",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","groupsToDisable","groups","hideColumns","selection"],["alert_type","warn"]],template:function(t,e){1&t&&(u.Sb(0,"div"),u.Sb(1,"h1",0),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Sb(4,"div",1),u.Sb(5,"mat-horizontal-stepper",2,3),u.Sb(7,"mat-step",4),u.Hc(8,S,2,3,"ng-template",5),u.Hc(9,E,1,0,"mat-spinner",6),u.Hc(10,k,26,22,"div",7),u.Sb(11,"div",8),u.Sb(12,"button",9),u.Zb("click",(function(){return e.onCancel()})),u.Jc(13),u.ec(14,"translate"),u.Rb(),u.Sb(15,"button",10),u.Zb("click",(function(){return e.loadGroups()})),u.Jc(16),u.ec(17,"translate"),u.Rb(),u.Rb(),u.Rb(),u.Sb(18,"mat-step"),u.Hc(19,I,2,3,"ng-template",5),u.Hc(20,O,1,0,"mat-spinner",6),u.Hc(21,M,2,8,"div",7),u.Hc(22,P,3,3,"app-alert",11),u.Sb(23,"div",8),u.Sb(24,"button",12),u.Zb("click",(function(){return e.selectedGroups.clear()})),u.Jc(25),u.ec(26,"translate"),u.Rb(),u.Sb(27,"button",10),u.Zb("click",(function(){return e.onFinish()})),u.Jc(28),u.ec(29,"translate"),u.Rb(),u.Rb(),u.Rb(),u.Rb(),u.Rb(),u.Rb()),2&t&&(u.Cb(e.theme),u.Ab(2),u.Kc(u.fc(3,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),u.Ab(3),u.kc("linear",!0),u.Ab(4),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading),u.Ab(3),u.Kc(u.fc(14,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")),u.Ab(2),u.kc("disabled",null==e.selectedResource||e.processing||e.loading),u.Ab(1),u.Kc(u.fc(17,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")),u.Ab(4),u.kc("ngIf",e.processing),u.Ab(1),u.kc("ngIf",0!==e.groups.length&&!e.processing),u.Ab(1),u.kc("ngIf",0===e.groups.length&&!e.processing),u.Ab(3),u.Lc(" ",u.fc(26,22,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK"),""),u.Ab(2),u.kc("disabled",0===e.selectedGroups.selected.length||e.processing),u.Ab(1),u.Lc(" ",u.fc(29,24,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT"),""))},directives:[n.j,n.g,d.a,d.b,d.d,p.t,n.c,f.b,d.h,d.i,g.c,b.c,m.b,r.c,A.d,r.r,r.h,A.a,p.s,y.a,w.n,v.a,_.a],pipes:[h.d,p.b],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t})()},HM3f:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("gBlb"),s=i("FU6l"),o=i("pBDD"),r=i("mW0F"),a=i("ckkg");const c={};function l(...t){let e=null,i=null;return Object(n.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(a.a)(t,i).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{class t{constructor(){this.expiration="never",this.expirationControl=new s.g(null),this.datePicker=new n.o}ngOnInit(){const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue(Object(o.I)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=Object(o.I)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue(Object(o.I)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-radio-group",0),n.Zb("ngModelChange",(function(t){return e.expiration=t}))("change",(function(){return e.emitDate()})),n.Sb(1,"mat-radio-button",1),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Sb(4,"mat-radio-button",2),n.Sb(5,"mat-form-field",3),n.Zb("click",(function(){return n.xc(t),n.tc(12).open()})),n.Sb(6,"mat-label"),n.Jc(7),n.ec(8,"translate"),n.Rb(),n.Sb(9,"input",4),n.Zb("dateChange",(function(){return e.setExpiration()})),n.Rb(),n.Nb(10,"mat-datepicker-toggle",5),n.Nb(11,"mat-datepicker",6,7),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.tc(12);n.kc("ngModel",e.expiration),n.Ab(2),n.Lc(" ",n.fc(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),n.Ab(2),n.lc("value",e.expirationControl.value),n.Ab(3),n.Kc(n.fc(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),n.Ab(2),n.kc("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",t),n.Ab(1),n.kc("for",t)("disabled",!1),n.Ab(1),n.kc("disabled",!1)}},directives:[r.b,s.r,s.u,r.a,a.c,a.g,c.b,s.c,l.f,s.h,l.h,a.j,l.d],pipes:[u.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},HOZh:function(t,e,i){"use strict";i.d(e,"a",(function(){return _})),i.d(e,"b",(function(){return E}));var n=i("EM62"),s=i("cZZj"),o=i("ZTXN"),r=i("HM3f"),a=i("qZtG"),c=i("IdLP"),l=i("J+dc"),u=i("5uGe");class h{constructor(t){this.total=t}call(t,e){return e.subscribe(new d(t,this.total))}}class d extends u.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var p=i("mWib"),f=i("YtkY"),g=i("jIqt"),b=i("kuMc"),m=i("5XID");const A=new Set;let y,w=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):v}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!A.has(t))try{y||(y=document.createElement("style"),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),A.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(s.a))},t.\u0275prov=Object(n.Ib)({factory:function(){return new t(Object(n.Wb)(s.a))},token:t,providedIn:"root"}),t})();function v(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let _=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new o.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return S(Object(m.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=S(Object(m.b)(t)).map(t=>this._registerQuery(t).observable);let i=Object(r.a)(e);return i=Object(a.a)(i.pipe(Object(l.a)(1)),i.pipe(t=>t.lift(new h(1)),Object(p.a)(0))),i.pipe(Object(f.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new c.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Object(g.a)(e),Object(f.a)(e=>({query:t,matches:e.matches})),Object(b.a)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(w),n.Wb(n.A))},t.\u0275prov=Object(n.Ib)({factory:function(){return new t(Object(n.Wb)(w),Object(n.Wb)(n.A))},token:t,providedIn:"root"}),t})();function S(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const E={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},HYj3:function(t,e,i){"use strict";i.d(e,"a",(function(){return V})),i.d(e,"b",(function(){return K})),i.d(e,"c",(function(){return j})),i.d(e,"d",(function(){return E})),i.d(e,"e",(function(){return D})),i.d(e,"f",(function(){return J}));var n=i("qvOF"),s=i("EM62"),o=i("cZZj"),r=i("E5oP"),a=i("2kYt"),c=i("5XID"),l=i("Sv/w"),u=i("ZTXN"),h=i("bwdy"),d=i("g6G6"),p=i("J+dc"),f=i("kuMc"),g=i("fAiE");class b{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(c.d)(-this._previousScrollPosition.left),t.style.top=Object(c.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function m(){return Error("Scroll strategy has already been attached.")}class A{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw m();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class y{enable(){}disable(){}attach(){}}function w(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function v(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class _{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw m();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();w(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let S=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new y,this.close=t=>new A(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new b(this._viewportRuler,this._document),this.reposition=t=>new _(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.f),s.Wb(n.h),s.Wb(s.A),s.Wb(a.e))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(n.f),Object(s.Wb)(n.h),Object(s.Wb)(s.A),Object(s.Wb)(a.e))},token:t,providedIn:"root"}),t})();class E{constructor(t){if(this.scrollStrategy=new y,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class R{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class C{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function T(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "top", "bottom" or "center".`)}function k(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "start", "end" or "center".`)}let I=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(a.e))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(a.e))},token:t,providedIn:"root"}),t})();const O=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let D=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||O){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new u.a,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(p.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEvents.asObservable()}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Object(c.d)(this._config.width),t.height=Object(c.d)(this._config.height),t.minWidth=Object(c.d)(this._config.minWidth),t.minHeight=Object(c.d)(this._config.minHeight),t.maxWidth=Object(c.d)(this._config.maxWidth),t.maxHeight=Object(c.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;Object(c.b)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Object(f.a)(Object(d.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const P=/([A-Za-z%]+)$/;class x{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.a,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&N(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:o}=t,r=this._getOffset(n,"x"),a=this._getOffset(n,"y");r&&(s+=r),a&&(o+=a);let c=0-o,l=o+e.height-i.height,u=this._subtractOverflows(e.width,0-s,s+e.width-i.width),h=this._subtractOverflows(e.height,c,l),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=L(this._overlayRef.getConfig().minHeight),r=L(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.right,0),o=Math.max(t.y+e.height-n.bottom,0),r=Math.max(n.top-i.top-t.y,0),a=Math.max(n.left-i.left-t.x,0);let c=0,l=0;return c=e.width<=n.width?a||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)l=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:l,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=Object(c.d)(i.height),n.top=Object(c.d)(i.top),n.bottom=Object(c.d)(i.bottom),n.width=Object(c.d)(i.width),n.left=Object(c.d)(i.left),n.right=Object(c.d)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=Object(c.d)(t)),s&&(n.maxWidth=Object(c.d)(s))}this._lastBoundingBoxSize=i,N(this._boundingBox.style,n)}_resetBoundingBoxStyles(){N(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){N(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();N(i,this._getExactOverlayY(e,t,n)),N(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),l&&(r+=`translateY(${l}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=Object(c.d)(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=Object(c.d)(o.maxWidth):s&&(i.maxWidth="")),N(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=Object(c.d)(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=Object(c.d)(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:v(t,i),isOriginOutsideView:w(t,i),isOverlayClipped:v(e,i),isOverlayOutsideView:w(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{k("originX",t.originX),T("originY",t.originY),k("overlayX",t.overlayX),T("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Object(c.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function N(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function L(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(P);return i&&"px"!==i?null:parseFloat(e)}return t||null}class F{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new x(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new R(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new z}connectedTo(t,e,i){return new F(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new x(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.h),s.Wb(a.e),s.Wb(o.a),s.Wb(D))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(n.h),Object(s.Wb)(a.e),Object(s.Wb)(o.a),Object(s.Wb)(D))},token:t,providedIn:"root"}),t})(),B=0,j=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new E(t);return s.direction=s.direction||this._directionality.value,new M(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+B++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new l.f(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(S),s.Wb(D),s.Wb(s.j),s.Wb(H),s.Wb(I),s.Wb(s.s),s.Wb(s.A),s.Wb(a.e),s.Wb(r.c),s.Wb(a.n,8))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();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"}],U=new s.r("cdk-connected-overlay-scroll-strategy");let K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),V=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new s.o,this.positionChange=new s.o,this.attach=new s.o,this.detach=new s.o,this.overlayKeydown=new s.o,this._templatePortal=new l.j(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(c.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(c.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(c.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(c.c)(t)}get push(){return this._push}set push(t){this._push=Object(c.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=G),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==g.h||Object(g.t)(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new E({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(j),s.Mb(s.M),s.Mb(s.Q),s.Mb(U),s.Mb(r.c,8))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[s.yb]}),t})();const q={provide:U,deps:[j],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let J=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[j,q],imports:[[r.a,l.i,n.g],n.g]}),t})()},HdwC:function(t,e,i){"use strict";i.d(e,"a",(function(){return L}));var n=i("OF3q"),s=i("cqs0"),o=i("RUSO"),r=i("8clQ"),a=i("X2Q7"),c=i("nyAh"),l=i("iyZ4"),u=i("yaDT"),h=i("Ssnw"),d=(i("HHEo"),i("EM62")),p=i("OZ4H"),f=i("sEIs"),g=i("0XDM"),b=i("2kYt"),m=i("pynj"),A=i("k8N0"),y=i("nIj0"),w=i("PBFl"),v=i("Y2X+"),_=i("csyo"),S=i("XAvq"),E=i("K9kF"),R=i("s2Ay");const C=["tree"],T=["list"],k=["toggle"];function I(t,e){if(1&t){const t=d.Tb();d.Sb(0,"button",9),d.Zb("click",(function(){return d.xc(t),d.dc().onCreateGroup()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}2&t&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function O(t,e){if(1&t){const t=d.Tb();d.Sb(0,"button",12),d.Zb("click",(function(){return d.xc(t),d.dc(2).deleteGroup()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&t){const t=d.dc(2);d.kc("disabled",0===t.selected.selected.length||void 0!==t.tree&&!t.tree.removeAuth||void 0!==t.list&&!t.list.removeAuth),d.Ab(1),d.Lc(" ",d.fc(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function D(t,e){if(1&t&&(d.Sb(0,"span",10),d.ec(1,"translate"),d.Hc(2,O,3,4,"button",11),d.Rb()),2&t){const t=d.dc();d.lc("matTooltip",d.fc(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.kc("matTooltipDisabled",void 0===t.tree&&void 0===t.list||void 0!==t.tree&&t.tree.removeAuth||void 0!==t.list&&t.list.removeAuth),d.Ab(2),d.kc("ngIf",!t.loading&&t.deleteAuth)}}function M(t,e){1&t&&d.Nb(0,"mat-spinner",13)}function P(t,e){if(1&t){const t=d.Tb();d.Sb(0,"perun-web-apps-groups-tree",17,18),d.Zb("moveGroup",(function(e){return d.xc(t),d.dc(2).onMoveGroup(e)}))("refreshTable",(function(){return d.xc(t),d.dc(2).refreshTable()})),d.Rb()}if(2&t){const t=d.dc(2);d.kc("groups",t.groups)("expandAll",t.filtering)("hideCheckbox",!t.deleteAuth)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.routeAuth)}}function x(t,e){if(1&t){const t=d.Tb();d.Sb(0,"perun-web-apps-groups-list",19,20),d.Zb("page",(function(e){return d.xc(t),d.dc(2).pageChanged(e)}))("moveGroup",(function(e){return d.xc(t),d.dc(2).onMoveGroup(e)}))("refreshTable",(function(){return d.xc(t),d.dc(2).refreshTable()})),d.Rb()}if(2&t){const t=d.dc(2);d.kc("pageSize",t.pageSize)("groups",t.groups)("selection",t.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!t.routeAuth)("hideColumns",t.hideColumns)("filter",t.filterValue)}}function N(t,e){if(1&t&&(d.Sb(0,"div",14),d.Hc(1,P,2,6,"perun-web-apps-groups-tree",15),d.Hc(2,x,2,8,"perun-web-apps-groups-list",16),d.Rb()),2&t){const t=d.dc();d.Ab(1),d.kc("ngIf",!t.showGroupList),d.Ab(1),d.kc("ngIf",t.showGroupList)}}let L=(()=>{class t{constructor(t,e,i,n,o,r){this.dialog=t,this.groupService=e,this.tableConfigService=i,this.route=n,this.guiAuthResolver=o,this.initAuthService=r,this.groups=[],this.selected=new s.c(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=l.M,this.filterValue="",this.hideColumns=["expiration","recent","vo"]}onCreateGroup(){const t=Object(r.o)();t.width="450px",t.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.a,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"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.route.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,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]])),this.hideColumns=this.deleteAuth?["vo","expiration","recent"]:["select","vo","expiration","recent"]}deleteGroup(){const t=Object(r.o)();t.width="450px",t.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[c.a.GROUP_DEF_MAIL_FOOTER,c.a.GROUP_SYNC_ENABLED,c.a.GROUP_LAST_SYNC_STATE,c.a.GROUP_LAST_SYNC_TIMESTAMP,c.a.GROUP_STRUCTURE_SYNC_ENABLED,c.a.GROUP_LAST_STRUCTURE_SYNC_STATE,c.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onMoveGroup(t){const e=Object(r.o)();e.width="550px",e.data={group:t,theme:"group-theme"},this.dialog.open(u.a,e).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Mb(p.b),d.Mb(a.h),d.Mb(l.pb),d.Mb(f.a),d.Mb(h.h),d.Mb(h.i))},t.\u0275cmp=d.Gb({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){var i;1&t&&(d.Qc(C,!0),d.Qc(T,!0),d.Dc(k,!0)),2&t&&(d.sc(i=d.ac())&&(e.tree=i.first),d.sc(i=d.ac())&&(e.list=i.first),d.sc(i=d.ac())&&(e.toggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.Eb("router-component",!0)},decls:17,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled",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","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","hideColumns","filter","page","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","hideColumns","filter","page","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"perun-web-apps-refresh-button",1),d.Zb("refresh",(function(){return e.refreshTable()})),d.Rb(),d.Hc(5,I,3,3,"button",2),d.Hc(6,D,3,5,"span",3),d.Sb(7,"perun-web-apps-debounce-filter",4),d.Zb("filter",(function(t){return e.applyFilter(t)})),d.Rb(),d.Sb(8,"mat-slide-toggle",5,6),d.Zb("change",(function(){return e.selected.clear()}))("ngModelChange",(function(t){return e.showGroupList=t})),d.Jc(10),d.ec(11,"translate"),d.Rb(),d.Sb(12,"label"),d.Jc(13),d.ec(14,"translate"),d.Rb(),d.Hc(15,M,1,0,"mat-spinner",7),d.Hc(16,N,3,2,"div",8),d.Rb()),2&t){const t=d.tc(9);d.Ab(2),d.Kc(d.fc(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.Ab(3),d.kc("ngIf",!e.loading&&e.createAuth),d.Ab(1),d.kc("ngIf",!e.loading),d.Ab(1),d.kc("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.Ab(1),d.kc("ngModel",e.showGroupList),d.Ab(2),d.Kc(d.fc(11,12,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.Ab(2),d.Bb("for",t.inputId),d.Ab(1),d.Kc(d.fc(14,14,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.Ab(2),d.kc("ngIf",e.loading),d.Ab(1),d.kc("ngIf",!e.loading)}},directives:[g.a,b.t,m.a,A.a,y.r,y.u,w.b,v.a,_.c,S.a,E.a],pipes:[R.d],styles:[""]}),t})()},HgnN:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},IBaA:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),s=i("EM62");let o=(()=>{class t{transform(t,...e){return Object(n.A)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"memberOrganization",type:t,pure:!0}),t})()},IDQ9:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),s=i("cqs0"),o=i("Ssnw"),r=i("X2Q7"),a=i("iyZ4"),c=(i("HHEo"),i("EM62")),l=i("s2Ay"),u=i("A8Ay"),h=i("2kYt"),d=i("PBFl"),p=i("FcRk"),f=i("csyo"),g=i("LKLE");const b=["list"];function m(t,e){1&t&&(c.Sb(0,"app-alert",10),c.Jc(1),c.ec(2,"translate"),c.Rb()),2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function A(t,e){1&t&&c.Nb(0,"mat-spinner",11)}function y(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-attributes-list",12,13),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb()}if(2&t){const t=c.dc();c.kc("attributes",t.attributes)("filterValue",t.filterValue)("inDialog",!0)("pageSize",t.pageSize)("selection",t.selected)}}let w=(()=>{class t{constructor(t,e,i,n,o,r){this.dialogRef=t,this.data=e,this.attributesManager=i,this.notificator=n,this.tableConfigService=o,this.translate=r,this.selected=new s.c(!0,[]),this.showError=!1,this.filterValue="",this.tableId=a.r,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(t=>this.saveSuccessMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId);const t=new Array;let e,i,n,s,o,r,a,c;switch(this.data.notEmptyAttributes.forEach(e=>{t.push(e.id)}),this.data.entity){case"member":e=this.data.entityId;break;case"user":i=this.data.entityId;break;case"vo":n=this.data.entityId;break;case"group":s=this.data.entityId;break;case"resource":o=this.data.entityId;break;case"facility":r=this.data.entityId;break;case"host":a=this.data.entityId;break;case"ues":c=this.data.entityId}switch(this.data.secondEntity){case"member":e=this.data.secondEntityId;break;case"user":i=this.data.secondEntityId;break;case"vo":n=this.data.secondEntityId;break;case"group":s=this.data.secondEntityId;break;case"resource":o=this.data.secondEntityId;break;case"facility":r=this.data.secondEntityId;break;case"host":a=this.data.secondEntityId;break;case"ues":c=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(e,i,n,s,o,r,a,c).subscribe(e=>{this.attributes=e,this.attributes=this.attributes.filter(e=>!t.includes(e.id)&&this.twoEntityValid(e)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let t=!1;for(const e of this.selected.selected)"java.util.ArrayList"===e.type&&0===e.value.length&&(t=!0),void 0===e.value&&(t=!0);if(t)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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()})}}applyFilter(t){this.filterValue=t}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}twoEntityValid(t){return!this.data.secondEntity||t.entity===`${this.data.entity}_${this.data.secondEntity}`}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(r.c),c.Mb(o.l),c.Mb(a.pb),c.Mb(l.e))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-create-attribute-dialog"]],viewQuery:function(t,e){var i;1&t&&c.Qc(b,!0),2&t&&c.sc(i=c.ac())&&(e.list=i.first)},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[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,"attributes","filterValue","inDialog","pageSize","selection","page",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","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","inDialog","pageSize","selection","page"],["list",""]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"div",0),c.Sb(2,"h1",1),c.Jc(3),c.ec(4,"translate"),c.Rb(),c.Sb(5,"perun-web-apps-immediate-filter",2),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Hc(6,m,3,3,"app-alert",3),c.Rb(),c.Sb(7,"div",4),c.Hc(8,A,1,0,"mat-spinner",5),c.Hc(9,y,2,5,"perun-web-apps-attributes-list",6),c.Rb(),c.Sb(10,"div",7),c.Sb(11,"button",8),c.Zb("click",(function(){return e.onCancel()})),c.Jc(12),c.ec(13,"translate"),c.Rb(),c.Sb(14,"button",9),c.Zb("click",(function(){return e.onSave()})),c.Jc(15),c.ec(16,"translate"),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Cb(e.data.style),c.Ab(3),c.Kc(c.fc(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),c.Ab(2),c.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),c.Ab(1),c.kc("ngIf",e.showError),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",void 0!==e.attributes&&!e.loading),c.Ab(3),c.Lc(" ",c.fc(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),c.Ab(2),c.kc("disabled",0===e.selected.selected.length),c.Ab(1),c.Lc(" ",c.fc(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},directives:[n.j,u.a,h.t,n.g,n.c,d.b,p.a,f.c,g.a],pipes:[l.d],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})()},IJgj:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,"a",(function(){return n}))},ILoV:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("FlRo"),o=i("X2Q7"),r=i("Ssnw"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourceManager=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.o(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const t=[];for(const e of this.data.groups)t.push(e.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(t,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 t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(r.l),a.Mb(c.e),a.Mb(o.m))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l],pipes:[c.d],styles:[""]}),t})()},IdLP:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("5uGe"),s=i("25CY"),o=i("rWo0"),r=i("qEfY"),a=i("5E2i"),c=i("HgnN");let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.a)return t;if(t[s.a])return t[s.a]()}return t||e||i?new n.a(t,e,i):new n.a(o.a)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.a?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},IgBI:function(t,e,i){"use strict";i.d(e,"a",(function(){return O}));var n=i("3EQ+"),s=i("Ssnw"),o=i("ipn+"),r=i("h1El"),a=i("DnAX"),c=i("X2Q7"),l=i("8clQ"),u=i("EM62"),h=i("sEIs"),d=i("OZ4H"),p=i("s2Ay"),f=i("2kYt"),g=i("csyo"),b=i("bFHC"),m=i("Y2X+"),A=i("zmEM"),y=i("0XDM"),w=i("PBFl"),v=i("O82x"),_=i("FcRk");function S(t,e){1&t&&u.Nb(0,"mat-spinner",3)}function E(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",21),u.Zb("click",(function(){return u.xc(t),u.dc(2).settings()})),u.Sb(1,"i",18),u.Jc(2,"edit"),u.Rb(),u.Jc(3),u.ec(4,"translate"),u.Rb()}2&t&&(u.Ab(3),u.Lc(" ",u.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function R(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",22),u.Zb("click",(function(){return u.xc(t),u.dc(2).add()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function C(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",23),u.Zb("click",(function(){return u.xc(t),u.dc(2).save()})),u.Sb(1,"i",18),u.Jc(2,"save"),u.Rb(),u.Jc(3),u.ec(4,"translate"),u.Rb()}if(2&t){const t=u.dc(2);u.kc("disabled",!t.itemsChanged),u.Ab(3),u.Lc(" ",u.fc(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function T(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",24),u.Zb("click",(function(){return u.xc(t),u.dc(2).copy()})),u.Sb(1,"i",18),u.Jc(2,"file_copy"),u.Rb(),u.Jc(3),u.ec(4,"translate"),u.Rb()}2&t&&(u.Ab(3),u.Lc(" ",u.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function k(t,e){1&t&&(u.Sb(0,"app-alert",25),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.kc("alert_type","info"),u.Ab(1),u.Lc(" ",u.fc(2,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function I(t,e){if(1&t){const t=u.Tb();u.Sb(0,"div"),u.Sb(1,"div",4),u.Sb(2,"div",5),u.Sb(3,"div",6),u.Jc(4),u.ec(5,"translate"),u.Rb(),u.Sb(6,"div"),u.Sb(7,"span",6),u.Jc(8),u.ec(9,"translate"),u.Rb(),u.Jc(10,": "),u.Sb(11,"mat-icon",7),u.Jc(12,"arrow_right_alt"),u.Rb(),u.Jc(13),u.ec(14,"translate"),u.ec(15,"translate"),u.Sb(16,"mat-icon",8),u.Jc(17,"restore"),u.Rb(),u.Jc(18),u.ec(19,"translate"),u.ec(20,"translate"),u.Rb(),u.Rb(),u.Sb(21,"div",9),u.Hc(22,E,5,3,"button",10),u.Rb(),u.Rb(),u.Nb(23,"mat-divider",11),u.Sb(24,"div",12),u.Sb(25,"perun-web-apps-refresh-button",13),u.Zb("refresh",(function(){return u.xc(t),u.dc().updateFormItems()})),u.Rb(),u.Hc(26,R,3,3,"button",14),u.Hc(27,C,5,4,"button",15),u.Hc(28,T,5,3,"button",16),u.Sb(29,"button",17),u.Zb("click",(function(){return u.xc(t),u.dc().preview()})),u.Sb(30,"i",18),u.Jc(31,"search"),u.Rb(),u.Jc(32),u.ec(33,"translate"),u.Rb(),u.Rb(),u.Hc(34,k,3,4,"app-alert",19),u.Sb(35,"app-application-form-list",20),u.Zb("applicationFormItemsChange",(function(){return u.xc(t),u.dc().changeItems()})),u.Rb(),u.Rb()}if(2&t){const t=u.dc();u.Ab(4),u.Mc("",u.fc(5,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),u.Ab(4),u.Kc(u.fc(9,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),u.Ab(5),u.Lc(" ",t.applicationForm.automaticApproval?u.fc(14,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.fc(15,22,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),u.Ab(5),u.Lc(" ",t.applicationForm.automaticApprovalExtension?u.fc(19,24,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.fc(20,26,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),u.Ab(4),u.kc("ngIf",t.editAuth),u.Ab(4),u.kc("ngIf",t.editAuth),u.Ab(1),u.kc("ngIf",t.editAuth),u.Ab(1),u.kc("ngIf",t.editAuth),u.Ab(4),u.Lc(" ",u.fc(33,28,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),u.Ab(2),u.kc("ngIf",t.editAuth),u.Ab(1),u.kc("loading",t.loading)("applicationForm",t.applicationForm)("applicationFormItems",t.applicationFormItems)("theme","vo-theme")("displayedColumns",t.displayedColumns)}}let O=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.registrarManager=t,this.route=e,this.dialog=i,this.notificator=n,this.translate=s,this.router=o,this.authResolver=r,this.voService=a,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.idCounter=-1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{const e=t.voId;this.voId=e,this.registrarManager.getVoApplicationForm(e).subscribe(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForVo(e).subscribe(t=>{this.applicationFormItems=t,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","preview","managegroups","edit","delete"]:["shortname","type","preview","managegroups"]}add(){let t=Object(l.o)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.a,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=Object(l.o)(),t.width="600px",t.height="600px",t.data={voId:this.voId,applicationFormItem:e[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(a.a,t),this.itemsChanged=!0)})}copy(){const t=Object(l.o)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(o.a,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=Object(l.o)();t.width="400px",t.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.a,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}preview(){this.router.navigate(["/organizations",this.voId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.registrarManager.getFormItemsForVo(this.voId).subscribe(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;this.registrarManager.updateFormItemsForVo({vo:this.voId,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(t=>t.forDelete=!0),this.itemsChanged=!0}}return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(u.Mb(c.l),u.Mb(h.a),u.Mb(d.b),u.Mb(s.l),u.Mb(p.e),u.Mb(h.f),u.Mb(s.h),u.Mb(c.q))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&u.Eb("router-component",!0)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],[3,"alert_type",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[3,"alert_type"]],template:function(t,e){1&t&&(u.Sb(0,"h1",0),u.Jc(1),u.ec(2,"translate"),u.Rb(),u.Hc(3,S,1,0,"mat-spinner",1),u.Hc(4,I,36,30,"div",2)),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),u.Ab(2),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading))},directives:[f.t,g.c,b.a,m.a,A.a,y.a,w.b,v.a,_.a],pipes:[p.d],styles:[""]}),t})()},Iydx:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return s}));var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});class s{constructor(t){this.id=t.id,this.name=t.name,this.parentGroupId=t.parentGroupId,this.voId=t.voId,this.shortName=t.shortName,this.description=t.description,this.attributes=t.attributes,this.beanName=t.beanName}addChild(t){null==this.children?this.children=[t]:this.children.push(t)}}},"J+dc":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("5uGe"),s=i("PNff"),o=i("6Oco");function r(t){return e=>0===t?Object(o.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},JKyc:function(t,e,i){"use strict";i.d(e,"a",(function(){return z}));var n=i("Ssnw"),s=i("h1El"),o=i("DnAX"),r=i("ipn+"),a=i("3EQ+"),c=i("X2Q7"),l=i("8clQ"),u=i("EM62"),h=i("sEIs"),d=i("OZ4H"),p=i("s2Ay"),f=i("2kYt"),g=i("csyo"),b=i("bFHC"),m=i("Y2X+"),A=i("zmEM"),y=i("0XDM"),w=i("PBFl"),v=i("O82x"),_=i("k8N0"),S=i("nIj0"),E=i("FcRk");const R=["autoRegToggle"];function C(t,e){1&t&&u.Nb(0,"mat-spinner",3)}function T(t,e){if(1&t){const t=u.Tb();u.Sb(0,"div"),u.Sb(1,"mat-slide-toggle",22,23),u.Zb("change",(function(){return u.xc(t),u.dc(2).updateAutoRegistration()})),u.Jc(3),u.ec(4,"translate"),u.Rb(),u.Rb()}if(2&t){const t=u.dc(2);u.Ab(1),u.kc("disabled",!t.changeAutoRegistration)("ngModel",t.autoRegistrationEnabled),u.Ab(2),u.Lc(" ",u.fc(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function k(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",24),u.Zb("click",(function(){return u.xc(t),u.dc(2).settings()})),u.Sb(1,"i",19),u.Jc(2,"edit"),u.Rb(),u.Jc(3),u.ec(4,"translate"),u.Rb()}2&t&&(u.Ab(3),u.Lc(" ",u.fc(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function I(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",25),u.Zb("click",(function(){return u.xc(t),u.dc(2).add()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function O(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",26),u.Zb("click",(function(){return u.xc(t),u.dc(2).save()})),u.Sb(1,"i",19),u.Jc(2,"save"),u.Rb(),u.Jc(3),u.ec(4,"translate"),u.Rb()}if(2&t){const t=u.dc(2);u.kc("disabled",!t.itemsChanged),u.Ab(3),u.Lc(" ",u.fc(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function D(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",27),u.Zb("click",(function(){return u.xc(t),u.dc(2).copy()})),u.Sb(1,"i",19),u.Jc(2,"file_copy"),u.Rb(),u.Jc(3),u.ec(4,"translate"),u.Rb()}2&t&&(u.Ab(3),u.Lc(" ",u.fc(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function M(t,e){1&t&&(u.Sb(0,"app-alert",28),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const P=function(){return["drag","shortname","type","preview","managegroups","edit","delete"]},x=function(){return["shortname","type","preview","managegroups"]};function N(t,e){if(1&t){const t=u.Tb();u.Sb(0,"div"),u.Sb(1,"div",4),u.Sb(2,"div",5),u.Sb(3,"div",6),u.Jc(4),u.ec(5,"translate"),u.Rb(),u.Sb(6,"div"),u.Sb(7,"span",6),u.Jc(8),u.ec(9,"translate"),u.Rb(),u.Jc(10,": "),u.Sb(11,"mat-icon",7),u.Jc(12,"arrow_right_alt"),u.Rb(),u.Jc(13),u.ec(14,"translate"),u.ec(15,"translate"),u.Sb(16,"mat-icon",8),u.Jc(17,"restore"),u.Rb(),u.Jc(18),u.ec(19,"translate"),u.ec(20,"translate"),u.Sb(21,"mat-icon",9),u.Jc(22,"nat"),u.Rb(),u.Jc(23),u.ec(24,"translate"),u.ec(25,"translate"),u.Rb(),u.Hc(26,T,5,5,"div",2),u.Rb(),u.Sb(27,"div",10),u.Hc(28,k,5,3,"button",11),u.Rb(),u.Rb(),u.Nb(29,"mat-divider",12),u.Sb(30,"div",13),u.Sb(31,"perun-web-apps-refresh-button",14),u.Zb("refresh",(function(){return u.xc(t),u.dc().updateFormItems()})),u.Rb(),u.Hc(32,I,3,3,"button",15),u.Hc(33,O,5,4,"button",16),u.Hc(34,D,5,3,"button",17),u.Sb(35,"button",18),u.Zb("click",(function(){return u.xc(t),u.dc().preview()})),u.Sb(36,"i",19),u.Jc(37,"search"),u.Rb(),u.Jc(38),u.ec(39,"translate"),u.Rb(),u.Rb(),u.Hc(40,M,3,3,"app-alert",20),u.Sb(41,"app-application-form-list",21),u.Zb("applicationFormItemsChange",(function(){return u.xc(t),u.dc().changeItems()})),u.Rb(),u.Rb()}if(2&t){const t=u.dc();u.Ab(4),u.Mc("",u.fc(5,18,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),u.Ab(4),u.Kc(u.fc(9,20,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),u.Ab(5),u.Lc(" ",t.applicationForm.automaticApproval?u.fc(14,22,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.fc(15,24,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),u.Ab(5),u.Lc(" ",t.applicationForm.automaticApprovalExtension?u.fc(19,26,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.fc(20,28,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),u.Ab(5),u.Lc(" ",t.applicationForm.automaticApprovalEmbedded?u.fc(24,30,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.fc(25,32,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),u.Ab(3),u.kc("ngIf",t.voHasEmbeddedGroupApplication),u.Ab(2),u.kc("ngIf",t.editAuth),u.Ab(4),u.kc("ngIf",t.editAuth),u.Ab(1),u.kc("ngIf",t.editAuth),u.Ab(1),u.kc("ngIf",t.editAuth),u.Ab(4),u.Lc(" ",u.fc(39,34,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),u.Ab(2),u.kc("ngIf",t.editAuth),u.Ab(1),u.kc("loading",t.loading)("applicationForm",t.applicationForm)("applicationFormItems",t.applicationFormItems)("theme","group-theme")("displayedColumns",t.editAuth?u.oc(36,P):u.oc(37,x))}}function L(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",18),u.Zb("click",(function(){return u.xc(t),u.dc(2).createEmptyApplicationForm()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function F(t,e){if(1&t&&(u.Sb(0,"div"),u.Sb(1,"app-alert",29),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Hc(4,L,3,3,"button",30),u.Rb()),2&t){const t=u.dc();u.Ab(2),u.Kc(u.fc(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),u.Ab(2),u.kc("ngIf",t.createEmptyForm)}}let z=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l){this.registrarManager=t,this.route=e,this.dialog=i,this.notificator=n,this.translate=s,this.apiRequest=o,this.router=r,this.guiAuthResolver=a,this.groupsManager=c,this.attributesManager=l,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupsManager.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.groupId).subscribe(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe(t=>{this.applicationFormItems=t,this.attributesManager.getGroupAttributeByName(this.groupId,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(t=>{this.voHasEmbeddedGroupApplication=null!==t.value,this.autoRegistrationEnabled=!!t.value,this.setAuth(),this.loading=!1})},()=>this.loading=!1)},t=>{"FormNotExistsException"===t.error.name?(this.noApplicationForm=!0,this.setAuth(),this.loading=!1):this.notificator.showRPCError(t.error)})},()=>this.loading=!1)})}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 t=Object(l.o)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(s.a,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=Object(l.o)(),t.width="600px",t.height="600px",t.data={voId:this.voId,groupId:this.groupId,applicationFormItem:e[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(o.a,t),this.itemsChanged=!0)})}copy(){const t=Object(l.o)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(r.a,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=Object(l.o)();t.width="400px",t.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme"},this.dialog.open(a.a,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}preview(){this.router.navigate(["/organizations",this.voId,"groups",this.groupId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.groupId).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;this.registrarManager.updateFormItemsForGroup({group:this.groupId,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.groupsManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.groupsManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(u.Mb(c.l),u.Mb(h.a),u.Mb(d.b),u.Mb(n.l),u.Mb(p.e),u.Mb(n.b),u.Mb(h.f),u.Mb(n.h),u.Mb(c.h),u.Mb(c.c))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){var i;1&t&&u.Qc(R,!0),2&t&&u.sc(i=u.ac())&&(e.autoRegToggle=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&u.Eb("router-component",!0)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-75"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-top"],["matTooltip","Extension",1,"align-text-top"],["matTooltip","Embedded",1,"align-text-top"],[1,"w-25"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"]],template:function(t,e){1&t&&(u.Sb(0,"h1",0),u.Jc(1),u.ec(2,"translate"),u.Rb(),u.Hc(3,C,1,0,"mat-spinner",1),u.Hc(4,N,42,38,"div",2),u.Hc(5,F,5,4,"div",2)),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),u.Ab(2),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading&&!e.noApplicationForm),u.Ab(1),u.kc("ngIf",!e.loading&&e.noApplicationForm))},directives:[f.t,g.c,b.a,m.a,A.a,y.a,w.b,v.a,_.a,S.r,S.u,E.a],pipes:[p.d],styles:[""]}),t})()},JVFj:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("EM62"),a=i("s2Ay"),c=i("2kYt"),l=i("PBFl"),u=i("csyo"),h=i("29Wa"),d=i("R7+U"),p=i("mFH5"),f=i("Cd2c"),g=i("nIj0");function b(t,e){1&t&&r.Nb(0,"mat-spinner",6)}function m(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div"),r.Jc(1),r.ec(2,"translate"),r.Sb(3,"mat-form-field",8),r.Sb(4,"textarea",17),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc(2).reason=e})),r.Rb(),r.Rb(),r.Rb()}if(2&t){const t=r.dc(2);r.Ab(1),r.Lc(" ",r.fc(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),r.Ab(3),r.kc("ngModel",t.reason)}}function A(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div",7),r.Jc(1),r.ec(2,"translate"),r.Sb(3,"mat-form-field",8),r.Sb(4,"mat-select",9),r.Zb("valueChange",(function(e){return r.xc(t),r.dc().mailType=e})),r.Sb(5,"mat-option",10),r.Jc(6),r.ec(7,"translate"),r.Rb(),r.Sb(8,"mat-option",11),r.Jc(9),r.ec(10,"translate"),r.Rb(),r.Sb(11,"mat-option",12),r.Jc(12),r.ec(13,"translate"),r.Rb(),r.Sb(14,"mat-option",13),r.Jc(15),r.ec(16,"translate"),r.Rb(),r.Sb(17,"mat-option",14),r.Jc(18),r.ec(19,"translate"),r.Rb(),r.Sb(20,"mat-option",15),r.Jc(21),r.ec(22,"translate"),r.Rb(),r.Rb(),r.Rb(),r.Hc(23,m,5,4,"div",16),r.Rb()}if(2&t){const t=r.dc();r.Ab(1),r.Lc(" ",r.fc(2,9,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),r.Ab(3),r.kc("value",t.mailType),r.Ab(2),r.Kc(r.fc(7,11,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),r.Ab(3),r.Kc(r.fc(10,13,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),r.Ab(3),r.Kc(r.fc(13,15,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),r.Ab(3),r.Kc(r.fc(16,17,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),r.Ab(3),r.Kc(r.fc(19,19,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),r.Ab(3),r.Kc(r.fc(22,21,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),r.Ab(2),r.kc("ngIf","APP_REJECTED_USER"===t.mailType)}}let y=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.registrarManager=s,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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.i),r.Mb(n.a),r.Mb(a.e),r.Mb(s.l),r.Mb(o.l))},t.\u0275cmp=r.Gb({type:t,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"],["mat-flat-button","","color","accent",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","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(r.Sb(0,"div"),r.Sb(1,"h1",0),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Hc(4,b,1,0,"mat-spinner",1),r.Hc(5,A,24,23,"div",2),r.Sb(6,"div",3),r.Sb(7,"button",4),r.Zb("click",(function(){return e.onCancel()})),r.Jc(8),r.ec(9,"translate"),r.Rb(),r.Sb(10,"button",5),r.Zb("click",(function(){return e.onSubmit()})),r.Jc(11),r.ec(12,"translate"),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Db("",e.theme,"}"),r.Ab(2),r.Kc(r.fc(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),r.Ab(2),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading),r.Ab(3),r.Lc(" ",r.fc(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),r.Ab(2),r.kc("disabled",e.loading),r.Ab(1),r.Lc(" ",r.fc(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[n.j,c.t,n.c,l.b,u.c,n.g,h.c,d.a,p.n,f.b,g.c,g.r,g.u],pipes:[a.d],styles:[""]}),t})()},Jb3d:function(t,e,i){"use strict";i.d(e,"a",(function(){return O})),i.d(e,"b",(function(){return x})),i.d(e,"c",(function(){return q})),i.d(e,"d",(function(){return K})),i.d(e,"e",(function(){return B}));var n=i("sg/T"),s=i("5XID"),o=i("fAiE"),r=i("EM62"),a=i("ZTXN"),c=i("bwdy"),l=i("g6G6"),u=i("ROBh"),h=i("vT4p"),d=i("jIqt"),p=i("TLy2"),f=i("J+dc"),g=i("xVbo"),b=i("kuMc"),m=i("BwBJ"),A=i("f7+R"),y=i("Sv/w"),w=i("2kYt"),v=i("mFH5"),_=i("HYj3"),S=i("cZZj"),E=i("qvOF"),R=i("E5oP");const C=["mat-menu-item",""],T=["*"];function k(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div",0),r.Zb("keydown",(function(e){return r.xc(t),r.dc()._handleKeydown(e)}))("click",(function(){return r.xc(t),r.dc().closed.emit("click")}))("@transformMenu.start",(function(e){return r.xc(t),r.dc()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return r.xc(t),r.dc()._onAnimationDone(e)})),r.Sb(1,"div",1),r.ic(2),r.Rb(),r.Rb()}if(2&t){const t=r.dc();r.kc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),r.Bb("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const I={transformMenu:Object(A.n)("transformMenu",[Object(A.k)("void",Object(A.l)({opacity:0,transform:"scale(0.8)"})),Object(A.m)("void => enter",Object(A.g)([Object(A.i)(".mat-menu-content, .mat-mdc-menu-content",Object(A.e)("100ms linear",Object(A.l)({opacity:1}))),Object(A.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(A.l)({transform:"scale(1)"}))])),Object(A.m)("* => void",Object(A.e)("100ms 25ms linear",Object(A.l)({opacity:0})))]),fadeInItems:Object(A.n)("fadeInItems",[Object(A.k)("showing",Object(A.l)({opacity:1})),Object(A.m)("void => *",[Object(A.l)({opacity:0}),Object(A.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let O=(()=>{class t{constructor(t,e,i,n,s,o,r){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=o,this._changeDetectorRef=r,this._attached=new a.a}attach(t={}){this._portal||(this._portal=new y.j(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new y.f(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.M),r.Mb(r.j),r.Mb(r.g),r.Mb(r.s),r.Mb(r.Q),r.Mb(w.e),r.Mb(r.h))},t.\u0275dir=r.Hb({type:t,selectors:[["ng-template","matMenuContent",""]]}),t})();const D=new r.r("MAT_MENU_PANEL");class M{}const P=Object(v.z)(Object(v.A)(M));let x=(()=>{class t extends P{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new a.a,this._focused=new a.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.monitor(this._elementRef,!1),n&&n.addItem&&n.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let i="";if(t.childNodes){const n=t.childNodes.length;for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new r.E,this._tabSubscription=c.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new r.o,this.close=this.closed,this.panelId="mat-menu-panel-"+L++}get xPosition(){return this._xPosition}set xPosition(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Object(s.c)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(s.c)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.g(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(p.a)(t=>Object(l.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(p.a)(t=>Object(l.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case o.h:Object(o.t)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case o.j:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.n:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case o.i:case o.f:Object(o.t)(t)||(e===o.i?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:e!==o.q&&e!==o.e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(Object(f.a)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Object(d.a)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(r.A),r.Mb(N))},t.\u0275dir=r.Hb({type:t,contentQueries:function(t,e,i){var n;1&t&&(r.Fb(i,O,!0),r.Fb(i,x,!0),r.Fb(i,x,!1)),2&t&&(r.sc(n=r.ac())&&(e.lazyContent=n.first),r.sc(n=r.ac())&&(e._allItems=n),r.sc(n=r.ac())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&r.Qc(r.M,!0),2&t&&r.sc(i=r.ac())&&(e.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),z=(()=>{class t extends F{}return t.\u0275fac=function(e){return H(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.xb]}),t})();const H=r.Ub(z);let B=(()=>{class t extends z{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(r.A),r.Mb(N))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[r.zb([{provide:D,useExisting:z},{provide:z,useExisting:t}]),r.xb],ngContentSelectors:T,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(r.jc(),r.Hc(0,k,3,6,"ng-template"))},directives:[w.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[I.transformMenu,I.fadeInItems]},changeDetection:0}),t})();const j=new r.r("mat-menu-scroll-strategy"),G={provide:j,deps:[_.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},U=Object(S.f)({passive:!0});let K=(()=>{class t{constructor(t,e,i,n,s,o,a,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=s,this._menuItemInstance=o,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.a.EMPTY,this._hoverSubscription=c.a.EMPTY,this._menuCloseSubscription=c.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new r.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new r.o,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,U),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=n}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,U),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._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof z&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof z?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object(g.a)(t=>"void"===t.toState),Object(f.a)(1),Object(b.a)(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new _.d({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],l=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",l="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:l},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:l},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-l},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-l}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:Object(u.a)(),n=this._parentMenu?this._parentMenu._hovered().pipe(Object(g.a)(t=>t!==this._menuItemInstance),Object(g.a)(()=>this._menuOpen)):Object(u.a)();return Object(l.a)(t,i,n,e)}_handleMousedown(t){Object(n.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(e===o.n&&"ltr"===this.dir||e===o.j&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Object(g.a)(t=>t===this._menuItemInstance&&!t.disabled),Object(m.a)(0,h.a)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe(Object(f.a)(1),Object(m.a)(0,h.a),Object(b.a)(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new y.j(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(_.c),r.Mb(r.l),r.Mb(r.Q),r.Mb(j),r.Mb(z,8),r.Mb(x,10),r.Mb(R.c,8),r.Mb(n.h))},t.\u0275dir=r.Hb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&r.Zb("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&r.Bb("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),V=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[G],imports:[v.i]}),t})(),q=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[G],imports:[[w.c,v.i,v.t,_.f,V],E.c,v.i,V]}),t})()},JjRu:function(t,e,i){"use strict";i.d(e,"b",(function(){return y})),i.d(e,"a",(function(){return w}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("nIj0"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("bFHC"),d=i("nKqi"),p=i("FcRk"),f=i("29Wa"),g=i("Cd2c");function b(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"h1",1),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",2),a.Sb(5,"div",3),a.Jc(6),a.ec(7,"translate"),a.Sb(8,"span",4),a.Jc(9),a.ec(10,"translate"),a.Rb(),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Sb(13,"div",5),a.Sb(14,"button",6),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(15),a.ec(16,"translate"),a.Rb(),a.Sb(17,"button",7),a.Zb("click",(function(){return a.xc(t),a.dc().onDelete()})),a.Jc(18),a.ec(19,"translate"),a.Rb(),a.Sb(20,"button",8),a.Zb("click",(function(){return a.xc(t),a.dc().force=!0})),a.Sb(21,"mat-icon"),a.Jc(22,"warning"),a.Rb(),a.Jc(23),a.ec(24,"translate"),a.ec(25,"translate"),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Mc("",a.fc(3,11,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType,""),a.Ab(4),a.Mc(" ",a.fc(7,13,"DIALOGS.DELETE_ENTITY.BASIC")," ",t.entityType," "),a.Ab(3),a.Kc(a.fc(10,15,"DIALOGS.DELETE_ENTITY.OR")),a.Ab(2),a.Mc(" ",t.entityType," ",a.fc(12,17,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? "),a.Ab(4),a.Lc(" ",a.fc(16,19,"DIALOGS.DELETE_ENTITY.CANCEL")," "),a.Ab(3),a.Lc(" ",a.fc(19,21,"DIALOGS.DELETE_ENTITY.DELETE")," "),a.Ab(5),a.Mc(" ",a.fc(24,23,"DIALOGS.DELETE_ENTITY.DELETE")," ",a.fc(25,25,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}function m(t,e){if(1&t&&(a.Sb(0,"mat-list-item"),a.Sb(1,"span"),a.Sb(2,"mat-icon",14),a.Jc(3,"fiber_manual_record"),a.Rb(),a.Jc(4),a.Rb(),a.Rb()),2&t){const t=e.$implicit;a.Ab(4),a.Lc(" ",t," ")}}function A(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"h1",1),a.Jc(2),a.ec(3,"translate"),a.ec(4,"translate"),a.Rb(),a.Sb(5,"div",2),a.Sb(6,"div",3),a.Jc(7),a.ec(8,"translate"),a.Sb(9,"mat-list"),a.Hc(10,m,5,1,"mat-list-item",9),a.Rb(),a.Sb(11,"app-alert",10),a.Jc(12),a.ec(13,"translate"),a.Rb(),a.Rb(),a.Sb(14,"mat-form-field"),a.Nb(15,"input",11),a.ec(16,"translate"),a.Rb(),a.Rb(),a.Sb(17,"div",5),a.Sb(18,"button",12),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(19),a.ec(20,"translate"),a.Rb(),a.Sb(21,"button",13),a.Zb("click",(function(){return a.xc(t),a.dc().onDelete()})),a.Sb(22,"mat-icon"),a.Jc(23,"warning"),a.Rb(),a.Jc(24),a.ec(25,"translate"),a.ec(26,"translate"),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Nc("",a.fc(3,13,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType," ",a.fc(4,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),""),a.Ab(5),a.Lc(" ",a.fc(8,17,"DIALOGS.DELETE_ENTITY.WARN"),": "),a.Ab(3),a.kc("ngForOf",t.relations),a.Ab(2),a.Mc(" ",a.fc(13,19,"DIALOGS.DELETE_ENTITY.ASK"),": ",t.entityName," ? "),a.Ab(3),a.lc("placeholder",a.fc(16,21,"DIALOGS.DELETE_ENTITY.CONTROL")),a.kc("formControl",t.deleteControl),a.Ab(4),a.Lc(" ",a.fc(20,23,"DIALOGS.DELETE_ENTITY.CANCEL")," "),a.Ab(2),a.kc("disabled",t.deleteControl.invalid),a.Ab(3),a.Mc(" ",a.fc(25,25,"DIALOGS.DELETE_ENTITY.DELETE")," ",a.fc(26,27,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}var y=function(t){return t[t.VO=0]="VO",t[t.GROUP=1]="GROUP",t[t.FACILITY=2]="FACILITY",t[t.RESOURCE=3]="RESOURCE",t}({});let w=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=n,this.voService=s,this.relations=[],this.loading=!1,this.force=!1,this.deleteReg=/^DELETE$/,this.deleteControl=new r.g("",[r.F.required,r.F.pattern(this.deleteReg)])}ngOnInit(){switch(this.entityName=this.data.entity.name,this.data.entityType){case y.VO:this.entityType=this.translateService.instant("DIALOGS.DELETE_ENTITY.VO"),this.successMessage=this.entityType.charAt(0).toUpperCase()+this.entityType.slice(1)+" "+this.translateService.instant("DIALOGS.DELETE_ENTITY.SUCCESS"),this.relations.push(this.translateService.instant("DIALOGS.DELETE_ENTITY.GROUP_RELATION")),this.relations.push(this.translateService.instant("DIALOGS.DELETE_ENTITY.MEMBER_RELATION")),this.relations.push(this.translateService.instant("DIALOGS.DELETE_ENTITY.RESOURCE_RELATION"))}}onCancel(){this.dialogRef.close(!1)}onDelete(){switch(this.data.entityType){case y.VO:this.deleteVo()}}deleteVo(){this.loading=!0,this.voService.deleteVo(this.data.entity.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(o.l),a.Mb(c.e),a.Mb(n.q))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-delete-entity-dialog"]],decls:2,vars:2,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mb-4"],[1,"font-weight-bold"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["matInput","",3,"formControl","placeholder"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(t,e){1&t&&(a.Hc(0,b,26,27,"div",0),a.Hc(1,A,27,29,"div",0)),2&t&&(a.kc("ngIf",!e.force),a.Ab(1),a.kc("ngIf",e.force))},directives:[l.t,s.j,s.g,s.c,u.b,h.a,d.a,l.s,p.a,f.c,g.b,r.c,r.r,r.h,d.d],pipes:[c.d],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}"]}),t})()},K9kF:function(t,e,i){"use strict";i.d(e,"a",(function(){return Y}));var n=i("EM62"),s=i("cePI"),o=i("FlRo"),r=i("cqs0"),a=i("iAde"),c=i("X2Q7"),l=i("8clQ"),u=i("+0js"),h=i("Ssnw"),d=i("2kYt"),p=i("OZ4H"),f=i("9wx0"),g=i("+Tre"),b=i("Y2X+"),m=i("Ds80"),A=i("PBFl"),y=i("bFHC"),w=i("XpU2"),v=i("sEIs"),_=i("TQS+"),S=i("FcRk"),E=i("s2Ay"),R=i("SAuR"),C=i("OcHD");function T(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-checkbox",24),n.Zb("change",(function(e){n.xc(t);const i=n.dc(2);return e?i.masterToggle():null})),n.Rb()}if(2&t){const t=n.dc(2);n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function k(t,e){if(1&t&&(n.Sb(0,"th",22),n.Hc(1,T,1,3,"mat-checkbox",23),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.kc("ngIf",!t.disableHeadCheckbox)}}function I(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",25),n.Sb(1,"span",26),n.ec(2,"translate"),n.Sb(3,"mat-checkbox",27),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.itemSelectionToggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.lc("matTooltip",n.fc(2,6,i.getCheckboxTooltipMessage(t))),n.kc("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),n.Ab(2),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","members"===t.name&&i.disableMembers||i.disableSelect(t))}}function O(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function D(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function M(t,e){1&t&&n.Nb(0,"th",22)}function P(t,e){if(1&t&&(n.Sb(0,"td",29),n.Nb(1,"perun-web-apps-recently-viewed-icon",30),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("recentIds",i.recentIds)("id",t.id)}}function x(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function N(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.Kc(i.voNames.get(t.voId))}}function L(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function F(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.name)}}function z(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function H(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.description)}}function B(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function j(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",33),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc().changeExpiration(e)}))("mouseenter",(function(){return n.xc(t),n.dc(2).disabledRouting=!0}))("mouseleave",(function(){n.xc(t);const e=n.dc(2);return e.disabledRouting=e.disableRouting})),n.Sb(1,"mat-icon"),n.Jc(2,"edit"),n.Rb(),n.Rb()}}function G(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.ec(2,"parseDate"),n.ec(3,"groupExpiration"),n.Hc(4,j,3,0,"button",32),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.Lc(" ",n.fc(2,2,n.fc(3,4,t))," "),n.Ab(3),n.kc("ngIf",i.canManageGroup(t))}}function U(t,e){1&t&&n.Nb(0,"th",22)}function K(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",29),n.Sb(1,"perun-web-apps-group-menu",34),n.Zb("mouseenter",(function(){return n.xc(t),n.dc().disabledRouting=!0}))("mouseleave",(function(){n.xc(t);const e=n.dc();return e.disabledRouting=e.disableRouting}))("moveGroup",(function(){n.xc(t);const i=e.$implicit;return n.dc().onMoveGroup(i)}))("changeNameDescription",(function(){n.xc(t);const i=e.$implicit;return n.dc().onChangeNameDescription(i)}))("syncGroup",(function(){n.xc(t);const i=e.$implicit;return n.dc().onSyncDetail(i)})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("disabled","members"===t.name)("displayButtons",i.displayButtons)("group",t)}}function V(t,e){1&t&&n.Nb(0,"tr",35)}const q=function(t,e){return["/organizations",t,"groups",e]};function J(t,e){if(1&t&&n.Nb(0,"tr",36),2&t){const t=e.$implicit,i=n.dc();n.Eb("cursor-pointer",!i.disableRouting&&!i.groupsToDisable.has(t.id))("disable-outline",i.disabledRouting||i.groupsToDisable.has(t.id)),n.kc("routerLink",i.disabledRouting||i.groupsToDisable.has(t.id)?null:n.qc(6,q,t.voId,t.id))("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.groupsToDisable.has(t.id)?null:n.qc(9,q,t.voId,t.id))}}function W(t,e){1&t&&(n.Sb(0,"app-alert",37),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function Z(t,e){1&t&&(n.Sb(0,"app-alert",37),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Y=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.voService=i,this.tableCheckbox=s,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.o,this.groups=[],this.selection=new r.c(!0,[]),this.hasMembersGroup=!1,this.hideColumns=[],this.groupsToDisable=new Set,this.pageSize=10,this.filter="",this.disableRouting=!1,this.pageSizeOptions=l.a,this.recentIds=[],this.page=new n.o,this.refreshTable=new n.o,this.displayedColumns=["select","id","recent","vo","name","description","expiration","menu"],this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=t=>!("members"===t.name&&this.disableMembers||this.disableSelect(t))}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnInit(){this.shouldHideButtons()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.dataSource=new o.o(this.groups),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const t of this.groups)if("members"===t.name)return!0;return!1}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return this.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":const i=Object(l.q)(t);return Object(l.u)(i);case"recent":return"";default:return t[e]}}getSortDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return this.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":const n=Object(l.q)(t);return n&&"never"!==n.toLowerCase()?Object(d.I)(n,"yyyy.MM.dd","en"):n;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}exportData(t){Object(l.i)(Object(l.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(l.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(l.g)(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(t){return this.disableGroups&&(this.groupsToDisable.has(t.id)||this.isSynchronized(t))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.dataSource.paginator=this.paginator}onMoveGroup(t){this.moveGroup.emit(t)}onSyncDetail(t){const e=Object(l.o)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.i,e)}onChangeNameDescription(t){const e=Object(l.o)();e.data={theme:"group-theme",group:t,dialogType:u.h.GROUP},this.dialog.open(u.g,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}pageChanged(t){this.page.emit(t)}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[e]),!0):"group-relations"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[this.parentGroup,e]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,e]),!0):"member-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[e]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,e]),!0):void 0}itemSelectionToggle(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}isSynchronized(t){return!!t.attributes&&t.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}getCheckboxTooltipMessage(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}updateVoNames(){this.hideColumns.includes("vo")||this.groups.forEach(t=>{this.voIds.has(t.voId)||(this.voIds.add(t.voId),this.voService.getVoById(t.voId).subscribe(e=>{this.voNames.set(t.voId,e.name)}))})}changeExpiration(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),i=Object(l.o)();i.width="400px",i.data={memberId:this.memberId,groupId:t.id,expirationAttr:e,mode:"group"},this.dialog.open(u.d,i).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}canManageGroup(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(p.b),n.Mb(h.h),n.Mb(c.q),n.Mb(h.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(s.a,!0),n.Dc(a.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},hostBindings:function(t,e){1&t&&n.Zb("resize",(function(t){return e.shouldHideButtons(t)}),!1,n.wc)},inputs:{theme:"theme",groups:"groups",selection:"selection",hideColumns:"hideColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisable:"groupsToDisable",pageSize:"pageSize",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds"},outputs:{moveGroup:"moveGroup",page:"page",refreshTable:"refreshTable"},features:[n.yb],decls:34,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","name"],["matColumnDef","description"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-cell","",1,"wrap-content"],["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,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,k,2,1,"th",6),n.Hc(7,I,4,8,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,O,3,3,"th",9),n.Hc(10,D,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,M,1,0,"th",6),n.Hc(13,P,2,2,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,x,3,3,"th",9),n.Hc(16,N,2,1,"td",7),n.Pb(),n.Qb(17,13),n.Hc(18,L,3,3,"th",9),n.Hc(19,F,2,1,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,z,3,3,"th",9),n.Hc(22,H,2,1,"td",15),n.Pb(),n.Qb(23,16),n.Hc(24,B,3,3,"th",9),n.Hc(25,G,5,6,"td",15),n.Pb(),n.Qb(26,17),n.Hc(27,U,1,0,"th",6),n.Hc(28,K,2,3,"td",11),n.Pb(),n.Hc(29,V,1,0,"tr",18),n.Hc(30,J,1,12,"tr",19),n.Rb(),n.Rb(),n.Sb(31,"mat-paginator",20),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(32,W,3,3,"app-alert",21),n.Hc(33,Z,3,3,"app-alert",21)),2&t&&(n.kc("hidden",0===e.groups.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(25),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.groups.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.groups.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[f.a,o.n,s.a,o.c,o.i,o.b,o.k,o.m,a.a,d.t,o.h,g.a,o.a,b.a,s.b,m.a,A.b,y.a,w.a,o.j,o.l,v.g,_.c,S.a],pipes:[E.d,R.a,C.a],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},KF6X:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("FlRo"),s=i("EM62"),o=i("Meci"),r=i("s2Ay");function a(t,e){1&t&&s.Nb(0,"th",9)}function c(t,e){if(1&t&&(s.Sb(0,"td",10),s.Jc(1),s.Rb()),2&t){const t=e.$implicit;s.Ab(1),s.Lc(" ",t,": ")}}function l(t,e){1&t&&s.Nb(0,"th",9)}function u(t,e){if(1&t&&(s.Sb(0,"td",11),s.Jc(1),s.Rb()),2&t){const t=e.$implicit,i=s.dc();s.Ab(1),s.Lc(" ",i.statistics.get(t.toLowerCase())," ")}}function h(t,e){1&t&&s.Nb(0,"tr",12)}let d=(()=>{class t{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new n.o(this.rowNames)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,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(t,e){1&t&&(s.Sb(0,"mat-card",0),s.Sb(1,"mat-card-header"),s.Sb(2,"mat-card-title"),s.Sb(3,"h1",1),s.Jc(4),s.ec(5,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Sb(6,"mat-card-content"),s.Sb(7,"table",2),s.Qb(8,3),s.Hc(9,a,1,0,"th",4),s.Hc(10,c,2,1,"td",5),s.Pb(),s.Qb(11,6),s.Hc(12,l,1,0,"th",4),s.Hc(13,u,2,1,"td",7),s.Pb(),s.Hc(14,h,1,0,"tr",8),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Ab(4),s.Kc(s.fc(5,3,e.title)),s.Ab(3),s.kc("dataSource",e.dataSource),s.Ab(7),s.kc("matRowDefColumns",e.displayedColumns))},directives:[o.a,o.f,o.m,o.d,n.n,n.c,n.i,n.b,n.m,n.h,n.a,n.l],pipes:[r.d],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t})()},KQGD:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),s=i("LAw4"),o=i("s2Ay");let r=(()=>{class t{constructor(){this.facilitySelected=new n.o,this.nameFunction=t=>t.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.facilitySelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.facilities)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",n.fc(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",n.fc(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",n.fc(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[s.a],pipes:[o.d],styles:[""]}),t})()},KRZI:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("FU6l");function s(t){return!Object(n.a)(t)&&t-parseFloat(t)+1>=0}},KSio:function(t,e,i){"use strict";i.d(e,"a",(function(){return $}));var n=i("Ssnw"),s=i("X2Q7"),o=i("EM62"),r=i("sEIs"),a=i("2kYt"),c=i("csyo"),l=i("0XDM"),u=i("KZIX"),h=i("FlRo"),d=i("3Uyd"),p=i("zmEM"),f=i("s2Ay");function g(t,e){if(1&t&&(o.Sb(0,"mat-panel-description"),o.Sb(1,"div"),o.Sb(2,"i",7),o.Jc(3," error "),o.Rb(),o.Jc(4),o.ec(5,"translate"),o.ec(6,"translate"),o.Rb(),o.Rb()),2&t){const t=o.dc().$implicit,e=o.dc();o.Ab(4),o.Oc(" ",e.getErrorCountStates(t)," ",o.fc(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",t.taskList.length," ",o.fc(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function b(t,e){1&t&&(o.Sb(0,"th",20),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")))}function m(t,e){if(1&t&&(o.Sb(0,"td",21),o.Jc(1),o.Rb()),2&t){const t=e.$implicit;o.Ab(1),o.Kc(t.id)}}function A(t,e){1&t&&(o.Sb(0,"th",20),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")))}function y(t,e){if(1&t&&(o.Sb(0,"td",21),o.Jc(1),o.Rb()),2&t){const t=e.$implicit;o.Ab(1),o.Kc(t.service.name)}}function w(t,e){1&t&&(o.Sb(0,"th",20),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")))}function v(t,e){if(1&t&&(o.Sb(0,"td",21),o.Jc(1),o.Rb()),2&t){const t=e.$implicit;o.Ab(1),o.Kc(t.status)}}function _(t,e){1&t&&(o.Sb(0,"th",20),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")))}function S(t,e){if(1&t&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"date"),o.Rb()),2&t){const t=o.dc().$implicit;o.Ab(1),o.Lc(" ",o.gc(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function E(t,e){1&t&&(o.Jc(0),o.ec(1,"translate")),2&t&&o.Lc(" ",o.fc(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function R(t,e){if(1&t&&(o.Sb(0,"td",21),o.Hc(1,S,3,4,"div",22),o.Hc(2,E,2,3,"ng-template",23,24,o.Ic),o.Rb()),2&t){const t=e.$implicit,i=o.tc(3);o.Ab(1),o.kc("ngIf",t.schedule)("ngIfElse",i)}}function C(t,e){1&t&&(o.Sb(0,"th",20),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")))}function T(t,e){if(1&t&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"date"),o.Rb()),2&t){const t=o.dc().$implicit;o.Ab(1),o.Lc(" ",o.gc(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function k(t,e){1&t&&(o.Jc(0),o.ec(1,"translate")),2&t&&o.Lc(" ",o.fc(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function I(t,e){if(1&t&&(o.Sb(0,"td",21),o.Hc(1,T,3,4,"div",22),o.Hc(2,k,2,3,"ng-template",23,24,o.Ic),o.Rb()),2&t){const t=e.$implicit,i=o.tc(3);o.Ab(1),o.kc("ngIf",t.startTime)("ngIfElse",i)}}function O(t,e){1&t&&(o.Sb(0,"th",20),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")))}function D(t,e){if(1&t&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"date"),o.Rb()),2&t){const t=o.dc().$implicit;o.Ab(1),o.Lc(" ",o.gc(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function M(t,e){1&t&&(o.Jc(0),o.ec(1,"translate")),2&t&&o.Lc(" ",o.fc(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function P(t,e){if(1&t&&(o.Sb(0,"td",21),o.Hc(1,D,3,4,"div",22),o.Hc(2,M,2,3,"ng-template",23,24,o.Ic),o.Rb()),2&t){const t=e.$implicit,i=o.tc(3);o.Ab(1),o.kc("ngIf",t.endTime)("ngIfElse",i)}}function x(t,e){1&t&&o.Nb(0,"tr",25)}const N=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function L(t,e){if(1&t&&o.Nb(0,"tr",26),2&t){const t=e.$implicit;o.kc("ngClass",o.rc(1,N,"ERROR"===t.status||"SENDERROR"===t.status||"GENERROR"===t.status,"DONE"===t.status,"WARNING"===t.status))}}function F(t,e){if(1&t&&(o.Sb(0,"table",9),o.Qb(1,10),o.Hc(2,b,3,3,"th",11),o.Hc(3,m,2,1,"td",12),o.Pb(),o.Qb(4,13),o.Hc(5,A,3,3,"th",11),o.Hc(6,y,2,1,"td",12),o.Pb(),o.Qb(7,14),o.Hc(8,w,3,3,"th",11),o.Hc(9,v,2,1,"td",12),o.Pb(),o.Qb(10,15),o.Hc(11,_,3,3,"th",11),o.Hc(12,R,4,2,"td",12),o.Pb(),o.Qb(13,16),o.Hc(14,C,3,3,"th",11),o.Hc(15,I,4,2,"td",12),o.Pb(),o.Qb(16,17),o.Hc(17,O,3,3,"th",11),o.Hc(18,P,4,2,"td",12),o.Pb(),o.Hc(19,x,1,0,"tr",18),o.Hc(20,L,1,5,"tr",19),o.Rb()),2&t){const t=o.dc(2).$implicit,e=o.dc();o.kc("dataSource",e.datasources[e.propagation.indexOf(t)]),o.Ab(19),o.kc("matHeaderRowDef",e.displayedColumns),o.Ab(1),o.kc("matRowDefColumns",e.displayedColumns)}}function z(t,e){1&t&&(o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function H(t,e){if(1&t&&(o.Nb(0,"mat-divider"),o.Hc(1,F,21,3,"table",8),o.Hc(2,z,3,3,"div",5)),2&t){const t=o.dc().$implicit;o.Ab(1),o.kc("ngIf",0!==t.taskList.length),o.Ab(1),o.kc("ngIf",0===t.taskList.length)}}function B(t,e){if(1&t&&(o.Sb(0,"mat-expansion-panel"),o.Sb(1,"mat-expansion-panel-header"),o.Sb(2,"mat-panel-title"),o.Nb(3,"img",3),o.Sb(4,"div",4),o.Jc(5),o.Rb(),o.Rb(),o.Hc(6,g,7,8,"mat-panel-description",5),o.Rb(),o.Hc(7,H,3,2,"ng-template",6),o.Rb()),2&t){const t=e.$implicit,i=o.dc();o.Ab(5),o.Lc(" ",t.resource.name," "),o.Ab(1),o.kc("ngIf",0!==i.getErrorCountStates(t))}}let j=(()=>{class t{constructor(){this.propagation=[],this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}ngOnInit(){this.getDataSource()}getErrorCountStates(t){let e=0;for(const i of t.taskList)"ERROR"!==i.status&&"GENERROR"!==i.status&&"SENDERROR"!==i.status||e++;return e}getDataSource(){for(const t of this.propagation)this.datasources.push(new h.o(t.taskList))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation"},decls:3,vars:1,consts:[[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.Sb(0,"div",0),o.Sb(1,"mat-accordion",1),o.Hc(2,B,8,2,"mat-expansion-panel",2),o.Rb(),o.Rb()),2&t&&(o.Ab(2),o.kc("ngForOf",e.propagation))},directives:[d.a,a.s,d.c,d.g,d.h,a.t,d.e,d.f,p.a,h.n,h.c,h.i,h.b,h.k,h.m,h.h,h.a,h.j,h.l,a.q],pipes:[f.d,a.f],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-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t})();var G=i("FcRk");function U(t,e){1&t&&o.Nb(0,"mat-spinner",3)}function K(t,e){if(1&t&&(o.Jc(0),o.ec(1,"translate"),o.Sb(2,"span",8),o.Jc(3),o.Rb()),2&t){const t=o.dc(2);o.Lc(" ",o.fc(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.Ab(3),o.Kc(t.errorPropagation.length)}}function V(t,e){1&t&&(o.Sb(0,"app-alert",11),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.kc("alert_type","warn"),o.Ab(1),o.Lc(" ",o.fc(2,2,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function q(t,e){if(1&t&&(o.Hc(0,V,3,4,"app-alert",9),o.Nb(1,"app-state-tab",10)),2&t){const t=o.dc(2);o.kc("ngIf",0===t.errorPropagation.length),o.Ab(1),o.kc("propagation",t.errorPropagation)}}function J(t,e){if(1&t&&(o.Jc(0),o.ec(1,"translate"),o.Sb(2,"span",12),o.Jc(3),o.Rb()),2&t){const t=o.dc(2);o.Lc(" ",o.fc(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.Ab(3),o.Kc(t.okPropagation.length)}}function W(t,e){1&t&&(o.Sb(0,"app-alert",14),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function Z(t,e){if(1&t&&(o.Hc(0,W,3,3,"app-alert",13),o.Nb(1,"app-state-tab",10)),2&t){const t=o.dc(2);o.kc("ngIf",0===t.okPropagation.length),o.Ab(1),o.kc("propagation",t.okPropagation)}}function Y(t,e){if(1&t){const t=o.Tb();o.Sb(0,"div"),o.Sb(1,"perun-web-apps-refresh-button",4),o.Zb("refresh",(function(){return o.xc(t),o.dc().refreshTable()})),o.Rb(),o.Sb(2,"mat-tab-group",5),o.Zb("selectedIndexChange",(function(e){return o.xc(t),o.dc().selectedIndex=e})),o.Sb(3,"mat-tab"),o.Hc(4,K,4,4,"ng-template",6),o.Hc(5,q,2,2,"ng-template",7),o.Rb(),o.Sb(6,"mat-tab"),o.Hc(7,J,4,4,"ng-template",6),o.Hc(8,Z,2,2,"ng-template",7),o.Rb(),o.Rb(),o.Rb()}if(2&t){const t=o.dc();o.Ab(2),o.kc("selectedIndex",t.selectedIndex)}}let $=(()=>{class t{constructor(t,e,i){this.route=t,this.taskService=e,this.customIconService=i,this.loading=!1,this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.customIconService.registerPerunRefreshIcon(),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.refreshTable()})}refreshTable(){console.log(this.selectedIndex),this.loading=!0,this.taskService.getAllResourcesState(this.voId).subscribe(t=>{this.resourceStates=t,this.okPropagation=[],this.errorPropagation=[];for(const e of t){let t=!0;for(const i of e.taskList)if("ERROR"===i.status||"GENERROR"===i.status||"SENDERROR"===i.status){t=!1;break}t?this.okPropagation.push(e):this.errorPropagation.push(e)}this.loading=!1})}}return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Mb(r.a),o.Mb(s.o),o.Mb(n.e))},t.\u0275cmp=o.Gb({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.Eb("router-component",!0)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],[3,"alert_type",4,"ngIf"],[3,"propagation"],[3,"alert_type"],[1,"badge","badge-success","ml-1"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(o.Sb(0,"h1",0),o.Jc(1),o.ec(2,"translate"),o.Rb(),o.Hc(3,U,1,0,"mat-spinner",1),o.Hc(4,Y,9,1,"div",2)),2&t&&(o.Ab(1),o.Kc(o.fc(2,3,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.Ab(2),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading))},directives:[a.t,c.c,l.a,u.c,u.a,u.d,u.b,j,G.a],pipes:[f.d],styles:[""]}),t})()},KTx3:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("IdLP"),s=i("FU6l"),o=i("IJgj"),r=i("YtkY");function a(t,e,i,c){return Object(o.a)(i)&&(c=i,i=void 0),c?a(t,e,i).pipe(Object(r.a)(t=>Object(s.a)(t)?c(...t):c(t))):new n.a(n=>{!function t(e,i,n,s,o){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,o),r=()=>t.removeEventListener(i,n,o)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,n),r=()=>t.off(i,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,n),r=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let r=0,a=e.length;r1?Array.prototype.slice.call(arguments):t)}),n,i)})}},KZIX:function(t,e,i){"use strict";i.d(e,"a",(function(){return Y})),i.d(e,"b",(function(){return K})),i.d(e,"c",(function(){return at})),i.d(e,"d",(function(){return V})),i.d(e,"e",(function(){return wt})),i.d(e,"f",(function(){return bt})),i.d(e,"g",(function(){return vt}));var n=i("sg/T"),s=i("TKFd"),o=i("Sv/w"),r=i("2kYt"),a=i("EM62"),c=i("mFH5"),l=i("5lCh"),u=i("ZTXN"),h=i("bwdy"),d=i("g6G6"),p=i("KTx3"),f=i("ROBh"),g=i("8lHc"),b=i("f7+R"),m=i("jIqt"),A=i("Ohay"),y=i("kuMc"),w=i("5XID"),v=i("cZZj"),_=i("fAiE"),S=i("E5oP"),E=i("qvOF");function R(t,e){1&t&&a.ic(0)}const C=["*"];function T(t,e){}const k=function(t){return{animationDuration:t}},I=function(t,e){return{value:t,params:e}},O=["tabBodyWrapper"],D=["tabHeader"];function M(t,e){}function P(t,e){if(1&t&&a.Hc(0,M,0,0,"ng-template",9),2&t){const t=a.dc().$implicit;a.kc("cdkPortalOutlet",t.templateLabel)}}function x(t,e){if(1&t&&a.Jc(0),2&t){const t=a.dc().$implicit;a.Kc(t.textLabel)}}function N(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",6),a.Zb("click",(function(){a.xc(t);const i=e.$implicit,n=e.index,s=a.dc(),o=a.tc(1);return s._handleClick(i,o,n)})),a.Sb(1,"div",7),a.Hc(2,P,1,1,"ng-template",8),a.Hc(3,x,1,1,"ng-template",8),a.Rb(),a.Rb()}if(2&t){const t=e.$implicit,i=e.index,n=a.dc();a.Eb("mat-tab-label-active",n.selectedIndex==i),a.kc("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),a.Bb("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.Ab(2),a.kc("ngIf",t.templateLabel),a.Ab(1),a.kc("ngIf",!t.templateLabel)}}function L(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-tab-body",10),a.Zb("_onCentered",(function(){return a.xc(t),a.dc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return a.xc(t),a.dc()._setTabBodyWrapperHeight(e)})),a.Rb()}if(2&t){const t=e.$implicit,i=e.index,n=a.dc();a.Eb("mat-tab-body-active",n.selectedIndex==i),a.kc("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),a.Bb("aria-labelledby",n._getTabLabelId(i))}}const F=["tabListContainer"],z=["tabList"],H=["nextPaginator"],B=["previousPaginator"],j=["mat-tab-nav-bar",""],G=new a.r("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let U=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.A),a.Mb(G),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})(),K=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.M))},t.\u0275dir=a.Hb({type:t,selectors:[["","matTabContent",""]]}),t})(),V=(()=>{class t extends o.b{}return t.\u0275fac=function(e){return q(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.xb]}),t})();const q=a.Ub(V);class J{}const W=Object(c.A)(J),Z=new a.r("MAT_TAB_GROUP");let Y=(()=>{class t extends W{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new u.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){t&&(this._templateLabel=t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new o.j(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.Q),a.Mb(Z,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;1&t&&(a.Fb(i,V,!0),a.Cc(i,K,!0,a.M)),2&t&&(a.sc(n=a.ac())&&(e.templateLabel=n.first),a.sc(n=a.ac())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;1&t&&a.Dc(a.M,!0),2&t&&a.sc(i=a.ac())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.xb,a.yb],ngContentSelectors:C,decls:1,vars:0,template:function(t,e){1&t&&(a.jc(),a.Hc(0,R,1,0,"ng-template"))},encapsulation:2}),t})();const $={translateTab:Object(b.n)("translateTab",[Object(b.k)("center, void, left-origin-center, right-origin-center",Object(b.l)({transform:"none"})),Object(b.k)("left",Object(b.l)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(b.k)("right",Object(b.l)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(b.m)("* => left, * => right, left => center, right => center",Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(b.m)("void => left-origin-center",[Object(b.l)({transform:"translate3d(-100%, 0, 0)"}),Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(b.m)("void => right-origin-center",[Object(b.l)({transform:"translate3d(100%, 0, 0)"}),Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let X=(()=>{class t extends o.c{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=h.a.EMPTY,this._leavingSub=h.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(m.a)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.j),a.Mb(a.Q),a.Mb(Object(a.U)(()=>tt)),a.Mb(r.e))},t.\u0275dir=a.Hb({type:t,selectors:[["","matTabBodyHost",""]],features:[a.xb]}),t})(),Q=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.a.EMPTY,this._translateTabComplete=new u.a,this._onCentering=new a.o,this._beforeCentering=new a.o,this._afterLeavingCenter=new a.o,this._onCentered=new a.o(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Object(A.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(S.c,8),a.Mb(a.h))},t.\u0275dir=a.Hb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),tt=(()=>{class t extends Q{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(S.c,8),a.Mb(a.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&a.Qc(o.g,!0),2&t&&a.sc(i=a.ac())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[a.xb],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Sb(0,"div",0,1),a.Zb("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),a.Hc(2,T,0,0,"ng-template",2),a.Rb()),2&t&&a.kc("@translateTab",a.qc(3,I,e._position,a.pc(1,k,e.animationDuration)))},directives:[X],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[$.translateTab]}}),t})();const et=new a.r("MAT_TABS_CONFIG");let it=0;class nt{}class st{constructor(t){this._elementRef=t}}const ot=Object(c.y)(Object(c.z)(st),"primary");let rt=(()=>{class t extends ot{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new a.E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.a.EMPTY,this._tabLabelSubscription=h.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.o,this.focusChange=new a.o,this.animationDone=new a.o,this.selectedTabChange=new a.o(!0),this._groupId=it++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Object(w.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Object(w.f)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(d.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(et,8),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.xb]}),t})(),at=(()=>{class t extends rt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(et,8),a.Mb(l.a,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){var n;1&t&&a.Fb(i,Y,!0),2&t&&a.sc(n=a.ac())&&(e._allTabs=n)},viewQuery:function(t,e){var i;1&t&&(a.Qc(O,!0),a.Qc(D,!0)),2&t&&(a.sc(i=a.ac())&&(e._tabBodyWrapper=i.first),a.sc(i=a.ac())&&(e._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.Eb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.zb([{provide:Z,useExisting:t}]),a.xb],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.Sb(0,"mat-tab-header",0,1),a.Zb("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),a.Hc(2,N,4,14,"div",2),a.Rb(),a.Sb(3,"div",3,4),a.Hc(5,L,1,8,"mat-tab-body",5),a.Rb()),2&t&&(a.kc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.Ab(2),a.kc("ngForOf",e._tabs),a.Ab(1),a.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Ab(2),a.kc("ngForOf",e._tabs))},directives:function(){return[ft,r.s,ut,c.s,n.e,r.t,o.c,tt]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class ct{}const lt=Object(c.A)(ct);let ut=(()=>{class t extends lt{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l))},t.\u0275dir=a.Hb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.Bb("aria-disabled",!!e.disabled),a.Eb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.xb]}),t})();const ht=Object(v.f)({passive:!0});let dt=(()=>{class t{constructor(t,e,i,n,s,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new u.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new u.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.o,this.indexFocused=new a.o,s.runOutsideAngular(()=>{Object(p.a)(t.nativeElement,"mouseleave").pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Object(w.f)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Object(p.a)(this._previousPaginator.nativeElement,"touchstart",ht).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(p.a)(this._nextPaginator.nativeElement,"touchstart",ht).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(f.a)(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(d.a)(t,e,this._items.changes).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{Promise.resolve().then(i),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(y.a)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Object(_.t)(t))switch(t.keyCode){case _.i:this._keyManager.setFirstItemActive(),t.preventDefault();break;case _.f:this._keyManager.setLastItemActive(),t.preventDefault();break;case _.g:case _.o:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let o,r;"ltr"==this._getLayoutDirection()?(o=n,r=o+s):(r=this._tabList.nativeElement.offsetWidth-n,o=r-s);const a=this.scrollDistance,c=this.scrollDistance+i;oc&&(this.scrollDistance+=r-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(g.a)(650,100).pipe(Object(y.a)(Object(d.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(E.h),a.Mb(S.c,8),a.Mb(a.A),a.Mb(v.a),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(w.c)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(E.h),a.Mb(S.c,8),a.Mb(a.A),a.Mb(v.a),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,inputs:{disableRipple:"disableRipple"},features:[a.xb]}),t})(),ft=(()=>{class t extends pt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(E.h),a.Mb(S.c,8),a.Mb(a.A),a.Mb(v.a),a.Mb(l.a,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;1&t&&a.Fb(i,ut,!1),2&t&&a.sc(n=a.ac())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(a.Dc(U,!0),a.Dc(F,!0),a.Dc(z,!0),a.Qc(H,!0),a.Qc(B,!0)),2&t&&(a.sc(i=a.ac())&&(e._inkBar=i.first),a.sc(i=a.ac())&&(e._tabListContainer=i.first),a.sc(i=a.ac())&&(e._tabList=i.first),a.sc(i=a.ac())&&(e._nextPaginator=i.first),a.sc(i=a.ac())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.Eb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.xb],ngContentSelectors:C,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.jc(),a.Sb(0,"div",0,1),a.Zb("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Nb(2,"div",2),a.Rb(),a.Sb(3,"div",3,4),a.Zb("keydown",(function(t){return e._handleKeydown(t)})),a.Sb(5,"div",5,6),a.Zb("cdkObserveContent",(function(){return e._onContentChanges()})),a.Sb(7,"div",7),a.ic(8),a.Rb(),a.Nb(9,"mat-ink-bar"),a.Rb(),a.Rb(),a.Sb(10,"div",8,9),a.Zb("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Nb(12,"div",2),a.Rb()),2&t&&(a.Eb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.kc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Ab(5),a.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Ab(5),a.Eb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.kc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.s,s.a,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),gt=(()=>{class t extends dt{constructor(t,e,i,n,s,o,r){super(t,n,s,e,i,o,r),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove("mat-background-"+this.backgroundColor),t&&e.add("mat-background-"+t),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(w.c)(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(Object(m.a)(null),Object(y.a)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(t){if(!this._items)return;const e=this._items.toArray();for(let i=0;i{class t extends gt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(S.c,8),a.Mb(a.A),a.Mb(a.h),a.Mb(E.h),a.Mb(v.a,8),a.Mb(l.a,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){var n;1&t&&a.Fb(i,wt,!0),2&t&&a.sc(n=a.ac())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(a.Dc(U,!0),a.Dc(F,!0),a.Dc(z,!0),a.Qc(H,!0),a.Qc(B,!0)),2&t&&(a.sc(i=a.ac())&&(e._inkBar=i.first),a.sc(i=a.ac())&&(e._tabListContainer=i.first),a.sc(i=a.ac())&&(e._tabList=i.first),a.sc(i=a.ac())&&(e._nextPaginator=i.first),a.sc(i=a.ac())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&a.Eb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.xb],attrs:j,ngContentSelectors:C,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.jc(),a.Sb(0,"div",0,1),a.Zb("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Nb(2,"div",2),a.Rb(),a.Sb(3,"div",3,4),a.Zb("keydown",(function(t){return e._handleKeydown(t)})),a.Sb(5,"div",5,6),a.Zb("cdkObserveContent",(function(){return e._onContentChanges()})),a.Sb(7,"div",7),a.ic(8),a.Rb(),a.Nb(9,"mat-ink-bar"),a.Rb(),a.Rb(),a.Sb(10,"div",8,9),a.Zb("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Nb(12,"div",2),a.Rb()),2&t&&(a.Eb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.kc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Ab(5),a.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Ab(5),a.Eb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.kc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.s,s.a,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{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;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class mt{}const At=Object(c.D)(Object(c.z)(Object(c.A)(mt)));let yt=(()=>{class t extends At{constructor(t,e,i,n,s,o){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===o&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),s.monitor(e)}get active(){return this._isActive}set active(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(gt),a.Mb(a.l),a.Mb(c.h,8),a.Xb("tabindex"),a.Mb(n.h),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,inputs:{active:"active"},features:[a.xb]}),t})(),wt=(()=>{class t extends yt{constructor(t,e,i,n,s,o,r,a){super(t,e,s,o,r,a),this._tabLinkRipple=new c.v(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(bt),a.Mb(a.l),a.Mb(a.A),a.Mb(v.a),a.Mb(c.h,8),a.Xb("tabindex"),a.Mb(n.h),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Bb("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),a.Eb("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.xb]}),t})(),vt=(()=>{class t{}return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},imports:[[r.c,c.i,o.i,c.t,s.c,n.a],c.i]}),t})()},KoHB:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("bFHC"),s=i("2kYt"),o=i("EM62");let r=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},imports:[[n.b,s.c]]}),t})()},KtsV:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("OZ4H"),s=i("X2Q7"),o=i("cqs0"),r=i("Ssnw"),a=i("iyZ4"),c=i("EM62"),l=i("s2Ay"),u=i("2kYt"),h=i("csyo"),d=i("A8Ay"),p=i("K9kF"),f=i("PBFl");function g(t,e){1&t&&c.Nb(0,"mat-spinner",3)}function b(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div"),c.Sb(1,"perun-web-apps-immediate-filter",4),c.Zb("filter",(function(e){return c.xc(t),c.dc().applyFilter(e)})),c.Rb(),c.Sb(2,"div",5),c.Sb(3,"perun-web-apps-groups-list",6),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb(),c.Rb(),c.Sb(4,"div",7),c.Sb(5,"button",8),c.Zb("click",(function(){return c.xc(t),c.dc().onCancel()})),c.Jc(6),c.ec(7,"translate"),c.Rb(),c.Sb(8,"button",9),c.Zb("click",(function(){return c.xc(t),c.dc().onSubmit()})),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Rb(),c.Rb()}if(2&t){const t=c.dc();c.Cb(t.theme),c.Ab(1),c.kc("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),c.Ab(2),c.kc("groupsToDisable",t.groupsToDisable)("disableGroups",!0)("pageSize",t.pageSize)("groups",t.groups)("selection",t.selection)("hideColumns",t.hideColumns)("filter",t.filterValue)("disableHeadCheckbox",!0)("disableRouting",!0)("authType","create-relation-dialog"),c.Ab(3),c.Lc(" ",c.fc(7,17,"DIALOGS.CREATE_RELATION.CANCEL")," "),c.Ab(2),c.kc("disabled",t.loading||0===t.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(10,19,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let m=(()=>{class t{constructor(t,e,i,n,s,r,c){this.dialogRef=t,this.groupService=e,this.notificator=i,this.translate=n,this.tableConfigService=s,this.guiAuthResolver=r,this.data=c,this.selection=new o.c(!1,[]),this.hideColumns=["recent","vo","expiration","menu"],this.filterValue="",this.tableId=a.s,this.groupsToDisable=new Set,n.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(t=>{t=t.concat(this.data.groups),this.groupService.getAllGroups(this.data.voId).subscribe(e=>{const i=t.map(t=>t.id);this.groups=e.filter(t=>!i.includes(t.id)&&t.id!==this.data.group.id),this.setGroupsToDisable(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!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(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}setGroupsToDisable(){for(const t of this.groups)this.guiAuthResolver.isAuthorized("createGroupUnion_Group_Group_policy",[this.data.group,t])||this.groupsToDisable.add(t.id)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(s.h),c.Mb(r.l),c.Mb(l.e),c.Mb(a.pb),c.Mb(r.h),c.Mb(n.a))},t.\u0275cmp=c.Gb({type:t,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,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"groupsToDisable","disableGroups","pageSize","groups","selection","hideColumns","filter","disableHeadCheckbox","disableRouting","authType","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Sb(3,"div"),c.Hc(4,g,1,0,"mat-spinner",1),c.Rb(),c.Hc(5,b,11,21,"div",2)),2&t&&(c.Ab(1),c.Kc(c.fc(2,6,"DIALOGS.CREATE_RELATION.TITLE")),c.Ab(2),c.Cb(e.theme),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[n.j,u.t,h.c,d.a,n.g,p.a,n.c,f.b],pipes:[l.d],styles:[""]}),t})()},L4Ow:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),s=i("s2Ay");let o=(()=>{class t{constructor(t){this.translate=t,this.prefix="ROLES."}transform(t,e){const i=this.prefix.concat(t);return this.translate.instant(i)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.e))},t.\u0275pipe=n.Lb({name:"displayedRole",type:t,pure:!0}),t})()},LAw4:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("EM62"),s=i("nIj0"),o=i("QQZH"),r=i("ZTXN"),a=i("kuMc"),c=(i("X2Q7"),i("OIgT")),l=i("29Wa"),u=i("R7+U"),h=i("mFH5"),d=i("BYpP"),p=i("2kYt"),f=i("qvOF");const g=["scrollViewport"];function b(t,e){if(1&t&&(n.Sb(0,"mat-option",7),n.Jc(1),n.Sb(2,"span",8),n.Jc(3),n.Rb(),n.Rb()),2&t){const t=n.dc();n.kc("value",null==t.entitiesCtrl?null:t.entitiesCtrl.value),n.Ab(1),n.Lc(" ",t.mainTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)," "),n.Ab(2),n.Kc(t.secondaryTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value))}}function m(t,e){if(1&t&&(n.Sb(0,"mat-option",9),n.Jc(1),n.Sb(2,"span",8),n.Jc(3),n.Rb(),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.kc("value",t),n.Ab(1),n.Lc(" ",i.mainTextFunction(t)," "),n.Ab(2),n.Kc(i.secondaryTextFunction(t))}}let A=(()=>{class t{constructor(t){this.cd=t,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.entitySelected=new n.o,this.entitiesCtrl=new s.g,this.entityFilterCtrl=new s.g,this.filteredEntities=new o.a(1),this.entitiesLen=0,this._onDestroy=new r.a,this.mainTextFunction=t=>Object(c.stringify)(t),this.secondaryTextFunction=t=>"#"+t.id}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(t=>this.entitySelected.emit(t)),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(t=>this.entitiesLen=t.length),this.entityFilterCtrl.valueChanges.pipe(Object(a.a)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}ngOnChanges(t){t.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}filterEntites(){if(!this.entities)return;let t=this.entityFilterCtrl.value;if(!t)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();t=this.normalize(t),this.filteredEntities.next(this.entities.filter(e=>this.normalize(this.searchFunction(e)).indexOf(t)>=0)),this.cd.detectChanges()}normalize(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(t){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){var i;1&t&&n.Qc(g,!0),2&t&&n.sc(i=n.ac())&&(e.scrollViewport=i.first)},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[n.yb],decls:9,vars:14,consts:[[1,"w-100"],[3,"placeholder","formControl","openedChange"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted","muted"],[3,"value"]],template:function(t,e){1&t&&(n.Sb(0,"mat-form-field",0),n.Sb(1,"mat-select",1),n.Zb("openedChange",(function(t){return e.openChange(t)})),n.Sb(2,"mat-option"),n.Nb(3,"ngx-mat-select-search",2),n.Rb(),n.Hc(4,b,4,3,"mat-option",3),n.Sb(5,"cdk-virtual-scroll-viewport",4,5),n.Hc(7,m,4,3,"mat-option",6),n.ec(8,"async"),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.lc("placeholder",e.selectPlaceholder),n.kc("formControl",e.entitiesCtrl),n.Ab(2),n.lc("placeholderLabel",e.findPlaceholder),n.lc("noEntriesFoundLabel",e.noEntriesText),n.kc("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.Ab(1),n.kc("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.Ab(1),n.Ec("height",e.getViewportHeight(),"px"),n.kc("minBufferPx",240)("maxBufferPx",480),n.Ab(2),n.kc("cdkVirtualForOf",n.fc(8,12,e.filteredEntities)))},directives:[l.c,u.a,s.r,s.h,h.n,d.a,p.t,f.e,f.a,f.d],pipes:[p.b],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}"]}),t})()},LKLE:function(t,e,i){"use strict";i.d(e,"a",(function(){return M}));var n=i("EM62"),s=i("iAde"),o=i("cePI"),r=i("FlRo"),a=i("cqs0"),c=i("nhAq"),l=i("8clQ"),u=i("Ssnw"),h=i("9wx0"),d=i("2kYt"),p=i("+Tre"),f=i("Y2X+"),g=i("FcRk"),b=i("YEcy"),m=i("s2Ay");function A(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",18),n.Sb(1,"mat-checkbox",19),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function y(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",20),n.Sb(1,"mat-checkbox",21),n.Zb("click",(function(e){return n.xc(t),e.stopPropagation()}))("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null})),n.ec(2,"isVirtualAttribute"),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("checked",i.selection.isSelected(t))("disabled",n.fc(2,3,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function w(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function v(t,e){if(1&t&&(n.Sb(0,"td",20),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function _(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function S(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.displayName)}}function E(t,e){1&t&&(n.Sb(0,"th",18),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function R(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",23),n.Sb(1,"perun-web-apps-attribute-value",24),n.Zb("sendEventToParent2",(function(){n.xc(t);const i=e.$implicit;return n.dc().onValueChange(i)})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("attribute",t)("readonly",i.readonly||!t.writable)}}function C(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function T(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.description)}}function k(t,e){1&t&&n.Nb(0,"tr",25)}function I(t,e){if(1&t&&(n.Nb(0,"tr",26),n.ec(1,"translate")),2&t){const t=e.$implicit,i=n.dc();n.lc("matTooltip",n.fc(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.kc("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function O(t,e){1&t&&(n.Sb(0,"app-alert",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function D(t,e){1&t&&(n.Sb(0,"app-alert",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}let M=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new a.c(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new n.o,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=l.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.o(Object(l.j)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}exportData(t){Object(l.i)(Object(l.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(l.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(l.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!Object(l.s)(t)&&t.writable}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(s.a,!0),n.Qc(c.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first),n.sc(i=n.ac())&&(e.items=i))},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[n.yb],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,A,2,3,"th",6),n.Hc(7,y,3,5,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,w,3,3,"th",9),n.Hc(10,v,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,_,3,3,"th",9),n.Hc(13,S,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,E,3,3,"th",6),n.Hc(16,R,2,2,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,C,3,3,"th",9),n.Hc(19,T,2,1,"td",11),n.Pb(),n.Hc(20,k,1,0,"tr",14),n.Hc(21,I,2,5,"tr",15),n.Rb(),n.Rb(),n.Sb(22,"mat-paginator",16),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(23,O,3,3,"app-alert",17),n.Hc(24,D,3,3,"app-alert",17)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(16),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.attributes.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.data.length))},directives:[h.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,s.a,d.t,r.h,p.a,r.a,o.b,c.a,r.j,r.l,f.a,g.a],pipes:[b.a,m.d],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},Log1:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),s=i("EM62");let o=(()=>{class t{transform(t,e){return Object(n.x)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"memberLogins",type:t,pure:!0}),t})()},M7la:function(t,e,i){"use strict";i.d(e,"a",(function(){return H}));var n=i("4sdY"),s=i("cqs0"),o=i("Ssnw"),r=i("Y9OK"),a=i("p3Ob"),c=i("X2Q7"),l=i("nyAh"),u=i("nIj0"),h=i("iyZ4"),d=i("8clQ"),p=i("hiWg"),f=i("EM62"),g=i("sEIs"),b=i("s2Ay"),m=i("OZ4H"),A=i("Y2X+"),y=i("2kYt"),w=i("PBFl"),v=i("29Wa"),_=i("R7+U"),S=i("Cd2c"),E=i("bFHC"),R=i("mFH5"),C=i("csyo"),T=i("l18O"),k=i("nz2m"),I=i("FcRk");function O(t,e){if(1&t){const t=f.Tb();f.Sb(0,"button",17),f.Zb("click",(function(){return f.xc(t),f.dc().onAddMember()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}if(2&t){const t=f.dc();f.kc("disabled",t.blockManualMemberAdding),f.Ab(1),f.Lc(" ",f.fc(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function D(t,e){if(1&t){const t=f.Tb();f.Sb(0,"button",18),f.Zb("click",(function(){return f.xc(t),f.dc().onInviteMember()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function M(t,e){if(1&t){const t=f.Tb();f.Sb(0,"button",19),f.Zb("click",(function(){return f.xc(t),f.dc().onRemoveMembers()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}if(2&t){const t=f.dc();f.kc("disabled",t.selection.isEmpty()),f.Ab(1),f.Lc(" ",f.fc(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(f.Sb(0,"mat-option",20),f.Jc(1),f.Rb()),2&t){const t=e.$implicit;f.kc("value",t),f.Ab(1),f.Kc(t)}}function x(t,e){1&t&&f.Nb(0,"mat-spinner",21)}function N(t,e){if(1&t){const t=f.Tb();f.Sb(0,"perun-web-apps-members-dynamic-list",22),f.Zb("page",(function(e){return f.xc(t),f.dc().pageChanged(e)}))("updateTable",(function(){return f.xc(t),f.dc().refreshTable()})),f.Rb()}if(2&t){const t=f.dc();f.kc("voId",t.vo.id)("pageSize",t.pageSize)("selection",t.selection)("hideColumns",t.hideColumns)("attrNames",t.attrNames)}}function L(t,e){if(1&t){const t=f.Tb();f.Sb(0,"perun-web-apps-members-list",26),f.Zb("page",(function(e){return f.xc(t),f.dc(2).pageChanged(e)}))("updateTable",(function(){return f.xc(t),f.dc(2).refreshTable()})),f.Rb()}if(2&t){const t=f.dc(2);f.kc("pageSize",t.pageSize)("selection",t.selection)("members",t.members)("disableRouting",!t.routeAuth)("hideColumns",t.hideColumns)}}function F(t,e){1&t&&(f.Sb(0,"app-alert",27),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.kc("alert_type","warn"),f.Ab(1),f.Lc(" ",f.fc(2,2,"VO_DETAIL.MEMBERS.NO_MEMBERS_ALERT")," "))}function z(t,e){if(1&t&&(f.Sb(0,"div",23),f.Hc(1,L,1,5,"perun-web-apps-members-list",24),f.Hc(2,F,3,4,"app-alert",25),f.Rb()),2&t){const t=f.dc();f.Ab(1),f.kc("ngIf",0!==t.members.length),f.Ab(1),f.kc("ngIf",0===t.members.length)}}let H=(()=>{class t{constructor(t,e,i,n,o,r,a,c,d,p,f,g){this.membersService=t,this.sideMenuService=e,this.voService=i,this.route=n,this.notificator=o,this.translate=r,this.tableConfigService=a,this.dialog=c,this.authzService=d,this.storeService=p,this.attributesManager=f,this.apiRequest=g,this.members=null,this.selection=new s.c(!0,[]),this.firstSearchDone=!1,this.loading=!1,this.attrNames=[l.a.MEMBER_DEF_ORGANIZATION,l.a.MEMBER_DEF_MAIL,l.a.USER_DEF_ORGANIZATION,l.a.USER_DEF_PREFERRED_MAIL,l.a.MEMBER_DEF_EXPIRATION],this.statuses=new u.g,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID","EXPIRED","DISABLED"],this.tableId=h.kb,this.hideColumns=[]}ngOnInit(){this.loading=!0,this.searchControl=new u.g("",[u.F.required,u.F.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.statuses.setValue(this.statusList),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(t=>{const e=t.voId;this.isManualAddingBlocked(e).then(()=>{this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.setAuthRights(),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.hideColumns=this.removeAuth?["groupStatus","sponsored","type"]:["checkbox","groupStatus","sponsored","type"],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(){this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.loading=!0,this.firstSearchDone=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.vo.id,this.attrNames,this.searchControl.value,this.selectedStatuses).subscribe(t=>{this.members=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1))}onListAll(){this.loading=!0,this.firstSearchDone=!0,this.selection.clear(),this.membersService.getCompleteRichMembersForVo(this.vo.id,this.selectedStatuses,this.attrNames).subscribe(t=>{this.members=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddMember(){const t=Object(d.o)();t.width="1000px",t.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(a.a,t).afterClosed().subscribe(t=>{(this.firstSearchDone||t)&&this.refreshTable()})}onKeyInput(t){"Enter"===t.key&&this.onSearchByString()}onRemoveMembers(){const t=Object(d.o)();t.width="450px",t.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(r.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onInviteMember(){const t=Object(d.o)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(p.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.searchControl.value.trim().length>0?this.onSearchByString():this.onListAll()}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}isManualAddingBlocked(t){return new Promise(e=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,e()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),e()})})}}return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Mb(c.i),f.Mb(n.a),f.Mb(c.q),f.Mb(g.a),f.Mb(o.l),f.Mb(b.e),f.Mb(h.pb),f.Mb(m.b),f.Mb(o.h),f.Mb(o.m),f.Mb(c.c),f.Mb(o.b))},t.\u0275cmp=f.Gb({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.Eb("router-component",!0)},decls:34,vars:31,consts:[[1,"vo-theme",3,"keyup"],[1,"page-subtitle"],[1,"align-elements"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"mr-2","fix-select"],["multiple","",3,"value","formControl","valueChange"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"voId","pageSize","selection","hideColumns","attrNames","page","updateTable",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","pageSize","selection","hideColumns","attrNames","page","updateTable"],[1,"mt-3"],[3,"pageSize","selection","members","disableRouting","hideColumns","page","updateTable",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"pageSize","selection","members","disableRouting","hideColumns","page","updateTable"],[3,"alert_type"]],template:function(t,e){1&t&&(f.Sb(0,"div",0),f.Zb("keyup",(function(t){return e.onKeyInput(t)})),f.Sb(1,"h1",1),f.Jc(2),f.ec(3,"translate"),f.Rb(),f.Sb(4,"div",2),f.Sb(5,"div",3),f.ec(6,"translate"),f.Hc(7,O,3,4,"button",4),f.Rb(),f.Hc(8,D,3,3,"button",5),f.Hc(9,M,3,4,"button",6),f.Sb(10,"button",7),f.Zb("click",(function(){return e.onListAll()})),f.Jc(11),f.ec(12,"translate"),f.Rb(),f.Sb(13,"mat-form-field",8),f.Sb(14,"mat-label"),f.Jc(15),f.ec(16,"translate"),f.Rb(),f.Sb(17,"mat-select",9),f.Zb("valueChange",(function(t){return e.selectedStatuses=t})),f.Sb(18,"mat-select-trigger"),f.Jc(19),f.Rb(),f.Hc(20,P,2,2,"mat-option",10),f.Rb(),f.Rb(),f.Sb(21,"mat-form-field",11),f.Sb(22,"label"),f.Nb(23,"input",12),f.ec(24,"translate"),f.Rb(),f.Sb(25,"mat-error"),f.Jc(26),f.ec(27,"translate"),f.Rb(),f.Rb(),f.Sb(28,"button",13),f.Zb("click",(function(){return e.onSearchByString()})),f.Sb(29,"mat-icon"),f.Jc(30,"search"),f.Rb(),f.Rb(),f.Rb(),f.Hc(31,x,1,0,"mat-spinner",14),f.Hc(32,N,1,5,"perun-web-apps-members-dynamic-list",15),f.Hc(33,z,3,2,"div",16),f.Rb()),2&t&&(f.Ab(2),f.Kc(f.fc(3,19,"VO_DETAIL.MEMBERS.TITLE")),f.Ab(3),f.lc("matTooltip",f.fc(6,21,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.kc("matTooltipDisabled",!e.blockManualMemberAdding),f.Ab(2),f.kc("ngIf",e.addAuth),f.Ab(1),f.kc("ngIf",e.inviteAuth),f.Ab(1),f.kc("ngIf",e.removeAuth),f.Ab(2),f.Lc(" ",f.fc(12,23,"VO_DETAIL.MEMBERS.LIST_MEMBERS")," "),f.Ab(4),f.Kc(f.fc(16,25,"VO_DETAIL.MEMBERS.FILTER_STATUS")),f.Ab(2),f.kc("value",e.selectedStatuses)("formControl",e.statuses),f.Ab(2),f.Lc(" ",e.displaySelectedStatuses()," "),f.Ab(1),f.kc("ngForOf",e.statusList),f.Ab(3),f.lc("placeholder",f.fc(24,27,"VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION")),f.kc("formControl",e.searchControl),f.Ab(3),f.Lc(" ",f.fc(27,29,"VO_DETAIL.MEMBERS.EMPTY_SEARCH")," "),f.Ab(2),f.kc("disabled",0===e.selectedStatuses.length),f.Ab(3),f.kc("ngIf",e.loading),f.Ab(1),f.kc("ngIf",!e.firstSearchDone&&!e.loading),f.Ab(1),f.kc("ngIf",null!==e.members&&!e.loading))},directives:[A.a,y.t,w.b,v.c,v.g,_.a,u.r,u.h,_.c,y.s,S.b,u.c,v.b,E.a,R.n,C.c,T.a,k.a,I.a],pipes:[b.d],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),t})()},MP6f:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("FcRk");function p(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&a.Nb(0,"th",16)}function g(t,e){if(1&t&&(a.Sb(0,"td",17),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.friendlyName," ")}}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){1&t&&a.Nb(0,"tr",19)}function A(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"div"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,f,1,0,"th",11),a.Hc(10,g,2,1,"td",12),a.Pb(),a.Hc(11,b,1,0,"tr",13),a.Hc(12,m,1,0,"tr",14),a.Rb(),a.Sb(13,"app-alert",15),a.Jc(14),a.ec(15,"translate"),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),a.Ab(3),a.Lc(" ",a.fc(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns),a.Ab(2),a.Lc(" ",a.fc(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.attributesManager=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.o(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=[];for(const e of this.data.attributes)t.push(e.id);this.attributesManager.deleteAttributeDefinitions(t).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(c.e),a.Mb(r.c))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","error",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,p,1,0,"mat-spinner",1),a.Hc(5,A,16,12,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,d.a,s.h,s.a,s.j,s.l],pipes:[c.d],styles:[""]}),t})()},Meci:function(t,e,i){"use strict";i.d(e,"a",(function(){return S})),i.d(e,"b",(function(){return g})),i.d(e,"c",(function(){return _})),i.d(e,"d",(function(){return d})),i.d(e,"e",(function(){return b})),i.d(e,"f",(function(){return E})),i.d(e,"g",(function(){return m})),i.d(e,"h",(function(){return w})),i.d(e,"i",(function(){return y})),i.d(e,"j",(function(){return C})),i.d(e,"k",(function(){return A})),i.d(e,"l",(function(){return f})),i.d(e,"m",(function(){return p})),i.d(e,"n",(function(){return R})),i.d(e,"o",(function(){return v}));var n=i("5lCh"),s=i("mFH5"),o=i("EM62");const r=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],u=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],h=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),g=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&o.Eb("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),S=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.a,8))},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(o.jc(r),o.ic(0),o.ic(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.jc(c),o.ic(0),o.Sb(1,"div",0),o.ic(2,1),o.Rb(),o.ic(3,2))},encapsulation:2,changeDetection:0}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:h,decls:4,vars:0,template:function(t,e){1&t&&(o.jc(u),o.Sb(0,"div"),o.ic(1),o.Rb(),o.ic(2,1),o.ic(3,2))},encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},MiDb:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},NC8S:function(t,e,i){"use strict";i.d(e,"a",(function(){return K}));var n=i("EM62"),s=i("iAde"),o=i("cePI"),r=i("FlRo"),a=i("cqs0"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("bFHC"),f=i("Y2X+"),g=i("TQS+"),b=i("FcRk"),m=i("s2Ay"),A=i("j+u3"),y=i("hLiN"),w=i("bwko"),v=i("O/Vf");function _(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-checkbox",23),n.Zb("change",(function(e){n.xc(t);const i=n.dc(2);return e?i.masterToggle():null})),n.Rb()}if(2&t){const t=n.dc(2);n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function S(t,e){if(1&t&&(n.Sb(0,"th",21),n.Hc(1,_,1,3,"mat-checkbox",22),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.kc("ngIf",t.selection.isMultipleSelection())}}function E(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",24),n.Sb(1,"mat-checkbox",25),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function R(t,e){1&t&&n.Nb(0,"th",21)}function C(t,e){1&t&&(n.Sb(0,"mat-icon",27),n.ec(1,"translate"),n.Jc(2," account_circle "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"MANAGERS_LIST.PERSON"))}function T(t,e){1&t&&(n.Sb(0,"mat-icon",27),n.ec(1,"translate"),n.Jc(2," traffic "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"MANAGERS_LIST.SERVICE"))}function k(t,e){if(1&t&&(n.Sb(0,"td",24),n.Hc(1,C,3,3,"mat-icon",26),n.Hc(2,T,3,3,"mat-icon",26),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",!t.serviceUser),n.Ab(1),n.kc("ngIf",t.serviceUser)}}function I(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.ID")))}function O(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Lc(" ",t.id," ")}}function D(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.NAME")))}function M(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function P(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.ORGANIZATION")))}function x(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.ec(2,"userVo"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function N(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.EMAIL")))}function L(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.ec(2,"userEmail"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function F(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.LOGINS")))}function z(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.ec(2,"userLogins"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function H(t,e){1&t&&n.Nb(0,"tr",30)}const B=function(t){return["/admin/users",t]};function j(t,e){if(1&t&&n.Nb(0,"tr",31),2&t){const t=e.$implicit,i=n.dc();n.Eb("cursor-pointer",!i.disableRouting),n.kc("perunWebAppsForceRouterLink",i.disableRouting?null:n.pc(4,B,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.pc(6,B,t.id))}}function G(t,e){1&t&&(n.Sb(0,"app-alert",32),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}function U(t,e){1&t&&(n.Sb(0,"app-alert",32),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let K=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.selection=new a.c(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.o,this.pageSizeOptions=c.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}getDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"true":"false";case"name":return t?t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"":"";case"organization":return Object(c.G)(t);case"email":return Object(c.E)(t);case"logins":return Object(c.x)(t);default:return""}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?Object(c.w)(t):"";case"organization":return Object(c.G)(t);case"email":return Object(c.E)(t);case"logins":return Object(c.x)(t);default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this))}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.o(this.users),this.dataSource.paginator=this.paginator,this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-users-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page"},features:[n.yb],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-cell","","class","static-column-size",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,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"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(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,S,2,1,"th",6),n.Hc(7,E,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,R,1,0,"th",6),n.Hc(10,k,3,2,"td",9),n.Pb(),n.Qb(11,10),n.Hc(12,I,3,3,"th",11),n.Hc(13,O,2,1,"td",7),n.Pb(),n.Qb(14,12),n.Hc(15,D,3,3,"th",11),n.Hc(16,M,3,3,"td",13),n.Pb(),n.Qb(17,14),n.Hc(18,P,3,3,"th",11),n.Hc(19,x,3,3,"td",13),n.Pb(),n.Qb(20,15),n.Hc(21,N,3,3,"th",11),n.Hc(22,L,3,3,"td",13),n.Pb(),n.Qb(23,16),n.Hc(24,F,3,3,"th",11),n.Hc(25,z,3,3,"td",13),n.Pb(),n.Hc(26,H,1,0,"tr",17),n.Hc(27,j,1,8,"tr",18),n.Rb(),n.Rb(),n.Sb(28,"mat-paginator",19),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(29,G,3,3,"app-alert",20),n.Hc(30,U,3,3,"app-alert",20)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(22),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.users.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.users.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.users.length))},directives:[u.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,s.a,h.t,r.h,d.a,r.a,p.a,f.a,o.b,r.j,r.l,g.b,g.c,b.a],pipes:[m.d,A.a,y.a,w.a,v.a],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},NMas:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("EM62"),a=i("s2Ay"),c=i("2kYt"),l=i("PBFl"),u=i("csyo");function h(t,e){1&t&&r.Nb(0,"mat-spinner",6)}function d(t,e){1&t&&(r.Sb(0,"div",7),r.Sb(1,"div",8),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Rb()),2&t&&(r.Ab(2),r.Lc(" ",r.fc(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let p=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.tasksManager=i,this.translate=n,this.notificator=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.i),r.Mb(n.a),r.Mb(o.o),r.Mb(a.e),r.Mb(s.l))},t.\u0275cmp=r.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(t,e){1&t&&(r.Sb(0,"h1",0),r.Jc(1),r.ec(2,"translate"),r.Rb(),r.Sb(3,"div"),r.Hc(4,h,1,0,"mat-spinner",1),r.Hc(5,d,4,3,"div",2),r.Sb(6,"div",3),r.Sb(7,"button",4),r.Zb("click",(function(){return e.cancel()})),r.Jc(8),r.ec(9,"translate"),r.Rb(),r.Sb(10,"button",5),r.Zb("click",(function(){return e.remove()})),r.Jc(11),r.ec(12,"translate"),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,9,"DIALOGS.DELETE_TASK.TITLE")),r.Ab(2),r.Cb(e.theme),r.Ab(1),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading),r.Ab(3),r.Lc(" ",r.fc(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),r.Ab(2),r.kc("disabled",e.loading),r.Ab(1),r.Lc(" ",r.fc(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[n.j,c.t,n.c,l.b,u.c,n.g],pipes:[a.d],styles:[""]}),t})()},"NU+N":function(t,e,i){"use strict";i.d(e,"a",(function(){return Q}));var n=i("cqs0"),s=i("WimW"),o=i("jk8c"),r=i("p/8k"),a=i("vhVt"),c=i("X2Q7"),l=i("nyAh"),u=i("iyZ4"),h=i("8clQ"),d=i("Ssnw"),p=i("EM62"),f=i("OZ4H"),g=i("KZIX"),b=i("2kYt"),m=i("0XDM"),A=i("PBFl"),y=i("29Wa"),w=i("R7+U"),v=i("mFH5"),_=i("csyo"),S=i("NC8S"),E=i("K9kF"),R=i("FcRk"),C=i("s2Ay"),T=i("L4Ow");function k(t,e){1&t&&(p.Jc(0),p.ec(1,"translate")),2&t&&p.Lc(" ",p.fc(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function I(t,e){if(1&t){const t=p.Tb();p.Sb(0,"perun-web-apps-refresh-button",11),p.Zb("refresh",(function(){return p.xc(t),p.dc(2).refreshUsers()})),p.Rb()}}function O(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",12),p.Zb("click",(function(){return p.xc(t),p.dc(2).addManager()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function D(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",13),p.Zb("click",(function(){return p.xc(t),p.dc(2).removeManager()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}if(2&t){const t=p.dc(2);p.kc("disabled",0===t.selectionUsers.selected.length),p.Ab(1),p.Lc(" ",p.fc(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function M(t,e){if(1&t&&(p.Sb(0,"mat-option",17),p.Jc(1),p.ec(2,"displayedRole"),p.Rb()),2&t){const t=e.$implicit;p.kc("value",t),p.Ab(1),p.Kc(p.fc(2,2,t))}}function P(t,e){if(1&t){const t=p.Tb();p.Sb(0,"mat-form-field",14),p.Sb(1,"mat-label"),p.Jc(2),p.ec(3,"translate"),p.Rb(),p.Sb(4,"mat-select",15),p.Zb("valueChange",(function(e){return p.xc(t),p.dc(2).selectedRole=e}))("selectionChange",(function(){return p.xc(t),p.dc(2).refreshUsers()})),p.Hc(5,M,3,4,"mat-option",16),p.Rb(),p.Rb()}if(2&t){const t=p.dc(2);p.Ab(2),p.Kc(p.fc(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.Ab(2),p.kc("value",t.selectedRole),p.Ab(1),p.kc("ngForOf",t.availableRoles)}}function x(t,e){1&t&&p.Nb(0,"mat-spinner",18)}const N=function(){return["select","id","name","email","logins","organization"]},L=function(){return["id","name","email","logins","organization"]};function F(t,e){if(1&t){const t=p.Tb();p.Sb(0,"app-users-list",20),p.Zb("page",(function(e){return p.xc(t),p.dc(3).pageChanged(e)})),p.Rb()}if(2&t){const t=p.dc(3);p.kc("pageSize",t.pageSize)("users",t.managers)("disableRouting",!t.routeAuth)("displayedColumns",t.manageAuth?p.oc(5,N):p.oc(6,L))("selection",t.selectionUsers)}}function z(t,e){if(1&t&&(p.Sb(0,"div"),p.Hc(1,F,1,7,"app-users-list",19),p.Rb()),2&t){const t=p.dc(2);p.Ab(1),p.kc("ngIf",t.managers)}}function H(t,e){if(1&t&&(p.Hc(0,I,1,0,"perun-web-apps-refresh-button",5),p.Hc(1,O,3,3,"button",6),p.Hc(2,D,3,4,"button",7),p.Hc(3,P,6,5,"mat-form-field",8),p.Hc(4,x,1,0,"mat-spinner",9),p.Hc(5,z,2,1,"div",10)),2&t){const t=p.dc();p.kc("ngIf",!t.loading),p.Ab(1),p.kc("ngIf",!t.loading&&t.manageAuth),p.Ab(1),p.kc("ngIf",!t.loading&&t.manageAuth),p.Ab(1),p.kc("ngIf",!t.loading),p.Ab(1),p.kc("ngIf",t.loading),p.Ab(1),p.kc("ngIf",!t.loading)}}function B(t,e){1&t&&(p.Jc(0),p.ec(1,"translate")),2&t&&p.Lc(" ",p.fc(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function j(t,e){if(1&t){const t=p.Tb();p.Sb(0,"perun-web-apps-refresh-button",11),p.Zb("refresh",(function(){return p.xc(t),p.dc(2).refreshGroups()})),p.Rb()}}function G(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",12),p.Zb("click",(function(){return p.xc(t),p.dc(2).addGroup()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function U(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",13),p.Zb("click",(function(){return p.xc(t),p.dc(2).removeGroup()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}if(2&t){const t=p.dc(2);p.kc("disabled",0===t.selectionGroups.selected.length),p.Ab(1),p.Lc(" ",p.fc(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function K(t,e){if(1&t&&(p.Sb(0,"mat-option",17),p.Jc(1),p.ec(2,"displayedRole"),p.Rb()),2&t){const t=e.$implicit;p.kc("value",t),p.Ab(1),p.Kc(p.fc(2,2,t))}}function V(t,e){if(1&t){const t=p.Tb();p.Sb(0,"mat-form-field",14),p.Sb(1,"mat-label"),p.Jc(2),p.ec(3,"translate"),p.Rb(),p.Sb(4,"mat-select",15),p.Zb("valueChange",(function(e){return p.xc(t),p.dc(2).selectedRole=e}))("selectionChange",(function(){return p.xc(t),p.dc(2).refreshGroups()})),p.Hc(5,K,3,4,"mat-option",16),p.Rb(),p.Rb()}if(2&t){const t=p.dc(2);p.Ab(2),p.Kc(p.fc(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.Ab(2),p.kc("value",t.selectedRole),p.Ab(1),p.kc("ngForOf",t.availableRoles)}}function q(t,e){1&t&&p.Nb(0,"mat-spinner",18)}const J=function(){return["menu","expiration","recent"]},W=function(){return["select","expiration","menu","recent"]};function Z(t,e){if(1&t){const t=p.Tb();p.Sb(0,"perun-web-apps-groups-list",22),p.Zb("page",(function(e){return p.xc(t),p.dc(3).pageChanged(e)})),p.Rb()}if(2&t){const t=p.dc(3);p.kc("pageSize",t.pageSize)("hideColumns",t.manageAuth?p.oc(5,J):p.oc(6,W))("groups",t.groups)("selection",t.selectionGroups)("disableMembers",!1)}}function Y(t,e){if(1&t&&(p.Sb(0,"div"),p.Hc(1,Z,1,7,"perun-web-apps-groups-list",21),p.Rb()),2&t){const t=p.dc(2);p.Ab(1),p.kc("ngIf",t.groups)}}function $(t,e){if(1&t&&(p.Hc(0,j,1,0,"perun-web-apps-refresh-button",5),p.Hc(1,G,3,3,"button",6),p.Hc(2,U,3,4,"button",7),p.Hc(3,V,6,5,"mat-form-field",8),p.Hc(4,q,1,0,"mat-spinner",9),p.Hc(5,Y,2,1,"div",10)),2&t){const t=p.dc();p.kc("ngIf",!t.loading),p.Ab(1),p.kc("ngIf",!t.loading&&t.manageAuth),p.Ab(1),p.kc("ngIf",!t.loading&&t.manageAuth),p.Ab(1),p.kc("ngIf",!t.loading),p.Ab(1),p.kc("ngIf",t.loading),p.Ab(1),p.kc("ngIf",!t.loading)}}function X(t,e){1&t&&(p.Sb(0,"app-alert",23),p.Jc(1),p.ec(2,"translate"),p.Rb()),2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Q=(()=>{class t{constructor(t,e,i,s,o){this.dialog=t,this.tableConfigService=e,this.authzService=i,this.storeService=s,this.guiAuthResolver=o,this.groups=null,this.managers=null,this.selectionUsers=new n.c(!0,[]),this.selectionGroups=new n.c(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=u.H,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(t=>this.availableRolesPrivileges.get(t).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.routeAuth=this.guiAuthResolver.isPerunAdmin(),this.refreshUsers()}changeRolePrivileges(){this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let t=!1;for(const e of this.roleModes)if(this.selectedMode===e.toLowerCase()){t=!0;break}t||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(t){this.loading=!0,0===t.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let t=[l.a.USER_DEF_ORGANIZATION,l.a.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,t,!1,!0).subscribe(t=>{this.managers=t,this.selectionUsers.clear(),this.loading=!1},()=>{this.loading=!1})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(t=>{this.groups=t,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const t=Object(h.o)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(s.a,t).afterClosed().subscribe(t=>{t&&this.refreshUsers()})}removeManager(){const t=Object(h.o)();t.width="450px",t.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(o.a,t).afterClosed().subscribe(t=>{t&&this.refreshUsers()})}removeGroup(){const t=Object(h.o)();t.width="450px",t.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(r.a,t).afterClosed().subscribe(t=>{t&&this.refreshGroups()})}addGroup(){const t=Object(h.o)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(a.a,t).afterClosed().subscribe(t=>{t&&this.refreshGroups()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Mb(f.b),p.Mb(u.pb),p.Mb(c.d),p.Mb(d.m),p.Mb(d.h))},t.\u0275cmp=p.Gb({type:t,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(t,e){2&t&&p.Eb("router-component",!0)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],["class","mt-2",3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 mt-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],["class","mr-2 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page",4,"ngIf"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page"],[3,"pageSize","hideColumns","groups","selection","disableMembers","page",4,"ngIf"],[3,"pageSize","hideColumns","groups","selection","disableMembers","page"],["alert_type","warn"]],template:function(t,e){1&t&&(p.Sb(0,"h1",0),p.Jc(1),p.ec(2,"translate"),p.Rb(),p.Sb(3,"mat-tab-group",1),p.Zb("selectedTabChange",(function(t){return e.tabChanged(t)})),p.Sb(4,"mat-tab"),p.Hc(5,k,2,3,"ng-template",2),p.Hc(6,H,6,6,"ng-template",3),p.Rb(),p.Sb(7,"mat-tab"),p.Hc(8,B,2,3,"ng-template",2),p.Hc(9,$,6,6,"ng-template",3),p.Rb(),p.Rb(),p.Hc(10,X,3,3,"app-alert",4)),2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),p.Ab(9),p.kc("ngIf",0===e.availableRoles.length))},directives:[g.c,g.a,g.d,g.b,b.t,m.a,A.b,y.c,y.g,w.a,b.s,v.n,_.c,S.a,E.a,R.a],pipes:[C.d,T.a],styles:[""]}),t})()},NZNE:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),s=i("EM62");let o=(()=>{class t{transform(t,e){return Object(n.v)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"memberEmail",type:t,pure:!0}),t})()},"O/Vf":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),s=i("EM62");let o=(()=>{class t{transform(t,...e){return Object(n.F)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"userLogins",type:t,pure:!0}),t})()},O82x:function(t,e,i){"use strict";i.d(e,"a",(function(){return ht}));var n=i("EM62"),s=i("oqI+"),o=i("VMyb"),r=i("Ssnw"),a=i("DnAX"),c=i("8clQ"),l=i("OZ4H"),u=i("sEIs"),h=i("s2Ay"),d=i("2kYt"),p=i("csyo"),f=i("FlRo"),g=i("PBFl"),b=i("bFHC"),m=i("nIj0"),A=i("Y2X+"),y=i("FcRk"),w=i("g3Wv");const v=["table"];function _(t,e){1&t&&n.Nb(0,"mat-spinner",3)}function S(t,e){1&t&&n.Nb(0,"th",20)}function E(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",21),n.Sb(1,"button",22),n.Zb("mousedown",(function(){return n.xc(t),n.dc(2).dragDisabled=!1})),n.Sb(2,"mat-icon"),n.Jc(3,"drag_indicator"),n.Rb(),n.Rb(),n.Rb()}}function R(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")))}function C(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.shortname)}}function T(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")))}function k(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.ec(2,"applicationFormItemType"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.type))}}function I(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")))}function O(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",25),n.Rb(),n.Rb())}function D(t,e){1&t&&(n.Sb(0,"div",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_VALUE")," "))}function M(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",27),n.Rb(),n.Rb())}function P(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",28),n.Nb(3,"br"),n.Nb(4,"input",25),n.Rb(),n.Rb())}function x(t,e){if(1&t&&(n.Sb(0,"div"),n.Nb(1,"input",31),n.Jc(2),n.Nb(3,"br"),n.Rb()),2&t){const t=e.$implicit;n.Ab(2),n.Lc(" ",t,"")}}function N(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Hc(2,x,4,1,"div",29),n.Nb(3,"input",30),n.ec(4,"translate"),n.Rb(),n.Rb()),2&t){const t=n.dc().$implicit,e=n.dc(2);n.Ab(2),n.kc("ngForOf",e.getLocalizedOptions(t)),n.Ab(1),n.lc("value",n.fc(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function L(t,e){if(1&t&&(n.Sb(0,"div"),n.Nb(1,"span",32),n.Rb()),2&t){const t=n.dc().$implicit,e=n.dc(2);n.Ab(1),n.kc("innerHTML",e.getLocalizedLabel(t),n.yc)}}function F(t,e){if(1&t&&(n.Sb(0,"option"),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t)}}function z(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"select"),n.Hc(2,F,2,1,"option",29),n.Rb(),n.Rb()),2&t){const t=n.dc().$implicit,e=n.dc(2);n.Ab(2),n.kc("ngForOf",e.getLocalizedOptions(t))}}function H(t,e){1&t&&(n.Sb(0,"div"),n.Nb(1,"textarea"),n.Rb())}function B(t,e){if(1&t&&(n.Sb(0,"option",36),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t)}}function j(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",25),n.Rb(),n.Rb())}function G(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div"),n.Sb(1,"select",33),n.Zb("ngModelChange",(function(e){n.xc(t);const i=n.dc().$implicit;return n.dc(2).mapForCombobox[i.id]=e})),n.Hc(2,B,2,1,"option",34),n.Sb(3,"option",35),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Rb(),n.Hc(6,j,3,0,"div",23),n.Rb()}if(2&t){const t=n.dc().$implicit,e=n.dc(2);n.Ab(1),n.kc("ngModel",e.mapForCombobox[t.id]),n.Ab(1),n.kc("ngForOf",e.getLocalizedOptions(t)),n.Ab(2),n.Kc(n.fc(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),n.Ab(2),n.kc("ngIf","true"===e.mapForCombobox[t.id])}}function U(t,e){if(1&t&&(n.Sb(0,"div"),n.Nb(1,"input",37),n.Jc(2),n.Rb()),2&t){const t=e.$implicit;n.Ab(2),n.Lc(" ",t," ")}}function K(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Hc(2,U,3,1,"div",29),n.Rb(),n.Rb()),2&t){const t=n.dc().$implicit,e=n.dc(2);n.Ab(2),n.kc("ngForOf",e.getLocalizedOptions(t))}}function V(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"button",38),n.Jc(2),n.Rb(),n.Rb()),2&t){const t=n.dc().$implicit,e=n.dc(2);n.Ab(2),n.Kc(e.getLocalizedLabel(t))}}function q(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"select",39),n.Sb(2,"option",40),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Sb(5,"option",41),n.Jc(6,"(GMT -12:00) Eniwetok, Kwajalein"),n.Rb(),n.Sb(7,"option",42),n.Jc(8,"(GMT -11:00) Midway Island, Samoa"),n.Rb(),n.Sb(9,"option",43),n.Jc(10,"(GMT -10:00) Hawaii"),n.Rb(),n.Sb(11,"option",44),n.Jc(12,"(GMT -9:30) Taiohae"),n.Rb(),n.Sb(13,"option",45),n.Jc(14,"(GMT -9:00) Alaska"),n.Rb(),n.Sb(15,"option",46),n.Jc(16,"(GMT -8:00) Pacific Time (US & Canada)"),n.Rb(),n.Sb(17,"option",47),n.Jc(18,"(GMT -7:00) Mountain Time (US & Canada)"),n.Rb(),n.Sb(19,"option",48),n.Jc(20,"(GMT -6:00) Central Time (US & Canada), Mexico City"),n.Rb(),n.Sb(21,"option",49),n.Jc(22,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),n.Rb(),n.Sb(23,"option",50),n.Jc(24,"(GMT -4:30) Caracas"),n.Rb(),n.Sb(25,"option",51),n.Jc(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),n.Rb(),n.Sb(27,"option",52),n.Jc(28,"(GMT -3:30) Newfoundland"),n.Rb(),n.Sb(29,"option",53),n.Jc(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),n.Rb(),n.Sb(31,"option",54),n.Jc(32,"(GMT -2:00) Mid-Atlantic"),n.Rb(),n.Sb(33,"option",55),n.Jc(34,"(GMT -1:00) Azores, Cape Verde Islands"),n.Rb(),n.Sb(35,"option",56),n.Jc(36,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),n.Rb(),n.Sb(37,"option",57),n.Jc(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),n.Rb(),n.Sb(39,"option",58),n.Jc(40,"(GMT +2:00) Kaliningrad, South Africa"),n.Rb(),n.Sb(41,"option",59),n.Jc(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),n.Rb(),n.Sb(43,"option",60),n.Jc(44,"(GMT +3:30) Tehran"),n.Rb(),n.Sb(45,"option",61),n.Jc(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),n.Rb(),n.Sb(47,"option",62),n.Jc(48,"(GMT +4:30) Kabul"),n.Rb(),n.Sb(49,"option",63),n.Jc(50,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),n.Rb(),n.Sb(51,"option",64),n.Jc(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),n.Rb(),n.Sb(53,"option",65),n.Jc(54,"(GMT +5:45) Kathmandu, Pokhara"),n.Rb(),n.Sb(55,"option",66),n.Jc(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),n.Rb(),n.Sb(57,"option",67),n.Jc(58,"(GMT +6:30) Yangon, Mandalay"),n.Rb(),n.Sb(59,"option",68),n.Jc(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),n.Rb(),n.Sb(61,"option",69),n.Jc(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),n.Rb(),n.Sb(63,"option",70),n.Jc(64,"(GMT +8:45) Eucla"),n.Rb(),n.Sb(65,"option",71),n.Jc(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),n.Rb(),n.Sb(67,"option",72),n.Jc(68,"(GMT +9:30) Adelaide, Darwin"),n.Rb(),n.Sb(69,"option",73),n.Jc(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),n.Rb(),n.Sb(71,"option",74),n.Jc(72,"(GMT +10:30) Lord Howe Island"),n.Rb(),n.Sb(73,"option",75),n.Jc(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),n.Rb(),n.Sb(75,"option",76),n.Jc(76,"(GMT +11:30) Norfolk Island"),n.Rb(),n.Sb(77,"option",77),n.Jc(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),n.Rb(),n.Sb(79,"option",78),n.Jc(80,"(GMT +12:45) Chatham Islands"),n.Rb(),n.Sb(81,"option",79),n.Jc(82,"(GMT +13:00) Apia, Nukualofa"),n.Rb(),n.Sb(83,"option",80),n.Jc(84,"(GMT +14:00) Line Islands, Tokelau"),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Ab(3),n.Kc(n.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")))}function J(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"button",38),n.Jc(2),n.Rb(),n.Rb()),2&t){const t=n.dc().$implicit,e=n.dc(2);n.Ab(2),n.Kc(e.getLocalizedLabel(t))}}function W(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",37),n.Jc(3," example group1 "),n.Nb(4,"br"),n.Nb(5,"input",37),n.Jc(6," example group2 "),n.Nb(7,"br"),n.Nb(8,"input",37),n.Jc(9," example group3 "),n.Rb(),n.Rb())}function Z(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,O,3,0,"div",23),n.Hc(2,D,3,3,"div",24),n.Hc(3,M,3,0,"div",23),n.Hc(4,P,5,0,"div",23),n.Hc(5,N,5,4,"div",23),n.Hc(6,L,2,1,"div",23),n.Hc(7,z,3,1,"div",23),n.Hc(8,H,2,0,"div",23),n.Hc(9,G,7,6,"div",23),n.Hc(10,K,3,1,"div",23),n.Hc(11,V,3,1,"div",23),n.Hc(12,q,85,3,"div",23),n.Hc(13,J,3,1,"div",23),n.Hc(14,W,10,0,"div",23),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf","TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type),n.Ab(1),n.kc("ngIf","FROM_FEDERATION_HIDDEN"===t.type),n.Ab(1),n.kc("ngIf","FROM_FEDERATION_SHOW"===t.type),n.Ab(1),n.kc("ngIf","PASSWORD"===t.type),n.Ab(1),n.kc("ngIf","RADIO"===t.type),n.Ab(1),n.kc("ngIf","HEADING"===t.type||"HTML_COMMENT"===t.type),n.Ab(1),n.kc("ngIf","SELECTIONBOX"===t.type),n.Ab(1),n.kc("ngIf","TEXTAREA"===t.type),n.Ab(1),n.kc("ngIf","COMBOBOX"===t.type),n.Ab(1),n.kc("ngIf","CHECKBOX"===t.type),n.Ab(1),n.kc("ngIf","SUBMIT_BUTTON"===t.type),n.Ab(1),n.kc("ngIf","TIMEZONE"===t.type),n.Ab(1),n.kc("ngIf","AUTO_SUBMIT_BUTTON"===t.type),n.Ab(1),n.kc("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type)}}function Y(t,e){1&t&&n.Nb(0,"th",20)}function $(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",82),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc(2).openManagingGroups(e)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"supervised_user_circle"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function X(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,$,4,3,"button",81),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&!t.forDelete)}}function Q(t,e){1&t&&n.Nb(0,"th",20)}function tt(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",85),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc(2).edit(e)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"edit"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function et(t,e){1&t&&(n.Sb(0,"div",86),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function it(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,tt,4,3,"button",83),n.Hc(2,et,3,3,"div",84),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",!t.forDelete),n.Ab(1),n.kc("ngIf",t.forDelete)}}function nt(t,e){1&t&&n.Nb(0,"th",20)}function st(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",88),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc(2).delete(e)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"delete"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}function ot(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",82),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc(2).restore(e)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"settings_backup_restore"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function rt(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,st,4,3,"button",87),n.Hc(2,ot,4,3,"button",81),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",!t.forDelete),n.Ab(1),n.kc("ngIf",t.forDelete)}}function at(t,e){1&t&&n.Nb(0,"tr",89)}function ct(t,e){if(1&t&&n.Nb(0,"tr",90),2&t){const t=e.$implicit,i=n.dc(2);n.Eb("make-green",t.id<=0)("make-red",t.forDelete)("make-yellow",-1!=i.itemsChanged.indexOf(t.id)&&!t.forDelete&&t.id>0),n.kc("cdkDragData",t)}}function lt(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div",4),n.Sb(1,"div",5),n.Sb(2,"div",6),n.Sb(3,"table",7,8),n.Zb("cdkDropListDropped",(function(e){return n.xc(t),n.dc().drop(e)})),n.Qb(5,9),n.Hc(6,S,1,0,"th",10),n.Hc(7,E,4,0,"td",11),n.Pb(),n.Qb(8,12),n.Hc(9,R,3,3,"th",10),n.Hc(10,C,2,1,"td",11),n.Pb(),n.Qb(11,13),n.Hc(12,T,3,3,"th",10),n.Hc(13,k,3,3,"td",11),n.Pb(),n.Qb(14,14),n.Hc(15,I,3,3,"th",10),n.Hc(16,Z,15,14,"td",11),n.Pb(),n.Qb(17,15),n.Hc(18,Y,1,0,"th",10),n.Hc(19,X,2,1,"td",11),n.Pb(),n.Qb(20,16),n.Hc(21,Q,1,0,"th",10),n.Hc(22,it,3,2,"td",11),n.Pb(),n.Qb(23,17),n.Hc(24,nt,1,0,"th",10),n.Hc(25,rt,3,2,"td",11),n.Pb(),n.Hc(26,at,1,0,"tr",18),n.Hc(27,ct,1,7,"tr",19),n.Rb(),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(3),n.kc("cdkDropListDisabled",t.dragDisabled)("dataSource",t.dataSource),n.Ab(23),n.kc("matHeaderRowDef",t.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",t.displayedColumns)}}function ut(t,e){1&t&&(n.Sb(0,"app-alert",91),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let ht=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.notificator=e,this.router=i,this.translate=s,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.o,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnChanges(t){this.dataSource=this.applicationFormItems}edit(t){const e=Object(c.o)();e.width="600px",e.height="600px",e.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(a.a,e).afterClosed().subscribe(e=>{e&&(this.itemsChanged.push(t.id),this.applicationFormItemsChange.emit())})}delete(t){const e=Object(c.o)();e.width="500px",this.dialog.open(o.a,e).afterClosed().subscribe(e=>{e&&(t.forDelete=!0,0===t.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(t),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(t){this.dragDisabled=!0;const e=this.applicationFormItems.indexOf(t.item.data);Object(s.h)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(t){if(t.i18n[this.translate.getDefaultLang()]){const e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}getLocalizedLabel(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}restore(t){t.forDelete=!1}openManagingGroups(t){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.b),n.Mb(r.l),n.Mb(u.f),n.Mb(h.e))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){var i;1&t&&n.Qc(v,!0),2&t&&n.sc(i=n.ac())&&(e.table=i.first)},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.yb],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","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"],[4,"ngIf"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.Hc(0,_,1,0,"mat-spinner",0),n.Hc(1,lt,28,4,"div",1),n.Hc(2,ut,3,3,"app-alert",2)),2&t&&(n.kc("ngIf",e.loading),n.Ab(1),n.kc("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.Ab(1),n.kc("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[d.t,p.c,f.n,s.e,f.c,f.i,f.b,f.k,f.m,f.h,f.a,g.b,b.a,m.H,m.s,m.t,d.s,m.w,m.G,m.D,m.r,m.u,A.a,f.j,f.l,s.a,y.a],pipes:[h.d,w.a],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t})()},OF3q:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("nIj0"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("csyo"),h=i("29Wa"),d=i("Cd2c"),p=i("PBFl"),f=i("+Tre"),g=i("ABWF");function b(t,e){1&t&&a.Nb(0,"mat-spinner",3)}function m(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-checkbox",13),a.Zb("click",(function(){return a.xc(t),a.dc(2).loadVoGroups()}))("ngModelChange",(function(e){return a.xc(t),a.dc(2).asSubgroup=e})),a.Jc(1),a.ec(2,"translate"),a.Rb()}if(2&t){const t=a.dc(2);a.kc("labelPosition","before")("ngModel",t.asSubgroup),a.Ab(1),a.Lc(" ",a.fc(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function A(t,e){if(1&t){const t=a.Tb();a.Sb(0,"perun-web-apps-group-search-select",14),a.Zb("groupSelected",(function(e){return a.xc(t),a.dc(2).selectedParent=e})),a.Rb()}if(2&t){const t=a.dc(2);a.kc("disableAutoSelect",!0)("groups",t.voGroups)}}function y(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"div",4),a.Sb(2,"mat-form-field"),a.Sb(3,"label",5),a.Nb(4,"input",6),a.ec(5,"translate"),a.Rb(),a.Sb(6,"mat-error"),a.Jc(7),a.ec(8,"translate"),a.Rb(),a.Rb(),a.Sb(9,"mat-form-field",7),a.Sb(10,"label",5),a.Nb(11,"textarea",6),a.ec(12,"translate"),a.Rb(),a.Sb(13,"mat-error"),a.Jc(14),a.ec(15,"translate"),a.Rb(),a.Rb(),a.Hc(16,m,3,5,"mat-checkbox",8),a.Hc(17,A,1,2,"perun-web-apps-group-search-select",9),a.Rb(),a.Sb(18,"div",10),a.Sb(19,"button",11),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(20),a.ec(21,"translate"),a.Rb(),a.Sb(22,"button",12),a.Zb("click",(function(){return a.xc(t),a.dc().onSubmit()})),a.Jc(23),a.ec(24,"translate"),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(4),a.lc("placeholder",a.fc(5,11,"DIALOGS.CREATE_GROUP.NAME")),a.kc("formControl",t.nameControl),a.Ab(3),a.Lc(" ",t.invalidNameMessage.length?t.invalidNameMessage:a.fc(8,13,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),a.Ab(4),a.lc("placeholder",a.fc(12,15,"DIALOGS.CREATE_GROUP.DESCRIPTION")),a.kc("formControl",t.descriptionControl),a.Ab(3),a.Lc(" ",a.fc(15,17,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),a.Ab(2),a.kc("ngIf",t.isNotSubGroup),a.Ab(1),a.kc("ngIf",t.asSubgroup),a.Ab(3),a.Lc(" ",a.fc(21,19,"DIALOGS.CREATE_GROUP.CANCEL")," "),a.Ab(2),a.kc("disabled",t.nameControl.invalid||t.descriptionControl.invalid||t.asSubgroup&&null===t.selectedParent||t.loading),a.Ab(1),a.Lc(" ",a.fc(24,21,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let w=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.groupService=i,this.translate=n,this.notificator=s,this.store=o,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.voGroups=[],this.nameFunction=t=>t.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?n.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(t=>this.title=t):n.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(t=>{this.title=t+this.data.parentGroup.name}),n.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(t=>this.successSubGroupMessage=t)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new r.g("",[r.F.required,r.F.pattern(this.secondaryRegex?this.secondaryRegex:""),r.F.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.g("",[r.F.required,r.F.maxLength(129)]),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(t=>"members"!==t.name)})}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.h),a.Mb(c.e),a.Mb(s.l),a.Mb(s.m))},t.\u0275cmp=a.Gb({type:t,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","","required","",3,"formControl","placeholder"],[1,"mt-4"],[3,"labelPosition","ngModel","click","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",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,"labelPosition","ngModel","click","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.Rb(),a.Sb(2,"div"),a.Hc(3,b,1,0,"mat-spinner",1),a.Hc(4,y,25,23,"div",2),a.Rb()),2&t&&(a.Ab(1),a.Kc(e.title),a.Ab(1),a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[n.j,l.t,u.c,n.g,h.c,d.b,r.c,r.C,r.r,r.h,h.b,n.c,p.b,f.a,r.u,g.a],pipes:[c.d],styles:[""]}),t})()},OIgT:function(t,e,i){"use strict";e.decode=e.parse=i("wOqL"),e.encode=e.stringify=i("f8+N")},OL2r:function(t,e,i){"use strict";i.d(e,"a",(function(){return M}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("FlRo"),a=i("8clQ"),c=i("+0js"),l=i("2kYt"),u=i("EM62"),h=i("s2Ay"),d=i("PBFl"),p=i("csyo"),f=i("bFHC"),g=i("Y2X+"),b=i("j+u3");function m(t,e){1&t&&u.Nb(0,"mat-spinner",6)}function A(t,e){1&t&&(u.Sb(0,"th",17),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Kc(u.fc(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")))}function y(t,e){if(1&t&&(u.Sb(0,"td",18),u.Jc(1),u.Rb()),2&t){const t=e.$implicit;u.Ab(1),u.Lc(" ",t.user.id," ")}}function w(t,e){1&t&&(u.Sb(0,"th",17),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Kc(u.fc(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")))}function v(t,e){if(1&t&&(u.Sb(0,"td",18),u.Jc(1),u.ec(2,"userFullName"),u.Rb()),2&t){const t=e.$implicit;u.Ab(1),u.Lc(" ",u.fc(2,1,t.user)," ")}}function _(t,e){1&t&&(u.Sb(0,"th",17),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Kc(u.fc(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")))}function S(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",20),u.Zb("click",(function(){u.xc(t);const e=u.dc().$implicit;return u.dc(2).changeExpiration(e)})),u.Sb(1,"mat-icon"),u.Jc(2," today "),u.Rb(),u.Rb()}}function E(t,e){if(1&t&&(u.Sb(0,"td",18),u.Sb(1,"span"),u.Jc(2),u.Rb(),u.Hc(3,S,3,0,"button",19),u.Rb()),2&t){const t=e.$implicit,i=u.dc(2);u.Ab(2),u.Kc(i.parseDate(t.validityTo)),u.Ab(1),u.kc("ngIf",i.isExpirationAuthorized(t))}}function R(t,e){1&t&&u.Nb(0,"th",17)}function C(t,e){1&t&&(u.Sb(0,"mat-icon",25),u.Jc(1,"clear"),u.Rb())}function T(t,e){1&t&&(u.Sb(0,"mat-icon"),u.Jc(1,"settings_backup_restore"),u.Rb())}function k(t,e){if(1&t){const t=u.Tb();u.Sb(0,"td",18),u.Sb(1,"div",21),u.ec(2,"translate"),u.Sb(3,"button",22),u.Zb("click",(function(){u.xc(t);const i=e.$implicit;return u.dc(2).markSponsor(i)})),u.Hc(4,C,2,0,"mat-icon",23),u.Hc(5,T,2,0,"mat-icon",24),u.Rb(),u.Rb(),u.Rb()}if(2&t){const t=e.$implicit,i=u.dc(2);u.Ab(1),u.lc("matTooltip",u.fc(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),u.kc("matTooltipPosition","above")("matTooltipDisabled",i.isRemoveAuthorized(t)),u.Ab(2),u.kc("disabled",!i.isRemoveAuthorized(t)),u.Ab(1),u.kc("ngIf",!i.sponsorsToRemove.has(t.user.id)),u.Ab(1),u.kc("ngIf",i.sponsorsToRemove.has(t.user.id))}}function I(t,e){1&t&&u.Nb(0,"tr",26)}function O(t,e){if(1&t&&u.Nb(0,"tr",27),2&t){const t=e.$implicit,i=u.dc(2);u.Eb("make-red",i.sponsorsToRemove.has(t.user.id))}}function D(t,e){if(1&t&&(u.Sb(0,"div",7),u.Sb(1,"table",8),u.Qb(2,9),u.Hc(3,A,3,3,"th",10),u.Hc(4,y,2,1,"td",11),u.Pb(),u.Qb(5,12),u.Hc(6,w,3,3,"th",10),u.Hc(7,v,3,3,"td",11),u.Pb(),u.Qb(8,13),u.Hc(9,_,3,3,"th",10),u.Hc(10,E,4,2,"td",11),u.Pb(),u.Qb(11,14),u.Hc(12,R,1,0,"th",10),u.Hc(13,k,6,8,"td",11),u.Pb(),u.Hc(14,I,1,0,"tr",15),u.Hc(15,O,1,2,"tr",16),u.Rb(),u.Rb()),2&t){const t=u.dc();u.Ab(1),u.kc("dataSource",t.dataSource),u.Ab(13),u.kc("matHeaderRowDef",t.displayedColumns),u.Ab(1),u.kc("matRowDefColumns",t.displayedColumns)}}let M=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.data=e,this.memberService=i,this.userService=n,this.notificator=s,this.authResolver=o,this.translate=r,this.dialog=a,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new r.o(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}removeSponsors(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();this.memberService.removeSponsor(this.data.member.id,e).subscribe(()=>{this.removeSponsors(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}onCancel(){this.dialogRef.close(!1)}isRemoveAuthorized(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}isExpirationAuthorized(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}parseDate(t){return null===t?"Never expire":Object(l.I)(t,"d.M.y","en")}changeExpiration(t){const e=Object(a.o)();e.width="400px",e.data={memberId:this.data.member.id,sponsor:t,mode:"sponsor"},this.dialog.open(c.d,e).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(t=>{this.sponsors=t,this.dataSource=new r.o(this.sponsors),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(u.Mb(s.i),u.Mb(s.a),u.Mb(n.i),u.Mb(n.p),u.Mb(o.l),u.Mb(o.h),u.Mb(h.e),u.Mb(s.b))},t.\u0275cmp=u.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(u.Sb(0,"h1",0),u.Jc(1),u.ec(2,"translate"),u.Rb(),u.Sb(3,"div"),u.Hc(4,m,1,0,"mat-spinner",1),u.Hc(5,D,16,3,"div",2),u.Sb(6,"div",3),u.Sb(7,"button",4),u.Zb("click",(function(){return e.onCancel()})),u.Jc(8),u.ec(9,"translate"),u.Rb(),u.Sb(10,"button",5),u.Zb("click",(function(){return e.onSubmit()})),u.Jc(11),u.ec(12,"translate"),u.Rb(),u.Rb(),u.Rb()),2&t&&(u.Ab(1),u.Kc(u.fc(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),u.Ab(2),u.Cb(e.theme),u.Ab(1),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading),u.Ab(3),u.Lc(" ",u.fc(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL"),""),u.Ab(2),u.kc("disabled",e.loading||0===e.sponsorsToRemove.size),u.Ab(1),u.Lc(" ",u.fc(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT"),""))},directives:[s.j,l.t,s.c,d.b,p.c,s.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,f.a,g.a,r.j,r.l],pipes:[h.d,b.a],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t})()},OZ4H:function(t,e,i){"use strict";i.d(e,"a",(function(){return R})),i.d(e,"b",(function(){return I})),i.d(e,"c",(function(){return x})),i.d(e,"d",(function(){return D})),i.d(e,"e",(function(){return y})),i.d(e,"f",(function(){return _})),i.d(e,"g",(function(){return P})),i.d(e,"h",(function(){return L})),i.d(e,"i",(function(){return E})),i.d(e,"j",(function(){return M}));var n=i("HYj3"),s=i("Sv/w"),o=i("EM62"),r=i("mFH5"),a=i("E5oP"),c=i("2kYt"),l=i("ZTXN"),u=i("i9xl"),h=i("ROBh"),d=i("xVbo"),p=i("J+dc"),f=i("jIqt"),g=i("f7+R"),b=i("fAiE"),m=i("sg/T");function A(t,e){}class y{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:Object(g.n)("dialogContainer",[Object(g.k)("void, exit",Object(g.l)({opacity:0,transform:"scale(0.7)"})),Object(g.k)("enter",Object(g.l)({transform:"none"})),Object(g.m)("* => enter",Object(g.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(g.l)({transform:"none",opacity:1}))),Object(g.m)("* => void, * => exit",Object(g.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(g.l)({opacity:0})))])};function v(){throw Error("Attempting to attach dialog content after content is already attached")}let _=(()=>{class t extends s.a{constructor(t,e,i,n,s){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new o.o,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&v(),this._setupFocusTrap(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&v(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&v(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||this._focusTrap.focusInitialElement()||this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.l),o.Mb(m.i),o.Mb(o.h),o.Mb(c.e,8),o.Mb(y))},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&o.Dc(s.c,!0),2&t&&o.sc(i=o.ac())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.Fc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(o.Bb("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.Gc("@dialogContainer",e._state))},features:[o.xb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.Hc(0,A,0,0,"ng-template",0)},directives:[s.c],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),S=0;class E{constructor(t,e,i="mat-dialog-"+S++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.a,this._afterClosed=new l.a,this._beforeClosed=new l.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Object(d.a)(t=>"done"===t.phaseName&&"enter"===t.toState),Object(p.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Object(d.a)(t=>"done"===t.phaseName&&"exit"===t.toState),Object(p.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Object(d.a)(t=>t.keyCode===b.h&&!this.disableClose&&!Object(b.t)(t))).subscribe(t=>{t.preventDefault(),this.close()}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Object(d.a)(t=>"start"===t.phaseName),Object(p.a)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const R=new o.r("MatDialogData"),C=new o.r("mat-dialog-default-options"),T=new o.r("mat-dialog-scroll-strategy"),k={provide:T,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,i,n,s,o,r){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=o,this._overlayContainer=r,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.a,this._afterOpenedAtThisLevel=new l.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(u.a)(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(Object(f.a)(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}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new y)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new n.d({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=o.s.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new s.d(_,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const r=new E(i,e,n.id);if(t instanceof o.M)e.attachTemplatePortal(new s.j(t,null,{$implicit:n.data,dialogRef:r}));else{const i=this._createInjector(n,r,e),o=e.attachComponentPortal(new s.d(t,n.viewContainerRef,i));r.componentInstance=o.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:_,useValue:i},{provide:R,useValue:t.data},{provide:E,useValue:e}];return!t.direction||n&&n.get(a.c,null)||s.push({provide:a.c,useValue:{value:t.direction,change:Object(h.a)()}}),o.s.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.c),o.Wb(o.s),o.Wb(c.n,8),o.Wb(C,8),o.Wb(T),o.Wb(t,12),o.Wb(n.e))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})(),O=0,D=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=N(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(E,8),o.Mb(o.l),o.Mb(I))},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&o.Zb("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&o.Bb("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.yb]}),t})(),M=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+O++}ngOnInit(){this._dialogRef||(this._dialogRef=N(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(E,8),o.Mb(o.l),o.Mb(I))},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Vb("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function N(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let L=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[I,k],imports:[[n.f,s.i,r.i],r.i]}),t})()},OcHD:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"groupExpiration",type:t,pure:!0}),t})()},Ohay:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5uGe");function s(t,e){return i=>i.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new r(t,this.compare,this.keySelector))}}class r extends n.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}},P2UU:function(t,e,i){"use strict";i.d(e,"a",(function(){return v}));var n=i("Ssnw"),s=i("X2Q7"),o=i("nIj0"),r=i("EM62"),a=i("OZ4H"),c=i("s2Ay"),l=i("2kYt"),u=i("csyo"),h=i("29Wa"),d=i("Cd2c"),p=i("R7+U"),f=i("mFH5"),g=i("PBFl"),b=i("Y2X+");function m(t,e){1&t&&r.Nb(0,"mat-spinner",4)}function A(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function y(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function w(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div"),r.Sb(1,"div",5),r.Sb(2,"mat-form-field"),r.Nb(3,"input",6),r.ec(4,"translate"),r.Sb(5,"mat-error"),r.Jc(6),r.ec(7,"translate"),r.Rb(),r.Rb(),r.Sb(8,"mat-form-field"),r.Nb(9,"input",6),r.ec(10,"translate"),r.Hc(11,A,3,3,"mat-error",3),r.Hc(12,y,3,3,"mat-error",3),r.Rb(),r.Sb(13,"mat-form-field"),r.Sb(14,"mat-select",7),r.Zb("valueChange",(function(e){return r.xc(t),r.dc().type=e})),r.Sb(15,"mat-option",8),r.Jc(16),r.ec(17,"translate"),r.Rb(),r.Sb(18,"mat-option",9),r.Jc(19),r.ec(20,"translate"),r.Rb(),r.Rb(),r.Rb(),r.Rb(),r.Sb(21,"div",10),r.Sb(22,"button",11),r.Zb("click",(function(){return r.xc(t),r.dc().onCancel()})),r.Jc(23),r.ec(24,"translate"),r.Rb(),r.Sb(25,"div",12),r.ec(26,"translate"),r.Sb(27,"button",13),r.Zb("click",(function(){return r.xc(t),r.dc().onSubmit()})),r.Jc(28),r.ec(29,"translate"),r.Rb(),r.Rb(),r.Rb(),r.Rb()}if(2&t){const t=r.dc();r.Ab(3),r.lc("placeholder",r.fc(4,15,"DIALOGS.ADD_OWNER.NAME")),r.kc("formControl",t.nameCtrl),r.Ab(3),r.Lc(" ",r.fc(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),r.Ab(3),r.lc("placeholder",r.fc(10,19,"DIALOGS.ADD_OWNER.CONTACT")),r.kc("formControl",t.contactCtrl),r.Ab(2),r.kc("ngIf",t.contactCtrl.hasError("required")),r.Ab(1),r.kc("ngIf",t.contactCtrl.invalid&&!t.contactCtrl.hasError("required")),r.Ab(2),r.kc("value",t.type),r.Ab(2),r.Kc(r.fc(17,21,"DIALOGS.ADD_OWNER.TYPE1")),r.Ab(3),r.Kc(r.fc(20,23,"DIALOGS.ADD_OWNER.TYPE2")),r.Ab(4),r.Lc(" ",r.fc(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),r.Ab(2),r.lc("matTooltip",r.fc(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),r.kc("matTooltipDisabled",t.nameCtrl.valid&&t.contactCtrl.valid),r.Ab(2),r.kc("disabled",t.nameCtrl.invalid||t.contactCtrl.invalid),r.Ab(1),r.Lc(" ",r.fc(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let v=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.notificator=e,this.ownersManagerService=i,this.translate=n,this.type="1",this.emailRegex=/^(([^<>+()\[\]\\.,;:\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]{2,3}))$/,n.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new o.g(null,[o.F.required,o.F.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new o.g(null,[o.F.required,o.F.pattern(this.emailRegex)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number.parseInt(this.type,10)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(a.i),r.Mb(n.l),r.Mb(s.j),r.Mb(c.e))},t.\u0275cmp=r.Gb({type:t,selectors:[["app-add-owner-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"],[3,"value","valueChange"],["value","1"],["value","0"],["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(t,e){1&t&&(r.Sb(0,"div",0),r.Sb(1,"h1",1),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Hc(4,m,1,0,"mat-spinner",2),r.Hc(5,w,30,31,"div",3),r.Rb()),2&t&&(r.Ab(2),r.Kc(r.fc(3,3,"DIALOGS.ADD_OWNER.TITLE")),r.Ab(2),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading))},directives:[a.j,l.t,u.c,a.g,h.c,d.b,o.c,o.C,o.r,o.h,h.b,p.a,f.n,a.c,g.b,b.a],pipes:[c.d],styles:[""]}),t})()},P4Xx:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("IdLP"),s=i("FU6l"),o=i("YtkY"),r=i("X0qr"),a=i("GoAz");function c(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return l(e,null);if(Object(r.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(o.a)(t=>e(...t)))}return l(t,null)}function l(t,e){return new n.a(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let c=0;c{u||(u=!0,r++),s[c]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}},PBFl:function(t,e,i){"use strict";i.d(e,"a",(function(){return f})),i.d(e,"b",(function(){return p})),i.d(e,"c",(function(){return g}));var n=i("mFH5"),s=i("5lCh"),o=i("EM62"),r=i("sg/T");const a=["mat-button",""],c=["*"],l=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const d=Object(n.y)(Object(n.A)(Object(n.z)(h)));let p=(()=>{class t extends d{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of u)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.l),o.Mb(r.h),o.Mb(s.a,8))},t.\u0275cmp=o.Gb({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var i;1&t&&o.Qc(n.s,!0),2&t&&o.sc(i=o.ac())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(o.Bb("disabled",e.disabled||null),o.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.xb],attrs:a,ngContentSelectors:c,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(o.jc(),o.Sb(0,"span",0),o.ic(1),o.Rb(),o.Nb(2,"div",1),o.Nb(3,"div",2)),2&t&&(o.Ab(2),o.Eb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o.kc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.s],styles:[l],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t extends p{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(r.h),o.Mb(o.l),o.Mb(s.a,8))},t.\u0275cmp=o.Gb({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&o.Zb("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(o.Bb("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),o.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[o.xb],attrs:a,ngContentSelectors:c,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(o.jc(),o.Sb(0,"span",0),o.ic(1),o.Rb(),o.Nb(2,"div",1),o.Nb(3,"div",2)),2&t&&(o.Ab(2),o.Eb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o.kc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.s],styles:[l],encapsulation:2,changeDetection:0}),t})(),g=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},imports:[[n.t,n.i],n.i]}),t})()},PCNd:function(t,e,i){"use strict";i.d(e,"a",(function(){return Vn}));var n=i("2kYt"),s=i("gpj7"),o=i("sEIs"),r=i("ulve"),a=i("PBFl"),c=i("+Tre"),l=i("mFH5"),u=i("gcUQ"),h=i("OZ4H"),d=i("zmEM"),p=i("3Uyd"),f=i("29Wa"),g=i("bFHC"),b=i("Cd2c"),m=i("iAde"),A=i("66mq"),y=i("csyo"),w=i("F1o0"),v=i("R7+U"),_=i("lQ7A"),S=i("k8N0"),E=i("W1gw"),R=i("cePI"),C=i("FlRo"),T=i("KZIX"),k=i("Y2X+"),I=i("QcI7"),O=i("Meci"),D=i("f3iV"),M=i("S17y"),P=i("Jb3d"),x=i("x9Az"),N=i("nIj0"),L=i("A1vf"),F=i("TkCa"),z=i("Ssnw"),H=i("EM62"),B=i("TQS+"),j=i("s2Ay");const G=["collapse"],U=function(){return{color:"linkTextColor"}};function K(t,e){1&t&&(H.Sb(0,"mat-icon",14),H.Jc(1,"keyboard_arrow_right"),H.Rb()),2&t&&H.kc("ngStyle",H.oc(1,U))}function V(t,e){1&t&&(H.Sb(0,"mat-icon",14),H.Jc(1,"keyboard_arrow_down"),H.Rb()),2&t&&H.kc("ngStyle",H.oc(1,U))}function q(t,e){if(1&t&&(H.Sb(0,"span",12),H.Hc(1,K,2,2,"mat-icon",13),H.Hc(2,V,2,2,"mat-icon",13),H.Rb()),2&t){const t=H.dc().$implicit,e=H.dc(2);H.Ab(1),H.kc("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),H.Ab(1),H.kc("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const J=function(t,e){return{color:t,"border-color":e}};function W(t,e){if(1&t){const t=H.Tb();H.Sb(0,"a",17),H.Zb("click",(function(){H.xc(t);const i=e.$implicit;return H.dc(4).navigate(i.url)})),H.Jc(1),H.ec(2,"translate"),H.Rb()}if(2&t){const t=e.$implicit,i=H.dc(4);H.Eb("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),H.kc("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",H.qc(9,J,i.linkTextColor,i.linkTextColor)),H.Ab(1),H.Lc(" ",H.fc(2,7,t.label)," ")}}function Z(t,e){if(1&t&&(H.Sb(0,"div",15),H.Hc(1,W,3,12,"a",16),H.Rb()),2&t){const t=H.dc().$implicit;H.kc("@rollInOut",void 0),H.Ab(1),H.kc("ngForOf",null==t?null:t.children)}}function Y(t,e){if(1&t){const t=H.Tb();H.Sb(0,"div"),H.Sb(1,"a",9),H.Zb("click",(function(){H.xc(t);const i=e.$implicit;return H.dc(2).navigate(i.url)})),H.Jc(2),H.ec(3,"translate"),H.Hc(4,q,3,2,"span",10),H.Rb(),H.Hc(5,Z,2,2,"div",11),H.Rb()}if(2&t){const t=e.$implicit,i=H.dc(2);H.Ab(1),H.Eb("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),H.kc("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",H.qc(11,J,i.linkTextColor,i.linkTextColor)),H.Ab(1),H.Lc(" ",H.fc(3,9,t.label)," "),H.Ab(2),H.kc("ngIf",t.children),H.Ab(1),H.kc("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}function $(t,e){if(1&t&&(H.Sb(0,"div"),H.Hc(1,Y,6,14,"div",8),H.Rb()),2&t){const t=H.dc();H.kc("@rollInOut",void 0),H.Ab(1),H.kc("ngForOf",t.item.links)}}const X=function(t,e){return{background:t,"border-top":e}},Q=function(t){return{color:t}},tt=function(){return{color:"currentColor"}},et=function(t){return{background:t}};let it=(()=>{class t{constructor(t,e){this.router=t,this.store=e,this.expanded=!0,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=t.url,t.events.subscribe(t=>{t instanceof o.b&&(this.currentUrl=t.url)})}ngOnInit(){}ngOnChanges(t){}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(t,e){return new RegExp(e).test(t)}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(H.Mb(o.f),H.Mb(z.m))},t.\u0275cmp=H.Gb({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){var i;1&t&&H.Qc(G,!0),2&t&&H.sc(i=H.ac())&&(e.collapseDiv=i.first)},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},features:[H.yb],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(t,e){1&t&&(H.Sb(0,"div",0),H.Sb(1,"div",1),H.Zb("click",(function(){return e.toggle()})),H.Sb(2,"div",2),H.Sb(3,"a",3),H.Sb(4,"div"),H.Nb(5,"mat-icon",4),H.Rb(),H.Sb(6,"div",5),H.Jc(7),H.ec(8,"translate"),H.Rb(),H.Rb(),H.Rb(),H.Rb(),H.Sb(9,"div"),H.Sb(10,"div",6),H.Hc(11,$,2,2,"div",7),H.Rb(),H.Rb(),H.Rb()),2&t&&(H.Ab(1),H.kc("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",H.qc(18,X,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),H.Ab(1),H.Db("entity-menu-item-link ",e.item.labelClass,""),H.kc("perunWebAppsMiddleClickRouterLink",e.item.baseLink),H.Ab(1),H.kc("ngStyle",H.pc(21,Q,e.item.textColorCss)),H.Ab(2),H.kc("ngStyle",H.oc(23,tt))("svgIcon",e.item.icon),H.Ab(2),H.Kc(H.fc(8,16,e.item.label)),H.Ab(2),H.kc("@openClose",e.expanded?"open":"closed"),H.Ab(1),H.Db("side-entity-menu ",e.item.linksClass,""),H.kc("ngStyle",H.pc(24,et,e.linkBgColor)),H.Ab(1),H.kc("ngIf",e.showLinks))},directives:[l.s,n.w,B.c,g.a,n.t,n.s,n.q],pipes:[j.d],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-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;-ms-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}.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:[F.c,F.d]}}),t})();var nt=i("OF3q"),st=i("hiWg"),ot=i("RUSO"),rt=i("alep"),at=i("e+sS"),ct=i("PY7g"),lt=i("kdIE"),ut=i("XhvO"),ht=i("JVFj"),dt=i("ZTj5"),pt=i("+TsY"),ft=i("mEf3"),gt=i("Y9OK"),bt=i("yNE8");function mt(t,e){if(1&t&&(H.Sb(0,"div"),H.Jc(1),H.Rb()),2&t){const t=e.$implicit;H.Ab(1),H.Mc(" ",t.key," ",t.value," ")}}function At(t,e){if(1&t&&(H.Sb(0,"div"),H.Sb(1,"h1",3),H.Jc(2),H.Rb(),H.Hc(3,mt,2,2,"div",2),H.ec(4,"keyvalue"),H.Rb()),2&t){const t=e.$implicit;H.Ab(2),H.Kc(t.key),H.Ab(1),H.kc("ngForOf",H.fc(4,2,t.value))}}function yt(t,e){if(1&t&&(H.Sb(0,"div",1),H.Hc(1,At,5,4,"div",2),H.ec(2,"keyvalue"),H.Rb()),2&t){const t=H.dc();H.Ab(1),H.kc("ngForOf",H.fc(2,1,t.principal.roles))}}let wt=(()=>{class t{constructor(t,e){this.authResolver=t,this.store=e}ngOnInit(){this.principal=this.store.getPerunPrincipal()}}return t.\u0275fac=function(e){return new(e||t)(H.Mb(z.h),H.Mb(z.m))},t.\u0275cmp=H.Gb({type:t,selectors:[["app-debugger-page"]],decls:1,vars:1,consts:[["class","p-3",4,"ngIf"],[1,"p-3"],[4,"ngFor","ngForOf"],[1,"page-subtitle","pb-0","pt-3"]],template:function(t,e){1&t&&H.Hc(0,yt,3,3,"div",0),2&t&&H.kc("ngIf",void 0!==e.principal)},directives:[n.t,n.s],pipes:[n.l],styles:[""]}),t})();var vt=i("V78E"),_t=i("WimW"),St=i("jk8c"),Et=i("vhVt"),Rt=i("p/8k"),Ct=i("g3Wv"),Tt=i("oqI+"),kt=i("3EQ+"),It=i("VMyb"),Ot=i("ipn+"),Dt=i("h1El"),Mt=i("DnAX"),Pt=i("1Gb8"),xt=i("p3Ob"),Nt=i("ZWQq"),Lt=i("hLiN"),Ft=i("yLXW"),zt=i("mPlY"),Ht=i("yaDT"),Bt=i("NU+N"),jt=i("zSH9"),Gt=i("Tsqg"),Ut=i("0N5F"),Kt=i("qvOF"),Vt=i("wBUr"),qt=i("VYu3"),Jt=i("is9t"),Wt=i("L4Ow"),Zt=i("ma6z"),Yt=i("bwko"),$t=i("Rbfv"),Xt=i("MP6f"),Qt=i("zldI"),te=i("KoHB"),ee=i("hilf"),ie=i("aFDG"),ne=i("gcZR"),se=i("X2Q7"),oe=i("FcRk");function re(t,e){1&t&&H.Nb(0,"mat-spinner",9)}function ae(t,e){1&t&&H.Nb(0,"th",18)}function ce(t,e){if(1&t&&(H.Sb(0,"td",19),H.Jc(1),H.Rb()),2&t){const t=e.$implicit;H.Ab(1),H.Lc(" ",t.name," ")}}function le(t,e){1&t&&H.Nb(0,"tr",20)}function ue(t,e){1&t&&H.Nb(0,"tr",21)}function he(t,e){if(1&t&&(H.Sb(0,"div",10),H.Sb(1,"p"),H.Jc(2),H.ec(3,"translate"),H.Rb(),H.Sb(4,"div",11),H.Jc(5),H.ec(6,"translate"),H.Rb(),H.Sb(7,"table",12),H.Qb(8,13),H.Hc(9,ae,1,0,"th",14),H.Hc(10,ce,2,1,"td",15),H.Pb(),H.Hc(11,le,1,0,"tr",16),H.Hc(12,ue,1,0,"tr",17),H.Rb(),H.Rb()),2&t){const t=H.dc();H.Ab(2),H.Lc(" ",H.fc(3,5,"DIALOGS.REMOVE_VO.DESCRIPTION")," "),H.Ab(3),H.Lc(" ",H.fc(6,7,"DIALOGS.REMOVE_VO.ASK")," "),H.Ab(2),H.kc("dataSource",t.dataSource),H.Ab(4),H.kc("matHeaderRowDef",t.displayedColumns),H.Ab(1),H.kc("matRowDefColumns",t.displayedColumns)}}function de(t,e){1&t&&(H.Sb(0,"app-alert",22),H.Jc(1),H.ec(2,"translate"),H.Rb()),2&t&&(H.Ab(1),H.Kc(H.fc(2,1,"DIALOGS.REMOVE_VO.FORCE_WARNING")))}let pe=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.force=!1,this.displayedColumns=["name"],s.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.o(this.data.vos)}onCancel(){this.dialogRef.close(!1)}onSubmit(){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)}}return t.\u0275fac=function(e){return new(e||t)(H.Mb(h.i),H.Mb(h.a),H.Mb(z.l),H.Mb(se.q),H.Mb(j.e))},t.\u0275cmp=H.Gb({type:t,selectors:[["app-remove-vo-dialog"]],decls:18,vars:19,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],[1,"mt-2"],[1,"align-content-center",3,"change"],["alert_type","warn",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,"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",""],["alert_type","warn"]],template:function(t,e){1&t&&(H.Sb(0,"div"),H.Sb(1,"h1",0),H.Jc(2),H.ec(3,"translate"),H.Rb(),H.Hc(4,re,1,0,"mat-spinner",1),H.Hc(5,he,13,9,"div",2),H.Sb(6,"div",3),H.Sb(7,"mat-checkbox",4),H.Zb("change",(function(){return e.force=!e.force})),H.Jc(8),H.ec(9,"translate"),H.Rb(),H.Hc(10,de,3,3,"app-alert",5),H.Rb(),H.Sb(11,"div",6),H.Sb(12,"button",7),H.Zb("click",(function(){return e.onCancel()})),H.Jc(13),H.ec(14,"translate"),H.Rb(),H.Sb(15,"button",8),H.Zb("click",(function(){return e.onSubmit()})),H.Jc(16),H.ec(17,"translate"),H.Rb(),H.Rb(),H.Rb()),2&t&&(H.Cb(e.theme),H.Ab(2),H.Kc(H.fc(3,11,"DIALOGS.REMOVE_VO.TITLE")),H.Ab(2),H.kc("ngIf",e.loading),H.Ab(1),H.kc("ngIf",!e.loading),H.Ab(3),H.Lc(" ",H.fc(9,13,"DIALOGS.REMOVE_VO.FORCE")," "),H.Ab(2),H.kc("ngIf",e.force),H.Ab(3),H.Lc(" ",H.fc(14,15,"DIALOGS.DELETE_GROUP.CANCEL")," "),H.Ab(2),H.kc("disabled",e.loading),H.Ab(1),H.Lc(" ",H.fc(17,17,"DIALOGS.DELETE_GROUP.DELETE")," "))},directives:[h.j,n.t,c.a,h.c,a.b,y.c,h.g,C.n,C.c,C.i,C.b,C.k,C.m,C.h,C.a,C.j,C.l,oe.a],pipes:[j.d],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t})();var fe=i("tDou"),ge=i("+MEm"),be=i("ZWyU"),me=i("R0qJ"),Ae=i("KtsV"),ye=i("v0MX"),we=i("ILoV"),ve=i("VEwN"),_e=i("snnp"),Se=i("7fDV"),Ee=i("HHEo"),Re=i("iyZ4"),Ce=i("t47Z"),Te=i("/nwi"),ke=i("pgvo"),Ie=i("Dkjx"),Oe=i("h6su"),De=i("Gtvd"),Me=i("bdug"),Pe=i("O/Vf"),xe=i("yWI2"),Ne=i("gdiH"),Le=i("77So"),Fe=i("iT3j"),ze=i("bATb"),He=i("dnAU"),Be=i("vUrr"),je=i("5kIe"),Ge=i("st5j"),Ue=i("noDS"),Ke=i("h39k"),Ve=i("pU19"),qe=i("r3xl"),Je=i("HHqq"),We=i("AtkZ"),Ze=i("49Zq"),Ye=i("EkHC"),$e=i("/bE8"),Xe=i("ESXS"),Qe=i("c9OP"),ti=i("6mVK"),ei=i("amZv"),ii=i("kLAD"),ni=i("eakH"),si=i("7o/y"),oi=i("h7zu"),ri=i("Q2p/"),ai=i("ozd/"),ci=i("BYpP"),li=i("CIWc"),ui=i("vNdQ");function hi(t,e){1&t&&H.Nb(0,"mat-spinner",6)}function di(t,e){if(1&t){const t=H.Tb();H.Sb(0,"div",7),H.Sb(1,"mat-form-field"),H.Sb(2,"input",8),H.Zb("change",(function(){return H.xc(t),H.dc().makePath()})),H.ec(3,"translate"),H.Rb(),H.Sb(4,"mat-error"),H.Jc(5),H.ec(6,"translate"),H.Rb(),H.Rb(),H.Sb(7,"mat-form-field"),H.Sb(8,"input",9),H.Zb("ngModelChange",(function(e){return H.xc(t),H.dc().description=e})),H.ec(9,"translate"),H.Rb(),H.Rb(),H.Sb(10,"mat-form-field"),H.Nb(11,"input",10),H.ec(12,"translate"),H.Sb(13,"mat-error"),H.Jc(14),H.ec(15,"translate"),H.Rb(),H.Rb(),H.Sb(16,"mat-form-field"),H.Nb(17,"input",10),H.ec(18,"translate"),H.Sb(19,"mat-error"),H.Jc(20),H.ec(21,"translate"),H.Rb(),H.Rb(),H.Sb(22,"mat-form-field"),H.Nb(23,"input",10),H.ec(24,"translate"),H.Sb(25,"mat-error"),H.Jc(26),H.ec(27,"translate"),H.Rb(),H.Rb(),H.Sb(28,"span"),H.Jc(29),H.ec(30,"translate"),H.Rb(),H.Sb(31,"mat-checkbox",11),H.Zb("ngModelChange",(function(e){return H.xc(t),H.dc().status=e})),H.Jc(32),H.ec(33,"translate"),H.Rb(),H.Rb()}if(2&t){const t=H.dc();H.Ab(2),H.lc("placeholder",H.fc(3,17,"DIALOGS.CREATE_SERVICE.NAME")),H.kc("formControl",t.nameControl),H.Ab(3),H.Kc(H.fc(6,19,"DIALOGS.CREATE_SERVICE.REQUIRE_NAME")),H.Ab(3),H.lc("placeholder",H.fc(9,21,"DIALOGS.CREATE_SERVICE.DESCRIPTION")),H.kc("ngModel",t.description),H.Ab(3),H.lc("placeholder",H.fc(12,23,"DIALOGS.CREATE_SERVICE.DELAY")),H.kc("formControl",t.delayControl),H.Ab(3),H.Kc(H.fc(15,25,"DIALOGS.CREATE_SERVICE.INVALID_DELAY")),H.Ab(3),H.lc("placeholder",H.fc(18,27,"DIALOGS.CREATE_SERVICE.RECURRENCE")),H.kc("formControl",t.recurrenceControl),H.Ab(3),H.Kc(H.fc(21,29,"DIALOGS.CREATE_SERVICE.INVALID_RECURRENCE")),H.Ab(3),H.lc("placeholder",H.fc(24,31,"DIALOGS.CREATE_SERVICE.PATH")),H.kc("formControl",t.pathControl),H.Ab(3),H.Kc(H.fc(27,33,"DIALOGS.CREATE_SERVICE.REQUIRE_PATH")),H.Ab(3),H.Kc(H.fc(30,35,"DIALOGS.CREATE_SERVICE.STATUS")),H.Ab(2),H.kc("ngModel",t.status),H.Ab(1),H.Kc(H.fc(33,37,"DIALOGS.CREATE_SERVICE.STATUS_HINT"))}}let pi=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.serviceManager=i,this.notificator=n,this.translate=s,this.loading=!1,this.name="",this.status=!0,this.delay=10,this.path="",this.nameControl=new N.g("",[N.F.required]),this.delayControl=new N.g(10,[N.F.pattern("^[0-9]*$")]),this.recurrenceControl=new N.g(2,[N.F.pattern("^[0-9]*$")]),this.pathControl=new N.g("",[N.F.required])}ngOnInit(){this.theme=this.data.theme}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,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_SERVICE.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(H.Mb(h.i),H.Mb(h.a),H.Mb(se.n),H.Mb(z.l),H.Mb(j.e))},t.\u0275cmp=H.Gb({type:t,selectors:[["app-create-service-dialog"]],decls:13,vars:15,consts:[["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"],["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,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"ml-5",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(H.Sb(0,"h1",0),H.Jc(1),H.ec(2,"translate"),H.Rb(),H.Sb(3,"div"),H.Hc(4,hi,1,0,"mat-spinner",1),H.Hc(5,di,34,39,"div",2),H.Sb(6,"div",3),H.Sb(7,"button",4),H.Zb("click",(function(){return e.onCancel()})),H.Jc(8),H.ec(9,"translate"),H.Rb(),H.Sb(10,"button",5),H.Zb("click",(function(){return e.onCreate()})),H.Jc(11),H.ec(12,"translate"),H.Rb(),H.Rb(),H.Rb()),2&t&&(H.Ab(1),H.Kc(H.fc(2,9,"DIALOGS.CREATE_SERVICE.TITLE")),H.Ab(2),H.Cb(e.theme),H.Ab(1),H.kc("ngIf",e.loading),H.Ab(1),H.kc("ngIf",!e.loading),H.Ab(3),H.Lc(" ",H.fc(9,11,"DIALOGS.CREATE_SERVICE.CANCEL")," "),H.Ab(2),H.kc("disabled",e.nameControl.invalid||e.delayControl.invalid||e.recurrenceControl.invalid||e.pathControl.invalid||e.loading),H.Ab(1),H.Lc(" ",H.fc(12,13,"DIALOGS.CREATE_SERVICE.CREATE")," "))},directives:[h.j,n.t,h.c,a.b,y.c,h.g,f.c,b.b,N.c,N.C,N.r,N.h,f.b,N.u,c.a],pipes:[j.d],styles:[""]}),t})();var fi=i("NC8S"),gi=i("7Y6W"),bi=i("jMG3"),mi=i("pnmw"),Ai=i("OL2r"),yi=i("IDQ9"),wi=i("A6H7"),vi=i("mjJC"),_i=i("YSZu"),Si=i("EtR/"),Ei=i("RCwe"),Ri=i("NMas"),Ci=i("aYBX"),Ti=i("P2UU"),ki=i("/VkC"),Ii=i("KF6X"),Oi=i("rmDM"),Di=i("Qgg6"),Mi=i("JjRu"),Pi=i("nKqi"),xi=i("dEHC"),Ni=i("Qu9H"),Li=i("E5oP"),Fi=i("H0K4"),zi=i("qySP"),Hi=i("K9kF"),Bi=i("9wx0"),ji=i("XpU2"),Gi=i("0XDM"),Ui=i("EtYo"),Ki=i("A8Ay"),Vi=i("LKLE"),qi=i("nhAq"),Ji=i("b7Yx"),Wi=i("8cyV"),Zi=i("U3ra"),Yi=i("UX+r"),$i=i("23RZ"),Xi=i("ZG5M"),Qi=i("tmvS"),tn=i("YFHD"),en=i("3jrC"),nn=i("XAvq"),sn=i("WLDY"),on=i("B/Qt"),rn=i("YRqw"),an=i("nz2m"),cn=i("COMt"),ln=i("ABWF"),un=i("eXxK"),hn=i("22FB"),dn=i("KQGD"),pn=i("jqZM"),fn=i("HMTk"),gn=i("Ds80"),bn=i("w+DT"),mn=i("LAw4"),An=i("BnyX"),yn=i("2Zb0"),wn=i("ajPJ"),vn=i("oYGW"),_n=i("pynj"),Sn=i("l18O"),En=i("6Xhx"),Rn=i("dhrr"),Cn=i("YEcy"),Tn=i("j+u3"),kn=i("4CqK"),In=i("W5/Z"),On=i("iD4z"),Dn=i("jEFW"),Mn=i("py76"),Pn=i("aea8"),xn=i("Y7Yh"),Nn=i("C5kn"),Ln=i("RK/0"),Fn=i("yAs8"),zn=i("NZNE"),Hn=i("Log1"),Bn=i("OcHD"),jn=i("IBaA"),Gn=i("SAuR"),Un=i("EFHi"),Kn=i("H2Dp");let Vn=(()=>{class t{constructor(t){this.translate=t,t.addLangs(["en","cs"])}}return t.\u0275mod=H.Kb({type:t}),t.\u0275inj=H.Jb({factory:function(e){return new(e||t)(H.Wb(j.e))},providers:[pt.a,Se.a],imports:[[n.c,o.j,r.b,b.c,f.e,N.B,N.l,g.b,_.g,p.b,j.c.forChild({}),a.c,R.c,C.p,T.g,I.e,a.c,c.b,h.h,v.b,E.b,y.b,A.b,k.b,S.b,u.g,l.l,w.c,d.b,l.t,m.b,O.j,x.g,Tt.g,O.j,M.g,P.c,Kt.g,te.a,D.b,Ee.d,Re.a,Ce.b,ci.b,Pi.e],ci.b,r.b,b.c,o.j,N.B,N.l,g.b,_.g,j.c,R.c,C.p,T.g,I.e,a.c,c.b,h.h,v.b,E.b,y.b,A.b,k.b,S.b,u.g,l.l,w.c,d.b,O.j,x.g,l.t,m.b,Tt.g,M.g,M.g,p.b,P.c,Kt.g,Kt.g,Kt.g,Re.a]}),t})();H.Ac(L.a,[n.q,n.r,n.s,n.t,n.A,n.w,n.x,n.y,n.z,n.u,n.v,o.k,o.g,o.i,o.h,o.l,Kt.b,r.a,l.n,l.m,r.d,r.c,Li.b,Fi.b,Fi.c,f.b,f.c,f.f,f.g,f.h,f.i,f.j,b.b,b.d,N.H,N.w,N.G,N.c,N.x,N.A,N.a,N.D,N.E,N.z,N.r,N.s,N.C,N.n,N.m,N.y,N.b,N.d,N.h,N.j,N.i,N.k,N.e,N.u,N.v,N.t,g.a,_.a,_.b,_.c,_.d,_.e,_.f,p.a,p.c,p.d,p.g,p.h,p.f,p.e,j.a,a.b,a.a,R.a,R.b,C.n,C.i,C.k,C.c,C.b,C.m,C.e,C.g,C.h,C.a,C.d,C.j,C.l,C.f,C.q,T.c,T.d,T.a,T.f,T.e,T.b,I.a,I.g,I.i,I.j,I.b,I.f,I.h,c.a,c.c,h.f,h.d,h.j,h.g,h.c,v.a,v.c,E.a,y.a,y.c,A.a,k.a,k.c,S.c,S.a,u.a,u.b,u.d,u.e,u.f,u.h,u.i,u.j,u.l,u.k,u.c,w.b,w.a,d.a,l.s,m.a,O.a,O.f,O.n,O.d,O.m,O.l,O.b,O.e,O.k,O.i,O.h,O.g,O.o,O.c,x.a,x.j,x.b,x.d,x.e,x.h,x.i,x.c,x.f,Tt.e,Tt.f,Tt.a,Tt.b,Tt.d,Tt.c,M.d,M.a,M.c,M.e,M.b,M.f,P.e,P.b,P.d,P.a,Kt.a,Kt.d,Kt.e,oe.a,D.a,zi.a,Hi.a,Bi.a,ji.a,Gi.a,Ui.a,Ki.a,Vi.a,qi.a,Ji.a,Wi.a,Zi.a,Yi.a,$i.a,Xi.a,Qi.a,B.a,tn.a,en.a,nn.a,sn.a,B.b,on.a,rn.a,an.a,cn.a,ln.a,B.c,un.a,hn.a,dn.a,pn.a,fn.a,gn.a,bn.a,mn.a,An.a,yn.a,wn.a,vn.a,_n.a,Sn.a,En.a,ci.a,ci.c,Pi.a,Pi.h,Pi.d,Pi.b,l.j,Pi.c,Pi.g,l.q,Pi.i,Pi.f,s.a,L.a,it,nt.a,st.a,ot.a,rt.a,ct.a,ht.a,dt.a,gt.a,wt,vt.a,_t.a,St.a,Et.a,Rt.a,kt.a,It.a,Ot.a,Dt.a,Mt.a,bt.a,ft.a,xt.a,Nt.a,Ft.a,zt.a,Ht.a,jt.a,Gt.a,Ut.a,Vt.a,qt.a,Jt.a,Bt.a,Zt.a,$t.a,Xt.a,Qt.a,ee.a,ie.a,ne.a,pe,fe.a,ge.a,Ae.a,ye.a,we.a,ve.a,_e.a,be.a,me.a,Te.a,ke.a,Ie.a,Oe.a,De.a,Me.a,xe.a,Ne.a,Le.a,Fe.a,ze.a,He.a,Be.a,je.a,Ge.a,Ue.a,Ke.a,Ve.a,qe.a,Je.a,We.a,Ze.a,Ye.a,$e.a,Xe.a,Qe.a,ti.a,ei.a,ii.a,ni.a,oi.a,ri.a,ai.a,li.a,ui.a,pi,fi.a,gi.a,bi.a,mi.a,Ai.a,yi.a,vi.a,_i.a,Si.a,Ei.a,Ci.a,Ri.a,Ti.a,ki.a,Ii.a,Mi.a,xi.a,Ni.a],[n.b,n.G,n.p,n.k,n.E,n.g,n.C,n.F,n.d,n.f,n.i,n.j,n.l,j.d,Rn.a,Cn.a,Tn.a,kn.a,In.a,On.a,Dn.a,Mn.a,Pn.a,xn.a,Nn.a,Ln.a,Fn.a,zn.a,Hn.a,Bn.a,jn.a,Gn.a,Un.a,Kn.a,at.a,lt.a,ut.a,Ct.a,Pt.a,pt.a,Lt.a,Wt.a,Yt.a,Se.a,Pe.a,si.a,wi.a,Oi.a,Di.a])},PNff:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},PY7g:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("Ssnw"),s=i("TkCa"),o=i("AytR"),r=i("Sy1n"),a=i("EM62"),c=i("2kYt"),l=i("tmvS");function u(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"perun-web-apps-notification",2),a.Zb("closeNotification",(function(){a.xc(t);const i=e.index;return a.dc().removeNotification(i)})),a.Rb(),a.Rb()}if(2&t){const t=e.$implicit;a.kc("@flyInOut",void 0),a.Ab(1),a.kc("data",t)("newNotification",!0)}}const h=function(t){return{top:t}};let d=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=r.a.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":o.a.production?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.l),a.Mb(n.k))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-notificator"]],hostBindings:function(t,e){1&t&&a.Zb("resize",(function(t){return e.getScreenSize(t)}),!1,a.wc)},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(a.Sb(0,"div",0),a.Hc(1,u,2,3,"div",1),a.Rb()),2&t&&(a.kc("ngStyle",a.pc(2,h,e.getNotificatorTop())),a.Ab(1),a.kc("ngForOf",e.notifications))},directives:[c.w,c.s,l.a],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[s.b]}}),t})()},"Q2p/":function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("PBFl"),u=i("j+u3");function h(t,e){1&t&&a.Nb(0,"th",12)}function d(t,e){if(1&t&&(a.Sb(0,"td",13),a.Jc(1),a.ec(2,"userFullName"),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",a.fc(2,1,t)," ")}}function p(t,e){1&t&&a.Nb(0,"tr",14)}function f(t,e){1&t&&a.Nb(0,"tr",15)}let g=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.userManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.userId=this.data.userId,this.dataSource=new r.o([this.data.specificUser]),this.isService=this.data.isService}onConfirm(){let t,e;this.isService?(t=this.dataSource.data[0].id,e=this.userId):(t=this.userId,e=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(t,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(n.p),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-disconnect-identity"]],decls:24,vars:21,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Sb(4,"div",1),a.Sb(5,"p"),a.Jc(6),a.ec(7,"translate"),a.Rb(),a.Sb(8,"div",2),a.Jc(9),a.ec(10,"translate"),a.Rb(),a.Sb(11,"table",3),a.Qb(12,4),a.Hc(13,h,1,0,"th",5),a.Hc(14,d,3,3,"td",6),a.Pb(),a.Hc(15,p,1,0,"tr",7),a.Hc(16,f,1,0,"tr",8),a.Rb(),a.Rb(),a.Sb(17,"div",9),a.Sb(18,"button",10),a.Zb("click",(function(){return e.onCancel()})),a.Jc(19),a.ec(20,"translate"),a.Rb(),a.Sb(21,"button",11),a.Zb("click",(function(){return e.onConfirm()})),a.Jc(22),a.ec(23,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,11,"DIALOGS.DISCONNECT_IDENTITY.TITLE")),a.Ab(2),a.Cb(e.theme),a.Ab(3),a.Kc(a.fc(7,13,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(10,15,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),a.Ab(2),a.kc("dataSource",e.dataSource),a.Ab(4),a.kc("matHeaderRowDef",e.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",e.displayedColumns),a.Ab(3),a.Lc(" ",a.fc(20,17,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),a.Ab(3),a.Lc(" ",a.fc(23,19,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[s.j,s.g,r.n,r.c,r.i,r.b,r.k,r.m,s.c,l.b,r.h,r.a,r.j,r.l],pipes:[c.d,u.a],styles:[""]}),t})()},QQZH:function(t,e,i){"use strict";i.d(e,"a",(function(){return b}));var n=i("ZTXN"),s=i("EWqr");class o extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var r=i("DG/E");class a extends r.a{}const c=new a(o);var l=i("bwdy"),u=i("5uGe"),h=i("ryP2");class d extends u.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(h.a.createNext(t))}_error(t){this.scheduleMessage(h.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.a.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var f=i("MiDb"),g=i("yTkW");class b extends n.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new m(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new f.a;if(this.isStopped||this.hasError?o=l.a.EMPTY:(this.observers.push(t),o=new g.a(this,t)),n&&t.add(t=new d(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class m{constructor(t,e){this.time=t,this.value=e}}},QcI7:function(t,e,i){"use strict";i.d(e,"a",(function(){return b})),i.d(e,"b",(function(){return w})),i.d(e,"c",(function(){return C})),i.d(e,"d",(function(){return R})),i.d(e,"e",(function(){return E})),i.d(e,"f",(function(){return p})),i.d(e,"g",(function(){return f})),i.d(e,"h",(function(){return y})),i.d(e,"i",(function(){return m})),i.d(e,"j",(function(){return _}));var n=i("seVz"),s=i("mFH5"),o=i("5XID"),r=i("cqs0"),a=i("C05f"),c=i("g6G6"),l=i("J+dc"),u=i("YtkY"),h=i("EM62");const d=Object(s.D)(Object(s.A)(n.e));let p=(()=>{class t extends d{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.role="treeitem",this.tabIndex=Number(i)||0}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(h.l),h.Mb(n.c),h.Xb("tabindex"))},t.\u0275dir=h.Hb({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:3,hostBindings:function(t,e){2&t&&h.Bb("aria-expanded",e.isExpanded)("aria-level","treeitem"===e.role?e.level:null)("role",e.role)},inputs:{disabled:"disabled",tabIndex:"tabIndex",role:"role"},exportAs:["matTreeNode"],features:[h.zb([{provide:n.e,useExisting:t}]),h.xb]}),t})(),f=(()=>{class t extends n.f{}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=h.Hb({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h.zb([{provide:n.f,useExisting:t}]),h.xb]}),t})();const g=h.Ub(f);let b=(()=>{class t extends n.b{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(o.c)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(h.l),h.Mb(n.c),h.Mb(h.t),h.Xb("tabindex"))},t.\u0275dir=h.Hb({type:t,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],hostVars:2,hostBindings:function(t,e){2&t&&h.Bb("aria-expanded",e.isExpanded)("role",e.role)},inputs:{tabIndex:"tabIndex",disabled:"disabled",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h.zb([{provide:n.b,useExisting:t},{provide:n.e,useExisting:t},{provide:n.a,useExisting:t}]),h.xb]}),t})(),m=(()=>{class t extends n.h{}return t.\u0275fac=function(e){return A(e||t)},t.\u0275dir=h.Hb({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[h.zb([{provide:n.h,useExisting:t}]),h.xb]}),t})();const A=h.Ub(m);let y=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(h.Q),h.Mb(n.a,8))},t.\u0275dir=h.Hb({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h.zb([{provide:n.g,useExisting:t}])]}),t})(),w=(()=>{class t extends n.c{}return t.\u0275fac=function(e){return v(e||t)},t.\u0275cmp=h.Gb({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){var i;1&t&&h.Dc(y,!0),2&t&&h.sc(i=h.ac())&&(e._nodeOutlet=i.first)},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[h.zb([{provide:n.c,useExisting:t}]),h.xb],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.Ob(0,0)},directives:[y],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})();const v=h.Ub(w);let _=(()=>{class t extends n.i{constructor(){super(...arguments),this.recursive=!1}}return t.\u0275fac=function(e){return S(e||t)},t.\u0275dir=h.Hb({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h.zb([{provide:n.i,useExisting:t}]),h.xb]}),t})();const S=h.Ub(_);let E=(()=>{class t{}return t.\u0275mod=h.Kb({type:t}),t.\u0275inj=h.Jb({factory:function(e){return new(e||t)},imports:[[n.d,s.i],s.i]}),t})();class R{constructor(t,e,i,n){this.transformFunction=t,this.getLevel=e,this.isExpandable=i,this.getChildren=n}_flattenNode(t,e,i,n){const s=this.transformFunction(t,e);if(i.push(s),this.isExpandable(s)){const s=this.getChildren(t);s&&(Array.isArray(s)?this._flattenChildren(s,e,i,n):s.pipe(Object(l.a)(1)).subscribe(t=>{this._flattenChildren(t,e,i,n)}))}return i}_flattenChildren(t,e,i,n){t.forEach((s,o)=>{let r=n.slice();r.push(o!=t.length-1),this._flattenNode(s,e+1,i,r)})}flattenNodes(t){let e=[];return t.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(t,e){let i=[],n=[];return n[0]=!0,t.forEach(t=>{let s=!0;for(let e=0;e<=this.getLevel(t);e++)s=s&&n[e];s&&i.push(t),this.isExpandable(t)&&(n[this.getLevel(t)+1]=e.isExpanded(t))}),i}}class C extends r.b{constructor(t,e,i=[]){super(),this._treeControl=t,this._treeFlattener=e,this._flattenedData=new a.a([]),this._expandedData=new a.a([]),this._data=new a.a(i)}get data(){return this._data.value}set data(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(t){const e=[t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData];return Object(c.a)(...e).pipe(Object(u.a)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}},Qgg6:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),s=i("s2Ay");let o=(()=>{class t{constructor(t){this.translateService=t}transform(t,...e){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.e))},t.\u0275pipe=n.Lb({name:"applicationFormItemHidden",type:t,pure:!0}),t})()},Qu9H:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("OZ4H"),s=i("X2Q7"),o=i("cqs0"),r=i("iyZ4"),a=i("EM62"),c=i("2kYt"),l=i("PBFl"),u=i("csyo"),h=i("pynj"),d=i("K9kF"),p=i("s2Ay");function f(t,e){1&t&&a.Nb(0,"mat-spinner",6)}const g=function(){return["recent","vo","expiration","menu"]};function b(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",7),a.Sb(1,"perun-web-apps-debounce-filter",8),a.Zb("filter",(function(e){return a.xc(t),a.dc().applyFilter(e)})),a.ec(2,"translate"),a.Rb(),a.Sb(3,"perun-web-apps-groups-list",9),a.Zb("page",(function(e){return a.xc(t),a.dc().pageChanged(e)})),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(1),a.lc("placeholder",a.fc(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),a.Ab(2),a.kc("pageSize",t.pageSize)("groups",t.unAssignedGroups)("selection",t.selection)("filter",t.filterValue)("hideColumns",a.oc(10,g))("disableRouting",!0)("disableMembers",!0)}}let m=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.groupService=i,this.tableConfigService=n,this.loading=!1,this.selection=new o.c(!0,[]),this.filterValue="",this.tableId=r.e}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(t=>{this.unAssignedGroups=t.filter(t=>this.data.assignedGroups.indexOf(t.id)<=-1),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.groupService.addGroupsToAutoRegistration(this.selection.selected.map(t=>t.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.h),a.Mb(r.pb))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","hideColumns","disableRouting","disableMembers","page"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,f,1,0,"mat-spinner",1),a.Hc(5,b,4,11,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onAdd()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),a.Ab(2),a.kc("disabled",0===e.selection.selected.length||e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},directives:[n.j,c.t,n.c,l.b,u.c,n.g,h.a,d.a],pipes:[p.d],styles:[""]}),t})()},R0qJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("OZ4H"),s=i("X2Q7"),o=i("cqs0"),r=i("Ssnw"),a=i("iyZ4"),c=i("EM62"),l=i("s2Ay"),u=i("A8Ay"),h=i("2kYt"),d=i("PBFl"),p=i("csyo"),f=i("ZWyU");function g(t,e){1&t&&c.Nb(0,"mat-spinner",8)}function b(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div",9),c.Sb(1,"app-ext-sources-list",10),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb(),c.Rb()}if(2&t){const t=c.dc();c.Ab(1),c.kc("pageSize",t.pageSize)("extSources",t.extSources)("filterValue",t.filterValue)("selection",t.selection)}}let m=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=n,this.tableConfigService=s,this.translate=r,this.extSources=[],this.selection=new o.c(!0,[]),this.loading=!1,this.filterValue="",this.tableId=a.d}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}addVoExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,e.id).subscribe(e=>{this.addVoExtSource(t)},()=>this.loading=!1)}addGroupExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(e=>{this.addGroupExtSource(t)},()=>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)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(s.f),c.Mb(r.l),c.Mb(a.pb),c.Mb(l.e))},t.\u0275cmp=c.Gb({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"pageSize","extSources","filterValue","selection","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"div",0),c.Sb(2,"h1",1),c.Jc(3),c.ec(4,"translate"),c.Rb(),c.Sb(5,"perun-web-apps-immediate-filter",2),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Rb(),c.Hc(6,g,1,0,"mat-spinner",3),c.Hc(7,b,2,4,"div",4),c.Sb(8,"div",5),c.Sb(9,"button",6),c.Zb("click",(function(){return e.onCancel()})),c.Jc(10),c.ec(11,"translate"),c.Rb(),c.Sb(12,"button",7),c.Zb("click",(function(){return e.onAdd()})),c.Jc(13),c.ec(14,"translate"),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Cb(e.theme),c.Ab(3),c.Kc(c.fc(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),c.Ab(2),c.kc("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(3),c.Lc(" ",c.fc(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),c.Ab(2),c.kc("disabled",0===e.selection.selected.length||e.loading),c.Ab(1),c.Lc(" ",c.fc(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},directives:[n.j,u.a,h.t,n.c,d.b,p.c,n.g,f.a],pipes:[l.d],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})()},"R7+U":function(t,e,i){"use strict";i.d(e,"a",(function(){return V})),i.d(e,"b",(function(){return q})),i.d(e,"c",(function(){return K})),i.d(e,"d",(function(){return F}));var n=i("HYj3"),s=i("2kYt"),o=i("EM62"),r=i("mFH5"),a=i("29Wa"),c=i("qvOF"),l=i("sg/T"),u=i("5XID"),h=i("cqs0"),d=i("fAiE"),p=i("ZTXN"),f=i("i9xl"),g=i("g6G6"),b=i("jIqt"),m=i("TLy2"),A=i("J+dc"),y=i("xVbo"),w=i("YtkY"),v=i("Ohay"),_=i("kuMc"),S=i("f7+R"),E=i("E5oP"),R=i("nIj0");const C=["trigger"],T=["panel"];function k(t,e){if(1&t&&(o.Sb(0,"span",8),o.Jc(1),o.Rb()),2&t){const t=o.dc();o.Ab(1),o.Kc(t.placeholder||"\xa0")}}function I(t,e){if(1&t&&(o.Sb(0,"span"),o.Jc(1),o.Rb()),2&t){const t=o.dc(2);o.Ab(1),o.Kc(t.triggerValue||"\xa0")}}function O(t,e){1&t&&o.ic(0,0,["*ngSwitchCase","true"])}function D(t,e){if(1&t&&(o.Sb(0,"span",9),o.Hc(1,I,2,1,"span",10),o.Hc(2,O,1,0,"ng-content",11),o.Rb()),2&t){const t=o.dc();o.kc("ngSwitch",!!t.customTrigger),o.Ab(2),o.kc("ngSwitchCase",!0)}}function M(t,e){if(1&t){const t=o.Tb();o.Sb(0,"div",12),o.Sb(1,"div",13,14),o.Zb("@transformPanel.done",(function(e){return o.xc(t),o.dc()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return o.xc(t),o.dc()._handleKeydown(e)})),o.ic(3,1),o.Rb(),o.Rb()}if(2&t){const t=o.dc();o.kc("@transformPanelWrap",void 0),o.Ab(1),o.Db("mat-select-panel ",t._getPanelTheme(),""),o.Ec("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),o.kc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),o.Bb("id",t.id+"-panel")}}const P=[[["mat-select-trigger"]],"*"],x=["mat-select-trigger","*"],N={transformPanelWrap:Object(S.n)("transformPanelWrap",[Object(S.m)("* => void",Object(S.i)("@transformPanel",[Object(S.f)()],{optional:!0}))]),transformPanel:Object(S.n)("transformPanel",[Object(S.k)("void",Object(S.l)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(S.k)("showing",Object(S.l)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(S.k)("showing-multiple",Object(S.l)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(S.m)("void => *",Object(S.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(S.m)("* => void",Object(S.e)("100ms 25ms linear",Object(S.l)({opacity:0})))])};let L=0;const F=256,z=new o.r("mat-select-scroll-strategy"),H=new o.r("MAT_SELECT_CONFIG"),B={provide:z,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class j{constructor(t,e){this.source=t,this.value=e}}class G{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const U=Object(r.z)(Object(r.D)(Object(r.A)(Object(r.B)(G))));let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-select-trigger"]]}),t})(),V=(()=>{class t extends U{constructor(t,e,i,n,s,r,a,c,l,u,h,d,v,_){super(s,n,a,c,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=l,this.ngControl=u,this._liveAnnouncer=v,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+L++,this._destroy=new p.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new p.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=Object(f.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(b.a)(t),Object(m.a)(()=>Object(g.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(Object(A.a)(1),Object(m.a)(()=>this.optionSelectionChanges))}),this.openedChange=new o.o,this._openedStream=this.openedChange.pipe(Object(y.a)(t=>t),Object(w.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(y.a)(t=>!t),Object(w.a)(()=>{})),this.selectionChange=new o.o,this.valueChange=new o.o,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,_&&(null!=_.disableOptionCentering&&(this.disableOptionCentering=_.disableOptionCentering),null!=_.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=_.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(u.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Object(u.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(u.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(u.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(v.a)(),Object(_.a)(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Object(_.a)(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(_.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(b.a)(null),Object(_.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Object(A.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===d.e||e===d.q||e===d.j||e===d.n,n=e===d.g||e===d.o,s=this._keyManager;if(!s.isTyping()&&n&&!Object(d.t)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;e===d.i||e===d.f?(e===d.i?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const n=this.selected;n&&i!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.e||i===d.q,s=e.isTyping();if(i===d.i||i===d.f)t.preventDefault(),i===d.i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==d.g&&i!==d.o||!e.activeItem||Object(d.t)(t))if(!s&&this._multiple&&i===d.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(A.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return Object(o.W)()&&console.warn(i),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(_.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(_.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(g.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(_.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(g.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(_.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new j(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=Object(r.w)(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Object(r.x)(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,F)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,i,n)=>void 0!==e?e:t===i?n:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,F),n=e*t-i;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=Object(r.w)(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(F/n);let r;return this._disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-F)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,F)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(c.h),o.Mb(o.h),o.Mb(o.A),o.Mb(r.d),o.Mb(o.l),o.Mb(E.c,8),o.Mb(R.t,8),o.Mb(R.j,8),o.Mb(a.a,8),o.Mb(R.q,10),o.Xb("tabindex"),o.Mb(z),o.Mb(l.k),o.Mb(H,8))},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(o.Fb(i,K,!0),o.Fb(i,r.n,!0),o.Fb(i,r.m,!0)),2&t&&(o.sc(n=o.ac())&&(e.customTrigger=n.first),o.sc(n=o.ac())&&(e.options=n),o.sc(n=o.ac())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(o.Qc(C,!0),o.Qc(T,!0),o.Qc(n.a,!0)),2&t&&(o.sc(i=o.ac())&&(e.trigger=i.first),o.sc(i=o.ac())&&(e.panel=i.first),o.sc(i=o.ac())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&o.Zb("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(o.Bb("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o.Eb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[o.zb([{provide:a.d,useExisting:t},{provide:r.g,useExisting:t}]),o.xb,o.yb],ngContentSelectors:x,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(o.jc(P),o.Sb(0,"div",0,1),o.Zb("click",(function(){return e.toggle()})),o.Sb(3,"div",2),o.Hc(4,k,2,1,"span",3),o.Hc(5,D,3,2,"span",4),o.Rb(),o.Sb(6,"div",5),o.Nb(7,"div",6),o.Rb(),o.Rb(),o.Hc(8,M,4,11,"ng-template",7),o.Zb("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=o.tc(1);o.Ab(3),o.kc("ngSwitch",e.empty),o.Ab(1),o.kc("ngSwitchCase",!0),o.Ab(1),o.kc("ngSwitchCase",!1),o.Ab(3),o.kc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.b,s.x,s.y,n.a,s.z,s.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})(),q=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[B],imports:[[s.c,n.f,r.o,r.i],c.c,a.e,r.o,r.i]}),t})()},RCwe:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("OZ4H"),s=i("X2Q7"),o=i("FlRo"),r=i("cqs0"),a=i("iyZ4"),c=i("Ssnw"),l=i("EM62"),u=i("s2Ay"),h=i("2kYt"),d=i("PBFl"),p=i("csyo"),f=i("+Tre"),g=i("Y2X+"),b=i("23RZ");function m(t,e){1&t&&l.Nb(0,"mat-spinner",6)}function A(t,e){if(1&t){const t=l.Tb();l.Sb(0,"mat-checkbox",13),l.Zb("change",(function(e){return l.xc(t),l.dc(2).change(e)})),l.ec(1,"translate"),l.Jc(2),l.ec(3,"translate"),l.Rb()}if(2&t){const t=l.dc(2);l.lc("matTooltip",l.fc(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),l.kc("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskChecked),l.Ab(2),l.Lc(" ",l.fc(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function y(t,e){if(1&t){const t=l.Tb();l.Sb(0,"mat-checkbox",14),l.Zb("change",(function(e){return l.xc(t),l.dc(2).change(e)})),l.ec(1,"translate"),l.Jc(2),l.ec(3,"translate"),l.Rb()}if(2&t){const t=l.dc(2);l.lc("matTooltip",l.fc(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),l.kc("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskResultsChecked),l.Ab(2),l.Lc(" ",l.fc(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function w(t,e){if(1&t){const t=l.Tb();l.Sb(0,"perun-web-apps-resources-list",15),l.Zb("allSelected",(function(e){return l.xc(t),l.dc(2).disableCheckboxes(e)}))("page",(function(e){return l.xc(t),l.dc(2).pageChanged(e)})),l.Rb()}if(2&t){const t=l.dc(2);l.kc("pageSize",t.pageSize)("disableRouting",!0)("resources",t.resources)("selection",t.selected)("displayedColumns",t.displayedColumns)}}function v(t,e){if(1&t){const t=l.Tb();l.Sb(0,"div",7),l.Sb(1,"p"),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"div"),l.Hc(5,A,4,9,"mat-checkbox",8),l.Hc(6,y,4,9,"mat-checkbox",9),l.Sb(7,"mat-checkbox",10),l.Zb("change",(function(e){return l.xc(t),l.dc().change(e)})),l.ec(8,"translate"),l.Jc(9),l.ec(10,"translate"),l.Rb(),l.Rb(),l.Sb(11,"p"),l.Jc(12),l.ec(13,"translate"),l.Rb(),l.Sb(14,"div",11),l.Jc(15),l.ec(16,"translate"),l.Rb(),l.Hc(17,w,1,5,"perun-web-apps-resources-list",12),l.Rb()}if(2&t){const t=l.dc();l.Ab(2),l.Kc(l.fc(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),l.Ab(3),l.kc("ngIf",null!==t.taskId),l.Ab(1),l.kc("ngIf",null!==t.taskId),l.Ab(1),l.lc("matTooltip",l.fc(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),l.kc("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.destinationChecked),l.Ab(2),l.Lc(" ",l.fc(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),l.Ab(3),l.Kc(l.fc(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),l.Ab(3),l.Lc(" ",l.fc(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),l.Ab(2),l.kc("ngIf",!t.loading)}}let _=(()=>{class t{constructor(t,e,i,n,s,c,l,u,h){this.dialogRef=t,this.data=e,this.tableConfigService=i,this.resourcesManager=n,this.tasksManager=s,this.serviceManager=c,this.translate=l,this.notificator=u,this.cd=h,this.loading=!1,this.dataSource=new o.o(this.data.resource),this.selected=new r.c(!0,[...this.dataSource.data]),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=a.U}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(t=>{t.forEach(t=>{this.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(t=>{t.forEach(t=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(t=>{this.resourcesManager.removeService(t.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(t){t&&this.checkboxesDisabled&&this.changeCheckboxes(!0),t||this.checkboxesDisabled||this.changeCheckboxes(!1)}changeCheckboxes(t){this.checkboxesDisabled=!t,this.taskChecked=t,this.taskResultsChecked=t,this.destinationChecked=t,this.cd.detectChanges()}change(t){switch(t.source.id){case"task":this.taskChecked=t.checked;break;case"taskResults":this.taskResultsChecked=t.checked;break;case"destination":this.destinationChecked=t.checked}}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(n.i),l.Mb(n.a),l.Mb(a.pb),l.Mb(s.m),l.Mb(s.o),l.Mb(s.n),l.Mb(u.e),l.Mb(c.l),l.Mb(l.h))},t.\u0275cmp=l.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page"]],template:function(t,e){1&t&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Sb(3,"div"),l.Hc(4,m,1,0,"mat-spinner",1),l.Hc(5,v,18,21,"div",2),l.Sb(6,"div",3),l.Sb(7,"button",4),l.Zb("click",(function(){return e.cancel()})),l.Jc(8),l.ec(9,"translate"),l.Rb(),l.Sb(10,"button",5),l.Zb("click",(function(){return e.remove()})),l.Jc(11),l.ec(12,"translate"),l.Rb(),l.Rb(),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),l.Ab(2),l.Cb(e.theme),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(3),l.Lc(" ",l.fc(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),l.Ab(2),l.kc("disabled",e.loading||0===e.selected.selected.length),l.Ab(1),l.Lc(" ",l.fc(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[n.j,h.t,n.c,d.b,p.c,n.g,f.a,g.a,b.a],pipes:[u.d],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t})()},"RK/0":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"memberStatusIcon",type:t,pure:!0}),t})()},ROBh:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("gBlb"),s=i("ckkg"),o=i("czMQ");function r(...t){let e=t[t.length-1];return Object(n.a)(e)?(t.pop(),Object(o.a)(t,e)):Object(s.a)(t)}},RUSO:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.DELETE_GROUP.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.DELETE_GROUP.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.groupService=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.o(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.groupService.deleteGroups(this.data.groups.map(t=>t.id),!0).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(c.e),a.Mb(r.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-delete-group-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.DELETE_GROUP.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.DELETE_GROUP.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.DELETE_GROUP.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l],pipes:[c.d],styles:[""]}),t})()},Rbfv:function(t,e,i){"use strict";i.d(e,"a",(function(){return z}));var n=i("EM62"),s=i("iAde"),o=i("cePI"),r=i("FlRo"),a=i("cqs0"),c=i("Ssnw"),l=i("X2Q7"),u=i("8clQ"),h=i("s2Ay"),d=i("9wx0"),p=i("2kYt"),f=i("+Tre"),g=i("29Wa"),b=i("Cd2c"),m=i("nIj0"),A=i("PBFl"),y=i("Y2X+"),w=i("bFHC"),v=i("FcRk");function _(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",17),n.Sb(1,"mat-checkbox",18),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function S(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function E(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")))}function R(t,e){if(1&t&&(n.Sb(0,"td",19),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function C(t,e){1&t&&(n.Sb(0,"th",17),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")))}function T(t,e){if(1&t&&(n.Sb(0,"div"),n.Jc(1),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Lc(" ",t.tagName," ")}}function k(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div"),n.Sb(1,"mat-form-field"),n.Sb(2,"input",24),n.Zb("ngModelChange",(function(e){return n.xc(t),n.dc().$implicit.tagName=e})),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc().$implicit;n.Ab(2),n.kc("ngModel",t.tagName)}}function I(t,e){if(1&t&&(n.Sb(0,"td",22),n.Hc(1,T,2,1,"div",23),n.Hc(2,k,3,1,"div",23),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("ngIf",!i.isChanging.isSelected(t)),n.Ab(1),n.kc("ngIf",i.isChanging.isSelected(t))}}function O(t,e){1&t&&n.Nb(0,"th",17)}function D(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",27),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc().edit(e)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"edit"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function M(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",27),n.Zb("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc().save(e)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"save"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function P(t,e){if(1&t&&(n.Sb(0,"td",22),n.Sb(1,"div",25),n.Hc(2,D,4,3,"button",26),n.Hc(3,M,4,3,"button",26),n.Rb(),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(2),n.kc("ngIf",!i.isChanging.isSelected(t)),n.Ab(1),n.kc("ngIf",i.isChanging.isSelected(t))}}function x(t,e){1&t&&n.Nb(0,"tr",28)}function N(t,e){1&t&&n.Nb(0,"tr",29)}function L(t,e){1&t&&(n.Sb(0,"app-alert",30),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"),"\n"))}function F(t,e){1&t&&(n.Sb(0,"app-alert",30),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let z=(()=>{class t{constructor(t,e,i,s,o){this.resourceManager=t,this.notificator=e,this.translator=i,this.authResolver=s,this.tableCheckbox=o,this.resourceTags=[],this.selection=new a.c(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","edit"],this.page=new n.o,this.isChanging=new a.c(!0,[]),this.pageSizeOptions=u.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.o(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.tagName;default:return""}}exportData(t){Object(u.i)(Object(u.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(u.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(u.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(t){this.resourceManager.updateResourceTag({resourceTag:t}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.isChanging.deselect(t)})}edit(t){this.isChanging.select(t)}pageChanged(t){this.pageSize=t.pageSize,this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.m),n.Mb(c.l),n.Mb(h.e),n.Mb(c.h),n.Mb(c.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-resources-tags-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,_,2,3,"th",6),n.Hc(7,S,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,E,3,3,"th",9),n.Hc(10,R,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,C,3,3,"th",6),n.Hc(13,I,3,2,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,O,1,0,"th",6),n.Hc(16,P,4,2,"td",11),n.Pb(),n.Hc(17,x,1,0,"tr",13),n.Hc(18,N,1,0,"tr",14),n.Rb(),n.Rb(),n.Sb(19,"mat-paginator",15),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(20,L,3,3,"app-alert",16),n.Hc(21,F,3,3,"app-alert",16)),2&t&&(n.kc("hidden",0===e.resourceTags.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(13),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.resourceTags.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.resourceTags.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.resourceTags.length))},directives:[d.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,s.a,p.t,r.h,f.a,r.a,o.b,g.c,b.b,m.c,m.r,m.u,A.b,y.a,w.a,r.j,r.l,v.a],pipes:[h.d],styles:[""]}),t})()},S17y:function(t,e,i){"use strict";i.d(e,"a",(function(){return R})),i.d(e,"b",(function(){return S})),i.d(e,"c",(function(){return x})),i.d(e,"d",(function(){return M})),i.d(e,"e",(function(){return C})),i.d(e,"f",(function(){return E})),i.d(e,"g",(function(){return L}));var n=i("fAiE"),s=i("EM62"),o=i("mFH5"),r=i("2kYt"),a=i("5XID"),c=i("ZTXN"),l=i("g6G6"),u=i("J+dc"),h=i("kuMc"),d=i("jIqt"),p=i("5lCh"),f=i("sg/T"),g=i("cqs0"),b=i("29Wa"),m=i("cZZj"),A=i("E5oP"),y=i("nIj0");const w=["*"];class v{constructor(t){this._elementRef=t}}const _=Object(o.D)(Object(o.y)(Object(o.z)(v),"primary"),-1);let S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t})(),R=(()=>{class t extends _{constructor(t,e,i,n,r,a,l,u){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new c.a,this._onBlur=new c.a,this.selectionChange=new s.o,this.destroyed=new s.o,this.removed=new s.o,this._addHostClassName(),this._chipRippleTarget=(u||document).createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new o.v(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===r,this.tabIndex=null!=l&&parseInt(l)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Object(a.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Object(a.c)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Object(a.c)(t)}get removable(){return this._removable}set removable(t){this._removable=Object(a.c)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case n.d:case n.b:this.remove(),t.preventDefault();break;case n.o:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.asObservable().pipe(Object(u.a)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}_markForCheck(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(s.A),s.Mb(m.a),s.Mb(o.h,8),s.Mb(p.a,8),s.Mb(s.h),s.Xb("tabindex"),s.Mb(r.e,8))},t.\u0275dir=s.Hb({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;1&t&&(s.Fb(i,S,!0),s.Fb(i,E,!0),s.Fb(i,C,!0)),2&t&&(s.sc(n=s.ac())&&(e.avatar=n.first),s.sc(n=s.ac())&&(e.trailingIcon=n.first),s.sc(n=s.ac())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.Zb("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(s.Bb("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.Eb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.xb]}),t})(),C=(()=>{class t{constructor(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(R),s.Mb(s.l))},t.\u0275dir=s.Hb({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&s.Zb("click",(function(t){return e._handleClick(t)}))}}),t})();const T=new s.r("mat-chips-default-options");class k{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const I=Object(o.B)(k);let O=0;class D{constructor(t,e){this.source=t,this.value=e}}let M=(()=>{class t extends I{constructor(t,e,i,n,o,r,a){super(r,n,o,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new c.a,this._uid="mat-chip-list-"+O++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.o,this.valueChange=new s.o,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(a.c)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Object(a.c)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(a.c)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Object(a.c)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(l.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(l.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(l.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(l.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new f.g(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(h.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Object(h.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Object(d.a)(null),Object(h.a)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new g.c(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===n.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(t.keyCode===n.i?(this._keyManager.setFirstItemActive(),t.preventDefault()):t.keyCode===n.f?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new D(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(s.h),s.Mb(A.c,8),s.Mb(y.t,8),s.Mb(y.j,8),s.Mb(o.d),s.Mb(y.q,10))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;1&t&&s.Fb(i,R,!0),2&t&&s.sc(n=s.ac())&&(e.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.Zb("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(s.Vb("id",e._uid),s.Bb("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.Eb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s.zb([{provide:b.d,useExisting:t}]),s.xb],ngContentSelectors:w,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.jc(),s.Sb(0,"div",0),s.ic(1),s.Rb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),P=0,x=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.o,this.placeholder="",this.id="mat-chip-list-input-"+P++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=Object(a.c)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=Object(a.c)(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&t.keyCode===n.p&&!Object(n.t)(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){if(Object(n.t)(t))return!1;const e=this.separatorKeyCodes,i=t.keyCode;return Array.isArray(e)?e.indexOf(i)>-1:e.has(i)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(T))},t.\u0275dir=s.Hb({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.Zb("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(s.Vb("id",e.id),s.Bb("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.yb]}),t})();const N={separatorKeyCodes:[n.g]};let L=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[o.d,{provide:T,useValue:N}]}),t})()},SAuR:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("2kYt"),s=i("EM62");let o=(()=>{class t{transform(t,e){return t&&"never"!==t.toLowerCase()?Object(n.I)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"parseDate",type:t,pure:!0}),t})()},SrNW:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5uGe");function s(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new o(t,e,i))}}class o{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new r(t,this.accumulator,this.seed,this.hasSeed))}}class r extends n.a{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}},Ssnw:function(t,e,i){"use strict";i.d(e,"h",(function(){return r})),i.d(e,"d",(function(){return m})),i.d(e,"m",(function(){return h})),i.d(e,"i",(function(){return y})),i.d(e,"e",(function(){return _})),i.d(e,"a",(function(){return k})),i.d(e,"b",(function(){return T})),i.d(e,"l",(function(){return C})),i.d(e,"k",(function(){return I})),i.d(e,"c",(function(){return D})),i.d(e,"g",(function(){return M})),i.d(e,"n",(function(){return P})),i.d(e,"f",(function(){return x})),i.d(e,"j",(function(){return z}));var n=i("Iydx"),s=i("X2Q7"),o=i("EM62");let r=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeasOne(n.a.PERUNADMIN,n.a.FACILITYADMIN,n.a.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(n.a.PERUNADMIN)}isVoAdmin(){return this.hasAtLeasOne(n.a.PERUNADMIN,n.a.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(t)||this.observableVos.includes(t)||this.principalRoles.has(n.a.PERUNADMIN)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(n.a.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeasOne(n.a.PERUNADMIN,n.a.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeasOne(n.a.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(n.a.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeasOne(n.a.PERUNADMIN,n.a.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(n.a.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeasOne(n.a.PERUNADMIN,n.a.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeasOne(n.a.PERUNADMIN,n.a.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeasOne(n.a.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeasOne(n.a.PERUNADMIN,n.a.CABINETADMIN)}isVoObserver(){return this.hasAtLeasOne(n.a.PERUNADMIN,n.a.VOOBSERVER)}isThisVoObserver(t){return this.principalRoles.has(n.a.PERUNADMIN)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{class t{constructor(){}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(void 0!==this.instanceConfig)for(let i=0;i{class t{constructor(t){this.dialogRef=t}ngOnInit(){}refreshPage(){window.location.reload(),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(f.i))},t.\u0275cmp=o.Gb({type:t,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(t,e){1&t&&(o.Sb(0,"h1",0),o.Jc(1),o.ec(2,"translate"),o.Rb(),o.Sb(3,"div",1),o.Jc(4),o.ec(5,"translate"),o.Rb(),o.Sb(6,"div",2),o.Sb(7,"div",3),o.Sb(8,"button",4),o.Zb("click",(function(){return e.refreshPage()})),o.Jc(9),o.ec(10,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),o.Ab(3),o.Lc(" ",o.fc(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),o.Ab(5),o.Lc(" ",o.fc(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[f.j,f.g,f.c,g.b],pipes:[p.d],styles:[""]}),t})(),m=(()=>{class t{constructor(t,e,i){this.injector=t,this.store=e,this.dialog=i,this.userSet=new o.o,this.user=null,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(u.f)})}getUserManager(){return this.manager}getClientSettings(){return{authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri")}}loadConfigData(){this.manager=new a.UserManager(this.getClientSettings()),this.setUser(),this.manager.events.addUserLoaded(t=>{this.user=t}),this.manager.events.addAccessTokenExpired(()=>{const t=Object(d.o)();t.width="450px",this.dialog.open(b,t)})}authenticate(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e)}logout(){this.manager.signoutRedirect().catch((function(t){console.log(t)}))}isLoggedInPromise(){return Object(c.a)(this.manager.getUser()).pipe(Object(l.a)(t=>!!t&&!t.expired))}isLoggedIn(){return null!=this.user&&!this.user.expired}getClaims(){return this.user.profile}getAuthorizationHeaderValue(){return this.user?"Bearer "+this.user.access_token:""}startAuthentication(){return this.manager.signinRedirect()}completeAuthentication(){return this.manager.signinRedirectCallback().then(t=>{this.user=t,this.userSet.emit(this.user)})}startSigninMainWindow(){this.manager.signinRedirect({data:this.redirectUrl}).then((function(){console.log("signinRedirect done")})).catch((function(t){console.log(t)}))}setUser(){this.manager.getUser().then(t=>{this.user=t})}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().toPromise().then(i=>!!i||(this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),console.log("STARTED AUTH"),this.startAuthentication().then(()=>!1)):new Promise((t,e)=>e("Invalid path"))))}handleAuthCallback(){return this.completeAuthentication().then(()=>!0)}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});const e=sessionStorage.getItem("auth:redirect"),i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e?(sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([e],{queryParams:s,replaceUrl:!0})):(sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),this.router.navigate(["/"],{replaceUrl:!0}))}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(o.s),o.Wb(h),o.Wb(f.b))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var A=i("yv0D");let y=(()=>{class t{constructor(t,e,i,n,s){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s}authenticateUser(){return this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.authenticate()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=Object(d.o)();this.dialog.open(A.d,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}redirectToOriginDestination(){return this.authService.redirectToOriginDestination()}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(m),o.Wb(h),o.Wb(r),o.Wb(s.d),o.Wb(f.b))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var w=i("bFHC"),v=i("e4iD");let _=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(w.c),o.Wb(v.b))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})();var S=i("vobO"),E=i("47ST"),R=i("8j5Y");let C=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new o.o}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(p.e))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){const t=Object(d.o)();t.width="450px",this.dialog.open(b,t)}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe(Object(R.a)(t=>{t instanceof S.f&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?Object(E.a)(e):n?void this.notificator.showRPCError(i):Object(E.a)(i)}))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(m),o.Wb(T),o.Wb(C),o.Wb(h),o.Wb(f.b),o.Wb(y))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var O=i("4e/d");let D=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),Object(E.a)(s)}getHeaders(){let t=new S.d;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=new S.e,i=!0){const n=`${this.getApiUrl()}${t}`;return this.http.get(n,{headers:this.getHeaders()}).pipe(Object(O.a)(t=>this.formatErrors(t,n,null,i)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe(Object(O.a)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe(Object(O.a)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe(Object(O.a)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(S.b),o.Wb(C),o.Wb(m),o.Wb(h))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),M=(()=>{class t{constructor(t){this.router=t,this.lastState="forward",this.history=new Set,t.events.subscribe(t=>{t instanceof u.c&&("popstate"===t.navigationTrigger?this.history.has(t.restoredState.navigationId)?(this.lastState="back",this.history.delete(t.restoredState.navigationId)):(this.lastState="forward",this.history.add(t.id)):(this.history.add(t.id),this.lastState="forward"))})}forceNavigate(t,e){if(null===t)return;let i="";t.forEach(t=>i+="/"+t),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}getLastState(){return this.lastState}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(u.f))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),P=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t){this.membersService=t}getMembers(t,e,i,n,s,o){return this.membersService.getMembersPage({vo:t,attrNames:e,query:{pageSize:s,offset:n*s,order:i,sortColumn:o}})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(s.i))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var N=i("C05f"),L=i("ROBh"),F=i("ruxD");class z{constructor(t,e){this.dynamicPaginatingService=t,this.authzService=e,this.membersSubject=new N.a([]),this.loadingSubject=new N.a(!1),this.loading$=this.loadingSubject.asObservable(),this.allMemberCount=0,this.routeAuth=!0}loadMembers(t,e,i,n,s,o){this.loadingSubject.next(!0),this.dynamicPaginatingService.getMembers(t,e,i,n,s,o).pipe(Object(O.a)(()=>Object(L.a)([])),Object(F.a)(()=>this.loadingSubject.next(!1))).subscribe(e=>{const i=e.data;null!==i&&0!==i.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:t},i[0]])),this.allMemberCount=e.totalCount,this.membersSubject.next(e.data)})}connect(t){return this.membersSubject.asObservable()}disconnect(t){this.membersSubject.complete(),this.loadingSubject.complete()}getData(){return this.membersSubject.value}}},"Sv/w":function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return p})),i.d(e,"c",(function(){return f})),i.d(e,"d",(function(){return a})),i.d(e,"e",(function(){return d})),i.d(e,"f",(function(){return h})),i.d(e,"g",(function(){return g})),i.d(e,"h",(function(){return A})),i.d(e,"i",(function(){return m})),i.d(e,"j",(function(){return c}));var n=i("EM62"),s=i("2kYt");function o(){throw Error("Host already has a portal attached")}class r{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&o(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class a extends r{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class c extends r{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof n.l?t.nativeElement:t}}class u{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&o(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof c?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class h extends u{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class d extends h{}let p=(()=>{class t extends c{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.M),n.Mb(n.Q))},t.\u0275dir=n.Hb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.xb]}),t})(),f=(()=>{class t extends u{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.o,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.j),n.Mb(n.Q),n.Mb(s.e))},t.\u0275dir=n.Hb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.xb]}),t})(),g=(()=>{class t extends f{}return t.\u0275fac=function(e){return b(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[n.zb([{provide:f,useExisting:t}]),n.xb]}),t})();const b=n.Ub(g);let m=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})();class A{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}},Sv31:function(t,e,i){"use strict";i.d(e,"a",(function(){return T}));var n=i("X2Q7"),s=i("iyZ4"),o=i("nIj0"),r=i("2kYt"),a=i("EM62"),c=i("sEIs"),l=i("0XDM"),u=i("29Wa"),h=i("R7+U"),d=i("mFH5"),p=i("pynj"),f=i("BnyX"),g=i("+Tre"),b=i("PBFl"),m=i("csyo"),A=i("aag5"),y=i("oCM2"),w=i("s2Ay");function v(t,e){if(1&t){const t=a.Tb();a.Sb(0,"button",16),a.Zb("click",(function(){return a.xc(t),a.dc().showAllDetails=!0})),a.Jc(1),a.ec(2,"translate"),a.Rb()}2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function _(t,e){if(1&t){const t=a.Tb();a.Sb(0,"button",16),a.Zb("click",(function(){return a.xc(t),a.dc().showAllDetails=!1})),a.Jc(1),a.ec(2,"translate"),a.Rb()}2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function S(t,e){1&t&&a.Nb(0,"mat-spinner",17)}function E(t,e){if(1&t){const t=a.Tb();a.Sb(0,"app-applications-list",20),a.Zb("page",(function(e){return a.xc(t),a.dc(2).pageChanged(e)})),a.Rb()}if(2&t){const t=a.dc(2);a.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)}}function R(t,e){if(1&t){const t=a.Tb();a.Sb(0,"app-perun-web-apps-application-list-details",21),a.Zb("page",(function(e){return a.xc(t),a.dc(2).detailPageChanged(e)})),a.Rb()}if(2&t){const t=a.dc(2);a.kc("pageSize",t.detailPageSize)("filterValue",t.filterValue)("applications",t.applications)}}function C(t,e){if(1&t&&(a.Sb(0,"div"),a.Hc(1,E,1,4,"app-applications-list",18),a.Hc(2,R,1,3,"app-perun-web-apps-application-list-details",19),a.Rb()),2&t){const t=a.dc();a.Ab(1),a.kc("ngIf",!t.showAllDetails),a.Ab(1),a.kc("ngIf",t.showAllDetails)}}let T=(()=>{class t{constructor(t,e,i,n){this.voService=t,this.registrarManager=e,this.tableConfigService=i,this.route=n,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.gb,this.tableId=s.hb,this.checked=!1}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.setData(["NEW","VERIFIED"])}),this.startDate=new o.g(Object(r.I)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new o.g(Object(r.I)(new Date,"yyyy-MM-dd","en-GB"))})}setData(t){this.registrarManager.getApplicationsForVo(this.vo.id,t,Object(r.I)(this.startDate.value,"yyyy-MM-dd","en-GB"),Object(r.I)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=!1===this.checked?t.filter(t=>null===t.group):t,this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}showGroupApplications(t){this.checked=t.checked,this.select()}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(a.Mb(n.q),a.Mb(n.l),a.Mb(s.pb),a.Mb(c.a))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&a.Eb("router-component",!0)},decls:38,vars:36,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","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","page",4,"ngIf"],[3,"pageSize","filterValue","applications","displayedColumns","page"],[3,"pageSize","filterValue","applications","page"]],template:function(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Sb(4,"perun-web-apps-refresh-button",1),a.Zb("refresh",(function(){return e.select()})),a.Rb(),a.Hc(5,v,3,3,"button",2),a.Hc(6,_,3,3,"button",2),a.Sb(7,"mat-form-field",3),a.Sb(8,"mat-label"),a.Jc(9),a.ec(10,"translate"),a.Rb(),a.Sb(11,"mat-select",4),a.Zb("selectionChange",(function(){return e.select()}))("valueChange",(function(t){return e.state=t})),a.Sb(12,"mat-option",5),a.Jc(13),a.ec(14,"translate"),a.Rb(),a.Sb(15,"mat-option",6),a.Jc(16),a.ec(17,"translate"),a.Rb(),a.Sb(18,"mat-option",7),a.Jc(19),a.ec(20,"translate"),a.Rb(),a.Sb(21,"mat-option",8),a.Jc(22),a.ec(23,"translate"),a.Rb(),a.Sb(24,"mat-option",9),a.Jc(25),a.ec(26,"translate"),a.Rb(),a.Sb(27,"mat-option",10),a.Jc(28),a.ec(29,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Sb(30,"perun-web-apps-debounce-filter",11),a.Zb("filter",(function(t){return e.applyFilter(t)})),a.Rb(),a.Sb(31,"perun-web-apps-date-range",12),a.Zb("datePicker",(function(){return e.select()})),a.Rb(),a.Sb(32,"div"),a.Sb(33,"mat-checkbox",13),a.Zb("change",(function(t){return e.showGroupApplications(t)})),a.Jc(34),a.ec(35,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(36,S,1,0,"mat-spinner",14),a.Hc(37,C,3,2,"div",15)),2&t&&(a.Ab(1),a.Kc(a.fc(2,18,"VO_DETAIL.APPLICATION.TITLE")),a.Ab(4),a.kc("ngIf",!e.showAllDetails),a.Ab(1),a.kc("ngIf",e.showAllDetails),a.Ab(3),a.Kc(a.fc(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),a.Ab(2),a.kc("value",e.state),a.Ab(2),a.Kc(a.fc(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),a.Ab(3),a.Kc(a.fc(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),a.Ab(3),a.Kc(a.fc(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),a.Ab(3),a.Kc(a.fc(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),a.Ab(3),a.Kc(a.fc(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),a.Ab(3),a.Kc(a.fc(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),a.Ab(2),a.kc("placeholder","VO_DETAIL.APPLICATION.FILTER"),a.Ab(1),a.kc("startDate",e.startDate)("endDate",e.endDate),a.Ab(2),a.kc("checked",e.checked),a.Ab(1),a.Lc(" ",a.fc(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[l.a,r.t,u.c,u.g,h.a,d.n,p.a,f.a,g.a,b.b,m.c,A.a,y.a],pipes:[w.d],styles:[""]}),t})()},Sy1n:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("sEIs"),s=i("EM62");let o=(()=>{class t{constructor(t,e){this.router=t,this.routeReuseStrategy=e;const i=e;t.events.subscribe(t=>{t instanceof n.c&&i.setLastNavigationType("popstate"===t.navigationTrigger?"back":"direct")})}init(){}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.f),s.Wb(n.e))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var r=i("Ssnw"),a=i("3p4X"),c=i("vobO"),l=i("8clQ"),u=i("YSZu"),h=i("9RND"),d=i("xVbo"),p=i("OZ4H");function f(t,e){if(1&t&&(s.Sb(0,"div",10),s.Sb(1,"mat-icon"),s.Jc(2,"alert"),s.Rb(),s.Jc(3),s.Rb()),2&t){const t=s.dc();s.Ab(3),s.Lc(" ",t.warningMessage,"\n")}}const g=function(t,e){return{top:t,background:e}},b=function(t,e){return{"margin-top":t,"min-height":e}},m=function(t){return{"border-color":t}},A=function(t){return{background:t}},y=function(t,e){return{"min-height":t,"background-color":e}};let w=(()=>{class t{constructor(t,e,i,n,s){this.cache=t,this.store=e,this.http=i,this.dialog=n,this.router=s,this.sidebarMode="side",this.navBackgroundColor=this.store.get("theme","nav_bg_color"),this.sideBarBorderColor=this.store.get("theme","sidemenu_border_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.sideMenubackgroundColor=this.store.get("theme","sidemenu_bg_color"),this.displayWarning=this.store.get("display_warning"),this.warningMessage=this.store.get("warning_message"),this.version=h.a,this.cache.init(),this.getScreenSize(null)}getScreenSize(t){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isMobile(){return window.innerWidth<=t.minWidth}ngOnInit(){null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),Object(a.a)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe(Object(d.a)(t=>t instanceof n.c)).subscribe(t=>{this.updateInitAccessedPage(t)})}updateInitAccessedPage(t){t.url===sessionStorage.getItem("initPage")?("imperative"===t.navigationTrigger&&t.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===t.navigationTrigger&&(t.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(t.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const t=new c.d({"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:t}).subscribe(t=>{const e=t.version;if(e)if(this.version&&"SNAPSHOT"!==e&&this.version!==e){const t=Object(l.o)();this.dialog.open(u.a,t)}else this.version=e},()=>{})}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"}getContentInnerMinHeight(){return this.displayWarning?"calc((100vh - 112px) + 0px)":"calc((100vh - 64px) + 0px)"}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(s.Mb(o),s.Mb(r.m),s.Mb(c.b),s.Mb(p.b),s.Mb(n.f))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&s.Zb("resize",(function(t){return e.getScreenSize(t)}),!1,s.wc)},decls:13,vars:27,consts:[["class","beta-warning",4,"ngIf"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","sideNav","principal"],["id","content",3,"ngStyle"],[3,"ngStyle","mode","opened","fixedInViewport","fixedTopGap"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"beta-warning"]],template:function(t,e){if(1&t&&(s.Hc(0,f,4,1,"div",0),s.Nb(1,"app-perun-nav-menu",1),s.Nb(2,"app-notificator"),s.Sb(3,"mat-sidenav-container",2),s.Sb(4,"mat-sidenav",3,4),s.Sb(6,"perfect-scrollbar",5),s.Nb(7,"app-side-menu",6),s.Rb(),s.Rb(),s.Sb(8,"mat-sidenav-content",7),s.Sb(9,"div",8),s.Nb(10,"router-outlet"),s.Rb(),s.Sb(11,"div",9),s.Nb(12,"perun-web-apps-footer"),s.Rb(),s.Rb(),s.Rb()),2&t){const t=s.tc(5);s.kc("ngIf",e.displayWarning),s.Ab(1),s.kc("ngStyle",s.qc(14,g,e.getNavMenuTop(),e.navBackgroundColor))("sideNav",t)("principal",e.principal),s.Ab(2),s.kc("ngStyle",s.qc(17,b,e.getSideNavMarginTop(),e.getSideNavMinHeight())),s.Ab(1),s.kc("ngStyle",s.pc(20,m,e.sideBarBorderColor))("mode",e.sidebarMode)("opened",!e.isMobile())("fixedInViewport",!0)("fixedTopGap",e.getTopGap()),s.Ab(2),s.kc("ngStyle",s.pc(22,A,e.sideMenubackgroundColor))("scrollIndicators",!0),s.Ab(1),s.kc("sideNav",t),s.Ab(1),s.kc("ngStyle",s.qc(24,y,e.getContentInnerMinHeight(),e.contentBackgroundColor))}},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#footer[_ngcontent-%COMP%]{position:absolute;height:200px;bottom:0;width:100%}@media (max-width:768px){#footer[_ngcontent-%COMP%]{height:450px}}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width:768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.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}"]}),t})()},TKFd:function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return l})),i.d(e,"c",(function(){return h}));var n=i("5XID"),s=i("EM62"),o=i("IdLP"),r=i("ZTXN"),a=i("mWib");let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(n.e)(t);return new o.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new r.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(c))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(c))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(n.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(n.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(l),s.Mb(s.l),s.Mb(s.A))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[c]}),t})()},TLy2:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("pBDD"),s=i("r9RI"),o=i("mW0F"),r=i("YtkY"),a=i("GoAz");function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>Object(a.a)(t(i,n)).pipe(Object(r.a)((t,s)=>e(i,t,n,s))))):e=>e.lift(new l(t))}class l{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends n.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.a(this,e,i),a=this.destination;a.add(r),this.innerSubscription=Object(o.a)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},"TQS+":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a}));var n=i("EM62");let s=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})();var o=i("Ssnw");let r=(()=>{class t{constructor(t,e){this.el=t,this.router=e}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(o.g))},t.\u0275dir=n.Hb({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.Zb("click",(function(){return e.onClick()}))},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t})(),a=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){let t="";this.perunWebAppsMiddleClickRouterLink.forEach(e=>t+="/"+e),t.length>0&&(t=t.substring(1)),window.open(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.Zb("mouseup",(function(t){return e.onClick(t)}))},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})()},TkCa:function(t,e,i){"use strict";i.d(e,"c",(function(){return s})),i.d(e,"b",(function(){return o})),i.d(e,"d",(function(){return r})),i.d(e,"a",(function(){return a})),i.d(e,"h",(function(){return c})),i.d(e,"g",(function(){return l})),i.d(e,"e",(function(){return u})),i.d(e,"f",(function(){return h}));var n=i("f7+R");const s=Object(n.n)("openClose",[Object(n.k)("open",Object(n.l)({overflow:"hidden"})),Object(n.k)("closed",Object(n.l)({height:"0px",overflow:"hidden"})),Object(n.m)("open <=> closed",[Object(n.e)(".3s ease-in")])]),o=Object(n.n)("flyInOut",[Object(n.m)(":enter",[Object(n.l)({transform:"translateX(100%)"}),Object(n.e)(".25s")]),Object(n.m)(":leave",[Object(n.e)(".5s",Object(n.l)({transform:"translateX(100%)"}))])]),r=Object(n.n)("rollInOut",[Object(n.m)(":enter",[Object(n.l)({height:"0px"}),Object(n.e)(".25s")]),Object(n.m)(":leave",[Object(n.e)(".25s",Object(n.l)({height:"0px"}))])]),a=Object(n.n)("routeAnimations",[Object(n.m)("* => *",[Object(n.l)({position:"relative"}),Object(n.i)(":enter",[Object(n.l)({width:"100%",opacity:0})],{optional:!0}),Object(n.i)(":leave",[Object(n.l)({position:"absolute",width:"100%",opacity:1}),Object(n.e)("0.15s",Object(n.l)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Object(n.i)(":enter",[Object(n.l)({position:"absolute",width:"100%",opacity:0}),Object(n.e)("0.15s",Object(n.l)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c=Object(n.n)("tagsOpenClose",[Object(n.k)("open",Object(n.l)({})),Object(n.k)("closed",Object(n.l)({width:"0px",height:"0px"})),Object(n.m)("open <=> closed",[Object(n.e)(".3s ease-in")])]),l=Object(n.n)("switchAnimations",[Object(n.m)("true => false",[Object(n.i)(":enter, :leave",Object(n.l)({})),Object(n.g)([Object(n.i)(":enter",[Object(n.l)({transform:"translateX(-100%)"}),Object(n.e)("1s ease-in-out",Object(n.l)({transform:"translateX(0%)"}))],{optional:!0}),Object(n.i)(":leave",[Object(n.l)({transform:"translateX(0%)",position:"absolute"}),Object(n.e)("1s ease-in-out",Object(n.l)({transform:"translateX(100%)"}))],{optional:!0})])]),Object(n.m)("false => true",[Object(n.i)(":enter, :leave",Object(n.l)({})),Object(n.g)([Object(n.i)(":enter",[Object(n.l)({transform:"translateX(100%)"}),Object(n.e)("1s ease-in-out",Object(n.l)({transform:"translateX(0%)"}))],{optional:!0}),Object(n.i)(":leave",[Object(n.l)({transform:"translateX(0%)",position:"absolute"}),Object(n.e)("1s ease-in-out",Object(n.l)({transform:"translateX(-100%)"}))],{optional:!0})])])]),u=Object(n.n)("slideInOutLeft",[Object(n.m)(":enter",[Object(n.l)({transform:"translateX(-100%)",position:"relative"}),Object(n.e)("0.5s ease-in",Object(n.l)({transform:"translateX(0%)"}))]),Object(n.m)(":leave",[Object(n.e)("0.5s ease-in",Object(n.l)({transform:"translateX(-100%)"}))])]),h=Object(n.n)("slideInOutRight",[Object(n.m)(":enter",[Object(n.l)({transform:"translateX(100%)",position:"fixed"}),Object(n.e)("0.5s ease-in",Object(n.l)({transform:"translateX(0%)"}))]),Object(n.m)(":leave",[Object(n.l)({transform:"translateX(-100%)",position:"relative"}),Object(n.e)("0.5s ease-in",Object(n.l)({transform:"translateX(100%)"}))])])},Tsqg:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("Ssnw"),o=i("nyAh"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("Y2X+"),d=i("csyo"),p=i("29Wa"),f=i("Cd2c"),g=i("H0K4"),b=i("nIj0");function m(t,e){1&t&&a.Nb(0,"mat-spinner",7)}function A(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",8),a.Sb(1,"div"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"mat-form-field"),a.Sb(5,"textarea",9),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().mailFooter=e})),a.Rb(),a.Rb(),a.Sb(6,"div",10),a.Jc(7),a.ec(8,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),": "),a.Ab(3),a.kc("cdkTextareaAutosize",!0)("ngModel",t.mailFooter),a.Ab(2),a.Kc(a.fc(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION"))}}let y=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.attributesManager=e,this.translateService=i,this.notificator=n,this.data=s,this.mailFooter="",this.loading=!1}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.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,o.a.VO_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,o.a.GROUP_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}notificateSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(r.c),a.Mb(c.e),a.Mb(s.l),a.Mb(n.a))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[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"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,m,1,0,"mat-spinner",1),a.Hc(5,A,9,8,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.cancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"div",5),a.ec(11,"translate"),a.Sb(12,"button",6),a.Zb("click",(function(){return e.submit()})),a.Jc(13),a.ec(14,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),a.Ab(2),a.lc("matTooltip",a.fc(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),a.kc("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),a.Ab(2),a.kc("disabled",e.loading||!e.editAuth),a.Ab(1),a.Lc(" ",a.fc(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[n.j,l.t,n.c,u.b,h.a,d.c,n.g,p.c,f.b,g.c,b.c,b.r,b.u],pipes:[c.d],styles:[""]}),t})()},U3ra:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("+0js"),s=i("8clQ"),o=i("EM62"),r=i("OZ4H"),a=i("nIj0"),c=i("2kYt"),l=i("Y2X+"),u=i("29Wa"),h=i("Cd2c"),d=i("PBFl"),p=i("bFHC");function f(t,e){if(1&t){const t=o.Tb();o.Sb(0,"button",15),o.Zb("click",(function(){o.xc(t);const e=o.dc().index;return o.dc().removeValue(e)})),o.Sb(1,"mat-icon"),o.Jc(2," indeterminate_check_box "),o.Rb(),o.Rb()}}function g(t,e){if(1&t){const t=o.Tb();o.Sb(0,"div",9),o.Sb(1,"mat-form-field",10),o.Nb(2,"label",11),o.Sb(3,"input",12),o.Zb("click",(function(){o.xc(t);const i=e.index,n=o.dc();return n.readonly&&n.attribute.displayName&&n.showValue(n.keys[i],n.attribute.displayName)}))("ngModelChange",(function(i){o.xc(t);const n=e.index;return o.dc().keys[n]=i})),o.Rb(),o.Rb(),o.Sb(4,"mat-form-field",10),o.Nb(5,"label",11),o.Sb(6,"input",13),o.Zb("click",(function(){o.xc(t);const i=e.$implicit,n=o.dc();return n.readonly&&void 0!==n.attribute.displayName&&n.showValue(i,n.attribute.displayName)}))("ngModelChange",(function(i){o.xc(t);const n=e.index;return o.dc().values[n]=i})),o.Rb(),o.Rb(),o.Hc(7,f,3,0,"button",14),o.Rb()}if(2&t){const t=e.index,i=o.dc();o.Ab(1),o.lc("appearance",i.readonly?"none":"standard"),o.Ab(1),o.nc("for","",i.attribute.id,"-key-",t,""),o.Ab(1),o.Eb("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.nc("id","",i.attribute.id,"-key-",t,""),o.mc("name","key-",t,""),o.kc("ngModel",i.keys[t])("readonly",i.readonly),o.Ab(1),o.lc("appearance",i.readonly?"none":"standard"),o.Ab(1),o.nc("for","",i.attribute.id,"-value-",t,""),o.Ab(1),o.Eb("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.mc("name","value-",t,""),o.nc("id","",i.attribute.id,"-value-",t,""),o.kc("readonly",i.readonly)("ngModel",i.values[t]),o.Ab(1),o.kc("ngIf",!i.readonly)}}function b(t,e){1&t&&(o.Sb(0,"mat-icon"),o.Jc(1,"more_horiz"),o.Rb())}function m(t,e){1&t&&(o.Sb(0,"mat-icon"),o.Jc(1,"keyboard_arrow_up"),o.Rb())}function A(t,e){if(1&t){const t=o.Tb();o.Sb(0,"button",16),o.Zb("click",(function(){return o.xc(t),o.dc().onShowChange()})),o.Hc(1,b,2,0,"mat-icon",17),o.Hc(2,m,2,0,"mat-icon",17),o.Rb()}if(2&t){const t=o.dc();o.Ab(1),o.kc("ngIf",!t.showMore),o.Ab(1),o.kc("ngIf",t.showMore)}}function y(t,e){if(1&t){const t=o.Tb();o.Sb(0,"button",18),o.Zb("click",(function(){return o.xc(t),o.dc().addValue()})),o.Sb(1,"mat-icon"),o.Jc(2," add_box "),o.Rb(),o.Rb()}}let w=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(void 0!==this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Object(s.s)(this.attribute))}customTrackBy(t,e){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 e=0;ee.defaultItemsShown),o.Ab(1),o.kc("ngIf",!e.readonly))},directives:[a.H,a.s,a.t,c.s,l.a,c.t,u.c,h.b,a.c,a.C,a.r,a.u,d.b,p.a],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}"]}),t})()},"UX+r":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("EM62"),s=i("8clQ"),o=i("+0js"),r=i("OZ4H"),a=i("29Wa"),c=i("Cd2c"),l=i("nIj0");let u=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.o}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=Object(s.s)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=Object(s.o)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.l,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.b))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.Sb(0,"mat-form-field",0),n.Sb(1,"input",1),n.Zb("click",(function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)}))("ngModelChange",(function(t){return e.attribute.value=t}))("keydown",(function(){return e._sendEventToParent()})),n.Rb(),n.Rb()),2&t&&(n.lc("appearance",e.readonly?"none":"standard"),n.Ab(1),n.Eb("cursor-pointer",e.readonly&&void 0!==e.value),n.kc("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[a.c,c.b,l.c,l.r,l.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},V78E:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new s.o(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onSubmit()},()=>{this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(c.e),a.Mb(r.m))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-remove-resource-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,9,"DIALOGS.REMOVE_RESOURCES.TITLE")),a.Ab(2),a.Cb(e.data.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_RESOURCES.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l],pipes:[c.d],styles:[""]}),t})()},VBdk:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),s=i("OZ4H"),o=i("s2Ay");let r=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.i))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(n.Sb(0,"h2",0),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[s.g],pipes:[o.d],styles:[""]}),t})()},VEwN:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("cqs0"),a=i("iyZ4"),c=i("EM62"),l=i("s2Ay"),u=i("2kYt"),h=i("PBFl"),d=i("Y2X+"),p=i("csyo"),f=i("pynj"),g=i("K9kF");function b(t,e){1&t&&c.Nb(0,"mat-spinner",6)}const m=function(){return["recent","vo","expiration","menu"]};function A(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div",7),c.Sb(1,"perun-web-apps-debounce-filter",8),c.Zb("filter",(function(e){return c.xc(t),c.dc().applyFilter(e)})),c.ec(2,"translate"),c.Rb(),c.Sb(3,"perun-web-apps-groups-list",9),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb(),c.Rb()}if(2&t){const t=c.dc();c.Ab(1),c.lc("placeholder",c.fc(2,8,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),c.Ab(2),c.kc("pageSize",t.pageSize)("groups",t.unAssignedGroups)("selection",t.selection)("filter",t.filterValue)("hideColumns",c.oc(10,m))("disableRouting",!0)("disableMembers",!1)}}let y=(()=>{class t{constructor(t,e,i,n,s,o,c,l){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourceManager=s,this.tableConfigService=o,this.groupService=c,this.guiAuthResolver=l,this.loading=!1,this.checkGroups=!1,this.selection=new r.c(!0,[]),this.filterValue="",this.tableId=a.p}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resource=this.data.resource,this.resourceManager.getAssignedGroups(this.resource.id).subscribe(t=>{this.groupService.getAllGroups(this.resource.voId).subscribe(e=>{this.unAssignedGroups=e;for(const i of t)for(const t of e)i.id===t.id&&this.unAssignedGroups.splice(this.unAssignedGroups.indexOf(t),1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){if(this.checkGroups);else{this.loading=!0;const t=[];for(const e of this.selection.selected)t.push(e.id);this.resourceManager.assignGroupsToResource(t,this.resource.id).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(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}canAddGroups(){let t=!0;return this.selection.selected.forEach(e=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,e])||(t=!1)}),t}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(s.l),c.Mb(l.e),c.Mb(o.m),c.Mb(a.pb),c.Mb(o.h),c.Mb(s.h))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],decls:14,vars:19,consts:[["mat-dialog-title",""],["class","mr-auto ml-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","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","hideColumns","disableRouting","disableMembers","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,b,1,0,"mat-spinner",1),c.Hc(5,A,4,11,"div",2),c.Sb(6,"div",3),c.Sb(7,"button",4),c.Zb("click",(function(){return e.onCancel()})),c.Jc(8),c.ec(9,"translate"),c.Rb(),c.Sb(10,"button",5),c.Zb("click",(function(){return e.onAdd()})),c.ec(11,"translate"),c.Jc(12),c.ec(13,"translate"),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Cb(e.theme),c.Ab(2),c.Kc(c.fc(3,11,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(3),c.Lc(" ",c.fc(9,13,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),c.Ab(2),c.lc("matTooltip",c.fc(11,15,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_TOOLTIP")),c.kc("disabled",0===e.selection.selected.length||!e.canAddGroups()||e.loading)("matTooltipDisabled",e.canAddGroups()),c.Ab(2),c.Lc(" ",c.fc(13,17,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))},directives:[n.j,u.t,n.c,h.b,d.a,p.c,n.g,f.a,g.a],pipes:[l.d],styles:[""]}),t})()},VFai:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("4sdY"),s=i("X2Q7"),o=i("8clQ"),r=i("iyZ4"),a=i("cqs0"),c=i("AtkZ"),l=i("49Zq"),u=i("EM62"),h=i("OZ4H"),d=i("EtYo"),p=i("bFHC"),f=i("2kYt"),g=i("0XDM"),b=i("PBFl"),m=i("A8Ay"),A=i("csyo"),y=i("w+DT"),w=i("s2Ay");function v(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-refresh-button",9),u.Zb("refresh",(function(){return u.xc(t),u.dc().refreshTable()})),u.Rb()}}function _(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",10),u.Zb("click",(function(){return u.xc(t),u.dc().onCreate()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}2&t&&(u.Ab(1),u.Kc(u.fc(2,1,"FACILITY_MANAGEMENT.CREATE")))}function S(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",11),u.Zb("click",(function(){return u.xc(t),u.dc().onDelete()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}if(2&t){const t=u.dc();u.kc("disabled",0===t.selection.selected.length),u.Ab(1),u.Kc(u.fc(2,2,"FACILITY_MANAGEMENT.DELETE"))}}function E(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-immediate-filter",12),u.Zb("filter",(function(e){return u.xc(t),u.dc().applyFilter(e)})),u.Rb()}2&t&&u.kc("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER")}function R(t,e){1&t&&u.Nb(0,"mat-spinner",13)}function C(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-facilities-list",14),u.Zb("page",(function(e){return u.xc(t),u.dc().pageChanged(e)})),u.Rb()}if(2&t){const t=u.dc();u.kc("pageSize",t.pageSize)("selection",t.selection)("filterValue",t.filterValue)("facilities",t.facilities)("recentIds",t.recentIds)}}const T=function(){return{color:"black"}};let k=(()=>{class t{constructor(t,e,i,n){this.facilityManager=t,this.sideMenuService=e,this.tableConfigService=i,this.dialog=n,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=r.B,this.selection=new a.c(!1,[])}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(t=>{this.selection.clear(),this.facilities=t,this.recentIds=Object(o.r)("facilities"),this.loading=!1})}onCreate(){const t=Object(o.o)();t.width="800px",t.data={theme:"facility-theme"},this.dialog.open(c.a,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onDelete(){const t=Object(o.o)();t.width="650px",t.data={facility:this.selection.selected[0],theme:"facility-theme"},this.dialog.open(l.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilitySelectPageComponent",t.\u0275fac=function(e){return new(e||t)(u.Mb(s.g),u.Mb(n.a),u.Mb(r.pb),u.Mb(h.b))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&u.Eb("router-component",!0)},decls:12,vars:11,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",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","selection","filterValue","facilities","recentIds","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","selection","filterValue","facilities","recentIds","page"]],template:function(t,e){1&t&&(u.Sb(0,"div",0),u.Nb(1,"perun-web-apps-back-button"),u.Sb(2,"h1",1),u.Nb(3,"mat-icon",2),u.Jc(4),u.ec(5,"translate"),u.Rb(),u.Hc(6,v,1,0,"perun-web-apps-refresh-button",3),u.Hc(7,_,3,3,"button",4),u.Hc(8,S,3,4,"button",5),u.Hc(9,E,1,2,"perun-web-apps-immediate-filter",6),u.Hc(10,R,1,0,"mat-spinner",7),u.Hc(11,C,1,5,"perun-web-apps-facilities-list",8),u.Rb()),2&t&&(u.Ab(3),u.kc("ngStyle",u.oc(10,T)),u.Ab(1),u.Lc(" ",u.fc(5,8,"FACILITY_MANAGEMENT.TITLE")," "),u.Ab(2),u.kc("ngIf",!e.loading),u.Ab(1),u.kc("ngIf",!e.loading),u.Ab(1),u.kc("ngIf",!e.loading),u.Ab(1),u.kc("ngIf",!e.loading),u.Ab(1),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading))},directives:[d.a,p.a,f.w,f.t,g.a,b.b,m.a,A.c,y.a],pipes:[w.d],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},VMyb:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),s=i("OZ4H"),o=i("PBFl"),r=i("s2Ay");let a=(()=>{class t{constructor(t){this.dialogRef=t}ngOnInit(){}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.i))},t.\u0275cmp=n.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(n.Sb(0,"h1",0),n.Jc(1),n.ec(2,"translate"),n.Rb(),n.Sb(3,"div",1),n.Sb(4,"div",2),n.Jc(5),n.ec(6,"translate"),n.Rb(),n.Sb(7,"div"),n.Jc(8),n.ec(9,"translate"),n.Rb(),n.Sb(10,"div",3),n.Jc(11),n.ec(12,"translate"),n.Rb(),n.Rb(),n.Sb(13,"div",4),n.Sb(14,"button",5),n.Zb("click",(function(){return e.onCancel()})),n.Jc(15),n.ec(16,"translate"),n.Rb(),n.Sb(17,"button",6),n.Zb("click",(function(){return e.submit()})),n.Jc(18),n.ec(19,"translate"),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),n.Ab(4),n.Kc(n.fc(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")),n.Ab(3),n.Kc(n.fc(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),n.Ab(3),n.Kc(n.fc(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),n.Ab(4),n.Lc(" ",n.fc(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),n.Ab(3),n.Lc(" ",n.fc(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},directives:[s.j,s.g,s.c,o.b],pipes:[r.d],styles:[""]}),t})()},VYu3:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),s=i("FcRk"),o=i("qvOF"),r=i("wBUr"),a=i("s2Ay");let c=(()=>{class t{constructor(){this.addedTag=new n.o,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 t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),this.applicationRelatedTags=t}getUserRelatedTags(){const t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}getValidationLinksUsersTags(){const t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}getApplicationLinksUsersTags(){const t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}getApplicationLinksAdministratorsTags(){const t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}getPerunLinksAdministratorsTags(){const t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}getUserInvitationsTags(){const t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"app-alert",0),n.Jc(1),n.ec(2,"translate"),n.Rb(),n.Sb(3,"div",1),n.Sb(4,"div",2),n.Jc(5),n.ec(6,"translate"),n.Rb(),n.Sb(7,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(8,"div",4),n.Jc(9),n.ec(10,"translate"),n.Rb(),n.Sb(11,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(12,"div",4),n.Jc(13),n.ec(14,"translate"),n.Rb(),n.Sb(15,"div",5),n.Jc(16),n.ec(17,"translate"),n.Rb(),n.Sb(18,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(19,"div",4),n.Jc(20),n.ec(21,"translate"),n.Rb(),n.Sb(22,"div",5),n.Jc(23),n.ec(24,"translate"),n.Rb(),n.Sb(25,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(26,"div",4),n.Jc(27),n.ec(28,"translate"),n.Rb(),n.Sb(29,"div",5),n.Jc(30),n.ec(31,"translate"),n.Rb(),n.Sb(32,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(33,"div",4),n.Jc(34),n.ec(35,"translate"),n.Rb(),n.Sb(36,"div",5),n.Jc(37),n.ec(38,"translate"),n.Rb(),n.Sb(39,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(40,"div",4),n.Jc(41),n.ec(42,"translate"),n.Rb(),n.Sb(43,"div",5),n.Jc(44),n.ec(45,"translate"),n.Rb(),n.Sb(46,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),n.Ab(4),n.Lc("",n.fc(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),":"),n.Ab(2),n.kc("tags",e.applicationRelatedTags),n.Ab(2),n.Lc("",n.fc(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),":"),n.Ab(2),n.kc("tags",e.userRelatedTags),n.Ab(2),n.Lc("",n.fc(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.validationLinksUsersTags),n.Ab(2),n.Lc("",n.fc(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.applicationLinksUsersTags),n.Ab(2),n.Lc("",n.fc(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.applicationLinksAdministratorsTags),n.Ab(2),n.Lc("",n.fc(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.perunLinksAdministratorsTags),n.Ab(2),n.Lc("",n.fc(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.userInvitationsTags))},directives:[s.a,o.b,r.a],pipes:[a.d],styles:[".scrollable[_ngcontent-%COMP%]{height:380px;overflow:auto}"]}),t})()},VvXq:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EWqr");class s extends n.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var o=i("DG/E");class r extends o.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},W1gw:function(t,e,i){"use strict";i.d(e,"a",(function(){return g})),i.d(e,"b",(function(){return b}));var n=i("HYj3"),s=i("Sv/w"),o=i("2kYt"),r=i("EM62"),a=i("mFH5"),c=i("PBFl"),l=i("ZTXN"),u=i("J+dc"),h=(i("kuMc"),i("f7+R"));function d(t,e){}i("sg/T"),i("HOZh");class p{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const f={snackBarState:Object(h.n)("state",[Object(h.k)("void, hidden",Object(h.l)({transform:"scale(0.8)",opacity:0})),Object(h.k)("visible",Object(h.l)({transform:"scale(1)",opacity:1})),Object(h.m)("* => visible",Object(h.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(h.m)("* => void, * => hidden",Object(h.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(h.l)({opacity:0})))])};let g=(()=>{class t extends s.a{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new l.a,this._onEnter=new l.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==n.politeness||n.announcementMessage?"off"===n.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(u.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.A),r.Mb(r.l),r.Mb(r.h),r.Mb(p))},t.\u0275cmp=r.Gb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&r.Dc(s.c,!0),2&t&&r.sc(i=r.ac())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&r.Fc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(r.Bb("role",e._role),r.Gc("@state",e._animationState))},features:[r.xb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.Hc(0,d,0,0,"ng-template",0)},directives:[s.c],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[f.snackBarState]}}),t})(),b=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[n.f,s.i,o.c,c.c,a.i],a.i]}),t})()},"W5/Z":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("Ssnw"),s=i("EM62"),o=i("s2Ay");let r=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e){const i=this.storage.get("custom_labels");if(i){const e=Object.keys(i);for(const i of e){const e=this.storage.get("custom_labels",i);if(e.label===t)return"en"===this.translate.currentLang?e.en:e.cz}}return t}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(o.e),s.Mb(n.m))},t.\u0275pipe=s.Lb({name:"customTranslate",type:t,pure:!0}),t})()},WLDY:function(t,e,i){"use strict";i.d(e,"a",(function(){return U}));var n=i("EM62"),s=i("cqs0"),o=i("iAde"),r=i("cePI"),a=i("FlRo"),c=i("8clQ"),l=i("Ssnw"),u=i("2kYt"),h=i("9wx0"),d=i("+Tre"),p=i("sEIs"),f=i("TQS+"),g=i("FcRk"),b=i("s2Ay"),m=i("Y7Yh");function A(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e&&i.masterToggle(),i.selectionChange.emit()})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function y(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",21),n.Sb(1,"mat-checkbox",22),n.Zb("click",(function(e){return n.xc(t),e.stopPropagation()}))("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i&&o.selection.toggle(s),o.selectionChange.emit()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("checked",i.selection.isSelected(t))("aria-label",i.checkboxLabel(t))}}function w(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function v(t,e){if(1&t&&(n.Sb(0,"div"),n.Jc(1),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Kc(t.task.id)}}function _(t,e){1&t&&(n.Sb(0,"div"),n.Jc(1,"0"),n.Rb())}function S(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,v,2,1,"div",24),n.Hc(2,_,2,0,"div",24),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",t.task),n.Ab(1),n.kc("ngIf",!t.task)}}function E(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function R(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.service.name)}}function C(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function T(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.status)}}function k(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function I(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"serviceStateBlockedToString"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function O(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function D(t,e){if(1&t&&(n.Sb(0,"div"),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Kc(n.gc(2,1,t.task.startTime,"d.M.y H:mm:ss"))}}function M(t,e){1&t&&(n.Sb(0,"div"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function P(t,e){if(1&t&&(n.Sb(0,"td",25),n.Hc(1,D,3,4,"div",24),n.Hc(2,M,3,3,"div",24),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",t.task&&t.task.startTime),n.Ab(1),n.kc("ngIf",!t.task||!t.task.startTime)}}function x(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function N(t,e){if(1&t&&(n.Sb(0,"div"),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Kc(n.gc(2,1,t.task.endTime,"d.M.y H:mm:ss"))}}function L(t,e){1&t&&(n.Sb(0,"div"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function F(t,e){if(1&t&&(n.Sb(0,"td",25),n.Hc(1,N,3,4,"div",24),n.Hc(2,L,3,3,"div",24),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",t.task&&t.task.endTime),n.Ab(1),n.kc("ngIf",!t.task||!t.task.endTime)}}function z(t,e){1&t&&n.Nb(0,"tr",26)}const H=function(t,e){return["/facilities",t,"services-status",e]};function B(t,e){if(1&t&&n.Nb(0,"tr",27),2&t){const t=e.$implicit,i=n.dc();n.Eb("disable-outline",i.disableRouting||!t.task)("make-yellow","WARNING"===t.status)("make-green","DONE"===t.status)("make-red","GENERROR"===t.status||"SENDERROR"===t.status||"ERROR"===t.status)("cursor-pointer",!i.disableRouting&&null!==t.task),n.kc("routerLink",i.disableRouting||null===t.task?null:n.qc(12,H,t.facility.id,t.taskId))("perunWebAppsMiddleClickRouterLink",i.disableRouting||null===t.task?null:n.qc(15,H,t.facility.id,t.taskId))}}function j(t,e){1&t&&(n.Sb(0,"app-alert",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G(t,e){1&t&&(n.Sb(0,"app-alert",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let U=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.servicesStatus=[],this.hideColumns=[],this.selection=new s.c(!0,[]),this.pageSize=10,this.disableRouting=!0,this.page=new n.o,this.selectionChange=new n.o,this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.pageSizeOptions=c.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"task.id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new a.o(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(t,e)=>{const i=e.trim().toLowerCase(),n=t=>{let e="";return Object.values(t).forEach(t=>{"object"!=typeof t?e=e+" "+t:null!==t&&(e=e+" "+n(t))}),e.trim().toLowerCase()};return n(t).includes(i)},this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?Object(u.I)(t.task.startTime,"d.M.y H:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?Object(u.I)(t.task.endTime,"d.M.y H:mm:ss","en"):t[e];default:return t[e]}}getSortDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?Object(u.I)(t.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?Object(u.I)(t.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];default:return t[e]}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Dc(o.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{servicesStatus:"servicesStatus",hideColumns:"hideColumns",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page",selectionChange:"selectionChange"},features:[n.yb],decls:30,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"table",3),n.Qb(4,4),n.Hc(5,A,2,3,"th",5),n.Hc(6,y,2,2,"td",6),n.Pb(),n.Qb(7,7),n.Hc(8,w,3,3,"th",8),n.Hc(9,S,3,2,"td",6),n.Pb(),n.Qb(10,9),n.Hc(11,E,3,3,"th",8),n.Hc(12,R,2,1,"td",10),n.Pb(),n.Qb(13,11),n.Hc(14,C,3,3,"th",8),n.Hc(15,T,2,1,"td",10),n.Pb(),n.Qb(16,12),n.Hc(17,k,3,3,"th",8),n.Hc(18,I,3,3,"td",10),n.Pb(),n.Qb(19,13),n.Hc(20,O,3,3,"th",8),n.Hc(21,P,3,2,"td",10),n.Pb(),n.Qb(22,14),n.Hc(23,x,3,3,"th",8),n.Hc(24,F,3,2,"td",10),n.Pb(),n.Hc(25,z,1,0,"tr",15),n.Hc(26,B,1,18,"tr",16),n.Rb(),n.Sb(27,"mat-paginator",17),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(28,j,3,3,"app-alert",18),n.Hc(29,G,3,3,"app-alert",18)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.servicesStatus.length),n.Ab(3),n.kc("dataSource",e.dataSource),n.Ab(22),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.servicesStatus.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.servicesStatus.length),n.Ab(1),n.kc("ngIf",0===e.servicesStatus.length))},directives:[h.a,a.n,r.a,a.c,a.i,a.b,a.k,a.m,o.a,u.t,a.h,d.a,a.a,r.b,a.j,a.l,p.g,f.c,g.a],pipes:[b.d,m.a,u.f],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}"]}),t})()},WimW:function(t,e,i){"use strict";i.d(e,"a",(function(){return I}));var n=i("OZ4H"),s=i("Ssnw"),o=i("cqs0"),r=i("X2Q7"),a=i("iyZ4"),c=i("nyAh"),l=i("nIj0"),u=i("EM62"),h=i("s2Ay"),d=i("sEIs"),p=i("29Wa"),f=i("R7+U"),g=i("2kYt"),b=i("Cd2c"),m=i("PBFl"),A=i("mFH5"),y=i("csyo"),w=i("FcRk"),v=i("NC8S"),_=i("L4Ow");function S(t,e){if(1&t&&(u.Sb(0,"mat-option",15),u.Jc(1),u.ec(2,"displayedRole"),u.Rb()),2&t){const t=e.$implicit;u.kc("value",t),u.Ab(1),u.Kc(u.fc(2,2,t))}}function E(t,e){1&t&&u.Nb(0,"mat-spinner",16)}function R(t,e){1&t&&(u.Sb(0,"app-alert",20),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const C=function(){return["select","id","name","email","logins","organization"]};function T(t,e){if(1&t){const t=u.Tb();u.Sb(0,"app-users-list",21),u.Zb("page",(function(e){return u.xc(t),u.dc(2).pageChanged(e)})),u.Rb()}if(2&t){const t=u.dc(2);u.kc("pageSize",t.pageSize)("disableRouting",!0)("selection",t.selection)("displayedColumns",u.oc(5,C))("users",t.users)}}function k(t,e){if(1&t&&(u.Sb(0,"div",17),u.Hc(1,R,3,3,"app-alert",18),u.Hc(2,T,1,6,"app-users-list",19),u.Rb()),2&t){const t=u.dc();u.Ab(1),u.kc("ngIf",0===t.users.length&&t.firstSearchDone),u.Ab(1),u.kc("ngIf",0!==t.users.length)}}let I=(()=>{class t{constructor(t,e,i,n,s,r,c,l,u,h){this.dialogRef=t,this.data=e,this.authzService=i,this.usersService=n,this.translate=s,this.notificator=r,this.storeService=c,this.route=l,this.router=u,this.tableConfigService=h,this.selection=new o.c(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=a.f,s.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(t=>this.title=t),s.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new l.g("",[l.F.required,l.F.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(t=>t.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let t=[c.a.USER_DEF_ORGANIZATION,c.a.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(t=>{this.users=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(u.Mb(n.i),u.Mb(n.a),u.Mb(r.d),u.Mb(r.p),u.Mb(h.e),u.Mb(s.l),u.Mb(s.m),u.Mb(d.a),u.Mb(d.f),u.Mb(a.pb))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-add-manager-dialog"]],decls:32,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",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page",4,"ngIf"],["alert_type","warn"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page"]],template:function(t,e){1&t&&(u.Sb(0,"div"),u.Sb(1,"h1",0),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Sb(4,"div",1),u.Sb(5,"div",2),u.Sb(6,"mat-form-field",3),u.Sb(7,"mat-label"),u.Jc(8),u.ec(9,"translate"),u.Rb(),u.Sb(10,"mat-select",4),u.Zb("valueChange",(function(t){return e.selectedRole=t})),u.Hc(11,S,3,4,"mat-option",5),u.Rb(),u.Rb(),u.Sb(12,"mat-form-field",6),u.Sb(13,"label"),u.Sb(14,"input",7),u.Zb("keyup.enter",(function(){return e.onSearchByString()})),u.ec(15,"translate"),u.Rb(),u.Rb(),u.Sb(16,"mat-error"),u.Jc(17),u.ec(18,"translate"),u.Rb(),u.Rb(),u.Rb(),u.Sb(19,"button",8),u.Zb("click",(function(){return e.onSearchByString()})),u.Jc(20),u.ec(21,"translate"),u.Rb(),u.Sb(22,"div",9),u.Hc(23,E,1,0,"mat-spinner",10),u.Rb(),u.Hc(24,k,3,2,"div",11),u.Rb(),u.Sb(25,"div",12),u.Sb(26,"button",13),u.Zb("click",(function(){return e.onCancel()})),u.Jc(27),u.ec(28,"translate"),u.Rb(),u.Sb(29,"button",14),u.Zb("click",(function(){return e.onSubmit()})),u.Jc(30),u.ec(31,"translate"),u.Rb(),u.Rb(),u.Rb()),2&t&&(u.Cb(e.theme),u.Ab(2),u.Kc(u.fc(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),u.Ab(6),u.Kc(u.fc(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.Ab(2),u.kc("value",e.selectedRole),u.Ab(1),u.kc("ngForOf",e.availableRoles),u.Ab(3),u.lc("placeholder",u.fc(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),u.kc("formControl",e.searchCtrl),u.Ab(3),u.Lc(" ",u.fc(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),u.Ab(2),u.kc("disabled",e.loading),u.Ab(1),u.Lc(" ",u.fc(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),u.Ab(3),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",null!==e.users&&!e.loading),u.Ab(3),u.Lc(" ",u.fc(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.Ab(2),u.kc("disabled",0===e.selection.selected.length||void 0===e.selectedRole||e.loading),u.Ab(1),u.Lc(" ",u.fc(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[n.j,n.g,p.c,p.g,f.a,g.s,b.b,l.c,l.r,l.h,p.b,m.b,g.t,n.c,A.n,y.c,w.a,v.a],pipes:[h.d,_.a],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),t})()},"Wq+4":function(t,e,i){"use strict";i.d(e,"a",(function(){return S}));var n=i("X2Q7"),s=i("iyZ4"),o=i("Ssnw"),r=i("EM62"),a=i("sEIs"),c=i("0XDM"),l=i("29Wa"),u=i("R7+U"),h=i("mFH5"),d=i("2kYt"),p=i("A8Ay"),f=i("csyo"),g=i("K9kF"),b=i("FcRk"),m=i("s2Ay");function A(t,e){if(1&t&&(r.Sb(0,"mat-option",9),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.kc("value",t.id),r.Ab(1),r.Lc(" ",t.name," ")}}function y(t,e){1&t&&r.Nb(0,"mat-spinner",10)}const w=function(){return["select","recent","expiration","menu"]};function v(t,e){if(1&t){const t=r.Tb();r.Sb(0,"perun-web-apps-groups-list",11),r.Zb("page",(function(e){return r.xc(t),r.dc().pageChanged(e)})),r.Rb()}if(2&t){const t=r.dc();r.kc("pageSize",t.pageSize)("hideColumns",r.oc(6,w))("groups",t.groupsToShow)("groupsToDisable",t.groupsWithoutRouteAuth)("filter",t.filterValue)("disableMembers",!1)}}function _(t,e){1&t&&(r.Sb(0,"app-alert",12),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"FACILITY_DETAIL.ALLOWED_GROUPS.NO_GROUPS_ALERT")," "))}let S=(()=>{class t{constructor(t,e,i,n){this.facilityManager=t,this.route=e,this.tableConfigService=i,this.authResolver=n,this.filterValue="",this.groups=[],this.selected="all",this.groupsToShow=this.groups,this.tableId=s.u,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.facilityManager.getAllowedVos(this.facilityId).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.filterValue="",this.vos.forEach(t=>{this.facilityManager.getAllowedGroups(this.facilityId,t.id).subscribe(e=>{this.groups=this.groups.concat(e),this.groupsToShow=this.groups,this.setAuthRights(t,e),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(t,e){e.forEach(e=>{this.authResolver.isAuthorized("getGroupById_int_policy",[t,e])||this.groupsWithoutRouteAuth.add(e.id)})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilityAllowedGroupsComponent",t.\u0275fac=function(e){return new(e||t)(r.Mb(n.g),r.Mb(a.a),r.Mb(s.pb),r.Mb(o.h))},t.\u0275cmp=r.Gb({type:t,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(t,e){2&t&&r.Eb("router-component",!0)},inputs:{groups:"groups"},decls:18,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"value","valueChange","selectionChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","hideColumns","groups","groupsToDisable","filter","disableMembers","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","hideColumns","groups","groupsToDisable","filter","disableMembers","page"],["alert_type","warn"]],template:function(t,e){1&t&&(r.Sb(0,"div"),r.Sb(1,"h1",0),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Sb(4,"perun-web-apps-refresh-button",1),r.Zb("refresh",(function(){return e.refreshTable()})),r.Rb(),r.Sb(5,"mat-form-field"),r.Sb(6,"mat-label"),r.Jc(7),r.ec(8,"translate"),r.Rb(),r.Sb(9,"mat-select",2),r.Zb("valueChange",(function(t){return e.selected=t}))("selectionChange",(function(){return e.showGroup()})),r.Sb(10,"mat-option",3),r.Jc(11),r.ec(12,"translate"),r.Rb(),r.Hc(13,A,2,2,"mat-option",4),r.Rb(),r.Rb(),r.Sb(14,"perun-web-apps-immediate-filter",5),r.Zb("filter",(function(t){return e.applyFilter(t)})),r.Rb(),r.Hc(15,y,1,0,"mat-spinner",6),r.Hc(16,v,1,7,"perun-web-apps-groups-list",7),r.Hc(17,_,3,3,"app-alert",8),r.Rb()),2&t&&(r.Ab(2),r.Kc(r.fc(3,9,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),r.Ab(5),r.Kc(r.fc(8,11,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),r.Ab(2),r.kc("value",e.selected),r.Ab(2),r.Kc(r.fc(12,13,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),r.Ab(2),r.kc("ngForOf",e.vos),r.Ab(1),r.kc("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),r.Ab(1),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading&&0!==e.groupsToShow.length),r.Ab(1),r.kc("ngIf",0===e.groupsToShow.length&&!e.loading))},directives:[c.a,l.c,l.g,u.a,h.n,d.s,p.a,d.t,f.c,g.a,b.a],pipes:[m.d],styles:[""]}),t})()},X0qr:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,"a",(function(){return n}))},X2Q7:function(t,e,i){"use strict";i.d(e,"c",(function(){return c})),i.d(e,"d",(function(){return u})),i.d(e,"f",(function(){return p})),i.d(e,"g",(function(){return f})),i.d(e,"h",(function(){return b})),i.d(e,"i",(function(){return m})),i.d(e,"j",(function(){return A})),i.d(e,"k",(function(){return y})),i.d(e,"l",(function(){return w})),i.d(e,"m",(function(){return v})),i.d(e,"n",(function(){return _})),i.d(e,"o",(function(){return S})),i.d(e,"p",(function(){return E})),i.d(e,"q",(function(){return C})),i.d(e,"a",(function(){return T})),i.d(e,"e",(function(){return a})),i.d(e,"b",(function(){return M}));var n=i("vobO");class s{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var o=i("EM62");const r=new o.r("basePath");class a{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let c=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/convertAttributeToNonunique",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/convertAttributeToUnique",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/createAttribute",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("attribute",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/deleteAttribute",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/deleteAttributes",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributesDefinition",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,s,o,r,a,c,l,u,h,d="body",p=!1){let f=new n.e({encoder:this.encoder});null!=t&&(f=f.set("attributeName",t)),null!=e&&(f=f.set("attributeId",e)),null!=i&&(f=f.set("facility",i)),null!=s&&(f=f.set("user",s)),null!=o&&(f=f.set("vo",o)),null!=r&&(f=f.set("resource",r)),null!=a&&(f=f.set("member",a)),null!=c&&(f=f.set("group",c)),null!=l&&(f=f.set("host",l)),null!=u&&(f=f.set("userExtSource",u)),null!=h&&(f=f.set("key",h));let g=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(g=g.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(g=g.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;g=g.set("Authorization","Bearer "+t)}const b=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==b&&(g=g.set("Accept",b)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/any",{params:f,withCredentials:this.configuration.withCredentials,headers:g,observe:d,reportProgress:p})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeDefinitionById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeDefinition",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributesDefinitionByNamespace",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("format",t)),null!=e&&(o=o.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("format",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeModulesDependenciesGraphText",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeRights",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,s,o,r,a,c,l="body",u=!1){let h=new n.e({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=s&&(h=h.set("group",s)),null!=o&&(h=h.set("resource",o)),null!=r&&(h=h.set("facility",r)),null!=a&&(h=h.set("host",a)),null!=c&&(h=h.set("userExtSource",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights",{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-entityless",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("key",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/key",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("attrName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessAttributes",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("attrName",t)),e&&e.forEach(t=>{o=o.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessAttributesWithKeys",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessKeys",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-facility",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-facility",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-names",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityResourceUserMemberAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=s&&(a=a.set("member",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-r-u-m",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-u",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-group",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-group",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/g",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/g-names",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-group-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-group-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/group-resource",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-host",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-host",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/h",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/h-names",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getLogins",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-wu",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAndUserAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-names-wu",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-names",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAndUserAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g-names-wu",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberGroupAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member-group",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member-group",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r-wu",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r-names-wu",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributesDefinition",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/f",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-f",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesFacilityServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new n.e({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/ss-f",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesGroupResourceService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-g",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesHostService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-h",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMemberGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m-g",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupResourceService(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new n.e({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=s&&(c=c.set("member",s)),null!=o&&(c=c.set("workWithUserAttributes",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-g-m",{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getRequiredAttributesMemberGroupService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-g-m",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m-r",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResourceService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-m",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/r",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesResourceServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new n.e({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/ss-r",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/u",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/u-f",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesVoService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-v",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-resource",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-resource",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-names",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupAndGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-wg",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAndGroupAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-names-wg",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupMemberAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-m-names",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-user",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-user",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/u",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/u-names",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-ues",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-ues",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/ues",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/ues-names",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserFacilityAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-user_facility",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-user_facility",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/user-facility",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-vo",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-vo",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/vo",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/vo-names",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let l=new n.e({encoder:this.encoder});null!=t&&(l=l.set("facility",t)),null!=e&&(l=l.set("resource",e)),null!=i&&(l=l.set("group",i)),null!=s&&(l=l.set("user",s)),null!=o&&(l=l.set("member",o)),r&&r.forEach(t=>{l=l.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m",null,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}removeAttributesForFacilityResourceUserMember(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new n.e({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("user",i)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m",null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}removeEntitylessAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/e",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/f",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/g",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/g-r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g-r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeHostAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/h",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/h",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributesWorkWithUserAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeMemberResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m-r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeResourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/r",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/r",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUesAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/ues",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/u",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/u",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/ues",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserFacilityAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/u-f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/u-f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeVoAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/v",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/v",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributeRights",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/entityless",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/facility",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-r-g-u-m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-r-u-m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/group-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/group-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/host",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/h",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member-group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-g-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-r-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-r",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r-g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r-g-wg",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/userExtSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/ues",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/facility-user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/facility-user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/updateAttributeDefinition",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("msg",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/AuditMessagesManager/log",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/AuditMessagesManager/createAuditerConsumer",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getAllAuditerConsumers",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getAuditerMessagesCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getLastMessageId",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getMessages",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getMessagesByCount",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/pollConsumerMessages",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("consumerName",t)),null!=e&&(o=o.set("lastProcessedId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/AuditMessagesManager/setLastProcessedId",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAllPolicies",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAllRolesManagementRules",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAdminGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAuthzRichAdmins(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let l=new n.e({encoder:this.encoder});null!=t&&(l=l.set("role",t)),null!=e&&(l=l.set("complementaryObjectId",e)),null!=i&&(l=l.set("complementaryObjectName",i)),s&&s.forEach(t=>{l=l.append("specificAttributes",t)}),null!=o&&(l=l.set("allUserAttributes",o)),null!=r&&(l=l.set("onlyDirectAdmins",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getRichAdmins",{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}getFacilitiesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new n.e({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getFacilitiesWhereUserIsInRoles",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getGroupRoleNames",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("groupId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/getGroupRoles",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new n.e({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getGroupsWhereUserIsInRoles",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getLoggedUser",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new n.e({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getMembersWhereUserIsInRoles",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getPerunPrincipal",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getPrincipalRoleNames",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new n.e({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getResourcesWhereUserIsInRoles",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new n.e({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getUserRoleNames",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("userId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getUserRoles",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new n.e({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getVosWhereUserIsInRoles",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isFacilityAdmin(t,e="body",i=!1){let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isFacilityAdmin",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isGroupAdmin",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/isPerunAdmin",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isVoAdmin",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/keepAlive",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/loadAuthorizationComponents",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/setRole/g-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/setRole/u-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/unsetRole/g-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/unsetRole/u-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createAuthorship",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createCategory/cat",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createCategory/n-r",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createPublication",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createPublicationSystem",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createThanks",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter publication was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAuthorship.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("publication",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deleteAuthorship",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deleteCategory",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deletePublication",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deletePublicationSystem",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deleteThanks",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findAllAuthors",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findAuthorsByPublicationId",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findExternalPublications(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==s)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=s&&(a=a.set("pubSysNamespace",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findExternalPublications",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findNewAuthors",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findPublicationById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let r=new n.e({encoder:this.encoder});null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=t&&(r=r.set("userId",t));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findPublicationsByFilter",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findPublicationsByGUIFilter(t,e,i,s,o,r,a,c,l,u="body",h=!1){let d=new n.e({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=s&&(d=d.set("id",s)),null!=o&&(d=d.set("year",o)),null!=r&&(d=d.set("category",r)),null!=a&&(d=d.set("yearSince",a)),null!=c&&(d=d.set("yearTill",c)),null!=l&&(d=d.set("userId",l));let p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+t)}const f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(p=p.set("Accept",f)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findPublicationsByGUIFilter",{params:d,withCredentials:this.configuration.withCredentials,headers:p,observe:u,reportProgress:h})}findSimilarPublications(t,e,i,s="body",o=!1){let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("title",t)),null!=e&&(r=r.set("doi",e)),null!=i&&(r=r.set("isbn",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findSimilarPublications",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/getCategories",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/getPublicationSystems",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/getRank",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/getRichThanksByPublicationId",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/lockPublications",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/updateCategory",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/updatePublication",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/updatePublicationSystem",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),d=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/databaseManager/getCurrentDatabaseVersion",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/databaseManager/getDatabaseDriverInformation",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/databaseManager/getDatabaseInformation",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/databaseManager/getTimeOfQueryPerformance",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),p=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/addExtSource/g-s",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/addExtSource/v-s",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/extSourcesManager/createExtSource/es",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/createExtSource/n-t",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/deleteExtSource",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getExtSourceById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getExtSourceByName",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getExtSources",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getGroupExtSources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getVoExtSources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/loadExtSourcesDefinitions",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/removeExtSource/g-s",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/removeExtSource/v-s",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/group",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/group/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/user",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/user/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityContact(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddFacilityContact was null or undefined when calling addFacilityContact.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/addFacilityContact",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addFacilityContacts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddFacilityContacts was null or undefined when calling addFacilityContacts.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/addFacilityContacts",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/f-o-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/o-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHost(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHost",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHost/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHosts",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHosts/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/assignSecurityTeam",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/dest-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/src-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/dest-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/src-dest-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/src-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwners(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/dest-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/src-dest-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/src-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/createFacility",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/deleteFacility",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/deleteFacility/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllContactGroupNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllContactGroupNames",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedGroupsByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedGroups/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedRichGroupsWithAttributes",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedUsersOfFacility(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedUsers/v-f-s",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacilityByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedUsers/v-f-s/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/getAllowedVos",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/getAllowedVos/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/group",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/member",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/service",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/user",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResourcesByAssignedService",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResources/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedRichResources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedRichResources/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedSecurityTeams",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedSecurityTeams/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedUsers",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedUsers/f-name",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facilityId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBansForFacility",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBansForUser",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getEnrichedFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getEnrichedHosts",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("attributeName",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByAttribute",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByDestination",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByHostName",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesWhereUserIsAdmin",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdminGroups",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdmins",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAdminUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdmins/f-name",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBan",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBanById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityByName",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityContactGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroup.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getFacilityContactGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroup",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityContactGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupByFacilityName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getFacilityContactGroupByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroup/f-name",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityContactGroupsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupsForFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/facility",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityContactGroupsForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupsForFacilityByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/facility/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityContactGroupsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFacilityContactGroupsForGroup.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/group",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityContactGroupsForOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getFacilityContactGroupsForOwner.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/owner",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityContactGroupsForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityContactGroupsForUser.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/user",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityForHost",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwners",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwners/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHosts",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHosts/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsByHostname",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsCount",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsCount/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwnerFacilities",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getRichFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/group",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/group/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/user",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/user/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeBan/byId",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeFacilityContact(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveFacilityContact was null or undefined when calling removeFacilityContact.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/removeFacilityContact",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeFacilityContacts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveFacilityContacts was null or undefined when calling removeFacilityContacts.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/removeFacilityContacts",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/f-o-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/o-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHost",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHostByHostname",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHosts",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHosts/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeSecurityTeam",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/updateFacility",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/updateBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdminGroups/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),b=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addGroupsToAutoRegistration",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}addMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let o=new n.e({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addMember",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addMembers",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroupUnion",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupWithParentGroupNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroup/pg-n-d",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createGroupWithVoNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroup/v-n-d",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deleteGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroup",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");let o=new n.e({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("forceDelete",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroups",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroupsFromAutoRegistration",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceGroupStructureSynchronization",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceGroupSynchronization",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllGroups",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllMemberGroups",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllRichGroupsWithAttributesByNames",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupByName",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCount",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCountsByGroupStatus",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCountsByVoStatus",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupUnions(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupUnions",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupsByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupsToAutoRegistration",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getMemberGroups",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getMemberRichGroupsWithAttributesByNames",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichGroupByIdWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("groupId",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getRichGroupByIdWithAttributesByNames",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isGroupMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/isGroupMember",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new n.e({encoder:this.encoder});null!=e&&(o=o.set("destinationGroup",e)),null!=t&&(o=o.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/moveGroup/dg-mg",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeGroupUnion",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let o=new n.e({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeMember",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeMembers",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/groupsManager/updateGroup",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/c",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/extSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSpecificMember",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMember/withFullName",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMembers",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMembersFromCSV",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/deleteMember",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/deleteMembers",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new n.e({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/attrs",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCompleteRichMembersForGroup(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let l=new n.e({encoder:this.encoder});null!=t&&(l=l.set("group",t)),e&&e.forEach(t=>{l=l.append("attrsNames[]",t)}),o&&o.forEach(t=>{l=l.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{l=l.append("allowedGroupStatuses[]",t)}),null!=i&&(l=l.set("searchString",i)),null!=s&&(l=l.set("lookingInParentGroup",s));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/g",{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}findCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/v",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findMembersInVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findMembersInVo",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findSponsoredCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=s&&(a=a.set("onlySponsored",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/v-sponsored",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllNamespacesRules",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllSponsoredMembers",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllSponsoredMembersAndTheirSponsors",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getCompleteRichMembersForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let c=new n.e({encoder:this.encoder});null!=t&&(c=c.set("group",t)),i&&i.forEach(t=>{c=c.append("allowedStatuses[]",t)}),s&&s.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=e&&(c=c.set("lookingInParentGroup",e)),o&&o.forEach(t=>{c=c.append("attrsNames[]",t)});let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/g",{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getCompleteRichMembersForGroupResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==s)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/g-r",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/v",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberByExtSourceNameAndExtLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberByExtSourceNameAndExtLogin",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberByUser",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembers",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersByUser",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersCount",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/getMembersPage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersCount/status",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMember",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMemberWithAttributes",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new n.e({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("ids[]",t)}),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMembersByIds",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsoredMembers/v",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsoredMembersAndTheirSponsors",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsors/member",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsors/vo",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}moveMembership(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/moveMembership",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeSponsor(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/removeSponsor",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendAccountActivationLinkEmail(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=s&&(a=a.set("language",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sendAccountActivationLinkEmail",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=s&&(a=a.set("language",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sendPasswordResetLinkEmail",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/setSponsoredMember",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/setSponsorshipForMember",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}setStatus(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/setStatus",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sponsorMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sponsorMember",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateSponsorshipValidity(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/updateSponsorshipValidity",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/validateMemberAsync",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),A=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/ownersManager/createOwner",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("owner",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/ownersManager/deleteOwner",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/ownersManager/getOwners",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/ownersManager/getOwnerById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/ownersManager/getOwnerByName",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),y=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}sentMessageToRTWithMemberQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/q",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/v",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVoQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/addApplicationMail/g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/addApplicationMail/v",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/approveApplication",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/consolidateIdentityUsingToken",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/groupToGroup",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromGroupToVo(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/groupToVo",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToGroup(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/voToGroup",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToVo(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/voToVo",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToGroup(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/groupToGroup",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToVo(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/groupToVo",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToGroup(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/voToGroup",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToVo(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/voToVo",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/createApplicationForm/group",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/createApplicationForm/vo",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplication",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplicationMail/g",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteApplicationMailForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplicationMail/v",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationDataById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationMails/g",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationMails/v",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForGroup",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getApplicationsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForMember",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getApplicationsForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForVo",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getConsolidatorToken",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/group",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/group-type",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/vo",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/vo-type",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationForm/group",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationForm/vo",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/rejectApplication",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendInvitation(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new n.e({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new n.e({encoder:this.encoder});null!=i&&(c=c.set("voId",i)),null!=s&&(c=c.set("groupId",s)),null!=o&&(c=c.set("name",o)),null!=t&&(c=c.set("email",t)),null!=e&&(c=c.set("language",e));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/g",null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}sendInvitationGroupToExistingUser(t,e,i,s="body",o=!1){let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/u-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationToExistingUser(t,e,i="body",s=!1){let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/u",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/sendMessage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/setSendingEnabled",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/submitApplication",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateApplicationMail",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateForm",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItemData",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItemsData",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItems/group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItems/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/verifyApplication",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),v=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addAdminToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addAdmin/r-g",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addAdminToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addAdmin/r-u",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addResourceSelfServiceUser",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignGroupToResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupToResource",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignGroupToResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupToResources",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignGroupsToResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let o=new n.e({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupsToResource",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/assignResourceTagToResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignService",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignServices",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignServicesPackage",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/copyResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=s&&(a=a.set("description",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/createResource",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/createResourceTag/resourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("tagName",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/createResourceTag/tagName",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteAllResources",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteResource",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/deleteResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAdminGroups",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAdmins(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAdmins",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/getAllResourcesByResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllResourcesTagsForResource",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllResourcesTagsForVo",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/all",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedMembers",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedResources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedUsers",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedGroups",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedMembers",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedResources/g",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedResources/m",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichMembers",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/g",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/m",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/s-m",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedServices",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBansForMember",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBansForResource",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("id",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourceById",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourcesForFacility",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourcesForVo",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getFacility",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBan",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBanById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourceById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourceByName",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesCount/all",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesCount/vo",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourcesWhereGroupIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/group",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourcesWhereUserIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichAdmins(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(t=>{a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichAdmins",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResourceById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResourcesByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getVo",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeBan/member-resource-id",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAdmin/r-g",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupFromResource",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupFromResources",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupsFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let o=new n.e({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupsFromResource",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeBan/id",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/removeResourceTagFromResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeService",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeServices",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeServicesPackage",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAdmin/r-u",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addDestination(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling addDestination.");let c=new n.e({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("facility",e)),null!=i&&(c=c.set("destination",i)),null!=s&&(c=c.set("type",s)),null!=o&&(c=c.set("propagationType",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addDestination",null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/addDestination",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addDestinationsForAllServicesOnFacility(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addRequiredAttribute",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addRequiredAttributes",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addServiceToServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addServiceToServicesPackage",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockAllServicesOnDestination/d",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockAllServicesOnFacility",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockServiceOnDestination/s-d",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockServiceOnDestinationWithNameAndType(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}blockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockServiceOnFacility",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("script",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/createService",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/createService",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/createServicesPackage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/createServicesPackage",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/deleteService",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/deleteServicesPackage",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/forceServicePropagation",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDestinations/all",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getAllRichDestinations/f",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getAllRichDestinations/s",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getAssignedResourcesForService",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getAssignedServices",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDataWithGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDataWithVos(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDataWithVos",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDestinationById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDestinations/s-f",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDestinationsCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getFacilitiesDestinations",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getFacilityAssignedServicesForGUI",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFlatData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getFlatData",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getHashedDataWithGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getHashedHierarchicalData",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getHierarchicalData",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getRichDestinations",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServiceById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServiceByName",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServices",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesBlockedOnDestination",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesBlockedOnFacility",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesByAttributeDefinition",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesFromServicesPackage",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesPackageById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesPackageByName",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesPackages",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/isServiceBlockedOnDestination",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isServiceBlockedOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/isServiceBlockedOnFacility",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}planServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/planServicePropagation",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeAllDestinations",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeAllRequiredAttributes",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeDestination(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=s&&(a=a.set("type",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeDestination",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeRequiredAttribute",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeRequiredAttributes",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServiceFromServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeServiceFromServicesPackage",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockAllServicesOnFacility",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockServiceOnDestinationByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}unblockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockServiceOnFacility",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/updateService",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/updateServicesPackage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/countTasks",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/deleteTask",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/deleteTaskResultById",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/deleteTaskResults/id",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/deleteTaskResults/name",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getAllFacilitiesStates",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("voId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getAllResourcesState",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getFacilityServicesState",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getFacilityState",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTask",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("taskResult",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResults",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsByTask",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("destinations[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsForDestinations",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsForGUIByTask",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("task",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsForGUIByTaskAndDestination",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/isThereSuchTask",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/listAllTasks",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/listAllTasksForFacility",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("suspend",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/suspendTasksPropagation",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),E=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/addSpecificUserOwner",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/addUserExtSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}changeNonAuthzPassword(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter i was null or undefined when calling changeNonAuthzPassword.");if(null==e)throw new Error("Required parameter m was null or undefined when calling changeNonAuthzPassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPassword.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("i",t)),null!=e&&(a=a.set("m",e)),null!=i&&(a=a.set("password",i)),null!=s&&(a=a.set("lang",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/changeNonAuthzPassword",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}changeNonAuthzPasswordByToken(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/changeNonAuthzPassword/token",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordResetRequestIsValid/token",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}checkPasswordResetRequestIsValid(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter i was null or undefined when calling checkPasswordResetRequestIsValid.");if(null==e)throw new Error("Required parameter m was null or undefined when calling checkPasswordResetRequestIsValid.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("i",t)),null!=e&&(o=o.set("m",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordResetRequestIsValid",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}checkPasswordStrength(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("password",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordStrength",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createAlternativePassword(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=s&&(a=a.set("password",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/createAlternativePassword",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/createServiceUser",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/deleteAlternativePassword",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deleteUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/deleteUser",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findRichUsers",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("searchString",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findRichUsersWithAttributes",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findUsers",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getAssignedRichResources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsActive/facility",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsForResourceWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsActive/resource",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsAdmin/u-v",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsAdmin/u",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getPendingPreferredEmailChanges",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUserExtSources/u",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUserWithAttributes",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersWithAttributesByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersWithoutVoWithAttributes",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSpecificUsersByUser",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSponsorsForMember/member",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsForMemberByVoAndLogin(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSponsorsForMember/vo",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("extLogin",t)),null!=e&&(o=o.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserByExtSourceNameAndExtLogin",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSourceById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSources",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSourcesByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUsersByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("specificUser",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUsersBySpecificUser",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getVosWhereUserIsAdmin",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getVosWhereUserIsMember",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/removeSpecificUserOwner",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/removeUserExtSource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}requestPreferredEmailChange(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let a=new n.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("email",e)),null!=i&&(a=a.set("lang",i)),null!=s&&(a=a.set("linkPath",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/requestPreferredEmailChange",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}reservePassword(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePassword.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/reservePassword",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/updateUser",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePreferredEmailChange(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter i was null or undefined when calling validatePreferredEmailChange.");if(null==e)throw new Error("Required parameter m was null or undefined when calling validatePreferredEmailChange.");if(null==i)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChange.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("i",t)),null!=e&&(r=r.set("m",e)),null!=i&&(r=r.set("u",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/validatePreferredEmailChange",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/utils/getGuiConfiguration",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/utils/getPerunStatistics",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/utils/getPerunStatus",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/utils/getPerunSystemTimeInMillis",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),C=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.d,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSponsorRoleToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addSponsorRole/group",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addSponsorRoleToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addSponsorRole/user",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addAdmin/group",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addAdmin/user",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/createVo/withName",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/createVo/withVo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/deleteVo",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findCandidates(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/findCandidates",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCandidatesForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/findCandidates/forGroup",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAllVos",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getCompleteCandidates/forGroup",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteCandidatesForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getCompleteCandidates/forVo",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVos",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let c=new n.e({encoder:this.encoder});null!=t&&(c=c.set("vo",t)),null!=e&&(c=c.set("role",e)),i&&i.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getRichAdmins",{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getVoAdminGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAdminGroups",{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAdminUsers(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new n.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAdmins",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBanById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBanForMember",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBansForVo",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoById",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("shortName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoByShortName",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoMembersCountsByStatus",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new n.e({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVosByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVosCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeSponsorRole/group",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSponsorRoleFromUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeSponsorRole/user",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeAdmin/group",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let o=new n.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeAdmin/user",null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeBan",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new n.e({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeBanForMember",null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/updateVo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.b),o.Wb(r,8),o.Wb(a,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const T={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};var k,I,O,D;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(k||(k={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(I||(I={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(O||(O={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(D||(D={}));let M=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:a,useFactory:e}]}}}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)(o.Wb(t,12),o.Wb(n.b,8))},providers:[c,l,u,h,d,p,f,g,b,m,A,y,w,v,_,S,E,R,C],imports:[[]]}),t})()},XAvq:function(t,e,i){"use strict";i.d(e,"a",(function(){return M}));var n=i("EM62"),s=i("QcI7"),o=i("seVz"),r=i("cqs0"),a=i("Iydx"),c=i("8clQ"),l=i("+0js"),u=i("Ssnw"),h=i("OZ4H"),d=i("2kYt"),p=i("qvOF"),f=i("sEIs"),g=i("TQS+"),b=i("PBFl"),m=i("Y2X+"),A=i("XpU2"),y=i("+Tre"),w=i("bFHC"),v=i("FcRk"),_=i("s2Ay");const S=["scrollViewport"];function E(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-checkbox",19),n.Zb("change",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc(2).itemSelectionToggle(e)})),n.Rb()}if(2&t){const t=n.dc().$implicit,e=n.dc(2);n.kc("disabled","members"===t.fullName)("checked",e.selection.isSelected(t))("indeterminate",e.descendantsPartiallySelected(t))}}function R(t,e){if(1&t&&(n.Sb(0,"mat-icon",20),n.Jc(1),n.Rb()),2&t){const t=n.dc().$implicit,e=n.dc(2);n.Ab(1),n.Lc(" ",e.treeControl.isExpanded(t)?"expand_more":"chevron_right"," ")}}function C(t,e){if(1&t&&(n.Sb(0,"span",21),n.Jc(1),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Lc(" #",t.id," ")}}const T=function(t,e){return["/organizations",t,"groups",e]};function k(t,e){if(1&t){const t=n.Tb();n.Qb(0),n.Sb(1,"div",6),n.Hc(2,E,1,3,"mat-checkbox",7),n.Sb(3,"div",8),n.Sb(4,"button",9),n.Zb("mouseenter",(function(){return n.xc(t),n.dc(2).disableRouting=!0}))("mouseleave",(function(){return n.xc(t),n.dc(2).disableRouting=!1}))("click",(function(){n.xc(t);const i=e.$implicit;return n.dc(2).treeControl.toggle(i)})),n.Hc(5,R,2,1,"mat-icon",10),n.Rb(),n.Sb(6,"div",11),n.Sb(7,"span",12),n.Jc(8),n.Rb(),n.Hc(9,C,2,1,"span",13),n.Rb(),n.Sb(10,"div",14,15),n.Sb(12,"span",16),n.Jc(13),n.Rb(),n.Rb(),n.Rb(),n.Sb(14,"div",17),n.Sb(15,"perun-web-apps-group-menu",18),n.Zb("moveGroup",(function(){n.xc(t);const i=e.$implicit;return n.dc(2).onMoveGroup(i)}))("syncGroup",(function(){n.xc(t);const i=e.$implicit;return n.dc(2).onSyncDetail(i)}))("changeNameDescription",(function(){n.xc(t);const i=e.$implicit;return n.dc(2).onChangeNameDescription(i)})),n.Rb(),n.Rb(),n.Rb(),n.Pb()}if(2&t){const t=e.$implicit,i=n.dc(2);n.Ab(1),n.Ec("padding-left",24*t.level+"px"),n.Ab(1),n.kc("ngIf",!i.hideCheckbox),n.Ab(1),n.kc("routerLink",i.disableRouting?null:n.qc(15,T,t.voId,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.qc(18,T,t.voId,t.id)),n.Ab(1),n.kc("disabled",!t.expandable),n.Bb("aria-label","toggle "+t.name),n.Ab(1),n.kc("ngIf",t.expandable),n.Ab(3),n.Lc(" ",t.name," "),n.Ab(1),n.kc("ngIf",i.authResolver.isPerunAdmin()),n.Ab(3),n.lc("matTooltip",t.description),n.Ab(1),n.Lc(" ",t.description," "),n.Ab(2),n.kc("disabled","members"===t.fullName)("displayButtons",i.displayButtons)("group",t)}}const I=function(t){return{height:t}};function O(t,e){if(1&t&&(n.Sb(0,"div",2),n.Sb(1,"cdk-virtual-scroll-viewport",3,4),n.Hc(3,k,16,21,"ng-container",5),n.Rb(),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.kc("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.pc(4,I,t.getTreeViewHeight())),n.Ab(2),n.kc("cdkVirtualForOf",t.dataSource)}}function D(t,e){1&t&&(n.Sb(0,"app-alert",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let M=(()=>{class t{constructor(t,e,i){this.cd=t,this.dialog=e,this.authResolver=i,this.transformer=(t,e)=>({expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}),this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.o,this.refreshTable=new n.o,this.expandAll=!1,this.disableRouting=!1,this.selection=new r.c(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.j(t=>t.level,t=>t.expandable),this.treeFlattener=new s.d(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new s.c(this.treeControl,this.treeFlattener),this.hasChild=(t,e)=>e.expandable,this.getLevel=t=>t.level}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(t){if(this.expandAll){this.filteredGroups=this.groups.filter(t=>{var e,i;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(i=t.description)||void 0===i?void 0:i.toLowerCase().includes(this.filterValue.toLowerCase()))||t.id.toString().includes(this.filterValue.toLowerCase())});for(const t of this.filteredGroups)t.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat(Object(c.k)(t.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(t){const e=Object(c.o)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.i,e)}onChangeNameDescription(t){const e=Object(c.o)();e.data={theme:"group-theme",group:t,dialogType:l.h.GROUP},this.dialog.open(l.g,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}createGroupTrees(t){const e=new Map;for(const s of t)e.set(s.id,new a.b(s));const i=new Set;e.forEach((t,e,n)=>{const s=n.get(t.parentGroupId);void 0!==s&&(s.addChild(t),n.set(t.parentGroupId,s)),null!==t.parentGroupId&&void 0===s&&i.add(t.id)});const n=[];e.forEach(t=>{(null===t.parentGroupId||i.has(t.id))&&n.push(t)}),this.dataSource.data=n,this.cd.detectChanges()}getParentNode(t){const e=this.getLevel(t);if(e<1)return null;for(let i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){const t=this.treeControl.dataNodes[i];if(this.getLevel(t)this.selection.isSelected(t));e&&!i&&this.selection.deselect(t)}checkAllParentsSelection(t){let e=this.getParentNode(t);for(;e;)this.checkRootNodeSelection(e),e=this.getParentNode(e);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(t=>this.selection.isSelected(t))&&!this.selection.isSelected(t)}itemSelectionToggle(t){this.selection.toggle(t);const e=this.treeControl.getDescendants(t);this.selection.isSelected(t)?this.selection.select(...e):this.selection.deselect(...e),e.every(t=>this.selection.isSelected(t)),this.checkAllParentsSelection(t)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,e]):(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[e]),!0)}onMoveGroup(t){this.moveGroup.emit(t)}getTreeViewHeight(){let t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());let e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.h),n.Mb(h.b),n.Mb(u.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){var i;1&t&&n.Qc(S,!0),2&t&&n.sc(i=n.ac())&&(e.scrollViewport=i.first)},hostBindings:function(t,e){1&t&&n.Zb("resize",(function(t){return e.shouldHideButtons(t)}),!1,n.wc)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.yb],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",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["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(t,e){1&t&&(n.Hc(0,O,4,6,"div",0),n.Hc(1,D,3,3,"app-alert",1)),2&t&&(n.kc("ngIf",0!==e.filteredGroups.length),n.Ab(1),n.kc("ngIf",0===e.filteredGroups.length))},directives:[d.t,p.e,p.a,d.w,p.d,f.g,g.c,b.b,m.a,A.a,y.a,w.a,v.a],pipes:[_.d],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}"]}),t})()},XhvO:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){if(null===t)return null;const i=t;return i.substring(i.lastIndexOf(":")+1,i.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"nameSpaceToDef",type:t,pure:!0}),t})()},XpU2:function(t,e,i){"use strict";i.d(e,"a",(function(){return S}));var n=i("EM62"),s=i("Ssnw"),o=i("2kYt"),r=i("PBFl"),a=i("HHFY"),c=i("Y2X+"),l=i("bFHC"),u=i("Jb3d"),h=i("s2Ay"),d=i("jEFW"),p=i("iD4z"),f=i("py76");function g(t,e){if(1&t){const t=n.Tb();n.Sb(0,"span",5),n.ec(1,"translate"),n.ec(2,"groupSyncToolTip"),n.Sb(3,"button",6),n.Zb("click",(function(){return n.xc(t),n.dc(2).onSyncDetail()})),n.ec(4,"groupSyncIcon"),n.Sb(5,"mat-icon"),n.ec(6,"groupSyncIconColor"),n.Jc(7),n.ec(8,"groupSyncIcon"),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.kc("matTooltipPosition","above")("matTooltip",n.fc(1,7,n.fc(2,9,t.group))),n.Ab(3),n.kc("disabled","sync_disabled"===n.fc(4,11,t.group)),n.Ab(2),n.Cb(n.fc(6,13,t.group)),n.Ab(2),n.Lc(" ",n.fc(8,15,t.group)," ")}}function b(t,e){if(1&t){const t=n.Tb();n.Sb(0,"span",5),n.ec(1,"translate"),n.Sb(2,"button",6),n.Zb("click",(function(){return n.xc(t),n.dc(2).onMoveGroup()})),n.Sb(3,"mat-icon"),n.Jc(4,"arrow_right_alt"),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.lc("matTooltip",n.fc(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.kc("matTooltipPosition","above"),n.Ab(2),n.kc("disabled",t.disabled)}}function m(t,e){if(1&t){const t=n.Tb();n.Sb(0,"span",5),n.ec(1,"translate"),n.Sb(2,"button",6),n.Zb("click",(function(){return n.xc(t),n.dc(2).onChangeNameDescription()})),n.Sb(3,"mat-icon"),n.Jc(4,"text_format"),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.lc("matTooltip",n.fc(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.kc("matTooltipPosition","above"),n.Ab(2),n.kc("disabled",t.disabled)}}function A(t,e){if(1&t&&(n.Sb(0,"div",2),n.Sb(1,"button",3),n.ec(2,"translate"),n.Sb(3,"mat-icon"),n.Jc(4," file_copy "),n.Rb(),n.Rb(),n.Hc(5,g,9,17,"span",4),n.Hc(6,b,5,5,"span",4),n.Hc(7,m,5,5,"span",4),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.lc("matTooltip",n.fc(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.kc("cdkCopyToClipboard",t.group.name)("matTooltipPosition","above"),n.Ab(4),n.kc("ngIf",t.syncAuth),n.Ab(1),n.kc("ngIf",t.moveAuth),n.Ab(1),n.kc("ngIf",t.editAuth)}}function y(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",11),n.Zb("click",(function(){return n.xc(t),n.dc(2).onSyncDetail()})),n.ec(1,"groupSyncIcon"),n.Sb(2,"mat-icon"),n.ec(3,"groupSyncIconColor"),n.Jc(4),n.ec(5,"groupSyncIcon"),n.Rb(),n.Sb(6,"span"),n.Jc(7),n.ec(8,"translate"),n.ec(9,"groupSyncToolTip"),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.kc("disabled","sync_disabled"===n.fc(1,6,t.group)),n.Ab(2),n.Cb(n.fc(3,8,t.group)),n.Ab(2),n.Lc(" ",n.fc(5,10,t.group)," "),n.Ab(3),n.Kc(n.fc(8,12,n.fc(9,14,t.group)))}}function w(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",11),n.Zb("click",(function(){return n.xc(t),n.dc(2).onMoveGroup()})),n.Sb(1,"mat-icon"),n.Jc(2,"arrow_right_alt"),n.Rb(),n.Sb(3,"span"),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.kc("disabled",t.disabled),n.Ab(4),n.Kc(n.fc(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function v(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",11),n.Zb("click",(function(){return n.xc(t),n.dc(2).onChangeNameDescription()})),n.Sb(1,"mat-icon"),n.Jc(2,"text_format"),n.Rb(),n.Sb(3,"span"),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.kc("disabled",t.disabled),n.Ab(4),n.Kc(n.fc(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function _(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"button",7),n.Sb(2,"mat-icon"),n.Jc(3,"more_vert"),n.Rb(),n.Rb(),n.Sb(4,"mat-menu",null,8),n.Sb(6,"button",9),n.Sb(7,"mat-icon"),n.Jc(8," file_copy "),n.Rb(),n.Sb(9,"span"),n.Jc(10),n.ec(11,"translate"),n.Rb(),n.Rb(),n.Hc(12,y,10,16,"button",10),n.Hc(13,w,6,4,"button",10),n.Hc(14,v,6,4,"button",10),n.Rb(),n.Rb()),2&t){const t=n.tc(5),e=n.dc();n.Ab(1),n.kc("mat-menu-trigger-for",t),n.Ab(5),n.kc("cdkCopyToClipboard",e.group.name),n.Ab(4),n.Kc(n.fc(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Ab(2),n.kc("ngIf",e.syncAuth),n.Ab(1),n.kc("ngIf",e.moveAuth),n.Ab(1),n.kc("ngIf",e.editAuth)}}let S=(()=>{class t{constructor(t){this.authResolver=t,this.disabled=!1,this.moveGroup=new n.o,this.syncGroup=new n.o,this.changeNameDescription=new n.o}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 t.\u0275fac=function(e){return new(e||t)(n.Mb(s.h))},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Hc(0,A,8,8,"div",0),n.Hc(1,_,15,8,"div",1)),2&t&&(n.kc("ngIf",e.displayButtons),n.Ab(1),n.kc("ngIf",!e.displayButtons))},directives:[o.t,r.b,a.a,c.a,l.a,u.d,u.e,u.b],pipes:[h.d,d.a,p.a,f.a],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t})()},"Y2X+":function(t,e,i){"use strict";i.d(e,"a",(function(){return R})),i.d(e,"b",(function(){return T})),i.d(e,"c",(function(){return C}));var n=i("HYj3"),s=i("sg/T"),o=i("2kYt"),r=i("EM62"),a=i("mFH5"),c=i("qvOF"),l=i("5XID"),u=i("fAiE"),h=i("HOZh"),d=i("cZZj"),p=i("Sv/w"),f=i("ZTXN"),g=i("kuMc"),b=i("J+dc"),m=i("f7+R"),A=i("E5oP");const y={tooltipState:Object(m.n)("state",[Object(m.k)("initial, void, hidden",Object(m.l)({opacity:0,transform:"scale(0)"})),Object(m.k)("visible",Object(m.l)({transform:"scale(1)"})),Object(m.m)("* => visible",Object(m.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(m.h)([Object(m.l)({opacity:0,transform:"scale(0)",offset:0}),Object(m.l)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(m.l)({opacity:1,transform:"scale(1)",offset:1})]))),Object(m.m)("* => hidden",Object(m.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(m.l)({opacity:0})))])},w=Object(d.f)({passive:!0});function v(t){return Error(`Tooltip position "${t}" is invalid.`)}const _=new r.r("mat-tooltip-scroll-strategy"),S={provide:_,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},E=new r.r("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let R=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=l,this._defaultOptions=h,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new f.a,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===u.h&&!Object(u.t)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),a.monitor(e).pipe(Object(g.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&s.run(()=>this.show()):s.run(()=>this.hide(0))}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,i)=>{t.removeEventListener(i,e,w)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new p.d(C,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(g.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(g.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(g.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw v(e);i={originX:"end",originY:"center"}}const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw v(e);i={overlayX:"start",overlayY:"center"}}const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(b.a)(1),Object(g.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,w)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.c),r.Mb(r.l),r.Mb(c.f),r.Mb(r.Q),r.Mb(r.A),r.Mb(d.a),r.Mb(s.c),r.Mb(s.h),r.Mb(_),r.Mb(A.c,8),r.Mb(E,8),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),C=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new f.a,this._isHandset=this._breakpointObserver.observe(h.b.Handset)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.h),r.Mb(h.a))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&r.Zb("click",(function(){return e._handleBodyInteraction()}),!1,r.uc),2&t&&r.Ec("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var i;1&t&&(r.Sb(0,"div",0),r.Zb("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),r.ec(1,"async"),r.Jc(2),r.Rb()),2&t&&(r.Eb("mat-tooltip-handset",null==(i=r.fc(1,5,e._isHandset))?null:i.matches),r.kc("ngClass",e.tooltipClass)("@state",e._visibility),r.Ab(2),r.Kc(e.message))},directives:[o.q],pipes:[o.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[y.tooltipState]},changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[S],imports:[[s.a,o.c,n.f,a.i],a.i,c.c]}),t})()},Y7Yh:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,...e){return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"serviceStateBlockedToString",type:t,pure:!0}),t})()},Y9OK:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("csyo"),h=i("PBFl"),d=i("j+u3");function p(t,e){1&t&&a.Nb(0,"th",13)}function f(t,e){if(1&t&&(a.Sb(0,"td",14),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.id," ")}}function g(t,e){1&t&&a.Nb(0,"th",13)}function b(t,e){if(1&t&&(a.Sb(0,"td",14),a.Jc(1),a.ec(2,"userFullName"),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",a.fc(2,1,t.user)," ")}}function m(t,e){1&t&&a.Nb(0,"tr",15)}function A(t,e){1&t&&a.Nb(0,"tr",16)}function y(t,e){if(1&t&&(a.Sb(0,"div",4),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",5),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",6),a.Qb(8,7),a.Hc(9,p,1,0,"th",8),a.Hc(10,f,2,1,"td",9),a.Pb(),a.Qb(11,10),a.Hc(12,g,1,0,"th",8),a.Hc(13,b,3,3,"td",9),a.Pb(),a.Hc(14,m,1,0,"tr",11),a.Hc(15,A,1,0,"tr",12),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(7),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}function w(t,e){1&t&&a.Nb(0,"mat-spinner",17)}function v(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",18),a.Sb(1,"button",19),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"button",20),a.Zb("click",(function(){return a.xc(t),a.dc().onSubmit()})),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,2,"DIALOGS.DELETE_GROUP.CANCEL")," "),a.Ab(3),a.Lc(" ",a.fc(6,4,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let _=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.membersService=i,this.groupService=n,this.notificator=s,this.translate=o,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.o(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(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(r.i),a.Mb(r.h),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({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"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,y,16,9,"div",1),a.Hc(5,w,1,0,"mat-spinner",2),a.Hc(6,v,7,6,"div",3),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),a.Ab(2),a.kc("ngIf",!e.loading),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[n.j,l.t,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l,u.c,n.c,h.b],pipes:[c.d,d.a],styles:[""]}),t})()},YEcy:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"isVirtualAttribute",type:t,pure:!0}),t})()},YFHD:function(t,e,i){"use strict";i.d(e,"a",(function(){return N}));var n=i("EM62"),s=i("cqs0"),o=i("iAde"),r=i("cePI"),a=i("FlRo"),c=i("Ssnw"),l=i("8clQ"),u=i("sEIs"),h=i("9wx0"),d=i("2kYt"),p=i("+Tre"),f=i("TQS+"),g=i("FcRk"),b=i("s2Ay"),m=i("W5/Z"),A=i("4CqK");function y(t,e){1&t&&n.Nb(0,"th",20)}function w(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",21),n.Sb(1,"mat-checkbox",22),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function v(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function _(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.userExtSource.id)}}function S(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function E(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.ec(2,"getMailFromAttributes"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.attributes))}}function R(t,e){if(1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function C(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.userExtSource.extSource.name)}}function T(t,e){if(1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function k(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.userExtSource.login)}}function I(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function O(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.gc(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function D(t,e){1&t&&n.Nb(0,"tr",26)}const M=function(t,e){return["/admin","users",t,"identities",e]};function P(t,e){if(1&t&&n.Nb(0,"tr",27),2&t){const t=e.$implicit,i=n.dc();n.Eb("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),n.kc("routerLink",i.disableRouting?null:n.qc(6,M,i.userId,t.userExtSource.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.qc(9,M,i.userId,t.userExtSource.id))}}function x(t,e){1&t&&(n.Sb(0,"app-alert",28),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,n.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let N=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new s.c,this.filterValue="",this.hideColumns=[],this.pageSize=5,this.page=new n.o,this.pageSizeOptions=l.a,this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"]}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new a.o(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A";case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}exportData(t){Object(l.i)(Object(l.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(l.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(l.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.a),n.Mb(c.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){var i;1&t&&(n.Qc(o.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.paginator=i.first),n.sc(i=n.ac())&&(e.matSort=i.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",hideColumns:"hideColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.yb],decls:27,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,y,1,0,"th",6),n.Hc(7,w,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,v,4,5,"th",9),n.Hc(10,_,2,1,"td",10),n.Pb(),n.Qb(11,11),n.Hc(12,S,4,5,"th",6),n.Hc(13,E,3,3,"td",10),n.Pb(),n.Qb(14,12),n.Hc(15,R,4,5,"th",9),n.Hc(16,C,2,1,"td",10),n.Pb(),n.Qb(17,13),n.Hc(18,T,4,5,"th",9),n.Hc(19,k,2,1,"td",10),n.Pb(),n.Qb(20,14),n.Hc(21,I,4,5,"th",9),n.Hc(22,O,3,4,"td",15),n.Pb(),n.Hc(23,D,1,0,"tr",16),n.Hc(24,P,1,12,"tr",17),n.Rb(),n.Rb(),n.Sb(25,"mat-paginator",18),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(26,x,4,5,"app-alert",19)),2&t&&(n.kc("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(19),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.userExtSources.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.userExtSources.length))},directives:[h.a,a.n,r.a,a.c,a.i,a.b,a.k,a.m,o.a,d.t,a.h,a.a,p.a,r.b,a.j,a.l,u.g,f.c,g.a],pipes:[b.d,m.a,A.a,d.f],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},YRqw:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),s=i("LAw4"),o=i("s2Ay");let r=(()=>{class t{constructor(){this.voSelected=new n.o,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.shortName,this.searchFunction=t=>t.name+t.shortName+t.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:13,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.voSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.fc(1,7,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.fc(2,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.fc(3,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[s.a],pipes:[o.d],styles:[""]}),t})()},YSZu:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),s=i("OZ4H"),o=i("PBFl"),r=i("s2Ay");let a=(()=>{class t{constructor(t){this.dialogRef=t}ngOnInit(){}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.i))},t.\u0275cmp=n.Gb({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(n.Sb(0,"h1",0),n.Jc(1),n.ec(2,"translate"),n.Rb(),n.Sb(3,"div",1),n.Sb(4,"div",2),n.Sb(5,"p"),n.Jc(6),n.ec(7,"translate"),n.Rb(),n.Rb(),n.Sb(8,"div",3),n.Sb(9,"button",4),n.Zb("click",(function(){return e.onClose()})),n.Jc(10),n.ec(11,"translate"),n.Rb(),n.Sb(12,"button",5),n.Zb("click",(function(){return e.onReload()})),n.Jc(13),n.ec(14,"translate"),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,4,"DIALOGS.NEW_VERSION.TITLE")),n.Ab(5),n.Lc(" ",n.fc(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),n.Ab(4),n.Lc(" ",n.fc(11,8,"DIALOGS.NEW_VERSION.LATER")," "),n.Ab(3),n.Lc(" ",n.fc(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[s.j,s.g,s.c,o.b],pipes:[r.d],styles:[""]}),t})()},YtkY:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5uGe");function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.a{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},ZG5M:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("EM62"),s=i("OZ4H"),o=i("sEIs"),r=i("2kYt"),a=i("mFH5"),c=i("bFHC"),l=i("s2Ay");function u(t,e){if(1&t&&(n.Sb(0,"div",3),n.Sb(1,"a",4),n.Nb(2,"mat-icon",5),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Db("",t.style," item-itself"),n.kc("routerLink",t.url),n.Ab(1),n.kc("svgIcon",t.cssIcon),n.Ab(1),n.Lc(" ",n.fc(4,6,t.label)," ")}}function h(t,e){if(1&t&&(n.Sb(0,"div",1),n.Hc(1,u,5,8,"div",2),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.kc("ngForOf",t.items)}}let d=(()=>{class t{constructor(t,e){this.dialog=t,this.route=e,this.size="large"}ngOnInit(){this.route.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.b),n.Mb(o.a))},t.\u0275cmp=n.Gb({type:t,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,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&n.Hc(0,h,2,1,"div",0),2&t&&n.kc("ngIf","small"===e.size)},directives:[r.t,r.s,a.s,o.i,c.a],pipes:[l.d],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}}"]}),t})()},ZTXN:function(t,e,i){"use strict";i.d(e,"b",(function(){return l})),i.d(e,"a",(function(){return u}));var n=i("IdLP"),s=i("5uGe"),o=i("bwdy"),r=i("MiDb"),a=i("yTkW"),c=i("25CY");class l extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends n.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.a;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.a.EMPTY}}},ZTj5:function(t,e,i){"use strict";i.d(e,"a",(function(){return b}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("EM62"),a=i("s2Ay"),c=i("2kYt"),l=i("PBFl"),u=i("csyo"),h=i("29Wa"),d=i("Cd2c"),p=i("nIj0");function f(t,e){1&t&&r.Nb(0,"mat-spinner",6)}function g(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div",7),r.Jc(1),r.ec(2,"translate"),r.Sb(3,"mat-form-field",8),r.Sb(4,"textarea",9),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().reason=e})),r.Rb(),r.Rb(),r.Rb()}if(2&t){const t=r.dc();r.Ab(1),r.Lc(" ",r.fc(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),r.Ab(3),r.kc("ngModel",t.reason)}}let b=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.registrarManager=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.i),r.Mb(n.a),r.Mb(a.e),r.Mb(s.l),r.Mb(o.l))},t.\u0275cmp=r.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(r.Sb(0,"div"),r.Sb(1,"h1",0),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Hc(4,f,1,0,"mat-spinner",1),r.Hc(5,g,5,4,"div",2),r.Sb(6,"div",3),r.Sb(7,"button",4),r.Zb("click",(function(){return e.onCancel()})),r.Jc(8),r.ec(9,"translate"),r.Rb(),r.Sb(10,"button",5),r.Zb("click",(function(){return e.onSubmit()})),r.Jc(11),r.ec(12,"translate"),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Cb(e.theme),r.Ab(2),r.Kc(r.fc(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),r.Ab(2),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading),r.Ab(3),r.Lc(" ",r.fc(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),r.Ab(2),r.kc("disabled",e.loading),r.Ab(1),r.Lc(" ",r.fc(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[n.j,c.t,n.c,l.b,u.c,n.g,h.c,d.b,p.c,p.r,p.u],pipes:[a.d],styles:[""]}),t})()},ZWQq:function(t,e,i){"use strict";i.d(e,"a",(function(){return z}));var n=i("EM62"),s=i("iAde"),o=i("cePI"),r=i("FlRo"),a=i("8clQ"),c=i("Ssnw"),l=i("2kYt"),u=i("9wx0"),h=i("+Tre"),d=i("Y2X+"),p=i("s2Ay"),f=i("C5kn"),g=i("RK/0"),b=i("j+u3"),m=i("hLiN");function A(t,e){1&t&&n.Nb(0,"th",21)}function y(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",22),n.Sb(1,"mat-checkbox",23),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc(2);return i?o.itemSelectionToggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc(2);n.Ab(1),n.kc("checked",i.selection.isSelected(t))("disabled",i.isCheckboxDisabled(t))}}function w(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")))}function v(t,e){if(1&t&&(n.Sb(0,"i",27),n.ec(1,"memberStatusIconColor"),n.Jc(2),n.ec(3,"memberStatusIcon"),n.Rb()),2&t){const t=n.dc().$implicit;n.Db("material-icons ",n.fc(1,5,t.member.status),""),n.lc("matTooltip",t.member.status),n.Ab(2),n.Lc(" ",n.fc(3,7,t.member.status)," ")}}function _(t,e){if(1&t&&(n.Sb(0,"td",25),n.Hc(1,v,4,9,"i",26),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",t.member)}}function S(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_CANDIDATES_LIST.NAME")))}function E(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"userFullName"),n.ec(3,"userFullName"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Lc(" ",t.richUser?n.fc(2,1,t.richUser):n.fc(3,3,t.candidate)," ")}}function R(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")))}function C(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"userVo"),n.Rb()),2&t){const t=e.$implicit,i=n.dc(2);n.Ab(1),n.Lc(" ",t.richUser?n.fc(2,1,t.richUser):i.getOrganization(t.candidate)," ")}}function T(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")))}function k(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit,i=n.dc(2);n.Ab(1),n.Lc(" ",i.getEmail(t)," ")}}function I(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")))}function O(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit,i=n.dc(2);n.Ab(1),n.Lc(" ",i.getLogins(t)," ")}}function D(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")))}function M(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit,i=n.dc(2);n.Ab(1),n.Lc(" ",i.getAlreadyMember(t)," ")}}function P(t,e){1&t&&n.Nb(0,"th",24)}function x(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Lc(" ",t.richUser?"Local":"External identity"," ")}}function N(t,e){1&t&&n.Nb(0,"tr",28)}function L(t,e){1&t&&n.Nb(0,"tr",29)}function F(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div",2),n.Sb(1,"perun-web-apps-table-options",3),n.Zb("exportData",(function(e){return n.xc(t),n.dc().exportData(e)})),n.Rb(),n.Sb(2,"div",4),n.Sb(3,"table",5),n.Qb(4,6),n.Hc(5,A,1,0,"th",7),n.Hc(6,y,2,2,"td",8),n.Pb(),n.Qb(7,9),n.Hc(8,w,3,3,"th",10),n.Hc(9,_,2,1,"td",11),n.Pb(),n.Qb(10,12),n.Hc(11,S,3,3,"th",10),n.Hc(12,E,4,5,"td",11),n.Pb(),n.Qb(13,13),n.Hc(14,R,3,3,"th",10),n.Hc(15,C,3,3,"td",11),n.Pb(),n.Qb(16,14),n.Hc(17,T,3,3,"th",10),n.Hc(18,k,2,1,"td",11),n.Pb(),n.Qb(19,15),n.Hc(20,I,3,3,"th",10),n.Hc(21,O,2,1,"td",11),n.Pb(),n.Qb(22,16),n.Hc(23,D,3,3,"th",10),n.Hc(24,M,2,1,"td",11),n.Pb(),n.Qb(25,17),n.Hc(26,P,1,0,"th",10),n.Hc(27,x,2,1,"td",11),n.Pb(),n.Hc(28,N,1,0,"tr",18),n.Hc(29,L,1,0,"tr",19),n.Rb(),n.Rb(),n.Sb(30,"mat-paginator",20),n.Zb("page",(function(e){return n.xc(t),n.dc().pageChanged(e)})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(3),n.kc("dataSource",t.dataSource),n.Ab(25),n.kc("matHeaderRowDef",t.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",t.displayedColumns),n.Ab(1),n.kc("length",t.members.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)}}let z=(()=>{class t{constructor(t){this.guiAuthResolver=t,this.pageSize=10,this.page=new n.o,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=a.a,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}getDataForColumn(t,e,i){var n,s;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":const o=t.richUser?t.richUser:t.candidate;return o.lastName?o.lastName:null!==(s=o.firstName)&&void 0!==s?s:"";case"voExtSource":return t.richUser?Object(a.G)(t.richUser):Object(a.p)(t.candidate);case"email":return t.richUser||t.member?Object(a.E)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}getExportDataForColumn(t,e,i){var n;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":const s=t.richUser?t.richUser:t.candidate;return Object(a.w)(s);case"voExtSource":return t.richUser?Object(a.G)(t.richUser):Object(a.p)(t.candidate);case"email":return t.richUser||t.member?Object(a.E)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}exportData(t){Object(a.i)(Object(a.n)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>Object(a.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(a.g)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.paginator)}ngAfterViewInit(){this.setDataSource()}ngOnChanges(t){this.dataSource=new r.o(this.members),this.setDataSource()}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t)),this.setAddAuth()}getEmail(t){let e;if(t.richUser){for(const i of t.richUser.userAttributes)if(i.namespace+":"+i.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){e=i;break}return null!=e&&null!=e.value&&"null"!==e.value.toString().toLowerCase()?e.value.toString().replace(","," "):""}return Object(a.m)(t.candidate)}getOrganization(t){return Object(a.p)(t)}getLogins(t){if(t.richUser)return this.getLoginsForRichUser(t.richUser);{let e=this.getLoginsForCandidate(t.candidate);return null!=e&&""!==e||(e=t.candidate.userExtSource.login),e}}getLoginsForRichUser(t){let e="";for(const i of t.userAttributes)i.friendlyName.startsWith("login-namespace")&&null!=i.value&&(e.length>0&&(e+=", "),e+=i.friendlyName.substring(16)+": "+i.value);return e}getLoginsForCandidate(t){let e="";for(const i in t.attributes)t.attributes.hasOwnProperty(i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}getAlreadyMember(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}isCheckboxDisabled(t){return"vo"===this.type?null!=t.member:!!t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType}pageChanged(t){this.page.emit(t)}setAddAuth(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}itemSelectionToggle(t){this.selection.toggle(t),this.setAddAuth()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){var i;1&t&&(n.Qc(o.a,!0),n.Qc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first))},inputs:{members:"members",selection:"selection",type:"type",pageSize:"pageSize",group:"group"},outputs:{page:"page"},features:[n.yb],decls:2,vars:1,consts:[[1,"card","mt-2"],["class","card-body table-theme",4,"ngIf"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"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"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Hc(1,F,31,6,"div",1),n.Rb()),2&t&&(n.Ab(1),n.kc("ngIf",null!=e.members))},directives:[l.t,u.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,s.a,r.h,r.a,h.a,o.b,d.a,r.j,r.l],pipes:[p.d,f.a,g.a,b.a,m.a],styles:[""]}),t})()},ZWyU:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("EM62"),s=i("cqs0"),o=i("iAde"),r=i("cePI"),a=i("FlRo"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("FcRk"),f=i("s2Ay"),g=i("7fDV");function b(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",17),n.Sb(1,"mat-checkbox",18),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function m(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function A(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")))}function y(t,e){if(1&t&&(n.Sb(0,"td",19),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function w(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")))}function v(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.name)}}function _(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")))}function S(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.ec(2,"extSourceType"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.type))}}function E(t,e){1&t&&n.Nb(0,"tr",23)}function R(t,e){1&t&&n.Nb(0,"tr",24)}function C(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function T(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let k=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.selection=new s.c,this.filterValue="",this.hideColumns=[],this.pageSize=5,this.page=new n.o,this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=c.a}set matPaginator(t){this.paginator=t}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new a.o(this.extSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"type":return t.type.substring(40);case"name":return t.name;default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-ext-sources-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matPaginator=i.first),n.sc(i=n.ac())&&(e.matSort=i.first))},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",hideColumns:"hideColumns",pageSize:"pageSize"},outputs:{page:"page"},features:[n.yb],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,b,2,3,"th",6),n.Hc(7,m,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,A,3,3,"th",9),n.Hc(10,y,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,w,3,3,"th",9),n.Hc(13,v,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,_,3,3,"th",9),n.Hc(16,S,3,3,"td",11),n.Pb(),n.Hc(17,E,1,0,"tr",13),n.Hc(18,R,1,0,"tr",14),n.Rb(),n.Rb(),n.Sb(19,"mat-paginator",15),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(20,C,3,3,"app-alert",16),n.Hc(21,T,3,3,"app-alert",16)),2&t&&(n.kc("hidden",0===e.extSources.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(13),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.extSources.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.extSources.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.extSources.length))},directives:[u.a,a.n,r.a,a.c,a.i,a.b,a.k,a.m,o.a,h.t,a.h,d.a,a.a,r.b,a.j,a.l,p.a],pipes:[f.d,g.a],styles:[""]}),t})()},aFDG:function(t,e,i){"use strict";i.d(e,"a",(function(){return M}));var n=i("EM62"),s=i("OZ4H"),o=i("iAde"),r=i("cePI"),a=i("FlRo"),c=i("Ssnw"),l=i("cqs0"),u=i("HHEo"),h=i("X2Q7"),d=i("8clQ"),p=i("s2Ay"),f=i("PBFl"),g=i("Y2X+"),b=i("2kYt"),m=i("+Tre"),A=i("Cd2c"),y=i("nIj0"),w=i("nhAq"),v=i("FcRk");function _(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",23),n.Sb(1,"mat-checkbox",24),n.Zb("change",(function(e){n.xc(t);const i=n.dc(2);return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function S(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",25),n.Sb(1,"mat-checkbox",26),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc(2);return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc(2);n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function E(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function R(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",28),n.Sb(1,"label"),n.Sb(2,"input",29),n.Zb("ngModelChange",(function(){n.xc(t);const i=e.$implicit;return n.dc(2).onValueChange(i)}))("ngModelChange",(function(i){return n.xc(t),e.$implicit[0]=i})),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit;n.Ab(2),n.kc("ngModel",t[0])}}function C(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function T(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",28),n.Sb(1,"perun-web-apps-attribute-value",30),n.Zb("sendEventToParent2",(function(){n.xc(t);const i=e.$implicit;return n.dc(2).onValueChange(i)})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit;n.Ab(1),n.kc("attribute",t[1])}}function k(t,e){1&t&&n.Nb(0,"tr",31)}function I(t,e){1&t&&n.Nb(0,"tr",32)}function O(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div",9),n.Sb(1,"div",10),n.Sb(2,"div",11),n.Sb(3,"table",12),n.Qb(4,13),n.Hc(5,_,2,3,"th",14),n.Hc(6,S,2,2,"td",15),n.Pb(),n.Qb(7,16),n.Hc(8,E,3,3,"th",17),n.Hc(9,R,3,1,"td",18),n.Pb(),n.Qb(10,19),n.Hc(11,C,3,3,"th",17),n.Hc(12,T,2,1,"td",18),n.Pb(),n.Hc(13,k,1,0,"tr",20),n.Hc(14,I,1,0,"tr",21),n.Rb(),n.Rb(),n.Sb(15,"mat-paginator",22),n.Zb("page",(function(e){return n.xc(t),n.dc().pageChanged(e)})),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(3),n.kc("dataSource",t.dataSource),n.Ab(10),n.kc("matHeaderRowDef",t.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",t.displayedColumns),n.Ab(1),n.kc("length",t.records.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)}}function D(t,e){1&t&&(n.Sb(0,"app-alert",33),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let M=(()=>{class t{constructor(t,e,i,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.attributesManager=o,this.pageSize=10,this.page=new n.o,this.switchView=new n.o,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new a.o,this.selection=new l.c(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=d.a}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(t){this.ngOnInit()}ngOnInit(){this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(t=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(e=>{let i=0;this.records=[];for(const n of t)this.records.push([n,e[i]]),i++;this.dataSource=new a.o(this.records),this.setDataSource()})})}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}onSave(){this.updateMapAttributes();for(const t of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:t[0],attribute:t[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const t of this.selection.selected)this.attributesManager.removeEntitylessAttribute(t[0],t[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const t=["",this.attDef];t[1].value=void 0,this.records.unshift(t),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(t),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(t){this.selection.select(t)}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.i),n.Mb(s.a),n.Mb(c.l),n.Mb(p.e),n.Mb(h.c))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Qc(o.a,!0),n.Qc(u.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first),n.sc(i=n.ac())&&(e.items=i))},inputs:{attDef:"attDef",pageSize:"pageSize"},outputs:{page:"page",switchView:"switchView"},features:[n.yb],decls:18,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltip","save or remove new attribute first","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3"],["class","card mt-3",4,"ngIf"],["alert_type","info","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["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"],["alert_type","info",1,"mt-3"]],template:function(t,e){1&t&&(n.Sb(0,"h1",0),n.Jc(1),n.Rb(),n.Sb(2,"div",1),n.Sb(3,"button",2),n.Zb("click",(function(){return e.switchView.emit()})),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Sb(6,"button",3),n.Zb("click",(function(){return e.onSave()})),n.Jc(7),n.ec(8,"translate"),n.Rb(),n.Sb(9,"button",4),n.Zb("click",(function(){return e.onAdd()})),n.Jc(10),n.ec(11,"translate"),n.Rb(),n.Sb(12,"button",5),n.Zb("click",(function(){return e.onRemove()})),n.Jc(13),n.ec(14,"translate"),n.Rb(),n.Rb(),n.Sb(15,"div",6),n.Hc(16,O,16,6,"div",7),n.Hc(17,D,3,3,"app-alert",8),n.Rb()),2&t&&(n.Ab(1),n.Kc(e.attDef.namespace+":"+e.attDef.friendlyName),n.Ab(3),n.Lc(" ",n.fc(5,9,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),n.Ab(3),n.Lc(" ",n.fc(8,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),n.Ab(2),n.kc("disabled",e.isAddButtonDisabled)("matTooltipDisabled",!e.isAddButtonDisabled),n.Ab(1),n.Lc(" ",n.fc(11,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),n.Ab(3),n.Lc(" ",n.fc(14,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),n.Ab(3),n.kc("ngIf",!(0===e.records.length)),n.Ab(1),n.kc("ngIf",0===e.records.length))},directives:[s.j,s.c,f.b,g.a,s.g,b.t,a.n,r.a,a.c,a.i,a.b,a.k,a.m,o.a,a.h,m.a,a.a,r.b,A.b,y.c,y.r,y.u,w.a,a.j,a.l,v.a],pipes:[p.d],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),t})()},aYBX:function(t,e,i){"use strict";i.d(e,"a",(function(){return v}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("iyZ4"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("FlRo");function p(t,e){1&t&&a.Nb(0,"mat-spinner",7)}function f(t,e){1&t&&(a.Sb(0,"th",17),a.Jc(1,"id"),a.Rb())}function g(t,e){if(1&t&&(a.Sb(0,"td",18),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.id," ")}}function b(t,e){1&t&&(a.Sb(0,"th",17),a.Jc(1,"name"),a.Rb())}function m(t,e){if(1&t&&(a.Sb(0,"td",18),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function A(t,e){1&t&&a.Nb(0,"tr",19)}function y(t,e){1&t&&a.Nb(0,"tr",20)}function w(t,e){if(1&t&&(a.Sb(0,"div",8),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",9),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",10),a.Qb(8,11),a.Hc(9,f,2,0,"th",12),a.Hc(10,g,2,1,"td",13),a.Pb(),a.Qb(11,14),a.Hc(12,b,2,0,"th",12),a.Hc(13,m,2,1,"td",13),a.Pb(),a.Hc(14,A,1,0,"tr",15),a.Hc(15,y,1,0,"tr",16),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),a.Ab(2),a.kc("dataSource",t.extSources),a.Ab(7),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let v=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=n,this.tableConfigService=s,this.translate=o,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,t.id).subscribe(t=>{this.onRemove()},()=>this.loading=!1)}removeGroupExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,t.id).subscribe(t=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(n.f),a.Mb(o.l),a.Mb(r.pb),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"div",0),a.Sb(2,"h1",1),a.Jc(3),a.ec(4,"translate"),a.Rb(),a.Rb(),a.Hc(5,p,1,0,"mat-spinner",2),a.Hc(6,w,16,9,"div",3),a.Sb(7,"div",4),a.Sb(8,"button",5),a.Zb("click",(function(){return e.onCancel()})),a.Jc(9),a.ec(10,"translate"),a.Rb(),a.Sb(11,"button",6),a.Zb("click",(function(){return e.onRemove()})),a.Jc(12),a.ec(13,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(3),a.Kc(a.fc(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),a.Ab(3),a.Lc(" ",a.fc(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},directives:[s.j,l.t,s.c,u.b,h.c,s.g,d.n,d.c,d.i,d.b,d.k,d.m,d.h,d.a,d.j,d.l],pipes:[c.d],styles:[""]}),t})()},aag5:function(t,e,i){"use strict";i.d(e,"a",(function(){return V}));var n=i("EM62"),s=i("cePI"),o=i("FlRo"),r=i("8clQ"),a=i("Ssnw"),c=i("9wx0"),l=i("iAde"),u=i("2kYt"),h=i("bFHC"),d=i("Y2X+"),p=i("sEIs"),f=i("TQS+"),g=i("FcRk"),b=i("s2Ay"),m=i("e+sS"),A=i("j+u3");const y=["paginator"];function w(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function v(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function _(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function S(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.gc(2,1,t.createdAt,"d.M.y"))}}function E(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function R(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"mat-icon",24),n.Jc(2,"arrow_right_alt"),n.Rb(),n.Rb())}function C(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"mat-icon",25),n.Jc(2,"restore"),n.Rb(),n.Rb())}function T(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"mat-icon",26),n.Jc(2,"nat"),n.Rb(),n.Rb())}function k(t,e){if(1&t&&(n.Sb(0,"td",22),n.Hc(1,R,3,0,"div",23),n.Hc(2,C,3,0,"div",23),n.Hc(3,T,3,0,"div",23),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf","INITIAL"==t.type),n.Ab(1),n.kc("ngIf","EXTENSION"==t.type),n.Ab(1),n.kc("ngIf","EMBEDDED"==t.type)}}function I(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function O(t,e){if(1&t&&(n.Sb(0,"td",22),n.Nb(1,"span",27),n.ec(2,"applicationState"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("outerHTML",n.fc(2,1,t.state),n.yc)}}function D(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")))}function M(t,e){if(1&t&&(n.Sb(0,"div"),n.Jc(1),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Lc(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function P(t,e){if(1&t&&(n.Jc(0),n.ec(1,"userFullName")),2&t){const t=n.dc().$implicit;n.Lc(" ",n.fc(1,1,t.user)," ")}}function x(t,e){if(1&t&&(n.Sb(0,"td",22),n.Hc(1,M,2,1,"div",28),n.Hc(2,P,2,3,"ng-template",null,29,n.Ic),n.Rb()),2&t){const t=e.$implicit,i=n.tc(3);n.Ab(1),n.kc("ngIf",null==t.user)("ngIfElse",i)}}function N(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function L(t,e){1&t&&(n.Sb(0,"div",32),n.Jc(1," - "),n.Rb())}function F(t,e){if(1&t&&n.Jc(0),2&t){const t=n.dc().$implicit;n.Lc(" ",t.group.name," ")}}function z(t,e){if(1&t&&(n.Sb(0,"td",22),n.Hc(1,L,2,0,"div",30),n.Hc(2,F,1,1,"ng-template",null,31,n.Ic),n.Rb()),2&t){const t=e.$implicit,i=n.tc(3);n.Ab(1),n.kc("ngIf",null==t.group)("ngIfElse",i)}}function H(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function B(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.Kc(i.getFriendlyName(t.modifiedBy))}}function j(t,e){1&t&&n.Nb(0,"tr",33)}function G(t,e){if(1&t&&n.Nb(0,"tr",34),2&t){const t=e.$implicit,i=n.dc();n.Eb("cursor-pointer",!i.disableRouting),n.kc("routerLink",i.selectApplication(t))("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))}}function U(t,e){1&t&&(n.Sb(0,"app-alert",35),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function K(t,e){1&t&&(n.Sb(0,"app-alert",35),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let V=(()=>{class t{constructor(t,e){this.authResolver=t,this.changeDetector=e,this.applications=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.o,this.pageSizeOptions=r.a}set matSort(t){this.sort=t}ngAfterViewInit(){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.changeDetector.detectChanges()}ngOnChanges(t){this.setDataSource()}getDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}getExportDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?Object(r.w)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}parseModifiedBy(t){const e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){const i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}exportData(t){Object(r.i)(Object(r.n)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.paginator&&(this.dataSource||(this.dataSource=new o.o,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>Object(r.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(r.g)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.applications)}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(a.h),n.Mb(n.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){var i;1&t&&(n.Qc(s.a,!0),n.Qc(y,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first))},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.yb],decls:32,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["paginator",""],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,w,3,3,"th",6),n.Hc(7,v,2,1,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,_,3,3,"th",6),n.Hc(10,S,3,4,"td",9),n.Pb(),n.Qb(11,10),n.Hc(12,E,3,3,"th",6),n.Hc(13,k,4,3,"td",9),n.Pb(),n.Qb(14,11),n.Hc(15,I,3,3,"th",6),n.Hc(16,O,3,3,"td",9),n.Pb(),n.Qb(17,12),n.Hc(18,D,3,3,"th",6),n.Hc(19,x,4,2,"td",9),n.Pb(),n.Qb(20,13),n.Hc(21,N,3,3,"th",6),n.Hc(22,z,4,2,"td",9),n.Pb(),n.Qb(23,14),n.Hc(24,H,3,3,"th",6),n.Hc(25,B,2,1,"td",9),n.Pb(),n.Hc(26,j,1,0,"tr",15),n.Hc(27,G,1,4,"tr",16),n.Rb(),n.Rb(),n.Sb(28,"mat-paginator",17,18),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(30,U,3,3,"app-alert",19),n.Hc(31,K,3,3,"app-alert",19)),2&t&&(n.kc("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(22),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.applications.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(2),n.kc("ngIf",0===e.applications.length),n.Ab(1),n.kc("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[c.a,o.n,s.a,o.c,o.i,o.b,o.k,o.m,l.a,u.t,o.h,s.b,o.a,h.a,d.a,o.j,o.l,p.g,f.c,g.a],pipes:[b.d,u.f,m.a,A.a],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},aea8:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"getResourceRoute",type:t,pure:!0}),t})()},ajPJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n=i("Ssnw"),s=i("9RND"),o=i("X2Q7"),r=i("EM62"),a=i("OZ4H"),c=i("s2Ay"),l=i("29Wa"),u=i("Cd2c"),h=i("nIj0"),d=i("2kYt"),p=i("PBFl");function f(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let g=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+s.a}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(a.i),r.Mb(c.e),r.Mb(n.l),r.Mb(o.k),r.Mb(n.m))},t.\u0275cmp=r.Gb({type:t,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(t,e){if(1&t&&(r.Sb(0,"h1",0),r.Jc(1),r.ec(2,"translate"),r.Rb(),r.Sb(3,"div",1),r.Sb(4,"mat-form-field"),r.Sb(5,"mat-label"),r.Jc(6),r.ec(7,"translate"),r.Rb(),r.Sb(8,"input",2,3),r.Zb("ngModelChange",(function(t){return e.subject=t})),r.Rb(),r.Hc(10,f,3,3,"mat-error",4),r.Rb(),r.Sb(11,"mat-form-field"),r.Sb(12,"mat-label"),r.Jc(13),r.ec(14,"translate"),r.Rb(),r.Sb(15,"textarea",5),r.Zb("ngModelChange",(function(t){return e.message=t})),r.ec(16,"translate"),r.Jc(17," "),r.Rb(),r.Sb(18,"mat-hint"),r.Jc(19),r.ec(20,"translate"),r.Rb(),r.Rb(),r.Rb(),r.Sb(21,"div",6),r.Sb(22,"div",7),r.Sb(23,"button",8),r.Zb("click",(function(){return e.close()})),r.Jc(24),r.ec(25,"translate"),r.Rb(),r.Sb(26,"button",9),r.Zb("click",(function(){return e.sendBugReport()})),r.Jc(27),r.ec(28,"translate"),r.Rb(),r.Rb(),r.Rb()),2&t){const t=r.tc(9);r.Ab(1),r.Kc(r.fc(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),r.Ab(5),r.Kc(r.fc(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),r.Ab(2),r.kc("ngModel",e.subject),r.Ab(2),r.kc("ngIf",t.invalid),r.Ab(3),r.Kc(r.fc(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),r.Ab(2),r.lc("placeholder",r.fc(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),r.kc("ngModel",e.message),r.Ab(4),r.Kc(r.fc(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),r.Ab(5),r.Lc(" ",r.fc(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),r.Ab(2),r.kc("disabled",t.invalid),r.Ab(1),r.Lc(" ",r.fc(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[a.j,a.g,l.c,l.g,u.b,h.c,h.C,h.r,h.u,d.t,l.f,a.c,p.b,l.b],pipes:[c.d],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})()},alep:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),s=i("TkCa"),o=i("k8N0"),r=i("nIj0");const a=["*"];let c=(()=>{class t{constructor(){this.modelChange=new n.o}get model(){return this.modelValue}set model(t){this.modelValue=t}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){var i;1&t&&n.Dc(o.a,!0),2&t&&n.sc(i=n.ac())&&(e.toggle=i.first)},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:a,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(t,e){if(1&t){const t=n.Tb();n.jc(),n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"label",2),n.Zb("click",(function(){return n.xc(t),n.tc(5).toggle()||e.valueChanged()})),n.Jc(3),n.Rb(),n.Sb(4,"mat-slide-toggle",3,4),n.Zb("ngModelChange",(function(t){return e.modelValue=t})),n.Rb(),n.Rb(),n.Sb(6,"div",5),n.ic(7),n.Rb(),n.Rb()}if(2&t){const t=n.tc(5);n.Ab(2),n.Eb("unselected-setting",!t.checked),n.Ab(1),n.Lc(" ",e.title," "),n.Ab(1),n.kc("ngModel",e.modelValue),n.Ab(2),n.kc("@openClose",t.checked?"open":"closed")}},directives:[o.a,r.r,r.u],styles:[""],data:{animation:[s.c]}}),t})()},amZv:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("cqs0"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("csyo"),h=i("A8Ay"),d=i("eakH"),p=i("PBFl");function f(t,e){1&t&&a.Nb(0,"mat-spinner",4)}function g(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",5),a.Sb(1,"perun-web-apps-immediate-filter",6),a.Zb("filter",(function(e){return a.xc(t),a.dc().applyFilter(e)})),a.Rb(),a.Nb(2,"app-attr-def-list",7),a.Rb()}if(2&t){const t=a.dc();a.Ab(1),a.kc("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),a.Ab(1),a.kc("selection",t.selection)("definitions",t.attrDefinitions)("disableRouting",!0)("filterValue",t.filterValue)}}function b(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",8),a.Sb(1,"button",9),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"button",10),a.Zb("click",(function(){return a.xc(t),a.dc().onAdd()})),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),a.Ab(2),a.kc("disabled",0===t.selection.selected.length),a.Ab(1),a.Lc(" ",a.fc(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let m=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.serviceManager=i,this.attributesManager=n,this.notificator=s,this.translate=o,this.attrDefinitions=[],this.selection=new r.c(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attrDefinitions=t,this.loading=!1})}onAdd(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.serviceManager.addRequiredAttributes(this.serviceId,t).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},t=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.n),a.Mb(s.c),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,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,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,f,1,0,"mat-spinner",1),a.Hc(5,g,3,5,"div",2),a.Hc(6,b,7,7,"div",3),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[n.j,l.t,u.c,n.g,h.a,d.a,n.c,p.b],pipes:[c.d],styles:[""]}),t})()},b7Yx:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("EM62"),s=i("8clQ"),o=i("2kYt"),r=i("+Tre"),a=i("nIj0"),c=i("29Wa");function l(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-checkbox",2),n.Zb("change",(function(){return n.xc(t),n.dc()._sendEventToParent()}))("ngModelChange",(function(e){return n.xc(t),n.dc().attribute.value=e})),n.Rb()}if(2&t){const t=n.dc();n.kc("ngModel",t.attribute.value)}}function u(t,e){if(1&t&&(n.Sb(0,"mat-label"),n.Jc(1),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.Kc(t.attribute.value)}}let h=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new n.o}ngOnInit(){this.readonly||(this.readonly=Object(s.s)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"div"),n.Hc(1,l,1,1,"mat-checkbox",0),n.Hc(2,u,2,1,"mat-label",1),n.Rb()),2&t&&(n.Ab(1),n.kc("ngIf",!e.readonly),n.Ab(1),n.kc("ngIf",e.readonly))},directives:[o.t,r.a,a.r,a.u,c.g],styles:[""]}),t})()},bATb:function(t,e,i){"use strict";i.d(e,"a",(function(){return v}));var n=i("X2Q7"),s=i("nIj0"),o=i("OZ4H"),r=i("Ssnw"),a=i("jIqt"),c=i("YtkY"),l=i("EM62"),u=i("s2Ay"),h=i("2kYt"),d=i("PBFl"),p=i("csyo"),f=i("29Wa"),g=i("Cd2c"),b=i("ulve"),m=i("mFH5");function A(t,e){1&t&&l.Nb(0,"mat-spinner",7)}function y(t,e){if(1&t&&(l.Sb(0,"mat-option",14),l.Jc(1),l.Rb()),2&t){const t=e.$implicit;l.kc("value",t),l.Ab(1),l.Lc(" ",t.name," ")}}function w(t,e){if(1&t&&(l.Sb(0,"div"),l.Sb(1,"mat-form-field",8),l.Nb(2,"input",9),l.ec(3,"translate"),l.Sb(4,"mat-error"),l.Jc(5),l.ec(6,"translate"),l.Rb(),l.Rb(),l.Sb(7,"mat-form-field",8),l.Nb(8,"input",10),l.ec(9,"translate"),l.Sb(10,"mat-error"),l.Jc(11),l.ec(12,"translate"),l.Rb(),l.Sb(13,"mat-autocomplete",11,12),l.Hc(15,y,2,2,"mat-option",13),l.ec(16,"async"),l.Rb(),l.Rb(),l.Rb()),2&t){const t=l.tc(14),e=l.dc();l.Ab(2),l.lc("placeholder",l.fc(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),l.kc("formControl",e.loginControl),l.Ab(3),l.Lc(" ",l.fc(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),l.Ab(3),l.lc("placeholder",l.fc(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),l.kc("formControl",e.extSourcesControl)("matAutocomplete",t),l.Ab(3),l.Lc(" ",l.fc(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),l.Ab(2),l.kc("displayWith",e.displayFn),l.Ab(2),l.kc("ngForOf",l.fc(16,17,e.filteredExtSources))}}let v=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.extSourcesManagerService=i,this.usersManagerService=n,this.translate=s,this.notificator=o,this.extSources=[],s.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.loginControl=new s.g("",[s.F.required,s.F.pattern(".*[\\S]+.*")]),this.extSourcesControl=new s.g("",[s.F.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe(Object(a.a)(""),Object(c.a)(t=>this._filter(t))),this.extSourcesManagerService.getExtSources().subscribe(t=>{this.extSources=t,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe(Object(a.a)(""),Object(c.a)(t=>this._filter(t))),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.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(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.extSources.filter(t=>t.name.toLowerCase().includes(e))}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(o.i),l.Mb(o.a),l.Mb(n.f),l.Mb(n.p),l.Mb(u.e),l.Mb(r.l))},t.\u0275cmp=l.Gb({type:t,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","","type","text","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Sb(3,"div",1),l.Hc(4,A,1,0,"mat-spinner",2),l.Hc(5,w,17,19,"div",3),l.Rb(),l.Sb(6,"div",4),l.Sb(7,"button",5),l.Zb("click",(function(){return e.onCancel()})),l.Jc(8),l.ec(9,"translate"),l.Rb(),l.Sb(10,"button",6),l.Zb("click",(function(){return e.onAdd()})),l.Jc(11),l.ec(12,"translate"),l.Rb(),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),l.Ab(3),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(3),l.Lc(" ",l.fc(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),l.Ab(2),l.kc("disabled",e.loginControl.invalid||e.extSourcesControl.invalid||e.loading),l.Ab(1),l.Lc(" ",l.fc(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[o.j,o.g,h.t,o.c,d.b,p.c,f.c,g.b,s.c,s.C,s.r,s.h,f.b,b.d,b.a,h.s,m.n],pipes:[u.d,h.b],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}"]}),t})()},bFHC:function(t,e,i){"use strict";i.d(e,"a",(function(){return P})),i.d(e,"b",(function(){return x})),i.d(e,"c",(function(){return E}));var n=i("EM62"),s=i("mFH5"),o=i("5XID"),r=i("2kYt"),a=i("ROBh"),c=i("47ST"),l=i("P4Xx"),u=i("bwdy"),h=i("8j5Y"),d=i("YtkY"),p=i("4e/d"),f=i("ruxD"),g=i("7ntQ"),b=i("J+dc"),m=i("vobO"),A=i("e4iD");const y=["*"];function w(t){return Error(`Unable to find icon with the name "${t}"`)}function v(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function _(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class S{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let E=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new S(i,n))}addSvgIconLiteralInNamespace(t,e,i,s){const o=this._sanitizer.sanitize(n.J.HTML,i);if(!o)throw _(i);const r=this._createSvgElementForSingleIcon(o,s);return this._addSvgIconConfig(t,e,new S(r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new S(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const s=this._sanitizer.sanitize(n.J.HTML,e);if(!s)throw _(e);const o=this._svgElementFromString(s);return this._addSvgIconSetConfig(t,new S(o,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.J.RESOURCE_URL,t);if(!e)throw v(t);const i=this._cachedIconsByUrl.get(e);return i?Object(a.a)(R(i)):this._loadSvgIconFromConfig(new S(t)).pipe(Object(h.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>R(t)))}getNamedSvgIcon(t,e=""){const i=C(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Object(c.a)(w(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Object(a.a)(R(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Object(h.a)(e=>t.svgElement=e),Object(d.a)(t=>R(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return Object(a.a)(i);const s=e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(n.J.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i),Object(a.a)(null)})));return Object(l.a)(s).pipe(Object(d.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw w(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgElement){const e=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(Object(d.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Object(a.a)(t.svgElement):this._fetchUrl(t.url).pipe(Object(d.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(e)),Object(g.a)());return this._inProgressUrlFetches.set(e,s),s}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(C(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(m.b,8),n.Wb(A.b),n.Wb(r.e,8),n.Wb(n.n,8))},t.\u0275prov=Object(n.Ib)({factory:function(){return new t(Object(n.Wb)(m.b,8),Object(n.Wb)(A.b),Object(n.Wb)(r.e,8),Object(n.Wb)(n.n,8))},token:t,providedIn:"root"}),t})();function R(t){return t.cloneNode(!0)}function C(t,e){return t+":"+e}class T{constructor(t){this._elementRef=t}}const k=Object(s.y)(T),I=new n.r("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(n.V)(r.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),O=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],D=O.map(t=>`[${t}]`).join(", "),M=/^url\(['"]?#(.*?)['"]?\)$/;let P=(()=>{class t extends k{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.a.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(o.c)(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(Object(b.a)(1)).subscribe(t=>this._setSvgElement(t),i=>{const n=`Error retrieving icon ${t}:${e}! ${i.message}`;this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(D),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match(M):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(E),n.Xb("aria-hidden"),n.Mb(I,8),n.Mb(n.n,8))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&n.Eb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[n.xb,n.yb],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(n.jc(),n.ic(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},bdug:function(t,e,i){"use strict";i.d(e,"a",(function(){return L}));var n=i("X2Q7"),s=(i("HHEo"),i("cqs0")),o=i("mEf3"),r=i("8clQ"),a=i("+0js"),c=i("IDQ9"),l=i("nyAh"),u=i("EM62"),h=i("sEIs"),d=i("OZ4H"),p=i("2kYt"),f=i("csyo"),g=i("FcRk"),b=i("0XDM"),m=i("PBFl"),A=i("ABWF"),y=i("eXxK"),w=i("22FB"),v=i("KQGD"),_=i("jqZM"),S=i("LKLE"),E=i("s2Ay");const R=["list"];function C(t,e){1&t&&u.Nb(0,"mat-spinner",4)}function T(t,e){if(1&t&&(u.Sb(0,"app-alert",5),u.Jc(1),u.Rb()),2&t){const t=u.dc();u.Ab(1),u.Kc(t.noEntityMessage)}}function k(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-group-search-select",17),u.Zb("groupSelected",(function(e){return u.xc(t),u.dc(2).specifySecondEntity(e)})),u.Rb()}if(2&t){const t=u.dc(2);u.kc("groups",t.entityValues)}}function I(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-resource-search-select",18),u.Zb("resourceSelected",(function(e){return u.xc(t),u.dc(2).specifySecondEntity(e)})),u.Rb()}if(2&t){const t=u.dc(2);u.kc("resources",t.entityValues)}}function O(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-member-search-select",19),u.Zb("memberSelected",(function(e){return u.xc(t),u.dc(2).specifySecondEntity(e)})),u.Rb()}if(2&t){const t=u.dc(2);u.kc("members",t.entityValues)}}function D(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-facility-search-select",20),u.Zb("facilitySelected",(function(e){return u.xc(t),u.dc(2).specifySecondEntity(e)})),u.Rb()}if(2&t){const t=u.dc(2);u.kc("facilities",t.entityValues)}}function M(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-user-search-select",21),u.Zb("userSelected",(function(e){return u.xc(t),u.dc(2).specifySecondEntity(e)})),u.Rb()}if(2&t){const t=u.dc(2);u.kc("users",t.entityValues)}}function P(t,e){1&t&&u.Nb(0,"mat-spinner",4)}function x(t,e){if(1&t&&u.Nb(0,"perun-web-apps-attributes-list",22,23),2&t){const t=u.dc(2);u.kc("attributes",t.attributes)("selection",t.selection)}}function N(t,e){if(1&t){const t=u.Tb();u.Sb(0,"div"),u.Sb(1,"div",6),u.Hc(2,k,1,1,"perun-web-apps-group-search-select",7),u.Hc(3,I,1,1,"perun-web-apps-resource-search-select",8),u.Hc(4,O,1,1,"perun-web-apps-member-search-select",9),u.Hc(5,D,1,1,"perun-web-apps-facility-search-select",10),u.Hc(6,M,1,1,"perun-web-apps-user-search-select",11),u.Rb(),u.Sb(7,"perun-web-apps-refresh-button",12),u.Zb("refresh",(function(){u.xc(t);const e=u.dc();return e.getAttributes(e.specificSecondEntity.id)})),u.Rb(),u.Sb(8,"button",13),u.Zb("click",(function(){u.xc(t);const e=u.dc();return e.onAdd(e.specificSecondEntity.id)})),u.Jc(9),u.ec(10,"translate"),u.Rb(),u.Sb(11,"button",14),u.Zb("click",(function(){u.xc(t);const e=u.dc();return e.onSave(e.specificSecondEntity.id)})),u.Jc(12),u.ec(13,"translate"),u.Rb(),u.Sb(14,"button",15),u.Zb("click",(function(){u.xc(t);const e=u.dc();return e.onDelete(e.specificSecondEntity.id)})),u.Jc(15),u.ec(16,"translate"),u.Rb(),u.Hc(17,P,1,0,"mat-spinner",1),u.Hc(18,x,2,2,"perun-web-apps-attributes-list",16),u.Rb()}if(2&t){const t=u.dc();u.Ab(2),u.kc("ngIf","group"===t.secondEntity),u.Ab(1),u.kc("ngIf","resource"===t.secondEntity),u.Ab(1),u.kc("ngIf","member"===t.secondEntity),u.Ab(1),u.kc("ngIf","facility"===t.secondEntity),u.Ab(1),u.kc("ngIf","user"===t.secondEntity),u.Ab(3),u.Lc(" ",u.fc(10,12,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),u.Ab(2),u.kc("disabled",0===t.selection.selected.length),u.Ab(1),u.Lc(" ",u.fc(13,14,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),u.Ab(2),u.kc("disabled",0===t.selection.selected.length),u.Ab(1),u.Lc(" ",u.fc(16,16,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),u.Ab(2),u.kc("ngIf",t.innerLoading),u.Ab(1),u.kc("ngIf",!t.innerLoading)}}let L=(()=>{class t{constructor(t,e,i,n,o,r,a){this.route=t,this.attributesManagerService=e,this.resourcesManagerService=i,this.facilitiesManagerService=n,this.groupsManagerService=o,this.membersManager=r,this.dialog=a,this.entityValues=[],this.attributes=[],this.selection=new s.c(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAllowedResources(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithGroup(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[l.a.MEMBER_CORE_ID]).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedRichMembers(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getAssignedGroups(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.specifySecondEntity(this.entityValues[0])}getAttributes(t){switch(this.innerLoading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}}setMessages(t){this.noEntityMessage=`No ${t} assigned`}onSave(t){this.list.updateMapAttributes();const e=Object(r.o)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected},this.dialog.open(a.f,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onDelete(t){const e=Object(r.o)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected,theme:this.firstEntity+"-theme"},this.dialog.open(o.a,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onAdd(t){const e=Object(r.o)();e.width="1050px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,notEmptyAttributes:this.attributes,style:this.firstEntity+"-theme"},this.dialog.open(c.a,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}specifySecondEntity(t){this.specificSecondEntity=t,this.getAttributes(this.specificSecondEntity.id)}}return t.\u0275fac=function(e){return new(e||t)(u.Mb(h.a),u.Mb(n.c),u.Mb(n.m),u.Mb(n.g),u.Mb(n.h),u.Mb(n.i),u.Mb(d.b))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(t,e){var i;1&t&&u.Qc(R,!0),2&t&&u.sc(i=u.ac())&&(e.list=i.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,"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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"attributes","selection",4,"ngIf"],[3,"groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","selection"],["list",""]],template:function(t,e){1&t&&(u.Sb(0,"div",0),u.Hc(1,C,1,0,"mat-spinner",1),u.Hc(2,T,2,1,"app-alert",2),u.Hc(3,N,19,18,"div",3),u.Rb()),2&t&&(u.Ab(1),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",0===e.entityValues.length&&!e.loading),u.Ab(1),u.kc("ngIf",0!==e.entityValues.length))},directives:[p.t,f.c,g.a,b.a,m.b,A.a,y.a,w.a,v.a,_.a,S.a],pipes:[E.d],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),t})()},bwdy:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("FU6l"),s=i("X0qr"),o=i("IJgj");const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},bwko:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),s=i("EM62");let o=(()=>{class t{transform(t,...e){return Object(n.E)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"userEmail",type:t,pure:!0}),t})()},c9OP:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("cqs0"),a=i("nyAh"),c=i("EM62"),l=i("s2Ay"),u=i("2kYt"),h=i("csyo"),d=i("A8Ay"),p=i("K9kF"),f=i("PBFl");function g(t,e){1&t&&c.Nb(0,"mat-spinner",6)}function b(t,e){if(1&t){const t=c.Tb();c.Sb(0,"perun-web-apps-immediate-filter",7),c.Zb("filter",(function(e){return c.xc(t),c.dc().applyFilter(e)})),c.Rb()}2&t&&c.kc("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}function m(t,e){if(1&t&&c.Nb(0,"perun-web-apps-groups-list",8),2&t){const t=c.dc();c.kc("groups",t.groups)("selection",t.selection)("hideColumns",t.hideColumns)("filter",t.filterValue)("groupsToDisable",t.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function A(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div",9),c.Sb(1,"button",10),c.Zb("click",(function(){return c.xc(t),c.dc().onCancel()})),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"button",11),c.Zb("click",(function(){return c.xc(t),c.dc().onAdd()})),c.Jc(5),c.ec(6,"translate"),c.Rb(),c.Rb()}if(2&t){const t=c.dc();c.Ab(2),c.Lc(" ",c.fc(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),c.Ab(2),c.kc("disabled",0===t.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s,o,c){this.dialogRef=t,this.data=e,this.groupManager=i,this.memberManager=n,this.notificator=s,this.translate=o,this.authResolver=c,this.loading=!1,this.groups=[],this.selection=new r.c(!0,[]),this.attrNames=[a.a.GROUP_SYNC_ENABLED,a.a.GROUP_LAST_SYNC_STATE,a.a.GROUP_LAST_SYNC_TIMESTAMP,a.a.GROUP_STRUCTURE_SYNC_ENABLED,a.a.GROUP_LAST_STRUCTURE_SYNC_STATE,a.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.hideColumns=["recent","vo","expiration","menu"],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(t=>{this.member=t,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(t=>{this.groups=t.filter(t=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const t=this.selection.selected.map(t=>t.id);this.loading=!0,this.groupManager.addMember(t,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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(s.h),c.Mb(s.i),c.Mb(o.l),c.Mb(l.e),c.Mb(o.h))},t.\u0275cmp=c.Gb({type:t,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,"groups","selection","hideColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","hideColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,g,1,0,"mat-spinner",1),c.Sb(5,"div",2),c.Hc(6,b,1,1,"perun-web-apps-immediate-filter",3),c.Hc(7,m,1,8,"perun-web-apps-groups-list",4),c.Rb(),c.Hc(8,A,7,7,"div",5),c.Rb()),2&t&&(c.Cb(e.theme),c.Ab(2),c.Kc(c.fc(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(2),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[n.j,u.t,n.g,h.c,d.a,p.a,n.c,f.b],pipes:[l.d],styles:[""]}),t})()},cJ9h:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("mW0F"),s=i("pBDD"),o=i("r9RI"),r=i("YtkY"),a=i("GoAz");function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>Object(a.a)(t(i,n)).pipe(Object(r.a)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new l(t,i)))}class l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.a{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},cZZj:function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return c})),i.d(e,"c",(function(){return m})),i.d(e,"d",(function(){return b})),i.d(e,"e",(function(){return u})),i.d(e,"f",(function(){return f})),i.d(e,"g",(function(){return g}));var n=i("EM62"),s=i("2kYt");let o;try{o="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(A){o=!1}let r,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(s.J)(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&&!o)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(n.C,8))},t.\u0275prov=Object(n.Ib)({factory:function(){return new t(Object(n.Wb)(n.C,8))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(r)return r;if("object"!=typeof document||!document)return r=new Set(l),r;let t=document.createElement("input");return r=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),r}let h,d,p;function f(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function m(t){if(function(){if(null==p){const t="undefined"!=typeof document?document.head:null;p=!(!t||!t.createShadowRoot&&!t.attachShadow)}return p}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},cePI:function(t,e,i){"use strict";i.d(e,"a",(function(){return b})),i.d(e,"b",(function(){return E})),i.d(e,"c",(function(){return R}));var n=i("EM62"),s=i("5XID"),o=i("mFH5"),r=i("ZTXN"),a=i("g6G6"),c=i("f7+R"),l=i("2kYt"),u=i("sg/T");const h=["mat-sort-header",""];function d(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div",3),n.Zb("@arrowPosition.start",(function(){return n.xc(t),n.dc()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return n.xc(t),n.dc()._disableViewStateAnimation=!1})),n.Nb(1,"div",4),n.Sb(2,"div",5),n.Nb(3,"div",6),n.Nb(4,"div",7),n.Nb(5,"div",8),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.kc("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),n.Ab(2),n.kc("@indicator",t._getArrowDirectionState()),n.Ab(1),n.kc("@leftPointer",t._getArrowDirectionState()),n.Ab(1),n.kc("@rightPointer",t._getArrowDirectionState())}}const p=["*"];class f{}const g=Object(o.C)(Object(o.A)(f));let b=(()=>{class t extends g{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new r.a,this.start="asc",this._direction="",this.sortChange=new n.o}get direction(){return this._direction}set direction(t){if(Object(n.W)()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(t+" is not a valid sort direction ('asc' or 'desc').")}(t);this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(s.c)(t)}register(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error(`Cannot have two MatSortables with the same id (${t.id}).`);this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),i=e.indexOf(this.direction)+1;return i>=e.length&&(i=0),e[i]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.xb,n.yb]}),t})();const m=n.Ub(b),A=o.b.ENTERING+" "+o.a.STANDARD_CURVE,y={indicator:Object(c.n)("indicator",[Object(c.k)("active-asc, asc",Object(c.l)({transform:"translateY(0px)"})),Object(c.k)("active-desc, desc",Object(c.l)({transform:"translateY(10px)"})),Object(c.m)("active-asc <=> active-desc",Object(c.e)(A))]),leftPointer:Object(c.n)("leftPointer",[Object(c.k)("active-asc, asc",Object(c.l)({transform:"rotate(-45deg)"})),Object(c.k)("active-desc, desc",Object(c.l)({transform:"rotate(45deg)"})),Object(c.m)("active-asc <=> active-desc",Object(c.e)(A))]),rightPointer:Object(c.n)("rightPointer",[Object(c.k)("active-asc, asc",Object(c.l)({transform:"rotate(45deg)"})),Object(c.k)("active-desc, desc",Object(c.l)({transform:"rotate(-45deg)"})),Object(c.m)("active-asc <=> active-desc",Object(c.e)(A))]),arrowOpacity:Object(c.n)("arrowOpacity",[Object(c.k)("desc-to-active, asc-to-active, active",Object(c.l)({opacity:1})),Object(c.k)("desc-to-hint, asc-to-hint, hint",Object(c.l)({opacity:.54})),Object(c.k)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Object(c.l)({opacity:0})),Object(c.m)("* => asc, * => desc, * => active, * => hint, * => void",Object(c.e)("0ms")),Object(c.m)("* <=> *",Object(c.e)(A))]),arrowPosition:Object(c.n)("arrowPosition",[Object(c.m)("* => desc-to-hint, * => desc-to-active",Object(c.e)(A,Object(c.h)([Object(c.l)({transform:"translateY(-25%)"}),Object(c.l)({transform:"translateY(0)"})]))),Object(c.m)("* => hint-to-desc, * => active-to-desc",Object(c.e)(A,Object(c.h)([Object(c.l)({transform:"translateY(0)"}),Object(c.l)({transform:"translateY(25%)"})]))),Object(c.m)("* => asc-to-hint, * => asc-to-active",Object(c.e)(A,Object(c.h)([Object(c.l)({transform:"translateY(25%)"}),Object(c.l)({transform:"translateY(0)"})]))),Object(c.m)("* => hint-to-asc, * => active-to-asc",Object(c.e)(A,Object(c.h)([Object(c.l)({transform:"translateY(0)"}),Object(c.l)({transform:"translateY(-25%)"})]))),Object(c.k)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Object(c.l)({transform:"translateY(0)"})),Object(c.k)("hint-to-desc, active-to-desc, desc",Object(c.l)({transform:"translateY(-25%)"})),Object(c.k)("hint-to-asc, active-to-asc, asc",Object(c.l)({transform:"translateY(25%)"}))]),allowChildren:Object(c.n)("allowChildren",[Object(c.m)("* <=> *",[Object(c.i)("@*",Object(c.f)(),{optional:!0})])])};let w=(()=>{class t{constructor(){this.changes=new r.a,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const v={provide:w,deps:[[new n.B,new n.K,w]],useFactory:function(t){return t||new w}};class _{}const S=Object(o.A)(_);let E=(()=>{class t extends S{constructor(t,e,i,n,s,o){if(super(),this._intl=t,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",!i)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");this._rerenderSubscription=Object(a.a)(i.sortChange,i._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()}),s&&o&&s.monitor(o,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(s.c)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngOnDestroy(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_handleClick(){if(this._isDisabled())return;this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(w),n.Mb(n.h),n.Mb(b,8),n.Mb("MAT_SORT_HEADER_COLUMN_DEF",8),n.Mb(u.h),n.Mb(n.l))},t.\u0275cmp=n.Gb({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.Zb("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(n.Bb("aria-sort",e._getAriaSortAttribute()),n.Eb("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.xb],attrs:h,ngContentSelectors:p,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(n.jc(),n.Sb(0,"div",0),n.Sb(1,"button",1),n.ic(2),n.Rb(),n.Hc(3,d,6,6,"div",2),n.Rb()),2&t&&(n.Eb("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.Ab(1),n.Bb("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),n.Ab(2),n.kc("ngIf",e._renderArrow()))},directives:[l.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[y.indicator,y.leftPointer,y.rightPointer,y.arrowOpacity,y.arrowPosition,y.allowChildren]},changeDetection:0}),t})(),R=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[v],imports:[[l.c]]}),t})()},ckkg:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("IdLP"),s=i("dUuy"),o=i("czMQ");function r(t,e){return e?Object(o.a)(t,e):new n.a(Object(s.a)(t))}},cqs0:function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return u})),i.d(e,"d",(function(){return h})),i.d(e,"e",(function(){return c}));var n=i("9bRT"),s=i("ROBh"),o=i("ZTXN"),r=i("EM62");class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return Object(n.a)(this._data)?this._data:Object(s.a)(this._data)}disconnect(){}}class u{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})()},csyo:function(t,e,i){"use strict";i.d(e,"a",(function(){return m})),i.d(e,"b",(function(){return y})),i.d(e,"c",(function(){return A}));var n=i("EM62"),s=i("2kYt"),o=i("mFH5"),r=i("5XID"),a=i("cZZj"),c=i("5lCh");function l(t,e){if(1&t&&(n.cc(),n.Nb(0,"circle",3)),2&t){const t=n.dc();n.Ec("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),n.Bb("r",t._circleRadius)}}function u(t,e){if(1&t&&(n.cc(),n.Nb(0,"circle",3)),2&t){const t=n.dc();n.Ec("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),n.Bb("r",t._circleRadius)}}function h(t,e){if(1&t&&(n.cc(),n.Nb(0,"circle",3)),2&t){const t=n.dc();n.Ec("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),n.Bb("r",t._circleRadius)}}function d(t,e){if(1&t&&(n.cc(),n.Nb(0,"circle",3)),2&t){const t=n.dc();n.Ec("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),n.Bb("r",t._circleRadius)}}const p=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class f{constructor(t){this._elementRef=t}}const g=Object(o.y)(f,"primary"),b=new n.r("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let m=(()=>{class t extends g{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(r.f)(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(r.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(r.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(a.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}get _strokeCircumference(){return 2*Math.PI*this._circleRadius}get _strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}get _circleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){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*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(a.a),n.Mb(s.e,8),n.Mb(c.a,8),n.Mb(b))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.Bb("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.Ec("width",e.diameter,"px")("height",e.diameter,"px"),n.Eb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.xb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.cc(),n.Sb(0,"svg",0),n.Hc(1,l,1,9,"circle",1),n.Hc(2,u,1,7,"circle",2),n.Rb()),2&t&&(n.Ec("width",e.diameter,"px")("height",e.diameter,"px"),n.kc("ngSwitch","indeterminate"===e.mode),n.Bb("viewBox",e._viewBox),n.Ab(1),n.kc("ngSwitchCase",!0),n.Ab(1),n.kc("ngSwitchCase",!1))},directives:[s.x,s.y],styles:[p],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),A=(()=>{class t extends m{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(a.a),n.Mb(s.e,8),n.Mb(c.a,8),n.Mb(b))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(n.Ec("width",e.diameter,"px")("height",e.diameter,"px"),n.Eb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[n.xb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.cc(),n.Sb(0,"svg",0),n.Hc(1,h,1,9,"circle",1),n.Hc(2,d,1,7,"circle",2),n.Rb()),2&t&&(n.Ec("width",e.diameter,"px")("height",e.diameter,"px"),n.kc("ngSwitch","indeterminate"===e.mode),n.Bb("viewBox",e._viewBox),n.Ab(1),n.kc("ngSwitchCase",!0),n.Ab(1),n.kc("ngSwitchCase",!1))},directives:[s.x,s.y],styles:[p],encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[o.i,s.c],o.i]}),t})()},czMQ:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("IdLP"),s=i("bwdy");function o(t,e){return new n.a(i=>{const n=new s.a;let o=0;return n.add(e.schedule((function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()}))),n})}},dEHC:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62");const s=["*"];let o=(()=>{class t{constructor(){}ngOnChanges(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},features:[n.yb],ngContentSelectors:s,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(t,e){1&t&&(n.jc(),n.Sb(0,"div",0),n.Sb(1,"span",1),n.Jc(2),n.Rb(),n.Sb(3,"div",2),n.ic(4),n.Rb(),n.Rb(),n.Sb(5,"div",3),n.Nb(6,"span",4),n.Sb(7,"div",5),n.Jc(8),n.Rb(),n.Rb()),2&t&&(n.Ab(2),n.Lc("",e.label,":"),n.Ab(6),n.Lc(" ",e.description," "))},styles:[""]}),t})()},dUuy:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=t=>e=>{for(let i=0,n=t.length;i{class t{constructor(t,e,i,n,o,r){this.groupService=t,this.registrarManager=e,this.tableConfigService=i,this.route=n,this.guiAuthResolver=o,this.store=r,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.E,this.tableId=s.F,this.routeAuth=!1}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,this.setData(["NEW","VERIFIED"])}),this.startDate=new r.g(Object(a.I)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new r.g(Object(a.I)(new Date,"yyyy-MM-dd","en-GB"))})}setAuth(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}setData(t){this.registrarManager.getApplicationsForGroup(this.group.id,t,Object(a.I)(this.startDate.value,"yyyy-MM-dd","en-GB"),Object(a.I)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=t,this.setAuth(),this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Mb(n.h),c.Mb(n.l),c.Mb(s.pb),c.Mb(l.a),c.Mb(o.h),c.Mb(o.m))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"w-25","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page"],[3,"pageSize","disableRouting","filterValue","applications","group","page"]],template:function(t,e){1&t&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Sb(3,"div"),c.Sb(4,"perun-web-apps-refresh-button",1),c.Zb("refresh",(function(){return e.select()})),c.Rb(),c.Hc(5,v,3,3,"button",2),c.Hc(6,_,3,3,"button",2),c.Sb(7,"mat-form-field",3),c.Sb(8,"mat-label"),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Sb(11,"mat-select",4),c.Zb("selectionChange",(function(){return e.select()}))("valueChange",(function(t){return e.state=t})),c.Sb(12,"mat-option",5),c.Jc(13),c.ec(14,"translate"),c.Rb(),c.Sb(15,"mat-option",6),c.Jc(16),c.ec(17,"translate"),c.Rb(),c.Sb(18,"mat-option",7),c.Jc(19),c.ec(20,"translate"),c.Rb(),c.Sb(21,"mat-option",8),c.Jc(22),c.ec(23,"translate"),c.Rb(),c.Sb(24,"mat-option",9),c.Jc(25),c.ec(26,"translate"),c.Rb(),c.Sb(27,"mat-option",10),c.Jc(28),c.ec(29,"translate"),c.Rb(),c.Rb(),c.Rb(),c.Sb(30,"perun-web-apps-debounce-filter",11),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Sb(31,"perun-web-apps-date-range",12),c.Zb("datePicker",(function(){return e.select()})),c.Rb(),c.Rb(),c.Hc(32,S,1,0,"mat-spinner",13),c.Hc(33,C,3,2,"div",14)),2&t&&(c.Ab(1),c.Kc(c.fc(2,16,"VO_DETAIL.APPLICATION.TITLE")),c.Ab(4),c.kc("ngIf",!e.showAllDetails),c.Ab(1),c.kc("ngIf",e.showAllDetails),c.Ab(3),c.Kc(c.fc(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.Ab(2),c.kc("value",e.state),c.Ab(2),c.Kc(c.fc(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.Ab(3),c.Kc(c.fc(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.Ab(3),c.Kc(c.fc(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.Ab(3),c.Kc(c.fc(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.Ab(3),c.Kc(c.fc(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.Ab(3),c.Kc(c.fc(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.Ab(2),c.kc("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.Ab(1),c.kc("startDate",e.startDate)("endDate",e.endDate),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[u.a,a.t,h.c,h.g,d.a,p.n,f.a,g.a,b.b,m.c,A.a,y.a],pipes:[w.d],styles:[""]}),t})()},dhrr:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){if(null==t)return null;let i="";return t.forEach((function(t){i=i.concat(t.tagName)})),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"resourceTagsToString",type:t,pure:!0}),t})()},dnAU:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("nIj0"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("29Wa"),p=i("Cd2c");function f(t,e){1&t&&a.Nb(0,"mat-spinner",7)}function g(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function b(t,e){if(1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t){const t=a.dc(2);a.Ab(1),a.Mc(" ",a.fc(2,2,"DIALOGS.ADD_HOST.INVALID_HOST"),"",t.hostsCtrl.getError("invalidHost").value," ")}}function m(t,e){if(1&t&&(a.Sb(0,"div",8),a.Sb(1,"mat-form-field"),a.Sb(2,"textarea",9),a.Jc(3," "),a.Rb(),a.Hc(4,g,3,3,"mat-error",10),a.Hc(5,b,3,4,"mat-error",10),a.Rb(),a.Sb(6,"div",11),a.Jc(7),a.ec(8,"translate"),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.kc("formControl",t.hostsCtrl),a.Ab(2),a.kc("ngIf",t.hostsCtrl.hasError("required")),a.Ab(1),a.kc("ngIf",t.hostsCtrl.hasError("invalidHost")),a.Ab(2),a.Kc(a.fc(8,4,"DIALOGS.ADD_HOST.HINT"))}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,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}$")}ngOnInit(){this.theme=this.data.theme,this.facilityName=this.data.facilityName,this.hostsCtrl=new r.g("",[r.F.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const t=this.hostsCtrl.value.split("\n");let e=[];for(const i of t)e=e.concat(this.parseHostName(i));this.facilitiesManager.addHosts(this.data.facilityId,e).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 t=>{let e=[];const i=t.value.split("\n");for(const n of i)e=e.concat(this.parseHostName(n));console.log(i);for(const n of e)if(!this.hostPattern.test(n))return{invalidHost:{value:n}};return null}}parseHostName(t){const e=new RegExp("[[0-9]+-[0-9]+]","g"),i=t.split(e),n=t.match(e);if(null==n)return""===t?[]:[t];let s=[];for(let o=0;o{class t{constructor(t){this.translate=t,this.returnData=""}transform(t,e){switch(t){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=t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.e))},t.\u0275pipe=n.Lb({name:"applicationState",type:t,pure:!1}),t})()},e4iD:function(t,e,i){"use strict";i.d(e,"a",(function(){return z})),i.d(e,"b",(function(){return M})),i.d(e,"c",(function(){return C})),i.d(e,"d",(function(){return B})),i.d(e,"e",(function(){return L})),i.d(e,"f",(function(){return v}));var n=i("2kYt"),s=i("EM62");class o extends n.K{constructor(){super()}supportsDOMEvents(){return!0}}class r extends o{static makeCurrent(){Object(n.O)(new r)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(i=e,a||(a=document.createElement("a")),a.setAttribute("href",i),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var i}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(n.N)(document.cookie,t)}}let a,c=null;const l=new s.r("TRANSITION_ID"),u=[{provide:s.d,useFactory:function(t,e,i){return()=>{i.get(s.e).donePromise.then(()=>{const i=Object(n.M)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[l,n.e,s.s],multi:!0}];class h{static init(){Object(s.Y)(new h)}addToWindow(t){s.pb.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.pb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.pb.getAllAngularRootElements=()=>t.getAllRootElements(),s.pb.frameworkStabilizers||(s.pb.frameworkStabilizers=[]),s.pb.frameworkStabilizers.push(t=>{const e=s.pb.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach((function(t){t.whenStable(o)}))})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?Object(n.M)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.r("EventManagerPlugins");let p=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(n.M)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.e))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const m={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/"},A=/%COMP%/g;function y(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let v=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new _(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.R.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case s.R.Native:case s.R.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(p),s.Wb(b),s.Wb(s.c))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();class _{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(m[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=m[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=m[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&s.H.DashCase?t.style.setProperty(e,i,n&s.H.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.H.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,w(i)):this.eventManager.addEventListener(t,e,w(i))}}class S extends _{constructor(t,e,i,n){super(t),this.component=i;const s=y(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(A,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(A,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class E extends _{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.component=n,this.shadowRoot=n.encapsulation===s.R.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const o=y(n.id,n.styles,[]);for(let s=0;s{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.e))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const i in this.overrides)e.get(i).set(this.overrides[i]);return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],k={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},I={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},O={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let D=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(n.M)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(T.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&I.hasOwnProperty(e)&&(e=I[e]))}return k[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),T.forEach(n=>{n!=i&&(0,O[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.e))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return Object(s.Wb)(x)},token:t,providedIn:"root"}),t})();function P(t){return new x(t.get(n.e))}let x=(()=>{class t extends M{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.J.NONE:return e;case s.J.HTML:return Object(s.eb)(e,"HTML")?Object(s.wb)(e):Object(s.cb)(this._doc,String(e));case s.J.STYLE:return Object(s.eb)(e,"Style")?Object(s.wb)(e):e;case s.J.SCRIPT:if(Object(s.eb)(e,"Script"))return Object(s.wb)(e);throw new Error("unsafe value used in a script context");case s.J.URL:return Object(s.ob)(e),Object(s.eb)(e,"URL")?Object(s.wb)(e):Object(s.db)(String(e));case s.J.RESOURCE_URL:if(Object(s.eb)(e,"ResourceURL"))return Object(s.wb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(s.fb)(t)}bypassSecurityTrustStyle(t){return Object(s.ib)(t)}bypassSecurityTrustScript(t){return Object(s.hb)(t)}bypassSecurityTrustUrl(t){return Object(s.jb)(t)}bypassSecurityTrustResourceUrl(t){return Object(s.gb)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.e))},t.\u0275prov=Object(s.Ib)({factory:function(){return P(Object(s.Wb)(s.p))},token:t,providedIn:"root"}),t})();const N=[{provide:s.C,useValue:n.L},{provide:s.D,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.e,useFactory:function(){return Object(s.ub)(document),document},deps:[]}],L=Object(s.S)(s.X,"browser",N),F=[[],{provide:s.ab,useValue:"root"},{provide:s.n,useFactory:function(){return new s.n},deps:[]},{provide:d,useClass:R,multi:!0,deps:[n.e,s.A,s.C]},{provide:d,useClass:D,multi:!0,deps:[n.e]},[],{provide:v,useClass:v,deps:[p,b,s.c]},{provide:s.G,useExisting:v},{provide:g,useExisting:b},{provide:b,useClass:b,deps:[n.e]},{provide:s.N,useClass:s.N,deps:[s.A]},{provide:p,useClass:p,deps:[d,s.A]},[]];let z=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.c,useValue:e.appId},{provide:l,useExisting:s.c},u]}}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.Wb(t,12))},providers:F,imports:[n.c,s.f]}),t})();function H(){return new B(Object(s.Wb)(n.e))}let B=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.e))},t.\u0275prov=Object(s.Ib)({factory:H,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},eXxK:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),s=i("LAw4"),o=i("s2Ay");let r=(()=>{class t{constructor(){this.resourceSelected=new n.o,this.nameFunction=t=>t.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resources:"resources"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.resourceSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.resources)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",n.fc(1,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",n.fc(2,8,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",n.fc(3,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[s.a],pipes:[o.d],styles:[""]}),t})()},"eY+9":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},eakH:function(t,e,i){"use strict";i.d(e,"a",(function(){return F}));var n=i("EM62"),s=i("iAde"),o=i("cePI"),r=i("FlRo"),a=i("cqs0"),c=i("hilf"),l=i("8clQ"),u=i("Ssnw"),h=i("OZ4H"),d=i("9wx0"),p=i("2kYt"),f=i("+Tre"),g=i("FcRk"),b=i("s2Ay"),m=i("XhvO"),A=i("kdIE");function y(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",20),n.Sb(1,"mat-checkbox",21),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function w(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",22),n.Sb(1,"mat-checkbox",23),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function v(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")))}function _(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function S(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")))}function E(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.friendlyName)}}function R(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")))}function C(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.entity)}}function T(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")))}function k(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"nameSpaceToDef"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.namespace))}}function I(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")))}function O(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"attributeTypeClean"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.type))}}function D(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")))}function M(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.unique)}}function P(t,e){1&t&&n.Nb(0,"tr",26)}function x(t,e){if(1&t){const t=n.Tb();n.Sb(0,"tr",27),n.Zb("click",(function(){n.xc(t);const i=e.$implicit;return n.dc().onRowClick(i)})),n.Rb()}if(2&t){const t=n.dc();n.Eb("cursor-pointer",!t.disableRouting)}}function N(t,e){1&t&&(n.Sb(0,"app-alert",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function L(t,e){1&t&&(n.Sb(0,"app-alert",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let F=(()=>{class t{constructor(t,e,i){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.selection=new a.c(!0,[]),this.hideColumns=[],this.pageSize=10,this.disableRouting=!1,this.refreshEvent=new n.o,this.page=new n.o,this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.pageSizeOptions=l.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.o(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"entity":return t.entity;case"namespace":if(t.namespace){const e=t.namespace;return e.substring(e.lastIndexOf(":")+1,e.length)}return"";case"type":if(t.type){const e=t.type;return e.substring(e.lastIndexOf(".")+1,e.length)}return"";case"unique":return t.unique?"true":"false";default:return""}}exportData(t){Object(l.i)(Object(l.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>Object(l.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(l.g)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(t){if(!this.disableRouting){const e=Object(l.o)();e.width="700px",e.data={attDef:t},this.dialog.open(c.a,e).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refreshEvent.emit())})}}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(h.b),n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-attr-def-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{definitions:"definitions",selection:"selection",hideColumns:"hideColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{refreshEvent:"refreshEvent",page:"page"},features:[n.yb],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,y,2,3,"th",6),n.Hc(7,w,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,v,3,3,"th",9),n.Hc(10,_,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,S,3,3,"th",9),n.Hc(13,E,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,R,3,3,"th",9),n.Hc(16,C,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,T,3,3,"th",9),n.Hc(19,k,3,3,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,I,3,3,"th",9),n.Hc(22,O,3,3,"td",11),n.Pb(),n.Qb(23,15),n.Hc(24,D,3,3,"th",9),n.Hc(25,M,2,1,"td",11),n.Pb(),n.Hc(26,P,1,0,"tr",16),n.Hc(27,x,1,2,"tr",17),n.Rb(),n.Rb(),n.Sb(28,"mat-paginator",18),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(29,N,3,3,"app-alert",19),n.Hc(30,L,3,3,"app-alert",19)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.definitions.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(22),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.definitions.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.definitions.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.definitions.length))},directives:[d.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,s.a,p.t,r.h,f.a,r.a,o.b,r.j,r.l,g.a],pipes:[b.d,m.a,A.a],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},etrl:function(t,e,i){var n,s;void 0===(s="function"==typeof(n=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(c.href)}),4e4),setTimeout((function(){n(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){n(r)}))}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?n.apply(e,[]):n)||(t.exports=s)},f3iV:function(t,e,i){"use strict";i.d(e,"a",(function(){return h})),i.d(e,"b",(function(){return d}));var n=i("EM62"),s=i("mFH5"),o=i("sg/T"),r=i("5XID"),a=i("5lCh");let c=0;class l{}const u=Object(s.A)(l);let h=(()=>{class t extends u{constructor(t,e,i,s,o){if(super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=s,this._animationMode=o,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++,Object(n.W)()){const t=e.nativeElement;if(t.nodeType!==t.ELEMENT_NODE)throw Error("matBadge must be attached to an element node.")}}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=Object(r.c)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=Object(r.c)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&(""+t).trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this.content:this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add("mat-badge-content"),t.textContent=this.content,"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-badge-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-badge-"+t))}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.A),n.Mb(n.l),n.Mb(o.c),n.Mb(n.F),n.Mb(a.a,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&n.Eb("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[n.xb,n.yb]}),t})(),d=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[o.a,s.i],s.i]}),t})()},"f7+R":function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return m})),i.d(e,"e",(function(){return a})),i.d(e,"f",(function(){return f})),i.d(e,"g",(function(){return c})),i.d(e,"h",(function(){return d})),i.d(e,"i",(function(){return g})),i.d(e,"j",(function(){return l})),i.d(e,"k",(function(){return h})),i.d(e,"l",(function(){return u})),i.d(e,"m",(function(){return p})),i.d(e,"n",(function(){return r})),i.d(e,"o",(function(){return A})),i.d(e,"p",(function(){return y}));class n{}class s{}const o="*";function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:3,steps:t,options:e}}function l(t,e=null){return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function f(t=null){return{type:9,options:t}}function g(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function b(t){Promise.resolve(null).then(t)}class m{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){b(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class A{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?b(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},"f8+N":function(t,e,i){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,i,s){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(s){var o=encodeURIComponent(n(s))+i;return Array.isArray(t[s])?t[s].map((function(t){return o+encodeURIComponent(n(t))})).join(e):o+encodeURIComponent(n(t[s]))})).join(e):s?encodeURIComponent(n(s))+i+encodeURIComponent(n(t)):""}},fAiE:function(t,e,i){"use strict";i.d(e,"a",(function(){return y})),i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return v})),i.d(e,"d",(function(){return b})),i.d(e,"e",(function(){return g})),i.d(e,"f",(function(){return u})),i.d(e,"g",(function(){return o})),i.d(e,"h",(function(){return r})),i.d(e,"i",(function(){return h})),i.d(e,"j",(function(){return d})),i.d(e,"k",(function(){return A})),i.d(e,"l",(function(){return l})),i.d(e,"m",(function(){return c})),i.d(e,"n",(function(){return f})),i.d(e,"o",(function(){return a})),i.d(e,"p",(function(){return s})),i.d(e,"q",(function(){return p})),i.d(e,"r",(function(){return w})),i.d(e,"s",(function(){return m})),i.d(e,"t",(function(){return _}));const n=8,s=9,o=13,r=27,a=32,c=33,l=34,u=35,h=36,d=37,p=38,f=39,g=40,b=46,m=48,A=57,y=65,w=90,v=188;function _(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},fbWu:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("VxHp"),s=i("5uGe");function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.a}},g3Wv:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),s=i("s2Ay");let o=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t,...e){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").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"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").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;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.e))},t.\u0275pipe=n.Lb({name:"applicationFormItemType",type:t,pure:!0}),t})()},g6G6:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("IdLP"),s=i("gBlb"),o=i("3lSR"),r=i("ckkg");function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return Object(s.a)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.a?t[0]:Object(o.a)(e)(Object(r.a)(t,i))}},gBlb:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,"a",(function(){return n}))},gcUQ:function(t,e,i){"use strict";i.d(e,"a",(function(){return X})),i.d(e,"b",(function(){return K})),i.d(e,"c",(function(){return $})),i.d(e,"d",(function(){return rt})),i.d(e,"e",(function(){return ot})),i.d(e,"f",(function(){return ut})),i.d(e,"g",(function(){return pt})),i.d(e,"h",(function(){return dt})),i.d(e,"i",(function(){return ht})),i.d(e,"j",(function(){return V})),i.d(e,"k",(function(){return q})),i.d(e,"l",(function(){return Y}));var n=i("sg/T"),s=i("HYj3"),o=i("Sv/w"),r=i("2kYt"),a=i("EM62"),c=i("PBFl"),l=i("OZ4H"),u=i("qvOF"),h=i("mFH5"),d=i("ZTXN"),p=i("bwdy"),f=i("g6G6"),g=i("ROBh"),b=i("fAiE"),m=i("J+dc"),A=i("jIqt"),y=i("xVbo"),w=i("5XID"),v=i("f7+R"),_=i("nIj0"),S=i("29Wa"),E=i("Cd2c"),R=i("E5oP");const C=["mat-calendar-body",""];function T(t,e){if(1&t&&(a.Sb(0,"tr",2),a.Sb(1,"td",3),a.Jc(2),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(1),a.Ec("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Bb("colspan",t.numCols),a.Ab(1),a.Lc(" ",t.label," ")}}function k(t,e){if(1&t&&(a.Sb(0,"td",7),a.Jc(1),a.Rb()),2&t){const t=a.dc(2);a.Ec("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Bb("colspan",t._firstRowOffset),a.Ab(1),a.Lc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function I(t,e){if(1&t){const t=a.Tb();a.Sb(0,"td",8),a.Zb("click",(function(){a.xc(t);const i=e.$implicit;return a.dc(2)._cellClicked(i)})),a.Sb(1,"div",9),a.Jc(2),a.Rb(),a.Rb()}if(2&t){const t=e.$implicit,i=e.index,n=a.dc().index,s=a.dc();a.Ec("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),a.Eb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i)),a.kc("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),a.Bb("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s.selectedValue===t.value),a.Ab(1),a.Eb("mat-calendar-body-selected",s.selectedValue===t.value)("mat-calendar-body-today",s.todayValue===t.value),a.Ab(1),a.Lc(" ",t.displayValue," ")}}function O(t,e){if(1&t&&(a.Sb(0,"tr",4),a.Hc(1,k,2,6,"td",5),a.Hc(2,I,3,20,"td",6),a.Rb()),2&t){const t=e.$implicit,i=e.index,n=a.dc();a.Ab(1),a.kc("ngIf",0===i&&n._firstRowOffset),a.Ab(1),a.kc("ngForOf",t)}}function D(t,e){if(1&t&&(a.Sb(0,"th",5),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Bb("aria-label",t.long),a.Ab(1),a.Kc(t.narrow)}}const M=["*"];function P(t,e){}function x(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-month-view",5),a.Zb("activeDateChange",(function(e){return a.xc(t),a.dc().activeDate=e}))("selectedChange",(function(e){return a.xc(t),a.dc()._dateSelected(e)}))("_userSelection",(function(){return a.xc(t),a.dc()._userSelected()})),a.Rb()}if(2&t){const t=a.dc();a.kc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function N(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-year-view",6),a.Zb("activeDateChange",(function(e){return a.xc(t),a.dc().activeDate=e}))("monthSelected",(function(e){return a.xc(t),a.dc()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return a.xc(t),a.dc()._goToDateInView(e,"month")})),a.Rb()}if(2&t){const t=a.dc();a.kc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}function L(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-multi-year-view",7),a.Zb("activeDateChange",(function(e){return a.xc(t),a.dc().activeDate=e}))("yearSelected",(function(e){return a.xc(t),a.dc()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return a.xc(t),a.dc()._goToDateInView(e,"year")})),a.Rb()}if(2&t){const t=a.dc();a.kc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}const F=["button"];function z(t,e){1&t&&(a.cc(),a.Sb(0,"svg",3),a.Nb(1,"path",4),a.Rb())}const H=[[["","matDatepickerToggleIcon",""]]],B=["[matDatepickerToggleIcon]"];function j(t){return Error(`MatDatepicker: No provider found for ${t}. You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.`)}let G=(()=>{class t{constructor(){this.changes=new d.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class U{constructor(t,e,i,n,s={}){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s}}let K=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new a.o}_cellClicked(t){t.enabled&&this.selectedValueChange.emit(t.value)}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Object(m.a)(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()})})}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.A))},t.\u0275cmp=a.Gb({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[a.yb],attrs:C,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell mat-focus-indicator",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell","mat-focus-indicator",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(t,e){1&t&&(a.Hc(0,T,3,6,"tr",0),a.Hc(1,O,3,2,"tr",1)),2&t&&(a.kc("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"],encapsulation:2,changeDetection:0}),t})(),V=(()=>{class t{constructor(t,e,i,n){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this._userSelection=new a.o,this.activeDateChange=new a.o,!this._dateAdapter)throw j("DateAdapter");if(!this._dateFormats)throw j("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(A.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){if(this._selectedDate!=t){const e=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.createDate(e,i,t);this.selectedChange.emit(n)}this._userSelection.emit()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case b.j:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case b.n:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case b.q:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case b.e:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case b.i:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case b.f:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case b.m:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case b.l:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case b.g:case b.o:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.h),a.Mb(h.e,8),a.Mb(h.c,8),a.Mb(R.c,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var i;1&t&&a.Qc(K,!0),2&t&&a.sc(i=a.ac())&&(e._matCalendarBody=i.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.Sb(0,"table",0),a.Sb(1,"thead",1),a.Sb(2,"tr"),a.Hc(3,D,2,2,"th",2),a.Rb(),a.Sb(4,"tr"),a.Nb(5,"th",3),a.Rb(),a.Rb(),a.Sb(6,"tbody",4),a.Zb("selectedValueChange",(function(t){return e._dateSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),a.Rb(),a.Rb()),2&t&&(a.Ab(3),a.kc("ngForOf",e._weekdays),a.Ab(3),a.kc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("selectedValue",e._selectedDate)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[r.s,K],encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t{constructor(t,e,i){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this.yearSelected=new a.o,this.activeDateChange=new a.o,!this._dateAdapter)throw j("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),J(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(A.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-W(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let e=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case b.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case b.n:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case b.q:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case b.e:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case b.i:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-W(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case b.f:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-W(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case b.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case b.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case b.g:case b.o:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return W(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){let e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new U(t,e,e,this._shouldEnableYear(t))}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this.monthSelected=new a.o,this.activeDateChange=new a.o,!this._dateAdapter)throw j("DateAdapter");if(!this._dateFormats)throw j("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(A.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(e);const i=this._dateAdapter.getNumDaysInMonth(e);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case b.j:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case b.n:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case b.q:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case b.e:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case b.i:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case b.f:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case b.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case b.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case b.g:case b.o:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){let i=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new U(t,e.toLocaleUpperCase(),i,this._shouldEnableMonth(t))}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-W(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):J(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(G),a.Mb(Object(a.U)(()=>X)),a.Mb(h.c,8),a.Mb(h.e,8),a.Mb(a.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:M,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(a.jc(),a.Sb(0,"div",0),a.Sb(1,"div",1),a.Sb(2,"button",2),a.Zb("click",(function(){return e.currentPeriodClicked()})),a.Jc(3),a.Nb(4,"div",3),a.Rb(),a.Nb(5,"div",4),a.ic(6),a.Sb(7,"button",5),a.Zb("click",(function(){return e.previousClicked()})),a.Rb(),a.Sb(8,"button",6),a.Zb("click",(function(){return e.nextClicked()})),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(2),a.Bb("aria-label",e.periodButtonLabel),a.Ab(1),a.Lc(" ",e.periodButtonText," "),a.Ab(1),a.Eb("mat-calendar-invert","month"!=e.calendar.currentView),a.Ab(3),a.kc("disabled",!e.previousEnabled()),a.Bb("aria-label",e.prevButtonLabel),a.Ab(1),a.kc("disabled",!e.nextEnabled()),a.Bb("aria-label",e.nextButtonLabel))},directives:[c.b,n.d],encapsulation:2,changeDetection:0}),t})(),X=(()=>{class t{constructor(t,e,i,n){if(this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.o,this.yearSelected=new a.o,this.monthSelected=new a.o,this._userSelection=new a.o,this.stateChanges=new d.a,!this._dateAdapter)throw j("DateAdapter");if(!this._dateFormats)throw j("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new o.d(this.headerComponent||$),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){t&&!this._dateAdapter.sameDate(t,this.selected)&&this.selectedChange.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_userSelected(){this._userSelection.emit()}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(G),a.Mb(h.c,8),a.Mb(h.e,8),a.Mb(a.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){var i;1&t&&(a.Qc(V,!0),a.Qc(Y,!0),a.Qc(q,!0)),2&t&&(a.sc(i=a.ac())&&(e.monthView=i.first),a.sc(i=a.ac())&&(e.yearView=i.first),a.sc(i=a.ac())&&(e.multiYearView=i.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a.yb],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(a.Hc(0,P,0,0,"ng-template",0),a.Sb(1,"div",1),a.Hc(2,x,1,6,"mat-month-view",2),a.Hc(3,N,1,5,"mat-year-view",3),a.Hc(4,L,1,5,"mat-multi-year-view",4),a.Rb()),2&t&&(a.kc("cdkPortalOutlet",e._calendarHeaderPortal),a.Ab(1),a.kc("ngSwitch",e.currentView),a.Ab(1),a.kc("ngSwitchCase","month"),a.Ab(1),a.kc("ngSwitchCase","year"),a.Ab(1),a.kc("ngSwitchCase","multi-year"))},directives:[o.c,n.e,r.x,r.y,V,Y,q],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const Q={transformPanel:Object(v.n)("transformPanel",[Object(v.k)("void",Object(v.l)({opacity:0,transform:"scale(1, 0.8)"})),Object(v.m)("void => enter",Object(v.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(v.l)({opacity:1,transform:"scale(1, 1)"}))),Object(v.m)("* => void",Object(v.e)("100ms linear",Object(v.l)({opacity:0})))]),fadeInCalendar:Object(v.n)("fadeInCalendar",[Object(v.k)("void",Object(v.l)({opacity:0})),Object(v.k)("enter",Object(v.l)({opacity:1})),Object(v.m)("void => *",Object(v.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let tt=0;const et=new a.r("mat-datepicker-scroll-strategy"),it={provide:et,deps:[s.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class nt{constructor(t){this._elementRef=t}}const st=Object(h.y)(nt);let ot=(()=>{class t extends st{constructor(t,e){super(t),this._changeDetectorRef=e,this._animationState="enter",this._animationDone=new d.a}ngAfterViewInit(){this._calendar.focusActiveCell()}ngOnDestroy(){this._animationDone.complete()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var i;1&t&&a.Qc(X,!0),2&t&&a.sc(i=a.ac())&&(e._calendar=i.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.Fc("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(a.Gc("@transformPanel",e._animationState),a.Eb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.xb],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(a.Sb(0,"mat-calendar",0),a.Zb("selectedChange",(function(t){return e.datepicker.select(t)}))("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(){return e.datepicker.close()})),a.Rb()),2&t&&a.kc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._minDate)("maxDate",e.datepicker._maxDate)("dateFilter",e.datepicker._dateFilter)("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e.datepicker._selected)("dateClass",e.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[X,n.f,r.q],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[Q.transformPanel,Q.fadeInCalendar]},changeDetection:0}),t})(),rt=(()=>{class t{constructor(t,e,i,n,s,o,r,c){if(this._dialog=t,this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=o,this._dir=r,this._document=c,this.startView="month",this._touchUi=!1,this.yearSelected=new a.o,this.monthSelected=new a.o,this.openedStream=new a.o,this.closedStream=new a.o,this._opened=!1,this.id="mat-datepicker-"+tt++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=p.a.EMPTY,this._disabledChange=new d.a,this._selectedChanged=new d.a,!this._dateAdapter)throw j("DateAdapter");this._scrollStrategy=s}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=Object(w.c)(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=Object(w.c)(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))}get opened(){return this._opened}set opened(t){t?this.open():this.close()}get _selected(){return this._validSelected}set _selected(t){this._validSelected=t}get _minDate(){return this._datepickerInput&&this._datepickerInput.min}get _maxDate(){return this._datepickerInput&&this._datepickerInput.max}get _dateFilter(){return this._datepickerInput&&this._datepickerInput._dateFilter}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete()}select(t){let e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this._selectedChanged.next(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_registerInput(t){if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe(t=>this._selected=t)}open(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Object(m.a)(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(ot,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._dialogRef.componentInstance.color=this.color}_openAsPopup(){const t=new o.d(ot,this._viewContainerRef);this._destroyPopup(),this._createPopup();const e=this._popupComponentRef=this._popupRef.attach(t);e.instance.datepicker=this,e.instance.color=this.color,this._ngZone.onStable.asObservable().pipe(Object(m.a)(1)).subscribe(()=>{this._popupRef.updatePosition()})}_createPopup(){const t=new s.d({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(t),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(f.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(y.a)(t=>t.keyCode===b.h||this._datepickerInput&&t.altKey&&t.keyCode===b.q))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(l.b),a.Mb(s.c),a.Mb(a.A),a.Mb(a.Q),a.Mb(et),a.Mb(h.c,8),a.Mb(R.c,8),a.Mb(r.e,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const at={provide:_.p,useExisting:Object(a.U)(()=>ut),multi:!0},ct={provide:_.o,useExisting:Object(a.U)(()=>ut),multi:!0};class lt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let ut=(()=>{class t{constructor(t,e,i,n){if(this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this._formField=n,this.dateChange=new a.o,this.dateInput=new a.o,this._valueChange=new a.o,this._disabledChange=new a.o,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=p.a.EMPTY,this._localeSubscription=p.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!this.min||!e||this._dateAdapter.compareDate(this.min,e)<=0?null:{matDatepickerMin:{min:this.min,actual:e}}},this._maxValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!this.max||!e||this._dateAdapter.compareDate(this.max,e)>=0?null:{matDatepickerMax:{max:this.max,actual:e}}},this._filterValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return this._dateFilter&&e&&!this._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=_.F.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw j("DateAdapter");if(!this._dateFormats)throw j("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe(()=>{this.value=this.value})}set matDatepicker(t){t&&(this._datepicker=t,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(t=>{this.value=t,this._cvaOnChange(t),this._onTouched(),this.dateInput.emit(new lt(this,this._elementRef.nativeElement)),this.dateChange.emit(new lt(this,this._elementRef.nativeElement))}))}set matDatepickerFilter(t){this._dateFilter=t,this._validatorOnChange()}get value(){return this._value}set value(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);const e=this.value;this._value=t,this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}get min(){return this._min}set min(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get max(){return this._max}set max(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(t){const e=Object(w.c)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&this._isInitialized&&i.blur&&i.blur()}ngAfterViewInit(){this._isInitialized=!0}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(t){this.value=t}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){this._datepicker&&t.altKey&&t.keyCode===b.e&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!i||this._dateAdapter.isValid(i),i=this._getValidDateOrNull(i),this._dateAdapter.sameDate(i,this._value)?e!==this._lastValueValid&&this._validatorOnChange():(this._value=i,this._cvaOnChange(i),this._valueChange.emit(i),this.dateInput.emit(new lt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new lt(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(h.c,8),a.Mb(h.e,8),a.Mb(S.a,8))},t.\u0275dir=a.Hb({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&a.Zb("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(a.Vb("disabled",e.disabled),a.Bb("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{value:"value",matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[a.zb([at,ct,{provide:E.a,useExisting:t}])]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),dt=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=p.a.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=Object(w.c)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker._disabledChange:Object(g.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Object(g.a)(),i=this.datepicker?Object(f.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(g.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(f.a)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(G),a.Mb(a.h),a.Xb("tabindex"))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){var n;1&t&&a.Fb(i,ht,!0),2&t&&a.sc(n=a.ac())&&(e._customIcon=n.first)},viewQuery:function(t,e){var i;1&t&&a.Qc(F,!0),2&t&&a.sc(i=a.ac())&&(e._button=i.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&a.Zb("focus",(function(){return e._button.focus()})),2&t&&(a.Bb("tabindex",e.disabled?null:-1),a.Eb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.yb],ngContentSelectors:B,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(a.jc(H),a.Sb(0,"button",0,1),a.Zb("click",(function(t){return e._open(t)})),a.Hc(2,z,2,0,"svg",2),a.ic(3),a.Rb()),2&t&&(a.kc("disabled",e.disabled)("disableRipple",e.disableRipple),a.Bb("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.Ab(2),a.kc("ngIf",!e._customIcon))},directives:[c.b,r.t],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),pt=(()=>{class t{}return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},providers:[G,it],imports:[[r.c,c.c,l.h,s.f,n.a,o.i],u.c]}),t})()},gcZR:function(t,e,i){"use strict";i.d(e,"a",(function(){return z}));var n=i("EM62"),s=i("cePI"),o=i("FlRo"),r=i("cqs0"),a=i("iAde"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("bFHC"),f=i("Y2X+"),g=i("sEIs"),b=i("TQS+"),m=i("FcRk"),A=i("s2Ay");function y(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function w(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",21),n.Sb(1,"mat-checkbox",22),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function v(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function _(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function S(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function E(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.name)}}function R(t,e){1&t&&n.Nb(0,"th",19)}function C(t,e){1&t&&(n.Sb(0,"mat-icon",26),n.ec(1,"translate"),n.Jc(2," check_circle_outline "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function T(t,e){1&t&&(n.Sb(0,"mat-icon",26),n.ec(1,"translate"),n.Jc(2," block "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function k(t,e){if(1&t&&(n.Sb(0,"td",24),n.Hc(1,C,3,3,"mat-icon",25),n.Hc(2,T,3,3,"mat-icon",25),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",t.enabled),n.Ab(1),n.kc("ngIf",!t.enabled)}}function I(t,e){1&t&&(n.Sb(0,"th",19),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function O(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.script)}}function D(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function M(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.description)}}function P(t,e){1&t&&n.Nb(0,"tr",27)}const x=function(t){return["/admin/services",t]};function N(t,e){if(1&t&&n.Nb(0,"tr",28),2&t){const t=e.$implicit,i=n.dc();n.Eb("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),n.kc("routerLink",i.disableRouting?null:n.pc(6,x,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.pc(8,x,t.id))}}function L(t,e){1&t&&(n.Sb(0,"app-alert",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function F(t,e){1&t&&(n.Sb(0,"app-alert",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let z=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.services=[],this.filterValue="",this.pageSize=10,this.hideColumns=[],this.selection=new r.c(!0,[]),this.disableRouting=!1,this.page=new n.o,this.displayedColumns=["select","id","name","enabled","script","description"],this.pageSizeOptions=c.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new o.o(this.services),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"enabled":return t.enabled?"true":"false";case"script":return t.script;case"description":return t.description;default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-services-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(s.a,!0),n.Dc(a.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",hideColumns:"hideColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.yb],decls:28,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"overflow-auto"],[3,"exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"routerLink","perunWebAppsMiddleClickRouterLink","cursor-pointer","disable-outline",4,"matRowDef","matRowDefColumns"],[3,"pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"div",2),n.Sb(3,"perun-web-apps-table-options",3),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,y,2,3,"th",6),n.Hc(7,w,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,v,3,3,"th",9),n.Hc(10,_,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,S,3,3,"th",9),n.Hc(13,E,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,R,1,0,"th",6),n.Hc(16,k,3,2,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,I,3,3,"th",6),n.Hc(19,O,2,1,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,D,3,3,"th",9),n.Hc(22,M,2,1,"td",11),n.Pb(),n.Hc(23,P,1,0,"tr",15),n.Hc(24,N,1,10,"tr",16),n.Rb(),n.Sb(25,"mat-paginator",17),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Rb(),n.Hc(26,L,3,3,"app-alert",18),n.Hc(27,F,3,3,"app-alert",18)),2&t&&(n.kc("hidden",void 0===e.services||0===e.services.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(19),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&void 0!==e.services&&0!==e.services.length),n.Ab(1),n.kc("ngIf",void 0===e.services||0===e.services.length))},directives:[u.a,o.n,s.a,o.c,o.i,o.b,o.k,o.m,a.a,h.t,o.h,d.a,o.a,s.b,p.a,f.a,o.j,o.l,g.g,b.c,m.a],pipes:[A.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},gdiH:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("EM62"),s=i("cqs0"),o=i("iAde"),r=i("cePI"),a=i("FlRo"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("sEIs"),f=i("TQS+"),g=i("FcRk"),b=i("s2Ay");function m(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",16),n.Sb(1,"mat-checkbox",17),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function A(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",18),n.Sb(1,"mat-checkbox",19),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function y(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")))}function w(t,e){if(1&t&&(n.Sb(0,"td",18),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function v(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")))}function _(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.hostname)}}function S(t,e){1&t&&n.Nb(0,"tr",22)}const E=function(t,e){return["/facilities",t,"hosts",e]};function R(t,e){if(1&t&&n.Nb(0,"tr",23),2&t){const t=e.$implicit,i=n.dc();n.kc("routerLink",i.disableRouting?null:n.qc(2,E,i.facilityId,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.qc(5,E,i.facilityId,t.id))}}function C(t,e){1&t&&(n.Sb(0,"app-alert",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function T(t,e){1&t&&(n.Sb(0,"app-alert",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let k=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.hosts=[],this.selection=new s.c(!0,[]),this.pageSize=10,this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.page=new n.o,this.pageSizeOptions=c.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new a.o(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.hostname;default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-hosts-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Dc(o.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["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(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,m,2,3,"th",6),n.Hc(7,A,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,y,3,3,"th",9),n.Hc(10,w,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,v,3,3,"th",9),n.Hc(13,_,2,1,"td",11),n.Pb(),n.Hc(14,S,1,0,"tr",12),n.Hc(15,R,1,8,"tr",13),n.Rb(),n.Rb(),n.Sb(16,"mat-paginator",14),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(17,C,3,3,"app-alert",15),n.Hc(18,T,3,3,"app-alert",15)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.hosts.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(10),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.hosts.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.hosts.length),n.Ab(1),n.kc("ngIf",0===e.hosts.length))},directives:[u.a,a.n,r.a,a.c,a.i,a.b,a.k,a.m,o.a,h.t,a.h,d.a,a.a,r.b,a.j,a.l,p.g,f.c,g.a],pipes:[b.d],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},got8:function(t,e,i){"use strict";i.d(e,"a",(function(){return C}));var n=i("cqs0"),s=i("X2Q7"),o=i("iyZ4"),r=i("h6su"),a=i("Gtvd"),c=i("8clQ"),l=i("Ssnw"),u=(i("HHEo"),i("EM62")),h=i("sEIs"),d=i("OZ4H"),p=i("0XDM"),f=i("2kYt"),g=i("Y2X+"),b=i("PBFl"),m=i("A8Ay"),A=i("csyo"),y=i("23RZ"),w=i("s2Ay");const v=["list"];function _(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",8),u.Zb("click",(function(){return u.xc(t),u.dc().addResource()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function S(t,e){1&t&&u.Nb(0,"mat-spinner",9)}const E=function(){return["select","id","name","facility","tags","description"]};function R(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-resources-list",10,11),u.Zb("page",(function(e){return u.xc(t),u.dc().pageChanged(e)})),u.Rb()}if(2&t){const t=u.dc();u.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routingAuth)("selection",t.selected)("groupToResource",t.group)("displayedColumns",u.oc(8,E))}}let C=(()=>{class t{constructor(t,e,i,s,r,a){this.resourcesManager=t,this.groupService=e,this.tableConfigService=i,this.route=s,this.dialog=r,this.guiAuthResolver=a,this.resources=null,this.selected=new n.c(!0,[]),this.filterValue="",this.tableId=o.J,this.addAuth=!1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.voId=t.voId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,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.getAssignedRichResourcesWithGroup(this.group.id).subscribe(t=>{this.resources=t,this.selected.clear(),this.setAuthorization(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}addResource(){const t=Object(c.o)();t.width="1000px",t.data={theme:"group-theme",group:this.group,voId:this.voId,unwantedResources:this.resources.map(t=>t.id)},this.dialog.open(r.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeResource(){const t=Object(c.o)();t.width="450px",t.data={theme:"group-theme",resources:this.selected.selected,groupId:this.groupId},this.dialog.open(a.a,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(u.Mb(s.m),u.Mb(s.h),u.Mb(o.pb),u.Mb(h.a),u.Mb(d.b),u.Mb(l.h))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){var i;1&t&&u.Qc(v,!0),2&t&&u.sc(i=u.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&u.Eb("router-component",!0)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","displayedColumns","page"],["list",""]],template:function(t,e){1&t&&(u.Sb(0,"div"),u.Sb(1,"h1",0),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Sb(4,"perun-web-apps-refresh-button",1),u.Zb("refresh",(function(){return e.refreshTable()})),u.Rb(),u.Hc(5,_,3,3,"button",2),u.Sb(6,"span",3),u.ec(7,"translate"),u.Sb(8,"button",4),u.Zb("click",(function(){return e.removeResource()})),u.Jc(9),u.ec(10,"translate"),u.Rb(),u.Rb(),u.Sb(11,"perun-web-apps-immediate-filter",5),u.Zb("filter",(function(t){return e.applyFilter(t)})),u.Rb(),u.Hc(12,S,1,0,"mat-spinner",6),u.Hc(13,R,2,9,"perun-web-apps-resources-list",7),u.Rb()),2&t&&(u.Ab(2),u.Kc(u.fc(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),u.Ab(3),u.kc("ngIf",e.addAuth),u.Ab(1),u.lc("matTooltip",u.fc(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),u.kc("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),u.Ab(2),u.kc("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),u.Ab(1),u.Lc(" ",u.fc(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),u.Ab(2),u.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.Ab(1),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",e.resources&&!e.loading))},directives:[p.a,f.t,g.a,b.b,m.a,A.c,y.a],pipes:[w.d],styles:[""]}),t})()},gpj7:function(t,e,i){"use strict";i.d(e,"a",(function(){return C}));var n=i("X2Q7"),s=i("Ssnw"),o=i("+MEm"),r=i("8clQ"),a=i("EM62"),c=i("OZ4H"),l=i("s2Ay"),u=i("e4iD"),h=i("2kYt"),d=i("PBFl"),p=i("bFHC"),f=i("sEIs"),g=i("Y2X+"),b=i("f3iV"),m=i("Jb3d");function A(t,e){1&t&&(a.Sb(0,"div",15),a.Sb(1,"span",16),a.Jc(2," ~ \u{1f5f2}\xa0 "),a.Rb(),a.Sb(3,"span",17),a.Jc(4," DEVEL "),a.Rb(),a.Sb(5,"span",16),a.Jc(6," \xa0\u{1f5f2} ~ "),a.Rb(),a.Rb())}function y(t,e){if(1&t){const t=a.Tb();a.Sb(0,"button",18),a.Zb("click",(function(){return a.xc(t),a.dc().reloadRoles()})),a.Jc(1),a.ec(2,"translate"),a.Rb()}2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"NAV.RELOAD_ROLES")," "))}function w(t,e){if(1&t){const t=a.Tb();a.Sb(0,"button",18),a.Zb("click",(function(){return a.xc(t),a.dc().onLogOut()})),a.Jc(1),a.ec(2,"translate"),a.Rb()}2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"NAV.LOGOUT")))}const v=function(t){return{color:t}},_=function(){return["/"]},S=function(t){return{padding:t}},E=function(){return{height:"56px"}},R=function(){return["/myProfile"]};let C=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.storeService=t,this.authService=e,this.authzResolverService=i,this.dialog=n,this.notificator=s,this.translateService=o,this.store=r,this.sanitizer=a,this.notificationStorageService=c,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.logoPadding=this.storeService.get("logo_padding"),this.isDevel=!1}ngAfterViewInit(){}ngOnInit(){this.isDevel=this.storeService.get("isDevel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.get("logo")),this.logoutEnabled=this.storeService.get("log_out_enabled")}onLogOut(){this.authService.logout()}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const t=Object(r.o)();t.width="520px",this.dialog.open(o.a,t)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}reloadRoles(){this.authzResolverService.loadAuthorizationComponents().subscribe(()=>this.notificator.showSuccess(this.translateService.instant("NAV.RELOAD_ROLES_SUCCESS")))}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.m),a.Mb(s.d),a.Mb(n.d),a.Mb(c.b),a.Mb(s.l),a.Mb(l.e),a.Mb(s.m),a.Mb(u.b),a.Mb(s.k))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:25,vars:43,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],[3,"routerLink","ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],["logoContainer",""],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],["mat-button","",3,"matMenuTriggerFor"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click",4,"ngIf"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(a.Sb(0,"div",0),a.Sb(1,"button",1),a.Zb("click",(function(){return e.sideNav.toggle()})),a.Sb(2,"mat-icon",2),a.Jc(3," menu "),a.Rb(),a.Rb(),a.Sb(4,"a",3),a.Nb(5,"div",4,5),a.Rb(),a.Rb(),a.Hc(7,A,7,0,"div",6),a.Sb(8,"div",7),a.Sb(9,"button",8),a.Zb("click",(function(){return e.showNotificationHistory()})),a.ec(10,"translate"),a.Sb(11,"mat-icon",9),a.Jc(12),a.Rb(),a.Rb(),a.Sb(13,"button",10),a.Sb(14,"mat-icon",2),a.Jc(15," person "),a.Rb(),a.Sb(16,"span",11),a.Jc(17),a.Rb(),a.Rb(),a.Sb(18,"mat-menu",null,12),a.Sb(20,"button",13),a.Jc(21),a.ec(22,"translate"),a.Rb(),a.Hc(23,y,3,3,"button",14),a.Hc(24,w,3,3,"button",14),a.Rb(),a.Rb()),2&t){const t=a.tc(19);a.kc("ngStyle",a.pc(28,v,e.navTextColor)),a.Ab(2),a.kc("ngStyle",a.pc(30,v,e.iconColor)),a.Ab(2),a.kc("routerLink",a.oc(32,_))("ngStyle",a.pc(33,S,e.logoPadding)),a.Ab(1),a.kc("innerHTML",e.logo,a.yc)("ngStyle",a.oc(35,E)),a.Ab(2),a.kc("ngIf",e.isDevel),a.Ab(1),a.kc("ngStyle",a.pc(36,v,e.navTextColor)),a.Ab(1),a.kc("matTooltip",a.fc(10,24,"NAV.NOTIFICATIONS_TOOLTIP")),a.Ab(2),a.lc("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),a.kc("ngStyle",a.pc(38,v,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),a.Ab(1),a.Lc(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),a.Ab(1),a.kc("matMenuTriggerFor",t),a.Ab(1),a.kc("ngStyle",a.pc(40,v,e.iconColor)),a.Ab(3),a.Pc(" ",e.principal.user.titleBefore," ",e.principal.user.firstName," ",e.principal.user.middleName," ",e.principal.user.lastName," ",e.principal.user.titleAfter," "),a.Ab(3),a.kc("routerLink",a.oc(42,R)),a.Ab(1),a.Kc(a.fc(22,26,"NAV.PROFILE")),a.Ab(2),a.kc("ngIf",e.authzResolverService.isPerunAdmin()),a.Ab(1),a.kc("ngIf",e.logoutEnabled)}},directives:[h.w,d.b,p.a,f.i,h.t,g.a,b.a,m.d,m.e,m.b,f.g],pipes:[l.d],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:270px}.logo-container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::slotted(svg){height:56px}#nav-link-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-link-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1rem;line-height:64px;text-align:center;height:64px;display:block}"]}),t})()},h1El:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("Ssnw"),o=i("8clQ"),r=i("nIj0"),a=i("EM62"),c=i("s2Ay"),l=i("29Wa"),u=i("Cd2c"),h=i("R7+U"),d=i("2kYt"),p=i("PBFl"),f=i("mFH5"),g=i("1Gb8"),b=i("g3Wv");function m(t,e){if(1&t&&(a.Sb(0,"mat-option",9),a.Jc(1),a.ec(2,"applicationFormItemType"),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t),a.Ab(1),a.Lc(" ",a.fc(2,2,t)," ")}}function A(t,e){if(1&t&&(a.Sb(0,"mat-option",9),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.kc("value",t),a.Ab(1),a.Lc(" ",t," ")}}let y=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.translateService=i,this.notificationService=n,this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","FROM_FEDERATION_HIDDEN","HTML_COMMENT","TEXTFIELD","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(t=>{this.nameCtrl=new r.g("",[r.F.required,r.F.pattern(".*[\\S]+.*"),r.F.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(t);for(const e of this.data.applicationFormItems)this.items.push(e.shortname);this.selectedItem=t})}cancel(){this.dialogRef.close(!1)}submit(){const t=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,t])}createApplicationItem(){const t=Object(o.d)();t.id=this.data.fakeId,t.shortname=this.nameCtrl.value,t.type=this.selectedWidget;for(let e=0;e{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"div",0),n.Nb(1,"perun-web-apps-back-button"),n.Sb(2,"h1",1),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Rb()),2&t&&(n.Ab(3),n.Kc(n.fc(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[s.a],pipes:[o.d],styles:[""]}),t})()},h6su:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("cqs0"),a=(i("HHEo"),i("EM62")),c=i("s2Ay"),l=i("A8Ay"),u=i("2kYt"),h=i("csyo"),d=i("23RZ"),p=i("PBFl"),f=i("Y2X+");const g=["list"];function b(t,e){1&t&&a.Nb(0,"mat-spinner",4)}const m=function(){return["select","id","name","facility","tags","description"]};function A(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"div",5),a.Nb(2,"perun-web-apps-resources-list",6,7),a.Rb(),a.Sb(4,"div",8),a.Sb(5,"button",9),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(6),a.ec(7,"translate"),a.Rb(),a.Sb(8,"span",10),a.ec(9,"translate"),a.Sb(10,"button",11),a.Zb("click",(function(){return a.xc(t),a.dc().onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.tc(3),e=a.dc();a.Ab(2),a.kc("resources",e.resources)("disableRouting",!0)("selection",e.selection)("groupToResource",e.data.group)("displayedColumns",a.oc(17,m))("filterValue",e.filterValue),a.Ab(4),a.Lc(" ",a.fc(7,11,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),a.Ab(2),a.lc("matTooltip",a.fc(9,13,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),a.kc("matTooltipDisabled",void 0===t||t.addAuth),a.Ab(2),a.kc("disabled",0===e.selection.selected.length||e.loading||void 0!==t&&!t.addAuth),a.Ab(1),a.Lc(" ",a.fc(12,15,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.filterValue="",this.resources=[],this.selection=new r.c(!0,[]),this.theme=""}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.resourcesManager.getRichResources(this.data.voId).subscribe(t=>{this.resources=t.filter(t=>!this.data.unwantedResources.includes(t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.resourcesManager.assignGroupToResources(this.data.group.id,t).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.l),a.Mb(c.e),a.Mb(o.m))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){var i;1&t&&a.Qc(g,!0),2&t&&a.sc(i=a.ac())&&(e.list=i.first)},decls:8,vars:11,consts:[["mat-dialog-title",""],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["list",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"perun-web-apps-immediate-filter",1),a.Zb("filter",(function(t){return e.applyFilter(t)})),a.ec(5,"translate"),a.Rb(),a.Hc(6,b,1,0,"mat-spinner",2),a.Hc(7,A,13,18,"div",3),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),a.Ab(2),a.kc("placeholder",a.fc(5,9,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[n.j,l.a,u.t,h.c,n.g,d.a,n.c,p.b,f.a],pipes:[c.d],styles:[""]}),t})()},h7zu:function(t,e,i){"use strict";i.d(e,"a",(function(){return R}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("iyZ4"),a=i("cqs0"),c=i("nyAh"),l=i("nIj0"),u=i("EM62"),h=i("s2Ay"),d=i("29Wa"),p=i("Cd2c"),f=i("PBFl"),g=i("bFHC"),b=i("2kYt"),m=i("NC8S"),A=i("FcRk"),y=i("csyo");function w(t,e){if(1&t){const t=u.Tb();u.Sb(0,"app-users-list",14),u.Zb("page",(function(e){return u.xc(t),u.dc(2).pageChanged(e)})),u.Rb()}if(2&t){const t=u.dc(2);u.kc("pageSize",t.pageSize)("displayedColumns",t.displayedColumns)("users",t.identities)("disableRouting",!0)("selection",t.selection)}}function v(t,e){if(1&t&&(u.Sb(0,"div"),u.Hc(1,w,1,5,"app-users-list",13),u.Rb()),2&t){const t=u.dc();u.Ab(1),u.kc("ngIf",void 0!==t.identities&&t.identities.length>0)}}function _(t,e){1&t&&(u.Sb(0,"app-alert",15),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.kc("alert_type","info"),u.Ab(1),u.Lc(" ",u.fc(2,2,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function S(t,e){1&t&&(u.Sb(0,"app-alert",16),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function E(t,e){1&t&&u.Nb(0,"mat-spinner",17)}let R=(()=>{class t{constructor(t,e,i,n,s,o,c){this.dialogRef=t,this.data=e,this.tableConfigService=i,this.userManager=n,this.storeService=s,this.notificator=o,this.translate=c,this.loading=!1,this.selection=new a.c(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=r.fb}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new l.g("",[l.F.required,l.F.pattern(".*[\\S]+.*")])}onAdd(){let t,e;this.loading=!0,this.isService?(t=this.selection.selected[0].id,e=this.userId):(t=this.userId,e=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(t,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let t=[c.a.USER_DEF_ORGANIZATION,c.a.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(t=>{this.identities=this.filterIdentities(t),this.loading=!1},()=>{this.loading=!1})}onKeyInput(t){"Enter"===t.key&&this.onSearchByString()}filterIdentities(t){return t.filter(this.isService?t=>!t.serviceUser:t=>t.serviceUser)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(u.Mb(n.i),u.Mb(n.a),u.Mb(r.pb),u.Mb(s.p),u.Mb(o.m),u.Mb(o.l),u.Mb(h.e))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-connect-identity"]],decls:26,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"],["mat-flat-button","","color","primary",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],[3,"alert_type",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page",4,"ngIf"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page"],[3,"alert_type"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(u.Sb(0,"div",0),u.Zb("keyup",(function(t){return e.onKeyInput(t)})),u.Sb(1,"h1",1),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Sb(4,"div",2),u.Sb(5,"mat-form-field",3),u.Sb(6,"label"),u.Nb(7,"input",4),u.ec(8,"translate"),u.Rb(),u.Sb(9,"mat-error"),u.Jc(10),u.ec(11,"translate"),u.Rb(),u.Rb(),u.Sb(12,"button",5),u.Zb("click",(function(){return e.onSearchByString()})),u.Sb(13,"mat-icon"),u.Jc(14,"search"),u.Rb(),u.Rb(),u.Hc(15,v,2,1,"div",6),u.Hc(16,_,3,4,"app-alert",7),u.Hc(17,S,3,3,"app-alert",8),u.Rb(),u.Hc(18,E,1,0,"mat-spinner",9),u.Sb(19,"div",10),u.Sb(20,"button",11),u.Zb("click",(function(){return e.onCancel()})),u.Jc(21),u.ec(22,"translate"),u.Rb(),u.Sb(23,"button",12),u.Zb("click",(function(){return e.onAdd()})),u.Jc(24),u.ec(25,"translate"),u.Rb(),u.Rb(),u.Rb()),2&t&&(u.Cb(e.theme),u.Ab(2),u.Kc(u.fc(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE")),u.Ab(5),u.lc("placeholder",u.fc(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),u.kc("formControl",e.searchCtrl),u.Ab(3),u.Lc(" ",u.fc(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),u.Ab(2),u.kc("disabled",e.loading),u.Ab(3),u.kc("ngIf",!e.loading),u.Ab(1),u.kc("ngIf",!e.firstSearchDone),u.Ab(1),u.kc("ngIf",!e.loading&&e.firstSearchDone&&0===e.identities.length),u.Ab(1),u.kc("ngIf",e.loading),u.Ab(3),u.Lc(" ",u.fc(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),u.Ab(2),u.kc("disabled",0===e.selection.selected.length),u.Ab(1),u.Lc(" ",u.fc(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[n.j,n.g,d.c,p.b,l.c,l.r,l.h,d.b,f.b,g.a,b.t,n.c,m.a,A.a,y.c],pipes:[h.d],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),t})()},hLiN:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),s=i("EM62");let o=(()=>{class t{transform(t,e){return Object(n.G)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"userVo",type:t,pure:!0}),t})()},hQLc:function(t,e,i){"use strict";i.d(e,"a",(function(){return O}));var n=i("X2Q7"),s=i("iyZ4"),o=i("cqs0"),r=i("8clQ"),a=i("c9OP"),c=i("6mVK"),l=i("Ssnw"),u=(i("HHEo"),i("EM62")),h=i("sEIs"),d=i("OZ4H"),p=i("2kYt"),f=i("0XDM"),g=i("PBFl"),b=i("Y2X+"),m=i("A8Ay"),A=i("csyo"),y=i("K9kF"),w=i("s2Ay");const v=["list"];function _(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-refresh-button",7),u.Zb("refresh",(function(){return u.xc(t),u.dc().refreshTable()})),u.Rb()}}function S(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",8),u.Zb("click",(function(){return u.xc(t),u.dc().addGroup()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function E(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",11),u.Zb("click",(function(){return u.xc(t),u.dc(2).removeGroup()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}if(2&t){const t=u.dc(2);u.kc("disabled",0===t.selection.selected.length||void 0!==t.list&&!t.list.removeAuth),u.Ab(1),u.Lc(" ",u.fc(2,2,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function R(t,e){if(1&t&&(u.Sb(0,"span",9),u.ec(1,"translate"),u.Hc(2,E,3,4,"button",10),u.Rb()),2&t){const t=u.dc();u.lc("matTooltip",u.fc(1,3,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),u.kc("matTooltipDisabled",void 0===t.list||void 0!==t.list&&t.list.removeAuth),u.Ab(2),u.kc("ngIf",!t.loading)}}function C(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-immediate-filter",12),u.Zb("filter",(function(e){return u.xc(t),u.dc().applyFilter(e)})),u.Rb()}2&t&&u.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH")}function T(t,e){1&t&&u.Nb(0,"mat-spinner",13)}const k=function(){return["vo","menu","recent"]};function I(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-groups-list",14,15),u.Zb("page",(function(e){return u.xc(t),u.dc().pageChanged(e)}))("refreshTable",(function(){return u.xc(t),u.dc().refreshTable()})),u.Rb()}if(2&t){const t=u.dc();u.kc("pageSize",t.pageSize)("groups",t.groups)("hideColumns",u.oc(8,k))("selection",t.selection)("filter",t.filterValue)("memberId",t.memberId)("disableRouting",!t.routeAuth)("authType","member-groups")}}let O=(()=>{class t{constructor(t,e,i,n,r,a){this.groupsService=t,this.tableConfigService=e,this.route=i,this.dialog=n,this.authResolver=r,this.memberService=a,this.filterValue="",this.tableId=s.P,this.selection=new o.c(!0,[])}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberService.getMemberById(this.memberId).subscribe(t=>{this.member=t,this.groupsService.getAllGroups(this.member.voId).subscribe(t=>{this.allGroups=t,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(t=>{this.selection.clear(),this.filterValue="",this.groups=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((t,e)=>t||this.authResolver.isAuthorized("addMember_Group_Member_policy",[e]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[t,this.groups[0]]))}addGroup(){const t=Object(r.o)();t.width="850px",t.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(t=>t.id)),theme:"member-theme"},this.dialog.open(a.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeGroup(){const t=Object(r.o)();t.width="650px",t.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(c.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(u.Mb(n.h),u.Mb(s.pb),u.Mb(h.a),u.Mb(d.b),u.Mb(l.h),u.Mb(n.i))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){var i;1&t&&u.Qc(v,!0),2&t&&u.sc(i=u.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&u.Eb("router-component",!0)},decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","groups","hideColumns","selection","filter","memberId","disableRouting","authType","page","refreshTable",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[3,"pageSize","groups","hideColumns","selection","filter","memberId","disableRouting","authType","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(u.Sb(0,"h1",0),u.Jc(1),u.ec(2,"translate"),u.Rb(),u.Hc(3,_,1,0,"perun-web-apps-refresh-button",1),u.Hc(4,S,3,3,"button",2),u.Hc(5,R,3,5,"span",3),u.Hc(6,C,1,1,"perun-web-apps-immediate-filter",4),u.Hc(7,T,1,0,"mat-spinner",5),u.Hc(8,I,2,9,"perun-web-apps-groups-list",6)),2&t&&(u.Ab(1),u.Kc(u.fc(2,7,"MEMBER_DETAIL.GROUPS.TITLE")),u.Ab(2),u.kc("ngIf",!e.loading),u.Ab(1),u.kc("ngIf",!e.loading&&e.addAuth),u.Ab(1),u.kc("ngIf",!e.loading),u.Ab(1),u.kc("ngIf",!e.loading),u.Ab(1),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading))},directives:[p.t,f.a,g.b,b.a,m.a,A.c,y.a],pipes:[w.d],styles:[""]}),t})()},hiWg:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("OZ4H"),s=i("nIj0"),o=i("X2Q7"),r=i("Ssnw"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("29Wa"),p=i("Cd2c"),f=i("R7+U"),g=i("mFH5");function b(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function m(t,e){1&t&&(a.Sb(0,"div",15),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function A(t,e){1&t&&(a.Sb(0,"div",15),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function y(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function w(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function v(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",7),a.Hc(1,m,3,3,"div",8),a.Hc(2,A,3,3,"div",8),a.Sb(3,"mat-form-field",9),a.Nb(4,"input",10),a.ec(5,"translate"),a.Hc(6,y,3,3,"mat-error",11),a.Rb(),a.Sb(7,"mat-form-field",9),a.Nb(8,"textarea",10),a.ec(9,"translate"),a.Hc(10,w,3,3,"mat-error",11),a.Rb(),a.Sb(11,"mat-form-field",9),a.Sb(12,"mat-label"),a.Jc(13),a.ec(14,"translate"),a.Rb(),a.Sb(15,"mat-select",12),a.Zb("valueChange",(function(e){return a.xc(t),a.dc().language=e})),a.Sb(16,"mat-option",13),a.Jc(17),a.ec(18,"translate"),a.Rb(),a.Sb(19,"mat-option",14),a.Jc(20),a.ec(21,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(1),a.kc("ngIf",!t.data.groupId),a.Ab(1),a.kc("ngIf",t.data.groupId),a.Ab(2),a.lc("placeholder",a.fc(5,12,"DIALOGS.INVITE_MEMBER.NAME")),a.kc("formControl",t.name),a.Ab(2),a.kc("ngIf",t.name.invalid),a.Ab(2),a.lc("placeholder",a.fc(9,14,"DIALOGS.INVITE_MEMBER.EMAIL")),a.kc("formControl",t.emailForm),a.Ab(2),a.kc("ngIf",t.emailForm.invalid),a.Ab(3),a.Kc(a.fc(14,16,"DIALOGS.INVITE_MEMBER.LANGUAGE")),a.Ab(2),a.kc("value",t.language),a.Ab(2),a.Kc(a.fc(18,18,"DIALOGS.INVITE_MEMBER.LANGUAGE_ENGLISH")),a.Ab(3),a.Kc(a.fc(21,20,"DIALOGS.INVITE_MEMBER.LANGUAGE_CZECH"))}}let _=(()=>{class t{constructor(t,e,i,n,o){this.dialogRef=t,this.data=e,this.registrarManager=i,this.notificator=n,this.translate=o,this.emailForm=new s.g("",[s.F.required,s.F.email]),this.language="en",this.name=new s.g("",s.F.required),this.loading=!1}ngOnInit(){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.language,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.language,this.data.voId,this.data.groupId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(r.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","accent",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"],["value","en"],["value","cs"],[1,"font-italic"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,b,1,0,"mat-spinner",1),a.Hc(5,v,22,22,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),a.Ab(2),a.kc("disabled",e.emailForm.invalid||e.name.invalid||e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,d.c,p.b,s.c,s.C,s.r,s.h,d.g,f.a,g.n,d.b],pipes:[c.d],styles:[""]}),t})()},hilf:function(t,e,i){"use strict";i.d(e,"a",(function(){return P}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("TkCa"),a=i("Iydx"),c=i("iyZ4"),l=i("EM62"),u=i("s2Ay"),h=i("HHFY"),d=i("2kYt"),p=i("PBFl"),f=i("Y2X+"),g=i("csyo"),b=i("29Wa"),m=i("Cd2c"),A=i("nIj0"),y=i("H0K4"),w=i("k8N0"),v=i("+Tre"),_=i("gcZR"),S=i("aFDG");const E=["copiedTooltip"];function R(t,e){1&t&&l.Nb(0,"mat-spinner",12)}function C(t,e){1&t&&(l.Sb(0,"mat-error"),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function T(t,e){1&t&&(l.Sb(0,"mat-error"),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}const k=function(){return["select","description"]};function I(t,e){if(1&t){const t=l.Tb();l.Sb(0,"div",13),l.Sb(1,"mat-form-field",3),l.Sb(2,"label"),l.Sb(3,"input",14),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).attDef.displayName=e})),l.ec(4,"translate"),l.Rb(),l.Rb(),l.Hc(5,C,3,3,"mat-error",2),l.Rb(),l.Nb(6,"br"),l.Sb(7,"mat-form-field",3),l.Sb(8,"label"),l.Sb(9,"textarea",15),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).attDef.description=e})),l.ec(10,"translate"),l.Jc(11," "),l.Rb(),l.Rb(),l.Hc(12,T,3,3,"mat-error",2),l.Rb(),l.Nb(13,"br"),l.Sb(14,"div",16),l.Sb(15,"p"),l.Jc(16),l.ec(17,"translate"),l.Rb(),l.Sb(18,"p",17),l.Zb("click",(function(){return l.xc(t),l.dc(2).attDef.unique=!1})),l.Jc(19,"OFF"),l.Rb(),l.Sb(20,"mat-slide-toggle",18),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).attDef.unique=e})),l.ec(21,"translate"),l.Jc(22," ON "),l.Rb(),l.Rb(),l.Sb(23,"div",19),l.Sb(24,"p",20),l.Jc(25),l.ec(26,"translate"),l.Rb(),l.Sb(27,"p",21),l.Jc(28),l.ec(29,"translate"),l.Rb(),l.Rb(),l.Sb(30,"div",22),l.Sb(31,"p",23),l.Jc(32),l.ec(33,"translate"),l.Rb(),l.Sb(34,"mat-checkbox",24),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).readSelf=e})),l.Rb(),l.Sb(35,"mat-checkbox",25),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).writeSelf=e})),l.Rb(),l.Rb(),l.Sb(36,"div",22),l.Sb(37,"p",23),l.Jc(38),l.ec(39,"translate"),l.Rb(),l.Sb(40,"mat-checkbox",26),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).readSelfPublic=e})),l.Rb(),l.Sb(41,"mat-checkbox",25),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).writeSelfPublic=e})),l.Rb(),l.Rb(),l.Sb(42,"div",22),l.Sb(43,"p",23),l.Jc(44),l.ec(45,"translate"),l.Rb(),l.Sb(46,"mat-checkbox",27),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).readSelfVo=e})),l.Rb(),l.Sb(47,"mat-checkbox",25),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).writeSelfVo=e})),l.Rb(),l.Rb(),l.Sb(48,"div",22),l.Sb(49,"p",23),l.Jc(50),l.ec(51,"translate"),l.Rb(),l.Sb(52,"mat-checkbox",28),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).readVo=e})),l.Rb(),l.Sb(53,"mat-checkbox",25),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).writeVo=e})),l.Rb(),l.Rb(),l.Sb(54,"div",22),l.Sb(55,"p",23),l.Jc(56),l.ec(57,"translate"),l.Rb(),l.Sb(58,"mat-checkbox",29),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).readGroup=e})),l.Rb(),l.Sb(59,"mat-checkbox",25),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).writeGroup=e})),l.Rb(),l.Rb(),l.Sb(60,"div",22),l.Sb(61,"p",23),l.Jc(62),l.ec(63,"translate"),l.Rb(),l.Sb(64,"mat-checkbox",27),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).readFacility=e})),l.Rb(),l.Sb(65,"mat-checkbox",25),l.Zb("ngModelChange",(function(e){return l.xc(t),l.dc(2).writeFacility=e})),l.Rb(),l.Rb(),l.Sb(66,"div",30),l.Sb(67,"p"),l.Jc(68),l.ec(69,"translate"),l.Rb(),l.Nb(70,"app-services-list",31),l.Rb(),l.Rb()}if(2&t){const t=l.dc(2);l.Ab(3),l.lc("placeholder",l.fc(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),l.kc("ngModel",t.attDef.displayName),l.Ab(2),l.kc("ngIf",""===t.attDef.displayName),l.Ab(4),l.lc("placeholder",l.fc(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),l.kc("ngModel",t.attDef.description),l.Ab(3),l.kc("ngIf",""===t.attDef.description),l.Ab(4),l.Kc(l.fc(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),l.Ab(4),l.lc("matTooltip",l.fc(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),l.kc("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),l.Ab(5),l.Kc(l.fc(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),l.Ab(3),l.Kc(l.fc(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),l.Ab(4),l.Kc(l.fc(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),l.Ab(2),l.kc("ngModel",t.readSelf),l.Ab(1),l.kc("ngModel",t.writeSelf),l.Ab(3),l.Kc(l.fc(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),l.Ab(2),l.kc("ngModel",t.readSelfPublic),l.Ab(1),l.kc("ngModel",t.writeSelfPublic),l.Ab(3),l.Kc(l.fc(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),l.Ab(2),l.kc("ngModel",t.readSelfVo),l.Ab(1),l.kc("ngModel",t.writeSelfVo),l.Ab(3),l.Kc(l.fc(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),l.Ab(2),l.kc("ngModel",t.readVo),l.Ab(1),l.kc("ngModel",t.writeVo),l.Ab(3),l.Kc(l.fc(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),l.Ab(2),l.kc("ngModel",t.readGroup),l.Ab(1),l.kc("ngModel",t.writeGroup),l.Ab(3),l.Kc(l.fc(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),l.Ab(2),l.kc("ngModel",t.readFacility),l.Ab(1),l.kc("ngModel",t.writeFacility),l.Ab(3),l.Kc(l.fc(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),l.Ab(2),l.kc("services",t.services)("hideColumns",l.oc(61,k))("disableRouting",!0)}}function O(t,e){if(1&t){const t=l.Tb();l.Sb(0,"button",32),l.Zb("click",(function(){return l.xc(t),l.dc(2).switchShowKeys()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function D(t,e){if(1&t){const t=l.Tb();l.Sb(0,"div"),l.Sb(1,"div",3),l.Sb(2,"h1",4),l.Jc(3),l.Rb(),l.Hc(4,R,1,0,"mat-spinner",5),l.Hc(5,I,71,62,"div",6),l.Sb(6,"div",7),l.Hc(7,O,3,3,"button",8),l.Sb(8,"button",9),l.Zb("click",(function(){return l.xc(t),l.dc().onCopy()})),l.Jc(9),l.ec(10,"translate"),l.Rb(),l.Sb(11,"button",10),l.Zb("click",(function(){return l.xc(t),l.dc().onCancel()})),l.Jc(12),l.ec(13,"translate"),l.Rb(),l.Sb(14,"button",11),l.Zb("click",(function(){return l.xc(t),l.dc().onSubmit()})),l.ec(15,"translate"),l.Jc(16),l.ec(17,"translate"),l.Rb(),l.Rb(),l.Rb(),l.Rb()}if(2&t){const t=l.dc();l.Ab(3),l.Kc(t.attDef.namespace+":"+t.attDef.friendlyName),l.Ab(1),l.kc("ngIf",t.loading),l.Ab(1),l.kc("ngIf",!t.loading),l.Ab(2),l.kc("ngIf","entityless"===t.attDef.entity),l.Ab(2),l.Lc(" ",l.fc(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),l.Ab(3),l.Lc(" ",l.fc(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),l.Ab(2),l.lc("matTooltip",l.fc(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),l.kc("disabled",t.disableConfirmButton()||t.loading)("matTooltipDisabled",!t.disableConfirmButton()),l.Ab(2),l.Lc(" ",l.fc(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function M(t,e){if(1&t){const t=l.Tb();l.Sb(0,"div"),l.Sb(1,"app-entityless-attribute-keys-list",33),l.Zb("page",(function(e){return l.xc(t),l.dc().pageChanged(e)}))("switchView",(function(){return l.xc(t),l.dc().switchShowKeys()})),l.Rb(),l.Rb()}if(2&t){const t=l.dc();l.Ab(1),l.kc("pageSize",t.pageSize)("attDef",t.attDef)}}let P=(()=>{class t{constructor(t,e,i,n,s,o,r,a,l){this.dialog=t,this.dialogRef=e,this.data=i,this.notificator=n,this.translate=s,this.clipboard=o,this.attributesManager=r,this.tableConfigService=a,this.serviceService=l,this.showKeys=!1,this.activatedComponent="Edit",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=c.t,this.loading=!1}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe(t=>{this.services=t,this.attributesManager.getAttributeRights(this.attDef.id).subscribe(t=>{this.fromRightsToCheckboxes(t),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}disableConfirmButton(){return""===this.attDef.displayName||""===this.attDef.description}disableUniqueToggle(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}onSubmit(){this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.fromCheckboxesToRights()}).subscribe(()=>{this.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}fromCheckboxesToRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=a.a.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const i={};i.attributeId=this.attDef.id,i.role=a.a.VOADMIN,i.rights=[],this.readVo&&i.rights.push("READ"),this.writeVo&&i.rights.push("WRITE"),t.push(i);const n={};n.attributeId=this.attDef.id,n.role=a.a.GROUPADMIN,n.rights=[],this.readGroup&&n.rights.push(o.a.READ),this.writeGroup&&n.rights.push("WRITE"),t.push(n);const s={};return s.attributeId=this.attDef.id,s.role=a.a.FACILITYADMIN,s.rights=[],this.readFacility&&s.rights.push("READ"),this.writeFacility&&s.rights.push("WRITE"),t.push(s),t}fromRightsToCheckboxes(t){for(const e of t)switch(e.role){case a.a.SELF:e.rights.includes("READ")&&(this.readSelf=!0),e.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),e.rights.includes("READ_VO")&&(this.readSelfVo=!0),e.rights.includes("WRITE")&&(this.writeSelf=!0),e.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),e.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case a.a.GROUPADMIN:e.rights.includes("READ")&&(this.readGroup=!0),e.rights.includes("WRITE")&&(this.writeGroup=!0);break;case a.a.FACILITYADMIN:e.rights.includes("READ")&&(this.readFacility=!0),e.rights.includes("WRITE")&&(this.writeFacility=!0);break;case a.a.VOADMIN:e.rights.includes("READ")&&(this.readVo=!0),e.rights.includes("WRITE")&&(this.writeVo=!0)}}switchShowKeys(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onCopy(){const t={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};this.clipboard.copy(JSON.stringify(t))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(n.b),l.Mb(n.i),l.Mb(n.a),l.Mb(s.l),l.Mb(u.e),l.Mb(h.b),l.Mb(o.c),l.Mb(c.pb),l.Mb(o.n))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(t,e){var i;1&t&&l.Qc(E,!0),2&t&&l.sc(i=l.ac())&&(e.copiedToolTip=i.first)},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","","class","ml-0",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"services","hideColumns","disableRouting"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"pageSize","attDef","page","switchView"]],template:function(t,e){1&t&&(l.Sb(0,"div",0),l.Sb(1,"div",1),l.Hc(2,D,18,18,"div",2),l.Hc(3,M,2,2,"div",2),l.Rb(),l.Rb()),2&t&&(l.Ab(2),l.kc("ngIf",!e.showKeys),l.Ab(1),l.kc("ngIf",e.showKeys))},directives:[d.t,n.j,n.c,p.b,f.a,g.c,n.g,b.c,m.b,A.c,A.C,A.r,A.u,y.c,w.a,v.a,_.a,b.b,S.a],pipes:[u.d],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[r.g,r.e,r.f]}}),t})()},"i9P/":function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,"a",(function(){return n}))},i9xl:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("IdLP"),s=i("GoAz"),o=i("6Oco");function r(t){return new n.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(s.a)(i):Object(o.b)()).subscribe(e)})}},iAde:function(t,e,i){"use strict";i.d(e,"a",(function(){return S})),i.d(e,"b",(function(){return E}));var n=i("2kYt"),s=i("EM62"),o=i("PBFl"),r=i("R7+U"),a=i("Y2X+"),c=i("5XID"),l=i("ZTXN"),u=i("mFH5"),h=i("29Wa");function d(t,e){if(1&t&&(s.Sb(0,"mat-option",19),s.Jc(1),s.Rb()),2&t){const t=e.$implicit;s.kc("value",t),s.Ab(1),s.Lc(" ",t," ")}}function p(t,e){if(1&t){const t=s.Tb();s.Sb(0,"mat-form-field",16),s.Sb(1,"mat-select",17),s.Zb("selectionChange",(function(e){return s.xc(t),s.dc(2)._changePageSize(e.value)})),s.Hc(2,d,2,2,"mat-option",18),s.Rb(),s.Rb()}if(2&t){const t=s.dc(2);s.kc("color",t.color),s.Ab(1),s.kc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.Ab(1),s.kc("ngForOf",t._displayedPageSizeOptions)}}function f(t,e){if(1&t&&(s.Sb(0,"div",20),s.Jc(1),s.Rb()),2&t){const t=s.dc(2);s.Ab(1),s.Kc(t.pageSize)}}function g(t,e){if(1&t&&(s.Sb(0,"div",12),s.Sb(1,"div",13),s.Jc(2),s.Rb(),s.Hc(3,p,3,5,"mat-form-field",14),s.Hc(4,f,2,1,"div",15),s.Rb()),2&t){const t=s.dc();s.Ab(2),s.Lc(" ",t._intl.itemsPerPageLabel," "),s.Ab(1),s.kc("ngIf",t._displayedPageSizeOptions.length>1),s.Ab(1),s.kc("ngIf",t._displayedPageSizeOptions.length<=1)}}function b(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",21),s.Zb("click",(function(){return s.xc(t),s.dc().firstPage()})),s.cc(),s.Sb(1,"svg",7),s.Nb(2,"path",22),s.Rb(),s.Rb()}if(2&t){const t=s.dc();s.kc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.Bb("aria-label",t._intl.firstPageLabel)}}function m(t,e){if(1&t){const t=s.Tb();s.cc(),s.bc(),s.Sb(0,"button",23),s.Zb("click",(function(){return s.xc(t),s.dc().lastPage()})),s.cc(),s.Sb(1,"svg",7),s.Nb(2,"path",24),s.Rb(),s.Rb()}if(2&t){const t=s.dc();s.kc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.Bb("aria-label",t._intl.lastPageLabel)}}let A=(()=>{class t{constructor(){this.changes=new l.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return"0 of "+i;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const y={provide:A,deps:[[new s.B,new s.K,A]],useFactory:function(t){return t||new A}},w=new s.r("MAT_PAGINATOR_DEFAULT_OPTIONS");class v{}const _=Object(u.A)(Object(u.C)(v));let S=(()=>{class t extends _{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.o,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Object(c.f)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Object(c.f)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Object(c.f)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Object(c.f)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Object(c.c)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Object(c.c)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(A),s.Mb(s.h),s.Mb(w,8))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[s.xb],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,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(s.Sb(0,"div",0),s.Sb(1,"div",1),s.Hc(2,g,5,3,"div",2),s.Sb(3,"div",3),s.Sb(4,"div",4),s.Jc(5),s.Rb(),s.Hc(6,b,3,5,"button",5),s.Sb(7,"button",6),s.Zb("click",(function(){return e.previousPage()})),s.cc(),s.Sb(8,"svg",7),s.Nb(9,"path",8),s.Rb(),s.Rb(),s.bc(),s.Sb(10,"button",9),s.Zb("click",(function(){return e.nextPage()})),s.cc(),s.Sb(11,"svg",7),s.Nb(12,"path",10),s.Rb(),s.Rb(),s.Hc(13,m,3,5,"button",11),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Ab(2),s.kc("ngIf",!e.hidePageSize),s.Ab(3),s.Lc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.Ab(1),s.kc("ngIf",e.showFirstLastButtons),s.Ab(1),s.kc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.Bb("aria-label",e._intl.previousPageLabel),s.Ab(3),s.kc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.Bb("aria-label",e._intl.nextPageLabel),s.Ab(3),s.kc("ngIf",e.showFirstLastButtons))},directives:[n.t,o.b,a.a,h.c,r.a,n.s,u.n],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[y],imports:[[n.c,o.c,r.b,a.b]]}),t})()},iD4z:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("nyAh"),s=i("8clQ"),o=i("EM62");let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"";const e=Object(s.l)(t.attributes,n.a.GROUP_SYNC_ENABLED),i=Object(s.l)(t.attributes,n.a.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";const o=i.value;if("true"===e.value){const e=Object(s.l)(t.attributes,n.a.GROUP_LAST_SYNC_STATE),i=Object(s.l)(t.attributes,n.a.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}if(o){const e=Object(s.l)(t.attributes,n.a.GROUP_LAST_STRUCTURE_SYNC_STATE),i=Object(s.l)(t.attributes,n.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}return"sync_disabled"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Lb({name:"groupSyncIcon",type:t,pure:!0}),t})()},iT3j:function(t,e,i){"use strict";i.d(e,"a",(function(){return T}));var n=i("EM62"),s=i("cePI"),o=i("cqs0"),r=i("FlRo"),a=i("iAde"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("FcRk"),f=i("s2Ay");function g(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",17),n.Sb(1,"mat-checkbox",18),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function b(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function m(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")))}function A(t,e){if(1&t&&(n.Sb(0,"td",19),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function y(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")))}function w(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.name)}}function v(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")))}function _(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.description)}}function S(t,e){1&t&&n.Nb(0,"tr",23)}function E(t,e){1&t&&n.Nb(0,"tr",24)}function R(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function C(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let T=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.securityTeams=[],this.selection=new o.c(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","description"],this.page=new n.o,this.pageSizeOptions=c.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.o(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"description":return t.description;default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-security-teams-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(s.a,!0),n.Dc(a.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,g,2,3,"th",6),n.Hc(7,b,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,m,3,3,"th",9),n.Hc(10,A,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,y,3,3,"th",9),n.Hc(13,w,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,v,3,3,"th",9),n.Hc(16,_,2,1,"td",11),n.Pb(),n.Hc(17,S,1,0,"tr",13),n.Hc(18,E,1,0,"tr",14),n.Rb(),n.Rb(),n.Sb(19,"mat-paginator",15),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(20,R,3,3,"app-alert",16),n.Hc(21,C,3,3,"app-alert",16)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.securityTeams.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(13),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.securityTeams.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.securityTeams.length),n.Ab(1),n.kc("ngIf",0===e.securityTeams.length))},directives:[u.a,r.n,s.a,r.c,r.i,r.b,r.k,r.m,a.a,h.t,r.h,d.a,r.a,s.b,r.j,r.l,p.a],pipes:[f.d],styles:[""]}),t})()},"ipn+":function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("EM62"),a=i("s2Ay"),c=i("2kYt"),l=i("YRqw"),u=i("ABWF"),h=i("PBFl"),d=i("csyo");function p(t,e){1&t&&r.Nb(0,"mat-spinner",9)}let f=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=n,this.registrarManager=s,this.notificatorService=o,this.apiRequest=r,this.data=a,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name,n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(t=>this.privilegeMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(t=>this.noFormMessage=t)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(t=>{this.voService.getMyVos().subscribe(t=>{this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(t){this.selectedVo=t,this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=t}):this.groups=[],this.selectedGroup=null}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.i),r.Mb(s.q),r.Mb(s.h),r.Mb(a.e),r.Mb(s.l),r.Mb(o.l),r.Mb(o.b),r.Mb(n.a))},t.\u0275cmp=r.Gb({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(r.Sb(0,"div"),r.Sb(1,"h1",0),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Hc(4,p,1,0,"mat-spinner",1),r.Sb(5,"div",2),r.Sb(6,"div",3),r.Jc(7),r.ec(8,"translate"),r.Rb(),r.Jc(9),r.ec(10,"translate"),r.Sb(11,"perun-web-apps-vo-search-select",4),r.Zb("voSelected",(function(t){return e.voSelected(t)})),r.Rb(),r.Jc(12),r.ec(13,"translate"),r.Sb(14,"perun-web-apps-group-search-select",5),r.Zb("groupSelected",(function(t){return e.selectedGroup=t})),r.Rb(),r.Rb(),r.Sb(15,"div",6),r.Sb(16,"button",7),r.Zb("click",(function(){return e.cancel()})),r.Jc(17),r.ec(18,"translate"),r.Rb(),r.Sb(19,"button",8),r.Zb("click",(function(){return e.submit()})),r.Jc(20),r.ec(21,"translate"),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Cb(e.theme),r.Ab(2),r.Kc(r.fc(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),r.Ab(2),r.kc("ngIf",e.loading),r.Ab(1),r.kc("hidden",e.loading),r.Ab(2),r.Kc(r.fc(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")),r.Ab(2),r.Lc(" ",r.fc(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),r.Ab(2),r.kc("vos",e.vos),r.Ab(1),r.Lc(" ",r.fc(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),r.Ab(2),r.kc("groups",e.groups)("disableAutoSelect",!0),r.Ab(3),r.Lc(" ",r.fc(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),r.Ab(2),r.kc("disabled",!e.selectedVo&&!e.selectedGroup||e.loading),r.Ab(1),r.Lc(" ",r.fc(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[n.j,c.t,n.g,l.a,u.a,n.c,h.b,d.c],pipes:[a.d],styles:[""]}),t})()},iqFP:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5uGe");function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},is9t:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("OZ4H"),s=i("TkCa"),o=i("X2Q7"),r=i("EM62"),a=i("s2Ay"),c=i("2kYt"),l=i("YRqw"),u=i("ABWF"),h=i("PBFl"),d=i("csyo");function p(t,e){1&t&&r.Nb(0,"mat-spinner",9)}let f=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=n,this.registrarService=s,this.data=o,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(t=>{this.fakeGroup={id:-1,name:t,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.loading=!1)}cancel(){this.dialogRef.close(!1)}displayFn(t){return t?t.name:void 0}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(t){this.selectedVo=t,this.getGroups()}getGroups(){null!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=[this.fakeGroup].concat(t)}):this.groups=[this.fakeGroup]}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.i),r.Mb(o.q),r.Mb(o.h),r.Mb(a.e),r.Mb(o.l),r.Mb(n.a))},t.\u0275cmp=r.Gb({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(r.Sb(0,"div"),r.Sb(1,"h1",0),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Hc(4,p,1,0,"mat-spinner",1),r.Sb(5,"div",2),r.Sb(6,"div",3),r.Jc(7),r.ec(8,"translate"),r.Rb(),r.Jc(9),r.ec(10,"translate"),r.Sb(11,"perun-web-apps-vo-search-select",4),r.Zb("voSelected",(function(t){return e.voSelected(t)})),r.Rb(),r.Jc(12),r.ec(13,"translate"),r.Sb(14,"perun-web-apps-group-search-select",5),r.Zb("groupSelected",(function(t){return e.selectedGroup=t})),r.Rb(),r.Rb(),r.Sb(15,"div",6),r.Sb(16,"button",7),r.Zb("click",(function(){return e.cancel()})),r.Jc(17),r.ec(18,"translate"),r.Rb(),r.Sb(19,"button",8),r.Zb("click",(function(){return e.submit()})),r.Jc(20),r.ec(21,"translate"),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Cb(e.theme),r.Ab(2),r.Kc(r.fc(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),r.Ab(2),r.kc("ngIf",e.loading),r.Ab(1),r.kc("hidden",e.loading),r.Ab(2),r.Kc(r.fc(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")),r.Ab(2),r.Lc(" ",r.fc(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),r.Ab(2),r.kc("vos",e.vos),r.Ab(1),r.Lc(" ",r.fc(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),r.Ab(2),r.kc("groups",e.groups)("disableAutoSelect",!0),r.Ab(3),r.Lc(" ",r.fc(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),r.Ab(2),r.kc("disabled",null===e.selectedVo||null===e.selectedGroup||e.loading),r.Ab(1),r.Lc(" ",r.fc(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},directives:[n.j,c.t,n.g,l.a,u.a,n.c,h.b,d.c],pipes:[a.d],styles:[""],data:{animation:[s.c]}}),t})()},iyZ4:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"c",(function(){return r})),i.d(e,"b",(function(){return a})),i.d(e,"pb",(function(){return c})),i.d(e,"z",(function(){return l})),i.d(e,"nb",(function(){return u})),i.d(e,"lb",(function(){return h})),i.d(e,"db",(function(){return d})),i.d(e,"eb",(function(){return p})),i.d(e,"J",(function(){return f})),i.d(e,"K",(function(){return g})),i.d(e,"ob",(function(){return b})),i.d(e,"i",(function(){return m})),i.d(e,"n",(function(){return A})),i.d(e,"f",(function(){return y})),i.d(e,"B",(function(){return w})),i.d(e,"I",(function(){return v})),i.d(e,"kb",(function(){return _})),i.d(e,"t",(function(){return S})),i.d(e,"j",(function(){return E})),i.d(e,"d",(function(){return R})),i.d(e,"ib",(function(){return C})),i.d(e,"g",(function(){return T})),i.d(e,"E",(function(){return k})),i.d(e,"mb",(function(){return I})),i.d(e,"F",(function(){return O})),i.d(e,"hb",(function(){return D})),i.d(e,"gb",(function(){return M})),i.d(e,"P",(function(){return P})),i.d(e,"r",(function(){return x})),i.d(e,"u",(function(){return N})),i.d(e,"S",(function(){return L})),i.d(e,"W",(function(){return F})),i.d(e,"p",(function(){return z})),i.d(e,"s",(function(){return H})),i.d(e,"H",(function(){return B})),i.d(e,"bb",(function(){return j})),i.d(e,"ab",(function(){return G})),i.d(e,"L",(function(){return U})),i.d(e,"M",(function(){return K})),i.d(e,"jb",(function(){return V})),i.d(e,"C",(function(){return q})),i.d(e,"x",(function(){return J})),i.d(e,"w",(function(){return W})),i.d(e,"A",(function(){return Z})),i.d(e,"N",(function(){return Y})),i.d(e,"O",(function(){return $})),i.d(e,"l",(function(){return X})),i.d(e,"m",(function(){return Q})),i.d(e,"Q",(function(){return tt})),i.d(e,"q",(function(){return et})),i.d(e,"T",(function(){return it})),i.d(e,"R",(function(){return nt})),i.d(e,"D",(function(){return st})),i.d(e,"fb",(function(){return ot})),i.d(e,"Z",(function(){return rt})),i.d(e,"v",(function(){return at})),i.d(e,"V",(function(){return ct})),i.d(e,"Y",(function(){return lt})),i.d(e,"X",(function(){return ut})),i.d(e,"y",(function(){return ht})),i.d(e,"h",(function(){return dt})),i.d(e,"cb",(function(){return pt})),i.d(e,"U",(function(){return ft})),i.d(e,"G",(function(){return gt})),i.d(e,"k",(function(){return bt})),i.d(e,"o",(function(){return mt})),i.d(e,"e",(function(){return At}));var n=i("2kYt"),s=i("EM62");let o=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[n.c]]}),t})();const r="GUI_CONFIG.PREF_PAGE_SIZE";let a=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE."+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber(r);return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber("GUI_CONFIG.PREF_PAGE_SIZE."+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(a))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const l="0",u="1",h="2",d="3",p="4",f="5",g="6",b="7",m="8",A="9",y="10",w="11",v="12",_="13",S="14",E="15",R="16",C="17",T="18",k="19",I="20",O="21",D="22",M="23",P="24",x="25",N="26",L="27",F="28",z="29",H="30",B="31",j="32",G="33",U="34",K="35",V="36",q="37",J="42",W="43",Z="44",Y="45",$="46",X="47",Q="48",tt="49",et="50",it="51",nt="52",st="53",ot="54",rt="55",at="56",ct="57",lt="58",ut="59",ht="62",dt="63",pt="64",ft="65",gt="66",bt="69",mt="71",At="72"},"j+u3":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){let i="";return null!==t.titleBefore&&(i+=t.titleBefore+" "),null!==t.firstName&&(i+=t.firstName+" "),null!==t.middleName&&(i+=t.middleName+" "),null!==t.lastName&&(i+=t.lastName+" "),null!==t.titleAfter&&(i+=t.titleAfter+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"userFullName",type:t,pure:!0}),t})()},j610:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("OZ4H"),s=i("EM62"),o=i("s2Ay");let r=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}refresh(){location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a))},t.\u0275cmp=s.Gb({type:t,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.Sb(0,"h2"),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"p"),s.Jc(4),s.ec(5,"translate"),s.Rb(),s.Sb(6,"div"),s.Sb(7,"button",0),s.Zb("click",(function(){return e.refresh()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,3,e.data.title),"\n"),s.Ab(3),s.Lc(" ",s.fc(5,5,e.data.message),"\n"),s.Ab(4),s.Lc(" ",s.fc(9,7,e.data.action)," "))},pipes:[o.d],styles:[""]}),t})()},jEFW:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("8clQ"),s=i("nyAh"),o=i("EM62");let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=Object(n.l)(t.attributes,s.a.GROUP_SYNC_ENABLED),i=Object(n.l)(t.attributes,s.a.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=Object(n.l)(t.attributes,s.a.GROUP_LAST_SYNC_STATE),i=Object(n.l)(t.attributes,s.a.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){const e=Object(n.l)(t.attributes,s.a.GROUP_LAST_STRUCTURE_SYNC_STATE),i=Object(n.l)(t.attributes,s.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Lb({name:"groupSyncToolTip",type:t,pure:!0}),t})()},jIqt:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("qZtG"),s=i("gBlb");function o(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),i=>Object(n.a)(t,i,e)):e=>Object(n.a)(t,e)}},jMG3:function(t,e,i){"use strict";i.d(e,"a",(function(){return ot}));var n=i("EM62"),s=i("OZ4H"),o=i("X2Q7"),r=i("Ssnw"),a=i("nIj0"),c=i("FlRo"),l=i("iAde"),u=i("2kYt"),h=i("cqs0"),d=i("nyAh"),p=i("iyZ4"),f=i("8clQ"),g=i("s2Ay"),b=i("csyo"),m=i("x9Az"),A=i("29Wa"),y=i("R7+U"),w=i("Cd2c"),v=i("PBFl"),_=i("HMTk"),S=i("F1o0"),E=i("Y2X+"),R=i("FcRk"),C=i("mFH5"),T=i("oYGW"),k=i("A8Ay"),I=i("K9kF");function O(t,e){1&t&&n.Nb(0,"mat-spinner",13)}function D(t,e){1&t&&(n.Jc(0),n.ec(1,"translate")),2&t&&n.Kc(n.fc(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function M(t,e){1&t&&(n.Sb(0,"app-alert",42),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function P(t,e){if(1&t&&(n.Sb(0,"mat-option",43),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.kc("value",t),n.Ab(1),n.Lc(" ",t," ")}}function x(t,e){1&t&&(n.Sb(0,"mat-error"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function N(t,e){1&t&&(n.Sb(0,"mat-error"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function L(t,e){if(1&t&&(n.Sb(0,"mat-error"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t){const t=n.dc(2);n.Ab(1),n.Mc(" ",n.fc(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function F(t,e){if(1&t&&(n.Sb(0,"mat-error"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t){const t=n.dc(2);n.Ab(1),n.Mc(" ",n.fc(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function z(t,e){if(1&t&&(n.Sb(0,"mat-error"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t){const t=n.dc(2);n.Ab(1),n.Mc(" ",n.fc(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function H(t,e){1&t&&(n.Jc(0),n.ec(1,"translate")),2&t&&n.Kc(n.fc(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function B(t,e){1&t&&(n.Sb(0,"app-alert",44),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function j(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-radio-group",45),n.Zb("ngModelChange",(function(e){return n.xc(t),n.dc(2).passwordReset=e})),n.Sb(1,"mat-radio-button",46),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Sb(4,"mat-radio-button",47),n.Jc(5),n.ec(6,"translate"),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.kc("ngModel",t.passwordReset),n.Ab(2),n.Lc(" ",n.fc(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),n.Ab(3),n.Lc(" ",n.fc(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function G(t,e){1&t&&(n.Jc(0),n.ec(1,"translate")),2&t&&n.Kc(n.fc(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function U(t,e){1&t&&(n.Jc(0),n.ec(1,"translate")),2&t&&n.Kc(n.fc(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function K(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"app-alert",48),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Rb()),2&t&&(n.Ab(2),n.Kc(n.fc(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function V(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div"),n.Sb(1,"h5",49),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Sb(4,"perun-web-apps-create-group-form",50),n.Zb("nameChanged",(function(e){return n.xc(t),n.dc(2).name=e}))("descriptionChanged",(function(e){return n.xc(t),n.dc(2).description=e}))("parentGroupChanged",(function(e){return n.xc(t),n.dc(2).parentGroup=e}))("asSubgroupChanged",(function(e){return n.xc(t),n.dc(2).asSubGroup=e})),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.Ab(2),n.Kc(n.fc(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),n.Ab(2),n.kc("voGroups",t.allVoGroups)}}const q=function(){return["expiration","vo","recent","menu"]};function J(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div"),n.Sb(1,"h5",49),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Sb(4,"perun-web-apps-immediate-filter",51),n.Zb("filter",(function(e){return n.xc(t),n.dc(2).applyFilter(e)})),n.Rb(),n.Sb(5,"perun-web-apps-groups-list",52),n.Zb("page",(function(e){return n.xc(t),n.dc(2).groupTablePageChanged(e)})),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.Ab(2),n.Kc(n.fc(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),n.Ab(2),n.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),n.Ab(1),n.kc("groups",t.assignableGroups)("selection",t.selection)("hideColumns",n.oc(10,q))("disableRouting",!0)("pageSize",t.pageSize)("filter",t.filterValue)}}function W(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div",14),n.Sb(1,"mat-horizontal-stepper",15),n.Sb(2,"mat-step",16),n.Hc(3,D,2,3,"ng-template",17),n.Hc(4,M,3,3,"app-alert",18),n.Sb(5,"h5",19),n.Jc(6),n.ec(7,"translate"),n.Rb(),n.Sb(8,"form",20),n.Sb(9,"mat-form-field"),n.Sb(10,"mat-select",21),n.ec(11,"translate"),n.Hc(12,P,2,2,"mat-option",22),n.Rb(),n.Hc(13,x,3,3,"mat-error",23),n.Rb(),n.Sb(14,"div"),n.Jc(15),n.ec(16,"translate"),n.Rb(),n.Sb(17,"div",24),n.Jc(18),n.Rb(),n.Sb(19,"mat-form-field",25),n.Sb(20,"mat-label"),n.Jc(21),n.ec(22,"translate"),n.Rb(),n.Sb(23,"textarea",26),n.Jc(24," "),n.Rb(),n.Hc(25,N,3,3,"mat-error",23),n.Hc(26,L,3,4,"mat-error",23),n.Hc(27,F,3,4,"mat-error",23),n.Hc(28,z,3,4,"mat-error",23),n.Rb(),n.Sb(29,"div",27),n.Sb(30,"button",28),n.Zb("click",(function(){return n.xc(t),n.dc().onCancel()})),n.Jc(31),n.ec(32,"translate"),n.Rb(),n.Sb(33,"button",29),n.Jc(34),n.ec(35,"translate"),n.Rb(),n.Rb(),n.Rb(),n.Rb(),n.Sb(36,"mat-step"),n.Hc(37,H,2,3,"ng-template",17),n.Sb(38,"div",19),n.Sb(39,"h5",30),n.Jc(40),n.ec(41,"translate"),n.Rb(),n.Hc(42,B,3,3,"app-alert",31),n.Hc(43,j,7,7,"mat-radio-group",32),n.Rb(),n.Sb(44,"div",27),n.Sb(45,"button",28),n.Zb("click",(function(){return n.xc(t),n.dc().onCancel()})),n.Jc(46),n.ec(47,"translate"),n.Rb(),n.Sb(48,"button",33),n.Jc(49),n.ec(50,"translate"),n.Rb(),n.Sb(51,"button",34),n.Jc(52),n.ec(53,"translate"),n.Rb(),n.Rb(),n.Rb(),n.Sb(54,"mat-step"),n.Hc(55,G,2,3,"ng-template",17),n.Sb(56,"div",19),n.Sb(57,"h5",30),n.Jc(58),n.ec(59,"translate"),n.Rb(),n.Sb(60,"perun-web-apps-expiration-select",35),n.Zb("datePicker",(function(e){return n.xc(t),n.dc().setExpiration(e)})),n.Rb(),n.Rb(),n.Sb(61,"div",27),n.Sb(62,"button",28),n.Zb("click",(function(){return n.xc(t),n.dc().onCancel()})),n.Jc(63),n.ec(64,"translate"),n.Rb(),n.Sb(65,"button",33),n.Jc(66),n.ec(67,"translate"),n.Rb(),n.Sb(68,"button",34),n.Jc(69),n.ec(70,"translate"),n.Rb(),n.Rb(),n.Rb(),n.Sb(71,"mat-step"),n.Hc(72,U,2,3,"ng-template",17),n.Sb(73,"div",19),n.Sb(74,"h5",30),n.Jc(75),n.ec(76,"translate"),n.Rb(),n.Sb(77,"mat-radio-group",36),n.Zb("change",(function(){return n.xc(t),n.dc().groupAssigmentChanged()}))("ngModelChange",(function(e){return n.xc(t),n.dc().groupAssignment=e})),n.Sb(78,"mat-radio-button",37),n.Jc(79),n.ec(80,"translate"),n.Rb(),n.Sb(81,"span",38),n.ec(82,"translate"),n.Sb(83,"mat-radio-button",39),n.Jc(84),n.ec(85,"translate"),n.Rb(),n.Rb(),n.Sb(86,"span",38),n.ec(87,"translate"),n.Sb(88,"mat-radio-button",40),n.Jc(89),n.ec(90,"translate"),n.Rb(),n.Rb(),n.Rb(),n.Rb(),n.Hc(91,K,4,3,"div",23),n.Hc(92,V,5,4,"div",23),n.Hc(93,J,6,11,"div",23),n.Sb(94,"div",27),n.Sb(95,"button",28),n.Zb("click",(function(){return n.xc(t),n.dc().onCancel()})),n.Jc(96),n.ec(97,"translate"),n.Rb(),n.Sb(98,"button",33),n.Jc(99),n.ec(100,"translate"),n.Rb(),n.Sb(101,"button",41),n.Zb("click",(function(){return n.xc(t),n.dc().onSubmit()})),n.Jc(102),n.ec(103,"translate"),n.Rb(),n.Rb(),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("linear",!0),n.Ab(1),n.kc("stepControl",t.usersInfoFormGroup),n.Ab(2),n.kc("ngIf",t.functionalityNotSupported),n.Ab(2),n.Kc(n.fc(7,50,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),n.Ab(2),n.kc("formGroup",t.usersInfoFormGroup),n.Ab(2),n.lc("placeholder",n.fc(11,52,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),n.Ab(2),n.kc("ngForOf",t.namespaceOptions),n.Ab(1),n.kc("ngIf",t.usersInfoFormGroup.hasError("required","namespace")),n.Ab(2),n.Kc(n.fc(16,54,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),n.Ab(3),n.Kc(t.getSelectedNamespaceRules().csvGenHeaderDescription),n.Ab(3),n.Kc(n.fc(22,56,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),n.Ab(2),n.lc("placeholder",t.getSelectedNamespaceRules().csvGenPlaceholder),n.Ab(2),n.kc("ngIf",t.usersInfoFormGroup.hasError("required","sponsoredMembers")),n.Ab(1),n.kc("ngIf",t.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),n.Ab(1),n.kc("ngIf",t.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),n.Ab(1),n.kc("ngIf",t.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),n.Ab(3),n.Lc(" ",n.fc(32,58,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),n.Ab(2),n.kc("disabled",t.usersInfoFormGroup.invalid),n.Ab(1),n.Lc(" ",n.fc(35,60,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),n.Ab(6),n.Kc(n.fc(41,62,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")),n.Ab(2),n.kc("ngIf","No namespace"===t.getSelectedNamespaceRules().namespaceName),n.Ab(1),n.kc("ngIf","No namespace"!==t.getSelectedNamespaceRules().namespaceName),n.Ab(3),n.Lc(" ",n.fc(47,64,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),n.Ab(3),n.Lc(" ",n.fc(50,66,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),n.Ab(2),n.kc("disabled",null===t.passwordReset),n.Ab(1),n.Lc(" ",n.fc(53,68,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),n.Ab(6),n.Kc(n.fc(59,70,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),n.Ab(2),n.kc("expiration",t.expiration),n.Ab(3),n.Lc(" ",n.fc(64,72,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),n.Ab(3),n.Lc(" ",n.fc(67,74,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),n.Ab(2),n.kc("disabled",null===t.expiration),n.Ab(1),n.Lc("",n.fc(70,76,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),n.Ab(6),n.Kc(n.fc(76,78,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),n.Ab(2),n.kc("ngModel",t.groupAssignment),n.Ab(2),n.Lc(" ",n.fc(80,80,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),n.Ab(2),n.lc("matTooltip",n.fc(82,82,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),n.kc("matTooltipDisabled",!t.manualMemberAddingBlocked&&t.createGroupAuth),n.Ab(2),n.kc("disabled",t.manualMemberAddingBlocked||!t.createGroupAuth),n.Ab(1),n.Lc(" ",n.fc(85,84,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),n.Ab(2),n.lc("matTooltip",n.fc(87,86,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),n.kc("matTooltipDisabled",!t.manualMemberAddingBlocked&&0!==t.assignableGroups.length),n.Ab(2),n.kc("disabled",t.manualMemberAddingBlocked||0===t.assignableGroups.length),n.Ab(1),n.Lc(" ",n.fc(90,88,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),n.Ab(2),n.kc("ngIf","none"===t.groupAssignment),n.Ab(1),n.kc("ngIf","new"===t.groupAssignment),n.Ab(1),n.kc("ngIf","existing"===t.groupAssignment),n.Ab(3),n.Lc(" ",n.fc(97,90,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),n.Ab(3),n.Lc(" ",n.fc(100,92,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),n.Ab(2),n.kc("disabled",null===t.groupAssignment||"existing"===t.groupAssignment&&0===t.selection.selected.length||"new"===t.groupAssignment&&(0===t.name.length||0===t.description.length)||!0===t.asSubGroup&&null===t.parentGroup),n.Ab(1),n.Lc(" ",n.fc(103,94,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function Z(t,e){1&t&&(n.Sb(0,"th",53),n.Jc(1,"name"),n.Rb())}function Y(t,e){if(1&t&&(n.Sb(0,"td",54),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.name)}}function $(t,e){1&t&&(n.Sb(0,"th",53),n.Jc(1,"status"),n.Rb())}function X(t,e){if(1&t&&(n.Sb(0,"td",54),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.status)}}function Q(t,e){1&t&&(n.Sb(0,"th",53),n.Jc(1,"login"),n.Rb())}function tt(t,e){if(1&t&&(n.Sb(0,"td",54),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.login)}}function et(t,e){1&t&&(n.Sb(0,"th",53),n.Jc(1,"password"),n.Rb())}function it(t,e){if(1&t&&(n.Sb(0,"td",54),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.password)}}function nt(t,e){1&t&&n.Nb(0,"tr",55)}function st(t,e){1&t&&n.Nb(0,"tr",56)}let ot=(()=>{class t{constructor(t,e,i,s,o,r,a,l,u,f,g){this.dialogRef=t,this.data=e,this.store=i,this.membersService=s,this.notificator=o,this.translate=r,this.guiAuthResolver=a,this.groupsService=l,this.attributesService=u,this.formBuilder=f,this.tableConfigService=g,this.page=new n.o,this.loading=!1,this.dataSource=new c.o,this.outputColumns=["name","status","login","password"],this.functionalityNotSupported=!1,this.emailRegx=/^(([^<>+()\[\]\\.,;:\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]{2,3}))$/,this.namespaceOptions=[],this.namespaceRules=[],this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new h.c(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=p.jb,this.groupAttrNames=[d.a.GROUP_SYNC_ENABLED,d.a.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",a.F.required],sponsoredMembers:["",[a.F.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:t=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(t=>{this.manualMemberAddingBlocked=this.hasAttributeEnabled(t,"blockManualMemberAdding"),!0!==this.manualMemberAddingBlocked?this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(t=>{this.allVoGroups=t.filter(t=>"members"!==t.name),this.assignableGroups=this.filterAssignableGroups(t),this.membersService.getAllNamespacesRules().subscribe(t=>{this.store.get("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(t),this.namespaceRules.forEach(t=>this.namespaceOptions.push(t.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1})},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1)}filterAssignableGroups(t){const e=[];for(const i of t)this.hasAttributeEnabled(i.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(i.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[i])||e.push(i);return e}hasAttributeEnabled(t,e){return t.some(t=>t.friendlyName===e&&null!==t.value&&"true"===t.value.toString())}createOutputObjects(t){let e="",i="",n="",s="";const o=[];for(const r of Object.keys(t)){e=r.replace(";"," ").split(";")[0];for(const e of Object.keys(t[r]))switch(e){case"status":i=t[r][e];break;case"login":n=t[r][e];break;case"password":s=t[r][e]}o.push({name:e,status:i,login:n,password:s})}return o}exportData(t){this.dataSource.data=this.createOutputObjects(t),Object(f.i)(this.dataSource.data,"csv","member-logins")}onGenerate(){this.loading=!0;const t=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),e=this.getSelectedNamespaceRules().csvGenHeader,i=[];for(const s of t){const t=this.parseMemberLine(s);if("format"===t||"email"===t)return void(this.loading=!1);""!==t&&i.push(t)}const n={data:i,header:e,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(n.groups=this.groupIds),"never"!==this.expiration&&(n.validityTo=Object(u.I)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(n.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(n).subscribe(t=>{this.exportData(t),this.notificator.showSuccess(this.translate.instant("DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}parseMemberLine(t){const e=t.trim();if(""===e)return"";const i=e.split(";"),n=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(i.length!==n.length)return"format";if("mail"===n[2].slice(n[2].length-4).toLowerCase()&&!i[2].trim().match(this.emailRegx))return"email";if("login"===n[3]&&""===i[3].trim())return"login";let s="";for(const o of i)s+=o.trim()+";";return s.slice(0,-1)}userInputValidator(){return t=>{const e=t.value.split("\n");for(const i of e){const t=this.parseMemberLine(i);if("format"===t)return{invalidFormat:{value:i}};if("email"===t)return{invalidEmail:{value:i}};if("login"===t)return{invalidLogin:{value:i}}}return null}}ngAfterViewInit(){this.dataSource.paginator=this.paginator}pageChanged(t){this.page.emit(t)}setExpiration(t){this.expiration="never"===t?"never":Object(u.I)(t,"yyyy-MM-dd","en-GB")}groupTablePageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}groupAssigmentChanged(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}onSubmit(){this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(t=>t.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(t=>t.namespaceName===this.usersInfoFormGroup.get("namespace").value)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.i),n.Mb(s.a),n.Mb(r.m),n.Mb(o.i),n.Mb(r.l),n.Mb(g.e),n.Mb(r.h),n.Mb(o.h),n.Mb(o.c),n.Mb(a.f),n.Mb(p.pb))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(t,e){var i;1&t&&n.Qc(l.a,!0),2&t&&n.sc(i=n.ac())&&(e.paginator=i.first)},outputs:{page:"page"},decls:22,vars:14,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-table","",1,"w-100",3,"hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","login"],["matColumnDef","password"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"hidden","length","pageSize","page"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"font-weight-bold"],[1,"pt-2"],["id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","rows","8","cols","50","matInput","","formControlName","sponsoredMembers",1,"md-textarea","form-control",3,"placeholder"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent","matStepperNext","",3,"disabled"],[3,"expiration","datePicker"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled","click"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","nameChanged","descriptionChanged","parentGroupChanged","asSubgroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","hideColumns","disableRouting","pageSize","filter","page"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"h1",0),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Hc(4,O,1,0,"mat-spinner",1),n.Hc(5,W,104,96,"div",2),n.Sb(6,"table",3),n.Qb(7,4),n.Hc(8,Z,2,0,"th",5),n.Hc(9,Y,2,1,"td",6),n.Pb(),n.Qb(10,7),n.Hc(11,$,2,0,"th",5),n.Hc(12,X,2,1,"td",6),n.Pb(),n.Qb(13,8),n.Hc(14,Q,2,0,"th",5),n.Hc(15,tt,2,1,"td",6),n.Pb(),n.Qb(16,9),n.Hc(17,et,2,0,"th",5),n.Hc(18,it,2,1,"td",6),n.Pb(),n.Hc(19,nt,1,0,"tr",10),n.Hc(20,st,1,0,"tr",11),n.Rb(),n.Sb(21,"mat-paginator",12),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb()),2&t&&(n.Cb(e.theme),n.Ab(2),n.Kc(n.fc(3,12,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),n.Ab(2),n.kc("ngIf",e.loading),n.Ab(1),n.kc("ngIf",!e.loading),n.Ab(1),n.kc("hidden",!0),n.Ab(13),n.kc("matHeaderRowDef",e.outputColumns),n.Ab(1),n.kc("matRowDefColumns",e.outputColumns),n.Ab(1),n.kc("hidden",!0)("length",e.dataSource.data.length)("pageSize",100))},directives:[s.j,u.t,c.n,c.c,c.i,c.b,c.k,c.m,l.a,b.c,s.g,m.a,m.b,m.d,a.H,a.s,a.j,A.c,y.a,a.C,a.r,a.i,u.s,A.g,w.b,a.c,s.c,v.b,m.h,m.i,_.a,S.b,a.u,S.a,E.a,R.a,C.n,A.b,T.a,k.a,I.a,c.h,c.a,c.j,c.l],pipes:[g.d],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})()},jOdJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("VxHp"),s=i("xVbo"),o=i("J+dc"),r=i("iqFP"),a=i("fbWu"),c=i("5E2i");function l(t,e){const i=arguments.length>=2;return l=>l.pipe(t?Object(s.a)((e,i)=>t(e,i,l)):c.a,Object(o.a)(1),i?Object(r.a)(e):Object(a.a)(()=>new n.a))}},jjFd:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("OZ4H"),s=i("EM62"),o=i("2kYt"),r=i("s2Ay");let a=(()=>{class t{constructor(t,e){this.data=t,this.location=e}ngOnInit(){}redirect(){this.location.go("/"),location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.a),s.Mb(o.n))},t.\u0275cmp=s.Gb({type:t,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.Sb(0,"h2"),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"p"),s.Jc(4),s.ec(5,"translate"),s.Rb(),s.Sb(6,"div"),s.Sb(7,"button",0),s.Zb("click",(function(){return e.redirect()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,3,e.data.title),"\n"),s.Ab(3),s.Lc(" ",s.fc(5,5,e.data.message),"\n"),s.Ab(4),s.Lc(" ",s.fc(9,7,e.data.action)," "))},pipes:[r.d],styles:[""]}),t})()},jk8c:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"th",14)}function p(t,e){if(1&t&&(a.Sb(0,"td",15),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Mc(" ",t.firstName," ",t.lastName,"")}}function f(t,e){1&t&&a.Nb(0,"tr",16)}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){if(1&t&&(a.Sb(0,"div",6),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",7),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",8),a.Qb(8,9),a.Hc(9,d,1,0,"th",10),a.Hc(10,p,2,2,"td",11),a.Pb(),a.Hc(11,f,1,0,"tr",12),a.Hc(12,g,1,0,"tr",13),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_MANAGERS.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}function m(t,e){1&t&&a.Nb(0,"mat-spinner",18)}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.authzService=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new s.o(this.data.managers),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(t=>t.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(c.e),a.Mb(r.d))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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",""],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,b,13,9,"div",1),a.Hc(5,m,1,0,"mat-spinner",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),a.Ab(2),a.kc("ngIf",!e.loading),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l,h.c],pipes:[c.d],styles:[""]}),t})()},jqZM:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),s=i("8clQ"),o=i("LAw4"),r=i("s2Ay");let a=(()=>{class t{constructor(){this.disableAutoSelect=!1,this.userSelected=new n.o,this.userFullNameFunction=s.w}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.userSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.fc(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.fc(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.fc(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.a],pipes:[r.d],styles:[""]}),t})()},k8N0:function(t,e,i){"use strict";i.d(e,"a",(function(){return _})),i.d(e,"b",(function(){return T})),i.d(e,"c",(function(){return E}));var n=i("TKFd"),s=i("EM62"),o=i("mFH5"),r=i("5XID"),a=i("nIj0"),c=i("5lCh"),l=i("sg/T"),u=i("E5oP");const h=["thumbContainer"],d=["toggleBar"],p=["input"],f=function(){return{enterDuration:150}},g=["*"],b=new s.r("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let m=0;const A={provide:a.p,useExisting:Object(s.U)(()=>_),multi:!0};class y{constructor(t,e){this.source=t,this.checked=e}}class w{constructor(t){this._elementRef=t}}const v=Object(o.D)(Object(o.y)(Object(o.z)(Object(o.A)(w)),"accent"));let _=(()=>{class t extends v{constructor(t,e,i,n,o,r,a,c){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=r,this._animationMode=a,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++m,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.o,this.toggleChange=new s.o,this.dragChange=new s.o,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=Object(r.c)(t)}get checked(){return this._checked}set checked(t){this._checked=Object(r.c)(t),this._changeDetectorRef.markForCheck()}get inputId(){return(this.id||this._uniqueId)+"-input"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new y(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(l.h),s.Mb(s.h),s.Xb("tabindex"),s.Mb(s.A),s.Mb(b),s.Mb(c.a,8),s.Mb(u.c,8))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(s.Qc(h,!0),s.Qc(d,!0),s.Qc(p,!0)),2&t&&(s.sc(i=s.ac())&&(e._thumbEl=i.first),s.sc(i=s.ac())&&(e._thumbBarEl=i.first),s.sc(i=s.ac())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Vb("id",e.id),s.Bb("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.Eb("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[s.zb([A]),s.xb],ngContentSelectors:g,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.jc(),s.Sb(0,"label",0,1),s.Sb(2,"div",2,3),s.Sb(4,"input",4,5),s.Zb("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Rb(),s.Sb(6,"div",6,7),s.Nb(8,"div",8),s.Sb(9,"div",9),s.Nb(10,"div",10),s.Rb(),s.Rb(),s.Rb(),s.Sb(11,"span",11,12),s.Zb("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Sb(13,"span",13),s.Jc(14,"\xa0"),s.Rb(),s.ic(15),s.Rb(),s.Rb()),2&t){const t=s.tc(1),i=s.tc(12);s.Bb("for",e.inputId),s.Ab(2),s.Eb("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.Ab(2),s.kc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.Bb("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.Ab(5),s.kc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.oc(17,f))}},directives:[o.s,n.a],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})();const S={provide:a.o,useExisting:Object(s.U)(()=>E),multi:!0};let E=(()=>{class t extends a.b{}return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[s.zb([S]),s.xb]}),t})();const R=s.Ub(E);let C=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})(),T=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[C,o.t,o.i,n.c],C,o.i]}),t})()},kLAD:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.friendlyName," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Kc(a.fc(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.serviceManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new r.o(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.serviceManager.removeRequiredAttributes(this.serviceId,t).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},t=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(n.n),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onConfirm()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),a.Ab(2),a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL"),""),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE"),""))},directives:[s.j,l.t,s.c,u.b,h.c,s.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t})()},kdIE:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62");let s=(()=>{class t{transform(t,e){if(null===t)return null;const i=t;return i.substring(i.lastIndexOf(".")+1,i.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"attributeTypeClean",type:t,pure:!0}),t})()},kuMc:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("pBDD"),s=i("mW0F");function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const i=new a(t),n=Object(s.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class a extends n.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},l18O:function(t,e,i){"use strict";i.d(e,"a",(function(){return Q}));var n=i("EM62"),s=i("cePI"),o=i("iAde"),r=i("8clQ"),a=i("+0js"),c=i("Ssnw"),l=i("g6G6"),u=i("8j5Y"),h=i("OZ4H"),d=i("2kYt"),p=i("FlRo"),f=i("csyo"),g=i("+Tre"),b=i("Y2X+"),m=i("sEIs"),A=i("TQS+"),y=i("FcRk"),w=i("s2Ay"),v=i("j+u3"),_=i("C5kn"),S=i("yAs8"),E=i("RK/0"),R=i("IBaA"),C=i("NZNE"),T=i("Log1");function k(t,e){1&t&&(n.Sb(0,"div",23),n.Nb(1,"mat-spinner",24),n.Rb())}function I(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",25),n.Sb(1,"mat-checkbox",26),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function O(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",27),n.Sb(1,"mat-checkbox",28),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function D(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.ID")))}function M(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function P(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.NAME")))}function x(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.user))}}function N(t,e){1&t&&n.Nb(0,"div")}function L(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function F(t,e){1&t&&n.Hc(0,L,3,3,"th",6)}function z(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.STATUS")))}function H(t,e){1&t&&n.Hc(0,z,3,3,"th",6)}function B(t,e){if(1&t&&(n.Sb(0,"span"),n.Jc(1),n.ec(2,"memberStatusIcon"),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Lc(" ",n.fc(2,1,t.status)," ")}}function j(t,e){if(1&t&&(n.Sb(0,"span"),n.Jc(1),n.ec(2,"memberStatusIcon"),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Lc(" ",n.fc(2,1,t.groupStatus)," ")}}function G(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",30),n.Sb(1,"i",31),n.Zb("click",(function(i){n.xc(t);const s=e.$implicit;return n.dc().changeStatus(i,s)})),n.ec(2,"memberStatusIconColor"),n.ec(3,"memberStatusIconColor"),n.ec(4,"memberStatusTooltip"),n.Hc(5,B,3,3,"span",32),n.Hc(6,j,3,3,"span",32),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.Db("material-icons ",i.showGroupStatuses?n.fc(2,6,t.groupStatus):n.fc(3,8,t.status),""),n.lc("matTooltip",n.gc(4,10,t,i.showGroupStatuses)),n.Ab(4),n.kc("ngIf",!i.showGroupStatuses),n.Ab(1),n.kc("ngIf",i.showGroupStatuses)}}function U(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.ORGANIZATION")))}function K(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberOrganization"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function V(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.EMAIL")))}function q(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberEmail"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function J(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.LOGINS")))}function W(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberLogins"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function Z(t,e){1&t&&n.Nb(0,"tr",33)}const Y=function(t,e){return["/organizations",t,"members",e]};function $(t,e){if(1&t&&n.Nb(0,"tr",34),2&t){const t=e.$implicit,i=n.dc();n.Eb("disable-outline",!i.dataSource.routeAuth)("cursor-pointer",i.dataSource.routeAuth),n.kc("routerLink",i.dataSource.routeAuth?n.qc(6,Y,t.voId,t.id):null)("perunWebAppsMiddleClickRouterLink",i.dataSource.routeAuth?n.qc(9,Y,t.voId,t.id):null)}}function X(t,e){1&t&&(n.Sb(0,"app-alert",35),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.kc("alert_type","warn"),n.Ab(1),n.Lc(" ",n.fc(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let Q=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.dynamicPaginatingService=s,this.hideColumns=[],this.pageSize=10,this.page=new n.o,this.updateTable=new n.o,this.exporting=!1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.pageSizeOptions=r.a}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),Object(l.a)(this.sort.sortChange,this.paginator.page).pipe(Object(u.a)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new c.j(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.pageSize,"NAME")}isAllSelected(){return this.selection.selected.length===this.pageSize}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e){if(t.stopPropagation(),"INVALID"===e.status){const t=Object(r.o)();t.width="500px",t.data={member:e},this.dialog.open(a.e,t).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}pageChanged(t){this.page.emit(t)}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.paginator.pageIndex,this.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID")}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(h.b),n.Mb(c.h),n.Mb(c.n),n.Mb(c.f))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){var i;1&t&&(n.Qc(o.a,!0),n.Qc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.paginator=i.first),n.sc(i=n.ac())&&(e.sort=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",voId:"voId",attrNames:"attrNames"},outputs:{page:"page",updateTable:"updateTable"},decls:37,vars:18,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","position-relative"],["class","spinner-container",4,"ngIf"],[1,"overflow-auto","table-container"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fullName"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],[4,"ngIf","ngIfThen","ngIfElse"],["thenHeader",""],["elseHeader",""],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],[4,"ngIf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(t,e){if(1&t&&(n.Sb(0,"div",0),n.ec(1,"async"),n.Sb(2,"div",1),n.Hc(3,k,2,0,"div",2),n.ec(4,"async"),n.Sb(5,"div",3),n.Sb(6,"table",4),n.Qb(7,5),n.Hc(8,I,2,3,"th",6),n.Hc(9,O,2,2,"td",7),n.Pb(),n.Qb(10,8),n.Hc(11,D,3,3,"th",9),n.Hc(12,M,2,1,"td",7),n.Pb(),n.Qb(13,10),n.Hc(14,P,3,3,"th",9),n.Hc(15,x,3,3,"td",11),n.Pb(),n.Qb(16,12),n.Hc(17,N,1,0,"div",13),n.Hc(18,F,1,0,"ng-template",null,14,n.Ic),n.Hc(20,H,1,0,"ng-template",null,15,n.Ic),n.Hc(22,G,7,13,"td",11),n.Pb(),n.Qb(23,16),n.Hc(24,U,3,3,"th",6),n.Hc(25,K,3,3,"td",11),n.Pb(),n.Qb(26,17),n.Hc(27,V,3,3,"th",6),n.Hc(28,q,3,3,"td",11),n.Pb(),n.Qb(29,18),n.Hc(30,J,3,3,"th",6),n.Hc(31,W,3,3,"td",11),n.Pb(),n.Hc(32,Z,1,0,"tr",19),n.Hc(33,$,1,12,"tr",20),n.Rb(),n.Rb(),n.Sb(34,"mat-paginator",21),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(35,X,3,4,"app-alert",22),n.ec(36,"async")),2&t){const t=n.tc(19),i=n.tc(21);n.kc("hidden",0===e.dataSource.allMemberCount&&!1===n.fc(1,12,e.dataSource.loading$)),n.Ab(3),n.kc("ngIf",n.fc(4,14,e.dataSource.loading$)),n.Ab(3),n.kc("dataSource",e.dataSource),n.Ab(11),n.kc("ngIf",e.showGroupStatuses)("ngIfThen",t)("ngIfElse",i),n.Ab(15),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.dataSource.allMemberCount)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.allMemberCount&&!1===n.fc(36,16,e.dataSource.loading$))}},directives:[d.t,p.n,s.a,p.c,p.i,p.b,p.k,p.m,o.a,f.c,p.h,g.a,p.a,s.b,b.a,p.j,p.l,m.g,A.c,y.a],pipes:[d.b,w.d,v.a,_.a,S.a,E.a,R.a,C.a,T.a],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.table-container[_ngcontent-%COMP%]{position:relative;overflow:auto}"]}),t})()},lQ7A:function(t,e,i){"use strict";i.d(e,"a",(function(){return H})),i.d(e,"b",(function(){return B})),i.d(e,"c",(function(){return z})),i.d(e,"d",(function(){return G})),i.d(e,"e",(function(){return K})),i.d(e,"f",(function(){return j})),i.d(e,"g",(function(){return q}));var n=i("cZZj"),s=i("qvOF"),o=i("2kYt"),r=i("EM62"),a=i("mFH5"),c=i("5XID"),l=i("fAiE"),u=i("ZTXN"),h=i("KTx3"),d=i("g6G6"),p=i("xVbo"),f=i("kuMc"),g=i("Ohay"),b=i("YtkY"),m=i("J+dc"),A=i("jIqt"),y=i("mWib"),w=i("f7+R"),v=i("5lCh"),_=i("sg/T"),S=i("E5oP");const E=["*"];function R(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div",2),r.Zb("click",(function(){return r.xc(t),r.dc()._onBackdropClicked()})),r.Rb()}if(2&t){const t=r.dc();r.Eb("mat-drawer-shown",t._isShowingBackdrop())}}function C(t,e){1&t&&(r.Sb(0,"mat-drawer-content"),r.ic(1,2),r.Rb())}const T=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],k=["mat-drawer","mat-drawer-content","*"];function I(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div",2),r.Zb("click",(function(){return r.xc(t),r.dc()._onBackdropClicked()})),r.Rb()}if(2&t){const t=r.dc();r.Eb("mat-drawer-shown",t._isShowingBackdrop())}}function O(t,e){1&t&&(r.Sb(0,"mat-sidenav-content",3),r.ic(1,2),r.Rb())}const D=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],M=["mat-sidenav","mat-sidenav-content","*"],P=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",x={transformDrawer:Object(w.n)("transform",[Object(w.k)("open, open-instant",Object(w.l)({transform:"none",visibility:"visible"})),Object(w.k)("void",Object(w.l)({"box-shadow":"none",visibility:"hidden"})),Object(w.m)("void => open-instant",Object(w.e)("0ms")),Object(w.m)("void <=> open, open-instant => void",Object(w.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function N(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const L=new r.r("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),F=new r.r("MAT_DRAWER_CONTAINER");let z=(()=>{class t extends s.b{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.h),r.Mb(Object(r.U)(()=>B)),r.Mb(r.l),r.Mb(s.f),r.Mb(r.A))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Ec("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.xb],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(r.jc(),r.ic(0))},encapsulation:2,changeDetection:0}),t})(),H=(()=>{class t{constructor(t,e,i,n,s,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new u.a,this._animationEnd=new u.a,this._animationState="void",this.openedChange=new r.o(!0),this._destroyed=new u.a,this.onPositionChanged=new r.o,this._modeChanged=new u.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(h.a)(this._elementRef.nativeElement,"keydown").pipe(Object(p.a)(t=>t.keyCode===l.h&&!this.disableClose&&!Object(l.t)(t)),Object(f.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(g.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(c.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(c.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(c.c)(t))}get _openedStream(){return this.openedChange.pipe(Object(p.a)(t=>t),Object(b.a)(()=>{}))}get openedStart(){return this._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(b.a)(()=>{}))}get _closedStream(){return this.openedChange.pipe(Object(p.a)(t=>!t),Object(b.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState&&"void"===t.toState),Object(b.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(m.a)(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(_.i),r.Mb(_.h),r.Mb(n.a),r.Mb(r.A),r.Mb(o.e,8),r.Mb(F,8))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&r.Fc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(r.Bb("align",null),r.Gc("@transform",e._animationState),r.Eb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.jc(),r.Sb(0,"div",0),r.ic(1),r.Rb())},encapsulation:2,data:{animation:[x.transformDrawer]},changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,s,o=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new r.E,this.backdropClick=new r.o,this._destroyed=new u.a,this._doCheckSubject=new u.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new u.a,t&&t.change.pipe(Object(f.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Object(f.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(c.c)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(c.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(A.a)(this._allDrawers),Object(f.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(A.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Object(y.a)(10),Object(f.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const i=this._left._width;t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const i=this._right._width;e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState),Object(f.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(f.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(f.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(m.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(f.a)(Object(d.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&N("end"),this._end=t):(null!=this._start&&N("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(S.c,8),r.Mb(r.l),r.Mb(r.A),r.Mb(r.h),r.Mb(s.h),r.Mb(L),r.Mb(v.a,8))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(r.Fb(i,z,!0),r.Fb(i,H,!0)),2&t&&(r.sc(n=r.ac())&&(e._content=n.first),r.sc(n=r.ac())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&r.Qc(z,!0),2&t&&r.sc(i=r.ac())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.Eb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[r.zb([{provide:F,useExisting:t}])],ngContentSelectors:k,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(r.jc(T),r.Hc(0,R,1,2,"div",0),r.ic(1),r.ic(2,1),r.Hc(3,C,2,0,"mat-drawer-content",1)),2&t&&(r.kc("ngIf",e.hasBackdrop),r.Ab(3),r.kc("ngIf",!e._content))},directives:[o.t,z],styles:[P],encapsulation:2,changeDetection:0}),t})(),j=(()=>{class t extends z{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.h),r.Mb(Object(r.U)(()=>K)),r.Mb(r.l),r.Mb(s.f),r.Mb(r.A))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Ec("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.xb],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(r.jc(),r.ic(0))},encapsulation:2,changeDetection:0}),t})(),G=(()=>{class t extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(c.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(c.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(c.f)(t)}}return t.\u0275fac=function(e){return U(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(r.Bb("align",null),r.Ec("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),r.Eb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[r.xb],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.jc(),r.Sb(0,"div",0),r.ic(1),r.Rb())},encapsulation:2,data:{animation:[x.transformDrawer]},changeDetection:0}),t})();const U=r.Ub(G);let K=(()=>{class t extends B{}return t.\u0275fac=function(e){return V(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(r.Fb(i,j,!0),r.Fb(i,G,!0)),2&t&&(r.sc(n=r.ac())&&(e._content=n.first),r.sc(n=r.ac())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.Eb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[r.zb([{provide:F,useExisting:t}]),r.xb],ngContentSelectors:M,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(r.jc(D),r.Hc(0,I,1,2,"div",0),r.ic(1),r.ic(2,1),r.Hc(3,O,2,0,"mat-sidenav-content",1)),2&t&&(r.kc("ngIf",e.hasBackdrop),r.Ab(3),r.kc("ngIf",!e._content))},directives:[o.t,j,s.b],styles:[P],encapsulation:2,changeDetection:0}),t})();const V=r.Ub(K);let q=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[o.c,a.i,n.b,s.c],s.c,a.i]}),t})()},mEf3:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.displayName," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"div"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.attributesManager=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new s.o(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeGroupAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeUserAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,t).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(c.e),a.Mb(r.c))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l],pipes:[c.d],styles:[""]}),t})()},mFH5:function(t,e,i){"use strict";i.d(e,"a",(function(){return y})),i.d(e,"b",(function(){return w})),i.d(e,"c",(function(){return D})),i.d(e,"d",(function(){return U})),i.d(e,"e",(function(){return M})),i.d(e,"f",(function(){return mt})),i.d(e,"g",(function(){return dt})),i.d(e,"h",(function(){return tt})),i.d(e,"i",(function(){return S})),i.d(e,"j",(function(){return K})),i.d(e,"k",(function(){return J})),i.d(e,"l",(function(){return G})),i.d(e,"m",(function(){return ct})),i.d(e,"n",(function(){return pt})),i.d(e,"o",(function(){return bt})),i.d(e,"p",(function(){return ht})),i.d(e,"q",(function(){return nt})),i.d(e,"r",(function(){return st})),i.d(e,"s",(function(){return et})),i.d(e,"t",(function(){return it})),i.d(e,"u",(function(){return H})),i.d(e,"v",(function(){return Q})),i.d(e,"w",(function(){return ft})),i.d(e,"x",(function(){return gt})),i.d(e,"y",(function(){return R})),i.d(e,"z",(function(){return C})),i.d(e,"A",(function(){return E})),i.d(e,"B",(function(){return k})),i.d(e,"C",(function(){return I})),i.d(e,"D",(function(){return T})),i.d(e,"E",(function(){return V}));var n=i("EM62"),s=i("sg/T"),o=i("E5oP");const r=new n.P("9.2.4");var a=i("2kYt"),c=i("5XID"),l=i("ZTXN"),u=i("IdLP"),h=i("cZZj"),d=(i("e4iD"),i("jIqt")),p=i("5lCh"),f=i("fAiE");const g=["*",[["mat-option"],["ng-container"]]],b=["*","mat-option, ng-container"];function m(t,e){if(1&t&&n.Nb(0,"mat-pseudo-checkbox",3),2&t){const t=n.dc();n.kc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const A=["*"];let y=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),w=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const v=new n.P("9.2.4"),_=new n.r("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let S=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(n.W)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);const n=getComputedStyle(i);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&v.full!==r.full&&console.warn("The Angular Material version ("+v.full+") does not match the Angular CDK version ("+r.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)(n.Wb(s.j),n.Wb(_,8),n.Wb(a.e,8))},imports:[[o.a],o.a]}),t})();function E(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}}}function R(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),i&&this._elementRef.nativeElement.classList.add("mat-"+i),this._color=i)}}}function C(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(c.c)(t)}}}function T(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function I(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new u.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const O=new n.r("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(n.V)(n.v)}});class D{constructor(){this._localeChanges=new l.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const M=new n.r("mat-date-formats");let P;try{P="undefined"!=typeof Intl}catch(At){P=!1}const x={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},N=z(31,t=>String(t+1)),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},F=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(t,e){const i=Array(t);for(let n=0;n{class t extends D{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return z(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return x[t]}getDateNames(){if(P){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return z(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return N}getDayOfWeekNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return z(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return L[t]}getYearName(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(P){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(F.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(O,8),n.Wb(h.a))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[{provide:D,useClass:H}],imports:[[h.b]]}),t})();const j={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 G=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[{provide:M,useValue:j}],imports:[[B]]}),t})(),U=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function V(t,e,i="mat"){t.changes.pipe(Object(d.a)(t)).subscribe(({length:t})=>{q(e,i+"-2-line",!1),q(e,i+"-3-line",!1),q(e,i+"-multi-line",!1),2===t||3===t?q(e,`${i}-${t}-line`,!0):t>3&&q(e,i+"-multi-line",!0)})}function q(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let J=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[S],S]}),t})();class W{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Z={enterDuration:450,exitDuration:400},Y=Object(h.f)({passive:!0}),$=["mousedown","touchstart"],X=["mouseup","mouseleave","touchend","touchcancel"];class Q{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Object(c.e)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Z),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=r-o+"px",l.style.top=a-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const u=new W(this,l,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,i.persistent||t&&this._isPointerDown||u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Z),t.config.animation);i.style.transitionDuration=n.exitDuration+"ms",i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(c.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents($))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(X),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(s.l)(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Y)})})}_removeTriggerEvents(){this._triggerElement&&($.forEach(t=>{this._triggerElement.removeEventListener(t,this,Y)}),this._pointerUpEventsRegistered&&X.forEach(t=>{this._triggerElement.removeEventListener(t,this,Y)}))}}const tt=new n.r("mat-ripple-global-options");let et=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Q(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.A),n.Mb(h.a),n.Mb(tt,8),n.Mb(p.a,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.Eb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),it=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[S,h.b],S]}),t})(),nt=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(p.a,8))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.Eb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),st=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})();class ot{}const rt=E(ot);let at=0,ct=(()=>{class t extends rt{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+at++}}return t.\u0275fac=function(e){return lt(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(n.Bb("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),n.Eb("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[n.xb],ngContentSelectors:b,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(n.jc(g),n.Sb(0,"label",0),n.Jc(1),n.ic(2),n.Rb(),n.ic(3,1)),2&t&&(n.kc("id",e._labelId),n.Ab(1),n.Lc("",e.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const lt=n.Ub(ct);let ut=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const dt=new n.r("MAT_OPTION_PARENT_COMPONENT");let pt=(()=>{class t{constructor(t,e,i,s){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ut++,this.onSelectionChange=new n.o,this._stateChanges=new l.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==f.g&&t.keyCode!==f.o||Object(f.t)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ht(this,t))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.h),n.Mb(dt,8),n.Mb(ct,8))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.Zb("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(n.Vb("id",e.id),n.Bb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.Eb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:A,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(n.jc(),n.Hc(0,m,1,2,"mat-pseudo-checkbox",0),n.Sb(1,"span",1),n.ic(2),n.Rb(),n.Nb(3,"div",2)),2&t&&(n.kc("ngIf",e.multiple),n.Ab(3),n.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.t,et,nt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ft(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;ei+n?Math.max(0,s-n+e):i}let bt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[it,a.c,st]]}),t})();const mt=new n.r("mat-label-global-options")},mPlY:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("OZ4H"),s=i("FlRo"),o=i("X2Q7"),r=i("EM62"),a=i("2kYt"),c=i("PBFl"),l=i("csyo"),u=i("s2Ay");function h(t,e){1&t&&r.Nb(0,"mat-spinner",6)}function d(t,e){1&t&&r.Nb(0,"th",15)}function p(t,e){if(1&t&&(r.Sb(0,"td",16),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.Ab(1),r.Lc(" ",t.tagName," ")}}function f(t,e){1&t&&r.Nb(0,"tr",17)}function g(t,e){1&t&&r.Nb(0,"tr",18)}function b(t,e){if(1&t&&(r.Sb(0,"div",7),r.Sb(1,"p"),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Sb(4,"div",8),r.Jc(5),r.ec(6,"translate"),r.Rb(),r.Sb(7,"table",9),r.Qb(8,10),r.Hc(9,d,1,0,"th",11),r.Hc(10,p,2,1,"td",12),r.Pb(),r.Hc(11,f,1,0,"tr",13),r.Hc(12,g,1,0,"tr",14),r.Rb(),r.Rb()),2&t){const t=r.dc();r.Ab(2),r.Lc(" ",r.fc(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),r.Ab(3),r.Lc(" ",r.fc(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),r.Ab(2),r.kc("dataSource",t.dataSource),r.Ab(4),r.kc("matHeaderRowDef",t.displayedColumns),r.Ab(1),r.kc("matRowDefColumns",t.displayedColumns)}}let m=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.resourceManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.o(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const t of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:t}).subscribe(()=>{this.dialogRef.close(!0)},t=>this.dialogRef.close(!0))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.i),r.Mb(n.a),r.Mb(o.m))},t.\u0275cmp=r.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(r.Sb(0,"div"),r.Sb(1,"h1",0),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Hc(4,h,1,0,"mat-spinner",1),r.Hc(5,b,13,9,"div",2),r.Sb(6,"div",3),r.Sb(7,"button",4),r.Zb("click",(function(){return e.onCancel()})),r.Jc(8),r.ec(9,"translate"),r.Rb(),r.Sb(10,"button",5),r.Zb("click",(function(){return e.onSubmit()})),r.Jc(11),r.ec(12,"translate"),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Cb(e.theme),r.Ab(2),r.Kc(r.fc(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),r.Ab(2),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading),r.Ab(3),r.Lc(" ",r.fc(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),r.Ab(2),r.kc("disabled",e.loading),r.Ab(1),r.Lc(" ",r.fc(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[n.j,a.t,n.c,c.b,l.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l],pipes:[u.d],styles:[""]}),t})()},mSaU:function(t,e,i){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,(function(e){return t[e]}).bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(e){return s.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e}))):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then((function(i){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]}))},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then((function(e){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then((function(e){if(s.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys}))}))},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),s=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global;"string"!=typeof t&&(t=i.location.href);var o=t.lastIndexOf(e);o>=0&&(t=t.substr(o+1)),"?"===e&&(o=t.indexOf("#"))>=0&&(t=t.substr(0,o));for(var r,a={},c=/([^&=]+)=([^&]*)/g,l=0;r=c.exec(t);)if(a[decodeURIComponent(r[1])]=decodeURIComponent(r[2]),l++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var u in a)return a;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),s=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,s.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,s=e.metadataUrl,o=e.metadata,h=e.signingKeys,d=e.client_id,p=e.client_secret,f=e.response_type,g=void 0===f?l:f,b=e.scope,m=void 0===b?u:b,A=e.redirect_uri,y=e.post_logout_redirect_uri,w=e.prompt,v=e.display,_=e.max_age,S=e.ui_locales,E=e.acr_values,R=e.resource,C=e.response_mode,T=e.filterProtocolClaims,k=void 0===T||T,I=e.loadUserInfo,O=void 0===I||I,D=e.staleStateAge,M=void 0===D?900:D,P=e.clockSkew,x=void 0===P?300:P,N=e.userInfoJwtIssuer,L=void 0===N?"OP":N,F=e.stateStore,z=void 0===F?new r.WebStorageStateStore:F,H=e.ResponseValidatorCtor,B=void 0===H?a.ResponseValidator:H,j=e.MetadataServiceCtor,G=void 0===j?c.MetadataService:j,U=e.extraQueryParams,K=void 0===U?{}:U,V=e.extraTokenParams,q=void 0===V?{}:V;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=s,this._metadata=o,this._signingKeys=h,this._client_id=d,this._client_secret=p,this._response_type=g,this._scope=m,this._redirect_uri=A,this._post_logout_redirect_uri=y,this._prompt=w,this._display=v,this._max_age=_,this._ui_locales=S,this._acr_values=E,this._resource=R,this._response_mode=C,this._filterProtocolClaims=!!k,this._loadUserInfo=!!O,this._staleStateAge=M,this._clockSkew=x,this._userInfoJwtIssuer=L,this._stateStore=z,this._validator=new B(this),this._metadataService=new G(this),this._extraQueryParams="object"===(void 0===K?"undefined":n(K))?K:{},this._extraTokenParams="object"===(void 0===q?"undefined":n(q))?q:{}}return s(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),s=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,o=e.store,r=void 0===o?s.Global.localStorage:o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=r,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise((function(s,o){var r=new i._XMLHttpRequest;r.open("GET",t);var a=i._contentTypes,c=i._jwtHandler;r.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",r.status),200===r.status){var e=r.getResponseHeader("Content-Type");if(e){var i=a.find((function(t){if(e.startsWith(t))return!0}));if("application/jwt"==i)return void c(r).then(s,o);if(i)try{return void s(JSON.parse(r.responseText))}catch(s){return n.Log.error("JsonService.getJson: Error parsing JSON response",s.message),void o(s)}}o(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else o(Error(r.statusText+" ("+r.status+")"))},r.onerror=function(){n.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),r.setRequestHeader("Authorization","Bearer "+e)),r.send()}))},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise((function(s,o){var r=new i._XMLHttpRequest;r.open("POST",t);var a=i._contentTypes;r.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",r.status),200!==r.status){if(400===r.status&&(i=r.getResponseHeader("Content-Type"))&&a.find((function(t){if(i.startsWith(t))return!0})))try{var e=JSON.parse(r.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void o(new Error(e.error))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void o(s)}o(Error(r.statusText+" ("+r.status+")"))}else{var i;if((i=r.getResponseHeader("Content-Type"))&&a.find((function(t){if(i.startsWith(t))return!0})))try{return void s(JSON.parse(r.responseText))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void o(s)}o(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},r.onerror=function(){n.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var c="";for(var l in e){var u=e[l];u&&(c.length>0&&(c+="&"),c+=encodeURIComponent(l),c+="=",c+=encodeURIComponent(u))}r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(c)}))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,s=e.created,r=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,o.default)(),this._data=n,this._created="number"==typeof s&&s>0?s:parseInt(Date.now()/1e3),this._request_type=r}return t.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return s.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then((function(i){s.Log.debug("State.clearStaleState: got keys",i);for(var o=[],r=function(r){var a=i[r];c=e.get(a).then((function(i){var o=!1;if(i)try{var r=t.fromStorageString(i);s.Log.debug("State.clearStaleState: got item from key: ",a,r.created),r.created<=n&&(o=!0)}catch(t){s.Log.error("State.clearStaleState: Error parsing state for key",a,t.message),o=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",a),o=!0;if(o)return s.Log.debug("State.clearStaleState: removed item for key: ",a),e.remove(a)})),o.push(c)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof o.OidcClientSettings?e:new o.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,o=e.redirect_uri,r=e.data,c=e.state,l=e.prompt,u=e.display,h=e.max_age,d=e.ui_locales,p=e.id_token_hint,f=e.login_hint,g=e.acr_values,b=e.resource,m=e.request,A=e.request_uri,y=e.response_mode,w=e.extraQueryParams,v=e.extraTokenParams,_=e.request_type,S=e.skipUserInfo,E=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var R=this._settings.client_id;n=n||this._settings.scope,o=o||this._settings.redirect_uri,l=l||this._settings.prompt,u=u||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,b=b||this._settings.resource,y=y||this._settings.response_mode,w=w||this._settings.extraQueryParams,v=v||this._settings.extraTokenParams;var C=this._settings.authority;return a.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then((function(e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var T=new a.SigninRequest({url:e,client_id:R,redirect_uri:o,response_type:i,scope:n,data:r||c,authority:C,prompt:l,display:u,max_age:h,ui_locales:d,id_token_hint:p,login_hint:f,acr_values:g,resource:b,request:m,request_uri:A,extraQueryParams:w,extraTokenParams:v,request_type:_,response_mode:y,client_secret:t._settings.client_secret,skipUserInfo:S}),k=T.state;return(E=E||t._stateStore).set(k.id,k.toStorageString()).then((function(){return T}))}))},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new c.SigninResponse(t,n);return o.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o.state).then((function(t){if(!t)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:o}}))):(s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then((function(t){var e=t.state,n=t.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)}))},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,o=e.state,r=e.post_logout_redirect_uri,a=e.extraQueryParams,c=e.request_type,u=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),r=r||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(e){if(!e)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new l.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:r,data:n||o,extraQueryParams:a,request_type:c}),d=h.state;return d&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(u=u||t._stateStore).set(d.id,d.toStorageString())),h}))},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var n=new u.SignoutResponse(t);if(!n.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new r.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var o=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o).then((function(t){if(!t)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}}))},t.prototype.processSignoutResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then((function(t){var e=t.state,n=t.response;return e?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)}))},t.prototype.clearStaleState=function(t){return s.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),s=i(2),o=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new r(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then((function(i){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then((function(t){return o.Log.debug("TokenClient.exchangeCode: response received"),t}))})):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then((function(i){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then((function(t){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),t}))})):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.error,o=i.error_description,r=i.error_uri,a=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!s)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,o||s));return l.name="ErrorResponse",l.error=s,l.error_description=o,l.error_uri=r,l.state=a,l.session_state=c,l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),s=i(3),o=i(13);e.SigninRequest=function(){function t(e){var i=e.url,r=e.client_id,a=e.redirect_uri,c=e.response_type,l=e.scope,u=e.authority,h=e.data,d=e.prompt,p=e.display,f=e.max_age,g=e.ui_locales,b=e.id_token_hint,m=e.login_hint,A=e.acr_values,y=e.resource,w=e.response_mode,v=e.request,_=e.request_uri,S=e.extraQueryParams,E=e.request_type,R=e.client_secret,C=e.extraTokenParams,T=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!r)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!l)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!u)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var k=t.isOidc(c),I=t.isCode(c);w||(w=t.isCode(c)?"query":null),this.state=new o.SigninState({nonce:k,data:h,client_id:r,authority:u,redirect_uri:a,code_verifier:I,request_type:E,response_mode:w,client_secret:R,scope:l,extraTokenParams:C,skipUserInfo:T}),i=s.UrlUtility.addQueryParam(i,"client_id",r),i=s.UrlUtility.addQueryParam(i,"redirect_uri",a),i=s.UrlUtility.addQueryParam(i,"response_type",c),i=s.UrlUtility.addQueryParam(i,"scope",l),i=s.UrlUtility.addQueryParam(i,"state",this.state.id),k&&(i=s.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),I&&(i=s.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=s.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var O={prompt:d,display:p,max_age:f,ui_locales:g,id_token_hint:b,login_hint:m,acr_values:A,resource:y,request:v,request_uri:_,response_mode:w};for(var D in O)O[D]&&(i=s.UrlUtility.addQueryParam(i,D,O[D]));for(var M in S)i=s.UrlUtility.addQueryParam(i,M,S[M]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter((function(t){return"id_token"===t}))[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter((function(t){return"token"===t}))[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter((function(t){return"code"===t}))[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,s=i.authority,o=i.client_id,c=i.redirect_uri,l=i.code_verifier,u=i.response_mode,h=i.client_secret,d=i.scope,p=i.extraTokenParams,f=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,a.default)():n&&(g._nonce=n),!0===l?g._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():l&&(g._code_verifier=l),g.code_verifier){var b=r.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=r.JoseUtil.hexToBase64Url(b)}return g._redirect_uri=c,g._authority=s,g._client_id=o,g._response_mode=u,g._client_secret=h,g._scope=d,g._extraTokenParams=p,g._skipUserInfo=f,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return s.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(o.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),s=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,o=e.accessTokenExpiringTimer,r=void 0===o?new s.Timer("Access token expiring"):o,a=e.accessTokenExpiredTimer,c=void 0===a?new s.Timer("Access token expired"):a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=r,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var s=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",s),this._accessTokenExpired.init(s)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex((function(e){return e===t}));e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then((function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then((function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)})).catch((function(t){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)}))})).catch((function(t){s.Log.error("SessionMonitor ctor: error from getUser:",t.message)}))}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then((function(t){if(t){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,o=e._checkSessionInterval,r=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,o,r),e._checkSessionIFrame.load().then((function(){e._checkSessionIFrame.start(i)}))}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")})).catch((function(t){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)})))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval((function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then((function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)})).catch((function(t){s.Log.error("SessionMonitor: error from querySessionStatus:",t.message)}))}),1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then((function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))})).catch((function(e){t._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())}))},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,s){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=s||2e3,this._stopOnError=o;var r=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,r),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise((function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)}))},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),s=i(2),o=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new r(this._settings)}return t.prototype.revoke=function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==s&&"refresh_token"!=s)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then((function(o){if(o)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+s),i._revoke(o,i._settings.client_id,i._settings.client_secret,t,s);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")}))},t.prototype._revoke=function(t,e,i,s,o){var r=this;return new Promise((function(a,c){var l=new r._XMLHttpRequestCtor;l.open("POST",t),l.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",l.status),200===l.status?a():c(Error(l.statusText+" ("+l.status+")"))},l.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var u="client_id="+encodeURIComponent(e);i&&(u+="&client_secret="+encodeURIComponent(i)),u+="&token_type_hint="+encodeURIComponent(o),u+="&token="+encodeURIComponent(s),l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.send(u)}))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.JoseUtil,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new u(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then((function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then((function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then((function(t){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t}))}))}))},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then((function(t){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)}));s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var s in e){var o=e[s];Array.isArray(o)||(o=[o]);for(var r=0;r1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=a[0]}if(!c)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var l=t.client_id,u=i._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.id_token,c,r,l,u).then((function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))}))},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter((function(t){return t.kty===i})),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var o="sha"+n,r=this._joseUtil.hashString(t.access_token,o);if(!r)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var a=r.substr(0,r.length/2),c=this._joseUtil.hexToBase64Url(a);return c!==t.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),s=i(2),o=i(0),r=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then((function(i){return o.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then((function(t){return o.Log.debug("UserInfoService.getClaims: claims received",t),t}))})):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var s=n.header.kid,r=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":r=this._metadataService.getIssuer();break;case"ANY":r=Promise.resolve(n.payload.iss);break;default:r=Promise.resolve(this._settings.userInfoJwtIssuer)}return r.then((function(t){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then((function(r){if(!r)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(s)a=r.filter((function(t){return t.kid===s}))[0];else{if((r=i._filterByAlg(r,n.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=r[0]}if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,l=i._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.responseText,a,t,c,l,void 0,!0).then((function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload}))}))}))}catch(t){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter((function(t){return t.kty===i})),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},s={};if(void 0===o)var o={};o.lang={extend:function(e,i,s){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=i.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),s){var r;for(r in s)e.prototype[r]=s[r];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(r=0;r>>2]|=(i[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o>>2]=i[o>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=r.ceil(e/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-s%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new u.init(i,e/2)}},p=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new u.init(i,e)}},f=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},g=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,o=n/(4*s),a=(o=t?r.ceil(o):r.max((0|o)-this._minBufferSize,0))*s,c=r.min(4*a,n);if(a){for(var l=0;l>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,r=0;4>r&&s+.75*r>>6*(3-r)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(s=n.charAt(64))&&-1!=(s=e.indexOf(s))&&(i=s);for(var s=[],o=0,r=0;r>>6-r%4*2;s[o>>>2]|=(a|c)<<24-o%4*8,o++}return t.create(s,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=m,i=(s=e.lib).WordArray,n=s.Hasher,s=e.algo,o=[],r=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,l=0;64>l;){var u;t:{for(var h=t.sqrt(u=c),d=2;d<=h;d++)if(!(u%d)){u=!1;break t}u=!0}u&&(8>l&&(o[l]=a(t.pow(c,.5))),r[l]=a(t.pow(c,1/3)),l++),c++}var p=[];s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],s=i[1],o=i[2],a=i[3],c=i[4],l=i[5],u=i[6],h=i[7],d=0;64>d;d++){if(16>d)p[d]=0|t[e+d];else{var f=p[d-15],g=p[d-2];p[d]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+p[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[d-16]}f=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&u)+r[d]+p[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&s^n&o^s&o),h=u,u=l,l=c,c=a+f|0,a=o,o=s,s=n,n=f+g|0}i[0]=i[0]+n|0,i[1]=i[1]+s|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0,i[5]=i[5]+l|0,i[6]=i[6]+u|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,s=8*e.sigBytes;return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t.floor(n/4294967296),i[15+(s+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(s),e.HmacSHA256=n._createHmacHelper(s)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=m,i=e.lib.Hasher,n=(o=e.x64).Word,s=o.WordArray,o=e.algo,r=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();o=o.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],s=h[2],o=h[3],c=h[4],l=h[5],u=h[6],h=h[7],d=i.high,p=i.low,f=n.high,g=n.low,b=s.high,m=s.low,A=o.high,y=o.low,w=c.high,v=c.low,_=l.high,S=l.low,E=u.high,R=u.low,C=h.high,T=h.low,k=d,I=p,O=f,D=g,M=b,P=m,x=A,N=y,L=w,F=v,z=_,H=S,B=E,j=R,G=C,U=T,K=0;80>K;K++){var V=a[K];if(16>K)var q=V.high=0|t[e+2*K],J=V.low=0|t[e+2*K+1];else{q=((J=(q=a[K-15]).high)>>>1|(W=q.low)<<31)^(J>>>8|W<<24)^J>>>7;var W=(W>>>1|J<<31)^(W>>>8|J<<24)^(W>>>7|J<<25),Z=((J=(Z=a[K-2]).high)>>>19|(Y=Z.low)<<13)^(J<<3|Y>>>29)^J>>>6,Y=(Y>>>19|J<<13)^(Y<<3|J>>>29)^(Y>>>6|J<<26),$=(J=a[K-7]).high,X=(Q=a[K-16]).high,Q=Q.low;q=(q=(q=q+$+((J=W+J.low)>>>0>>0?1:0))+Z+((J+=Y)>>>0>>0?1:0))+X+((J+=Q)>>>0>>0?1:0),V.high=q,V.low=J}V=k&O^k&M^O&M;var tt=I&D^I&P^D&P,et=(W=(k>>>28|I<<4)^(k<<30|I>>>2)^(k<<25|I>>>7),Z=(I>>>28|k<<4)^(I<<30|k>>>2)^(I<<25|k>>>7),(Y=r[K]).high),it=Y.low;X=(X=(X=(X=G+((L>>>14|F<<18)^(L>>>18|F<<14)^(L<<23|F>>>9))+((Y=U+((F>>>14|L<<18)^(F>>>18|L<<14)^(F<<23|L>>>9)))>>>0>>0?1:0))+($=L&z^~L&B)+((Y+=Q=F&H^~F&j)>>>0>>0?1:0))+et+((Y+=it)>>>0>>0?1:0))+q+((Y+=J)>>>0>>0?1:0),G=B,U=j,B=z,j=H,z=L,H=F,L=x+X+((F=N+Y|0)>>>0>>0?1:0)|0,x=M,N=P,M=O,P=D,O=k,D=I,k=X+(V=W+V+((J=Z+tt)>>>0>>0?1:0))+((I=Y+J|0)>>>0>>0?1:0)|0}p=i.low=p+I,i.high=d+k+(p>>>0>>0?1:0),g=n.low=g+D,n.high=f+O+(g>>>0>>0?1:0),m=s.low=m+P,s.high=b+M+(m>>>0

>>0?1:0),y=o.low=y+N,o.high=A+x+(y>>>0>>0?1:0),v=c.low=v+F,c.high=w+L+(v>>>0>>0?1:0),S=l.low=S+H,l.high=_+z+(S>>>0>>0?1:0),R=u.low=R+j,u.high=E+B+(R>>>0>>0?1:0),T=h.low=T+U,h.high=C+G+(T>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(o),e.HmacSHA512=i._createHmacHelper(o)}(),function(){var t=m,e=(s=t.x64).Word,i=s.WordArray,n=(s=t.algo).SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(s),t.HmacSHA384=n._createHmacHelper(s)}();var A,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=y.charAt(i>>6)+y.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=y.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=y.charAt(i>>2)+y.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function v(t){var e,i,n,s="",o=0;for(e=0;e>2),i=3&n,o=1):1==o?(s+=k(i<<2|n>>4),i=15&n,o=2):2==o?(s+=k(i),s+=k(n>>2),i=3&n,o=3):(s+=k(i<<2|n>>4),s+=k(15&n),o=0));return 1==o&&(s+=k(i<<2)),s}function _(t){var e,i=v(t),n=new Array;for(e=0;2*e>15;--o>=0;){var c=32767&this[t],l=this[t++]>>15,u=a*c+l*r;s=((c=r*c+((32767&u)<<15)+i[n]+(1073741823&s))>>>30)+(u>>>15)+a*l+(s>>>30),i[n++]=1073741823&c}return s},A=30):"Netscape"!=n.appName?(S.prototype.am=function(t,e,i,n,s,o){for(;--o>=0;){var r=e*this[t++]+i[n]+s;s=Math.floor(r/67108864),i[n++]=67108863&r}return s},A=26):(S.prototype.am=function(t,e,i,n,s,o){for(var r=16383&e,a=e>>14;--o>=0;){var c=16383&this[t],l=this[t++]>>14,u=a*c+l*r;s=((c=r*c+((16383&u)<<14)+i[n]+s)>>28)+(u>>14)+a*l,i[n++]=268435455&c}return s},A=28),S.prototype.DB=A,S.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function M(t){this.m=t}function P(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function H(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function B(){}function j(t){return t}function G(t){this.r2=E(),this.q3=E(),S.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}M.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},M.prototype.revert=function(t){return t},M.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},M.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},M.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},P.prototype.convert=function(t){var e=E();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(S.ZERO)>0&&this.m.subTo(e,e),e},P.prototype.revert=function(t){var e=E();return t.copyTo(e),this.reduce(e),e},P.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},P.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},P.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},S.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},S.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},S.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,s=!1,o=0;--n>=0;){var r=8==i?255&t[n]:I(t,n);r<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==o?this[this.t++]=r:o+i>this.DB?(this[this.t-1]|=(r&(1<>this.DB-o):this[this.t-1]|=r<=this.DB&&(o-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},S.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},S.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+r+1]=this[i]>>s|a,a=(this[i]&o)<=0;--i)e[i]=0;e[r]=a,e.t=this.t+r+1,e.s=this.s,e.clamp()},S.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,o=(1<>n;for(var r=i+1;r>n;n>0&&(e[this.t-i-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},S.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},S.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,o),s.lShiftTo(c,i)):(n.copyTo(o),s.copyTo(i));var l=o.t,u=o[l-1];if(0!=u){var h=u*(1<1?o[l-2]>>this.F2:0),d=this.FV/h,p=(1<=0&&(i[i.t++]=1,i.subTo(m,i)),S.ONE.dlShiftTo(l,m),m.subTo(o,o);o.t=0;){var A=i[--g]==u?this.DM:Math.floor(i[g]*d+(i[g-1]+f)*p);if((i[g]+=o.am(0,A,i,b,0,l))0&&i.rShiftTo(c,i),r<0&&S.ZERO.subTo(i,i)}}},S.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},S.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},S.prototype.exp=function(t,e){if(t>4294967295||t<1)return S.ONE;var i=E(),n=E(),s=e.convert(this),o=D(t)-1;for(s.copyTo(i);--o>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,s,i);else{var r=i;i=n,n=r}return e.revert(i)},S.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(a>a)>0&&(s=!0,o=k(i));r>=0;)a>(a+=this.DB-e)):(i=this[r]>>(a-=e)&n,a<=0&&(a+=this.DB,--r)),i>0&&(s=!0),s&&(o+=k(i));return s?o:"0"},S.prototype.negate=function(){var t=E();return S.ZERO.subTo(this,t),t},S.prototype.abs=function(){return this.s<0?this.negate():this},S.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},S.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)},S.prototype.mod=function(t){var e=E();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(S.ZERO)>0&&t.subTo(e,e),e},S.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new M(e):new P(e),this.exp(t,i)},S.ZERO=O(0),S.ONE=O(1),B.prototype.convert=j,B.prototype.revert=j,B.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},B.prototype.sqrTo=function(t,e){t.squareTo(e)},G.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=E();return t.copyTo(e),this.reduce(e),e},G.prototype.revert=function(t){return t},G.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},G.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},G.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var U,K,V,q=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],J=(1<<26)/q[q.length-1];function W(){this.i=0,this.j=0,this.S=new Array}function Z(){!function(t){K[V++]^=255&t,K[V++]^=t>>8&255,K[V++]^=t>>16&255,K[V++]^=t>>24&255,V>=256&&(V-=256)}((new Date).getTime())}if(S.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},S.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=O(i),s=E(),o=E(),r="";for(this.divRemTo(n,s,o);s.signum()>0;)r=(i+o.intValue()).toString(t).substr(1)+r,s.divRemTo(n,s,o);return o.intValue().toString(t)+r},S.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,o=0,r=0,a=0;a=i&&(this.dMultiply(n),this.dAddOffset(r,0),o=0,r=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(r,0)),s&&S.ZERO.subTo(this,this)},S.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(S.ONE.shiftLeft(t-1),N,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(S.ONE.shiftLeft(t-1),this);else{var n=new Array,s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},S.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},S.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},S.prototype.multiplyLowerTo=function(t,e,i){var n,s=Math.min(this.t+t.t,e);for(i.s=0,i.t=s;s>0;)i[--s]=0;for(n=i.t-this.t;s=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},S.prototype.millerRabin=function(t){var e=this.subtract(S.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>q.length&&(t=q.length);for(var s=E(),o=0;o>24},S.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},S.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},S.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},S.prototype.equals=function(t){return 0==this.compareTo(t)},S.prototype.min=function(t){return this.compareTo(t)<0?this:t},S.prototype.max=function(t){return this.compareTo(t)>0?this:t},S.prototype.and=function(t){var e=E();return this.bitwiseTo(t,x,e),e},S.prototype.or=function(t){var e=E();return this.bitwiseTo(t,N,e),e},S.prototype.xor=function(t){var e=E();return this.bitwiseTo(t,L,e),e},S.prototype.andNot=function(t){var e=E();return this.bitwiseTo(t,F,e),e},S.prototype.not=function(){for(var t=E(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var u=E();for(n.sqrTo(r[1],u);a<=l;)r[a]=E(),n.mulTo(u,r[a-2],r[a]),a+=2}var h,d,p=t.t-1,f=!0,g=E();for(s=D(t[p])-1;p>=0;){for(s>=c?h=t[p]>>s-c&l:(h=(t[p]&(1<0&&(h|=t[p-1]>>this.DB+s-c)),a=i;0==(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),f)r[h].copyTo(o),f=!1;else{for(;a>1;)n.sqrTo(o,g),n.sqrTo(g,o),a-=2;a>0?n.sqrTo(o,g):(d=o,o=g,g=d),n.mulTo(g,r[h],o)}for(;p>=0&&0==(t[p]&1<=0?(i.subTo(n,i),e&&s.subTo(r,s),o.subTo(a,o)):(n.subTo(i,n),e&&r.subTo(s,r),a.subTo(o,a))}return 0!=n.compareTo(S.ONE)?S.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},S.prototype.pow=function(t){return this.exp(t,new B)},S.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),o=i.getLowestSetBit();if(o<0)return e;for(s0&&(e.rShiftTo(o,e),i.rShiftTo(o,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return o>0&&i.lShiftTo(o,i),i},S.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=q[q.length-1]){for(e=0;e>>8,K[V++]=255&Y;V=0,Z()}function tt(){if(null==U){for(Z(),(U=new W).init(K),V=0;V>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return n}function st(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function ot(t,e){this.x=e,this.q=t}function rt(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?S.ONE:n,this.zinv=null}function at(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new rt(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},st.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(n--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;for(var o=new et,r=new Array;e>2;){for(r[0]=0;0==r[0];)o.nextBytes(r);i[--e]=r[0]}return i[--e]=2,i[--e]=0,new S(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},st.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var s=lt.crypto.MessageDigest,o=lt.crypto.Util,r=null;if(i||(i="sha1"),"string"==typeof i&&(r=s.getCanonicalAlgName(i),n=s.getHashLength(r),i=function(t){return St(o.hashHex(Et(t),r))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,i);if(null==n)return null;var s=this.doPublic(n);if(null==s)return null;var o=s.toString(16);return 0==(1&o.length)?o:"0"+o},st.prototype.type="RSA",ot.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},ot.prototype.toBigInteger=function(){return this.x},ot.prototype.negate=function(){return new ot(this.q,this.x.negate().mod(this.q))},ot.prototype.add=function(t){return new ot(this.q,this.x.add(t.toBigInteger()).mod(this.q))},ot.prototype.subtract=function(t){return new ot(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},ot.prototype.multiply=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},ot.prototype.square=function(){return new ot(this.q,this.x.square().mod(this.q))},ot.prototype.divide=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},rt.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},rt.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},rt.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(S.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(S.ZERO))},rt.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(S.ZERO)&&!this.y.toBigInteger().equals(S.ZERO)},rt.prototype.negate=function(){return new rt(this.curve,this.x,this.y.negate(),this.z)},rt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(S.ZERO.equals(i))return S.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new S("3"),s=this.x.toBigInteger(),o=this.y.toBigInteger(),r=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),a=r.multiply(i),c=s.multiply(r),l=e.square().multiply(this.z),u=l.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(l.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new rt(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(h),d)},rt.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new S("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),s=n.multiply(i).mod(this.curve.q),o=this.curve.a.toBigInteger(),r=e.square().multiply(t);S.ZERO.equals(o)||(r=r.add(this.z.square().multiply(o)));var a=(r=r.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),c=r.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(r.square().multiply(r)).mod(this.curve.q),l=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new rt(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),l)},rt.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new S("3")),s=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var r=n.testBit(e);r!=i.testBit(e)&&(o=o.add(r?this:s))}return o},rt.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var s=this.curve.getInfinity(),o=this.add(e);n>=0;)s=s.twice(),t.testBit(n)?s=i.testBit(n)?s.add(o):s.add(this):i.testBit(n)&&(s=s.add(e)),--n;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new ot(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new rt(this,this.fromBigInteger(new S(i,16)),this.fromBigInteger(new S(n,16)));default:return null}},ot.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},rt.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=e(i,32);return t?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(n,32))),s},rt.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),s=e.slice(1+i/2,1+i);n.unshift(0),s.unshift(0);var o=new S(n),r=new S(s);return new rt(t,t.fromBigInteger(o),t.fromBigInteger(r))},rt.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),s=e.substr(2+i/2,i/2),o=new S(n,16),r=new S(s,16);return new rt(t,t.fromBigInteger(o),t.fromBigInteger(r))},rt.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new rt(this.curve,n,s)},rt.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(S.valueOf(2)),e=this.curve.fromBigInteger(S.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new rt(this.curve,n,s)},rt.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new S("3")),s=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var r=n.testBit(e);r!=i.testBit(e)&&(o=o.add2D(r?this:s))}return o},rt.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),o=e.multiply(e).mod(s),r=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(s);return o.equals(r)},rt.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},rt.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(S.ONE)<0||e.compareTo(t.subtract(S.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(S.ONE)<0||i.compareTo(t.subtract(S.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var o=new String(""),r=Object.hasOwnProperty;return function(n,a){var c,l,u=n.match(t),h=u[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var p=[c],f=1-d,g=u.length;f=0;)delete s[o[u]]}return a.call(e,n,s)}({"":c},"")),c}}();void 0!==lt&<||(e.KJUR=lt={}),void 0!==lt.asn1&<.asn1||(lt.asn1={}),lt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},lt.asn1.DERAbstractString=function(t){lt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=vt(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},o.lang.extend(lt.asn1.DERAbstractString,lt.asn1.ASN1Object),lt.asn1.DERAbstractTime=function(t){lt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());"utc"==e&&(o=o.substr(2,2));var r=o+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(!0===i){var a=s.getMilliseconds();if(0!=a){var c=n(String(a),3);r=r+"."+(c=c.replace(/[0]+$/,""))}}return r+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=bt(t)},this.setByDateValue=function(t,e,i,n,s,o){var r=new Date(Date.UTC(t,e-1,i,n,s,o,0));this.setByDate(r)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(lt.asn1.DERAbstractTime,lt.asn1.ASN1Object),lt.asn1.DERAbstractStructured=function(t){lt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},o.lang.extend(lt.asn1.DERAbstractStructured,lt.asn1.ASN1Object),lt.asn1.DERBoolean=function(){lt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},o.lang.extend(lt.asn1.DERBoolean,lt.asn1.ASN1Object),lt.asn1.DERInteger=function(t){lt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=lt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new S(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},o.lang.extend(lt.asn1.DERInteger,lt.asn1.ASN1Object),lt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=lt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}lt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=n[i]);return(t=t.replace(s,"::")).slice(1,-1)}function Lt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Nt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function Ft(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*o)break;if(a>=200)break;n.push(c),r=c,a++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var s,o,r=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return s=i.shift(),o=r.getChildIdx(t,e),r.getIdxbyList(t,o[s],i,n)},dt.getTLVbyList=function(t,e,i,n){var s=dt,o=s.getIdxbyList(t,e,i);if(void 0===o)throw"can't find nthList object";if(void 0!==n&&t.substr(o,2)!=n)throw"checking tag doesn't match: "+t.substr(o,2)+"!="+n;return s.getTLV(t,o)},dt.getVbyList=function(t,e,i,n,s){var o,r,a=dt;if(void 0===(o=a.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return r=a.getV(t,o),!0===s&&(r=r.substr(2)),r},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),s=parseInt(n,16);i[0]=new String(Math.floor(s/40)),i[1]=new String(s%40);for(var o=t.substr(2),r=[],a=0;a0&&(u=u+"."+c.join(".")),u},dt.dump=function(t,e,i,n){var s=dt,o=s.getV,r=s.dump,a=s.getChildIdx,c=t;t instanceof lt.asn1.ASN1Object&&(c=t.getEncodedHex());var l=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var u=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=o(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+l(h=o(c,i),u)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+l(h=o(c,i),u)+"\n";if("04"==c.substr(i,2)){var h=o(c,i);return s.isASN1HEX(h)?(_=n+"OCTETSTRING, encapsulates\n")+r(h,e,0,n+" "):n+"OCTETSTRING "+l(h,u)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=o(c,i),p=lt.asn1.ASN1Util.oidHexToInt(d),f=lt.asn1.x509.OID.oid2name(p),g=p.replace(/\./g," ");return""!=f?n+"ObjectIdentifier "+f+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+_t(o(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+_t(o(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+_t(o(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+_t(o(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+_t(o(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+_t(o(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";_=n+"SEQUENCE\n";var b=e;if((2==(y=a(c,i)).length||3==y.length)&&"06"==c.substr(y[0],2)&&"04"==c.substr(y[y.length-1],2)){f=s.oidname(o(c,y[0]));var m=JSON.parse(JSON.stringify(e));m.x509ExtName=f,b=m}for(var A=0;As)throw"key is too short for SigAlg: keylen="+i+","+e;for(var o="0001",r="00"+n,a="",c=s-o.length-r.length,l=0;l=0)return!1;if(i.compareTo(S.ONE)<0||i.compareTo(s)>=0)return!1;var r=i.modInverse(s),a=t.multiply(r).mod(s),c=e.multiply(r).mod(s);return o.multiply(a).add(n.multiply(c)).getX().toBigInteger().mod(s).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),s=[];return s.push(2),s.push(i.length),(s=s.concat(i)).push(2),s.push(n.length),(s=s.concat(n)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:S.fromByteArrayUnsigned(i),s:S.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:S.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:S.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,s=lt.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=o(t,0,[2,0],"06"),i=o(t,0,[1],"04");try{n=o(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,s=lt.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{o(t,0,[1,0],"06"),e=o(t,0,[1,1],"06"),i=o(t,0,[2,0,1],"04");try{n=o(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=lt.crypto.ECDSA.getName,s=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{s(t,0,[0,0],"06"),e=s(t,0,[0,1],"06"),i=s(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,s=lt.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=o(t,0,[0,e,0,1],"06"),n=o(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=s(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},lt.crypto.ECDSA.parseSigHex=function(t){var e=lt.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new S(e.r,16),s:new S(e.s,16)}},lt.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var s=n[0],o=n[1];if("02"!=t.substr(s,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(o,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,s),s:i(t,o)}},lt.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=lt.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},lt.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return lt.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},lt.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new S(t,16),n=new S(e,16);return lt.crypto.ECDSA.biRSSigToASN1Sig(i,n)},lt.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=lt.asn1,n=new i.DERInteger({bigint:t}),s=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,s]}).getEncodedHex()},lt.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==lt&<||(e.KJUR=lt={}),void 0!==lt.crypto&<.crypto||(lt.crypto={}),lt.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new S(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,s,o,r,a,c,l,u,h,d,p,f){t[n]={};var g=i(o),b=i(r),m=i(a),A=i(c),y=i(l),w=new at(g,b,m),v=w.decodePointHex("04"+u+h);t[n].name=n,t[n].keylen=s,t[n].curve=w,t[n].G=v,t[n].n=A,t[n].h=y,t[n].oid=p,t[n].info=f;for(var _=0;_=2*a)break}var h={};return h.keyhex=c.substr(0,2*s[t].keylen),h.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),h},a=function(t,e,i,n){var o=m.enc.Base64.parse(t),r=m.enc.Hex.stringify(o);return(0,s[e].proc)(r,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return o(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return r(t,e,i)},decryptKeyB64:function(t,e,i,n){return a(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=o(t),n=i.cipher,s=i.ivsalt,c=i.data,l=r(n,e,s).keyhex;return a(c,n,l,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,o){var a="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==o&&null!=o||(o=function(t){var e=m.lib.WordArray.random(t);return m.enc.Hex.stringify(e)}(s[n].ivlen).toUpperCase()),a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+n+","+o+"\r\n",a+="\r\n",(a+=function(t,e,i,n){return(0,s[e].eproc)(t,i,n)}(e,n,r(n,i,o).keyhex,o).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,s={},o=i(e,0);if(2!=o.length)throw"malformed format: SEQUENCE(0).items != 2: "+o.length;s.ciphertext=n(e,o[1]);var r=i(e,o[0]);if(2!=r.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+r.length;if("2a864886f70d01050d"!=n(e,r[0]))throw"this only supports pkcs5PBES2";var a=i(e,r[1]);if(2!=r.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+a.length;var c=i(e,a[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";s.encryptionSchemeAlg="TripleDES",s.encryptionSchemeIV=n(e,c[1]);var l=i(e,a[0]);if(2!=l.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+l.length;if("2a864886f70d01050c"!=n(e,l[0]))throw"this only supports pkcs5PBKDF2";var u=i(e,l[1]);if(u.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+u.length;s.pbkdf2Salt=n(e,u[0]);var h=n(e,u[1]);try{s.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return s},getPBKDF2KeyHexFromParam:function(t,e){var i=m.enc.Hex.parse(t.pbkdf2Salt),n=m.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return m.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=It(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),s=Ht.getPBKDF2KeyHexFromParam(n,e),o={};o.ciphertext=m.enc.Hex.parse(n.ciphertext);var r=m.enc.Hex.parse(s),a=m.enc.Hex.parse(n.encryptionSchemeIV),c=m.TripleDES.decrypt(o,r,{iv:a});return m.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=i(t,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var r=i(t,o[1]);if(2!=r.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(r[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=n(t,r[0]),"06"==t.substr(r[1],2)&&(s.algparam=n(t,r[1])),"04"!=t.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,o[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=It(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new st;else if("2a8648ce380401"==i.algoid)e=new lt.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new lt.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new st;else if("2a8648ce380401"===i)e=new lt.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new lt.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,s[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null},o=i(t,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var r=o[0];if("30"!=t.substr(r,2))throw"malformed PKCS8 public key(code:001)";var a=i(t,r);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=n(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=n(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=n(t,o[1]).substr(2),s}}}();Ht.getKey=function(t,e,i){var n,s=(m=dt).getChildIdx,o=m.getVbyList,r=lt.crypto,a=r.ECDSA,c=r.DSA,l=st,u=It,h=Ht;if(void 0!==l&&t instanceof l)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(I=new l).setPublic(t.n,t.e),I;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(I=new l).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),I;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(I=new l).setPrivate(t.n,t.e,t.d),I;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(I=new c).setPublic(t.p,t.q,t.g,t.y),I;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(I=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(I=new l).setPublic(wt(t.n),wt(t.e)),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(I=new l).setPrivateEx(wt(t.n),wt(t.e),wt(t.d),wt(t.p),wt(t.q),wt(t.dp),wt(t.dq),wt(t.qi)),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(I=new l).setPrivate(wt(t.n),wt(t.e),wt(t.d)),I;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(k=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);return k.setPublicKeyHex(p),k}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(k=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);var f=("0000000000"+wt(t.d)).slice(-d);return k.setPublicKeyHex(p),k.setPrivateKeyHex(f),k}if("pkcs5prv"===i){var g,b=t,m=dt;if(9===(g=s(b,0)).length)(I=new l).readPKCS5PrvKeyHex(b);else if(6===g.length)(I=new c).readPKCS5PrvKeyHex(b);else{if(!(g.length>2&&"04"===b.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(I=new a).readPKCS5PrvKeyHex(b)}return I}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return Kt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Kt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var A=It(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(A)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var y=u(t,"RSA PRIVATE KEY");return h.getKey(y,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=o(n=u(t,"DSA PRIVATE KEY"),0,[1],"02"),v=o(n,0,[2],"02"),_=o(n,0,[3],"02"),E=o(n,0,[4],"02"),R=o(n,0,[5],"02");return(I=new c).setPrivate(new S(w,16),new S(v,16),new S(_,16),new S(E,16),new S(R,16)),I}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var C=h.getDecryptedKeyHex(t,e),T=new st;return T.readPKCS5PrvKeyHex(C),T}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var k,I=o(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),O=o(n,0,[2,0],"06"),D=o(n,0,[3,0],"03").substr(2);if(void 0===lt.crypto.OID.oidhex2name[O])throw"undefined OID(hex) in KJUR.crypto.OID: "+O;return(k=new a({curve:lt.crypto.OID.oidhex2name[O]})).setPublicKeyHex(D),k.setPrivateKeyHex(I),k.isPublic=!1,k}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return w=o(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),v=o(n,0,[2],"02"),_=o(n,0,[3],"02"),E=o(n,0,[4],"02"),R=o(n,0,[5],"02"),(I=new c).setPrivate(new S(w,16),new S(v,16),new S(_,16),new S(E,16),new S(R,16)),I;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Ht.generateKeypair=function(t,e){if("RSA"==t){var i=e;(r=new st).generate(i,"10001"),r.isPrivate=!0,r.isPublic=!0;var n=new st,s=r.n.toString(16),o=r.e.toString(16);return n.setPublic(s,o),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=r,a.pubKeyObj=n,a}if("EC"==t){var r,a,c=e,l=new lt.crypto.ECDSA({curve:c}).generateKeyPairHex();return(r=new lt.crypto.ECDSA({curve:c})).setPublicKeyHex(l.ecpubhex),r.setPrivateKeyHex(l.ecprvhex),r.isPrivate=!0,r.isPublic=!1,(n=new lt.crypto.ECDSA({curve:c})).setPublicKeyHex(l.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=r,a.pubKeyObj=n,a}throw"unknown algorithm: "+t},Ht.getPEM=function(t,e,i,n,s,o){var r=lt.asn1,a=r.DERObjectIdentifier,c=r.DERInteger,l=r.ASN1Util.newObject,u=lt.crypto,h=u.DSA,d=u.ECDSA,p=st;function f(t){return l({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return l({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function b(t){return l({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==p&&t instanceof p||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return kt(v=new(0,r.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==p&&t instanceof p&&(void 0===i||null==i)&&1==t.isPrivate)return kt(v=f(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var A=new a({name:t.curveName}).getEncodedHex(),y=g(t).getEncodedHex(),w="";return(w+=kt(A,"EC PARAMETERS"))+kt(y,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return kt(v=b(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==p&&t instanceof p&&void 0!==i&&null!=i&&1==t.isPrivate){var v=f(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",v,i,n,o)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return v=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",v,i,n,o);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return v=b(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",v,i,n,o);var _=function(t,e){var i=S(t,e);return new l({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},S=function(t,e){var i=m.lib.WordArray.random(8),n=m.lib.WordArray.random(8),s=m.PBKDF2(e,i,{keySize:6,iterations:100}),o=m.enc.Hex.parse(t),r=m.TripleDES.encrypt(o,s,{iv:n})+"",a={};return a.ciphertext=r,a.pbkdf2Salt=m.enc.Hex.stringify(i),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=m.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=p&&t instanceof p&&1==t.isPrivate){var E=f(t).getEncodedHex();return v=l({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:E}}]}).getEncodedHex(),void 0===i||null==i?kt(v,"PRIVATE KEY"):kt(y=_(v,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return E=new l({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),v=l({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:E}}]}).getEncodedHex(),void 0===i||null==i?kt(v,"PRIVATE KEY"):kt(y=_(v,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return E=new c({bigint:t.x}).getEncodedHex(),v=l({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:E}}]}).getEncodedHex(),void 0===i||null==i?kt(v,"PRIVATE KEY"):kt(y=_(v,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Ht.getKeyFromCSRPEM=function(t){var e=It(t,"CERTIFICATE REQUEST");return Ht.getKeyFromCSRHex(e)},Ht.getKeyFromCSRHex=function(t){var e=Ht.parseCSRHex(t);return Ht.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Ht.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var o=e(s,0);if(o.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(o[0],2))throw"malformed CSR(code:003)";var r=e(s,o[0]);if(r.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(s,r[2]),n},Ht.getJWKFromKey=function(t){var e={};if(t instanceof st&&t.isPrivate)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e.d=yt(t.d.toString(16)),e.p=yt(t.p.toString(16)),e.q=yt(t.q.toString(16)),e.dp=yt(t.dmp1.toString(16)),e.dq=yt(t.dmq1.toString(16)),e.qi=yt(t.coeff.toString(16)),e;if(t instanceof st&&t.isPublic)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e;if(t instanceof lt.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e.d=yt(t.prvKeyHex),e}if(t instanceof lt.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e}throw"not supported key object"},st.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},st.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=st.getPosArrayOfChildrenFromHex(t))[0]),s=i(t,e[1]),o=i(t,e[2]),r=i(t,e[3]),a=i(t,e[4]),c=i(t,e[5]),l=i(t,e[6]),u=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,s,o,r,a,c,l,u,h),e},st.prototype.readPrivateKeyFromPEMString=function(t){var e=It(t),i=st.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},st.prototype.readPKCS5PrvKeyHex=function(t){var e=st.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},st.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,s,o,r,a,c,l=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=l(t,0,[2,0,1],"02"),i=l(t,0,[2,0,2],"02"),n=l(t,0,[2,0,3],"02"),s=l(t,0,[2,0,4],"02"),o=l(t,0,[2,0,5],"02"),r=l(t,0,[2,0,6],"02"),a=l(t,0,[2,0,7],"02"),c=l(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,s,o,r,a,c)},st.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var s=i(t,n[0]),o=i(t,n[1]);this.setPublic(s,o)},st.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},st.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new Kt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Bt=new RegExp("");function jt(t,e){for(var i="",n=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return n}function Ut(t){for(var e in lt.crypto.Util.DIGESTINFOHEAD){var i=lt.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function Kt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,s=t.getVbyList,o=t.getTLVbyList,r=t.getIdxbyList,a=t.getVidx,c=t.oidname,l=Kt,u=It;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==o(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(s(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return o(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return l.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return o(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return l.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=s(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=s(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return r(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return r(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Ht.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(s(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=o(this.hex,0,[0],"30"),s=new lt.crypto.Signature({alg:e});return s.init(t),s.updateHex(n),s.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=r(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var o=0;o0&&(l=new Array(i),(new et).nextBytes(l),l=String.fromCharCode.apply(String,l));var u=St(c(Et("\0\0\0\0\0\0\0\0"+s+l))),h=[];for(n=0;n>8*a-r&255),n=0;nthis.n.bitLength())return 0;var n=Ut(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var s=n[0];return n[1]==function(t){return lt.crypto.Util.hashString(t,s)}(t)},st.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Bt,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Ut(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},st.prototype.verifyPSS=function(t,e,i,n){var s=function(t){return lt.crypto.Util.hashHex(t,i)}(Et(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(s,e,i,n)},st.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var s=new S(e,16);if(s.bitLength()>this.n.bitLength())return!1;var o,r=function(t){return lt.crypto.Util.hashHex(t,i)},a=St(t),c=a.length,l=this.n.bitLength()-1,u=Math.ceil(l/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=u-c-2;else if(n<-2)throw"invalid salt length";if(u>8*u-l&255;if(0!=(d.charCodeAt(0)&f))throw"bits beyond keysize not zero";var g=Gt(p,d.length,r),b=[];for(o=0;o0&&-1==(":"+n.join(":")+":").indexOf(":"+b+":"))throw"algorithm '"+b+"' not accepted in the list";if("none"!=b&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Ht.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof s))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var m=null;if(void 0===o.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+b;if("none"==(m=o.jwsalg2sigalg[b]))throw"not supported";if("Hmac"==m.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var A=new l({alg:m,pass:e});return A.updateString(p),f==A.doFinal()}if(-1!=m.indexOf("withECDSA")){var y,w=null;try{w=c.concatSigToASN1Sig(f)}catch(t){return!1}return(y=new u({alg:m})).init(e),y.updateString(p),y.verify(w)}return(y=new u({alg:m})).init(e),y.updateString(p),y.verify(f)},lt.jws.JWS.parse=function(t){var e,i,n=t.split("."),s={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),s.headerObj=lt.jws.JWS.readSafeJSONString(ht(n[0])),s.payloadObj=lt.jws.JWS.readSafeJSONString(ht(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ht(e):JSON.stringify(s.payloadObj,null," "),void 0!==i&&(s.sigHex=wt(i)),s},lt.jws.JWS.verifyJWT=function(t,e,n){var s=lt.jws,o=s.JWS,r=o.readSafeJSONString,a=o.inArray,c=o.includedArray,l=t.split("."),u=l[0],h=l[1],d=(wt(l[2]),r(ht(u))),p=r(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(d.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===i(n.iss)&&!a(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===i(n.sub)&&!a(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===i(n.aud))if("string"==typeof p.aud){if(!a(p.aud,n.aud))return!1}else if("object"==i(p.aud)&&!c(p.aud,n.aud))return!1;var f=s.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(f=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function f(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return j(t).length;default:if(n)return B(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function b(t,e,i,n,s){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(s)return-1;i=t.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:m(t,e,i,n,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):m(t,[e],i,n,s);throw new TypeError("val must be string, number or Buffer")}function m(t,e,i,n,s){var o,r=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;r=2,a/=2,c/=2,i/=2}function l(t,e){return 1===r?t[e]:t.readUInt16BE(e*r)}if(s){var u=-1;for(o=i;oa&&(i=a-c),o=i;o>=0;o--){for(var h=!0,d=0;ds&&(n=s):n=s;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var r=0;r>8,s.push(i%256),s.push(n);return s}(e,t.length-i),t,i,n)}function E(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function R(t,e,i){i=Math.min(t.length,i);for(var n=[],s=e;s239?4:l>223?3:l>191?2:1;if(s+h<=i)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[s+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:r=t[s+2],128==(192&(o=t[s+1]))&&128==(192&r)&&(c=(15&l)<<12|(63&o)<<6|63&r)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:r=t[s+2],a=t[s+3],128==(192&(o=t[s+1]))&&128==(192&r)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&r)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(n.push((u-=65536)>>>10&1023|55296),u=56320|1023&u),n.push(u),s+=h}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,i);case"utf8":case"utf-8":return R(this,e,i);case"ascii":return T(this,e,i);case"latin1":case"binary":return k(this,e,i);case"base64":return E(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||i>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=i)return 0;if(n>=s)return-1;if(e>=i)return 1;if(this===t)return 0;for(var o=(s>>>=0)-(n>>>=0),r=(i>>>=0)-(e>>>=0),a=Math.min(o,r),l=this.slice(n,s),u=t.slice(e,i),h=0;hs)&&(i=s),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,e,i);case"utf8":case"utf-8":return y(this,t,e,i);case"ascii":return w(this,t,e,i);case"latin1":case"binary":return v(this,t,e,i);case"base64":return _(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function T(t,e,i){var n="";i=Math.min(t.length,i);for(var s=e;sn)&&(i=n);for(var s="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,i,n,s,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function P(t,e,i,n){e<0&&(e=65535+e+1);for(var s=0,o=Math.min(t.length-i,2);s>>8*(n?s:1-s)}function x(t,e,i,n){e<0&&(e=4294967295+e+1);for(var s=0,o=Math.min(t.length-i,4);s>>8*(n?s:3-s)&255}function N(t,e,i,n,s,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function L(t,e,i,n,o){return o||N(t,0,i,4),s.write(t,e,i,n,23,4),i+4}function F(t,e,i,n,o){return o||N(t,0,i,8),s.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(s*=256);)n+=this[t+--e]*s;return n},c.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=this[t],s=1,o=0;++o=(s*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=e,s=1,o=this[t+--n];n>0&&(s*=256);)o+=this[t+--n]*s;return o>=(s*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||M(this,t,e,i,Math.pow(2,8*i)-1,0);var s=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+s]=t/o&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):x(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):x(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);M(this,t,e,i,s-1,-s)}var o=0,r=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);M(this,t,e,i,s-1,-s)}var o=i-1,r=1,a=0;for(this[e+o]=255&t;--o>=0&&(r*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/r>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):x(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):x(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return L(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return L(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return F(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return F(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&i<57344){if(!s){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(r+1===n){(e-=3)>-1&&o.push(239,191,189);continue}s=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(e-=3)>-1&&o.push(239,191,189);if(s=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function j(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,i,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+i]=t[s];return s}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=l(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=l(t),n=i[0],r=i[1],a=new o(function(t,e,i){return 3*(e+i)/4-i}(0,n,r)),c=0,u=r>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===r&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===r&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,s=i%3,o=[],r=0,a=i-s;ra?a:r+16383));return 1===s?o.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===s&&o.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],s=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=r.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function u(t,e,i){for(var s,o=[],r=e;r>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,s){var o,r,a=8*s-n-1,c=(1<>1,u=-7,h=i?s-1:0,d=i?-1:1,p=t[e+h];for(h+=d,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=d,u-=8);for(r=o&(1<<-u)-1,o>>=-u,u+=n;u>0;r=256*r+t[e+h],h+=d,u-=8);if(0===o)o=1-l;else{if(o===c)return r?NaN:1/0*(p?-1:1);r+=Math.pow(2,n),o-=l}return(p?-1:1)*r*Math.pow(2,o-n)},e.write=function(t,e,i,n,s,o){var r,a,c,l=8*o-s-1,u=(1<>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,r=u):(r=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-r))<1&&(r--,c*=2),(e+=r+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(r++,c/=2),r+h>=u?(a=0,r=u):r+h>=1?(a=(e*c-1)*Math.pow(2,s),r+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),r=0));s>=8;t[i+p]=255&a,p+=f,a/=256,s-=8);for(r=r<0;t[i+p]=255&r,p+=f,r/=256,l-=8);t[i+p-f]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,s=t.X509,o=t.crypto,r=t.hextob64u,a=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var s=e.JWS.parse(i);return{header:s.headerObj,payload:s.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,o,r,c,l,u,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=i.getKey(o);else{if(!o.x5c||!o.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=a(o.x5c[0]);o=s.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=i.getKey(o)}return t._validateJwt(e,o,r,c,l,u,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,s,o,r,a){o||(o=0),r||(r=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===s||Array.isArray(c.aud)&&c.aud.indexOf(s)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==s)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!a){var l=r+o,u=r-o;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(l>>((3&e)<<3)&255;return s}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=s.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),s=i(3),o=i(8);e.SignoutRequest=function t(e){var i=e.url,r=e.id_token_hint,a=e.post_logout_redirect_uri,c=e.data,l=e.extraQueryParams,u=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in r&&(i=s.UrlUtility.addQueryParam(i,"id_token_hint",r)),a&&(i=s.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",a),c&&(this.state=new o.State({data:c,request_type:u}),i=s.UrlUtility.addQueryParam(i,"state",this.state.id))),l)i=s.UrlUtility.addQueryParam(i,h,l[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof r.UserManagerSettings||(i=new r.UserManagerSettings(i));var b=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return b._events=new c.UserManagerEvents(i),b._silentRenewService=new n(b),b.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),b.startSilentRenew()),b.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),b._sessionMonitor=new o(b)),b._tokenRevocationClient=new a(b._settings),b._tokenClient=new f(b._settings),b._joseUtil=g,b}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then((function(e){return e?(s.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(s.Log.info("UserManager.getUser: user not found in storage"),null)}))},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then((function(){s.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()}))},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then((function(){s.Log.info("UserManager.signinRedirect: successful")}))},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then((function(t){return t.profile&&t.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),t}))},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then((function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),t}))):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then((function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),t})).catch((function(t){s.Log.error(t.message)}))},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then((function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))}))},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then((function(e){return e?e.access_token?t._loadUser().then((function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then((function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then((function(){return t._events.load(i),i}))}))}return null})):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))}))},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then((function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then((function(e){return e?e.sub!==t.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))}))}))},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),t}))):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then((function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),t}))},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then((function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))}))},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then((function(n){var s=n.state,o=n.response;return s?"so:r"===s.request_type?i.signoutRedirectCallback(t):"so:p"===s.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):o}))},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(e){return t.processSigninResponse(e.url).then((function(t){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")})).catch((function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e}))}))):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then((function(e){return i._signinEnd(e.url,t)}))},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then((function(e){return s.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then((function(t){return s.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)})).catch((function(t){throw e.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t}))}))},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then((function(t){s.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then((function(){return s.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n}))}))},e.prototype._signinCallback=function(t,e){return s.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then((function(){s.Log.info("UserManager.signoutRedirect: successful")}))},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then((function(t){return s.Log.info("UserManager.signoutRedirectCallback: successful"),t}))},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){s.Log.info("UserManager.signoutPopup: successful")}))},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then((function(){s.Log.info("UserManager.signoutPopupCallback: successful")}))},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then((function(t){return i._signoutEnd(t.url)}))},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then((function(i){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then((function(o){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(o):Promise.resolve()).then((function(){var r=t.id_token_hint||o&&o.id_token;return r&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=r),e.removeUser().then((function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then((function(t){return s.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)}))}))}))})).catch((function(t){throw i.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t}))}))},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then((function(t){return s.Log.debug("UserManager._signoutEnd: got signout response"),t}))},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then((function(e){return t._revokeInternal(e,!0).then((function(i){if(i)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then((function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)}))}))})).then((function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")}))},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then((function(t){return i._revokeRefreshTokenInternal(n,e).then((function(e){return t||e||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e}))}))}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then((function(){return!0}))},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then((function(){return!0})):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(t){return t?(s.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)}))},e.prototype.storeUser=function(t){if(t){s.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(o.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,s=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,p=i.silent_redirect_uri,f=i.silentRequestTimeout,g=i.automaticSilentRenew,b=void 0!==g&&g,m=i.validateSubOnSilentRenew,A=void 0!==m&&m,y=i.includeIdTokenInSilentRenew,w=void 0===y||y,v=i.monitorSession,_=void 0===v||v,S=i.monitorAnonymousSession,E=void 0!==S&&S,R=i.checkSessionInterval,C=void 0===R?2e3:R,T=i.stopCheckSessionOnError,k=void 0===T||T,I=i.query_status_response_type,O=i.revokeAccessTokenOnSignout,D=void 0!==O&&O,M=i.accessTokenExpiringNotificationTime,P=void 0===M?60:M,x=i.redirectNavigator,N=void 0===x?new o.RedirectNavigator:x,L=i.popupNavigator,F=void 0===L?new r.PopupNavigator:L,z=i.iframeNavigator,H=void 0===z?new a.IFrameNavigator:z,B=i.userStore,j=void 0===B?new c.WebStorageStateStore({store:l.Global.sessionStorage}):B;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var G=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return G._popup_redirect_uri=n,G._popup_post_logout_redirect_uri=s,G._popupWindowFeatures=h,G._popupWindowTarget=d,G._silent_redirect_uri=p,G._silentRequestTimeout=f,G._automaticSilentRenew=b,G._validateSubOnSilentRenew=A,G._includeIdTokenInSilentRenew=w,G._accessTokenExpiringNotificationTime=P,G._monitorSession=_,G._monitorAnonymousSession=E,G._checkSessionInterval=C,G._stopCheckSessionOnError=k,G._query_status_response_type=I||(arguments[0]&&arguments[0].response_type?u.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),G._revokeAccessTokenOnSignout=D,G._redirectNavigator=N,G._popupNavigator=F,G._iframeNavigator=H,G._userStore=j,G}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(s.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(s.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r._timer=n,r._nowFunc=s||function(){return Date.now()/1e3},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;ti.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},ma6z:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("TkCa"),s=i("EM62"),o=i("sEIs");let r=(()=>{class t{constructor(){}ngOnInit(){}prepareRoute(t){return t&&t.activatedRouteData&&t.activatedRouteData.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Nb(1,"router-outlet",null,0),s.Rb())},directives:[o.k],styles:[""],data:{animation:[n.a]}}),t})()},mawV:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("3lSR");function s(){return Object(n.a)(1)}},mjJC:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("EM62"),a=i("s2Ay"),c=i("2kYt"),l=i("PBFl"),u=i("csyo"),h=i("29Wa"),d=i("R7+U"),p=i("mFH5");function f(t,e){1&t&&r.Nb(0,"mat-spinner",7)}function g(t,e){if(1&t&&(r.Sb(0,"mat-option",13),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.kc("value",t),r.Ab(1),r.Lc(" ",t.friendlyNameParameter," ")}}function b(t,e){if(1&t&&(r.Sb(0,"mat-option",13),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.kc("value",t),r.Ab(1),r.Lc(" ",t," ")}}function m(t,e){if(1&t&&(r.Sb(0,"mat-option",13),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.kc("value",t),r.Ab(1),r.Lc(" ",t," ")}}function A(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div",8),r.Sb(1,"mat-form-field"),r.Sb(2,"mat-label"),r.Jc(3),r.ec(4,"translate"),r.Rb(),r.Sb(5,"mat-select",9),r.Zb("valueChange",(function(e){return r.xc(t),r.dc().selectedLogin=e})),r.Hc(6,g,2,2,"mat-option",10),r.Rb(),r.Rb(),r.Sb(7,"mat-form-field"),r.Sb(8,"mat-label"),r.Jc(9),r.ec(10,"translate"),r.Rb(),r.Sb(11,"mat-select",9),r.Zb("valueChange",(function(e){return r.xc(t),r.dc().selectedLang=e})),r.Hc(12,b,2,2,"mat-option",10),r.Rb(),r.Rb(),r.Sb(13,"mat-form-field"),r.Sb(14,"mat-label"),r.Jc(15),r.ec(16,"translate"),r.Rb(),r.Sb(17,"mat-select",9),r.Zb("valueChange",(function(e){return r.xc(t),r.dc().selectedMail=e})),r.Hc(18,m,2,2,"mat-option",10),r.Rb(),r.Rb(),r.Sb(19,"div",11),r.Sb(20,"p",12),r.Jc(21),r.ec(22,"translate"),r.Rb(),r.Sb(23,"p"),r.Jc(24),r.Rb(),r.Rb(),r.Rb()}if(2&t){const t=r.dc();r.Ab(3),r.Kc(r.fc(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),r.Ab(2),r.kc("value",t.selectedLogin),r.Ab(1),r.kc("ngForOf",t.logins),r.Ab(3),r.Kc(r.fc(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),r.Ab(2),r.kc("value",t.selectedLang),r.Ab(1),r.kc("ngForOf",t.languages),r.Ab(3),r.Kc(r.fc(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),r.Ab(2),r.kc("value",t.selectedMail),r.Ab(1),r.kc("ngForOf",t.mails),r.Ab(3),r.Kc(r.fc(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),r.Ab(3),r.Kc(t.selectedLogin.value)}}let y=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.attributesManagerService=n,this.store=s,this.translate=o,this.notificator=r,this.languages=["en","cz"],this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],o.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}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"}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,this.selectedLogin.friendlyNameParameter,this.pwdMails.get(this.selectedMail),this.selectedLang).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.i),r.Mb(n.a),r.Mb(s.i),r.Mb(s.c),r.Mb(o.m),r.Mb(a.e),r.Mb(o.l))},t.\u0275cmp=r.Gb({type:t,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"],["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(t,e){1&t&&(r.Sb(0,"h1",0),r.Jc(1),r.ec(2,"translate"),r.Rb(),r.Sb(3,"div",1),r.Hc(4,f,1,0,"mat-spinner",2),r.Rb(),r.Hc(5,A,25,19,"div",3),r.Sb(6,"div",4),r.Sb(7,"button",5),r.Zb("click",(function(){return e.onCancel()})),r.Jc(8),r.ec(9,"translate"),r.Rb(),r.Sb(10,"button",6),r.Zb("click",(function(){return e.onSubmit()})),r.Jc(11),r.ec(12,"translate"),r.Rb(),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),r.Ab(3),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading),r.Ab(3),r.Lc(" ",r.fc(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),r.Ab(2),r.kc("disabled",e.loading),r.Ab(1),r.Lc(" ",r.fc(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.j,c.t,n.c,l.b,u.c,n.g,h.c,h.g,d.a,c.s,p.n],pipes:[a.d],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t})()},nIj0:function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return Bt})),i.d(e,"c",(function(){return p})),i.d(e,"d",(function(){return Ut})),i.d(e,"e",(function(){return Pt})),i.d(e,"f",(function(){return $t})),i.d(e,"g",(function(){return ht})),i.d(e,"h",(function(){return Tt})),i.d(e,"i",(function(){return Lt})),i.d(e,"j",(function(){return It})),i.d(e,"k",(function(){return Dt})),i.d(e,"l",(function(){return Xt})),i.d(e,"m",(function(){return Jt})),i.d(e,"n",(function(){return Vt})),i.d(e,"o",(function(){return S})),i.d(e,"p",(function(){return c})),i.d(e,"q",(function(){return m})),i.d(e,"r",(function(){return y})),i.d(e,"s",(function(){return w})),i.d(e,"t",(function(){return bt})),i.d(e,"u",(function(){return St})),i.d(e,"v",(function(){return wt})),i.d(e,"w",(function(){return G})),i.d(e,"x",(function(){return P})),i.d(e,"y",(function(){return Zt})),i.d(e,"z",(function(){return L})),i.d(e,"A",(function(){return z})),i.d(e,"B",(function(){return Qt})),i.d(e,"C",(function(){return Ht})),i.d(e,"D",(function(){return j})),i.d(e,"E",(function(){return V})),i.d(e,"F",(function(){return C})),i.d(e,"G",(function(){return q})),i.d(e,"H",(function(){return Et}));var n=i("EM62"),s=i("2kYt"),o=i("P4Xx"),r=i("GoAz"),a=i("YtkY");const c=new n.r("NgValueAccessor"),l={provide:c,useExisting:Object(n.U)(()=>u),multi:!0};let u=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.F),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[n.zb([l])]}),t})();const h={provide:c,useExisting:Object(n.U)(()=>p),multi:!0},d=new n.r("CompositionEventMode");let p=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(s.M)()?Object(s.M)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.F),n.Mb(n.l),n.Mb(d,8))},t.\u0275dir=n.Hb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&n.Zb("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[n.zb([h])]}),t})(),f=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t}),t})(),g=(()=>{class t extends f{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return b(e||t)},t.\u0275dir=n.Hb({type:t,features:[n.xb]}),t})();const b=n.Ub(g);class m extends f{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class A{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let y=(()=>{class t extends A{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(m,2))},t.\u0275dir=n.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.xb]}),t})(),w=(()=>{class t extends A{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(g,2))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.xb]}),t})();function v(t){return null==t||0===t.length}function _(t){return null!=t&&"number"==typeof t.length}const S=new n.r("NgValidators"),E=new n.r("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 C{static min(t){return e=>{if(v(e.value)||v(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(v(e.value)||v(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return v(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return v(t.value)||R.test(t.value)?null:{email:!0}}static minLength(t){return e=>v(e.value)||!_(e.value)?null:e.value.length_(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return C.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(v(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){return I(O(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){const i=O(t,e).map(k);return Object(o.a)(i).pipe(Object(a.a)(I))}}}function T(t){return null!=t}function k(t){const e=Object(n.sb)(t)?Object(r.a)(t):t;return Object(n.rb)(e),e}function I(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function O(t,e){return e.map(e=>e(t))}function D(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const M={provide:c,useExisting:Object(n.U)(()=>P),multi:!0};let P=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.F),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.Zb("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[n.zb([M])]}),t})();const x={provide:c,useExisting:Object(n.U)(()=>L),multi:!0};let N=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(m),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.F),n.Mb(n.l),n.Mb(N),n.Mb(n.s))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.zb([x])]}),t})();const F={provide:c,useExisting:Object(n.U)(()=>z),multi:!0};let z=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.F),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[n.zb([F])]}),t})();const H={provide:c,useExisting:Object(n.U)(()=>j),multi:!0};function B(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let j=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=B(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.F),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[n.zb([H])]}),t})(),G=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(B(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.F),n.Mb(j,9))},t.\u0275dir=n.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const U={provide:c,useExisting:Object(n.U)(()=>V),multi:!0};function K(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let V=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(K(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(K(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.F),n.Mb(V,9))},t.\u0275dir=n.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function J(t,e){return[...e.path,t]}function W(t,e){t.validator=C.compose([t.validator,e.validator]),t.asyncValidator=C.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Z(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Z(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Z(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Y(t,e){t.validator=C.compose([t.validator,e.validator]),t.asyncValidator=C.composeAsync([t.asyncValidator,e.asyncValidator])}function $(t){return null!=t?C.compose(D(t)):null}function X(t){return null!=t?C.composeAsync(D(t)):null}function Q(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}const tt=[u,z,P,j,V,L];function et(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function it(t,e){if(!e)return null;Array.isArray(e);let i=void 0,n=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===p?i=t:(e=t,tt.some(t=>e.constructor===t)?n=t:s=t)}),s||n||i||null}function nt(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function st(t,e,i,s){Object(n.W)()&&"never"!==s&&((null!==s&&"once"!==s||e._ngModelWarningSentOnce)&&("always"!==s||i._ngModelWarningSent)||(e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function ot(t){return(lt(t)?t.validators:t)||null}function rt(t){return Array.isArray(t)?$(t):t||null}function at(t,e){return(lt(e)?e.asyncValidators:t)||null}function ct(t){return Array.isArray(t)?X(t):t||null}function lt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ut{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=rt(this._rawValidators),this._composedAsyncValidatorFn=ct(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=rt(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ct(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=k(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof dt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof pt&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.o,this.statusChanges=new n.o}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){lt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class ht extends ut{constructor(t=null,e,i){super(ot(e),at(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class dt extends ut{constructor(t,e,i){super(ot(e),at(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof ht?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class pt extends ut{constructor(t,e,i){super(ot(e),at(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ht?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ft={provide:g,useExisting:Object(n.U)(()=>bt)},gt=(()=>Promise.resolve(null))();let bt=(()=>{class t extends g{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.o,this.form=new dt({},$(t),X(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){gt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),W(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){gt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),nt(this._directives,t)})}addFormGroup(t){gt.then(()=>{const e=this._findContainer(t.path),i=new dt({});Y(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){gt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){gt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,et(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(S,10),n.Mb(E,10))},t.\u0275dir=n.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.Zb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.zb([ft]),n.xb]}),t})(),mt=(()=>{class t extends g{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return $(this._validators)}get asyncValidator(){return X(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return At(e||t)},t.\u0275dir=n.Hb({type:t,features:[n.xb]}),t})();const At=n.Ub(mt),yt={provide:g,useExisting:Object(n.U)(()=>wt)};let wt=(()=>{class t extends mt{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(g,5),n.Mb(S,10),n.Mb(E,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.zb([yt]),n.xb]}),t})();const vt={provide:m,useExisting:Object(n.U)(()=>St)},_t=(()=>Promise.resolve(null))();let St=(()=>{class t extends m{constructor(t,e,i,s){super(),this.control=new ht,this._registered=!1,this.update=new n.o,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=it(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Q(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?J(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return $(this._rawValidators)}get asyncValidator(){return X(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){W(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){_t.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;_t.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(g,9),n.Mb(S,10),n.Mb(E,10),n.Mb(c,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.zb([vt]),n.xb,n.yb]}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Rt=new n.r("NgModelWithFormControlWarning"),Ct={provide:m,useExisting:Object(n.U)(()=>Tt)};let Tt=(()=>{class t extends m{constructor(t,e,i,s){super(),this._ngModelWarningConfig=s,this.update=new n.o,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=it(0,i)}set isDisabled(t){}ngOnChanges(e){this._isControlChanged(e)&&(W(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Q(e,this.viewModel)&&(st(0,t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return $(this._rawValidators)}get asyncValidator(){return X(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(S,10),n.Mb(E,10),n.Mb(c,10),n.Mb(Rt,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.zb([Ct]),n.xb,n.yb]}),t._ngModelWarningSentOnce=!1,t})();const kt={provide:g,useExisting:Object(n.U)(()=>It)};let It=(()=>{class t extends g{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new n.o}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return W(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){nt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Y(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Y(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,et(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const i=()=>{};e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&W(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=$(this._validators);this.form.validator=C.compose([this.form.validator,t]);const e=X(this._asyncValidators);this.form.asyncValidator=C.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(S,10),n.Mb(E,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.Zb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.zb([kt]),n.xb,n.yb]}),t})();const Ot={provide:g,useExisting:Object(n.U)(()=>Dt)};let Dt=(()=>{class t extends mt{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){xt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(g,13),n.Mb(S,10),n.Mb(E,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.zb([Ot]),n.xb]}),t})();const Mt={provide:g,useExisting:Object(n.U)(()=>Pt)};let Pt=(()=>{class t extends g{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return $(this._validators)}get asyncValidator(){return X(this._asyncValidators)}_checkParentType(){xt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(g,13),n.Mb(S,10),n.Mb(E,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.zb([Mt]),n.xb]}),t})();function xt(t){return!(t instanceof Dt||t instanceof It||t instanceof Pt)}const Nt={provide:m,useExisting:Object(n.U)(()=>Lt)};let Lt=(()=>{class t extends m{constructor(t,e,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new n.o,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=it(0,s)}set isDisabled(t){}ngOnChanges(e){this._added||this._setUpControl(),Q(e,this.viewModel)&&(st(0,t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return $(this._rawValidators)}get asyncValidator(){return X(this._rawAsyncValidators)}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(g,13),n.Mb(S,10),n.Mb(E,10),n.Mb(c,10),n.Mb(Rt,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.zb([Nt]),n.xb,n.yb]}),t._ngModelWarningSentOnce=!1,t})();const Ft={provide:S,useExisting:Object(n.U)(()=>Ht),multi:!0},zt={provide:S,useExisting:Object(n.U)(()=>Bt),multi:!0};let Ht=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?C.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.Bb("required",e.required?"":null)},inputs:{required:"required"},features:[n.zb([Ft])]}),t})(),Bt=(()=>{class t extends Ht{validate(t){return this.required?C.requiredTrue(t):null}}return t.\u0275fac=function(e){return jt(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Bb("required",e.required?"":null)},features:[n.zb([zt]),n.xb]}),t})();const jt=n.Ub(Bt),Gt={provide:S,useExisting:Object(n.U)(()=>Ut),multi:!0};let Ut=(()=>{class t{constructor(){this._enabled=!1}set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?C.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.zb([Gt])]}),t})();const Kt={provide:S,useExisting:Object(n.U)(()=>Vt),multi:!0};let Vt=(()=>{class t{constructor(){this._validator=C.nullValidator}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=C.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Bb("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[n.zb([Kt]),n.yb]}),t})();const qt={provide:S,useExisting:Object(n.U)(()=>Jt),multi:!0};let Jt=(()=>{class t{constructor(){this._validator=C.nullValidator}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=C.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Bb("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.zb([qt]),n.yb]}),t})();const Wt={provide:S,useExisting:Object(n.U)(()=>Zt),multi:!0};let Zt=(()=>{class t{constructor(){this._validator=C.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=C.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Bb("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[n.zb([Wt]),n.yb]}),t})(),Yt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})(),$t=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,s=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new dt(i,{asyncValidators:s,updateOn:o,validators:n})}control(t,e,i){return new ht(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new pt(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof ht||t instanceof dt||t instanceof pt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),Xt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[N],imports:[Yt]}),t})(),Qt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Rt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[$t,N],imports:[Yt]}),t})()},nKqi:function(t,e,i){"use strict";i.d(e,"a",(function(){return I})),i.d(e,"b",(function(){return O})),i.d(e,"c",(function(){return D})),i.d(e,"d",(function(){return P})),i.d(e,"e",(function(){return G})),i.d(e,"f",(function(){return B})),i.d(e,"g",(function(){return M})),i.d(e,"h",(function(){return T})),i.d(e,"i",(function(){return j}));var n=i("2kYt"),s=i("EM62"),o=i("mFH5"),r=i("5XID"),a=i("ZTXN"),c=i("kuMc"),l=i("jIqt"),u=i("sg/T"),h=i("cqs0"),d=i("fAiE"),p=i("nIj0"),f=i("zmEM");const g=["*"],b='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',m=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],A=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],y=["text"];function w(t,e){if(1&t&&s.Nb(0,"mat-pseudo-checkbox",5),2&t){const t=s.dc();s.kc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const v=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],_=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class S{}const E=Object(o.A)(Object(o.z)(S));class R{}const C=Object(o.z)(R);let T=(()=>{class t extends E{constructor(){super(...arguments),this._stateChanges=new a.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return k(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.xb,s.yb],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(s.jc(),s.ic(0))},styles:[b],encapsulation:2,changeDetection:0}),t})();const k=s.Ub(T);let I=(()=>{class t extends E{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s.xb,s.yb],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(s.jc(),s.ic(0))},styles:[b],encapsulation:2,changeDetection:0}),t})(),O=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),P=(()=>{class t extends C{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.a,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(c.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(r.c)(t)}ngAfterContentInit(){Object(o.E)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(s.h),s.Mb(T,8),s.Mb(I,8))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(s.Fb(i,O,!0),s.Fb(i,D,!0),s.Fb(i,o.j,!0)),2&t&&(s.sc(n=s.ac())&&(e._avatar=n.first),s.sc(n=s.ac())&&(e._icon=n.first),s.sc(n=s.ac())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.Eb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.xb],ngContentSelectors:A,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.jc(m),s.Sb(0,"div",0),s.Nb(1,"div",1),s.ic(2),s.Sb(3,"div",2),s.ic(4,1),s.Rb(),s.ic(5,2),s.Rb()),2&t&&(s.Ab(1),s.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.s],encapsulation:2,changeDetection:0}),t})();class x{}const N=Object(o.z)(x);class L{}const F=Object(o.z)(L),z={provide:p.p,useExisting:Object(s.U)(()=>j),multi:!0};class H{constructor(t,e){this.source=t,this.option=e}}let B=(()=>{class t extends F{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=Object(r.c)(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=Object(r.c)(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){Object(o.E)(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(s.h),s.Mb(Object(s.U)(()=>j)))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(s.Fb(i,O,!0),s.Fb(i,D,!0),s.Fb(i,o.j,!0)),2&t&&(s.sc(n=s.ac())&&(e._avatar=n.first),s.sc(n=s.ac())&&(e._icon=n.first),s.sc(n=s.ac())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&s.Qc(y,!0),2&t&&s.sc(i=s.ac())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.Zb("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(s.Bb("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),s.Eb("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[s.xb],ngContentSelectors:_,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(s.jc(v),s.Sb(0,"div",0),s.Nb(1,"div",1),s.Hc(2,w,1,2,"mat-pseudo-checkbox",2),s.Sb(3,"div",3,4),s.ic(5),s.Rb(),s.ic(6,1),s.Rb()),2&t&&(s.Eb("mat-list-item-content-reverse","after"==e.checkboxPosition),s.Ab(1),s.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),s.Ab(1),s.kc("ngIf",e.selectionList.multiple))},directives:[o.s,n.t,o.q],encapsulation:2,changeDetection:0}),t})(),j=(()=>{class t extends N{constructor(t,e,i){super(),this._element=t,this._changeDetector=i,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new s.o,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new h.c(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new a.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(r.c)(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=Object(r.c)(t);if(e!==this._multiple){if(Object(s.W)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new h.c(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new u.g(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Object(c.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(Object(l.a)(null),Object(c.a)(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Object(c.a)(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=Object(d.t)(t);switch(e){case d.o:case d.g:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case d.i:case d.f:s||(e===d.i?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:if(e===d.a&&this.multiple&&Object(d.t)(t,"ctrlKey")&&!i.isTyping()){const e=this.options.some(t=>!t.disabled&&!t.selected);this._setAllOptionsSelected(e,!0),t.preventDefault()}else i.onKeydown(t)}this.multiple&&(e===d.q||e===d.e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new H(this,t))}_onFocus(){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}_setAllOptionsSelected(t,e){let i=!1;this.options.forEach(n=>{e&&n.disabled||!n._setSelected(t)||(i=!0)}),i&&this._reportValueChange()}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Xb("tabindex"),s.Mb(s.h))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){var n;1&t&&s.Fb(i,B,!0),2&t&&s.sc(n=s.ac())&&(e.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&s.Zb("focus",(function(){return e._onFocus()}))("keydown",(function(t){return e._keydown(t)})),2&t&&s.Bb("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[s.zb([z]),s.xb,s.yb],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(s.jc(),s.ic(0))},styles:[b],encapsulation:2,changeDetection:0}),t})(),G=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[o.k,o.t,o.i,o.r,n.c],o.k,o.i,o.r,f.b]}),t})()},nhAq:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("EM62"),s=i("U3ra"),o=i("2kYt"),r=i("b7Yx"),a=i("8cyV"),c=i("UX+r"),l=i("8clQ"),u=i("+0js"),h=i("OZ4H"),d=i("29Wa"),p=i("Cd2c"),f=i("nIj0");let g=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.o}ngOnInit(){this.readonly||(this.readonly=Object(l.s)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=Object(l.o)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(u.l,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(h.b))},t.\u0275cmp=n.Gb({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(t,e){1&t&&(n.Sb(0,"mat-form-field",0),n.Sb(1,"input",1),n.Zb("click",(function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)}))("ngModelChange",(function(t){return e.attribute.value=t}))("keydown",(function(){return e._sendEventToParent()})),n.Rb(),n.Rb()),2&t&&(n.lc("appearance",e.readonly?"none":"standard"),n.Ab(1),n.Eb("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.kc("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.c,p.b,f.x,f.c,f.r,f.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const b=["map"];function m(t,e){if(1&t){const t=n.Tb();n.Sb(0,"perun-web-apps-attribute-value-boolean",3),n.Zb("sendEventToParent",(function(){return n.xc(t),n.dc()._sendEventToParent2()})),n.Rb()}if(2&t){const t=n.dc();n.kc("attribute",t.attribute)("readonly",t.readonly)}}function A(t,e){if(1&t){const t=n.Tb();n.Sb(0,"perun-web-apps-attribute-value-list",3),n.Zb("sendEventToParent",(function(){return n.xc(t),n.dc()._sendEventToParent2()})),n.Rb()}if(2&t){const t=n.dc();n.kc("attribute",t.attribute)("readonly",t.readonly)}}function y(t,e){if(1&t&&n.Nb(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=n.dc();n.kc("attribute",t.attribute)("readonly",t.readonly)}}function w(t,e){if(1&t){const t=n.Tb();n.Sb(0,"perun-web-apps-attribute-value-string",3),n.Zb("sendEventToParent",(function(){return n.xc(t),n.dc()._sendEventToParent2()})),n.Rb()}if(2&t){const t=n.dc();n.kc("attribute",t.attribute)("readonly",t.readonly)}}function v(t,e){if(1&t){const t=n.Tb();n.Sb(0,"perun-web-apps-attribute-value-integer",3),n.Zb("sendEventToParent",(function(){return n.xc(t),n.dc()._sendEventToParent2()})),n.Rb()}if(2&t){const t=n.dc();n.kc("attribute",t.attribute)("readonly",t.readonly)}}let _=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new n.o}ngOnInit(){}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){var i;1&t&&n.Qc(b,!0),2&t&&n.sc(i=n.ac())&&(e.mapComponent=i.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(t,e){1&t&&(n.Sb(0,"div"),n.Hc(1,m,1,2,"perun-web-apps-attribute-value-boolean",0),n.Hc(2,A,1,2,"perun-web-apps-attribute-value-list",0),n.Sb(3,"div",1),n.Zb("click",(function(){return e._sendEventToParent2()})),n.Hc(4,y,2,2,"perun-web-apps-attribute-value-map",2),n.Rb(),n.Hc(5,w,1,2,"perun-web-apps-attribute-value-string",0),n.Hc(6,v,1,2,"perun-web-apps-attribute-value-integer",0),n.Rb()),2&t&&(n.Ab(1),n.kc("ngIf","java.lang.Boolean"===e.attribute.type),n.Ab(1),n.kc("ngIf","java.util.ArrayList"===e.attribute.type),n.Ab(2),n.kc("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.Ab(1),n.kc("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.Ab(1),n.kc("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.t,r.a,a.a,s.a,c.a,g],styles:[""]}),t})()},noDS:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("Ssnw"),o=i("X2Q7"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.facilitiesManagerService=s,this.displayedColumns=["name"],n.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.dataSource=new r.o(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 t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.l),a.Mb(c.e),a.Mb(o.g))},t.\u0275cmp=a.Gb({type:t,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(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),a.Ab(2),a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t})()},nyAh:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));let n=(()=>{class t{}return t.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",t.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",t.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",t.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",t.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",t.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",t.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",t.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",t.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",t.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",t.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",t.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",t.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",t.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",t.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",t.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",t.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",t.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",t.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",t.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",t.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",t})()},nz2m:function(t,e,i){"use strict";i.d(e,"a",(function(){return et}));var n=i("EM62"),s=i("cePI"),o=i("FlRo"),r=i("iAde"),a=i("cqs0"),c=i("8clQ"),l=i("+0js"),u=i("Ssnw"),h=i("OZ4H"),d=i("9wx0"),p=i("2kYt"),f=i("+Tre"),g=i("Y2X+"),b=i("bFHC"),m=i("sEIs"),A=i("TQS+"),y=i("FcRk"),w=i("s2Ay"),v=i("j+u3"),_=i("C5kn"),S=i("yAs8"),E=i("RK/0"),R=i("IBaA"),C=i("NZNE"),T=i("Log1");function k(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",25),n.Sb(1,"mat-checkbox",26),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function I(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",27),n.Sb(1,"mat-checkbox",28),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.ec(2,"translate"),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","DIRECT"!==t.membershipType)("matTooltip","DIRECT"!==t.membershipType?n.fc(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function O(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.ID")))}function D(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function M(t,e){1&t&&n.Nb(0,"th",29)}function P(t,e){1&t&&(n.Sb(0,"mat-icon",32),n.ec(1,"translate"),n.Jc(2,"transfer_within_a_station"),n.Rb()),2&t&&n.kc("matTooltip",n.fc(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function x(t,e){if(1&t&&(n.Sb(0,"td",30),n.Hc(1,P,3,3,"mat-icon",31),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf","DIRECT"!==t.membershipType)}}function N(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.NAME")))}function L(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.user))}}function F(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.STATUS")))}function z(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",30),n.Sb(1,"i",33),n.Zb("click",(function(i){n.xc(t);const s=e.$implicit;return n.dc().changeStatus(i,s)})),n.ec(2,"memberStatusIconColor"),n.ec(3,"memberStatusTooltip"),n.Sb(4,"span"),n.Jc(5),n.ec(6,"memberStatusIcon"),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit;n.Ab(1),n.Db("material-icons ",n.fc(2,5,t.status),""),n.lc("matTooltip",n.gc(3,7,t,!1)),n.Ab(4),n.Lc(" ",n.fc(6,10,t.status)," ")}}function H(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function B(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",30),n.Sb(1,"i",33),n.Zb("click",(function(i){n.xc(t);const s=e.$implicit;return n.dc().changeStatus(i,s)})),n.ec(2,"memberStatusIconColor"),n.ec(3,"memberStatusTooltip"),n.Sb(4,"span"),n.Jc(5),n.ec(6,"memberStatusIcon"),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit;n.Ab(1),n.Db("material-icons ",n.fc(2,5,t.groupStatus),""),n.lc("matTooltip",n.gc(3,7,t,!0)),n.Ab(4),n.Lc(" ",n.fc(6,10,t.groupStatus)," ")}}function j(t,e){1&t&&(n.Sb(0,"th",34),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function G(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"check_circle_outline"),n.Rb())}function U(t,e){if(1&t&&(n.Sb(0,"td",35),n.Hc(1,G,2,0,"mat-icon",36),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",t.sponsored)}}function K(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.ORGANIZATION")))}function V(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberOrganization"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function q(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.EMAIL")))}function J(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberEmail"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function W(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.LOGINS")))}function Z(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberLogins"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t))}}function Y(t,e){1&t&&n.Nb(0,"tr",37)}const $=function(t,e){return["/organizations",t,"members",e]};function X(t,e){if(1&t&&n.Nb(0,"tr",38),2&t){const t=e.$implicit,i=n.dc();n.Eb("disable-outline",i.disableRouting)("cursor-pointer",!i.disableRouting)("italic_font","DIRECT"!==t.membershipType),n.kc("routerLink",i.disableRouting?null:n.qc(8,$,t.voId,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.qc(11,$,t.voId,t.id))}}function Q(t,e){1&t&&(n.Sb(0,"app-alert",39),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.kc("alert_type","warn"),n.Ab(1),n.Lc(" ",n.fc(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function tt(t,e){1&t&&(n.Sb(0,"app-alert",39),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.kc("alert_type","warn"),n.Ab(1),n.Lc(" ",n.fc(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let et=(()=>{class t{constructor(t,e,i){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.selection=new a.c,this.hideColumns=[],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.o,this.updateTable=new n.o,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.pageSizeOptions=c.a,this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return Object(c.A)(t);case"email":return Object(c.v)(t);default:return""}}getFilterDataForColumn(t,e){var i;switch(e){case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"":"";case"email":return Object(c.v)(t);case"logins":return Object(c.x)(t);default:return""}}getExportDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?Object(c.w)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return Object(c.A)(t);case"email":return Object(c.v)(t);case"logins":return Object(c.x)(t);default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getSortDataForColumn,this),this.dataSource.filter=this.filter,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.paginator}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new o.o(this.members),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e){if(t.stopPropagation(),"INVALID"===e.status){const t=Object(c.o)();t.width="500px",t.data={member:e},this.dialog.open(l.e,t).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(h.b),n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(s.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page",updateTable:"updateTable"},features:[n.yb],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["mat-header-cell","","class","center new-line",4,"matHeaderCellDef"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","italic_font","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,k,2,3,"th",6),n.Hc(7,I,3,6,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,O,3,3,"th",9),n.Hc(10,D,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,M,1,0,"th",9),n.Hc(13,x,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,N,3,3,"th",9),n.Hc(16,L,3,3,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,F,3,3,"th",9),n.Hc(19,z,7,12,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,H,3,3,"th",9),n.Hc(22,B,7,12,"td",11),n.Pb(),n.Qb(23,15),n.Hc(24,j,3,3,"th",16),n.Hc(25,U,2,1,"td",17),n.Pb(),n.Qb(26,18),n.Hc(27,K,3,3,"th",9),n.Hc(28,V,3,3,"td",11),n.Pb(),n.Qb(29,19),n.Hc(30,q,3,3,"th",9),n.Hc(31,J,3,3,"td",11),n.Pb(),n.Qb(32,20),n.Hc(33,W,3,3,"th",6),n.Hc(34,Z,3,3,"td",11),n.Pb(),n.Hc(35,Y,1,0,"tr",21),n.Hc(36,X,1,14,"tr",22),n.Rb(),n.Rb(),n.Sb(37,"mat-paginator",23),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(38,Q,3,4,"app-alert",24),n.Hc(39,tt,3,4,"app-alert",24)),2&t&&(n.kc("hidden",0===e.members.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(31),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.members.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0!==e.members.length&&0===e.dataSource.filteredData.length),n.Ab(1),n.kc("ngIf",0===e.members.length))},directives:[d.a,o.n,s.a,o.c,o.i,o.b,o.k,o.m,r.a,p.t,o.h,f.a,o.a,g.a,s.b,b.a,o.j,o.l,m.g,A.c,y.a],pipes:[w.d,v.a,_.a,S.a,E.a,R.a,C.a,T.a],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}.italic_font[_ngcontent-%COMP%]{font-style:italic}"]}),t})()},oCM2:function(t,e,i){"use strict";i.d(e,"a",(function(){return it}));var n=i("EM62"),s=i("X2Q7"),o=i("iAde"),r=i("FlRo"),a=i("8clQ"),c=i("Ssnw"),l=i("sEIs"),u=i("9wx0"),h=i("2kYt"),d=i("TQS+"),p=i("csyo"),f=i("FcRk"),g=i("s2Ay"),b=i("j+u3");function m(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function A(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function y(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")))}function w(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.vo.id)}}function v(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")))}function _(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.vo.name)}}function S(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")))}function E(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.group?t.group.id:"")}}function R(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function C(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.group?t.group.name:"")}}function T(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function k(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.type)}}function I(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function O(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.state)}}function D(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")))}function M(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.extSourceName)}}function P(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")))}function x(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.extSourceType)}}function N(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")))}function L(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Lc(" ",t.user?n.fc(2,1,t.user):"null"," ")}}function F(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")))}function z(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Lc(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function H(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function B(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.gc(2,1,t.createdAt,"d.M.y"))}}function j(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function G(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.Kc(i.getFriendlyName(t.modifiedBy))}}function U(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")))}function K(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.gc(2,1,t.modifiedAt,"d.M.y"))}}function V(t,e){if(1&t&&(n.Sb(0,"th",29),n.Jc(1),n.Rb()),2&t){const t=n.dc().$implicit;n.Ab(1),n.Kc(t)}}function q(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit,i=n.dc().$implicit;n.Ab(1),n.Kc(t[i])}}function J(t,e){1&t&&(n.Qb(0,32),n.Hc(1,V,2,1,"th",6),n.Hc(2,q,2,1,"td",13),n.Pb()),2&t&&n.kc("matColumnDef",e.$implicit)}function W(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")))}function Z(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.fedInfo)}}function Y(t,e){1&t&&n.Nb(0,"tr",33)}function $(t,e){if(1&t&&n.Nb(0,"tr",34),2&t){const t=e.$implicit,i=n.dc();n.Eb("cursor-pointer",!i.disableRouting),n.kc("routerLink",i.selectApplication(t))("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))}}function X(t,e){1&t&&n.Nb(0,"mat-spinner",35)}function Q(t,e){1&t&&(n.Sb(0,"app-alert",37),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND")," "))}function tt(t,e){1&t&&(n.Sb(0,"app-alert",37),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")," "))}function et(t,e){if(1&t&&(n.Sb(0,"div"),n.Hc(1,Q,3,3,"app-alert",36),n.Hc(2,tt,3,3,"app-alert",36),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.kc("ngIf",0===t.dataSource.data.length),n.Ab(1),n.kc("ngIf",0===t.dataSource.filteredData.length&&0!==t.table.length)}}let it=(()=>{class t{constructor(t,e,i){this.router=t,this.authResolver=e,this.registrarManager=i,this.applications=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.o,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=a.a}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.loading=!0,this.table=[],this.getApplicationsData(0)}getExportDataForColumn(t,e){var i,n,s,o;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(o=null===(s=t.group)||void 0===s?void 0:s.name)&&void 0!==o?o:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?Object(a.w)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}exportData(t){Object(a.i)(Object(a.n)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}getApplicationsData(t){if(this.applications.length===t)return void this.initialize();const e=this.applications[t],i={};i.id=e.id,i.vo=e.vo,i.group=e.group,i.type=e.type,i.fedInfo=e.fedInfo,i.state=e.state,i.extSourceName=e.extSourceName,i.extSourceType=e.extSourceType,i.extSourceLoa=e.extSourceLoa,i.user=e.user,i.createdBy=e.createdBy,i.createdAt=e.createdAt,i.modifiedBy=e.modifiedBy,i.modifiedAt=e.modifiedAt,this.registrarManager.getApplicationDataById(e.id).subscribe(e=>{for(const t of e)null!==t.formItem.i18n.en.label&&0!==t.formItem.i18n.en.label.length?(i[t.formItem.i18n.en.label]=t.value,this.addedColumns.add(t.formItem.i18n.en.label)):(i[t.shortname]=t.value,this.addedColumns.add(t.shortname));this.table.push(i),this.getApplicationsData(t+1)})}initialize(){for(const t of this.addedColumns)this.displayedColumns.push(t);this.dataSource=new r.o(this.table),this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.f),n.Mb(c.h),n.Mb(s.l))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){var i;1&t&&n.Qc(o.a,!0),2&t&&n.sc(i=n.ac())&&(e.paginator=i.first)},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.yb],decls:56,vars:11,consts:[[1,"card","mt-2","w-100",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions","page"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[1,"ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,m,3,3,"th",6),n.Hc(7,A,2,1,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,y,3,3,"th",6),n.Hc(10,w,2,1,"td",7),n.Pb(),n.Qb(11,9),n.Hc(12,v,3,3,"th",6),n.Hc(13,_,2,1,"td",7),n.Pb(),n.Qb(14,10),n.Hc(15,S,3,3,"th",6),n.Hc(16,E,2,1,"td",7),n.Pb(),n.Qb(17,11),n.Hc(18,R,3,3,"th",6),n.Hc(19,C,2,1,"td",7),n.Pb(),n.Qb(20,12),n.Hc(21,T,3,3,"th",6),n.Hc(22,k,2,1,"td",13),n.Pb(),n.Qb(23,14),n.Hc(24,I,3,3,"th",6),n.Hc(25,O,2,1,"td",13),n.Pb(),n.Qb(26,15),n.Hc(27,D,3,3,"th",6),n.Hc(28,M,2,1,"td",13),n.Pb(),n.Qb(29,16),n.Hc(30,P,3,3,"th",6),n.Hc(31,x,2,1,"td",13),n.Pb(),n.Qb(32,17),n.Hc(33,N,3,3,"th",6),n.Hc(34,L,3,3,"td",13),n.Pb(),n.Qb(35,18),n.Hc(36,F,3,3,"th",6),n.Hc(37,z,2,1,"td",13),n.Pb(),n.Qb(38,19),n.Hc(39,H,3,3,"th",6),n.Hc(40,B,3,4,"td",13),n.Pb(),n.Qb(41,20),n.Hc(42,j,3,3,"th",6),n.Hc(43,G,2,1,"td",13),n.Pb(),n.Qb(44,21),n.Hc(45,U,3,3,"th",6),n.Hc(46,K,3,4,"td",13),n.Pb(),n.Hc(47,J,3,1,"ng-container",22),n.Qb(48,23),n.Hc(49,W,3,3,"th",6),n.Hc(50,Z,2,1,"td",13),n.Pb(),n.Hc(51,Y,1,0,"tr",24),n.Hc(52,$,1,4,"tr",25),n.Rb(),n.Rb(),n.Sb(53,"mat-paginator",26),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(54,X,1,0,"mat-spinner",27),n.Hc(55,et,3,2,"div",28)),2&t&&(n.Eb("hide-table",e.loading),n.kc("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(43),n.kc("ngForOf",e.addedColumns),n.Ab(4),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",e.loading),n.Ab(1),n.kc("ngIf",!e.loading))},directives:[u.a,r.n,r.c,r.i,r.b,h.s,r.k,r.m,o.a,h.t,r.h,r.a,r.j,r.l,l.g,d.c,p.c,f.a],pipes:[g.d,b.a,h.f],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},oYGW:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("EM62"),s=i("nIj0"),o=i("Ssnw"),r=i("29Wa"),a=i("Cd2c"),c=i("2kYt"),l=i("+Tre"),u=i("ABWF"),h=i("s2Ay");function d(t,e){if(1&t){const t=n.Tb();n.Sb(0,"mat-checkbox",7),n.Zb("change",(function(){return n.xc(t),n.dc().emitAsSubGroup()}))("ngModelChange",(function(e){return n.xc(t),n.dc().asSubgroup=e})),n.Jc(1),n.ec(2,"translate"),n.Rb()}if(2&t){const t=n.dc();n.kc("labelPosition","before")("ngModel",t.asSubgroup),n.Ab(1),n.Lc(" ",n.fc(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function p(t,e){if(1&t){const t=n.Tb();n.Sb(0,"perun-web-apps-group-search-select",8),n.Zb("groupSelected",(function(e){return n.xc(t),n.dc().emitParentGroup(e)})),n.Rb()}if(2&t){const t=n.dc();n.kc("disableAutoSelect",!0)("groups",t.voGroups)}}let f=(()=>{class t{constructor(t){this.store=t,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.nameChanged=new n.o,this.descriptionChanged=new n.o,this.parentGroupChanged=new n.o,this.asSubgroupChanged=new n.o}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new s.g("",[s.F.required,s.F.pattern(this.secondaryRegex?this.secondaryRegex:""),s.F.pattern(".*[\\S]+.*")]),this.descriptionControl=new s.g("",[s.F.required,s.F.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(t=>"members"!==t.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(o.m))},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"mat-form-field",1),n.Zb("keyup",(function(){return e.emitName()})),n.Sb(2,"label",2),n.Nb(3,"input",3),n.ec(4,"translate"),n.Rb(),n.Sb(5,"mat-error"),n.Jc(6),n.ec(7,"translate"),n.Rb(),n.Rb(),n.Sb(8,"mat-form-field",4),n.Zb("keyup",(function(){return e.emitDescription()})),n.Sb(9,"label",2),n.Nb(10,"textarea",3),n.ec(11,"translate"),n.Rb(),n.Sb(12,"mat-error"),n.Jc(13),n.ec(14,"translate"),n.Rb(),n.Rb(),n.Hc(15,d,3,5,"mat-checkbox",5),n.Hc(16,p,1,2,"perun-web-apps-group-search-select",6),n.Rb()),2&t&&(n.Ab(3),n.lc("placeholder",n.fc(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.kc("formControl",e.nameControl),n.Ab(3),n.Lc(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.fc(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.Ab(4),n.lc("placeholder",n.fc(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.kc("formControl",e.descriptionControl),n.Ab(3),n.Lc(" ",n.fc(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.Ab(2),n.kc("ngIf",e.isNotSubGroup),n.Ab(1),n.kc("ngIf",e.asSubgroup))},directives:[r.c,a.b,s.c,s.C,s.r,s.h,r.b,c.t,l.a,s.u,u.a],pipes:[h.d],styles:[""]}),t})()},"oqI+":function(t,e,i){"use strict";i.d(e,"a",(function(){return st})),i.d(e,"b",(function(){return Q})),i.d(e,"c",(function(){return tt})),i.d(e,"d",(function(){return et})),i.d(e,"e",(function(){return ct})),i.d(e,"f",(function(){return rt})),i.d(e,"g",(function(){return lt})),i.d(e,"h",(function(){return B}));var n=i("EM62"),s=i("2kYt"),o=i("qvOF"),r=i("cZZj"),a=i("5XID"),c=i("ZTXN"),l=i("bwdy"),u=i("3p4X"),h=i("VvXq"),d=i("IdLP"),p=i("g6G6"),f=i("kuMc"),g=i("YtkY"),b=i("J+dc"),m=i("jIqt"),A=i("8j5Y"),y=i("TLy2"),w=i("E5oP");function v(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function _(t,e){const i=e?"":"none";v(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function S(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function E(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function R(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function C(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function T(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function k(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:l}=t,u=c*e,h=l*e;return n>s-h&&na-u&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:R(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&T(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}const O=Object(r.f)({passive:!0}),D=Object(r.f)({passive:!1});class M{constructor(t,e,i,n,s,o){this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=s,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new c.a,this._pointerMoveSubscription=l.a.EMPTY,this._pointerUpSubscription=l.a.EMPTY,this._scrollSubscription=l.a.EMPTY,this._resizeSubscription=l.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new c.a,this.started=new c.a,this.released=new c.a,this.ended=new c.a,this.entered=new c.a,this.exited=new c.a,this.dropped=new c.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{t.preventDefault();const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),this._parentPositions=new I(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Object(a.c)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>Object(a.e)(t)),this._handles.forEach(t=>_(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Object(a.e)(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,D),e.addEventListener("touchstart",this._pointerDown,O)}),this._initialTransform=void 0,this._rootElement=e),this}withBoundaryElement(t){return this._boundaryElement=t?Object(a.e)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&L(this._rootElement),L(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t))}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&L(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&L(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){this.started.next({source:this}),F(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,n=t.parentNode,s=this._preview=this._createPreviewElement(),o=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(r,t),t.style.display="none",this._document.body.appendChild(n.replaceChild(o,t)),(i=this._document,i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body).appendChild(s),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var i;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=F(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=R(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s}),e.drop(this,i,this._initialContainer,o,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,e,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(t,e),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=P(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=z(s,this._document),this._previewRef=s,t.matchSize?H(n,e):n.style.transform=P(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=x(t),H(n,t.getBoundingClientRect())}return v(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),_(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=P(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=E(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=E(e,"transition-duration"),r=E(e,"transition-delay");return S(o[s])+S(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=z(this._placeholderRef,this._document)):i=x(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=F(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=F(t)?t.touches[0]||t.changedTouches[0]:t,i=this._getViewportScrollPosition();return{x:e.pageX-i.left,y:e.pageY-i.top}}_getConstrainedPointerPosition(t){const e=this.constrainPosition?this.constrainPosition(t,this):t,i=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===i?e.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==i||(e.x=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:i}=this._pickupPositionInElement,n=this._boundaryRect,s=this._previewRect,o=n.top+i,r=n.bottom-(s.height-i);e.x=N(e.x,n.left+t,n.right-(s.width-t)),e.y=N(e.y,o,r)}return e}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,_(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,D),t.removeEventListener("touchstart",this._pointerDown,O)}_applyRootElementTransform(t,e){const i=P(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:F(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);this._boundaryRect&&e&&T(this._boundaryRect,e.top,e.left)}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}}function P(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function x(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(let s=0;sn.appendChild(t)),n}function H(t,e){t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.transform=P(e.left,e.top)}function B(t,e,i){const n=j(e,t.length-1),s=j(i,t.length-1);if(n===s)return;const o=t[n],r=s!0,this.beforeStarted=new c.a,this.entered=new c.a,this.exited=new c.a,this.dropped=new c.a,this.sorted=new c.a,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=l.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new c.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),Object(u.a)(0,h.a).pipe(Object(f.a)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?K(t,-2):2===this._verticalScrollDirection&&K(t,2),1===this._horizontalScrollDirection?V(t,-2):2===this._horizontalScrollDirection&&V(t,2)})},this.element=Object(a.e)(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new I(i,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=Object(a.e)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),c=t.getPlaceholderElement();let l=o[s];if(l===t&&(l=o[s+1]),r>-1&&o.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(c,e),o.splice(s,0,t)}else{const n=Object(a.e)(this.element);this._shouldEnterAsFirstChild(e,i)?(n.insertBefore(c,o[0].getRootElement()),o.unshift(t)):(n.appendChild(c),o.push(t))}c.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o){this._reset(),null==o&&(o=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:o,container:this,previousContainer:i,isPointerOverContainer:n,distance:s})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Object(a.e)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?U("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!k(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=U(s,e=>e.drag===t),c=s[o],l=s[a].clientRect,u=c.clientRect,h=a>o?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y;const d=this._getItemOffsetPx(l,u,h),p=this._getSiblingOffsetPx(a,s,h),f=s.slice();B(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),s.forEach((e,i)=>{if(f[i]===e)return;const n=e.drag===t,s=n?d:p,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,T(e.clientRect,0,s)):(o.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,T(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&k(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=q(e,n),o=J(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=q(a,e),s=J(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){const t=Object(a.e)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:R(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=Object(a.e)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{const e=t.getRootElement();e&&(e.style.transform="")}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation;return U(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!C(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=Object(a.e)(this.element);return n===s||s.contains(n)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{T(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Object(r.c)(Object(a.e)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function U(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function J(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const W=Object(r.f)({passive:!1,capture:!0});let Z=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new c.a,this.pointerUp=new c.a,this.scroll=new c.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,W)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,W)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch"),i=t?"touchend":"mouseup";this._globalListeners.set(t?"touchmove":"mousemove",{handler:t=>this.pointerMove.next(t),options:W}).set(i,{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:W}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(n.A),n.Wb(s.e))},t.\u0275prov=Object(n.Ib)({factory:function(){return new t(Object(n.Wb)(n.A),Object(n.Wb)(s.e))},token:t,providedIn:"root"}),t})();const Y={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let $=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=Y){return new M(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new G(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(s.e),n.Wb(n.A),n.Wb(o.h),n.Wb(Z))},t.\u0275prov=Object(n.Ib)({factory:function(){return new t(Object(n.Wb)(s.e),Object(n.Wb)(n.A),Object(n.Wb)(o.h),Object(n.Wb)(Z))},token:t,providedIn:"root"}),t})();const X=new n.r("CDK_DRAG_PARENT");let Q=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new c.a,this._disabled=!1,this._parentDrag=e,_(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(a.c)(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(X,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),tt=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.M))},t.\u0275dir=n.Hb({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),t})(),et=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=Object(a.c)(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.M))},t.\u0275dir=n.Hb({type:t,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),t})();const it=new n.r("CDK_DRAG_CONFIG"),nt=new n.r("CDK_DROP_LIST");let st=(()=>{class t{constructor(t,e,i,s,o,r,a,l,u){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=s,this._viewContainerRef=o,this._dir=a,this._changeDetectorRef=u,this._destroyed=new c.a,this.started=new n.o,this.released=new n.o,this.ended=new n.o,this.entered=new n.o,this.exited=new n.o,this.dropped=new n.o,this.moved=new d.a(t=>{const e=this._dragRef.moved.pipe(Object(g.a)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,r&&this._assignDefaults(r),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=Object(a.c)(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.asObservable().pipe(Object(b.a)(1),Object(f.a)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(Object(m.a)(this._handles),Object(A.a)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),Object(y.a)(t=>Object(p.a)(...t.map(t=>t._stateChanges.pipe(Object(m.a)(t))))),Object(f.a)(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?ot(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error(`cdkDrag must be attached to an element node. Currently attached to "${e.nodeName}".`);this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return ot(this.element.nativeElement,t);const e=Object(a.e)(t);if(Object(n.W)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:Object(a.f)(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.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})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(nt,12),n.Mb(s.e),n.Mb(n.A),n.Mb(n.Q),n.Mb(it,8),n.Mb(w.c,8),n.Mb($),n.Mb(n.h))},t.\u0275dir=n.Hb({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var s;1&t&&(n.Fb(i,et,!0),n.Fb(i,tt,!0),n.Fb(i,Q,!0)),2&t&&(n.sc(s=n.ac())&&(e._previewTemplate=s.first),n.sc(s=n.ac())&&(e._placeholderTemplate=s.first),n.sc(s=n.ac())&&(e._handles=s))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.Eb("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n.zb([{provide:X,useExisting:t}]),n.yb]}),t})();function ot(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let rt=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(a.c)(t)}ngOnDestroy(){this._items.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),t})(),at=0,ct=(()=>{class t{constructor(e,i,s,o,r,a,l){this.element=e,this._changeDetectorRef=s,this._dir=o,this._group=r,this._scrollDispatcher=a,this._destroyed=new c.a,this.connectedTo=[],this.id="cdk-drop-list-"+at++,this.enterPredicate=()=>!0,this.dropped=new n.o,this.entered=new n.o,this.exited=new n.o,this.sorted=new n.o,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),r&&r._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=Object(a.c)(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}start(){this._dropListRef.start()}drop(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}enter(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}exit(t){this._dropListRef.exit(t._dragRef)}getItemIndex(t){return this._dropListRef.getItemIndex(t._dragRef)}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Object(m.a)(this._dir.value),Object(f.a)(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=Object(a.b)(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved&&this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Object(a.c)(this.sortingDisabled),e.autoScrollDisabled=Object(a.c)(this.autoScrollDisabled),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.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}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:o}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=o||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb($),n.Mb(n.h),n.Mb(w.c,8),n.Mb(rt,12),n.Mb(o.f),n.Mb(it,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.Vb("id",e.id),n.Eb("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n.zb([{provide:rt,useValue:void 0},{provide:nt,useExisting:t}])]}),t._dropLists=[],t})(),lt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[$],imports:[o.c]}),t})()},"ozd/":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("nIj0"),a=i("EM62"),c=i("s2Ay"),l=i("29Wa"),u=i("Cd2c"),h=i("2kYt"),d=i("PBFl");function p(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function f(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function g(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function b(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function m(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.userService=i,this.notificator=n,this.translateService=s,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new r.g(this.data.user.titleBefore,[r.F.pattern(".*[\\S]+.*"),r.F.maxLength(129)]),this.titleAfter=new r.g(this.data.user.titleAfter,[r.F.pattern(".*[\\S]+.*"),r.F.maxLength(129)]),this.firstName=new r.g(this.data.user.firstName,[r.F.required,r.F.pattern(".*[\\S]+.*"),r.F.maxLength(129)]),this.middleName=new r.g(this.data.user.middleName,[r.F.pattern(".*[\\S]+.*"),r.F.maxLength(129)]),this.lastName=new r.g(this.data.user.lastName,[r.F.required,r.F.pattern(".*[\\S]+.*"),r.F.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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(n.p),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({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","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",1),a.Sb(5,"mat-form-field"),a.Nb(6,"input",2),a.ec(7,"translate"),a.Hc(8,p,3,3,"mat-error",3),a.Rb(),a.Sb(9,"mat-form-field"),a.Nb(10,"input",2),a.ec(11,"translate"),a.Hc(12,f,3,3,"mat-error",3),a.Rb(),a.Sb(13,"mat-form-field"),a.Nb(14,"input",4),a.ec(15,"translate"),a.Hc(16,g,3,3,"mat-error",3),a.Rb(),a.Sb(17,"mat-form-field"),a.Nb(18,"input",2),a.ec(19,"translate"),a.Hc(20,b,3,3,"mat-error",3),a.Rb(),a.Sb(21,"mat-form-field"),a.Nb(22,"input",4),a.ec(23,"translate"),a.Hc(24,m,3,3,"mat-error",3),a.Rb(),a.Rb(),a.Sb(25,"div",5),a.Sb(26,"button",6),a.Zb("click",(function(){return e.onCancel()})),a.Jc(27),a.ec(28,"translate"),a.Rb(),a.Sb(29,"button",7),a.Zb("click",(function(){return e.onSave()})),a.Jc(30),a.ec(31,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),a.Ab(4),a.lc("placeholder",a.fc(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),a.kc("formControl",e.titleBefore),a.Ab(2),a.kc("ngIf",e.titleBefore.invalid),a.Ab(2),a.lc("placeholder",a.fc(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),a.kc("formControl",e.titleAfter),a.Ab(2),a.kc("ngIf",e.titleAfter.invalid),a.Ab(2),a.lc("placeholder",a.fc(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),a.kc("formControl",e.firstName),a.Ab(2),a.kc("ngIf",e.firstName.invalid),a.Ab(2),a.lc("placeholder",a.fc(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),a.kc("formControl",e.middleName),a.Ab(2),a.kc("ngIf",e.middleName.invalid),a.Ab(2),a.lc("placeholder",a.fc(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),a.kc("formControl",e.lastName),a.Ab(2),a.kc("ngIf",e.lastName.invalid),a.Ab(3),a.Lc(" ",a.fc(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading||e.firstName.invalid||e.lastName.invalid||e.titleBefore.invalid||e.titleAfter.invalid||e.middleName.invalid),a.Ab(1),a.Lc(" ",a.fc(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[s.g,l.c,u.b,r.c,r.r,r.h,h.t,r.C,s.c,d.b,l.b],pipes:[c.d],styles:[""]}),t})()},"p/8k":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name,"")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.authzService=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new s.o(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(t=>t.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(c.e),a.Mb(r.d))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l],pipes:[c.d],styles:[""]}),t})()},p3Ob:function(t,e,i){"use strict";i.d(e,"a",(function(){return D}));var n=i("OZ4H"),s=i("Ssnw"),o=i("cqs0"),r=i("X2Q7"),a=i("nyAh"),c=i("8clQ"),l=i("iyZ4"),u=i("ZWQq"),h=i("nIj0"),d=i("EM62"),p=i("s2Ay"),f=i("sEIs"),g=i("2kYt"),b=i("29Wa"),m=i("Cd2c"),A=i("PBFl"),y=i("csyo"),w=i("FcRk"),v=i("Y2X+");const _=["list"];function S(t,e){1&t&&d.Nb(0,"mat-spinner",10)}function E(t,e){1&t&&(d.Sb(0,"app-alert",14),d.Jc(1),d.ec(2,"translate"),d.Rb()),2&t&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND")," "))}function R(t,e){if(1&t){const t=d.Tb();d.Sb(0,"app-members-candidates-list",15,16),d.Zb("page",(function(e){return d.xc(t),d.dc(3).pageChanged(e)})),d.Rb()}if(2&t){const t=d.dc(3);d.kc("group",t.data.group)("pageSize",t.pageSize)("selection",t.selection)("members",t.members)("type",t.data.type)}}function C(t,e){if(1&t&&(d.Sb(0,"div",11),d.Hc(1,E,3,3,"app-alert",12),d.Hc(2,R,2,5,"app-members-candidates-list",13),d.Rb()),2&t){const t=d.dc(2);d.Ab(1),d.kc("ngIf",0===t.members.length&&t.firstSearchDone),d.Ab(1),d.kc("ngIf",0!==t.members.length)}}function T(t,e){if(1&t){const t=d.Tb();d.Sb(0,"div",4),d.Sb(1,"mat-form-field",5),d.Sb(2,"label"),d.Sb(3,"input",6),d.Zb("keyup.enter",(function(){return d.xc(t),d.dc().onSearchByString()})),d.ec(4,"translate"),d.Rb(),d.Rb(),d.Sb(5,"mat-error"),d.Jc(6),d.ec(7,"translate"),d.Rb(),d.Rb(),d.Sb(8,"button",7),d.Zb("click",(function(){return d.xc(t),d.dc().onSearchByString()})),d.Jc(9),d.ec(10,"translate"),d.Rb(),d.Sb(11,"div",8),d.Hc(12,S,1,0,"mat-spinner",2),d.Rb(),d.Hc(13,C,3,2,"div",9),d.Rb()}if(2&t){const t=d.dc();d.Ab(3),d.lc("placeholder",d.fc(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),d.kc("formControl",t.searchCtrl),d.Ab(3),d.Lc(" ",d.fc(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),d.Ab(2),d.kc("disabled",t.loading),d.Ab(1),d.Lc(" ",d.fc(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),d.Ab(3),d.kc("ngIf",t.loading),d.Ab(1),d.kc("ngIf",!!t.members&&!t.loading)}}function k(t,e){1&t&&d.Nb(0,"mat-spinner",10)}function I(t,e){if(1&t){const t=d.Tb();d.Sb(0,"button",21),d.Zb("click",(function(){return d.xc(t),d.dc(2).onInvite()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&t){const t=d.dc(2);d.kc("disabled",0===t.selection.selected.length||t.loading),d.Ab(1),d.Lc(" ",d.fc(2,2,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function O(t,e){if(1&t){const t=d.Tb();d.Sb(0,"div",17),d.Sb(1,"button",18),d.Zb("click",(function(){return d.xc(t),d.dc().onCancel()})),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"span",19),d.ec(5,"translate"),d.Hc(6,I,3,4,"button",20),d.Rb(),d.Sb(7,"button",21),d.Zb("click",(function(){return d.xc(t),d.dc().onAdd()})),d.Jc(8),d.ec(9,"translate"),d.Rb(),d.Rb()}if(2&t){const t=d.dc();d.Ab(2),d.Lc(" ",d.fc(3,6,"DIALOGS.ADD_MEMBERS.CANCEL")," "),d.Ab(2),d.lc("matTooltip",d.fc(5,8,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),d.kc("matTooltipDisabled",0===t.selection.selected.length||"group"!==t.data.type||void 0!==t.list&&t.list.addAuth),d.Ab(2),d.kc("ngIf","group"!==t.data.type||"group"===t.data.type&&t.inviteAuth),d.Ab(1),d.kc("disabled",0===t.selection.selected.length||t.loading||"group"===t.data.type&&void 0!==t.list&&!t.list.addAuth),d.Ab(1),d.Lc(" ",d.fc(9,10,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}let D=(()=>{class t{constructor(t,e,i,n,s,r,a,c,u,h,d,p){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.groupService=n,this.voService=s,this.registrarManager=r,this.translate=a,this.notificator=c,this.route=u,this.tableConfigService=h,this.router=d,this.guiAuthResolver=p,this.selection=new o.c(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=l.g,this.inviteAuth=!1,a.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(t=>this.title=t)}onCancel(){this.dialogRef.close(!1)}onAdd(){this.processing=!0;const t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}onInvite(){this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"vo"===this.data.type?this.registrarManager.sendInvitation(Object(c.m)(this.selection.selected[0].candidate),"en",this.data.voId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup(Object(c.m)(this.selection.selected[0].candidate),"en",this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError())}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[a.a.USER_DEF_ORGANIZATION,a.a.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[a.a.USER_DEF_ORGANIZATION,a.a.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1))}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new h.g("",[h.F.required,h.F.pattern(".*[\\S]+.*")])}addUserToVo(t){this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addCandidateToVo(t){this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addUserToGroup(t){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addMemberToGroup(t){this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(()=>{this.onAddSuccess()},()=>this.onError())}addCandidateToGroup(t){const e={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[e]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}onAddSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onError(){this.selection.clear(),this.processing=!1}onInviteSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onValidateSuccess(){this.dialogRef.close(!0)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}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}}}return t.\u0275fac=function(e){return new(e||t)(d.Mb(n.i),d.Mb(n.a),d.Mb(r.i),d.Mb(r.h),d.Mb(r.q),d.Mb(r.l),d.Mb(p.e),d.Mb(s.l),d.Mb(f.a),d.Mb(l.pb),d.Mb(f.f),d.Mb(s.h))},t.\u0275cmp=d.Gb({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){var i;1&t&&d.Qc(_,!0),2&t&&d.sc(i=d.ac())&&(e.list=i.first)},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,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"group","pageSize","selection","members","type","page",4,"ngIf"],["alert_type","warn"],[3,"group","pageSize","selection","members","type","page"],["list",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Hc(4,T,14,13,"div",1),d.Hc(5,k,1,0,"mat-spinner",2),d.Hc(6,O,10,12,"div",3),d.Rb()),2&t&&(d.Cb(e.theme),d.Ab(2),d.Kc(d.fc(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),d.Ab(2),d.kc("ngIf",!e.processing),d.Ab(1),d.kc("ngIf",e.processing),d.Ab(1),d.kc("ngIf",!e.processing))},directives:[n.j,g.t,n.g,b.c,m.b,h.c,h.r,h.h,b.b,A.b,y.c,w.a,u.a,n.c,v.a],pipes:[p.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t})()},pBDD:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5uGe");class s extends n.a{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},pU19:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("Ssnw"),o=i("nIj0"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("csyo"),h=i("29Wa"),d=i("Cd2c"),p=i("+Tre"),f=i("PBFl");function g(t,e){1&t&&a.Nb(0,"mat-spinner",4)}function b(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",5),a.Sb(1,"mat-form-field"),a.Sb(2,"input",6),a.Zb("change",(function(){return a.xc(t),a.dc().makePath()})),a.ec(3,"translate"),a.Rb(),a.Sb(4,"mat-error"),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Sb(7,"mat-form-field"),a.Sb(8,"input",7),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().description=e})),a.ec(9,"translate"),a.Rb(),a.Rb(),a.Sb(10,"mat-form-field"),a.Nb(11,"input",8),a.ec(12,"translate"),a.Sb(13,"mat-error"),a.Jc(14),a.ec(15,"translate"),a.Rb(),a.Rb(),a.Sb(16,"mat-form-field"),a.Nb(17,"input",8),a.ec(18,"translate"),a.Sb(19,"mat-error"),a.Jc(20),a.ec(21,"translate"),a.Rb(),a.Rb(),a.Sb(22,"mat-form-field"),a.Nb(23,"input",8),a.ec(24,"translate"),a.Sb(25,"mat-error"),a.Jc(26),a.ec(27,"translate"),a.Rb(),a.Rb(),a.Sb(28,"span"),a.Jc(29),a.ec(30,"translate"),a.Rb(),a.Sb(31,"mat-checkbox",9),a.Zb("ngModelChange",(function(e){return a.xc(t),a.dc().status=e})),a.Jc(32),a.ec(33,"translate"),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.lc("placeholder",a.fc(3,17,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),a.kc("formControl",t.nameControl),a.Ab(3),a.Kc(a.fc(6,19,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_NAME")),a.Ab(3),a.lc("placeholder",a.fc(9,21,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),a.kc("ngModel",t.description),a.Ab(3),a.lc("placeholder",a.fc(12,23,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),a.kc("formControl",t.delayControl),a.Ab(3),a.Kc(a.fc(15,25,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),a.Ab(3),a.lc("placeholder",a.fc(18,27,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),a.kc("formControl",t.recurrenceControl),a.Ab(3),a.Kc(a.fc(21,29,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),a.Ab(3),a.lc("placeholder",a.fc(24,31,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),a.kc("formControl",t.pathControl),a.Ab(3),a.Kc(a.fc(27,33,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),a.Ab(3),a.Kc(a.fc(30,35,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")),a.Ab(2),a.kc("ngModel",t.status),a.Ab(1),a.Kc(a.fc(33,37,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT"))}}function m(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",10),a.Sb(1,"button",11),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"button",12),a.Zb("click",(function(){a.xc(t);const e=a.dc();return e.asEdit?e.onEdit():e.onCreate()})),a.Jc(5),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),a.Ab(2),a.kc("disabled",t.nameControl.invalid||t.delayControl.invalid||t.recurrenceControl.invalid||t.pathControl.invalid),a.Ab(1),a.Lc(" ",t.buttonText," ")}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.serviceManager=i,this.notificator=n,this.translate=s,this.loading=!1,this.status=!0,this.nameControl=new o.g("",[o.F.required]),this.delayControl=new o.g(10,[o.F.pattern("^[0-9]*$")]),this.recurrenceControl=new o.g(2,[o.F.pattern("^[0-9]*$")]),this.pathControl=new o.g("",[o.F.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.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,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),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,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})}onCancel(){this.dialogRef.close(!1)}makePath(){const t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(r.n),a.Mb(s.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-create-service-dialog"]],decls:6,vars:7,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"],["matInput","","required","",3,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"ml-5",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.Rb(),a.Sb(2,"div"),a.Hc(3,g,1,0,"mat-spinner",1),a.Hc(4,b,34,39,"div",2),a.Hc(5,m,6,5,"div",3),a.Rb()),2&t&&(a.Ab(1),a.Kc(e.title),a.Ab(1),a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[n.j,l.t,u.c,n.g,h.c,d.b,o.c,o.C,o.r,o.h,h.b,o.u,p.a,n.c,f.b],pipes:[c.d],styles:[""]}),t})()},pgvo:function(t,e,i){"use strict";i.d(e,"a",(function(){return H}));var n=i("EM62"),s=i("cePI"),o=i("cqs0"),r=i("iAde"),a=i("FlRo"),c=i("8clQ"),l=i("Ssnw"),u=i("9wx0"),h=i("2kYt"),d=i("+Tre"),p=i("bFHC"),f=i("Y2X+"),g=i("FcRk"),b=i("s2Ay");function m(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",21),n.Sb(1,"mat-checkbox",22),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function A(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",23),n.Sb(1,"mat-checkbox",24),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function y(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")))}function w(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function v(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")))}function _(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.service.name)}}function S(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")))}function E(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.facility.name)}}function R(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")))}function C(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.destination)}}function T(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")))}function k(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.type.toUpperCase())}}function I(t,e){1&t&&n.Nb(0,"th",21)}function O(t,e){1&t&&(n.Sb(0,"mat-icon",28),n.ec(1,"translate"),n.Jc(2," check_circle_outline "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function D(t,e){1&t&&(n.Sb(0,"mat-icon",28),n.ec(1,"translate"),n.Jc(2," block "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function M(t,e){if(1&t&&(n.Sb(0,"td",26),n.Hc(1,O,3,3,"mat-icon",27),n.Hc(2,D,3,3,"mat-icon",27),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngIf",!t.blocked),n.Ab(1),n.kc("ngIf",t.blocked)}}function P(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")))}function x(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.propagationType)}}function N(t,e){1&t&&n.Nb(0,"tr",29)}function L(t,e){1&t&&n.Nb(0,"tr",30)}function F(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function z(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let H=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.destinations=[],this.selection=new o.c(!0,[]),this.filterValue="",this.pageSize=10,this.page=new n.o,this.pageSizeOptions=c.a}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"destinationId"!==t)),this.dataSource=new a.o(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}getDataForColumn(t,e){switch(e){case"destinationId":return t.id.toString();case"service":return t.service.name;case"facility":return t.facility.name;case"destination":return t.destination;case"type":return t.type;case"status":return t.blocked?"blocked":"allowed";case"propagationType":return t.propagationType;default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}pageChanged(t){this.page.emit(t)}ngAfterViewInit(){this.dataSource.paginator=this.paginator}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(s.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["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(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,m,2,3,"th",6),n.Hc(7,A,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,y,3,3,"th",9),n.Hc(10,w,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,v,3,3,"th",9),n.Hc(13,_,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,S,3,3,"th",9),n.Hc(16,E,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,R,3,3,"th",9),n.Hc(19,C,2,1,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,T,3,3,"th",9),n.Hc(22,k,2,1,"td",11),n.Pb(),n.Qb(23,15),n.Hc(24,I,1,0,"th",6),n.Hc(25,M,3,2,"td",11),n.Pb(),n.Qb(26,16),n.Hc(27,P,3,3,"th",9),n.Hc(28,x,2,1,"td",11),n.Pb(),n.Hc(29,N,1,0,"tr",17),n.Hc(30,L,1,0,"tr",18),n.Rb(),n.Rb(),n.Sb(31,"mat-paginator",19),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(32,F,3,3,"app-alert",20),n.Hc(33,z,3,3,"app-alert",20)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.destinations.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(25),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.destinations.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.destinations.length),n.Ab(1),n.kc("ngIf",0===e.destinations.length))},directives:[u.a,a.n,s.a,a.c,a.i,a.b,a.k,a.m,r.a,h.t,a.h,d.a,a.a,s.b,p.a,f.a,a.j,a.l,g.a],pipes:[b.d],styles:[""]}),t})()},pnmw:function(t,e,i){"use strict";i.d(e,"a",(function(){return j}));var n=i("EM62"),s=i("X2Q7"),o=i("cePI"),r=i("FlRo"),a=i("iAde"),c=i("8clQ"),l=i("OL2r"),u=i("Ssnw"),h=i("mjJC"),d=i("OZ4H"),p=i("9wx0"),f=i("2kYt"),g=i("+Tre"),b=i("PBFl"),m=i("bFHC"),A=i("Y2X+"),y=i("sEIs"),w=i("TQS+"),v=i("FcRk"),_=i("s2Ay"),S=i("j+u3");function E(t,e){if(1&t){const t=n.Tb();n.Sb(0,"th",18),n.Sb(1,"mat-checkbox",19),n.Zb("change",(function(e){n.xc(t);const i=n.dc();return e?i.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function R(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",20),n.Sb(1,"mat-checkbox",21),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function C(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")))}function T(t,e){if(1&t&&(n.Sb(0,"td",20),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.member.id)}}function k(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")))}function I(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.member.user))}}function O(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")))}function D(t,e){if(1&t&&(n.Sb(0,"span"),n.Jc(1),n.ec(2,"userFullName"),n.Nb(3,"br"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Lc(" ",n.fc(2,1,t.user),"")}}function M(t,e){if(1&t&&(n.Sb(0,"td",23),n.Hc(1,D,4,3,"span",24),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.kc("ngForOf",t.sponsors)}}function P(t,e){1&t&&n.Nb(0,"th",22)}function x(t,e){if(1&t){const t=n.Tb();n.Sb(0,"span",27),n.ec(1,"translate"),n.Sb(2,"button",28),n.Zb("mouseenter",(function(){return n.xc(t),n.dc(2).disableRouting=!0}))("mouseleave",(function(){n.xc(t);const e=n.dc(2);return e.disableRouting=e.routingStrategy}))("click",(function(){n.xc(t);const e=n.dc().$implicit;return n.dc().resetPassword(e)})),n.Sb(3,"mat-icon"),n.Jc(4,"vpn_key"),n.Rb(),n.Rb(),n.Rb()}if(2&t){const t=n.dc(2);n.kc("matTooltip",n.fc(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET"))("matTooltipPosition","above"),n.Ab(2),n.kc("disabled",t.loading)}}function N(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",23),n.Sb(1,"button",25),n.Zb("mouseenter",(function(){return n.xc(t),n.dc().disableRouting=!0}))("mouseleave",(function(){n.xc(t);const e=n.dc();return e.disableRouting=e.routingStrategy}))("click",(function(){n.xc(t);const i=e.$implicit;return n.dc().showSponsors(i)})),n.Sb(2,"mat-icon"),n.Jc(3,"edit"),n.Rb(),n.Rb(),n.Hc(4,x,5,5,"span",26),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(4),n.kc("ngIf",i.passwdResetAuth(t))}}function L(t,e){1&t&&n.Nb(0,"tr",29)}const F=function(t,e){return["/organizations",t,"members",e]};function z(t,e){if(1&t&&n.Nb(0,"tr",30),2&t){const t=e.$implicit,i=n.dc();n.Eb("disable-outline",i.disableRouting)("cursor-pointer",!i.disableRouting),n.kc("routerLink",i.disableRouting?null:n.qc(6,F,t.member.voId,t.member.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.qc(9,F,t.member.voId,t.member.id))}}function H(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function B(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let j=(()=>{class t{constructor(t,e,i,s,o){this.dialog=t,this.authResolver=e,this.storeService=i,this.attributesManager=s,this.tableCheckbox=o,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","sponsors","menu"],this.disableRouting=!1,this.pageSize=10,this.page=new n.o,this.refreshTable=new n.o,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=c.a}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.o(this.sponsoredMembers),this.setDataSource(),this.dataSource.filter=this.filterValue,this.routingStrategy=this.disableRouting}getDataForColumn(t,e){var i;switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?t.member.user.lastName?t.member.user.lastName:null!==(i=t.member.user.firstName)&&void 0!==i?i:"":"";case"sponsors":return t.sponsors.map(t=>Object(c.w)(t.user)).join();default:return""}}exportData(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>Object(c.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(c.g)(t,e,this.getDataForColumn,this),this.dataSource.filter=this.filterValue,this.dataSource.paginator=this.paginator)}showSponsors(t){const e=Object(c.o)();e.width="650px",e.data={sponsors:t.sponsors,member:t.member,theme:"vo-theme"},this.dialog.open(l.a,e).afterClosed().subscribe(()=>{this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}resetPassword(t){this.loading=!0;const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.member.userId).subscribe(i=>{const n=i.filter(t=>e.includes(t.friendlyNameParameter)),s=Object(c.o)();s.width="400px",s.data={userId:t.member.userId,memberId:t.member.id,logins:n},this.dialog.open(h.a,s).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(t){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:t.member.voId,beanName:"Vo"},t.member])}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(d.b),n.Mb(u.h),n.Mb(u.m),n.Mb(s.c),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-sponsored-members-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Qc(a.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first))},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSize:"pageSize"},outputs:{page:"page",refreshTable:"refreshTable"},features:[n.yb],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"routerLink","perunWebAppsMiddleClickRouterLink","disable-outline","cursor-pointer",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"mouseenter","mouseleave","click"],[3,"matTooltip","matTooltipPosition",4,"ngIf"],[3,"matTooltip","matTooltipPosition"],["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,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,E,2,3,"th",6),n.Hc(7,R,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,C,3,3,"th",9),n.Hc(10,T,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,k,3,3,"th",9),n.Hc(13,I,3,3,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,O,3,3,"th",9),n.Hc(16,M,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,P,1,0,"th",9),n.Hc(19,N,5,1,"td",11),n.Pb(),n.Hc(20,L,1,0,"tr",14),n.Hc(21,z,1,12,"tr",15),n.Rb(),n.Rb(),n.Sb(22,"mat-paginator",16),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(23,H,3,3,"app-alert",17),n.Hc(24,B,3,3,"app-alert",17)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.sponsoredMembers.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(16),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.sponsoredMembers.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.sponsoredMembers.length),n.Ab(1),n.kc("ngIf",0===e.sponsoredMembers.length))},directives:[p.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,a.a,f.t,r.h,g.a,r.a,o.b,f.s,b.b,m.a,A.a,r.j,r.l,y.g,w.c,v.a],pipes:[_.d,S.a],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},prE9:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("Efrr"),s=i("pBDD"),o=i("mW0F");class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(o.a)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var c=i("8lHc");function l(t,e=n.a){return i=()=>Object(c.a)(t,e),function(t){return t.lift(new r(i))};var i}},py76:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("8clQ"),s=i("nyAh"),o=i("EM62");let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=Object(n.l)(t.attributes,s.a.GROUP_SYNC_ENABLED),i=Object(n.l)(t.attributes,s.a.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=Object(n.l)(t.attributes,s.a.GROUP_LAST_SYNC_STATE),i=Object(n.l)(t.attributes,s.a.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}if(o){const e=Object(n.l)(t.attributes,s.a.GROUP_LAST_STRUCTURE_SYNC_STATE),i=Object(n.l)(t.attributes,s.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Lb({name:"groupSyncIconColor",type:t,pure:!0}),t})()},pynj:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("EM62"),s=i("KTx3"),o=i("YtkY"),r=i("mWib"),a=i("Ohay"),c=i("29Wa"),l=i("Cd2c"),u=i("s2Ay");const h=["groupFilterInput"];let d=(()=>{class t{constructor(){this.filter=new n.o}ngOnInit(){Object(s.a)(this.groupFilterInput.nativeElement,"keyup").pipe(Object(o.a)(t=>t.target.value),Object(r.a)(500),Object(a.a)()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){var i;1&t&&n.Dc(h,!0),2&t&&n.sc(i=n.ac())&&(e.groupFilterInput=i.first)},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.Sb(0,"mat-form-field",0),n.Nb(1,"input",1,2),n.ec(3,"translate"),n.Rb()),2&t&&(n.Ab(1),n.lc("placeholder",n.fc(3,1,e.placeholder)))},directives:[c.c,l.b],pipes:[u.d],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})()},qEfY:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},qZtG:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("ROBh"),s=i("mawV");function o(...t){return Object(s.a)()(Object(n.a)(...t))}},qvOF:function(t,e,i){"use strict";i.d(e,"a",(function(){return P})),i.d(e,"b",(function(){return N})),i.d(e,"c",(function(){return j})),i.d(e,"d",(function(){return B})),i.d(e,"e",(function(){return z})),i.d(e,"f",(function(){return x})),i.d(e,"g",(function(){return G})),i.d(e,"h",(function(){return L}));var n=i("5XID"),s=i("EM62"),o=i("ZTXN"),r=i("ROBh"),a=i("IdLP"),c=i("KTx3"),l=i("g6G6"),u=i("VvXq"),h=i("vT4p"),d=i("bwdy"),p=i("9bRT"),f=i("Ohay"),g=i("prE9"),b=i("xVbo"),m=i("kuMc"),A=i("jIqt"),y=i("5uGe");class w{call(t,e){return e.subscribe(new v(t))}}class v extends y.a{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}var _=i("TLy2"),S=i("wqq/"),E=i("cZZj"),R=i("2kYt"),C=i("E5oP"),T=i("cqs0");const k=["contentWrapper"],I=["*"],O=new s.r("VIRTUAL_SCROLL_STRATEGY");class D{constructor(t,e,i){this._scrolledIndexChange=new o.a,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Object(f.a)()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,i){if(i0&&(n.end=Math.min(o,n.end+t),n.start=Math.max(0,Math.floor(e-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(this._itemSize*n.start),this._scrolledIndexChange.next(Math.floor(e))}}function M(t){return t._scrollStrategy}let P=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new D(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=Object(n.f)(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=Object(n.f)(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=Object(n.f)(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s.zb([{provide:O,useFactory:M,deps:[Object(s.U)(()=>t)]}]),s.yb]}),t})(),x=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new o.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Object(g.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(r.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(b.a)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(c.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(s.A),s.Wb(E.a),s.Wb(R.e,8))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(s.A),Object(s.Wb)(E.a),Object(s.Wb)(R.e,8))},token:t,providedIn:"root"}),t})(),N=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new o.a,this._elementScrolled=new a.a(t=>this.ngZone.runOutsideAngular(()=>Object(c.a)(this.elementRef.nativeElement,"scroll").pipe(Object(m.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Object(E.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(E.d)()?t.left=t.right:1==Object(E.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(E.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Object(E.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Object(E.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(x),s.Mb(s.A),s.Mb(C.c,8))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),L=(()=>{class t{constructor(t,e,i){this._platform=t,this._document=i,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?Object(l.a)(Object(c.a)(e,"resize"),Object(c.a)(e,"orientationchange")):Object(r.a)(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(g.a)(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(E.a),s.Wb(s.A),s.Wb(R.e,8))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(E.a),Object(s.Wb)(s.A),Object(s.Wb)(R.e,8))},token:t,providedIn:"root"}),t})();const F="undefined"!=typeof requestAnimationFrame?u.a:h.a;let z=(()=>{class t extends N{constructor(t,e,i,n,s,r,c){if(super(t,r,i,s),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=n,this._detachedSubject=new o.a,this._renderedRangeSubject=new o.a,this._orientation="vertical",this.scrolledIndexChange=new a.a(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(e))))),this.renderedRangeStream=this._renderedRangeSubject.asObservable(),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=d.a.EMPTY,!n)throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');c&&(this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}))}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Object(A.a)(null),Object(g.a)(0,F)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){if(this._forOf)throw Error("CdkVirtualScrollViewport is already attached.");this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(Object(m.a)(this._detachedSubject)).subscribe(t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,i;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const i="horizontal"==this.orientation,n=i?"X":"Y";let s=`translate${n}(${Number((i&&this.dir&&"rtl"==this.dir.value?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===e&&(s+=` translate${n}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=s&&(this._renderedContentTransform=s,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,e="auto"){const i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return super.measureScrollOffset(t||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),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 t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":this._totalContentSize+"px",this._totalContentWidth="horizontal"===this.orientation?this._totalContentSize+"px":""}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(s.h),s.Mb(s.A),s.Mb(O,8),s.Mb(C.c,8),s.Mb(x),s.Mb(L,8))},t.\u0275cmp=s.Gb({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){var i;1&t&&s.Dc(k,!0),2&t&&s.sc(i=s.ac())&&(e._contentWrapper=i.first)},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&s.Eb("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s.zb([{provide:N,useExisting:t}]),s.xb],ngContentSelectors:I,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(s.jc(),s.Sb(0,"div",0,1),s.ic(2),s.Rb(),s.Nb(3,"div",2)),2&t&&(s.Ab(3),s.Ec("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function H(t,e){if(!e.getBoundingClientRect)return 0;const i=e.getBoundingClientRect();return"horizontal"==t?i.width:i.height}let B=(()=>{class t{constructor(t,e,i,n,s){this._viewContainerRef=t,this._template=e,this._differs=i,this._viewport=n,this.viewChange=new o.a,this._dataSourceChanges=new o.a,this.cdkVirtualForTemplateCacheSize=20,this.dataStream=this._dataSourceChanges.pipe(Object(A.a)(null),t=>t.lift(new w),Object(_.a)(([t,e])=>this._changeDataSource(t,e)),Object(S.a)(1)),this._differ=null,this._templateCache=[],this._needsUpdate=!1,this._destroyed=new o.a,this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Object(m.a)(this._destroyed)).subscribe(t=>{this._renderedRange=t,s.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,Object(T.e)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new T.a(Object(p.a)(t)?t:Array.prototype.slice.call(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,i)=>t(e+(this._renderedRange?this._renderedRange.start:0),i):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;if(t.startthis._renderedRange.end)throw Error("Error: attempted to measure an item that isn't rendered.");const i=t.start-this._renderedRange.start;let n=0,s=t.end-t.start;for(;s--;){const t=this._viewContainerRef.get(s+i);let o=t?t.rootNodes.length:0;for(;o--;)n+=H(e,t.rootNodes[o])}return n}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete();for(let t of this._templateCache)t.destroy()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(this.cdkVirtualForTrackBy)),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):Object(r.a)()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){let i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}_applyChanges(t){t.forEachOperation((t,e,i)=>{if(null==t.previousIndex)this._insertViewForNewItem(i).context.$implicit=t.item;else if(null==i)this._cacheView(this._detachView(e));else{const n=this._viewContainerRef.get(e);this._viewContainerRef.move(n,i),n.context.$implicit=t.item}}),t.forEachIdentityChange(t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const t=this._viewContainerRef.get(i);t.context.index=this._renderedRange.start+i,t.context.count=e,this._updateComputedContextProperties(t.context)}}_cacheView(t){if(this._templateCache.length{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})(),G=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[C.a,E.b,j],C.a,j]}),t})()},qySP:function(t,e,i){"use strict";i.d(e,"a",(function(){return M}));var n=i("EM62"),s=i("iAde"),o=i("cePI"),r=i("FlRo"),a=i("8clQ"),c=i("Ssnw"),l=i("9wx0"),u=i("2kYt"),h=i("+Tre"),d=i("Ds80"),p=i("sEIs"),f=i("TQS+"),g=i("FcRk"),b=i("s2Ay");function m(t,e){1&t&&n.Nb(0,"th",18)}function A(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function y(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function w(t,e){if(1&t&&(n.Sb(0,"td",19),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.id)}}function v(t,e){1&t&&n.Nb(0,"th",18)}function _(t,e){if(1&t&&(n.Sb(0,"td",22),n.Nb(1,"perun-web-apps-recently-viewed-icon",23),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("recentIds",i.recentIds)("id",t.id)}}function S(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function E(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.shortName)}}function R(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function C(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.name)}}function T(t,e){1&t&&n.Nb(0,"tr",24)}const k=function(t){return["/organizations",t]};function I(t,e){if(1&t&&n.Nb(0,"tr",25),2&t){const t=e.$implicit,i=n.dc();n.Eb("disable-outline",i.disableRouting),n.kc("routerLink",i.disableRouting?null:n.pc(4,k,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.pc(6,k,t.id))}}function O(t,e){1&t&&(n.Sb(0,"app-alert",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function D(t,e){1&t&&(n.Sb(0,"app-alert",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let M=(()=>{class t{constructor(t){this.authResolver=t,this.vos=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.pageSizeOptions=a.a,this.page=new n.o}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.o(this.vos),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}exportData(t){Object(a.i)(Object(a.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Object(a.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(a.g)(t,e,this.getDataForColumn,this),this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Qc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first))},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.yb],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,m,1,0,"th",6),n.Hc(7,A,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,y,3,3,"th",9),n.Hc(10,w,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,v,1,0,"th",6),n.Hc(13,_,2,2,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,S,3,3,"th",9),n.Hc(16,E,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,R,3,3,"th",9),n.Hc(19,C,2,1,"td",11),n.Pb(),n.Hc(20,T,1,0,"tr",14),n.Hc(21,I,1,8,"tr",15),n.Rb(),n.Rb(),n.Sb(22,"mat-paginator",16),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(23,O,3,3,"app-alert",17),n.Hc(24,D,3,3,"app-alert",17)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(16),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.vos.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),n.Ab(1),n.kc("ngIf",0===e.vos.length))},directives:[l.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,s.a,u.t,r.h,r.a,h.a,o.b,d.a,r.j,r.l,p.g,f.c,g.a],pipes:[b.d],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},r3xl:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Kc(a.fc(3,5,"DIALOGS.DELETE_SERVICE.DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.DELETE_SERVICE.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.serviceManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.dataSource=new r.o(this.data.services),this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services}recDelete(){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).subscribe(()=>{this.recDelete(),this.loading=!1},()=>this.loading=!1)}onDelete(){this.recDelete()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(n.n),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-delete-service-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onDelete()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,9,"DIALOGS.DELETE_SERVICE.TITLE")),a.Ab(2),a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.DELETE_SERVICE.CANCEL"),""),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.DELETE_SERVICE.DELETE"),""))},directives:[s.j,l.t,s.c,u.b,h.c,s.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t})()},r9RI:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5uGe");class s extends n.a{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},rWo0:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("HgnN"),s=i("i9P/");const o={closed:!0,next(t){},error(t){if(n.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},rmDM:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),s=i("s2Ay");let o=(()=>{class t{constructor(t){this.translateService=t}transform(t,...e){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.e))},t.\u0275pipe=n.Lb({name:"applicationFormItemDisabled",type:t,pure:!0}),t})()},ruxD:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("5uGe"),s=i("bwdy");function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends n.a{constructor(t,e){super(t),this.add(new s.a(e))}}},ryP2:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("6Oco"),s=i("ROBh"),o=i("47ST");let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(n.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},s2Ay:function(t,e,i){"use strict";i.d(e,"a",(function(){return x})),i.d(e,"b",(function(){return f})),i.d(e,"c",(function(){return L})),i.d(e,"d",(function(){return N})),i.d(e,"e",(function(){return P}));var n=i("EM62"),s=i("ROBh"),o=i("9bRT"),r=i("P4Xx"),a=i("qZtG"),c=i("i9xl"),l=i("J+dc"),u=i("wqq/"),h=i("YtkY"),d=i("5uDM"),p=i("TLy2");class f{}let g=(()=>{class t extends f{getTranslation(t){return Object(s.a)({})}}return t.\u0275fac=function(e){return b(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();const b=n.Ub(g);class m{}let A=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();function y(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!y(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{class t extends _{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!w(t)||!w(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return w(n)?n:t}):t}}return t.\u0275fac=function(e){return E(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();const E=n.Ub(S);class R{}let C=(()=>{class t extends R{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return T(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();const T=n.Ub(C);class k{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.o,this.onLangChange=new n.o,this.onDefaultLangChange=new n.o}}const I=new n.r("USE_STORE"),O=new n.r("USE_DEFAULT_LANG"),D=new n.r("DEFAULT_LANGUAGE"),M=new n.r("USE_EXTEND");let P=(()=>{class t{constructor(t,e,i,s,o,r=!0,a=!1,c=!1,l){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new n.o,this._onLangChange=new n.o,this._onDefaultLangChange=new n.o,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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(Object(l.a)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Object(s.a)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Object(l.a)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Object(s.a)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Object(u.a)(1),Object(l.a)(1));return this.loadingTranslations=e.pipe(Object(h.a)(e=>this.compiler.compileTranslations(e,t)),Object(u.a)(1),Object(l.a)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?function t(e,i){let n=Object.assign({},e);return v(e)&&v(i)&&Object.keys(i).forEach(s=>{v(i[s])?s in e?n[s]=t(e[s],i[s]):Object.assign(n,{[s]:i[s]}):Object.assign(n,{[s]:i[s]})}),n}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},a=!1;for(let s of e)n[s]=this.getParsedResult(t,s,i),Object(o.a)(n[s])&&(a=!0);if(a){const t=e.map(t=>Object(o.a)(n[t])?n[t]:Object(s.a)(n[t]));return Object(r.a)(t).pipe(Object(h.a)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i}))}return n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(d.a)(i=>(i=this.getParsedResult(i,t,e),Object(o.a)(i)?i:Object(s.a)(i))));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return Object(o.a)(i)?i:Object(s.a)(i)}}getStreamOnTranslationChange(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');return Object(a.a)(Object(c.a)(()=>this.get(t,e)),this.onTranslationChange.pipe(Object(p.a)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:Object(s.a)(n)})))}stream(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');return Object(a.a)(Object(c.a)(()=>this.get(t,e)),this.onLangChange.pipe(Object(p.a)(i=>{const n=this.getParsedResult(i.translations,t,e);return Object(o.a)(n)?n:Object(s.a)(n)})))}instant(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(Object(o.a)(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(k),n.Wb(f),n.Wb(R),n.Wb(_),n.Wb(m),n.Wb(O),n.Wb(I),n.Wb(M),n.Wb(D))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e,i){this.translateService=t,this.element=e,this._ref=i,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(t=>{t.lang===this.translateService.currentLang&&this.checkNodes(!0,t.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(t=>{this.checkNodes(!0,t.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(t=>{this.checkNodes(!0)}))}set translate(t){t&&(this.key=t,this.checkNodes())}set translateParams(t){y(this.currentParams,t)||(this.currentParams=t,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(t=!1,e){let i=this.element.nativeElement.childNodes;i.length||(this.setContent(this.element.nativeElement,this.key),i=this.element.nativeElement.childNodes);for(let n=0;n{i!==t&&(e.lastKey=t),e.originalContent||(e.originalContent=this.getContent(e)),e.currentValue=w(i)?i:e.originalContent||t,this.setContent(e,this.key?e.currentValue:e.originalContent.replace(t,e.currentValue)),this._ref.markForCheck()};if(w(i)){let e=this.translateService.getParsedResult(i,t,this.currentParams);Object(o.a)(e)?e.subscribe(n):n(e)}else this.translateService.get(t,this.currentParams).subscribe(n)}}getContent(t){return w(t.textContent)?t.textContent:t.data}setContent(t,e){w(t.textContent)?t.textContent=e:t.data=e}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(P),n.Mb(n.l),n.Mb(n.h))},t.\u0275dir=n.Hb({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),N=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);Object(o.a)(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(y(t,this.lastKey)&&y(e,this.lastParams))return this.value;let i;if(w(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(P),n.Yb())},t.\u0275pipe=n.Lb({name:"translate",type:t,pure:!1}),t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:f,useClass:g},e.compiler||{provide:R,useClass:C},e.parser||{provide:_,useClass:S},e.missingTranslationHandler||{provide:m,useClass:A},k,{provide:I,useValue:e.isolate},{provide:O,useValue:e.useDefaultLang},{provide:M,useValue:e.extend},{provide:D,useValue:e.defaultLanguage},P]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:f,useClass:g},e.compiler||{provide:R,useClass:C},e.parser||{provide:_,useClass:S},e.missingTranslationHandler||{provide:m,useClass:A},{provide:I,useValue:e.isolate},{provide:O,useValue:e.useDefaultLang},{provide:M,useValue:e.extend},{provide:D,useValue:e.defaultLanguage},P]}}}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})()},s8L6:function(t,e,i){"use strict";i.d(e,"a",(function(){return E}));var n=i("cqs0"),s=i("V78E"),o=i("X2Q7"),r=i("snnp"),a=i("iyZ4"),c=i("8clQ"),l=i("Ssnw"),u=i("EM62"),h=i("OZ4H"),d=i("sEIs"),p=i("0XDM"),f=i("2kYt"),g=i("A8Ay"),b=i("PBFl"),m=i("csyo"),A=i("23RZ"),y=i("s2Ay");function w(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",7),u.Zb("click",(function(){return u.xc(t),u.dc().createResource()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function v(t,e){if(1&t){const t=u.Tb();u.Sb(0,"button",8),u.Zb("click",(function(){return u.xc(t),u.dc().removeResource()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}if(2&t){const t=u.dc();u.kc("disabled",0===t.selected.selected.length),u.Ab(1),u.Lc(" ",u.fc(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function _(t,e){1&t&&u.Nb(0,"mat-spinner",9)}function S(t,e){if(1&t){const t=u.Tb();u.Sb(0,"perun-web-apps-resources-list",10),u.Zb("page",(function(e){return u.xc(t),u.dc().pageChanged(e)})),u.Rb()}if(2&t){const t=u.dc();u.kc("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("selection",t.selected)("disableRouting",!t.routeAuth)("displayedColumns",t.displayedColumns)}}let E=(()=>{class t{constructor(t,e,i,s,o){this.dialog=t,this.facilitiesManager=e,this.tableConfigService=i,this.route=s,this.authResolver=o,this.resources=[],this.selected=new n.c(!0,[]),this.filterValue="",this.tableId=a.z,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilitiesManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}removeResource(){const t=Object(c.o)();t.width="450px",t.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(s.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(t=>{this.resources=t,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(t){this.filterValue=t}createResource(){const t=Object(c.o)();t.width="1350px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(r.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilityResourcesComponent",t.\u0275fac=function(e){return new(e||t)(u.Mb(h.b),u.Mb(o.g),u.Mb(a.pb),u.Mb(d.a),u.Mb(l.h))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&u.Eb("router-component",!0)},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page"]],template:function(t,e){1&t&&(u.Sb(0,"div"),u.Sb(1,"h1",0),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Sb(4,"perun-web-apps-refresh-button",1),u.Zb("refresh",(function(){return e.refreshTable()})),u.Rb(),u.Hc(5,w,3,3,"button",2),u.Hc(6,v,3,4,"button",3),u.Sb(7,"perun-web-apps-immediate-filter",4),u.Zb("filter",(function(t){return e.applyFilter(t)})),u.Rb(),u.Hc(8,_,1,0,"mat-spinner",5),u.Hc(9,S,1,6,"perun-web-apps-resources-list",6),u.Rb()),2&t&&(u.Ab(2),u.Kc(u.fc(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),u.Ab(3),u.kc("ngIf",!e.loading&&e.addAuth),u.Ab(1),u.kc("ngIf",!e.loading&&e.removeAuth),u.Ab(1),u.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.Ab(1),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading))},directives:[p.a,f.t,g.a,b.b,m.c,A.a],pipes:[y.d],styles:[""]}),t})()},sEIs:function(t,e,i){"use strict";i.d(e,"a",(function(){return Ft})),i.d(e,"b",(function(){return z})),i.d(e,"c",(function(){return F})),i.d(e,"d",(function(){return ai})),i.d(e,"e",(function(){return ze})),i.d(e,"f",(function(){return Qe})),i.d(e,"g",(function(){return ti})),i.d(e,"h",(function(){return ni})),i.d(e,"i",(function(){return ei})),i.d(e,"j",(function(){return fi})),i.d(e,"k",(function(){return si})),i.d(e,"l",(function(){return Be}));var n=i("2kYt"),s=i("EM62"),o=i("ROBh"),r=i("GoAz"),a=i("C05f"),c=i("HM3f"),l=i("IdLP"),u=i("VxHp"),h=i("i9xl"),d=i("6Oco"),p=i("ZTXN"),f=i("YtkY"),g=i("mawV"),b=i("xVbo"),m=i("5uGe"),A=i("PNff");function y(t){return function(e){return 0===t?Object(d.b)():e.lift(new w(t))}}class w{constructor(t){if(this.total=t,this.total<0)throw new A.a}call(t,e){return e.subscribe(new v(t,this.total))}}class v extends m.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function ot(t){return Array.prototype.concat.apply([],t)}function rt(t){return t.length>0?t[t.length-1]:null}function at(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function ct(t){return Object(s.rb)(t)?t:Object(s.sb)(t)?Object(r.a)(Promise.resolve(t)):Object(o.a)(t)}function lt(t,e,i){return i?function(t,e){return nt(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!pt(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>st(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,s){if(i.segments.length>s.length)return!!pt(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!pt(i.segments,s))return!1;for(const e in n.children){if(!i.children[e])return!1;if(!t(i.children[e],n.children[e]))return!1}return!0}{const t=s.slice(0,i.segments.length),o=s.slice(i.segments.length);return!!pt(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,o)}}(e,i,i.segments)}(t.root,e.root)}class ut{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return mt.serialize(this)}}class ht{constructor(t,e){this.segments=t,this.children=e,this.parent=null,at(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return At(this)}}class dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=tt(this.parameters)),this._parameterMap}toString(){return Et(this)}}function pt(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function ft(t,e){let i=[];return at(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),at(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class gt{}class bt{parse(t){const e=new It(t);return new ut(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,i){if(!e.hasChildren())return At(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return at(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=ft(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${At(e)}/${i[0]}`:`${At(e)}/(${i.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${wt(e)}=${wt(t)}`).join("&"):`${wt(e)}=${wt(i)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const mt=new bt;function At(t){return t.segments.map(t=>Et(t)).join("/")}function yt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wt(t){return yt(t).replace(/%3B/gi,";")}function vt(t){return yt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _t(t){return decodeURIComponent(t)}function St(t){return _t(t.replace(/\+/g,"%20"))}function Et(t){return`${vt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${vt(t)}=${vt(e[t])}`).join("")}`;var e}const Rt=/^[^\/()?;=#]+/;function Ct(t){const e=t.match(Rt);return e?e[0]:""}const Tt=/^[^=?&#]+/,kt=/^[^?&#]+/;class It{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new ht(t,e)),i}parseSegment(){const t=Ct(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new dt(_t(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ct(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Ct(this.remaining);t&&(i=t,this.capture(i))}t[_t(e)]=_t(i)}parseQueryParam(t){const e=function(t){const e=t.match(Tt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(kt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=St(e),s=St(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Ct(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new ht([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ot{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Dt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Dt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Mt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Mt(t,this._root).map(t=>t.value)}}function Dt(t,e){if(t===e.value)return e;for(const i of e.children){const e=Dt(t,i);if(e)return e}return null}function Mt(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Mt(t,i);if(n.length)return n.unshift(e),n}return[]}class Pt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function xt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Nt extends Ot{constructor(t,e){super(t),this.snapshot=e,jt(this,t)}toString(){return this.snapshot.toString()}}function Lt(t,e){const i=function(t,e){const i=new Ht([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Bt("",new Pt(i,[]))}(t,e),n=new a.a([new dt("",{})]),s=new a.a({}),o=new a.a({}),r=new a.a({}),c=new a.a(""),l=new Ft(n,s,r,c,o,"primary",e,i.root);return l.snapshot=i.root,new Nt(new Pt(l,[]),i)}class Ft{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(f.a)(t=>tt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(f.a)(t=>tt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function zt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Ht{constructor(t,e,i,n,s,o,r,a,c,l,u){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=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=tt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bt extends Ot{constructor(t,e){super(e),this.url=t,jt(this,e)}toString(){return Gt(this._root)}}function jt(t,e){e.value._routerState=t,e.children.forEach(e=>jt(t,e))}function Gt(t){const e=t.children.length>0?` { ${t.children.map(Gt).join(", ")} } `:"";return`${t.value}${e}`}function Ut(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,nt(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),nt(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;int(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Kt(t.parent,e.parent))}function Vt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function qt(t,e,i,n,s){let o={};return n&&at(n,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new ut(i.root===t?e:function t(e,i,n){const s={};return at(e.children,(e,o)=>{s[o]=e===i?n:t(e,i,n)}),new ht(e.segments,s)}(i.root,t,e),o,s)}class Jt{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Vt(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==rt(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wt{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Zt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Yt(t,e,i){if(t||(t=new ht([],{})),0===t.segments.length&&t.hasChildren())return $t(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=Zt(i[n]),a=n0&&void 0===r)break;if(r&&a&&"object"==typeof a&&void 0===a.outlets){if(!ee(r,a,e))return o;n+=2}else{if(!ee(r,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{null!==i&&(s[n]=Yt(t.children[n],e,i))}),at(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new ht(t.segments,s)}}function Xt(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=Xt(new ht([],{}),0,t))}),e}function te(t){const e={};return at(t,(t,i)=>e[i]=""+t),e}function ee(t,e,i){return t==i.path&&nt(e,i.parameters)}class ie{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Ut(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=xt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),at(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=xt(t),s=t.value.component?i.children:e;at(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=xt(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new $(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Z(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Ut(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ne(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function ne(t){Ut(t.value),t.children.forEach(ne)}class se{constructor(t,e){this.routes=t,this.module=e}}function oe(t){return"function"==typeof t}function re(t){return t instanceof ut}const ae=Symbol("INITIAL_VALUE");function ce(){return Object(R.a)(t=>Object(c.a)(...t.map(t=>t.pipe(Object(C.a)(1),Object(T.a)(ae)))).pipe(Object(k.a)((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==ae)return t;if(n===ae&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||re(n))return n}return t},t)},ae),Object(b.a)(t=>t!==ae),Object(f.a)(t=>re(t)?t:!0===t),Object(C.a)(1)))}class le{constructor(t){this.segmentGroup=t||null}}class ue{constructor(t){this.urlTree=t}}function he(t){return new l.a(e=>e.error(new le(t)))}function de(t){return new l.a(e=>e.error(new ue(t)))}function pe(t){return new l.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class fe{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.y)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(f.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(I.a)(t=>{if(t instanceof ue)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof le)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(f.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(I.a)(t=>{if(t instanceof le)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new ht([],{primary:t}):t;return new ut(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(f.a)(t=>new ht([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Object(o.a)({});const i=[],n=[],s={};return at(t,(t,o)=>{const r=e(o,t).pipe(Object(f.a)(t=>s[o]=t));"primary"===o?i.push(r):n.push(r)}),o.a.apply(null,i.concat(n)).pipe(Object(g.a)(),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Object(b.a)((e,i)=>t(e,i,n)):E.a,y(1),i?Object(S.a)(e):Object(_.a)(()=>new u.a))}(),Object(f.a)(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,r){return Object(o.a)(...i).pipe(Object(O.a)(a=>this.expandSegmentAgainstRoute(t,e,i,a,n,s,r).pipe(Object(I.a)(t=>{if(t instanceof le)return Object(o.a)(null);throw t}))),Object(D.a)(t=>!!t),Object(I.a)((t,i)=>{if(t instanceof u.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Object(o.a)(new ht([],{}));throw new le(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Ae(n)!==o?he(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):he(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?de(s):this.lineralizeSegments(i,s).pipe(Object(M.a)(i=>{const s=new ht(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:l}=ge(e,n,s);if(!r)return he(e);const u=this.applyRedirectCommands(a,n.redirectTo,l);return n.redirectTo.startsWith("/")?de(u):this.lineralizeSegments(n,u).pipe(Object(M.a)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(f.a)(t=>(i._loadedConfig=t,new ht(n,{})))):Object(o.a)(new ht(n,{}));const{matched:s,consumedSegments:r,lastChild:a}=ge(e,i,n);if(!s)return he(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe(Object(M.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:a}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>me(t,e,i)&&"primary"!==Ae(i))}(t,i,n)?{segmentGroup:be(new ht(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==Ae(n)&&(i[Ae(n)]=new ht([],{}));return i}(n,new ht(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>me(t,e,i))}(t,i,n)?{segmentGroup:be(new ht(t.segments,function(t,e,i,n){const s={};for(const o of i)me(t,e,o)&&!n[Ae(o)]&&(s[Ae(o)]=new ht([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,r,c,n);return 0===a.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(f.a)(t=>new ht(r,t))):0===n.length&&0===a.length?Object(o.a)(new ht(r,{})):this.expandSegment(i,s,n,a,"primary",!0).pipe(Object(f.a)(t=>new ht(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Object(o.a)(new se(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(o.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Object(M.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(f.a)(t=>(e._loadedConfig=t,t))):function(t){return new l.a(e=>e.error(et(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(o.a)(new se([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return Object(o.a)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&oe(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!oe(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return ct(o)});return Object(o.a)(s).pipe(ce(),Object(P.a)(t=>{if(!re(t))return;const e=et(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(f.a)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Object(o.a)(i);if(n.numberOfChildren>1||!n.children.primary)return pe(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new ut(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return at(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return at(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new ht(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function ge(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||it)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function be(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new ht(t.segments.concat(e.segments),e.children)}return t}function me(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function Ae(t){return t.outlet||"primary"}class ye{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class we{constructor(t,e){this.component=t,this.route=e}}function ve(t,e,i){const n=t._root;return function t(e,i,n,s,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=xt(i);return e.children.forEach(e=>{!function(e,i,n,s,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=e.value,a=i?i.value:null,c=n?n.getContext(e.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!pt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pt(t.url,e.url)||!nt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(t,e)||!nt(t.queryParams,e.queryParams);case"paramsChange":default:return!Kt(t,e)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new ye(s)):(r.data=a.data,r._resolvedData=a._resolvedData),t(e,i,r.component?c?c.children:null:n,s,o),l&&c&&c.outlet&&c.outlet.isActivated&&o.canDeactivateChecks.push(new we(c.outlet.component,a))}else a&&Se(i,c,o),o.canActivateChecks.push(new ye(s)),t(e,null,r.component?c?c.children:null:n,s,o)}(e,r[e.value.outlet],n,s.concat([e.value]),o),delete r[e.value.outlet]}),at(r,(t,e)=>Se(t,n.getContext(e),o)),o}(n,e?e._root:null,i,[n.value])}function _e(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Se(t,e,i){const n=xt(t),s=t.value;at(n,(t,n)=>{Se(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new we(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function Ee(t,e){return null!==t&&e&&e(new Y(t)),Object(o.a)(!0)}function Re(t,e){return null!==t&&e&&e(new W(t)),Object(o.a)(!0)}function Ce(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return Object(o.a)(!0);const s=n.map(n=>Object(h.a)(()=>{const s=_e(n,e,i);let o;if(function(t){return t&&oe(t.canActivate)}(s))o=ct(s.canActivate(e,t));else{if(!oe(s))throw new Error("Invalid CanActivate guard");o=ct(s(e,t))}return o.pipe(Object(D.a)())}));return Object(o.a)(s).pipe(ce())}function Te(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(h.a)(()=>{const s=e.guards.map(s=>{const o=_e(s,e.node,i);let r;if(function(t){return t&&oe(t.canActivateChild)}(o))r=ct(o.canActivateChild(n,t));else{if(!oe(o))throw new Error("Invalid CanActivateChild guard");r=ct(o(n,t))}return r.pipe(Object(D.a)())});return Object(o.a)(s).pipe(ce())}));return Object(o.a)(s).pipe(ce())}class ke{}class Ie{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){try{const t=Me(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new Ht([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Pt(i,e),s=new Bt(this.url,n);return this.inheritParamsAndData(s._root),Object(o.a)(s)}catch(t){return new l.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=zt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=ft(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const o of t)try{return this.processSegmentAgainstRoute(o,e,i,n)}catch(s){if(!(s instanceof ke))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new ke}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new ke;if((t.outlet||"primary")!==n)throw new ke;let s,o=[],r=[];if("**"===t.path){const o=i.length>0?rt(i).parameters:{};s=new Ht(i,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ne(t),n,t.component,t,Oe(e),De(e)+i.length,Le(t))}else{const a=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new ke;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||it)(i,t,e);if(!n)throw new ke;const s={};at(n.posParams,(t,e)=>{s[e]=t.path});const o=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:o}}(e,t,i);o=a.consumedSegments,r=i.slice(a.lastChild),s=new Ht(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ne(t),n,t.component,t,Oe(e),De(e)+o.length,Le(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=Me(e,o,r,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Pt(s,t)]}if(0===a.length&&0===l.length)return[new Pt(s,[])];const u=this.processSegment(a,c,l,"primary");return[new Pt(s,u)]}}function Oe(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function De(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function Me(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>Pe(t,e,i)&&"primary"!==xe(i))}(t,i,n)){const s=new ht(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&"primary"!==xe(o)){const i=new ht([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[xe(o)]=i}return s}(t,e,n,new ht(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Pe(t,e,i))}(t,i,n)){const o=new ht(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(Pe(t,i,a)&&!s[xe(a)]){const i=new ht([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[xe(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new ht(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function Pe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function xe(t){return t.outlet||"primary"}function Ne(t){return t.data||{}}function Le(t){return t.resolve||{}}function Fe(t){return function(e){return e.pipe(Object(R.a)(e=>{const i=t(e);return i?Object(r.a)(i).pipe(Object(f.a)(()=>e)):Object(r.a)([e])}))}}class ze{}class He extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let Be=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Nb(0,"router-outlet")},directives:function(){return[si]},encapsulation:2}),t})();function je(t,e=""){for(let i=0;i{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new se(ot(n.injector.get(Ve)).map(Ke),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(r.a)(this.loader.load(t)):ct(t()).pipe(Object(M.a)(t=>t instanceof s.w?Object(o.a)(t):Object(r.a)(this.compiler.compileModuleAsync(t))))}}class Je{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new We,this.attachRef=null}}class We{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Je,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ze{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ye(t){throw t}function $e(t,e,i){return e.parse("/")}function Xe(t,e){return Object(o.a)(null)}let Qe=(()=>{class t{constructor(t,e,i,n,o,r,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=Ye,this.malformedUriErrorHandler=$e,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Xe,afterPreactivation:Xe},this.urlHandlingStrategy=new Ze,this.routeReuseStrategy=new He,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(s.y),this.console=o.get(s.Z);const u=o.get(s.A);this.isNgZoneEnabled=u instanceof s.A,this.resetConfig(l),this.currentUrlTree=new ut(new ht([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qe(r,c,t=>this.triggerEvent(new q(t)),t=>this.triggerEvent(new J(t))),this.routerState=Lt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(b.a)(t=>0!==t.id),Object(f.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(R.a)(t=>{let i=!1,n=!1;return Object(o.a)(t).pipe(Object(P.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(R.a)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(o.a)(t).pipe(Object(R.a)(t=>{const i=this.transitions.getValue();return e.next(new F(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?d.a:[t]}),Object(R.a)(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(R.a)(t=>function(t,e,i,n,s){return new fe(t,e,i,n,s).apply()}(n,s,r,t.extractedUrl,a).pipe(Object(f.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(P.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(o){return o.pipe(Object(M.a)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){return new Ie(t,e,i,n,s,o).recognize()}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe(Object(f.a)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(P.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(P.a)(t=>{const i=new j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,r,a;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:a}=t,c=new F(i,this.serializeUrl(n),s,r);e.next(c);const l=Lt(n,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Fe(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),Object(P.a)(t=>{const e=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(f.a)(t=>Object.assign(Object.assign({},t),{guards:ve(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(M.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=i;return 0===c.length&&0===a.length?Object(o.a)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(r.a)(t).pipe(Object(M.a)(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(o.a)(!0);const a=r.map(o=>{const r=_e(o,e,s);let a;if(function(t){return t&&oe(t.canDeactivate)}(r))a=ct(r.canDeactivate(t,e,i,n));else{if(!oe(r))throw new Error("Invalid CanDeactivate guard");a=ct(r(t,e,i,n))}return a.pipe(Object(D.a)())});return Object(o.a)(a).pipe(ce())}(t.component,t.route,i,e,n)),Object(D.a)(t=>!0!==t,!0))}(c,n,s,t).pipe(Object(M.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(r.a)(e).pipe(Object(O.a)(e=>Object(r.a)([Re(e.route.parent,n),Ee(e.route,n),Te(t,e.path,i),Ce(t,e.route,i)]).pipe(Object(g.a)(),Object(D.a)(t=>!0!==t,!0))),Object(D.a)(t=>!0!==t,!0))}(n,a,t,e):Object(o.a)(i)),Object(f.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(P.a)(t=>{if(re(t.guardsResult)){const e=et(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(P.a)(t=>{const e=new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(b.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new H(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),Fe(t=>{if(t.guards.canActivateChecks.length)return Object(o.a)(t).pipe(Object(P.a)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(R.a)(t=>{let i=!1;return Object(o.a)(t).pipe((n=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(Object(M.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return Object(o.a)(t);let a=0;return Object(r.a)(i).pipe(Object(O.a)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Object(o.a)({});const a={};return Object(r.a)(s).pipe(Object(M.a)(s=>function(t,e,i,n){const s=_e(t,e,n);return ct(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(Object(P.a)(t=>{a[s]=t}))),y(1),Object(M.a)(()=>Object.keys(a).length===s.length?Object(o.a)(a):d.a))}(t._resolve,t,e,n).pipe(Object(f.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),zt(t,i).resolve),null)))}(t.route,e,n,s)),Object(P.a)(()=>a++),y(1),Object(M.a)(e=>a===i.length?Object(o.a)(t):d.a))}))}),Object(P.a)({next:()=>i=!0,complete:()=>{if(!i){const i=new H(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(i),t.resolve(!1)}}}));var n,s}),Object(P.a)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Fe(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),Object(f.a)(t=>{const e=function(t,e,i){const n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=i.value;const o=function(e,i,n){return i.children.map(i=>{for(const s of n.children)if(e.shouldReuseRoute(s.value.snapshot,i.value))return t(e,i,s);return t(e,i)})}(e,i,n);return new Pt(s,o)}{const n=e.retrieve(i.value);if(n){const t=n.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;nt(e,i));return new Pt(n,o)}}var s}(t,e._root,i?i._root:void 0);return new Nt(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(P.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,c=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(f.a)(t=>(new ie(c,t.targetRouterState,t.currentRouterState,l).activate(s),t))),Object(P.a)({next(){i=!0},complete(){i=!0}}),Object(x.a)(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new H(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),Object(I.a)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=re(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new H(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new B(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return d.a}));var s,c,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){je(t),this.config=t.map(Ke),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:o,preserveQueryParams:r,queryParamsHandling:a,preserveFragment:c}=e;Object(s.W)()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=i||this.routerState.root,u=c?this.currentUrlTree.fragment:o;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=r?this.currentUrlTree.queryParams:n||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,i,n,s){if(0===i.length)return qt(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Jt(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return at(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Jt(i,e,n)}(i);if(o.toRoot())return qt(e.root,new ht([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new Wt(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new Wt(t,t===e.root,0)}const n=Vt(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Wt(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?$t(r.segmentGroup,r.index,o.commands):Yt(r.segmentGroup,r.index,o.commands);return qt(r.segmentGroup,a,e,n,s)}(l,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.W)()&&this.isNgZoneEnabled&&!s.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=re(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,l,u;s?(c=s.resolve,l=s.reject,u=s.promise):u=new Promise((t,e)=>{c=t,l=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(s.O),s.Wb(gt),s.Wb(We),s.Wb(n.n),s.Wb(s.s),s.Wb(s.x),s.Wb(s.i),s.Wb(void 0))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),ti=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new p.a,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.W)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:ii(this.skipLocationChange),replaceUrl:ii(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ii(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ii(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(Qe),s.Mb(Ft),s.Xb("tabindex"),s.Mb(s.F),s.Mb(s.l))},t.\u0275dir=s.Hb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.Zb("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.yb]}),t})(),ei=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new p.a,this.subscription=t.events.subscribe(t=>{t instanceof z&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.W)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:ii(this.skipLocationChange),replaceUrl:ii(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ii(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ii(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(Qe),s.Mb(Ft),s.Mb(n.o))},t.\u0275dir=s.Hb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Zb("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(s.Vb("href",e.href,s.zc),s.Bb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.yb]}),t})();function ii(t){return""===t||!!t}let ni=(()=>{class t{constructor(t,e,i,n,s,o){this.router=t,this.element=e,this.renderer=i,this.cdr=n,this.link=s,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof z&&this.update()})}ngAfterContentInit(){Object(r.a)([this.links.changes,this.linksWithHrefs.changes,Object(o.a)(null)]).pipe(Object(N.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(r.a)(e).pipe(Object(N.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(Qe),s.Mb(s.l),s.Mb(s.F),s.Mb(s.h),s.Mb(ti,8),s.Mb(ei,8))},t.\u0275dir=s.Hb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(s.Fb(i,ti,!0),s.Fb(i,ei,!0)),2&t&&(s.sc(n=s.ac())&&(e.links=n),s.sc(n=s.ac())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.yb]}),t})(),si=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.o,this.deactivateEvents=new s.o,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new oi(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(We),s.Mb(s.Q),s.Mb(s.j),s.Xb("name"),s.Mb(s.h))},t.\u0275dir=s.Hb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class oi{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Ft?this.route:t===We?this.childContexts:this.parent.get(t,e)}}class ri{}class ai{preload(t,e){return Object(o.a)(null)}}let ci=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new qe(e,i,e=>t.triggerEvent(new q(e)),e=>t.triggerEvent(new J(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(b.a)(t=>t instanceof z),Object(O.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.y);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(r.a)(i).pipe(Object(N.a)(),Object(f.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(M.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(Qe),s.Wb(s.x),s.Wb(s.i),s.Wb(s.s),s.Wb(ri))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),li=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof F?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof z&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof X&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new X(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(Qe),s.Wb(n.H),s.Wb(void 0))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const ui=new s.r("ROUTER_CONFIGURATION"),hi=new s.r("ROUTER_FORROOT_GUARD"),di=[n.n,{provide:gt,useClass:bt},{provide:Qe,useFactory:function(t,e,i,s,o,r,a,c={},l,u){const h=new Qe(null,t,e,i,s,o,r,ot(a));if(l&&(h.urlHandlingStrategy=l),u&&(h.routeReuseStrategy=u),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(n.M)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[gt,We,n.n,s.s,s.x,s.i,Ve,ui,[class{},new s.B],[ze,new s.B]]},We,{provide:Ft,useFactory:function(t){return t.routerState.root},deps:[Qe]},{provide:s.x,useClass:s.L},ci,ai,class{preload(t,e){return e().pipe(Object(I.a)(()=>Object(o.a)(null)))}},{provide:ui,useValue:{enableTracing:!1}}];function pi(){return new s.z("Router",Qe)}let fi=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[di,Ai(e),{provide:hi,useFactory:mi,deps:[[Qe,new s.B,new s.K]]},{provide:ui,useValue:i||{}},{provide:n.o,useFactory:bi,deps:[n.D,[new s.q(n.a),new s.B],ui]},{provide:li,useFactory:gi,deps:[Qe,n.H,ui]},{provide:ri,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:ai},{provide:s.z,multi:!0,useFactory:pi},[yi,{provide:s.d,multi:!0,useFactory:wi,deps:[yi]},{provide:_i,useFactory:vi,deps:[yi]},{provide:s.b,multi:!0,useExisting:_i}]]}}static forChild(e){return{ngModule:t,providers:[Ai(e)]}}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.Wb(hi,8),s.Wb(Qe,8))}}),t})();function gi(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new li(t,e,i)}function bi(t,e,i={}){return i.useHash?new n.h(t,e):new n.B(t,e)}function mi(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ai(t){return[{provide:s.a,multi:!0,useValue:t},{provide:Ve,multi:!0,useValue:t}]}let yi=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.a}appInitializer(){return this.injector.get(n.m,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Qe),n=this.injector.get(ui);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Object(o.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(ui),i=this.injector.get(ci),n=this.injector.get(li),o=this.injector.get(Qe),r=this.injector.get(s.g);t===r.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(s.s))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();function wi(t){return t.appInitializer.bind(t)}function vi(t){return t.bootstrapListener.bind(t)}const _i=new s.r("Router Initializer")},sWLk:function(t,e,i){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,"a",(function(){return s}));const s=n()},seVz:function(t,e,i){"use strict";i.d(e,"a",(function(){return f})),i.d(e,"b",(function(){return v})),i.d(e,"c",(function(){return y})),i.d(e,"d",(function(){return R})),i.d(e,"e",(function(){return w})),i.d(e,"f",(function(){return m})),i.d(e,"g",(function(){return g})),i.d(e,"h",(function(){return S})),i.d(e,"i",(function(){return E})),i.d(e,"j",(function(){return p}));var n=i("cqs0"),s=i("9bRT"),o=i("ZTXN"),r=i("C05f"),a=i("ROBh"),c=(i("J+dc"),i("xVbo"),i("kuMc")),l=i("EM62"),u=i("5XID"),h=i("sg/T"),d=i("E5oP");class p extends class{constructor(){this.expansionModel=new n.c(!0)}toggle(t){this.expansionModel.toggle(t)}expand(t){this.expansionModel.select(t)}collapse(t){this.expansionModel.deselect(t)}isExpanded(t){return this.expansionModel.isSelected(t)}toggleDescendants(t){this.expansionModel.isSelected(t)?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e)}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e)}}{constructor(t,e){super(),this.getLevel=t,this.isExpandable=e}getDescendants(t){const e=[];for(let i=this.dataNodes.indexOf(t)+1;i{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.Q),l.Mb(f,8))},t.\u0275dir=l.Hb({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class b{constructor(t){this.$implicit=t}}let m=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.M))},t.\u0275dir=l.Hb({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})();function A(){return Error("Could not find functions for nested/flat tree in tree control.")}let y=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new o.a,this._levels=new Map,this.viewChange=new r.a({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){if(this._dataDiffer=this._differs.find([]).create(this.trackBy),!this.treeControl)throw Error("Could not find a tree control for the tree.")}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 t=this._nodeDefs.filter(t=>!t.when);if(t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;if(Object(n.e)(this._dataSource)?t=this._dataSource.connect(this):Object(s.a)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Object(a.a)(this._dataSource)),!t)throw Error("A valid data source must be provided.");this._dataSubscription=t.pipe(Object(c.a)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const s=e.diff(t);s&&(s.forEachOperation((e,s,o)=>{if(null==e.previousIndex)this.insertNode(t[o],o,i,n);else if(null==o)i.remove(s),this._levels.delete(e.item);else{const t=i.get(s);i.move(t,o)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){if(1===this._nodeDefs.length)return this._nodeDefs.first;const i=this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef;if(!i)throw Error("Could not find a matching node definition for the provided node data.");return i}insertNode(t,e,i,n){const s=this._getNodeDef(t,e),o=new b(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,o,e),w.mostRecentTreeNode&&(w.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.t),l.Mb(l.h))},t.\u0275cmp=l.Gb({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){var n;1&t&&l.Fb(i,m,!0),2&t&&l.sc(n=l.ac())&&(e._nodeDefs=n)},viewQuery:function(t,e){var i;1&t&&l.Dc(g,!0),2&t&&l.sc(i=l.ac())&&(e._nodeOutlet=i.first)},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&l.Ob(0,0)},directives:[g],encapsulation:2}),t})(),w=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new o.a,this._dataChanges=new o.a,this.role="treeitem",t.mostRecentTreeNode=this}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,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):0}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){if(this._tree.treeControl.isExpandable)this.role=this._tree.treeControl.isExpandable(this._data)?"group":"treeitem";else{if(!this._tree.treeControl.getChildren)throw A();const t=this._tree.treeControl.getChildren(this._data);Array.isArray(t)?this._setRoleFromChildren(t):Object(s.a)(t)&&t.pipe(Object(c.a)(this._destroyed)).subscribe(t=>this._setRoleFromChildren(t))}}_setRoleFromChildren(t){this.role=t&&t.length?"group":"treeitem"}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.l),l.Mb(y))},t.\u0275dir=l.Hb({type:t,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:3,hostBindings:function(t,e){2&t&&l.Bb("aria-expanded",e.isExpanded)("aria-level","treeitem"===e.role?e.level:null)("role",e.role)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})(),v=(()=>{class t extends w{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i}ngAfterContentInit(){if(this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),!this._tree.treeControl.getChildren)throw A();const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):Object(s.a)(t)&&t.pipe(Object(c.a)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe(Object(c.a)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.l),l.Mb(y),l.Mb(l.t))},t.\u0275dir=l.Hb({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){var n;1&t&&l.Fb(i,g,!0),2&t&&l.sc(n=l.ac())&&(e.nodeOutlet=n)},hostAttrs:[1,"cdk-tree-node","cdk-nested-tree-node"],hostVars:2,hostBindings:function(t,e){2&t&&l.Bb("aria-expanded",e.isExpanded)("role",e.role)},exportAs:["cdkNestedTreeNode"],features:[l.zb([{provide:w,useExisting:t},{provide:f,useExisting:t}]),l.xb]}),t})();const _=/([A-Za-z%]+)$/;let S=(()=>{class t{constructor(t,e,i,n,s){this._treeNode=t,this._tree=e,this._element=n,this._dir=s,this._destroyed=new o.a,this.indentUnits="px",this._indent=40,this._setPadding(),s&&s.change.pipe(Object(c.a)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._level=Object(u.f)(t,null),this._setPadding()}get indent(){return this._indent}set indent(t){let e=t,i="px";if("string"==typeof t){const n=t.split(_);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=Object(u.f)(e),this._setPadding()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(w),l.Mb(y),l.Mb(l.F),l.Mb(l.l),l.Mb(d.c,8))},t.\u0275dir=l.Hb({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),E=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=Object(u.c)(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(y),l.Mb(w))},t.\u0275dir=l.Hb({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&l.Zb("click",(function(t){return e._toggle(t)}))},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),R=(()=>{class t{}return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},providers:[h.h,m]}),t})()},"sg/T":function(t,e,i){"use strict";i.d(e,"a",(function(){return G})),i.d(e,"b",(function(){return S})),i.d(e,"c",(function(){return v})),i.d(e,"d",(function(){return x})),i.d(e,"e",(function(){return B})),i.d(e,"f",(function(){return O})),i.d(e,"g",(function(){return E})),i.d(e,"h",(function(){return z})),i.d(e,"i",(function(){return I})),i.d(e,"j",(function(){return j})),i.d(e,"k",(function(){return P})),i.d(e,"l",(function(){return N}));var n=i("2kYt"),s=i("EM62"),o=i("ZTXN"),r=i("bwdy"),a=i("ROBh"),c=i("fAiE"),l=i("8j5Y"),u=i("mWib"),h=i("xVbo"),d=i("YtkY"),p=i("J+dc"),f=i("5XID"),g=i("cZZj"),b=i("TKFd");function m(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let A=0;const y=new Map;let w=null,v=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),y.set(e,{messageElement:e,referenceCount:0})):y.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=y.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}w&&0===w.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=y.get(e);!function(t,e,i){const n=m(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=y.get(e);i.referenceCount--,function(t,e,i){const n=m(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=m(t,"aria-describedby"),n=y.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":(""+e).trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(n.e))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(n.e))},token:t,providedIn:"root"}),t})();class _{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.a,this._typeaheadSubscription=r.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.a,this.change=new o.a,t instanceof s.E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(l.a)(t=>this._pressedLetters.push(t)),Object(u.a)(t),Object(h.a)(()=>this._pressedLetters.length>0),Object(d.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.p:return void this.tabOut.next();case c.e:if(this._vertical&&i){this.setNextItemActive();break}return;case c.q:if(this._vertical&&i){this.setPreviousItemActive();break}return;case c.n:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.j:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Object(c.t)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.a&&e<=c.r||e>=c.s&&e<=c.k)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.E?this._items.toArray():this._items}}class S extends _{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class E extends _{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let R=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===T(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=T(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===n)return!1;if("audio"===n){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===n){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==n||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||C(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(g.a))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(g.a))},token:t,providedIn:"root"}),t})();function C(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function T(t){if(!C(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class k{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(p.a)(1)).subscribe(t)}}let I=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new k(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(R),s.Wb(s.A),s.Wb(n.e))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(R),Object(s.Wb)(s.A),Object(s.Wb)(n.e))},token:t,providedIn:"root"}),t})(),O=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Object(f.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(f.c)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(I),s.Mb(n.e))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),t})();"undefined"!=typeof Element&∈const D=new s.r("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),M=new s.r("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let P=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(P),s.Mb(b.b),s.Mb(s.A))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function N(t){return 0===t.buttons}const L=new s.r("cdk-focus-monitor-default-options"),F=Object(g.f)({passive:!0,capture:!0});let z=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=N(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=H(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=H(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Object(a.a)(null);const i=Object(f.e)(t),n=Object(g.c)(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject.asObservable();const r={checkChildren:e,subject:new o.a,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject.asObservable()}stopMonitoring(t){const e=Object(f.e)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Object(f.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=H(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==H(t))return;const n=this._getFocusOrigin(t);this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,F),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,F)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,F),t.addEventListener("mousedown",this._documentMousedownListener,F),t.addEventListener("touchstart",this._documentTouchstartListener,F),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,F),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,F),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,F),t.removeEventListener("mousedown",this._documentMousedownListener,F),t.removeEventListener("touchstart",this._documentTouchstartListener,F),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(s.A),s.Wb(g.a),s.Wb(n.e,8),s.Wb(L,8))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(s.A),Object(s.Wb)(g.a),Object(s.Wb)(n.e,8),Object(s.Wb)(L,8))},token:t,providedIn:"root"}),t})();function H(t){return t.composedPath?t.composedPath()[0]:t.target}let B=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.o,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(z))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),j=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(g.a),s.Wb(n.e))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(g.a),Object(s.Wb)(n.e))},token:t,providedIn:"root"}),t})(),G=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.Wb(j))},imports:[[g.b,b.c]]}),t})()},snnp:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("nIj0"),s=i("OZ4H"),o=i("X2Q7"),r=i("Ssnw"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("YRqw"),p=i("29Wa"),f=i("Cd2c");function g(t,e){1&t&&a.Nb(0,"mat-spinner",5)}function b(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",6),a.Sb(1,"perun-web-apps-vo-search-select",7),a.Zb("voSelected",(function(e){return a.xc(t),a.dc().selectedVo=e})),a.Rb(),a.Sb(2,"mat-form-field"),a.Nb(3,"input",8),a.ec(4,"translate"),a.Sb(5,"mat-error"),a.Jc(6),a.ec(7,"translate"),a.Rb(),a.Rb(),a.Sb(8,"mat-form-field"),a.Nb(9,"input",8),a.ec(10,"translate"),a.Sb(11,"mat-error"),a.Jc(12),a.ec(13,"translate"),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(1),a.kc("vos",t.vos),a.Ab(2),a.lc("placeholder",a.fc(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),a.kc("formControl",t.nameCtrl),a.Ab(3),a.Lc(" ",a.fc(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),a.Ab(3),a.lc("placeholder",a.fc(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),a.kc("formControl",t.descriptionCtrl),a.Ab(3),a.Lc(" ",a.fc(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let m=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.resourcesManager=o,this.vos=[],this.selectedVo=null,s.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new n.g(null,[n.F.required,n.F.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new n.g(null,[n.F.required,n.F.pattern(".*[\\S]+.*")]),this.nameCtrl.markAllAsTouched(),this.descriptionCtrl.markAllAsTouched()}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 t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(r.l),a.Mb(o.q),a.Mb(c.e),a.Mb(o.m))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"long-input",3,"vos","voSelected"],["matInput","","required","",3,"placeholder","formControl"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Hc(1,g,1,0,"mat-spinner",0),a.Hc(2,b,14,15,"div",1),a.Sb(3,"div",2),a.Sb(4,"button",3),a.Zb("click",(function(){return e.onCancel()})),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Kc(a.fc(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")),a.Ab(2),a.kc("disabled",e.nameCtrl.invalid||e.descriptionCtrl.invalid||null===e.selectedVo||e.loading),a.Ab(1),a.Kc(a.fc(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")))},directives:[l.t,s.c,u.b,h.c,s.g,d.a,p.c,f.b,n.c,n.C,n.r,n.h,p.b],pipes:[c.d],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),t})()},st5j:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("iyZ4"),a=i("cqs0"),c=i("EM62"),l=i("s2Ay"),u=i("2kYt"),h=i("csyo"),d=i("A8Ay"),p=i("5kIe"),f=i("PBFl");function g(t,e){1&t&&c.Nb(0,"mat-spinner",3)}function b(t,e){if(1&t){const t=c.Tb();c.Sb(0,"div"),c.Sb(1,"perun-web-apps-immediate-filter",4),c.Zb("filter",(function(e){return c.xc(t),c.dc().applyFilter(e)})),c.Rb(),c.Sb(2,"div",5),c.Sb(3,"app-owners-list",6),c.Zb("page",(function(e){return c.xc(t),c.dc().pageChanged(e)})),c.Rb(),c.Rb(),c.Sb(4,"div",7),c.Sb(5,"button",8),c.Zb("click",(function(){return c.xc(t),c.dc().onCancel()})),c.Jc(6),c.ec(7,"translate"),c.Rb(),c.Sb(8,"button",9),c.Zb("click",(function(){return c.xc(t),c.dc().onAdd()})),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Rb(),c.Rb()}if(2&t){const t=c.dc();c.Ab(1),c.kc("placeholder","DIALOGS.ADD_OWNERS.FILTER"),c.Ab(2),c.kc("filterValue",t.filterValue)("pageSize",t.pageSize)("owners",t.owners)("selection",t.selection),c.Ab(3),c.Lc(" ",c.fc(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),c.Ab(2),c.kc("disabled",0===t.selection.selected.length||t.loading),c.Ab(1),c.Lc(" ",c.fc(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let m=(()=>{class t{constructor(t,e,i,n,s,o,c){this.dialogRef=t,this.data=e,this.notificator=i,this.tableConfigService=n,this.translate=s,this.ownersManagerService=o,this.facilitiesManagerService=c,this.extSources=[],this.selection=new a.c(!0,[]),this.filterValue="",this.tableId=r.d,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=t.filter(t=>!this.data.forbiddenOwners.includes(t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}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)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(o.l),c.Mb(r.pb),c.Mb(l.e),c.Mb(s.j),c.Mb(s.g))},t.\u0275cmp=c.Gb({type:t,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","pageSize","owners","selection","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Sb(3,"div"),c.Hc(4,g,1,0,"mat-spinner",1),c.Hc(5,b,11,12,"div",2),c.Rb()),2&t&&(c.Ab(1),c.Kc(c.fc(2,6,"DIALOGS.ADD_OWNERS.TITLE")),c.Ab(2),c.Cb(e.theme),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[n.j,u.t,h.c,d.a,n.g,p.a,n.c,f.b],pipes:[l.d],styles:[""]}),t})()},t47Z:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return r.a})),i.d(e,"a",(function(){return a.a}));var n=i("2kYt"),s=i("EM62");let o=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[n.c]]}),t})();i("YEcy");var r=i("j+u3"),a=(i("W5/Z"),i("aea8"));i("Y7Yh"),i("C5kn"),i("RK/0"),i("yAs8"),i("NZNE"),i("Log1"),i("SAuR"),i("EFHi"),i("H2Dp")},tDou:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("Ssnw"),o=i("nIj0"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("sEIs"),u=i("2kYt"),h=i("csyo"),d=i("29Wa"),p=i("Cd2c"),f=i("PBFl"),g=i("Y2X+");function b(t,e){1&t&&a.Nb(0,"mat-spinner",3)}function m(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div"),a.Sb(1,"div",4),a.Sb(2,"mat-form-field"),a.Nb(3,"input",5),a.ec(4,"translate"),a.Sb(5,"mat-error"),a.Jc(6),a.ec(7,"translate"),a.Rb(),a.Rb(),a.Sb(8,"mat-form-field"),a.Nb(9,"input",5),a.ec(10,"translate"),a.Sb(11,"mat-error"),a.Jc(12),a.ec(13,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Sb(14,"div",6),a.Sb(15,"button",7),a.Zb("click",(function(){return a.xc(t),a.dc().onCancel()})),a.Jc(16),a.ec(17,"translate"),a.Rb(),a.Sb(18,"div",8),a.ec(19,"translate"),a.Sb(20,"button",9),a.Zb("click",(function(){return a.xc(t),a.dc().onSubmit()})),a.Jc(21),a.ec(22,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){const t=a.dc();a.Ab(3),a.lc("placeholder",a.fc(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),a.kc("formControl",t.fullNameCtrl),a.Ab(3),a.Lc(" ",a.fc(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),a.Ab(3),a.lc("placeholder",a.fc(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),a.kc("formControl",t.shortNameCtrl),a.Ab(3),a.Lc(" ",a.fc(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),a.Ab(4),a.Lc(" ",a.fc(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),a.Ab(2),a.lc("matTooltip",a.fc(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),a.kc("matTooltipDisabled",t.shortNameCtrl.valid&&t.fullNameCtrl.valid),a.Ab(2),a.kc("disabled",t.shortNameCtrl.invalid||t.fullNameCtrl.invalid),a.Ab(1),a.Lc(" ",a.fc(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let A=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.router=o,s.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new o.g(null,[o.F.required,o.F.pattern("^[\\w.-]+$"),o.F.maxLength(33)]),this.fullNameCtrl=new o.g(null,[o.F.required,o.F.pattern(".*[\\S]+.*"),o.F.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(t=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0),this.router.navigate(["/organizations",t.id])},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.l),a.Mb(r.q),a.Mb(c.e),a.Mb(l.f))},t.\u0275cmp=a.Gb({type:t,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","","required","",3,"placeholder","formControl"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,b,1,0,"mat-spinner",1),a.Hc(5,m,23,25,"div",2),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,6,"DIALOGS.CREATE_VO.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[n.j,u.t,h.c,n.g,d.c,p.b,o.c,o.C,o.r,o.h,d.b,n.c,f.b,g.a],pipes:[c.d],styles:[""]}),t})()},tT6Y:function(t,e,i){"use strict";i.d(e,"a",(function(){return B}));var n=i("OF3q"),s=i("4sdY"),o=i("RUSO"),r=i("cqs0"),a=i("yaDT"),c=i("8clQ"),l=i("X2Q7"),u=i("iyZ4"),h=i("nyAh"),d=i("Ssnw"),p=(i("HHEo"),i("EM62")),f=i("OZ4H"),g=i("sEIs"),b=i("0XDM"),m=i("2kYt"),A=i("pynj"),y=i("k8N0"),w=i("nIj0"),v=i("PBFl"),_=i("Y2X+"),S=i("csyo"),E=i("XAvq"),R=i("K9kF"),C=i("FcRk"),T=i("s2Ay");const k=["toggle"],I=["tree"],O=["list"];function D(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",10),p.Zb("click",(function(){return p.xc(t),p.dc().onCreateGroup()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function M(t,e){if(1&t){const t=p.Tb();p.Sb(0,"button",13),p.Zb("click",(function(){return p.xc(t),p.dc(2).deleteGroup()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}if(2&t){const t=p.dc(2);p.kc("disabled",0===t.selected.selected.length||t.disableRemove()),p.Ab(1),p.Lc(" ",p.fc(2,2,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function P(t,e){if(1&t&&(p.Sb(0,"span",11),p.ec(1,"translate"),p.Hc(2,M,3,4,"button",12),p.Rb()),2&t){const t=p.dc();p.lc("matTooltip",p.fc(1,3,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),p.kc("matTooltipDisabled",void 0===t.tree&&void 0===t.list||t.disableTooltip()),p.Ab(2),p.kc("ngIf",!t.loading)}}function x(t,e){1&t&&p.Nb(0,"mat-spinner",14)}function N(t,e){if(1&t){const t=p.Tb();p.Sb(0,"perun-web-apps-groups-tree",18,19),p.Zb("moveGroup",(function(e){return p.xc(t),p.dc(2).onMoveGroup(e)}))("refreshTable",(function(){return p.xc(t),p.dc(2).loadAllGroups()})),p.Rb()}if(2&t){const t=p.dc(2);p.kc("groups",t.groups)("expandAll",t.filtering)("vo",t.vo)("selection",t.selected)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)}}const L=function(){return["expiration","vo","recent"]};function F(t,e){if(1&t){const t=p.Tb();p.Sb(0,"perun-web-apps-groups-list",20,21),p.Zb("page",(function(e){return p.xc(t),p.dc(2).pageChanged(e)}))("moveGroup",(function(e){return p.xc(t),p.dc(2).onMoveGroup(e)}))("refreshTable",(function(){return p.xc(t),p.dc(2).loadAllGroups()})),p.Rb()}if(2&t){const t=p.dc(2);p.kc("pageSize",t.pageSize)("groups",t.groups)("selection",t.selected)("disableMembers",!0)("hideColumns",p.oc(8,L))("disableRouting",!t.routeAuth)("authType","vo-groups")("filter",t.filterValue)}}function z(t,e){if(1&t&&(p.Sb(0,"div",15),p.Hc(1,N,2,6,"perun-web-apps-groups-tree",16),p.Hc(2,F,2,9,"perun-web-apps-groups-list",17),p.Rb()),2&t){const t=p.dc();p.Ab(1),p.kc("ngIf",!t.showGroupList),p.Ab(1),p.kc("ngIf",t.showGroupList)}}function H(t,e){1&t&&(p.Sb(0,"app-alert",22),p.Jc(1),p.ec(2,"translate"),p.Rb()),2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let B=(()=>{class t{constructor(t,e,i,n,s,o,a,c){this.dialog=t,this.groupService=e,this.sideMenuService=i,this.voService=n,this.route=s,this.tableConfigService=o,this.authResolver=a,this.initAuthService=c,this.groups=[],this.showGroupList=!1,this.selected=new r.c(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=u.jb}onCreateGroup(){const t=Object(c.o)();t.width="450px",t.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.a,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"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.loadAllGroups()}),this.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.loadAllGroups()})})}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]]))}disableRemove(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}disableTooltip(){return void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}deleteGroup(){const t=Object(c.o)();t.width="450px",t.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(o.a,t).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(t){const e=Object(c.o)();e.width="550px",e.data={group:t,theme:"vo-theme"},this.dialog.open(a.a,e).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[h.a.GROUP_SYNC_ENABLED,h.a.GROUP_LAST_SYNC_STATE,h.a.GROUP_LAST_SYNC_TIMESTAMP,h.a.GROUP_STRUCTURE_SYNC_ENABLED,h.a.GROUP_LAST_STRUCTURE_SYNC_STATE,h.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(p.Mb(f.b),p.Mb(l.h),p.Mb(s.a),p.Mb(l.q),p.Mb(g.a),p.Mb(u.pb),p.Mb(d.h),p.Mb(d.i))},t.\u0275cmp=p.Gb({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){var i;1&t&&(p.Dc(k,!0),p.Qc(I,!0),p.Qc(O,!0)),2&t&&(p.sc(i=p.ac())&&(e.toggle=i.first),p.sc(i=p.ac())&&(e.tree=i.first),p.sc(i=p.ac())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&p.Eb("router-component",!0)},decls:18,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","hideColumns","disableRouting","authType","filter","page","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","hideColumns","disableRouting","authType","filter","page","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(p.Sb(0,"div"),p.Sb(1,"h1",0),p.Jc(2),p.ec(3,"translate"),p.Rb(),p.Sb(4,"perun-web-apps-refresh-button",1),p.Zb("refresh",(function(){return e.loadAllGroups()})),p.Rb(),p.Hc(5,D,3,3,"button",2),p.Hc(6,P,3,5,"span",3),p.Sb(7,"perun-web-apps-debounce-filter",4),p.Zb("filter",(function(t){return e.applyFilter(t)})),p.Rb(),p.Sb(8,"mat-slide-toggle",5,6),p.Zb("change",(function(){return e.removeAllGroups()}))("ngModelChange",(function(t){return e.showGroupList=t})),p.Jc(10),p.ec(11,"translate"),p.Rb(),p.Sb(12,"label"),p.Jc(13),p.ec(14,"translate"),p.Rb(),p.Hc(15,x,1,0,"mat-spinner",7),p.Hc(16,z,3,2,"div",8),p.Hc(17,H,3,3,"app-alert",9),p.Rb()),2&t){const t=p.tc(9);p.Ab(2),p.Kc(p.fc(3,11,"VO_DETAIL.GROUPS.TITLE")),p.Ab(3),p.kc("ngIf",!e.loading&&e.createAuth),p.Ab(1),p.kc("ngIf",!e.loading),p.Ab(1),p.kc("placeholder","VO_DETAIL.GROUPS.FILTER"),p.Ab(1),p.kc("ngModel",e.showGroupList),p.Ab(2),p.Kc(p.fc(11,13,"VO_DETAIL.GROUPS.TREE_VIEW")),p.Ab(2),p.Bb("for",t.inputId),p.Ab(1),p.Kc(p.fc(14,15,"VO_DETAIL.GROUPS.LIST_VIEW")),p.Ab(2),p.kc("ngIf",e.loading),p.Ab(1),p.kc("ngIf",!e.loading&&0!==e.groups.length),p.Ab(1),p.kc("ngIf",0===e.groups.length&&!e.loading)}},directives:[b.a,m.t,A.a,y.a,w.r,w.u,v.b,_.a,S.c,E.a,R.a,C.a],pipes:[T.d],styles:[""]}),t})()},tmvS:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("EM62"),s=i("Ssnw"),o=i("8clQ"),r=i("+0js"),a=i("OZ4H"),c=i("2kYt"),l=i("bFHC"),u=i("s2Ay");function h(t,e){if(1&t&&(n.Sb(0,"div",5),n.Sb(1,"mat-icon"),n.Jc(2),n.Rb(),n.Rb()),2&t){const t=n.dc();n.Ab(2),n.Kc(t.data.icon)}}function d(t,e){if(1&t&&(n.Sb(0,"div",6),n.Jc(1),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.Lc(" ",t.showTimestamp()," ")}}let p=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new n.o,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 t=Object(o.o)();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(r.j,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){Object(o.h)(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(a.b),n.Mb(s.k))},t.\u0275cmp=n.Gb({type:t,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"],[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(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"div",0),n.Zb("click",(function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()})),n.Hc(2,h,3,1,"div",1),n.Sb(3,"div",2),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Hc(6,d,2,1,"div",3),n.Sb(7,"div",4),n.Zb("click",(function(){return e.waiting=!0,e.doAction()})),n.Jc(8),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Db("notification ",e.inDialog?"":"mat-elevation-z7",""),n.Eb("error","error"===e.data.type)("success","success"===e.data.type),n.Ab(2),n.kc("ngIf",null!==e.data.icon),n.Ab(2),n.Lc(" ",n.fc(5,12,e.data.title)," "),n.Ab(2),n.kc("ngIf",e.inDialog),n.Ab(1),n.kc("hidden",e.alreadyPressed),n.Ab(1),n.Lc(" ",e.data.actionText," "))},directives:[c.t,l.a],pipes:[u.d],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}"]}),t})()},ulve:function(t,e,i){"use strict";i.d(e,"a",(function(){return L})),i.d(e,"b",(function(){return G})),i.d(e,"c",(function(){return F})),i.d(e,"d",(function(){return j}));var n=i("sg/T"),s=i("5XID"),o=i("EM62"),r=i("mFH5"),a=i("bwdy"),c=i("ZTXN"),l=i("i9xl"),u=i("g6G6"),h=i("ROBh"),d=i("KTx3"),p=i("2kYt"),f=i("HYj3"),g=i("qvOF"),b=i("fAiE"),m=i("cZZj"),A=i("Sv/w"),y=i("nIj0"),w=i("29Wa"),v=i("J+dc"),_=i("TLy2"),S=i("xVbo"),E=i("YtkY"),R=i("8j5Y"),C=i("BwBJ"),T=i("E5oP");const k=["panel"];function I(t,e){if(1&t&&(o.Sb(0,"div",0,1),o.ic(2),o.Rb()),2&t){const t=o.dc();o.kc("id",t.id)("ngClass",t._classList)}}const O=["*"];let D=0;class M{constructor(t,e){this.source=t,this.option=e}}class P{}const x=Object(r.z)(P),N=new o.r("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let L=(()=>{class t extends x{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=a.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.o,this.opened=new o.o,this.closed=new o.o,this.optionActivated=new o.o,this._classList={},this.id="mat-autocomplete-"+D++,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Object(s.c)(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.b(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new M(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(N))},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(o.Fb(i,r.n,!0),o.Fb(i,r.m,!0)),2&t&&(o.sc(n=o.ac())&&(e.options=n),o.sc(n=o.ac())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(o.Dc(o.M,!0),o.Qc(k,!0)),2&t&&(o.sc(i=o.ac())&&(e.template=i.first),o.sc(i=o.ac())&&(e.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[o.zb([{provide:r.g,useExisting:t}]),o.xb],ngContentSelectors:O,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(o.jc(),o.Hc(0,I,3,2,"ng-template"))},directives:[p.q],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}\n"],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t})();const z=new o.r("mat-autocomplete-scroll-strategy"),H={provide:z,deps:[f.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B={provide:y.p,useExisting:Object(o.U)(()=>j),multi:!0};let j=(()=>{class t{constructor(t,e,i,n,s,o,r,h,d,p){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=h,this._document=d,this._viewportRuler=p,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new c.a,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=Object(l.a)(()=>this.autocomplete&&this.autocomplete.options?Object(u.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(Object(v.a)(1),Object(_.a)(()=>this.optionSelections))),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Object(s.c)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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 Object(u.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(S.a)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(S.a)(()=>this._overlayAttached)):Object(h.a)()).pipe(Object(E.a)(t=>t instanceof r.p?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(u.a)(Object(d.a)(this._document,"click"),Object(d.a)(this._document,"touchend")).pipe(Object(S.a)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e===b.h&&t.preventDefault(),this.activeOption&&e===b.g&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=e===b.q||e===b.e;this.panelOpen||e===b.p?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=Object(r.w)(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=Object(r.x)(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(Object(v.a)(1)),e=this.autocomplete.options.changes.pipe(Object(R.a)(()=>this._positionStrategy.reapplyLastPosition()),Object(C.a)(0));return Object(u.a)(t,e).pipe(Object(_.a)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Object(v.a)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Object(m.c)(this._element.nativeElement));let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new A.j(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(t.keyCode===b.h||t.keyCode===b.q&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})}))),t&&!t.hasAttached()&&(t.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(){return new f.d({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];let n;n="above"===this.position?i:"below"===this.position?e:[...e,...i],t.withPositions(n)}_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(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.l),o.Mb(f.c),o.Mb(o.Q),o.Mb(o.A),o.Mb(o.h),o.Mb(z),o.Mb(T.c,8),o.Mb(w.a,9),o.Mb(p.e,8),o.Mb(g.h))},t.\u0275dir=o.Hb({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&o.Zb("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&o.Bb("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[o.zb([B]),o.yb]}),t})(),G=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[H],imports:[[r.o,f.f,r.i,p.c],g.c,r.o,r.i]}),t})()},v0MX:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.name," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.groupService=n,this.translate=s,this.displayedColumns=["name"],s.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.o(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 t=this.data.reverse?this.data.groups.shift().id:this.data.groupId,e=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(t,e).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(r.h),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l],pipes:[c.d],styles:[""]}),t})()},vNdQ:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("X2Q7"),s=i("OZ4H"),o=i("Ssnw"),r=i("nIj0"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo"),d=i("29Wa"),p=i("Cd2c");function f(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function g(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function b(t,e){if(1&t&&(a.Sb(0,"mat-form-field"),a.Sb(1,"label"),a.Nb(2,"input",9),a.Rb(),a.Hc(3,g,3,3,"mat-error",8),a.Rb()),2&t){const t=a.dc(2);a.Ab(2),a.kc("formControl",t.emailControl),a.Ab(1),a.kc("ngIf",t.emailControl.invalid)}}function m(t,e){1&t&&(a.Sb(0,"mat-error"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function A(t,e){if(1&t&&(a.Sb(0,"mat-form-field"),a.Nb(1,"input",10),a.Hc(2,m,3,3,"mat-error",8),a.Rb()),2&t){const t=a.dc(2);a.Ab(1),a.kc("formControl",t.inputControl),a.Ab(1),a.kc("ngIf",t.inputControl.invalid)}}function y(t,e){if(1&t&&(a.Sb(0,"div",7),a.Hc(1,b,4,2,"mat-form-field",8),a.Hc(2,A,3,2,"mat-form-field",8),a.Rb()),2&t){const t=a.dc();a.Ab(1),a.kc("ngIf",null!==t.emailControl),a.Ab(1),a.kc("ngIf",null!==t.inputControl)}}let w=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=n,this.registrarService=s,this.loading=!1,this.inputControl=null,this.emailControl=null}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new r.g(this.formItemData.value,[r.F.required,r.F.email]):this.inputControl=new r.g(this.formItemData.value,[r.F.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)}getLabel(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(s.i),a.Mb(s.a),a.Mb(o.l),a.Mb(c.e),a.Mb(n.l))},t.\u0275cmp=a.Gb({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,f,1,0,"mat-spinner",1),a.Hc(5,y,3,2,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Mc("",a.fc(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName,""),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),a.Ab(1),a.Lc(" ",a.fc(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[s.j,l.t,s.c,u.b,h.c,s.g,d.c,p.b,r.c,r.C,r.r,r.h,d.b],pipes:[c.d],styles:[""]}),t})()},vT4p:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));let n=1;const s=(()=>Promise.resolve())(),o={};function r(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=n++;return o[e]=!0,s.then(()=>r(e)&&t()),e},clearImmediate(t){r(t)}};var c=i("EWqr");class l extends c.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var u=i("DG/E");class h extends u.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n{class t{constructor(t,e,i,n,s,r,a,c,u,h,p){this.groupService=t,this.route=e,this.router=i,this.tableConfigService=n,this.dialog=s,this.guiAuthResolver=r,this.storeService=a,this.membersManager=c,this.attributesManager=u,this.apiRequest=h,this.notificator=p,this.members=null,this.synchEnabled=!1,this.firstSearchDone=!1,this.loading=!1,this.tableId=l.I,this.memberAttrNames=[o.a.MEMBER_DEF_ORGANIZATION,o.a.MEMBER_DEF_MAIL,o.a.USER_DEF_ORGANIZATION,o.a.USER_DEF_PREFERRED_MAIL,o.a.MEMBER_DEF_EXPIRATION,o.a.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.a.GROUP_SYNC_ENABLED,o.a.GROUP_LAST_SYNC_STATE,o.a.GROUP_LAST_SYNC_TIMESTAMP,o.a.GROUP_STRUCTURE_SYNC_ENABLED,o.a.GROUP_LAST_STRUCTURE_SYNC_STATE,o.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.hideColumns=[],this.statuses=new d.g,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.g,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}ngOnInit(){this.loading=!0,this.searchControl=new d.g("",[d.F.required,d.F.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new n.c(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(t=>{const e=t.groupId;this.isManualAddingBlocked(t.voId,e).then(()=>this.loadPage(e))})}loadPage(t){this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(t=>{this.group=t,this.synchEnabled=this.isSynchronized(),this.setAuthRights(),this.groupService.getGroupMembersCount(this.group.id).subscribe(t=>{t<400&&this.onListAll(),this.loading=!1})})}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.routeAuth=this.guiAuthResolver.isAuthorized("getMemberById_int_policy",[this.group]),this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group]),this.hideColumns=this.removeAuth?["sponsored"]:["checkbox","sponsored"]}onSearchByString(){this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.data="search",this.firstSearchDone=!0,this.refreshTable())}onListAll(){this.data="all",this.firstSearchDone=!0,this.refreshTable()}onAddMember(){const t=Object(u.o)();t.width="1000px",t.data={voId:this.group.voId,group:this.group,entityId:this.group.id,theme:"group-theme",type:"group"},this.dialog.open(r.a,t).afterClosed().subscribe(()=>{this.firstSearchDone&&this.refreshTable()})}onKeyInput(t){"Enter"===t.key&&this.onSearchByString()}onRemoveMembers(){const t=Object(u.o)();t.width="450px",t.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(a.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onInviteMember(){const t=Object(u.o)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.a,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){switch(this.loading=!0,this.selection.clear(),this.data){case"all":this.membersManager.getCompleteRichMembersForGroup(this.group.id,!1,this.selectedStatuses,this.selectedGroupStatuses,this.memberAttrNames).subscribe(t=>{this.members=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1);break;case"search":this.membersManager.findCompleteRichMembersForGroup(this.group.id,this.memberAttrNames,this.searchControl.value,!1,this.selectedStatuses,this.selectedGroupStatuses).subscribe(t=>{this.members=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1);break;default:this.loading=!1}}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":""+this.groupStatuses.value[0]}isManualAddingBlocked(t,e){return new Promise((i,n)=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,!0!==this.blockManualMemberAdding?(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,i()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})):i()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})})}}return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Mb(c.h),p.Mb(f.a),p.Mb(f.f),p.Mb(l.pb),p.Mb(g.b),p.Mb(s.h),p.Mb(s.m),p.Mb(c.i),p.Mb(c.c),p.Mb(s.b),p.Mb(s.l))},t.\u0275cmp=p.Gb({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.Eb("router-component",!0)},decls:49,vars:54,consts:[[3,"keyup"],[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["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-stroked-button","",1,"mr-2",3,"click"],[1,"mr-2","fix-select"],["multiple","",3,"value","formControl","valueChange"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"mt-3"],[3,"disableRouting","hideColumns","pageSize","selection","members","showGroupStatuses","page","updateTable",4,"ngIf"],[3,"disableRouting","hideColumns","pageSize","selection","members","showGroupStatuses","page","updateTable"]],template:function(t,e){1&t&&(p.Sb(0,"div",0),p.Zb("keyup",(function(t){return e.onKeyInput(t)})),p.Sb(1,"h1",1),p.Jc(2),p.ec(3,"translate"),p.Rb(),p.Hc(4,k,3,3,"app-alert",2),p.Sb(5,"div",3),p.Sb(6,"span",4),p.ec(7,"translate"),p.Sb(8,"div",5),p.ec(9,"translate"),p.Hc(10,I,3,4,"button",6),p.Rb(),p.Rb(),p.Sb(11,"span",4),p.ec(12,"translate"),p.Hc(13,O,3,4,"button",6),p.Rb(),p.Sb(14,"span",4),p.ec(15,"translate"),p.Hc(16,D,3,4,"button",7),p.Rb(),p.Sb(17,"button",8),p.Zb("click",(function(){return e.onListAll()})),p.Jc(18),p.ec(19,"translate"),p.Rb(),p.Sb(20,"mat-form-field",9),p.Sb(21,"mat-label"),p.Jc(22),p.ec(23,"translate"),p.Rb(),p.Sb(24,"mat-select",10),p.Zb("valueChange",(function(t){return e.selectedStatuses=t})),p.Sb(25,"mat-select-trigger"),p.Jc(26),p.Rb(),p.Hc(27,M,2,2,"mat-option",11),p.Rb(),p.Rb(),p.Sb(28,"mat-form-field",9),p.Sb(29,"mat-label"),p.Jc(30),p.ec(31,"translate"),p.Rb(),p.Sb(32,"mat-select",10),p.Zb("valueChange",(function(t){return e.selectedGroupStatuses=t})),p.Sb(33,"mat-select-trigger"),p.Jc(34),p.Rb(),p.Hc(35,P,2,2,"mat-option",11),p.Rb(),p.Rb(),p.Sb(36,"mat-form-field",12),p.Sb(37,"label"),p.Nb(38,"input",13),p.ec(39,"translate"),p.Rb(),p.Sb(40,"mat-error"),p.Jc(41),p.ec(42,"translate"),p.Rb(),p.Rb(),p.Sb(43,"button",14),p.Zb("click",(function(){return e.onSearchByString()})),p.Sb(44,"mat-icon"),p.Jc(45,"search"),p.Rb(),p.Rb(),p.Rb(),p.Hc(46,x,1,0,"mat-spinner",15),p.Hc(47,N,3,3,"app-alert",16),p.Hc(48,z,3,2,"div",17),p.Rb()),2&t&&(p.Ab(2),p.Kc(p.fc(3,34,"GROUP_DETAIL.MEMBERS.TITLE")),p.Ab(2),p.kc("ngIf",e.synchEnabled),p.Ab(2),p.lc("matTooltip",p.fc(7,36,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.kc("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.Ab(2),p.lc("matTooltip",p.fc(9,38,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.kc("matTooltipDisabled",!e.blockManualMemberAdding),p.Ab(2),p.kc("ngIf",e.addAuth),p.Ab(1),p.lc("matTooltip",p.fc(12,40,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.kc("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.Ab(2),p.kc("ngIf",e.inviteAuth),p.Ab(1),p.lc("matTooltip",p.fc(15,42,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.kc("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.Ab(2),p.kc("ngIf",e.removeAuth),p.Ab(2),p.Lc(" ",p.fc(19,44,"GROUP_DETAIL.MEMBERS.LIST_ALL")," "),p.Ab(4),p.Kc(p.fc(23,46,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),p.Ab(2),p.kc("value",e.selectedStatuses)("formControl",e.statuses),p.Ab(2),p.Lc(" ",e.displaySelectedStatuses()," "),p.Ab(1),p.kc("ngForOf",e.statusList),p.Ab(3),p.Kc(p.fc(31,48,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),p.Ab(2),p.kc("value",e.selectedGroupStatuses)("formControl",e.groupStatuses),p.Ab(2),p.Lc(" ",e.displaySelectedGroupStatuses()," "),p.Ab(1),p.kc("ngForOf",e.groupStatusList),p.Ab(3),p.lc("placeholder",p.fc(39,50,"GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION")),p.kc("formControl",e.searchControl),p.Ab(3),p.Lc(" ",p.fc(42,52,"GROUP_DETAIL.MEMBERS.EMPTY_SEARCH")," "),p.Ab(2),p.kc("disabled",e.loading),p.Ab(3),p.kc("ngIf",e.loading),p.Ab(1),p.kc("ngIf",!e.firstSearchDone&&!e.loading),p.Ab(1),p.kc("ngIf",null!==e.members&&!e.loading))},directives:[b.t,m.a,A.b,y.c,y.g,w.a,d.r,d.h,w.c,b.s,v.b,d.c,y.b,_.a,S.a,E.n,R.c,C.a],pipes:[T.d],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),t})()},vUrr:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("X2Q7"),o=i("Ssnw"),r=i("FlRo"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit;a.Ab(1),a.Lc(" ",t.hostname," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Kc(a.fc(3,5,"DIALOGS.REMOVE_HOST.DESCRIPTION")),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.REMOVE_HOST.ASK")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new r.o(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(t=>t.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 t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(s.g),a.Mb(o.l),a.Mb(c.e))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Sb(3,"div"),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onConfirm()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,9,"DIALOGS.REMOVE_HOST.TITLE")),a.Ab(2),a.Cb(e.theme),a.Ab(1),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.REMOVE_HOST.CANCEL"),""),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.REMOVE_HOST.CONFIRM"),""))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t})()},vhVt:function(t,e,i){"use strict";i.d(e,"a",(function(){return D}));var n=i("OZ4H"),s=i("Ssnw"),o=i("cqs0"),r=i("nIj0"),a=i("jIqt"),c=i("YtkY"),l=i("X2Q7"),u=i("iyZ4"),h=i("EM62"),d=i("s2Ay"),p=i("sEIs"),f=i("29Wa"),g=i("R7+U"),b=i("2kYt"),m=i("Cd2c"),A=i("ulve"),y=i("PBFl"),w=i("mFH5"),v=i("pynj"),_=i("csyo"),S=i("K9kF"),E=i("L4Ow");function R(t,e){if(1&t&&(h.Sb(0,"mat-option",17),h.Jc(1),h.ec(2,"displayedRole"),h.Rb()),2&t){const t=e.$implicit;h.kc("value",t),h.Ab(1),h.Kc(h.fc(2,2,t))}}function C(t,e){if(1&t&&(h.Sb(0,"mat-option",17),h.Jc(1),h.Rb()),2&t){const t=e.$implicit;h.kc("value",t),h.Ab(1),h.Lc(" ",t.name," ")}}function T(t,e){if(1&t){const t=h.Tb();h.Sb(0,"perun-web-apps-debounce-filter",18),h.Zb("filter",(function(e){return h.xc(t),h.dc().applyFilter(e)})),h.ec(1,"translate"),h.Rb()}2&t&&h.lc("placeholder",h.fc(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function k(t,e){1&t&&h.Nb(0,"mat-spinner",19)}const I=function(){return["menu","recent","expiration","vo"]};function O(t,e){if(1&t){const t=h.Tb();h.Sb(0,"div",20),h.Sb(1,"perun-web-apps-groups-list",21),h.Zb("page",(function(e){return h.xc(t),h.dc().pageChanged(e)})),h.Rb(),h.Rb()}if(2&t){const t=h.dc();h.Ab(1),h.kc("pageSize",t.pageSize)("disableRouting",!0)("hideColumns",h.oc(7,I))("selection",t.selection)("filter",t.filterValue)("groups",t.groups)("disableMembers",!1)}}let D=(()=>{class t{constructor(t,e,i,n,s,a,c,l,h,d){this.dialogRef=t,this.data=e,this.authzService=i,this.voService=n,this.groupService=s,this.translate=a,this.notificator=c,this.route=l,this.tableConfigService=h,this.router=d,this.searchString="",this.selection=new o.c(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new r.g,this.firstSearchDone=!1,this.tableId=u.W,a.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(t=>this.title=t),a.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(t=>this.successMessage=t)}displayFn(t){return t?t.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(t=>t.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>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(t=>{this.filteredOptions=this.myControl.valueChanges.pipe(Object(a.a)(""),Object(c.a)(t=>this._filter(t))),this.vos=t,this.loading=!1},()=>this.loading=!1)}_filter(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.vos.filter(t=>t.name.toLowerCase().includes(e))}showVoGroups(t){this.loading=!0,this.groupService.getAllGroups(t.option.value.id).subscribe(t=>{this.groups=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.i),h.Mb(n.a),h.Mb(l.d),h.Mb(l.q),h.Mb(l.h),h.Mb(d.e),h.Mb(s.l),h.Mb(p.a),h.Mb(u.pb),h.Mb(p.f))},t.\u0275cmp=h.Gb({type:t,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"pageSize","disableRouting","hideColumns","selection","filter","groups","disableMembers","page"]],template:function(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"div",1),h.Sb(5,"div",2),h.Sb(6,"mat-form-field",3),h.Sb(7,"mat-label"),h.Jc(8),h.ec(9,"translate"),h.Rb(),h.Sb(10,"mat-select",4),h.Zb("valueChange",(function(t){return e.selectedRole=t})),h.Hc(11,R,3,4,"mat-option",5),h.Rb(),h.Rb(),h.Sb(12,"mat-form-field",6),h.Sb(13,"mat-label"),h.Jc(14),h.ec(15,"translate"),h.Rb(),h.Nb(16,"input",7),h.ec(17,"translate"),h.Sb(18,"mat-autocomplete",8,9),h.Zb("optionSelected",(function(t){return e.showVoGroups(t)})),h.Hc(20,C,2,2,"mat-option",5),h.ec(21,"async"),h.Rb(),h.Rb(),h.Rb(),h.Hc(22,T,2,3,"perun-web-apps-debounce-filter",10),h.Sb(23,"div",11),h.Hc(24,k,1,0,"mat-spinner",12),h.Rb(),h.Hc(25,O,2,8,"div",13),h.Rb(),h.Sb(26,"div",14),h.Sb(27,"button",15),h.Zb("click",(function(){return e.onCancel()})),h.Jc(28),h.ec(29,"translate"),h.Rb(),h.Sb(30,"button",16),h.Zb("click",(function(){return e.onSubmit()})),h.Jc(31),h.ec(32,"translate"),h.Rb(),h.Rb(),h.Rb()),2&t){const t=h.tc(19);h.Cb(e.theme),h.Ab(2),h.Kc(h.fc(3,19,"DIALOGS.ADD_GROUPS.TITLE")),h.Ab(6),h.Kc(h.fc(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),h.Ab(2),h.kc("value",e.selectedRole),h.Ab(1),h.kc("ngForOf",e.availableRoles),h.Ab(3),h.Kc(h.fc(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),h.Ab(2),h.lc("placeholder",h.fc(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),h.kc("formControl",e.myControl)("matAutocomplete",t),h.Ab(2),h.kc("displayWith",e.displayFn),h.Ab(2),h.kc("ngForOf",h.fc(21,27,e.filteredOptions)),h.Ab(2),h.kc("ngIf",null!==e.groups&&e.groups.length>0&&!e.loading),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",null!==e.groups&&!e.loading),h.Ab(3),h.Lc(" ",h.fc(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),h.Ab(2),h.kc("disabled",0===e.selection.selected.length||e.loading),h.Ab(1),h.Lc(" ",h.fc(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[n.j,n.g,f.c,f.g,g.a,b.s,m.b,r.c,A.d,r.r,r.h,A.a,b.t,n.c,y.b,w.n,v.a,_.c,S.a],pipes:[d.d,b.b,E.a],styles:[""]}),t})()},vobO:function(t,e,i){"use strict";i.d(e,"a",(function(){return k})),i.d(e,"b",(function(){return C})),i.d(e,"c",(function(){return j})),i.d(e,"d",(function(){return d})),i.d(e,"e",(function(){return g})),i.d(e,"f",(function(){return S}));var n=i("EM62"),s=i("ROBh"),o=i("IdLP"),r=i("5uDM"),a=i("xVbo"),c=i("YtkY"),l=i("2kYt");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class g{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new g({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function m(t){return"undefined"!=typeof Blob&&t instanceof Blob}function A(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),c)),new y(e,i,s,{params:c,headers:a,reportProgress:r,responseType:n,withCredentials:o})}}var w=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class v{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class _ extends v{constructor(t={}){super(t),this.type=w.ResponseHeader}clone(t={}){return new _({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends v{constructor(t={}){super(t),this.type=w.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends v{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function R(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let C=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof y)n=t;else{let s=void 0;s=i.headers instanceof d?i.headers:new d(i.headers);let o=void 0;i.params&&(o=i.params instanceof g?i.params:new g({fromObject:i.params})),n=new y(t,e,void 0!==i.body?i.body:null,{headers:s,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const o=Object(s.a)(n).pipe(Object(r.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===i.observe)return o;const l=o.pipe(Object(a.a)(t=>t instanceof S));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(c.a)(t=>t.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,R(i,e))}post(t,e,i={}){return this.request("POST",t,R(i,e))}put(t,e,i={}){return this.request("PUT",t,R(i,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(u))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();class T{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const k=new n.r("HTTP_INTERCEPTORS");let I=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();const O=/^\)\]\}',?\n/;class D{}let M=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new _({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let l=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(O,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new S({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new E({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new E({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const l=n=>{c||(e.next(o()),c=!0);let s={type:w.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},u=t=>{let i={type:w.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),t.reportProgress&&(i.addEventListener("progress",l),null!==n&&i.upload&&i.upload.addEventListener("progress",u)),i.send(n),e.next({type:w.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("load",r),t.reportProgress&&(i.removeEventListener("progress",l),null!==n&&i.upload&&i.upload.removeEventListener("progress",u)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(D))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})();const x=new n.r("XSRF_COOKIE_NAME"),N=new n.r("XSRF_HEADER_NAME");class L{}let F=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.N)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(l.e),n.Wb(n.C),n.Wb(x))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(L),n.Wb(N))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(k,[]);this.chain=t.reduceRight((t,e)=>new T(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(h),n.Wb(n.s))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:z,useClass:I}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:x,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[z,{provide:k,useExisting:z,multi:!0},{provide:L,useClass:F},{provide:x,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),j=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[C,{provide:u,useClass:H},P,{provide:h,useExisting:P},M,{provide:D,useExisting:M}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},"w+DT":function(t,e,i){"use strict";i.d(e,"a",(function(){return Y}));var n=i("EM62"),s=i("iAde"),o=i("cePI"),r=i("FlRo"),a=i("8clQ"),c=i("Ssnw"),l=i("9wx0"),u=i("2kYt"),h=i("+Tre"),d=i("Ds80"),p=i("nIj0"),f=i("Y2X+"),g=i("PBFl"),b=i("bFHC");function m(t,e){if(1&t&&(n.Sb(0,"div",6),n.Jc(1),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.Lc(" ",t[i.paramName]," ")}}function A(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"more_horiz"),n.Rb())}function y(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"keyboard_arrow_up"),n.Rb())}function w(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",7),n.Zb("click",(function(){return n.xc(t),n.dc().onShowChange()})),n.Hc(1,A,2,0,"mat-icon",8),n.Hc(2,y,2,0,"mat-icon",8),n.Rb()}if(2&t){const t=n.dc();n.Ab(1),n.kc("ngIf",!t.showMore),n.Ab(1),n.kc("ngIf",t.showMore)}}let v=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[n.yb],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(t,e){1&t&&(n.Sb(0,"form",0),n.Sb(1,"div",1),n.Sb(2,"div",2),n.Hc(3,m,2,1,"div",3),n.Rb(),n.Sb(4,"div"),n.Sb(5,"span",4),n.Hc(6,w,3,2,"button",5),n.Rb(),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Ab(3),n.kc("ngForOf",e.objects.slice(0,e.itemsShown)),n.Ab(2),n.kc("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.Ab(1),n.kc("ngIf",e.objects.length>e.defaultItemsShown))},directives:[p.H,p.s,p.t,u.s,f.a,u.t,g.b,b.a],styles:[""]}),t})();var _=i("sEIs"),S=i("TQS+"),E=i("FcRk"),R=i("s2Ay"),C=i("EFHi"),T=i("H2Dp");function k(t,e){1&t&&n.Nb(0,"th",21)}function I(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",22),n.Sb(1,"mat-checkbox",23),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.selection.toggle(s):null}))("click",(function(e){return n.xc(t),e.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function O(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function D(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.facility.id)}}function M(t,e){1&t&&n.Nb(0,"th",21)}function P(t,e){if(1&t&&(n.Sb(0,"td",25),n.Nb(1,"perun-web-apps-recently-viewed-icon",26),n.Rb()),2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("recentIds",i.recentIds)("id",t.facility.id)}}function x(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function N(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.facility.name)}}function L(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function F(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(t.facility.description)}}function z(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function H(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"technicalOwners"),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,t.owners))}}function B(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function j(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",25),n.Sb(1,"perun-web-apps-object-list-values",27),n.Zb("mouseenter",(function(){return n.xc(t),n.dc().disableRouting=!0}))("mouseleave",(function(){return n.xc(t),n.dc().disableRouting=!1})),n.ec(2,"filterUniqueObjects"),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("paramName","destination")("objects",n.hc(2,2,t.destinations,i.filterValue,"destination"))}}function G(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function U(t,e){if(1&t){const t=n.Tb();n.Sb(0,"td",25),n.Sb(1,"perun-web-apps-object-list-values",27),n.Zb("mouseenter",(function(){return n.xc(t),n.dc().disableRouting=!0}))("mouseleave",(function(){return n.xc(t),n.dc().disableRouting=!1})),n.ec(2,"filterUniqueObjects"),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("paramName","hostname")("objects",n.hc(2,2,t.hosts,i.filterValue,"hostname"))}}function K(t,e){1&t&&n.Nb(0,"tr",28)}const V=function(){return[]},q=function(t){return["/facilities",t]};function J(t,e){if(1&t&&n.Nb(0,"tr",29),2&t){const t=e.$implicit,i=n.dc();n.kc("routerLink",i.disableRouting?n.oc(2,V):n.pc(3,q,t.facility.id))("perunWebAppsMiddleClickRouterLink",n.pc(5,q,t.facility.id))}}function W(t,e){1&t&&(n.Sb(0,"app-alert",30),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Z(t,e){1&t&&(n.Sb(0,"app-alert",30),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let Y=(()=>{class t{constructor(t,e){this.authResolver=t,this.cd=e,this.pageSize=10,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=a.a,this.page=new n.o}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t,this.setDataSource(),this.cd.detectChanges()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return Object(a.D)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(t=>t.destination).join(" ; ");case"hosts":return t.hosts.map(t=>t.hostname).join(" ; ");default:return t[e]}}exportData(t){Object(a.i)(Object(a.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.paginator&&(this.dataSource||(this.dataSource=new r.o,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filterPredicate=(t,e)=>Object(a.f)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Object(a.g)(t,e,this.getDataForColumn,this)),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.h),n.Mb(n.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Qc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.yb],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["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,"routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[3,"paramName","objects","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,k,1,0,"th",6),n.Hc(7,I,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,O,3,3,"th",9),n.Hc(10,D,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,M,1,0,"th",6),n.Hc(13,P,2,2,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,x,3,3,"th",9),n.Hc(16,N,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,L,3,3,"th",6),n.Hc(19,F,2,1,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,z,3,3,"th",6),n.Hc(22,H,3,3,"td",11),n.Pb(),n.Qb(23,15),n.Hc(24,B,3,3,"th",6),n.Hc(25,j,3,6,"td",11),n.Pb(),n.Qb(26,16),n.Hc(27,G,3,3,"th",6),n.Hc(28,U,3,6,"td",11),n.Pb(),n.Hc(29,K,1,0,"tr",17),n.Hc(30,J,1,7,"tr",18),n.Rb(),n.Rb(),n.Sb(31,"mat-paginator",19),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(32,W,3,3,"app-alert",20),n.Hc(33,Z,3,3,"app-alert",20)),2&t&&(n.kc("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(25),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.facilities.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.facilities.length),n.Ab(1),n.kc("ngIf",0===e.facilities.length))},directives:[l.a,r.n,o.a,r.c,r.i,r.b,r.k,r.m,s.a,u.t,r.h,r.a,h.a,o.b,d.a,v,r.j,r.l,_.g,S.c,E.a],pipes:[R.d,C.a,T.a],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},wBUr:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),s=i("2kYt"),o=i("PBFl"),r=i("s2Ay");function a(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div"),n.Sb(1,"button",1),n.Zb("click",(function(){n.xc(t);const i=e.$implicit;return n.dc().addTag("{"+i[0]+"}")})),n.Jc(2),n.Rb(),n.Jc(3),n.ec(4,"translate"),n.Rb()}if(2&t){const t=e.$implicit;n.Ab(2),n.Lc("",t[0]," "),n.Ab(1),n.Lc(" - ",n.fc(4,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+t[1]),"\n")}}let c=(()=>{class t{constructor(){this.tags=[],this.addedTag=new n.o}ngOnChanges(t){}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},features:[n.yb],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"]],template:function(t,e){1&t&&n.Hc(0,a,5,4,"div",0),2&t&&n.kc("ngForOf",e.tags)},directives:[s.s,o.b],pipes:[r.d],styles:[""]}),t})()},wOqL:function(t,e,i){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,i,s){i=i||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(e=e||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var l=0;l=0?(u=f.substr(0,g),h=f.substr(g+1)):(u=f,h=""),d=decodeURIComponent(u),p=decodeURIComponent(h),n(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},"wqq/":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("QQZH");function s(t,e,i){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:s}){let o,r,a=0,c=!1,l=!1;return function(u){a++,o&&!c||(c=!1,o=new n.a(t,e,s),r=u.subscribe({next(t){o.next(t)},error(t){c=!0,o.error(t)},complete(){l=!0,r=void 0,o.complete()}}));const h=o.subscribe(this);this.add(()=>{a--,h.unsubscribe(),r&&!l&&i&&0===a&&(r.unsubscribe(),r=void 0,o=void 0)})}}(s))}},x9Az:function(t,e,i){"use strict";i.d(e,"a",(function(){return et})),i.d(e,"b",(function(){return X})),i.d(e,"c",(function(){return Z})),i.d(e,"d",(function(){return V})),i.d(e,"e",(function(){return Q})),i.d(e,"f",(function(){return $})),i.d(e,"g",(function(){return ct})),i.d(e,"h",(function(){return st})),i.d(e,"i",(function(){return rt})),i.d(e,"j",(function(){return nt}));var n=i("Sv/w"),s=i("sg/T"),o=i("E5oP"),r=i("5XID"),a=i("fAiE"),c=i("2kYt"),l=i("EM62"),u=i("ZTXN"),h=i("ROBh"),d=i("jIqt"),p=i("kuMc");function f(t,e){1&t&&l.ic(0)}const g=["*"];let b=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.l))},t.\u0275dir=l.Hb({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),m=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.M))},t.\u0275dir=l.Hb({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),A=0;const y=new l.r("STEPPER_GLOBAL_OPTIONS");let w=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=Object(r.c)(t)}get optional(){return this._optional}set optional(t){this._optional=Object(r.c)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=Object(r.c)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=Object(r.c)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(Object(l.U)(()=>v)),l.Mb(y,8))},t.\u0275cmp=l.Gb({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){var n;1&t&&l.Fb(i,m,!0),2&t&&l.sc(n=l.ac())&&(e.stepLabel=n.first)},viewQuery:function(t,e){var i;1&t&&l.Dc(l.M,!0),2&t&&l.sc(i=l.ac())&&(e.content=i.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.yb],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(l.jc(),l.Hc(0,f,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new u.a,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.o,this._orientation="horizontal",this._groupId=A++,this._document=n}get steps(){return this._steps}get linear(){return this._linear}set linear(t){this._linear=Object(r.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Object(r.f)(t);if(this.steps){if(e<0||e>this.steps.length-1)throw Error("cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.");this._selectedIndex!=e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)}else this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}ngAfterViewInit(){this._keyManager=new s.g(this._stepHeader).withWrap().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(h.a)()).pipe(Object(d.a)(this._layoutDirection()),Object(p.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.pipe(Object(p.a)(this._destroyed)).subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=Object(a.t)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==a.o&&i!==a.g?i===a.i?(n.setFirstItemActive(),t.preventDefault()):i===a.f?(n.setLastItemActive(),t.preventDefault()):n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){const e=this.steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(o.c,8),l.Mb(l.h),l.Mb(l.l),l.Mb(c.e))},t.\u0275dir=l.Hb({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(t,e,i){var n;1&t&&(l.Fb(i,w,!0),l.Fb(i,b,!0)),2&t&&(l.sc(n=l.ac())&&(e._steps=n),l.sc(n=l.ac())&&(e._stepHeader=n))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),t})(),_=(()=>{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(v))},t.\u0275dir=l.Hb({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.Zb("click",(function(){return e._handleClick()})),2&t&&l.Vb("type",e.type)},inputs:{type:"type"}}),t})(),S=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(v))},t.\u0275dir=l.Hb({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.Zb("click",(function(){return e._handleClick()})),2&t&&l.Vb("type",e.type)},inputs:{type:"type"}}),t})(),E=(()=>{class t{}return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[o.a]]}),t})();var R=i("PBFl"),C=i("mFH5"),T=i("bFHC"),k=i("Ohay"),I=i("f7+R");function O(t,e){if(1&t&&l.Ob(0,9),2&t){const t=l.dc();l.kc("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function D(t,e){if(1&t&&(l.Sb(0,"span"),l.Jc(1),l.Rb()),2&t){const t=l.dc(2);l.Ab(1),l.Kc(t._getDefaultTextForState(t.state))}}function M(t,e){if(1&t&&(l.Sb(0,"mat-icon"),l.Jc(1),l.Rb()),2&t){const t=l.dc(2);l.Ab(1),l.Kc(t._getDefaultTextForState(t.state))}}function P(t,e){if(1&t&&(l.Qb(0,10),l.Hc(1,D,2,1,"span",11),l.Hc(2,M,2,1,"mat-icon",12),l.Pb()),2&t){const t=l.dc();l.kc("ngSwitch",t.state),l.Ab(1),l.kc("ngSwitchCase","number")}}function x(t,e){if(1&t&&l.Ob(0,13),2&t){const t=l.dc();l.kc("ngTemplateOutlet",t._templateLabel().template)}}function N(t,e){if(1&t&&(l.Sb(0,"div",14),l.Jc(1),l.Rb()),2&t){const t=l.dc();l.Ab(1),l.Kc(t.label)}}function L(t,e){if(1&t&&(l.Sb(0,"div",15),l.Jc(1),l.Rb()),2&t){const t=l.dc();l.Ab(1),l.Kc(t._intl.optionalLabel)}}function F(t,e){if(1&t&&(l.Sb(0,"div",16),l.Jc(1),l.Rb()),2&t){const t=l.dc();l.Ab(1),l.Kc(t.errorMessage)}}function z(t,e){1&t&&l.ic(0)}const H=["*"];function B(t,e){1&t&&l.Nb(0,"div",6)}function j(t,e){if(1&t){const t=l.Tb();l.Qb(0),l.Sb(1,"mat-step-header",4),l.Zb("click",(function(){return e.$implicit.select()}))("keydown",(function(e){return l.xc(t),l.dc()._onKeydown(e)})),l.Rb(),l.Hc(2,B,1,0,"div",5),l.Pb()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=l.dc();l.Ab(1),l.kc("tabIndex",s._getFocusIndex()===i?0:-1)("id",s._getStepLabelId(i))("index",i)("state",s._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",s.selectedIndex===i)("active",t.completed||s.selectedIndex===i||!s.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",s._iconOverrides)("disableRipple",s.disableRipple),l.Bb("aria-posinset",i+1)("aria-setsize",s.steps.length)("aria-controls",s._getStepContentId(i))("aria-selected",s.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),l.Ab(1),l.kc("ngIf",!n)}}function G(t,e){if(1&t){const t=l.Tb();l.Sb(0,"div",7),l.Zb("@stepTransition.done",(function(e){return l.xc(t),l.dc()._animationDone.next(e)})),l.Ob(1,8),l.Rb()}if(2&t){const t=e.$implicit,i=e.index,n=l.dc();l.kc("@stepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),l.Bb("tabindex",n.selectedIndex===i?0:null)("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),l.Ab(1),l.kc("ngTemplateOutlet",t.content)}}function U(t,e){if(1&t){const t=l.Tb();l.Sb(0,"div",1),l.Sb(1,"mat-step-header",2),l.Zb("click",(function(){return e.$implicit.select()}))("keydown",(function(e){return l.xc(t),l.dc()._onKeydown(e)})),l.Rb(),l.Sb(2,"div",3),l.Sb(3,"div",4),l.Zb("@stepTransition.done",(function(e){return l.xc(t),l.dc()._animationDone.next(e)})),l.Sb(4,"div",5),l.Ob(5,6),l.Rb(),l.Rb(),l.Rb(),l.Rb()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=l.dc();l.Ab(1),l.kc("tabIndex",s._getFocusIndex()==i?0:-1)("id",s._getStepLabelId(i))("index",i)("state",s._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",s.selectedIndex===i)("active",t.completed||s.selectedIndex===i||!s.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",s._iconOverrides)("disableRipple",s.disableRipple),l.Bb("aria-posinset",i+1)("aria-setsize",s.steps.length)("aria-controls",s._getStepContentId(i))("aria-selected",s.selectedIndex===i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),l.Ab(1),l.Eb("mat-stepper-vertical-line",!n),l.Ab(1),l.kc("@stepTransition",s._getAnimationDirection(i))("id",s._getStepContentId(i)),l.Bb("tabindex",s.selectedIndex===i?0:null)("aria-labelledby",s._getStepLabelId(i))("aria-expanded",s.selectedIndex===i),l.Ab(2),l.kc("ngTemplateOutlet",t.content)}}const K='.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:36px}.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;top:36px;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;padding:24px}.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;padding:24px;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n';let V=(()=>{class t extends m{}return t.\u0275fac=function(e){return q(e||t)},t.\u0275dir=l.Hb({type:t,selectors:[["","matStepLabel",""]],features:[l.xb]}),t})();const q=l.Ub(V);let J=(()=>{class t{constructor(){this.changes=new u.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const W={provide:J,deps:[[new l.B,new l.K,J]],useFactory:function(t){return t||new J}};let Z=(()=>{class t extends b{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,e.monitor(i,!0),this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(){this._focusMonitor.focusVia(this._elementRef,"program")}_stringLabel(){return this.label instanceof V?null:this.label}_templateLabel(){return this.label instanceof V?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?""+(this.index+1):"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(J),l.Mb(s.h),l.Mb(l.l),l.Mb(l.h))},t.\u0275cmp=l.Gb({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[l.xb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],[3,"ngTemplateOutlet",4,"ngIf"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(l.Nb(0,"div",0),l.Sb(1,"div"),l.Sb(2,"div",1),l.Hc(3,O,1,2,"ng-container",2),l.Hc(4,P,3,2,"ng-container",3),l.Rb(),l.Rb(),l.Sb(5,"div",4),l.Hc(6,x,1,1,"ng-container",5),l.Hc(7,N,2,1,"div",6),l.Hc(8,L,2,1,"div",7),l.Hc(9,F,2,1,"div",8),l.Rb()),2&t&&(l.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),l.Ab(1),l.Db("mat-step-icon-state-",e.state," mat-step-icon"),l.Eb("mat-step-icon-selected",e.selected),l.Ab(1),l.kc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),l.Ab(1),l.kc("ngSwitchCase",!0),l.Ab(2),l.Eb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),l.Ab(1),l.kc("ngIf",e._templateLabel()),l.Ab(1),l.kc("ngIf",e._stringLabel()),l.Ab(1),l.kc("ngIf",e.optional&&"error"!=e.state),l.Ab(1),l.kc("ngIf","error"==e.state))},directives:[C.s,c.x,c.y,c.z,c.t,c.A,T.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const Y={horizontalStepTransition:Object(I.n)("stepTransition",[Object(I.k)("previous",Object(I.l)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(I.k)("current",Object(I.l)({transform:"none",visibility:"visible"})),Object(I.k)("next",Object(I.l)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(I.m)("* => *",Object(I.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(I.n)("stepTransition",[Object(I.k)("previous",Object(I.l)({height:"0px",visibility:"hidden"})),Object(I.k)("next",Object(I.l)({height:"0px",visibility:"hidden"})),Object(I.k)("current",Object(I.l)({height:"*",visibility:"visible"})),Object(I.m)("* <=> current",Object(I.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let $=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.M))},t.\u0275dir=l.Hb({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),X=(()=>{class t extends w{constructor(t,e,i){super(t,i),this._errorStateMatcher=e}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(Object(l.U)(()=>Q)),l.Mb(C.d,4),l.Mb(y,8))},t.\u0275cmp=l.Gb({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){var n;1&t&&l.Fb(i,V,!0),2&t&&l.sc(n=l.ac())&&(e.stepLabel=n.first)},exportAs:["matStep"],features:[l.zb([{provide:C.d,useExisting:t},{provide:w,useExisting:t}]),l.xb],ngContentSelectors:H,decls:1,vars:0,template:function(t,e){1&t&&(l.jc(),l.Hc(0,z,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),Q=(()=>{class t extends v{constructor(){super(...arguments),this.animationDone=new l.o,this._iconOverrides={},this._animationDone=new u.a}ngAfterContentInit(){this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this._steps.changes.pipe(Object(p.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(k.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Object(p.a)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return tt(e||t)},t.\u0275dir=l.Hb({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,i){var n;1&t&&(l.Fb(i,X,!0),l.Fb(i,$,!0)),2&t&&(l.sc(n=l.ac())&&(e._steps=n),l.sc(n=l.ac())&&(e._icons=n))},viewQuery:function(t,e){var i;1&t&&l.Qc(Z,!0),2&t&&l.sc(i=l.ac())&&(e._stepHeader=i)},inputs:{disableRipple:"disableRipple"},outputs:{animationDone:"animationDone"},features:[l.zb([{provide:v,useExisting:t}]),l.xb]}),t})();const tt=l.Ub(Q);let et=(()=>{class t extends Q{constructor(){super(...arguments),this.labelPosition="end"}}return t.\u0275fac=function(e){return it(e||t)},t.\u0275cmp=l.Gb({type:t,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(t,e){2&t&&l.Eb("mat-stepper-label-position-end","end"==e.labelPosition)("mat-stepper-label-position-bottom","bottom"==e.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[l.zb([{provide:Q,useExisting:t},{provide:v,useExisting:t}]),l.xb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(l.Sb(0,"div",0),l.Hc(1,j,3,18,"ng-container",1),l.Rb(),l.Sb(2,"div",2),l.Hc(3,G,2,6,"div",3),l.Rb()),2&t&&(l.Ab(1),l.kc("ngForOf",e.steps),l.Ab(2),l.kc("ngForOf",e.steps))},directives:[c.s,Z,c.t,c.A],styles:[K],encapsulation:2,data:{animation:[Y.horizontalStepTransition]},changeDetection:0}),t})();const it=l.Ub(et);let nt=(()=>{class t extends Q{constructor(t,e,i,n){super(t,e,i,n),this._orientation="vertical"}}return t.\u0275fac=function(e){return new(e||t)(l.Mb(o.c,8),l.Mb(l.h),l.Mb(l.l),l.Mb(c.e))},t.\u0275cmp=l.Gb({type:t,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[l.zb([{provide:Q,useExisting:t},{provide:v,useExisting:t}]),l.xb],decls:1,vars:1,consts:[["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&l.Hc(0,U,6,25,"div",0),2&t&&l.kc("ngForOf",e.steps)},directives:[c.s,Z,c.A],styles:[K],encapsulation:2,data:{animation:[Y.verticalStepTransition]},changeDetection:0}),t})(),st=(()=>{class t extends _{}return t.\u0275fac=function(e){return ot(e||t)},t.\u0275dir=l.Hb({type:t,selectors:[["button","matStepperNext",""]],hostVars:1,hostBindings:function(t,e){2&t&&l.Vb("type",e.type)},inputs:{type:"type"},features:[l.xb]}),t})();const ot=l.Ub(st);let rt=(()=>{class t extends S{}return t.\u0275fac=function(e){return at(e||t)},t.\u0275dir=l.Hb({type:t,selectors:[["button","matStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){2&t&&l.Vb("type",e.type)},inputs:{type:"type"},features:[l.xb]}),t})();const at=l.Ub(rt);let ct=(()=>{class t{}return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},providers:[W,C.d],imports:[[C.i,c.c,n.i,R.c,E,T.b,C.t],C.i]}),t})()},xVbo:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5uGe");function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},yAs8:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),s=i("EM62");let o=(()=>{class t{transform(t,e){let i=null,s=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName),s=t.memberAttributes.find(t=>"groupMembershipExpiration"===t.friendlyName));let o="";return o=e?`\n Group status: ${Object(n.y)(t.groupStatus)}, Expiration: ${s&&s.value?s.value:"never"}`:`Status: ${Object(n.y)(t.status,t.groupStatus)}\n Vo status: ${Object(n.y)(t.status)}, Expiration: ${i&&i.value?i.value:"never"}`,o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Lb({name:"memberStatusTooltip",type:t,pure:!0}),t})()},yLXW:function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n=i("OZ4H"),s=i("X2Q7"),o=i("EM62"),r=i("2kYt"),a=i("PBFl"),c=i("csyo"),l=i("29Wa"),u=i("Cd2c"),h=i("nIj0"),d=i("s2Ay");function p(t,e){1&t&&o.Nb(0,"mat-spinner",6)}function f(t,e){if(1&t){const t=o.Tb();o.Sb(0,"div",7),o.Sb(1,"mat-form-field"),o.Sb(2,"input",8),o.Zb("ngModelChange",(function(e){return o.xc(t),o.dc().name=e})),o.ec(3,"translate"),o.Rb(),o.Sb(4,"mat-error"),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb()}if(2&t){const t=o.dc();o.Ab(2),o.lc("placeholder",o.fc(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.kc("ngModel",t.name),o.Ab(3),o.Kc(o.fc(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let g=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.resourceManager=i,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 t.\u0275fac=function(e){return new(e||t)(o.Mb(n.i),o.Mb(n.a),o.Mb(s.m))},t.\u0275cmp=o.Gb({type:t,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(t,e){1&t&&(o.Sb(0,"div"),o.Sb(1,"h1",0),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Hc(4,p,1,0,"mat-spinner",1),o.Hc(5,f,7,7,"div",2),o.Sb(6,"div",3),o.Sb(7,"button",4),o.Zb("click",(function(){return e.onCancel()})),o.Jc(8),o.ec(9,"translate"),o.Rb(),o.Sb(10,"button",5),o.Zb("click",(function(){return e.onSubmit()})),o.Jc(11),o.ec(12,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Cb(e.theme),o.Ab(2),o.Kc(o.fc(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.Ab(2),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading),o.Ab(3),o.Lc(" ",o.fc(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.Ab(2),o.kc("disabled",e.loading),o.Ab(1),o.Lc(" ",o.fc(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[n.j,r.t,n.c,a.b,c.c,n.g,l.c,u.b,h.c,h.C,h.r,h.u,l.b],pipes:[d.d],styles:[""]}),t})()},yNE8:function(t,e,i){"use strict";i.d(e,"a",(function(){return E}));var n=i("sEIs"),s=i("TkCa"),o=i("Ssnw"),r=i("EM62"),a=i("mFH5"),c=i("2kYt"),l=i("TQS+"),u=i("bFHC"),h=i("s2Ay");const d=["collapse"],p=function(){return{color:"linkTextColor"}};function f(t,e){1&t&&(r.Sb(0,"mat-icon",12),r.Jc(1,"keyboard_arrow_right"),r.Rb()),2&t&&r.kc("ngStyle",r.oc(1,p))}function g(t,e){1&t&&(r.Sb(0,"mat-icon",12),r.Jc(1,"keyboard_arrow_down"),r.Rb()),2&t&&r.kc("ngStyle",r.oc(1,p))}function b(t,e){if(1&t&&(r.Sb(0,"span",10),r.Hc(1,f,2,2,"mat-icon",11),r.Hc(2,g,2,2,"mat-icon",11),r.Rb()),2&t){const t=r.dc().$implicit,e=r.dc();r.Ab(1),r.kc("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),r.Ab(1),r.kc("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const m=function(t,e){return{color:t,"border-color":e}};function A(t,e){if(1&t){const t=r.Tb();r.Sb(0,"a",14),r.Zb("click",(function(){r.xc(t);const i=e.$implicit;return r.dc(3).navigate(i.url)})),r.Jc(1),r.ec(2,"translate"),r.Rb()}if(2&t){const t=e.$implicit,i=r.dc(3);r.Eb("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),r.kc("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",r.qc(9,m,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),r.Ab(1),r.Lc(" ",r.fc(2,7,t.label)," ")}}function y(t,e){if(1&t&&(r.Sb(0,"div"),r.Hc(1,A,3,12,"a",13),r.Rb()),2&t){const t=r.dc().$implicit;r.kc("@rollInOut",void 0),r.Ab(1),r.kc("ngForOf",null==t?null:t.children)}}function w(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div"),r.Sb(1,"a",7),r.Zb("click",(function(){r.xc(t);const i=e.$implicit;return r.dc().navigate(i.url)})),r.Jc(2),r.ec(3,"translate"),r.Hc(4,b,3,2,"span",8),r.Rb(),r.Hc(5,y,2,2,"div",9),r.Rb()}if(2&t){const t=e.$implicit,i=r.dc();r.Ab(1),r.Eb("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),r.kc("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",r.qc(11,m,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),r.Ab(1),r.Lc(" ",r.fc(3,9,t.label)," "),r.Ab(2),r.kc("ngIf",t.children),r.Ab(1),r.kc("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}const v=function(t){return{background:t}},_=function(t){return{color:t}},S=function(){return{color:"currentColor"}};let E=(()=>{class t{constructor(t,e){this.router=t,this.store=e,this.expanded=!1,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.currentUrl=t.url,t.events.subscribe(t=>{t instanceof n.b&&(this.currentUrl=t.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(t){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(t,e){return new RegExp(e).test(t)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.f),r.Mb(o.m))},t.\u0275cmp=r.Gb({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){var i;1&t&&r.Qc(d,!0),2&t&&r.sc(i=r.ac())&&(e.collapseDiv=i.first)},inputs:{item:"item",index:"index",showOpen:"showOpen",sideNav:"sideNav"},features:[r.yb],decls:12,vars:27,consts:[[1,"entity-menu-item"],["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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(r.Sb(0,"div",0),r.Sb(1,"div",1),r.Zb("click",(function(){return e.toggle()})),r.Sb(2,"div"),r.Sb(3,"a",2),r.Sb(4,"div"),r.Nb(5,"mat-icon",3),r.Rb(),r.Sb(6,"div",4),r.Jc(7),r.ec(8,"translate"),r.Rb(),r.Rb(),r.Rb(),r.Rb(),r.Sb(9,"div"),r.Sb(10,"div",5),r.Hc(11,w,6,14,"div",6),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Ab(1),r.Eb("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),r.kc("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",r.pc(20,v,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),r.Ab(1),r.Db("entity-menu-item-link ",e.item.labelClass,""),r.Ab(1),r.kc("ngStyle",r.pc(22,_,e.item.textColorCss)),r.Ab(2),r.kc("ngStyle",r.oc(24,S))("svgIcon",e.item.icon),r.Ab(2),r.Kc(r.fc(8,18,e.item.label)),r.Ab(2),r.kc("@openClose",e.expanded?"open":"closed"),r.Ab(1),r.Db("side-entity-menu ",e.item.linksClass,""),r.kc("ngStyle",r.pc(25,v,e.linkBgColor)),r.Ab(1),r.kc("ngForOf",e.item.links))},directives:[a.s,c.w,l.c,u.a,c.s,c.q,c.t],pipes:[h.d],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}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-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}.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:[s.c,s.d]}}),t})()},yTkW:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("bwdy");class s extends n.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},yWI2:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("X2Q7"),s=i("Ssnw"),o=i("EM62"),r=i("OZ4H"),a=i("s2Ay"),c=i("2kYt"),l=i("PBFl"),u=i("csyo"),h=i("FcRk"),d=i("29Wa"),p=i("Cd2c"),f=i("nIj0");function g(t,e){1&t&&o.Nb(0,"mat-spinner",7)}function b(t,e){if(1&t){const t=o.Tb();o.Sb(0,"div",8),o.Sb(1,"app-alert",9),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Sb(4,"mat-form-field",10),o.Sb(5,"input",11),o.Zb("ngModelChange",(function(e){return o.xc(t),o.dc().value=e})),o.ec(6,"translate"),o.Rb(),o.Rb(),o.Rb()}if(2&t){const t=o.dc();o.Ab(2),o.Lc(" ",o.fc(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),o.Ab(3),o.kc("ngModel",t.value)("placeholder",o.fc(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let m=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.notificator=e,this.translate=i,this.attributesManager=n,this.value="",this.loading=!1}ngOnInit(){}create(){try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe(t=>{for(let e=0;e{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)})},()=>this.loading=!1)}catch(t){console.log(t),this.notificator.showError(t),this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(r.i),o.Mb(s.l),o.Mb(a.e),o.Mb(n.c))},t.\u0275cmp=o.Gb({type:t,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","",1,"mt-3"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",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(t,e){1&t&&(o.Sb(0,"div",0),o.Sb(1,"h1",1),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Hc(4,g,1,0,"mat-spinner",2),o.Hc(5,b,7,7,"div",3),o.Sb(6,"div",4),o.Sb(7,"button",5),o.Zb("click",(function(){return e.dialogRef.close()})),o.Jc(8),o.ec(9,"translate"),o.Rb(),o.Sb(10,"button",6),o.Zb("click",(function(){return e.create()})),o.Jc(11),o.ec(12,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Ab(2),o.Lc(" ",o.fc(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),o.Ab(2),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading),o.Ab(3),o.Lc(" ",o.fc(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),o.Ab(2),o.kc("disabled",0===e.value.trim().length||e.loading),o.Ab(1),o.Lc(" ",o.fc(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},directives:[r.j,c.t,r.c,l.b,u.c,r.g,h.a,d.c,p.b,f.c,f.C,f.r,f.u],pipes:[a.d],styles:[""]}),t})()},yaDT:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("OZ4H"),s=i("nIj0"),o=i("jIqt"),r=i("YtkY"),a=i("TkCa"),c=i("Ssnw"),l=i("X2Q7"),u=i("EM62"),h=i("s2Ay"),d=i("F1o0"),p=i("2kYt"),f=i("PBFl"),g=i("Y2X+"),b=i("FcRk"),m=i("29Wa"),A=i("Cd2c"),y=i("ulve"),w=i("mFH5"),v=i("csyo");function _(t,e){1&t&&(u.Sb(0,"mat-radio-button",12),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function S(t,e){1&t&&(u.Sb(0,"mat-radio-button",13),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function E(t,e){1&t&&(u.Sb(0,"app-alert",14),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function R(t,e){if(1&t){const t=u.Tb();u.Sb(0,"mat-option",20),u.Zb("click",(function(){u.xc(t);const i=e.$implicit;return u.dc(2).selectedGroup=i})),u.Sb(1,"span"),u.Jc(2),u.Rb(),u.Rb()}if(2&t){const t=e.$implicit;u.kc("value",t),u.Ab(2),u.Kc(t.name)}}function C(t,e){if(1&t){const t=u.Tb();u.Sb(0,"mat-form-field",15),u.Sb(1,"input",16),u.Zb("change",(function(){return u.xc(t),u.dc().selectedGroup=null})),u.ec(2,"translate"),u.Rb(),u.Sb(3,"mat-autocomplete",17,18),u.Hc(5,R,3,2,"mat-option",19),u.ec(6,"async"),u.Rb(),u.Rb()}if(2&t){const t=u.tc(4),e=u.dc();u.kc("@openClose","toGroup"===e.moveOption?"open":"closed"),u.Ab(1),u.lc("placeholder",u.fc(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),u.kc("matAutocomplete",t)("formControl",e.otherGroupsCtrl),u.Ab(2),u.kc("displayWith",e.displayFn),u.Ab(2),u.kc("ngForOf",u.fc(6,8,e.filteredGroups))}}function T(t,e){1&t&&u.Nb(0,"mat-spinner",21)}let k=(()=>{class t{constructor(t,e,i,n,o,r,a){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,this.translate=o,this.apiRequest=r,this.authResolver=a,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new s.g(null,[s.F.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(t=>{this.otherGroups=t.filter(t=>t.id!==this.data.group.id&&"members"!==t.name&&this.canMove(t)),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(Object(o.a)(""),Object(r.a)(t=>t?this._filterGroups(t):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.name:t}_filterGroups(t){if("object"==typeof t)return[];const e=t.toLowerCase();return t?this.otherGroups.filter(t=>t.name.toLowerCase().indexOf(e)>-1):this.otherGroups}canMove(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}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)},t=>{this.notificator.showRPCError(t,this.errorMessage),this.dialogRef.close(!1)})}}return t.\u0275fac=function(e){return new(e||t)(u.Mb(n.i),u.Mb(n.a),u.Mb(l.h),u.Mb(c.l),u.Mb(h.e),u.Mb(c.b),u.Mb(c.h))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(u.Sb(0,"div"),u.Sb(1,"h1",0),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Sb(4,"div",1),u.Sb(5,"p"),u.Jc(6),u.ec(7,"translate"),u.Rb(),u.Sb(8,"mat-radio-group",2),u.Zb("ngModelChange",(function(t){return e.moveOption=t})),u.Hc(9,_,3,3,"mat-radio-button",3),u.Hc(10,S,3,3,"mat-radio-button",4),u.Rb(),u.Hc(11,E,3,3,"app-alert",5),u.Hc(12,C,7,10,"mat-form-field",6),u.Rb(),u.Hc(13,T,1,0,"mat-spinner",7),u.Sb(14,"div",8),u.Sb(15,"button",9),u.Zb("click",(function(){return e.close()})),u.Jc(16),u.ec(17,"translate"),u.Rb(),u.Sb(18,"span",10),u.ec(19,"translate"),u.Sb(20,"button",11),u.Zb("click",(function(){return e.confirm()})),u.Jc(21),u.ec(22,"translate"),u.Rb(),u.Rb(),u.Rb(),u.Rb()),2&t&&(u.Cb(e.data.theme),u.Ab(2),u.Mc("",u.fc(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),u.Ab(4),u.Lc(" ",u.fc(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),u.Ab(2),u.kc("ngModel",e.moveOption),u.Ab(1),u.kc("ngIf",!e.toRootOptionDisabled),u.Ab(1),u.kc("ngIf",!e.toGroupOptionDisabled),u.Ab(1),u.kc("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),u.Ab(1),u.kc("ngIf",!e.toGroupOptionDisabled),u.Ab(1),u.kc("ngIf",e.loading),u.Ab(3),u.Lc(" ",u.fc(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),u.Ab(2),u.lc("matTooltip",u.fc(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),u.kc("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),u.Ab(2),u.kc("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),u.Ab(1),u.Lc(" ",u.fc(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.j,n.g,d.b,s.r,s.u,p.t,n.c,f.b,g.a,d.a,b.a,m.c,A.b,y.d,s.c,s.C,s.h,y.a,p.s,w.n,v.c],pipes:[h.d,p.b],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[a.c]}}),t})()},yv0D:function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"c",(function(){return l.a})),i.d(e,"d",(function(){return u.a})),i.d(e,"b",(function(){return h.a}));var n=i("2kYt"),s=i("OZ4H"),o=i("PBFl"),r=i("s2Ay"),a=i("EM62");let c=(()=>{class t{}return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},imports:[[n.c,s.h,o.c,r.c]]}),t})();var l=i("j610"),u=i("VBdk"),h=i("jjFd")},zSH9:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),s=i("FlRo"),o=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("csyo");function d(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&a.Nb(0,"th",15)}function f(t,e){if(1&t&&(a.Sb(0,"td",16),a.Jc(1),a.Rb()),2&t){const t=e.$implicit,i=a.dc(2);a.Ab(1),a.Lc(" ",i.getMailType(t)," ")}}function g(t,e){1&t&&a.Nb(0,"tr",17)}function b(t,e){1&t&&a.Nb(0,"tr",18)}function m(t,e){if(1&t&&(a.Sb(0,"div",7),a.Sb(1,"p"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"div",8),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Sb(7,"table",9),a.Qb(8,10),a.Hc(9,p,1,0,"th",11),a.Hc(10,f,2,1,"td",12),a.Pb(),a.Hc(11,g,1,0,"tr",13),a.Hc(12,b,1,0,"tr",14),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),a.Ab(3),a.Lc(" ",a.fc(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),a.Ab(2),a.kc("dataSource",t.dataSource),a.Ab(4),a.kc("matHeaderRowDef",t.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",t.displayedColumns)}}let A=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.registrarService=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.o(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const t of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const t of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(t){let e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(o.l),a.Mb(c.e),a.Mb(r.l))},t.\u0275cmp=a.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,d,1,0,"mat-spinner",1),a.Hc(5,m,13,9,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[n.j,l.t,n.c,u.b,h.c,n.g,s.n,s.c,s.i,s.b,s.k,s.m,s.h,s.a,s.j,s.l],pipes:[c.d],styles:[""]}),t})()},zUnb:function(t,e,i){"use strict";i.r(e);var n=i("EM62"),s=i("AytR"),o=i("e4iD"),r=i("sEIs");let a=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();var c=i("X2Q7"),l=i("Ssnw"),u=i("4sdY"),h=i("lQ7A"),d=i("+Tre"),p=i("nIj0"),f=i("2kYt"),g=i("bFHC"),b=i("PBFl"),m=i("8clQ"),A=i("FcRk"),y=i("mFH5"),w=i("s2Ay");function v(t,e){1&t&&(n.Sb(0,"app-alert",2),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function _(t,e){if(1&t&&(n.Sb(0,"div",5),n.Sb(1,"a",6),n.Sb(2,"span",7),n.Jc(3),n.Rb(),n.Nb(4,"mat-icon",8),n.Jc(5),n.Rb(),n.Rb()),2&t){const t=e.$implicit;n.Ab(1),n.Db("",t.style," item-itself"),n.kc("routerLink",t.url),n.Ab(2),n.Kc(t.type),n.Ab(1),n.kc("svgIcon",t.cssIcon),n.Ab(1),n.Lc(" ",t.label," ")}}function S(t,e){if(1&t&&(n.Sb(0,"div",3),n.Hc(1,_,6,7,"div",4),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.kc("ngForOf",t.items)}}let E=(()=>{class t{constructor(){this.items=[]}ngOnInit(){const t=Object(m.r)("recent");for(const e of t)switch(e.type){case"Vo":this.items.push({cssIcon:"perun-vo",url:"/organizations/"+e.id,label:e.name,style:"vo-btn",type:"Organization"});break;case"Group":this.items.push({cssIcon:"perun-group",url:`/organizations/${e.voId}/groups/${e.id}`,label:e.name,style:"group-btn",type:"Group"});break;case"Facility":this.items.push({cssIcon:"perun-facility-white",url:"/facilities/"+e.id,label:e.name,style:"facility-btn",type:"Facility"})}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:2,vars:2,consts:[["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"routerLink"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(n.Hc(0,v,3,3,"app-alert",0),n.Hc(1,S,2,1,"div",1)),2&t&&(n.kc("ngIf",0===e.items.length),n.Ab(1),n.kc("ngIf",e.items.length>0))},directives:[f.t,A.a,f.s,y.s,r.i,g.a],pipes:[w.d],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;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}"]}),t})();var R=i("Y2X+"),C=i("csyo"),T=i("qySP"),k=i("K9kF"),I=i("23RZ"),O=i("w+DT");function D(t,e){1&t&&n.Nb(0,"mat-spinner",7)}const M=function(){return["id","recent","shortName","name"]};function P(t,e){if(1&t&&(n.Sb(0,"span"),n.Nb(1,"perun-web-apps-vos-list",8),n.Rb()),2&t){const t=n.dc(2);n.Ab(1),n.kc("pageSizeOptions",null)("pageSize",5)("displayedColumns",n.oc(5,M))("recentIds",t.recentIds)("vos",t.objects)}}const x=function(){return["select","expiration","menu"]};function N(t,e){if(1&t&&(n.Sb(0,"span"),n.Nb(1,"perun-web-apps-groups-list",9),n.Rb()),2&t){const t=n.dc(2);n.Ab(1),n.kc("pageSizeOptions",null)("pageSize",5)("groups",t.objects)("recentIds",t.recentIds)("hideColumns",n.oc(5,x))}}const L=function(){return["id","recent","name","vo","facility"]};function F(t,e){if(1&t&&(n.Sb(0,"span"),n.Nb(1,"perun-web-apps-resources-list",10),n.Rb()),2&t){const t=n.dc(2);n.Ab(1),n.kc("pageSizeOptions",null)("pageSize",5)("resources",t.objects)("displayedColumns",n.oc(6,L))("recentIds",t.recentIds)("routingVo",!0)}}const z=function(){return["id","recent","name","description"]};function H(t,e){if(1&t&&(n.Sb(0,"span"),n.Nb(1,"perun-web-apps-facilities-list",11),n.Rb()),2&t){const t=n.dc(2);n.Ab(1),n.kc("pageSizeOptions",null)("pageSize",5)("facilities",t.objects)("recentIds",t.recentIds)("displayedColumns",n.oc(5,z))}}function B(t,e){if(1&t&&(n.Sb(0,"div"),n.Hc(1,P,2,6,"span",6),n.Hc(2,N,2,6,"span",6),n.Hc(3,F,2,7,"span",6),n.Hc(4,H,2,6,"span",6),n.Rb()),2&t){const t=n.dc();n.Ab(1),n.kc("ngIf","Vo"==t.primaryObject),n.Ab(1),n.kc("ngIf","Group"==t.primaryObject),n.Ab(1),n.kc("ngIf","Resource"==t.primaryObject),n.Ab(1),n.kc("ngIf","Facility"==t.primaryObject)}}let j=(()=>{class t{constructor(t,e,i){this.authzResolver=t,this.guiAuthResolver=e,this.resourceService=i,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(t=>{this.objects=t,this.recentIds=Object(m.r)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t,this.recentIds=Object(m.r)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(t=>{this.objects=t,this.recentIds=Object(m.r)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t.map(t=>({facility:t})),this.recentIds=Object(m.r)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.d),n.Mb(l.h),n.Mb(c.m))},t.\u0275cmp=n.Gb({type:t,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","pageSize","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","pageSize","groups","recentIds","hideColumns"],[3,"pageSizeOptions","pageSize","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","pageSize","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Nb(2,"mat-icon",2),n.Jc(3),n.ec(4,"translate"),n.Sb(5,"span",3),n.ec(6,"translate"),n.Sb(7,"mat-icon",4),n.Jc(8,"info_outline"),n.Rb(),n.Rb(),n.Rb(),n.Hc(9,D,1,0,"mat-spinner",5),n.Hc(10,B,5,4,"div",6),n.Rb()),2&t&&(n.Ab(2),n.kc("svgIcon",e.svgIcon),n.Ab(1),n.Lc(" ",n.fc(4,5,e.title)," "),n.Ab(2),n.lc("matTooltip",n.fc(6,7,e.roleTooltipInfo)),n.Ab(4),n.kc("ngIf",e.loading),n.Ab(1),n.kc("ngIf",!e.loading))},directives:[g.a,R.a,f.t,C.c,T.a,k.a,I.a,O.a],pipes:[w.d],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}"]}),t})();var G=i("j+u3");function U(t,e){if(1&t){const t=n.Tb();n.Sb(0,"div"),n.Sb(1,"mat-checkbox",8),n.Zb("change",(function(i){n.xc(t);const s=e.$implicit,o=n.dc();return i?o.changeRoleView(s):null})),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Rb()}if(2&t){const t=e.$implicit,i=n.dc();n.Ab(1),n.kc("checked",i.isRoleShowed(t)),n.Ab(1),n.Kc(n.fc(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+t))}}function K(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",15),n.Zb("click",(function(){return n.xc(t),n.dc(2).rightSettingOpened=!0})),n.Sb(1,"mat-icon"),n.Jc(2,"settings"),n.Rb(),n.Rb()}}function V(t,e){1&t&&(n.Sb(0,"span"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function q(t,e){1&t&&(n.Sb(0,"span"),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function J(t,e){if(1&t){const t=n.Tb();n.Sb(0,"button",23),n.Zb("click",(function(){return n.xc(t),n.dc(3).goToUserProfile()})),n.Sb(1,"mat-icon",24),n.Jc(2,"exit_to_app"),n.Rb(),n.Jc(3),n.ec(4,"translate"),n.Rb()}2&t&&(n.Ab(3),n.Lc("",n.fc(4,1,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," "))}const W=function(){return["/myProfile"]};function Z(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"div",16),n.Sb(2,"div",17),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Sb(5,"div",18),n.Hc(6,V,3,3,"span",14),n.Hc(7,q,3,3,"span",14),n.Rb(),n.Sb(8,"div",19),n.Sb(9,"button",20),n.Nb(10,"mat-icon",21),n.Jc(11),n.ec(12,"translate"),n.Rb(),n.Hc(13,J,5,3,"button",22),n.Rb(),n.Rb(),n.Rb()),2&t){const t=n.dc(2);n.Ab(3),n.Lc(" ",n.fc(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),n.Ab(3),n.kc("ngIf",!t.userProfileUrl),n.Ab(1),n.kc("ngIf",t.userProfileUrl),n.Ab(2),n.kc("routerLink",n.oc(10,W)),n.Ab(2),n.Lc(" ",n.fc(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),n.Ab(2),n.kc("ngIf",t.userProfileUrl)}}function Y(t,e){1&t&&(n.Sb(0,"span"),n.Sb(1,"div",3),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Nb(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),n.Rb()),2&t&&(n.Ab(2),n.Lc(" ",n.fc(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function $(t,e){1&t&&(n.Sb(0,"div",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function X(t,e){if(1&t&&n.Nb(0,"app-perun-web-apps-dashboard-card",30),2&t){const t=n.dc().$implicit,e=n.dc(3);n.kc("roleName",t)("role",e.roles[t])}}function Q(t,e){if(1&t&&(n.Sb(0,"div",28),n.Hc(1,X,1,2,"app-perun-web-apps-dashboard-card",29),n.Rb()),2&t){const t=e.$implicit,i=n.dc(3);n.Ab(1),n.kc("ngIf",i.isRoleShowed(t))}}function tt(t,e){if(1&t&&(n.Sb(0,"div"),n.Hc(1,Y,5,3,"span",14),n.Hc(2,$,3,3,"div",25),n.Sb(3,"div"),n.Hc(4,Q,2,1,"div",26),n.Rb(),n.Rb()),2&t){const t=n.dc(2);n.Ab(1),n.kc("ngIf",t.recentlyViewedShow),n.Ab(1),n.kc("ngIf",t.rolesToHide.toString()!==t.roleNames.toString()),n.Ab(2),n.kc("ngForOf",t.roleNames)}}function et(t,e){if(1&t&&(n.Sb(0,"div",9),n.Sb(1,"h1",10),n.Nb(2,"mat-icon",11),n.Sb(3,"span",12),n.Jc(4),n.ec(5,"translate"),n.ec(6,"userFullName"),n.Rb(),n.Hc(7,K,3,0,"button",13),n.Rb(),n.Hc(8,Z,14,11,"div",14),n.Hc(9,tt,5,3,"div",14),n.Rb()),2&t){const t=n.dc();n.Ab(4),n.Mc("",n.fc(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",n.fc(6,7,t.user),""),n.Ab(3),n.kc("ngIf",!t.isOnlySelfRole),n.Ab(1),n.kc("ngIf",t.isOnlySelfRole),n.Ab(1),n.kc("ngIf",!t.isOnlySelfRole)}}let it=(()=>{class t{constructor(t,e,i,n,s,o){this.userManager=t,this.storeService=e,this.guiAuthResolver=i,this.facilitiesService=n,this.resourcesService=s,this.sideMenuService=o,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","FACILITYOBSERVER","RESOURCEOBSERVER"]}ngOnInit(){this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.userProfileUrl=this.storeService.get("user_profile_url");const t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(e=>t.includes(e)),this.getDashboardSettings(),this.sideMenuService.setHomeItems([])}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}getDashboardSettings(){const t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;const e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}changeRoleView(t){if(this.isRoleShowed(t)){const e=[];for(const i of this.roleNames)this.isRoleShowed(i)||e.push(i),i===t&&e.push(i);this.rolesToHide=e}else this.rolesToHide=this.rolesToHide.filter(e=>e!==t);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(t){for(const e of this.rolesToHide)if(e===t)return!1;return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.p),n.Mb(l.m),n.Mb(l.h),n.Mb(c.g),n.Mb(c.m),n.Mb(u.a))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&n.Eb("router-component",!0)},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"],[1,"pt-1"],["mat-stroked-button","","class","ml-auto text-bigger",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,"d-flex","pt-3"],["mat-stroked-button","",1,"ml-auto","mr-auto","text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon"],["mat-stroked-button","","class","ml-auto mr-auto text-bigger",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","mr-auto","text-bigger",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(t,e){1&t&&(n.Sb(0,"mat-sidenav-container",0),n.Sb(1,"mat-sidenav",1),n.Zb("openedChange",(function(t){return e.rightSettingOpened=t})),n.Sb(2,"div",2),n.Sb(3,"div",3),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Sb(6,"div"),n.Sb(7,"mat-checkbox",4),n.Zb("ngModelChange",(function(t){return e.recentlyViewedShow=t}))("change",(function(t){return t?e.recentlyViewedChanged():null})),n.Jc(8),n.ec(9,"translate"),n.Rb(),n.Rb(),n.Sb(10,"div",5),n.Jc(11),n.ec(12,"translate"),n.Rb(),n.Hc(13,U,4,4,"div",6),n.Rb(),n.Rb(),n.Sb(14,"mat-sidenav-content"),n.Hc(15,et,10,9,"div",7),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.kc("opened",e.rightSettingOpened),n.Ab(3),n.Kc(n.fc(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),n.Ab(3),n.kc("ngModel",e.recentlyViewedShow),n.Ab(1),n.Kc(n.fc(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),n.Ab(3),n.Kc(n.fc(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),n.Ab(2),n.kc("ngForOf",e.roleNames),n.Ab(2),n.kc("ngIf",void 0!==e.user))},directives:[h.e,h.d,d.a,p.r,p.u,f.s,h.f,f.t,g.a,b.b,r.g,E,j],pipes:[w.d,G.a],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 - 64px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t})();var nt=i("h39k"),st=i("HHEo");const ot=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"redirect",component:st.e},{path:"api-callback",component:a},{path:"organizations",loadChildren:()=>Promise.all([i.e(2),i.e(9)]).then(i.bind(null,"B2++")).then(t=>t.VosModule)},{path:"admin",loadChildren:()=>Promise.all([i.e(1),i.e(7)]).then(i.bind(null,"jkDv")).then(t=>t.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([i.e(1),i.e(2),i.e(8)]).then(i.bind(null,"pjY/")).then(t=>t.FacilitiesModule)},{path:"myProfile",loadChildren:()=>i.e(1).then(i.bind(null,"zrcO")).then(t=>t.UsersModule)},{path:"home",component:it},{path:"**",component:nt.a}];let rt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[r.j.forRoot(ot,{preloadingStrategy:r.d,scrollPositionRestoration:"enabled"})],r.j]}),t})();var at=i("Sy1n"),ct=i("PCNd");const lt=function(){return["organizations"]};function ut(t,e){1&t&&(n.Sb(0,"a",6),n.Nb(1,"mat-icon",2),n.Sb(2,"h1"),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Sb(5,"p"),n.Jc(6),n.ec(7,"translate"),n.Rb(),n.Rb()),2&t&&(n.kc("routerLink",n.oc(8,lt)),n.Ab(1),n.kc("svgIcon","perun-vo"),n.Ab(2),n.Kc(n.fc(4,4,"MAIN_MENU.ACCESS")),n.Ab(3),n.Kc(n.fc(7,6,"MAIN_MENU.ACCESS_DESC")))}const ht=function(){return["facilities"]};function dt(t,e){1&t&&(n.Sb(0,"a",7),n.Nb(1,"mat-icon",2),n.Sb(2,"h1"),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Sb(5,"p"),n.Jc(6),n.ec(7,"translate"),n.Rb(),n.Rb()),2&t&&(n.kc("routerLink",n.oc(8,ht)),n.Ab(1),n.kc("svgIcon","perun-manage-facility"),n.Ab(2),n.Kc(n.fc(4,4,"MAIN_MENU.FACILITIES")),n.Ab(3),n.Kc(n.fc(7,6,"MAIN_MENU.FACILITIES_DESC")))}const pt=function(){return["admin"]};function ft(t,e){1&t&&(n.Sb(0,"a",8),n.Nb(1,"mat-icon",2),n.Sb(2,"h1"),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Sb(5,"p"),n.Jc(6),n.ec(7,"translate"),n.Rb(),n.Rb()),2&t&&(n.kc("routerLink",n.oc(8,pt)),n.Ab(1),n.kc("svgIcon","perun-perun-admin"),n.Ab(2),n.Kc(n.fc(4,4,"MAIN_MENU.ADMIN")),n.Ab(3),n.Kc(n.fc(7,6,"MAIN_MENU.ADMIN_DESC")))}const gt=function(){return["profile"]};let bt=(()=>{class t{constructor(t,e){this.sideMenuService=t,this.authResolver=e}ngOnInit(){this.sideMenuService.reset()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.a),n.Mb(l.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-main-menu-page"]],decls:12,vars:12,consts:[[1,"buttons-container","pl-2","pr-2","pl-xl-5","pr-xl-5"],["mat-ripple","",1,"main-menu-button","user-btn",3,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"],["class","main-menu-button vo-btn","mat-ripple","",3,"routerLink",4,"ngIf"],["class","main-menu-button facility-btn","mat-ripple","",3,"routerLink",4,"ngIf"],["class","main-menu-button admin-btn","mat-ripple","",3,"routerLink",4,"ngIf"],["mat-ripple","",1,"main-menu-button","vo-btn",3,"routerLink"],["mat-ripple","",1,"main-menu-button","facility-btn",3,"routerLink"],["mat-ripple","",1,"main-menu-button","admin-btn",3,"routerLink"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"a",1),n.Nb(2,"mat-icon",2),n.Sb(3,"h1"),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Sb(6,"p"),n.Jc(7),n.ec(8,"translate"),n.Rb(),n.Rb(),n.Hc(9,ut,8,9,"a",3),n.Hc(10,dt,8,9,"a",4),n.Hc(11,ft,8,9,"a",5),n.Rb()),2&t&&(n.Ab(1),n.kc("routerLink",n.oc(11,gt)),n.Ab(1),n.kc("svgIcon","perun-user"),n.Ab(2),n.Kc(n.fc(5,7,"MAIN_MENU.PROFILE")),n.Ab(3),n.Kc(n.fc(8,9,"MAIN_MENU.PROFILE_DESC")),n.Ab(2),n.kc("ngIf",e.authResolver.isVoAdmin()||e.authResolver.isVoObserver()),n.Ab(1),n.kc("ngIf",e.authResolver.canManageFacilities()),n.Ab(1),n.kc("ngIf",e.authResolver.isPerunAdmin()))},directives:[r.i,y.s,g.a,f.t],pipes:[w.d],styles:[".buttons-container[_ngcontent-%COMP%]{display:grid;padding-top:24px;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-column-gap:24px;grid-row-gap:24px}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:60px;margin-bottom:22px}.main-menu-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;min-width:230px;min-height:230px;padding:30px}.main-menu-button[_ngcontent-%COMP%]:hover{text-decoration:none}.main-menu-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px}.main-menu-button[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:500;font-size:1.25rem;text-align:center;margin-bottom:1rem}.main-menu-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin-bottom:0!important}"]}),t})();class mt{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}var At=i("vobO"),yt=i("5lCh");let wt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[l.d],imports:[[f.c]]}),t})();var vt=i("M7la"),_t=i("tT6Y"),St=i("Sv31"),Et=i("dWQl"),Rt=i("got8"),Ct=i("HdwC"),Tt=i("vUMc"),kt=i("Wq+4"),It=i("s8L6"),Ot=i("hQLc"),Dt=i("5bHy"),Mt=i("KSio"),Pt=i("D+oT"),xt=i("IgBI"),Nt=i("JKyc"),Lt=i("7TQF"),Ft=i("VFai"),zt=i("+Jyz");let Ht=(()=>{class t{constructor(){this.allowCachePages=[{type:"vo",components:[vt.a.id,_t.a.id,St.a.id,Dt.a.id,Mt.a.id,xt.a.id,zt.a.id]},{type:"group",components:[Tt.a.id,Ct.a.id,Rt.a.id,Et.a.id,Nt.a.id]},{type:"facility",components:[kt.a.id,It.a.id]},{type:"member",components:[Ot.a.id]},{type:"admin",components:[Pt.a.id]},{type:"entitySelect",components:[Lt.a.id,Ft.a.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const t of this.allowCachePages)this.typeToComponentToHandlers.set(t.type,new Map)}setLastNavigationType(t){this.isUserNavigatingBack="back"===t}checkResets(t){const e=this.getPath(t);for(const i of this.resets)if(i.resetPath===e){const e=t.params[i.param];null!==i.lastValue&&i.lastValue!==e&&this.typeToComponentToHandlers.get(i.resetType).clear(),i.lastValue=e}}shouldReuseRoute(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}retrieve(t){if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages)if(-1!==t.components.indexOf(e)){const i=this.typeToComponentToHandlers.get(t.type).get(e);return void 0===i?null:i.routeHandle}}return null}shouldAttach(t){if(!this.isUserNavigatingBack)return!1;if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages){const i=this.typeToComponentToHandlers.get(t.type).get(e);if(void 0!==i&&this.getCurrentTimestamp()-i.saveTimeStamp{class t{constructor(t,e){this.http=t,this.storeService=e}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[Gt(tinycolor(n).lighten(52),"50"),Gt(tinycolor(n).lighten(37),"100"),Gt(tinycolor(n).lighten(26),"200"),Gt(tinycolor(n).lighten(12),"300"),Gt(tinycolor(n).lighten(6),"400"),Gt(tinycolor(n),"500"),Gt(tinycolor(n).darken(6),"600"),Gt(tinycolor(n).darken(12),"700"),Gt(tinycolor(n).darken(18),"800"),Gt(tinycolor(n).darken(24),"900"),Gt(tinycolor(n).lighten(50).saturate(30),"A100"),Gt(tinycolor(n).lighten(30).saturate(30),"A200"),Gt(tinycolor(n).lighten(10).saturate(15),"A400"),Gt(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise((t,e)=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new At.d({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(At.b),n.Wb(l.m))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Gt(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}var Ut=i("yv0D"),Kt=i("OZ4H");let Vt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.initAuthService=t,this.appConfigService=e,this.store=i,this.authzSevice=n,this.dialog=s,this.location=o,this.translate=r,this.guiAuthResolver=a,this.titleService=c,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_root_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu-link-active",cssVariable:"--side-link-active"},{configValue:"sidemenu-link-hover",cssVariable:"--side-link-hover"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.authenticateUser()).catch(t=>{if("Invalid path"!==t)throw console.error(t),this.location.go("/"),location.reload(),t;this.handleErr(t)}).then(t=>{if(t)return this.initAuthService.loadPrincipal().catch(t=>this.handleErr(t)).then(()=>this.loadPolicies()).then(()=>this.guiAuthResolver.loadRolesManagementRules())})}setApiUrl(){return new Promise(t=>{this.authzSevice.configuration.basePath=this.store.get("api_url"),this.titleService.setTitle(this.store.get("document_title")),t()})}handleErr(t){const e=Object(m.o)();throw"Invalid path"===t?(e.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(Ut.b,e)):(e.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===t.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":t.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(Ut.c,e)),console.error(t),t}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(l.i),n.Wb(jt),n.Wb(l.m),n.Wb(c.d),n.Wb(Kt.b),n.Wb(f.n),n.Wb(w.e),n.Wb(l.h),n.Wb(o.d))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var qt=i("ZTXN"),Jt=i("KTx3"),Wt=i("g6G6"),Zt=i("prE9"),Yt=i("kuMc"),$t=i("Ohay"),Xt=i("5uGe");function Qt(t){return e=>e.lift(new te(t))}class te{constructor(t){this.value=t}call(t,e){return e.subscribe(new ee(t,this.value))}}class ee extends Xt.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function ie(t){return getComputedStyle(t)}function ne(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function se(t){var e=document.createElement("div");return e.className=t,e}var oe="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function re(t,e){if(!oe)throw new Error("No element matching method supported");return oe.call(t,e)}function ae(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function ce(t,e){return Array.prototype.filter.call(t.children,(function(t){return re(t,e)}))}var le=function(t){return"ps__thumb-"+t},ue=function(t){return"ps__rail-"+t},he=function(t){return"ps--active-"+t},de=function(t){return"ps--scrolling-"+t},pe={x:null,y:null};function fe(t,e){var i=t.element.classList,n=de(e);i.contains(n)?clearTimeout(pe[e]):i.add(n)}function ge(t,e){pe[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(de(e))}),t.settings.scrollingThreshold)}var be=function(t){this.element=t,this.handlers={}},me={isEmpty:{configurable:!0}};be.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},be.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter((function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)}))},be.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},me.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(be.prototype,me);var Ae=function(){this.eventElements=[]};function ye(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function we(t,e,i,n,s){var o;if(void 0===n&&(n=!0),void 0===s&&(s=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,s){var o=i[0],r=i[1],a=i[2],c=i[3],l=i[4],u=i[5];void 0===n&&(n=!0),void 0===s&&(s=!1);var h=t.element;t.reach[c]=null,h[a]<1&&(t.reach[c]="start"),h[a]>t[o]-t[r]-1&&(t.reach[c]="end"),e&&(h.dispatchEvent(ye("ps-scroll-"+c)),e<0?h.dispatchEvent(ye("ps-scroll-"+l)):e>0&&h.dispatchEvent(ye("ps-scroll-"+u)),n&&function(t,e){fe(t,e),ge(t,e)}(t,c)),t.reach[c]&&(e||s)&&h.dispatchEvent(ye("ps-"+c+"-reach-"+t.reach[c]))}(t,i,o,n,s)}function ve(t){return parseInt(t,10)||0}Ae.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new be(t),this.eventElements.push(e)),e},Ae.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},Ae.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},Ae.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},Ae.prototype.once=function(t,e,i){var n=this.eventElement(t),s=function(t){n.unbind(e,s),i(t)};n.bind(e,s)};var _e={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Se(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(ce(e,ue("x")).forEach((function(t){return ae(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(ce(e,ue("y")).forEach((function(t){return ae(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,ne(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?s.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:s.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,ne(e.scrollbarYRail,s),ne(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),ne(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(he("x")):(e.classList.remove(he("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(he("y")):(e.classList.remove(he("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Ee(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Re(t,e){var i=e[0],n=e[1],s=e[2],o=e[3],r=e[4],a=e[5],c=e[6],l=e[7],u=e[8],h=t.element,d=null,p=null,f=null;function g(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),h[c]=d+f*(e[s]-p),fe(t,l),Se(t),e.stopPropagation(),e.preventDefault()}function b(){ge(t,l),t[u].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",g)}function m(e,r){d=h[c],r&&e.touches&&(e[s]=e.touches[0].pageY),p=e[s],f=(t[n]-t[i])/(t[o]-t[a]),r?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",b),e.preventDefault()),t[u].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[r],"mousedown",(function(t){m(t)})),t.event.bind(t[r],"touchstart",(function(t){m(t,!0)}))}var Ce={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Se(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Se(t),e.stopPropagation()}))},"drag-thumb":function(t){Re(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Re(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(re(e,":hover")||re(t.scrollbarX,":focus")||re(t.scrollbarY,":focus"))){var n,s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(re(n=s,"input,[contenteditable]")||re(n,"select,[contenteditable]")||re(n,"textarea,[contenteditable]")||re(n,"button,[contenteditable]"))return}var o=0,r=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:r=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:r=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:r=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:r=t.containerHeight;break;case 34:r=-t.containerHeight;break;case 36:r=t.contentHeight;break;case 35:r=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==r||(e.scrollTop-=r,e.scrollLeft+=o,Se(t),function(i,n){var s=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===s&&n>0||s>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,r)&&i.preventDefault())}}))},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),s=n[0],o=n[1];if(!function(t,i,n){if(!_e.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=ie(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(i.target,s,o)){var r=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,r=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,r=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),Se(t),(r=r||function(i,n){var s=Math.floor(e.scrollTop),o=0===e.scrollTop,r=s+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||r:a||c)||!t.settings.wheelPropagation}(s,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(_e.supportsTouch||_e.supportsIePointer){var e=t.element,i={},n=0,s={},o=null;_e.supportsTouch?(t.event.bind(e,"touchstart",l),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",h)):_e.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",l),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",l),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",h)))}function r(i,n){e.scrollTop-=n,e.scrollLeft-=i,Se(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function l(t){if(c(t)){var e=a(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function u(o){if(c(o)){var l=a(o),u={pageX:l.pageX,pageY:l.pageY},h=u.pageX-i.pageX,d=u.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=ie(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(o.target,h,d))return;r(h,d),i=u;var p=(new Date).getTime(),f=p-n;f>0&&(s.x=h/f,s.y=d/f,n=p),function(i,n){var s=Math.floor(e.scrollTop),o=e.scrollLeft,r=Math.abs(i),a=Math.abs(n);if(a>r){if(n<0&&s===t.contentHeight-t.containerHeight||n>0&&0===s)return 0===window.scrollY&&n>0&&_e.isChrome}else if(r>a&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval((function(){t.isInitialized?clearInterval(o):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(o):(r(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(o)}),10))}}},Te=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,o,r=function(){return t.classList.add("ps--focus")},a=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===ie(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=o,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Ae,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=se(ue("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=se(le("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=ie(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ve(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ve(c.borderLeftWidth)+ve(c.borderRightWidth),ne(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ve(c.marginLeft)+ve(c.marginRight),ne(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=se(ue("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=se(le("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=ie(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ve(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=ie(t);return ve(e.width)+ve(e.paddingLeft)+ve(e.paddingRight)+ve(e.borderLeftWidth)+ve(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ve(l.borderTopWidth)+ve(l.borderBottomWidth),ne(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ve(l.marginTop)+ve(l.marginBottom),ne(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return Ce[t](i)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return i.onScroll(t)})),Se(this)};Te.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ne(this.scrollbarXRail,{display:"block"}),ne(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ve(ie(this.scrollbarXRail).marginLeft)+ve(ie(this.scrollbarXRail).marginRight),this.railYMarginHeight=ve(ie(this.scrollbarYRail).marginTop)+ve(ie(this.scrollbarYRail).marginBottom),ne(this.scrollbarXRail,{display:"none"}),ne(this.scrollbarYRail,{display:"none"}),Se(this),we(this,"top",0,!1,!0),we(this,"left",0,!1,!0),ne(this.scrollbarXRail,{display:""}),ne(this.scrollbarYRail,{display:""}))},Te.prototype.onScroll=function(t){this.isAlive&&(Se(this),we(this,"top",this.element.scrollTop-this.lastScrollTop),we(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Te.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),ae(this.scrollbarX),ae(this.scrollbarY),ae(this.scrollbarXRail),ae(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Te.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var ke=Te,Ie=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some((function(t,n){return t[0]===e&&(i=n,!0)})),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Oe&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Oe&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;Pe.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Le=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),qe="undefined"!=typeof WeakMap?new WeakMap:new Ie,Je=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ne.getInstance(),n=new Ve(e,i,this);qe.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){Je.prototype[t]=function(){var e;return(e=qe.get(this))[t].apply(e,arguments)}}));var We=void 0!==De.ResizeObserver?De.ResizeObserver:Je;function Ze(t,e){if(1&t&&(n.Sb(0,"div",3),n.Nb(1,"div",4),n.Nb(2,"div",5),n.Nb(3,"div",6),n.Nb(4,"div",7),n.Rb()),2&t){const t=n.dc();n.Eb("ps-at-top",t.states.top)("ps-at-left",t.states.left)("ps-at-right",t.states.right)("ps-at-bottom",t.states.bottom),n.Ab(1),n.Eb("ps-indicator-show",t.indicatorY&&t.interaction),n.Ab(1),n.Eb("ps-indicator-show",t.indicatorX&&t.interaction),n.Ab(1),n.Eb("ps-indicator-show",t.indicatorX&&t.interaction),n.Ab(1),n.Eb("ps-indicator-show",t.indicatorY&&t.interaction)}}const Ye=["*"],$e=new n.r("PERFECT_SCROLLBAR_CONFIG");class Xe{constructor(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}}class Qe{constructor(t,e){this.x=t,this.y=e}}const ti=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class ei{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let ii=(()=>{let t=class{constructor(t,e,i,s,o){this.zone=t,this.differs=e,this.elementRef=i,this.platformId=s,this.defaults=o,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new qt.a,this.disabled=!1,this.psScrollY=new n.o,this.psScrollX=new n.o,this.psScrollUp=new n.o,this.psScrollDown=new n.o,this.psScrollLeft=new n.o,this.psScrollRight=new n.o,this.psYReachEnd=new n.o,this.psYReachStart=new n.o,this.psXReachEnd=new n.o,this.psXReachStart=new n.o}ngOnInit(){if(!this.disabled&&Object(f.J)(this.platformId)){const t=new ei(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new ke(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new We(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ti.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>"-"+t.toLowerCase());Object(Jt.a)(this.elementRef.nativeElement,e).pipe(Object(Zt.a)(20),Object(Yt.a)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){Object(f.J)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&Object(f.J)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&Object(f.J)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new Xe(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new Qe(this.instance.reach.x||0,this.instance.reach.y||0):new Qe(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,i){const n=this.elementRef.nativeElement.querySelector(t);if(n){const t=n.getBoundingClientRect(),s=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",t.left-s.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",t.top-s.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}animateScrolling(t,e,i){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let n=0,s=0,o=performance.now(),r=this.elementRef.nativeElement[t];const a=(r-e)/2,c=l=>{s+=Math.PI/(i/(l-o)),n=Math.round(e+a+a*Math.cos(s)),this.elementRef.nativeElement[t]===r&&(s>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=n,r=this.elementRef.nativeElement[t],o=l,this.animation=window.requestAnimationFrame(c)))};window.requestAnimationFrame(c)}}else this.elementRef.nativeElement[t]=e}};return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.A),n.Mb(n.u),n.Mb(n.l),n.Mb(n.C),n.Mb($e,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[n.yb]}),t})(),ni=(()=>{let t=class{constructor(t,e,i){this.zone=t,this.cdRef=e,this.platformId=i,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new qt.a,this.stateUpdate=new qt.a,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new n.o,this.psScrollX=new n.o,this.psScrollUp=new n.o,this.psScrollDown=new n.o,this.psScrollLeft=new n.o,this.psScrollRight=new n.o,this.psYReachEnd=new n.o,this.psYReachStart=new n.o,this.psXReachEnd=new n.o,this.psXReachStart=new n.o}ngOnInit(){Object(f.J)(this.platformId)&&(this.stateUpdate.pipe(Object(Yt.a)(this.ngDestroy),Object($t.a)((t,e)=>t===e&&!this.stateTimeout)).subscribe(t=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===t||"y"===t?(this.interaction=!1,"x"===t?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===t&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===t||"right"===t?(this.states.left=!1,this.states.right=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):"top"!==t&&"bottom"!==t||(this.states.top=!1,this.states.bottom=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;Object(Jt.a)(t,"wheel").pipe(Object(Yt.a)(this.ngDestroy)).subscribe(t=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(t,t.deltaX,t.deltaY)}),Object(Jt.a)(t,"touchmove").pipe(Object(Yt.a)(this.ngDestroy)).subscribe(t=>{if(!this.disabled&&this.autoPropagation){const e=t.touches[0].clientX,i=t.touches[0].clientY;this.checkPropagation(t,e-this.scrollPositionX,i-this.scrollPositionY),this.scrollPositionX=e,this.scrollPositionY=i}}),Object(Wt.a)(Object(Jt.a)(t,"ps-scroll-x").pipe(Qt("x")),Object(Jt.a)(t,"ps-scroll-y").pipe(Qt("y")),Object(Jt.a)(t,"ps-x-reach-end").pipe(Qt("right")),Object(Jt.a)(t,"ps-y-reach-end").pipe(Qt("bottom")),Object(Jt.a)(t,"ps-x-reach-start").pipe(Qt("left")),Object(Jt.a)(t,"ps-y-reach-start").pipe(Qt("top"))).pipe(Object(Yt.a)(this.ngDestroy)).subscribe(t=>{this.disabled||!this.autoPropagation&&!this.scrollIndicators||this.stateUpdate.next(t)})}}),window.setTimeout(()=>{ti.forEach(t=>{this.directiveRef&&(this.directiveRef[t]=this[t])})},0))}ngOnDestroy(){Object(f.J)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if(Object(f.J)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}checkPropagation(t,e,i){this.interaction=!0;const n=e<0?-1:1,s=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==s))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=s),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}};return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.A),n.Mb(n.h),n.Mb(n.C))},t.\u0275cmp=n.Gb({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){var i;1&t&&n.Dc(ii,!0),2&t&&n.sc(i=n.ac())&&(e.directiveRef=i.first)},hostVars:4,hostBindings:function(t,e){2&t&&n.Eb("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:Ye,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(n.jc(),n.Sb(0,"div",0),n.Sb(1,"div",1),n.ic(2),n.Rb(),n.Hc(3,Ze,5,16,"div",2),n.Rb()),2&t&&(n.Eb("ps",e.usePSClass),n.kc("perfectScrollbar",e.config)("disabled",e.disabled),n.Ab(3),n.kc("ngIf",e.scrollIndicators))},directives:[ii,f.t],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t})(),si=(()=>{let t=class{};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[f.c],f.c]}),t})();var oi=i("BYpP"),ri=i("gpj7"),ai=i("qvOF"),ci=i("ulve"),li=i("E5oP"),ui=i("H0K4"),hi=i("29Wa"),di=i("Cd2c"),pi=i("A1vf"),fi=i("cePI"),gi=i("FlRo"),bi=i("KZIX"),mi=i("QcI7"),Ai=i("R7+U"),yi=i("W1gw"),wi=i("66mq"),vi=i("k8N0"),_i=i("gcUQ"),Si=i("F1o0"),Ei=i("zmEM"),Ri=i("Meci"),Ci=i("x9Az"),Ti=i("alep"),ki=i("iAde"),Ii=i("PY7g"),Oi=i("oqI+"),Di=i("jk8c"),Mi=i("WimW"),Pi=i("vhVt"),xi=i("p/8k"),Ni=i("p3Ob"),Li=i("ZWQq"),Fi=i("S17y"),zi=i("3Uyd"),Hi=i("Jb3d"),Bi=i("NU+N"),ji=i("ma6z"),Gi=i("Rbfv"),Ui=i("snnp"),Ki=i("ZWyU"),Vi=i("yNE8"),qi=i("pgvo"),Ji=i("bdug"),Wi=i("gdiH"),Zi=i("77So"),Yi=i("iT3j"),$i=i("5kIe"),Xi=i("gcZR"),Qi=i("eakH"),tn=i("NC8S"),en=i("pnmw"),nn=i("OL2r"),sn=i("IDQ9"),on=i("KF6X"),rn=i("j610"),an=i("VBdk"),cn=i("jjFd"),ln=i("9wx0"),un=i("XpU2"),hn=i("0XDM"),dn=i("EtYo"),pn=i("A8Ay"),fn=i("LKLE"),gn=i("nhAq"),bn=i("b7Yx"),mn=i("8cyV"),An=i("U3ra"),yn=i("UX+r"),wn=i("ZG5M"),vn=i("tmvS"),_n=i("TQS+"),Sn=i("YFHD"),En=i("3jrC"),Rn=i("XAvq"),Cn=i("WLDY"),Tn=i("B/Qt"),kn=i("YRqw"),In=i("nz2m"),On=i("COMt"),Dn=i("ABWF"),Mn=i("eXxK"),Pn=i("22FB"),xn=i("KQGD"),Nn=i("jqZM"),Ln=i("HMTk"),Fn=i("Ds80"),zn=i("LAw4"),Hn=i("BnyX"),Bn=i("2Zb0"),jn=i("ajPJ"),Gn=i("oYGW"),Un=i("pynj"),Kn=i("l18O"),Vn=i("6Xhx"),qn=i("e+sS"),Jn=i("kdIE"),Wn=i("XhvO"),Zn=i("g3Wv"),Yn=i("1Gb8"),$n=i("+TsY"),Xn=i("hLiN"),Qn=i("L4Ow"),ts=i("7fDV"),es=i("7o/y"),is=i("yAs8"),ns=i("O/Vf"),ss=i("bwko"),os=i("A6H7");const rs={provide:At.a,useExisting:Object(n.U)(()=>l.a),multi:!0};function as(t){return new mt(t,"./assets/i18n/",".json")}function cs(t){const e={basePath:t.get("api_url")};return new c.e(e)}const ls=t=>()=>t.loadConfigs(),us={suppressScrollX:!0};let hs=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275mod=n.Kb({type:t,bootstrap:[at.a]}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)(n.Wb(l.e),n.Wb(w.e))},providers:[Vt,{provide:n.d,useFactory:ls,multi:!0,deps:[Vt]},{provide:c.e,useFactory:cs,deps:[l.m]},{provide:r.e,useClass:Ht},l.e,{provide:Bt,useClass:l.c},l.a,rs,{provide:$e,useValue:us}],imports:[[yt.b,o.a,At.c,ct.a,wt,rt,g.b,Ut.a,w.c.forRoot({loader:{provide:w.b,useFactory:as,deps:[At.b]}}),c.b,si,st.d]]}),t})();n.Ac(at.a,[f.q,f.r,f.s,f.t,f.A,f.w,f.x,f.y,f.z,f.u,f.v,oi.a,oi.c,ri.a,ai.b,ci.a,y.n,y.m,ci.d,ci.c,li.b,ui.b,ui.c,hi.b,hi.c,hi.f,hi.g,hi.h,hi.i,hi.j,di.b,di.d,r.k,r.g,r.i,r.h,r.l,p.H,p.w,p.G,p.c,p.x,p.A,p.a,p.D,p.E,p.z,p.r,p.s,p.C,p.n,p.m,p.y,p.b,p.d,p.h,p.j,p.i,p.k,p.e,p.u,p.v,p.t,g.a,pi.a,h.a,h.b,h.c,h.d,h.e,h.f,w.a,fi.a,fi.b,gi.n,gi.i,gi.k,gi.c,gi.b,gi.m,gi.e,gi.g,gi.h,gi.a,gi.d,gi.j,gi.l,gi.f,gi.q,bi.c,bi.d,bi.a,bi.f,bi.e,bi.b,mi.a,mi.g,mi.i,mi.j,mi.b,mi.f,mi.h,b.b,b.a,d.a,d.c,Kt.f,Kt.d,Kt.j,Kt.g,Kt.c,Ai.a,Ai.c,yi.a,C.a,C.c,wi.a,R.a,R.c,vi.c,vi.a,_i.a,_i.b,_i.d,_i.e,_i.f,_i.h,_i.i,_i.j,_i.l,_i.k,_i.c,Si.b,Si.a,Ei.a,Ri.a,Ri.f,Ri.n,Ri.d,Ri.m,Ri.l,Ri.b,Ri.e,Ri.k,Ri.i,Ri.h,Ri.g,Ri.o,Ri.c,Ci.a,Ci.j,Ci.b,Ci.d,Ci.e,Ci.h,Ci.i,Ci.c,Ci.f,Ti.a,y.s,ki.a,Ii.a,Oi.e,Oi.f,Oi.a,Oi.b,Oi.d,Oi.c,Di.a,Mi.a,Pi.a,xi.a,Ni.a,Li.a,Fi.d,Fi.a,Fi.c,Fi.e,Fi.b,Fi.f,zi.a,zi.c,zi.d,zi.g,zi.h,zi.f,zi.e,Hi.e,Hi.b,Hi.d,Hi.a,ai.a,ai.d,ai.e,Bi.a,ji.a,Gi.a,Ui.a,Ki.a,Vi.a,qi.a,Ji.a,Wi.a,Zi.a,Yi.a,$i.a,Xi.a,Qi.a,tn.a,en.a,nn.a,sn.a,on.a,a,rn.a,an.a,cn.a,ni,ii,T.a,k.a,ln.a,un.a,hn.a,dn.a,pn.a,fn.a,gn.a,bn.a,mn.a,An.a,yn.a,I.a,wn.a,vn.a,_n.a,Sn.a,En.a,Rn.a,Cn.a,_n.b,Tn.a,kn.a,In.a,On.a,Dn.a,_n.c,Mn.a,Pn.a,xn.a,Nn.a,Ln.a,Fn.a,O.a,zn.a,Hn.a,Bn.a,jn.a,Gn.a,Un.a,Kn.a,Vn.a,at.a,bt],[f.b,f.G,f.p,f.k,f.E,f.g,f.C,f.F,f.d,f.f,f.i,f.j,f.l,w.d,qn.a,Jn.a,Wn.a,Zn.a,Yn.a,$n.a,Xn.a,Qn.a,ts.a,es.a,is.a,ns.a,ss.a,os.a]),s.a.production&&Object(n.T)(),o.e().bootstrapModule(hs).catch(t=>console.error(t))},zldI:function(t,e,i){"use strict";i.d(e,"a",(function(){return M}));var n=i("Ssnw"),s=i("X2Q7"),o=i("Iydx"),r=i("EM62"),a=i("OZ4H"),c=i("s2Ay"),l=i("2kYt"),u=i("PBFl"),h=i("Y2X+"),d=i("csyo"),p=i("29Wa"),f=i("Cd2c"),g=i("nIj0"),b=i("H0K4"),m=i("R7+U"),A=i("k8N0"),y=i("+Tre"),w=i("mFH5");function v(t,e){1&t&&r.Nb(0,"mat-spinner",7)}function _(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function S(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function E(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function R(t,e){if(1&t&&(r.Sb(0,"mat-option",29),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.kc("value",t),r.Ab(1),r.Kc(t)}}function C(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function T(t,e){if(1&t&&(r.Sb(0,"mat-option",29),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.kc("value",t),r.Ab(1),r.Kc(t)}}function k(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function I(t,e){if(1&t&&(r.Sb(0,"mat-option",29),r.Jc(1),r.Rb()),2&t){const t=e.$implicit;r.kc("value",t),r.Ab(1),r.Kc(t)}}function O(t,e){1&t&&(r.Sb(0,"mat-error"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function D(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div",8),r.Sb(1,"mat-form-field",9),r.Sb(2,"label"),r.Sb(3,"input",10),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().attDef.friendlyName=e})),r.ec(4,"translate"),r.Rb(),r.Rb(),r.Hc(5,_,3,3,"mat-error",11),r.Rb(),r.Nb(6,"br"),r.Sb(7,"mat-form-field",9),r.Sb(8,"label"),r.Sb(9,"input",10),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().attDef.displayName=e})),r.ec(10,"translate"),r.Rb(),r.Rb(),r.Hc(11,S,3,3,"mat-error",11),r.Rb(),r.Nb(12,"br"),r.Sb(13,"mat-form-field",9),r.Sb(14,"label"),r.Sb(15,"textarea",12),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().attDef.description=e})),r.ec(16,"translate"),r.Jc(17," "),r.Rb(),r.Rb(),r.Hc(18,E,3,3,"mat-error",11),r.Rb(),r.Nb(19,"br"),r.Sb(20,"mat-form-field",9),r.Sb(21,"mat-placeholder"),r.Jc(22),r.ec(23,"translate"),r.Rb(),r.Sb(24,"mat-select",13),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().entity=e})),r.Hc(25,R,2,2,"mat-option",14),r.Rb(),r.Hc(26,C,3,3,"mat-error",11),r.Rb(),r.Nb(27,"br"),r.Sb(28,"mat-form-field",9),r.Sb(29,"mat-placeholder"),r.Jc(30),r.ec(31,"translate"),r.Rb(),r.Sb(32,"mat-select",13),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().definitionType=e})),r.Hc(33,T,2,2,"mat-option",14),r.Rb(),r.Hc(34,k,3,3,"mat-error",11),r.Rb(),r.Nb(35,"br"),r.Sb(36,"mat-form-field",9),r.Sb(37,"mat-placeholder"),r.Jc(38),r.ec(39,"translate"),r.Rb(),r.Sb(40,"mat-select",13),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().valueType=e})),r.Hc(41,I,2,2,"mat-option",14),r.Rb(),r.Hc(42,O,3,3,"mat-error",11),r.Rb(),r.Nb(43,"br"),r.Sb(44,"div",15),r.Sb(45,"p"),r.Jc(46),r.ec(47,"translate"),r.Rb(),r.Sb(48,"p",16),r.Zb("click",(function(){return r.xc(t),r.dc().attDef.unique=!1})),r.Jc(49,"OFF"),r.Rb(),r.Sb(50,"mat-slide-toggle",17),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().attDef.unique=e})),r.ec(51,"translate"),r.Jc(52," ON "),r.Rb(),r.Rb(),r.Sb(53,"div",18),r.Sb(54,"p",19),r.Jc(55),r.ec(56,"translate"),r.Rb(),r.Sb(57,"p",20),r.Jc(58),r.ec(59,"translate"),r.Rb(),r.Rb(),r.Sb(60,"div",21),r.Sb(61,"p",22),r.Jc(62),r.ec(63,"translate"),r.Rb(),r.Sb(64,"mat-checkbox",23),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().readSelf=e})),r.Rb(),r.Sb(65,"mat-checkbox",24),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().writeSelf=e})),r.Rb(),r.Rb(),r.Sb(66,"div",21),r.Sb(67,"p",22),r.Jc(68),r.ec(69,"translate"),r.Rb(),r.Sb(70,"mat-checkbox",25),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().readSelfPublic=e})),r.Rb(),r.Sb(71,"mat-checkbox",24),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().writeSelfPublic=e})),r.Rb(),r.Rb(),r.Sb(72,"div",21),r.Sb(73,"p",22),r.Jc(74),r.ec(75,"translate"),r.Rb(),r.Sb(76,"mat-checkbox",26),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().readSelfVo=e})),r.Rb(),r.Sb(77,"mat-checkbox",24),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().writeSelfVo=e})),r.Rb(),r.Rb(),r.Sb(78,"div",21),r.Sb(79,"p",22),r.Jc(80),r.ec(81,"translate"),r.Rb(),r.Sb(82,"mat-checkbox",27),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().readVo=e})),r.Rb(),r.Sb(83,"mat-checkbox",24),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().writeVo=e})),r.Rb(),r.Rb(),r.Sb(84,"div",21),r.Sb(85,"p",22),r.Jc(86),r.ec(87,"translate"),r.Rb(),r.Sb(88,"mat-checkbox",28),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().readGroup=e})),r.Rb(),r.Sb(89,"mat-checkbox",24),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().writeGroup=e})),r.Rb(),r.Rb(),r.Sb(90,"div",21),r.Sb(91,"p",22),r.Jc(92),r.ec(93,"translate"),r.Rb(),r.Sb(94,"mat-checkbox",26),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().readFacility=e})),r.Rb(),r.Sb(95,"mat-checkbox",24),r.Zb("ngModelChange",(function(e){return r.xc(t),r.dc().writeFacility=e})),r.Rb(),r.Rb(),r.Rb()}if(2&t){const t=r.dc();r.Ab(3),r.lc("placeholder",r.fc(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),r.kc("ngModel",t.attDef.friendlyName),r.Ab(2),r.kc("ngIf",""===t.attDef.friendlyName),r.Ab(4),r.lc("placeholder",r.fc(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),r.kc("ngModel",t.attDef.displayName),r.Ab(2),r.kc("ngIf",""===t.attDef.displayName),r.Ab(4),r.lc("placeholder",r.fc(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),r.kc("ngModel",t.attDef.description),r.Ab(3),r.kc("ngIf",""===t.attDef.description),r.Ab(4),r.Kc(r.fc(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),r.Ab(2),r.kc("ngModel",t.entity),r.Ab(1),r.kc("ngForOf",t.entities),r.Ab(1),r.kc("ngIf",""===t.attDef.entity),r.Ab(4),r.Kc(r.fc(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),r.Ab(2),r.kc("ngModel",t.definitionType),r.Ab(1),r.kc("ngForOf",t.definitionTypes),r.Ab(1),r.kc("ngIf",""===t.definitionType),r.Ab(4),r.Kc(r.fc(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),r.Ab(2),r.kc("ngModel",t.valueType),r.Ab(1),r.kc("ngForOf",t.valueTypes),r.Ab(1),r.kc("ngIf",""===t.valueType),r.Ab(4),r.Kc(r.fc(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),r.Ab(4),r.lc("matTooltip",r.fc(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),r.kc("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),r.Ab(5),r.Kc(r.fc(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),r.Ab(3),r.Kc(r.fc(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),r.Ab(4),r.Kc(r.fc(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),r.Ab(2),r.kc("ngModel",t.readSelf),r.Ab(1),r.kc("ngModel",t.writeSelf),r.Ab(3),r.Kc(r.fc(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),r.Ab(2),r.kc("ngModel",t.readSelfPublic),r.Ab(1),r.kc("ngModel",t.writeSelfPublic),r.Ab(3),r.Kc(r.fc(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),r.Ab(2),r.kc("ngModel",t.readSelfVo),r.Ab(1),r.kc("ngModel",t.writeSelfVo),r.Ab(3),r.Kc(r.fc(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),r.Ab(2),r.kc("ngModel",t.readVo),r.Ab(1),r.kc("ngModel",t.writeVo),r.Ab(3),r.Kc(r.fc(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),r.Ab(2),r.kc("ngModel",t.readGroup),r.Ab(1),r.kc("ngModel",t.writeGroup),r.Ab(3),r.Kc(r.fc(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),r.Ab(2),r.kc("ngModel",t.readFacility),r.Ab(1),r.kc("ngModel",t.writeFacility)}}let M=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.notificator=e,this.translate=i,this.attributesManager=n,this.loading=!1,this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","user_ext_source","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}ngOnInit(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}onSubmit(){this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.readRights()}).subscribe(()=>{this.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}readRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=o.a.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const i={};i.attributeId=this.attDef.id,i.role=o.a.VOADMIN,i.rights=[],this.readVo&&i.rights.push(s.a.READ),this.writeVo&&i.rights.push(s.a.WRITE),t.push(i);const n={};n.attributeId=this.attDef.id,n.role=o.a.GROUPADMIN,n.rights=[],this.readGroup&&n.rights.push(s.a.READ),this.writeGroup&&n.rights.push(s.a.WRITE),t.push(n);const r={};return r.attributeId=this.attDef.id,r.role=o.a.FACILITYADMIN,r.rights=[],this.readFacility&&r.rights.push(s.a.READ),this.writeFacility&&r.rights.push(s.a.WRITE),t.push(r),t}readValueType(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}disableConfirmButton(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}disableUniqueToggle(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(a.i),r.Mb(n.l),r.Mb(c.e),r.Mb(s.c))},t.\u0275cmp=r.Gb({type:t,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,e){1&t&&(r.Sb(0,"div",0),r.Sb(1,"h1",1),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Hc(4,v,1,0,"mat-spinner",2),r.Hc(5,D,96,78,"div",3),r.Sb(6,"div",4),r.Sb(7,"button",5),r.Zb("click",(function(){return e.onCancel()})),r.Jc(8),r.ec(9,"translate"),r.Rb(),r.Sb(10,"button",6),r.Zb("click",(function(){return e.onSubmit()})),r.ec(11,"translate"),r.Jc(12),r.ec(13,"translate"),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Ab(2),r.Kc(r.fc(3,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),r.Ab(2),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading),r.Ab(3),r.Lc(" ",r.fc(9,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),r.Ab(2),r.lc("matTooltip",r.fc(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),r.kc("disabled",e.disableConfirmButton())("matTooltipDisabled",!e.disableConfirmButton()),r.Ab(2),r.Lc(" ",r.fc(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[a.j,l.t,a.c,u.b,h.a,d.c,a.g,p.c,f.b,g.c,g.C,g.r,g.u,b.c,p.h,m.a,l.s,A.a,y.a,p.b,w.n],pipes:[c.d],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),t})()},zmEM:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return a}));var n=i("5XID"),s=i("mFH5"),o=i("EM62");let r=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(n.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(n.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.Bb("aria-orientation",e.vertical?"vertical":"horizontal"),o.Eb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},zn8P:function(t,e){function i(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main-es5.0a860f7c3d976bbee5e2.js b/dist/apps/admin-gui/main-es5.0a860f7c3d976bbee5e2.js new file mode 100644 index 000000000..5fc0aa1ab --- /dev/null +++ b/dist/apps/admin-gui/main-es5.0a860f7c3d976bbee5e2.js @@ -0,0 +1 @@ +!function(){function t(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function e(t,i,n){return(e=l()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&o(r,i.prototype),r}).apply(null,arguments)}function i(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e,i){return(n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(c){r=!0,a=c}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return i}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=l();return function(){var i,n=h(t);if(e){var r=h(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return c(this,i)}}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?u(t):e}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=f(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw a}}}}function f(t,e){if(t){if("string"==typeof t)return p(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i()\[\].,;:\s@"]+(\.[^<>()\[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe((function(e){t.pendingMails=e.filter((function(t,e,i){return e===i.indexOf(t)}));var i="";t.pendingMails.forEach((function(e){return i+="".concat(e===t.pendingMails[0]?"":", ").concat(e)})),console.log(i),t.pendingEmailsMessage=t.pendingEmailsMessageStart+i+t.pendingEmailsMessageEnd}))}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"").subscribe((function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close()}))}}]),t}()).\u0275fac=function(t){return new(t||Dt)(y.Mb(o.i),y.Mb(o.a),y.Mb(r.e),y.Mb(A.l),y.Mb(w.p))},Dt.\u0275cmp=y.Gb({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(t,e){1&t&&(y.Sb(0,"h1",0),y.Jc(1),y.ec(2,"translate"),y.ec(3,"customTranslate"),y.Rb(),y.Sb(4,"div",1),y.Hc(5,It,2,1,"app-alert",2),y.Sb(6,"mat-form-field",3),y.Sb(7,"label",3),y.Nb(8,"input",4),y.ec(9,"translate"),y.ec(10,"customTranslate"),y.Rb(),y.Hc(11,Ot,4,5,"mat-error",5),y.Rb(),y.Rb(),y.Sb(12,"div",6),y.Sb(13,"button",7),y.Zb("click",(function(){return e.onCancel()})),y.Jc(14),y.ec(15,"translate"),y.ec(16,"customTranslate"),y.Rb(),y.Sb(17,"button",8),y.Zb("click",(function(){return e.onSubmit()})),y.Jc(18),y.ec(19,"translate"),y.ec(20,"customTranslate"),y.Rb(),y.Rb()),2&t&&(y.Ab(1),y.Kc(y.fc(2,8,y.fc(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),y.Ab(4),y.kc("ngIf",e.pendingMails.length),y.Ab(3),y.lc("placeholder",y.fc(9,12,y.fc(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),y.kc("formControl",e.emailControl),y.Ab(3),y.kc("ngIf",e.emailControl.invalid),y.Ab(3),y.Lc(" ",y.fc(15,16,y.fc(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),y.Ab(3),y.kc("disabled",!e.emailControl.valid),y.Ab(1),y.Lc(" ",y.fc(19,20,y.fc(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[o.j,o.g,n.t,c.c,l.b,u.c,u.C,u.r,u.h,o.c,s.b,Tt.a,c.b],pipes:[r.d,ot.a],styles:[""]}),Dt);function Pt(t,e){1&t&&y.Nb(0,"mat-spinner",6)}function xt(t,e){1&t&&y.Nb(0,"th",15)}function Nt(t,e){if(1&t&&(y.Sb(0,"td",16),y.Jc(1),y.Rb()),2&t){var i=e.$implicit;y.Ab(1),y.Lc(" ",i," ")}}function Lt(t,e){1&t&&y.Nb(0,"tr",17)}function Ft(t,e){1&t&&y.Nb(0,"tr",18)}function zt(t,e){if(1&t&&(y.Sb(0,"div",7),y.Sb(1,"p"),y.Jc(2),y.ec(3,"translate"),y.Rb(),y.Sb(4,"div",8),y.Jc(5),y.ec(6,"translate"),y.Rb(),y.Sb(7,"table",9),y.Qb(8,10),y.Hc(9,xt,1,0,"th",11),y.Hc(10,Nt,2,1,"td",12),y.Pb(),y.Hc(11,Lt,1,0,"tr",13),y.Hc(12,Ft,1,0,"tr",14),y.Rb(),y.Rb()),2&t){var i=y.dc();y.Ab(2),y.Lc(" ",y.fc(3,5,i.data.description)," "),y.Ab(3),y.Lc(" ",y.fc(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),y.Ab(2),y.kc("dataSource",i.dataSource),y.Ab(4),y.kc("matHeaderRowDef",i.displayedColumns),y.Ab(1),y.kc("matRowDefColumns",i.displayedColumns)}}var Ht,Bt=((Ht=function(){function t(e,i){g(this,t),this.dialogRef=e,this.data=i,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new a.o(this.data.items)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){this.dialogRef.close(!0)}}]),t}()).\u0275fac=function(t){return new(t||Ht)(y.Mb(o.i),y.Mb(o.a))},Ht.\u0275cmp=y.Gb({type:Ht,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(y.Sb(0,"div"),y.Sb(1,"h1",0),y.Jc(2),y.ec(3,"translate"),y.Rb(),y.Hc(4,Pt,1,0,"mat-spinner",1),y.Hc(5,zt,13,9,"div",2),y.Sb(6,"div",3),y.Sb(7,"button",4),y.Zb("click",(function(){return e.onCancel()})),y.Jc(8),y.ec(9,"translate"),y.Rb(),y.Sb(10,"button",5),y.Zb("click",(function(){return e.onSubmit()})),y.Jc(11),y.ec(12,"translate"),y.Rb(),y.Rb(),y.Rb()),2&t&&(y.Cb(e.theme),y.Ab(2),y.Kc(y.fc(3,9,e.data.title)),y.Ab(2),y.kc("ngIf",e.loading),y.Ab(1),y.kc("ngIf",!e.loading),y.Ab(3),y.Lc(" ",y.fc(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),y.Ab(2),y.kc("disabled",e.loading),y.Ab(1),y.Lc(" ",y.fc(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[o.j,n.t,o.c,s.b,h.c,o.g,a.n,a.c,a.i,a.b,a.k,a.m,a.h,a.a,a.j,a.l],pipes:[r.d],styles:[""]}),Ht)},"+Jyz":function(t,e,i){"use strict";i.d(e,"a",(function(){return P}));var n=i("X2Q7"),r=i("cqs0"),a=i("iyZ4"),o=i("8clQ"),s=i("7Y6W"),c=i("jMG3"),u=i("Ssnw"),l=i("EtR/"),h=i("nyAh"),d=i("Iydx"),f=i("EM62"),p=i("sEIs"),b=i("OZ4H"),v=i("0XDM"),y=i("Y2X+"),A=i("2kYt"),w=i("Jb3d"),_=i("A8Ay"),S=i("PBFl"),k=i("csyo"),E=i("pnmw"),R=i("s2Ay");function C(t,e){if(1&t&&(f.Sb(0,"button",10),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t){var i=f.dc(),n=f.tc(9);f.kc("disabled",i.findSponsorsAuth&&0===i.voSponsors.length)("matMenuTriggerFor",n),f.Ab(1),f.Lc(" ",f.fc(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function T(t,e){if(1&t){var i=f.Tb();f.Sb(0,"button",11),f.Zb("click",(function(){return f.xc(i),f.dc().onCreate()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function I(t,e){if(1&t){var i=f.Tb();f.Sb(0,"button",11),f.Zb("click",(function(){return f.xc(i),f.dc().onGenerate()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function O(t,e){if(1&t){var i=f.Tb();f.Sb(0,"button",12),f.Zb("click",(function(){return f.xc(i),f.dc().onSponsorExistingMember()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function D(t,e){1&t&&f.Nb(0,"mat-spinner",13)}function M(t,e){if(1&t){var i=f.Tb();f.Sb(0,"app-sponsored-members-list",14),f.Zb("page",(function(t){return f.xc(i),f.dc().pageChanged(t)}))("refreshTable",(function(){return f.xc(i),f.dc().refresh()})),f.Rb()}if(2&t){var n=f.dc();f.kc("sponsoredMembers",n.members)("disableRouting",!n.routeAuth)("selection",n.selection)("filterValue",n.searchString)("pageSize",n.pageSize)}}var P=function(){var t=function(){function t(e,i,n,o,s,c,u){g(this,t),this.membersManager=e,this.route=i,this.dialog=n,this.authResolver=o,this.tableConfigService=s,this.storeService=c,this.authzResolver=u,this.members=[],this.voSponsors=[],this.attrNames=[],this.selection=new r.c(!0,[]),this.searchString="",this.loading=!1,this.tableId=a.X}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.voId=e.voId,t.vo={id:t.voId,beanName:"Vo"};var i=["SPONSOR"],n=new Map;t.authResolver.getRolesAuthorization(i,t.vo,n),t.findSponsorsAuth=n.get(i[0]).readAuth,t.findSponsorsAuth?t.authzResolver.getAuthzRichAdmins(d.a.SPONSOR,t.vo.id,"Vo",[h.a.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe((function(e){t.voSponsors=e,t.setAuthRights(),t.refresh()})):(t.setAuthRights(),t.refresh())}))}},{key:"setAuthRights",value:function(){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]))}},{key:"onCreate",value:function(){var t=this,e=Object(o.o)();e.width="620px",e.data={entityId:this.voId,voId:this.voId,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(s.a,e).afterClosed().subscribe((function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe((function(e){t.storeService.setPerunPrincipal(e),t.refresh()})))}))}},{key:"onGenerate",value:function(){var t=this,e=Object(o.o)();e.width="750px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(c.a,e).afterClosed().subscribe((function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe((function(e){t.storeService.setPerunPrincipal(e),t.refresh()})))}))}},{key:"onSponsorExistingMember",value:function(){var t=this,e=Object(o.o)();e.width="650px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(l.a,e).afterClosed().subscribe((function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe((function(e){t.storeService.setPerunPrincipal(e),t.refresh()})))}))}},{key:"refresh",value:function(){var t=this;this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.voId,this.attrNames).subscribe((function(e){t.selection.clear(),t.members=e,t.setAuthRights(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.searchString=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Mb(n.i),f.Mb(p.a),f.Mb(b.b),f.Mb(u.h),f.Mb(a.pb),f.Mb(u.m),f.Mb(n.d))},t.\u0275cmp=f.Gb({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.Eb("router-component",!0)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable"]],template:function(t,e){1&t&&(f.Sb(0,"div"),f.Sb(1,"h1",0),f.Jc(2),f.ec(3,"translate"),f.Rb(),f.Sb(4,"perun-web-apps-refresh-button",1),f.Zb("refresh",(function(){return e.refresh()})),f.Rb(),f.Sb(5,"span",2),f.ec(6,"translate"),f.Hc(7,C,3,5,"button",3),f.Rb(),f.Sb(8,"mat-menu",null,4),f.Hc(10,T,3,3,"button",5),f.Hc(11,I,3,3,"button",5),f.Rb(),f.Hc(12,O,3,3,"button",6),f.Sb(13,"perun-web-apps-immediate-filter",7),f.Zb("filter",(function(t){return e.applyFilter(t)})),f.Rb(),f.Hc(14,D,1,0,"mat-spinner",8),f.Hc(15,M,1,5,"app-sponsored-members-list",9),f.Rb()),2&t&&(f.Ab(2),f.Kc(f.fc(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),f.Ab(3),f.lc("matTooltip",f.fc(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),f.kc("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),f.Ab(2),f.kc("ngIf",!e.loading&&(e.createAuth||e.generateAuth)),f.Ab(3),f.kc("ngIf",e.createAuth),f.Ab(1),f.kc("ngIf",e.generateAuth),f.Ab(1),f.kc("ngIf",!e.loading&&e.setSponsorshipAuth),f.Ab(1),f.kc("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),f.Ab(1),f.kc("ngIf",e.loading),f.Ab(1),f.kc("ngIf",!e.loading))},directives:[v.a,y.a,A.t,w.e,_.a,S.b,w.d,w.b,k.c,E.a],pipes:[R.d],styles:[""]}),t}()},"+MEm":function(t,e,i){"use strict";i.d(e,"a",(function(){return b}));var n=i("Ssnw"),r=i("EM62"),a=i("OZ4H"),o=i("2kYt"),s=i("PBFl"),c=i("qvOF"),u=i("tmvS"),l=i("FcRk"),h=i("s2Ay");function d(t,e){if(1&t&&(r.Sb(0,"div",9),r.Nb(1,"perun-web-apps-notification",10),r.Rb()),2&t){var i=e.$implicit;r.Ab(1),r.kc("data",i)("inDialog",!0)}}function f(t,e){if(1&t&&(r.Sb(0,"div",6),r.Sb(1,"cdk-virtual-scroll-viewport",7),r.Hc(2,d,2,2,"div",8),r.Rb(),r.Rb()),2&t){var i=r.dc();r.Ab(2),r.kc("cdkVirtualForOf",i.notifications)}}function p(t,e){1&t&&(r.Sb(0,"app-alert",11),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}var b=function(){var t=function(){function t(e,i){g(this,t),this.dialogRef=e,this.notificationStorageService=i}return m(t,[{key:"ngOnInit",value:function(){this.notifications=this.notificationStorageService.getNotifications()}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onClear",value:function(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(a.i),r.Mb(n.k))},t.\u0275cmp=r.Gb({type:t,selectors:[["app-show-notification-history-dialog"]],decls:12,vars:11,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(t,e){1&t&&(r.Sb(0,"h1",0),r.Jc(1),r.ec(2,"translate"),r.Rb(),r.Hc(3,f,3,1,"div",1),r.Hc(4,p,3,3,"app-alert",2),r.Sb(5,"div",3),r.Sb(6,"button",4),r.Zb("click",(function(){return e.onClear()})),r.Jc(7),r.ec(8,"translate"),r.Rb(),r.Sb(9,"button",5),r.Zb("click",(function(){return e.onCancel()})),r.Jc(10),r.ec(11,"translate"),r.Rb(),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),r.Ab(2),r.kc("ngIf",0!==e.notifications.length),r.Ab(1),r.kc("ngIf",0===e.notifications.length),r.Ab(3),r.Lc(" ",r.fc(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),r.Ab(3),r.Lc(" ",r.fc(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[a.j,o.t,a.c,s.b,c.e,c.a,c.d,u.a,l.a],pipes:[h.d],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t}()},"+Tre":function(t,e,i){"use strict";i.d(e,"a",(function(){return S})),i.d(e,"b",(function(){return T})),i.d(e,"c",(function(){return E}));var n=i("5XID"),r=i("EM62"),o=i("nIj0"),c=i("mFH5"),u=i("5lCh"),l=i("TKFd"),h=i("sg/T"),d=["input"],f=function(){return{enterDuration:150}},p=["*"],b=new r.r("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),v=new r.r("mat-checkbox-click-action"),y=0,A={provide:o.p,useExisting:Object(r.U)((function(){return S})),multi:!0},w=function t(){g(this,t)},_=Object(c.D)(Object(c.y)(Object(c.z)(Object(c.A)((function t(e){g(this,t),this._elementRef=e}))))),S=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,a,o,s,c,u,l){var h;return g(this,i),(h=e.call(this,t))._changeDetectorRef=n,h._focusMonitor=a,h._ngZone=o,h._clickAction=c,h._animationMode=u,h._options=l,h.ariaLabel="",h.ariaLabelledby=null,h._uniqueId="mat-checkbox-"+ ++y,h.id=h._uniqueId,h.labelPosition="after",h.name=null,h.change=new r.o,h.indeterminateChange=new r.o,h._onTouched=function(){},h._currentAnimationClass="",h._currentCheckState=0,h._controlValueAccessorChangeFn=function(){},h._checked=!1,h._disabled=!1,h._indeterminate=!1,h._options=h._options||{},h._options.color&&(h.color=h._options.color),h.tabIndex=parseInt(s)||0,h._focusMonitor.monitor(t,!0).subscribe((function(t){t||Promise.resolve().then((function(){h._onTouched(),n.markForCheck()}))})),h._clickAction=h._clickAction||h._options.clickAction,h}return m(i,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){i.classList.remove(n)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var t=new w;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,t,e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+i}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}},{key:"inputId",get:function(){return(this.id||this._uniqueId)+"-input"}},{key:"required",get:function(){return this._required},set:function(t){this._required=Object(n.c)(t)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=Object(n.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=Object(n.c)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),i}(_);return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(r.h),r.Mb(h.h),r.Mb(r.A),r.Xb("tabindex"),r.Mb(v,8),r.Mb(u.a,8),r.Mb(b,8))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(r.Qc(d,!0),r.Qc(c.s,!0)),2&t&&(r.sc(i=r.ac())&&(e._inputElement=i.first),r.sc(i=r.ac())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Vb("id",e.id),r.Bb("tabindex",null),r.Eb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r.zb([A]),r.xb],ngContentSelectors:p,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.jc(),r.Sb(0,"label",0,1),r.Sb(2,"div",2),r.Sb(3,"input",3,4),r.Zb("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),r.Rb(),r.Sb(5,"div",5),r.Nb(6,"div",6),r.Rb(),r.Nb(7,"div",7),r.Sb(8,"div",8),r.cc(),r.Sb(9,"svg",9),r.Nb(10,"path",10),r.Rb(),r.bc(),r.Nb(11,"div",11),r.Rb(),r.Rb(),r.Sb(12,"span",12,13),r.Zb("cdkObserveContent",(function(){return e._onLabelTextChange()})),r.Sb(14,"span",14),r.Jc(15,"\xa0"),r.Rb(),r.ic(16),r.Rb(),r.Rb()),2&t){var i=r.tc(1),n=r.tc(13);r.Bb("for",e.inputId),r.Ab(2),r.Eb("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.Ab(1),r.kc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.Bb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),r.Ab(2),r.kc("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.oc(18,f))}},directives:[c.s,l.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t}(),k={provide:o.o,useExisting:Object(r.U)((function(){return E})),multi:!0},E=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(o.b);return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[r.zb([k]),r.xb]}),t}(),R=r.Ub(E),C=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t}(),T=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[c.t,c.i,l.c,C],c.i,C]}),t}()},"+TsY":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}},{key:"whenValueIsArray",value:function(t){var e="";return t.forEach((function(t){e=e.concat(t+", ")})),e}},{key:"whenValueIsMap",value:function(t){var e="";return t.forEach((function(t,i){e=e.concat(i+": "+t+", ")})),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"anyToString",type:t,pure:!0}),t}()},"/VkC":function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("X2Q7"),a=i("Ssnw"),o=i("FlRo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("csyo"),h=i("PBFl");function d(t,e){1&t&&s.Nb(0,"mat-spinner",4)}function f(t,e){1&t&&s.Nb(0,"th",13)}function p(t,e){if(1&t&&(s.Sb(0,"td",14),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function b(t,e){1&t&&s.Nb(0,"tr",15)}function v(t,e){1&t&&s.Nb(0,"tr",16)}function y(t,e){if(1&t&&(s.Sb(0,"div",5),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",6),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",7),s.Qb(8,8),s.Hc(9,f,1,0,"th",9),s.Hc(10,p,2,1,"td",10),s.Pb(),s.Hc(11,b,1,0,"tr",11),s.Hc(12,v,1,0,"tr",12),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}function A(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",17),s.Sb(1,"button",18),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"button",19),s.Zb("click",(function(){return s.xc(i),s.dc().onSubmit()})),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),s.Ab(2),s.kc("disabled",n.loading),s.Ab(1),s.Lc(" ",s.fc(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}var w=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.ownersManagerService=a,this.displayedColumns=["name"],this.owners=[]}return m(t,[{key:"ngOnInit",value:function(){this.dataSource=new o.o(this.data),this.owners=this.data}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe((function(){t.onSubmit()}),(function(){return t.loading=!1})):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe((function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(c.e),s.Mb(r.j))},t.\u0275cmp=s.Gb({type:t,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"],["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(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Hc(3,d,1,0,"mat-spinner",1),s.Hc(4,y,13,9,"div",2),s.Hc(5,A,7,7,"div",3)),2&t&&(s.Ab(1),s.Kc(s.fc(2,4,"DIALOGS.DELETE_OWNER.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(1),s.kc("ngIf",!e.loading))},directives:[n.j,u.t,l.c,n.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l,n.c,h.b],pipes:[c.d],styles:[""]}),t}()},"/bE8":function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("iyZ4"),s=i("cqs0"),c=i("EM62"),u=i("s2Ay"),l=i("2kYt"),h=i("PBFl"),f=i("csyo"),p=i("pynj"),b=i("gcZR");function v(t,e){1&t&&c.Nb(0,"mat-spinner",6)}function y(t,e){if(1&t){var i=c.Tb();c.Sb(0,"app-services-list",10),c.Zb("page",(function(t){return c.xc(i),c.dc(2).pageChanged(t)})),c.Rb()}if(2&t){var n=c.dc(2);c.kc("pageSize",n.pageSize)("disableRouting",!0)("services",n.unAssignedServices)("filterValue",n.filterValue)("selection",n.selection)}}function A(t,e){if(1&t){var i=c.Tb();c.Sb(0,"div",7),c.Sb(1,"perun-web-apps-debounce-filter",8),c.Zb("filter",(function(t){return c.xc(i),c.dc().applyFilter(t)})),c.ec(2,"translate"),c.Rb(),c.Hc(3,y,1,5,"app-services-list",9),c.Rb()}if(2&t){var n=c.dc();c.Ab(1),c.lc("placeholder",c.fc(2,2,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),c.Ab(2),c.kc("ngIf",!n.loading)}}var w=function(){var t=function(){function t(e,i,n,r,a,c,u){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourceManager=a,this.servicesManager=c,this.tableConfigService=u,this.loading=!1,this.selection=new s.c(!0,[]),this.tableId=o.q,this.filterValue=""}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe((function(e){t.servicesManager.getServices().subscribe((function(i){t.unAssignedServices=i;var n,r=d(e);try{for(r.s();!(n=r.n()).done;){var a,o=n.value,s=d(i);try{for(s.s();!(a=s.n()).done;){var c=a.value;o.id===c.id&&t.unAssignedServices.splice(t.unAssignedServices.indexOf(c),1)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){r.e(u)}finally{r.f()}t.filteredServices=t.unAssignedServices,t.loading=!1}))}))}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onAdd",value:function(){var t=this;this.loading=!0;var e,i=[],n=d(this.selection.selected);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}this.resourceManager.assignServices(this.data.resourceId,i).subscribe((function(){t.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SUCCESS_MESSAGE").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(r.l),c.Mb(u.e),c.Mb(a.m),c.Mb(a.n),c.Mb(o.pb))},t.\u0275cmp=c.Gb({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"placeholder","filter"],[3,"pageSize","disableRouting","services","filterValue","selection","page",4,"ngIf"],[3,"pageSize","disableRouting","services","filterValue","selection","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,v,1,0,"mat-spinner",1),c.Hc(5,A,4,4,"div",2),c.Sb(6,"div",3),c.Sb(7,"button",4),c.Zb("click",(function(){return e.onCancel()})),c.Jc(8),c.ec(9,"translate"),c.Rb(),c.Sb(10,"button",5),c.Zb("click",(function(){return e.onAdd()})),c.Jc(11),c.ec(12,"translate"),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Cb(e.theme),c.Ab(2),c.Kc(c.fc(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(3),c.Lc(" ",c.fc(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),c.Ab(2),c.kc("disabled",0===e.selection.selected.length||e.loading),c.Ab(1),c.Lc(" ",c.fc(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.ADD_BUTTON")," "))},directives:[n.j,l.t,n.c,h.b,f.c,n.g,p.a,b.a],pipes:[u.d],styles:[""]}),t}()},"/nwi":function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("X2Q7"),r=i("OZ4H"),a=i("FlRo"),o=i("Ssnw"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo"),d=i("FcRk"),f=i("pgvo");function p(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function b(t,e){if(1&t&&s.Nb(0,"app-perun-web-apps-destination-list",11),2&t){var i=s.dc(2);s.kc("destinations",i.destinations)("displayedColumns",i.displayedColumns)}}function v(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"app-alert",8),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"p"),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"div",9),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Hc(10,b,1,2,"app-perun-web-apps-destination-list",10),s.Rb()),2&t){var i=s.dc();s.Ab(1),s.kc("alert_type","warn"),s.Ab(1),s.Kc(s.fc(3,5,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),s.Ab(3),s.Kc(s.fc(6,7,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),s.Ab(3),s.Lc(" ",s.fc(9,9,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),s.Ab(2),s.kc("ngIf",!i.loading)}}var y=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.serviceManager=a,this.displayedColumns=[],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){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 a.o(this.data.destinations)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"deleteDestinations",value:function(){var t=this;if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);var e=this.destinations.pop();this.serviceManager.removeDestination(e.service.id,e.facility.id,e.destination,e.type).subscribe((function(){t.deleteDestinations()}),(function(){return t.loading=!1}))}},{key:"onConfirm",value:function(){this.loading=!0,this.deleteDestinations()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(o.l),s.Mb(c.e),s.Mb(n.n))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"alert_type"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"div"),s.Hc(4,p,1,0,"mat-spinner",1),s.Hc(5,v,11,11,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onConfirm()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),s.Ab(2),s.Cb(e.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL"),""),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM"),""))},directives:[r.j,u.t,r.c,l.b,h.c,r.g,d.a,f.a],pipes:[c.d],styles:[""]}),t}()},"/vgl":function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,"a",(function(){return n}))},0:function(t,e,i){t.exports=i("zUnb")},"0N5F":function(t,e,i){"use strict";i.d(e,"a",(function(){return z}));var n=i("OZ4H"),r=i("TkCa"),a=i("X2Q7"),o=i("Ssnw"),s=i("EM62"),c=i("2kYt"),u=i("PBFl"),l=i("Y2X+"),h=i("csyo"),f=i("FcRk"),p=i("KZIX"),b=i("29Wa"),v=i("R7+U"),y=i("nIj0"),A=i("mFH5"),w=i("+Tre"),_=i("Cd2c"),S=i("VYu3"),k=i("s2Ay");function E(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",9),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Rb()),2&t&&(s.Ab(2),s.Kc(s.fc(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function R(t,e){1&t&&(s.Sb(0,"h1",9),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function C(t,e){1&t&&s.Nb(0,"mat-spinner",10)}function T(t,e){1&t&&(s.Sb(0,"div",34),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function I(t,e){1&t&&(s.Sb(0,"div",34),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function O(t,e){1&t&&(s.Sb(0,"mat-option",36),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function D(t,e){1&t&&(s.Sb(0,"div",34),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function M(t,e){1&t&&(s.Sb(0,"div",34),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function P(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",37),s.Sb(1,"div",38),s.Sb(2,"div",39),s.Sb(3,"span",40),s.Jc(4),s.ec(5,"translate"),s.Rb(),s.Sb(6,"mat-form-field",18),s.Sb(7,"input",41,42),s.Zb("focus",(function(){return s.xc(i),s.dc(2).isTextFocused=!1}))("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationMail.message.en.subject=t})),s.Rb(),s.Rb(),s.Rb(),s.Sb(9,"div",43),s.Jc(10),s.ec(11,"translate"),s.Rb(),s.Sb(12,"button",44),s.Zb("click",(function(){s.xc(i);var t=s.dc(2);return t.showTags=!t.showTags})),s.Jc(13),s.ec(14,"translate"),s.ec(15,"translate"),s.Rb(),s.Sb(16,"mat-form-field",18),s.Sb(17,"textarea",45,46),s.Zb("focus",(function(){return s.xc(i),s.dc(2).isTextFocused=!0}))("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationMail.message.en.text=t})),s.Jc(19," "),s.Rb(),s.Rb(),s.Rb(),s.Sb(20,"div"),s.Sb(21,"app-tag-bar",47),s.Zb("addedTag",(function(t){s.xc(i);var e=s.tc(8),n=s.tc(18);return s.dc(2).addTag(e,n,"en",t)})),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(4),s.Lc("",s.fc(5,6,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT")," :"),s.Ab(3),s.kc("ngModel",n.applicationMail.message.en.subject),s.Ab(3),s.Lc(" ",s.fc(11,8,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),s.Ab(3),s.Lc(" ",n.showTags?s.fc(14,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):s.fc(15,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),s.Ab(4),s.kc("ngModel",n.applicationMail.message.en.text),s.Ab(3),s.kc("@tagsOpenClose",n.showTags?"open":"closed")}}function x(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",37),s.Sb(1,"div",38),s.Sb(2,"div",39),s.Sb(3,"span",40),s.Jc(4),s.ec(5,"translate"),s.Rb(),s.Sb(6,"mat-form-field",18),s.Sb(7,"input",41,48),s.Zb("focus",(function(){return s.xc(i),s.dc(2).isTextFocused=!1}))("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationMail.message.cs.subject=t})),s.Rb(),s.Rb(),s.Rb(),s.Sb(9,"div",43),s.Jc(10),s.ec(11,"translate"),s.Rb(),s.Sb(12,"button",44),s.Zb("click",(function(){s.xc(i);var t=s.dc(2);return t.showTags=!t.showTags})),s.Jc(13),s.ec(14,"translate"),s.ec(15,"translate"),s.Rb(),s.Sb(16,"mat-form-field",18),s.Sb(17,"textarea",45,49),s.Zb("focus",(function(){return s.xc(i),s.dc(2).isTextFocused=!0}))("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationMail.message.cs.text=t})),s.Jc(19," "),s.Rb(),s.Rb(),s.Rb(),s.Sb(20,"div"),s.Sb(21,"app-tag-bar",47),s.Zb("addedTag",(function(t){s.xc(i);var e=s.tc(8),n=s.tc(18);return s.dc(2).addTag(e,n,"cs",t)})),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(4),s.Lc("",s.fc(5,6,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT")," :"),s.Ab(3),s.kc("ngModel",n.applicationMail.message.cs.subject),s.Ab(3),s.Lc(" ",s.fc(11,8,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),s.Ab(3),s.Lc(" ",n.showTags?s.fc(14,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):s.fc(15,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),s.Ab(4),s.kc("ngModel",n.applicationMail.message.cs.text),s.Ab(3),s.kc("@tagsOpenClose",n.showTags?"open":"closed")}}function N(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",11),s.Sb(1,"div"),s.Sb(2,"app-alert",12),s.Jc(3),s.ec(4,"translate"),s.Rb(),s.Rb(),s.Sb(5,"mat-tab-group",13),s.Sb(6,"mat-tab",14),s.ec(7,"translate"),s.Sb(8,"div",15),s.Sb(9,"span",16),s.Jc(10),s.ec(11,"translate"),s.Rb(),s.Sb(12,"div",17),s.Sb(13,"mat-form-field",18),s.Sb(14,"mat-select",19),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().applicationMail.mailType=t}))("selectionChange",(function(){return s.xc(i),s.dc().notificationExist()})),s.Sb(15,"mat-option",20),s.Jc(16),s.ec(17,"translate"),s.Rb(),s.Sb(18,"mat-option",21),s.Jc(19),s.ec(20,"translate"),s.Rb(),s.Sb(21,"mat-option",22),s.Jc(22),s.ec(23,"translate"),s.Rb(),s.Sb(24,"mat-option",23),s.Jc(25),s.ec(26,"translate"),s.Rb(),s.Sb(27,"mat-option",24),s.Jc(28),s.ec(29,"translate"),s.Rb(),s.Sb(30,"mat-option",25),s.Jc(31),s.ec(32,"translate"),s.Rb(),s.Sb(33,"mat-option",26),s.Jc(34),s.ec(35,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Rb(),s.Rb(),s.Sb(36,"div",27),s.Nb(37,"span",28),s.Hc(38,T,3,3,"div",29),s.Hc(39,I,3,3,"div",29),s.Rb(),s.Sb(40,"div",15),s.Sb(41,"span",30),s.Jc(42),s.ec(43,"translate"),s.Rb(),s.Sb(44,"div",17),s.Sb(45,"mat-form-field",18),s.Sb(46,"mat-select",19),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().applicationMail.appType=t}))("selectionChange",(function(){return s.xc(i),s.dc().notificationExist()})),s.Sb(47,"mat-option",31),s.Jc(48),s.ec(49,"translate"),s.Rb(),s.Hc(50,O,3,3,"mat-option",32),s.Rb(),s.Rb(),s.Rb(),s.Rb(),s.Sb(51,"div",27),s.Nb(52,"span",28),s.Hc(53,D,3,3,"div",29),s.Hc(54,M,3,3,"div",29),s.Rb(),s.Sb(55,"div",15),s.Sb(56,"span",30),s.Jc(57),s.ec(58,"translate"),s.Rb(),s.Sb(59,"div",17),s.Sb(60,"mat-checkbox",33),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().applicationMail.send=t})),s.Rb(),s.Rb(),s.Rb(),s.Sb(61,"div",27),s.Nb(62,"span",28),s.Sb(63,"div",34),s.Jc(64),s.ec(65,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Sb(66,"mat-tab",14),s.ec(67,"translate"),s.Hc(68,P,22,14,"ng-template",35),s.Rb(),s.Sb(69,"mat-tab",14),s.ec(70,"translate"),s.Hc(71,x,22,14,"ng-template",35),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(1),s.kc("@openClose",n.invalidNotification?"open":"closed"),s.Ab(2),s.Kc(s.fc(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),s.Ab(3),s.lc("label",s.fc(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),s.Ab(4),s.Lc("",s.fc(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),s.Ab(4),s.kc("ngModel",n.applicationMail.mailType)("disabled",!n.data.createMailNotification),s.Ab(2),s.Lc(" ",s.fc(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),s.Ab(3),s.Lc(" ",s.fc(20,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),s.Ab(3),s.Lc(" ",s.fc(23,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),s.Ab(3),s.Lc(" ",s.fc(26,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),s.Ab(3),s.Lc(" ",s.fc(29,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),s.Ab(3),s.Lc(" ",s.fc(32,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),s.Ab(3),s.Lc(" ",s.fc(35,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),s.Ab(4),s.kc("ngIf",!n.data.createMailNotification),s.Ab(1),s.kc("ngIf",n.data.createMailNotification),s.Ab(3),s.Lc("",s.fc(43,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),s.Ab(4),s.kc("ngModel",n.applicationMail.appType)("disabled",!n.data.createMailNotification),s.Ab(2),s.Lc(" ",s.fc(49,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),s.Ab(2),s.kc("ngIf","USER_INVITE"!==n.applicationMail.mailType),s.Ab(3),s.kc("ngIf",!n.data.createMailNotification),s.Ab(1),s.kc("ngIf",n.data.createMailNotification),s.Ab(3),s.Lc("",s.fc(58,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),s.Ab(3),s.kc("ngModel",n.applicationMail.send),s.Ab(4),s.Lc(" ",s.fc(65,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),s.Ab(2),s.lc("label",s.fc(67,55,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_EN")),s.Ab(3),s.lc("label",s.fc(70,57,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_CS"))}}function L(t,e){if(1&t){var i=s.Tb();s.Sb(0,"button",50),s.Zb("click",(function(){return s.xc(i),s.dc().create()})),s.Jc(1),s.ec(2,"translate"),s.Rb()}if(2&t){var n=s.dc();s.kc("disabled",n.invalidNotification||n.loading),s.Ab(1),s.Lc(" ",s.fc(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function F(t,e){if(1&t){var i=s.Tb();s.Sb(0,"button",50),s.Zb("click",(function(){return s.xc(i),s.dc().save()})),s.Jc(1),s.ec(2,"translate"),s.Rb()}if(2&t){var n=s.dc();s.kc("disabled",n.loading||!n.editAuth),s.Ab(1),s.Lc(" ",s.fc(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}var z=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.registrarService=i,this.data=n,this.authResolver=r,this.groupsService=a,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.language="en",this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe((function(e){t.editAuth=t.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"}]))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"create",value:function(){var t=this;this.notificationExist(),this.invalidNotification||(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1})):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1})))}},{key:"save",value:function(){var t=this;this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"addTag",value:function(t,e,i,n){var r,a=(r=this.isTextFocused?e:t).selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,a)+n+this.applicationMail.message[i].text.substring(a):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,a)+n+this.applicationMail.message[i].subject.substring(a),r.focus()}},{key:"notificationExist",value:function(){var t,e=d(this.data.applicationMails);try{for(e.s();!(t=e.n()).done;){var i=t.value;if(i.mailType===this.applicationMail.mailType&&i.appType===this.applicationMail.appType)return void(this.invalidNotification=!0)}}catch(n){e.e(n)}finally{e.f()}this.invalidNotification=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(a.l),s.Mb(n.a),s.Mb(o.h),s.Mb(a.h))},t.\u0275cmp=s.Gb({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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","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"],["matTabContent",""],["value","EXTENSION"],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],[1,"font-weight-bold","pr-2"],["matInput","",3,"ngModel","focus","ngModelChange"],["enInput",""],[1,"font-weight-bold"],["mat-flat-button","",3,"click"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["enTextarea",""],[3,"addedTag"],["csInput",""],["csTextarea",""],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(s.Sb(0,"div"),s.Sb(1,"div",0),s.Hc(2,E,4,3,"div",1),s.Hc(3,R,3,3,"ng-template",null,2,s.Ic),s.Hc(5,C,1,0,"mat-spinner",3),s.Hc(6,N,72,59,"div",4),s.Sb(7,"div",5),s.Sb(8,"button",6),s.Zb("click",(function(){return e.cancel()})),s.Jc(9),s.ec(10,"translate"),s.Rb(),s.Hc(11,L,3,4,"button",7),s.Sb(12,"div",8),s.ec(13,"translate"),s.Hc(14,F,3,4,"button",7),s.Rb(),s.Rb(),s.Rb(),s.Rb()),2&t){var i=s.tc(4);s.Db("",e.theme," h-100"),s.Ab(2),s.kc("ngIf",e.data.createMailNotification)("ngIfElse",i),s.Ab(3),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),s.Ab(2),s.kc("ngIf",e.data.createMailNotification),s.Ab(1),s.lc("matTooltip",s.fc(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),s.kc("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),s.Ab(2),s.kc("ngIf",!e.data.createMailNotification)}},directives:[c.t,n.c,u.b,l.a,n.j,h.c,n.g,f.a,p.c,p.a,b.c,v.a,y.r,y.u,A.n,w.a,p.b,_.b,y.c,S.a],pipes:[k.d],styles:[""],data:{animation:[r.h,r.c]}}),t}()},"0XDM":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),r=i("PBFl"),a=i("Y2X+"),o=i("bFHC"),s=i("s2Ay"),c=function(){var t=function(){function t(){g(this,t),this.refresh=new n.o}return m(t,[{key:"onClickbutton",value:function(t){this.refresh.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(n.Sb(0,"button",0),n.Zb("click",(function(t){return e.onClickbutton(t)})),n.ec(1,"translate"),n.Nb(2,"mat-icon",1),n.Rb()),2&t&&(n.lc("matTooltip",n.fc(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.kc("disabled",e.disabled),n.Ab(2),n.lc("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[r.b,a.a,o.a],pipes:[s.d],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t}()},"1Gb8":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),r=i("s2Ay"),a=function(){var t=function(){function t(e){g(this,t),this.translateService=e,this.returnData=""}return m(t,[{key:"transform",value:function(t){var e=this;switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe((function(t){e.returnData=t}));break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_HIDDEN").subscribe((function(t){e.returnData=t}));break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe((function(t){e.returnData=t}));break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe((function(t){e.returnData=t}));break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_SHOW").subscribe((function(t){e.returnData=t}));break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe((function(t){e.returnData=t}));break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe((function(t){e.returnData=t}));break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe((function(t){e.returnData=t}));break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe((function(t){e.returnData=t}));break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe((function(t){e.returnData=t}));break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe((function(t){e.returnData=t}));break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe((function(t){e.returnData=t}));break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe((function(t){e.returnData=t}));break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe((function(t){e.returnData=t}));break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe((function(t){e.returnData=t}));break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe((function(t){e.returnData=t}));break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe((function(t){e.returnData=t}));break;default:return t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.e))},t.\u0275pipe=n.Lb({name:"applicationFormWidgetDescription",type:t,pure:!0}),t}()},"1MAX":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("dUuy"),r=i("i9P/"),a=i("sWLk"),o=i("qEfY"),s=i("eY+9"),c=i("/vgl"),u=i("X0qr"),l=function(t){if(t&&"function"==typeof t[o.a])return l=t,function(t){var e=l[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(n.a)(t);if(Object(c.a)(t))return i=t,function(t){return i.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,r.a),t};if(t&&"function"==typeof t[a.a])return e=t,function(t){for(var i=e[a.a]();;){var n=i.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof i.return&&t.add((function(){i.return&&i.return()})),t};var e,i,l,h=Object(u.a)(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},"22FB":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62"),r=i("8clQ"),a=i("LAw4"),o=i("s2Ay"),s=function(){var t=function t(){g(this,t),this.memberSelected=new n.o,this.memberFullNameFunction=function(t){return Object(r.w)(t.user)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.memberSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.members)("searchFunction",e.memberFullNameFunction)("mainTextFunction",e.memberFullNameFunction)("selectPlaceholder",n.fc(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",n.fc(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",n.fc(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[a.a],pipes:[o.d],styles:[""]}),t}()},"23RZ":function(t,e,i){"use strict";i.d(e,"a",(function(){return U}));var n=i("EM62"),r=i("iAde"),a=i("cePI"),o=i("FlRo"),s=i("cqs0"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("Ds80"),p=i("sEIs"),b=i("TQS+"),v=i("FcRk"),y=i("s2Ay"),A=i("dhrr"),w=i("aea8");function _(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",22),n.Sb(1,"mat-checkbox",23),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function S(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",24),n.Sb(1,"mat-checkbox",25),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.itemSelectionToggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function k(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function E(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function R(t,e){1&t&&n.Nb(0,"th",22)}function C(t,e){if(1&t&&(n.Sb(0,"td",27),n.Nb(1,"perun-web-apps-recently-viewed-icon",28),n.Rb()),2&t){var i=e.$implicit,r=n.dc();n.Ab(1),n.kc("recentIds",r.recentIds)("id",i.id)}}function T(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function I(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.name)}}function O(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function D(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.vo.name)}}function M(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function P(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.facility.name)}}function x(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function N(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.ec(2,"resourceTagsToString"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.resourceTags))}}function L(t,e){1&t&&(n.Sb(0,"th",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function F(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.description)}}function z(t,e){1&t&&n.Nb(0,"tr",29)}var H=function(t){return[t]};function B(t,e){if(1&t&&(n.Nb(0,"tr",30),n.ec(1,"getResourceRoute"),n.ec(2,"getResourceRoute")),2&t){var i=e.$implicit,r=n.dc();n.Eb("cursor-pointer",!r.disableRouting)("disable-outline",r.disableRouting),n.kc("routerLink",r.disableRouting?null:n.gc(1,6,i,r.routingVo))("perunWebAppsMiddleClickRouterLink",n.pc(12,H,r.disableRouting?null:n.gc(2,9,i,r.routingVo)))}}function j(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var U=function(){var t=function(){function t(e,i){g(this,t),this.guiAuthResolver=e,this.tableCheckbox=i,this.resources=[],this.selection=new s.c(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","facility","tags","description"],this.pageSizeOptions=c.a,this.page=new n.o,this.allSelected=new n.o,this.removeAuth=!1,this.addAuth=!1}return m(t,[{key:"ngOnChanges",value:function(t){this.guiAuthResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new o.o(this.resources),this.setDataSource(),this.dataSource.filter=this.filterValue,this.setAuth()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":if(!t.resourceTags)return t[e];var n="";return t.resourceTags.forEach((function(t){n=n.concat(t.tagName)})),n;default:return t[e]}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){var t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1),this.setAuth()}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"setAuth",value:function(){var t=this;this.removeAuth=this.selection.selected.reduce((function(e,i){return e&&t.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",[i,t.groupToResource])}),!0),this.addAuth=this.selection.selected.reduce((function(e,i){return e&&t.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[i,t.groupToResource])}),!0)}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAuth()}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds"},outputs:{page:"page",allSelected:"allSelected"},features:[n.yb],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","facility"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,_,2,3,"th",6),n.Hc(7,S,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,k,3,3,"th",9),n.Hc(10,E,2,1,"td",10),n.Pb(),n.Qb(11,11),n.Hc(12,R,1,0,"th",6),n.Hc(13,C,2,2,"td",12),n.Pb(),n.Qb(14,13),n.Hc(15,T,3,3,"th",9),n.Hc(16,I,2,1,"td",12),n.Pb(),n.Qb(17,14),n.Hc(18,O,3,3,"th",9),n.Hc(19,D,2,1,"td",12),n.Pb(),n.Qb(20,15),n.Hc(21,M,3,3,"th",9),n.Hc(22,P,2,1,"td",12),n.Pb(),n.Qb(23,16),n.Hc(24,x,3,3,"th",9),n.Hc(25,N,3,3,"td",12),n.Pb(),n.Qb(26,17),n.Hc(27,L,3,3,"th",9),n.Hc(28,F,2,1,"td",12),n.Pb(),n.Hc(29,z,1,0,"tr",18),n.Hc(30,B,3,14,"tr",19),n.Rb(),n.Rb(),n.Sb(31,"mat-paginator",20),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(32,j,3,3,"app-alert",21),n.Hc(33,G,3,3,"app-alert",21)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(25),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.resources.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.Ab(1),n.kc("ngIf",0===e.resources.length))},directives:[l.a,o.n,a.a,o.c,o.i,o.b,o.k,o.m,r.a,h.t,o.h,d.a,o.a,a.b,f.a,o.j,o.l,p.g,b.c,v.a],pipes:[y.d,A.a,w.a],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},"25CY":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"29Wa":function(t,e,i){"use strict";i.d(e,"a",(function(){return tt})),i.d(e,"b",(function(){return j})),i.d(e,"c",(function(){return et})),i.d(e,"d",(function(){return U})),i.d(e,"e",(function(){return it})),i.d(e,"f",(function(){return q})),i.d(e,"g",(function(){return J})),i.d(e,"h",(function(){return W})),i.d(e,"i",(function(){return Z})),i.d(e,"j",(function(){return Y}));var n=i("TKFd"),r=i("2kYt"),o=i("EM62"),c=i("mFH5"),u=i("5XID"),l=i("ZTXN"),h=i("g6G6"),f=i("KTx3"),p=i("jIqt"),b=i("kuMc"),v=i("J+dc"),y=i("f7+R"),A=i("5lCh"),w=i("E5oP"),_=i("cZZj"),S=["underline"],k=["connectionContainer"],E=["inputContainer"],R=["label"];function C(t,e){1&t&&(o.Qb(0),o.Sb(1,"div",14),o.Nb(2,"div",15),o.Nb(3,"div",16),o.Nb(4,"div",17),o.Rb(),o.Sb(5,"div",18),o.Nb(6,"div",15),o.Nb(7,"div",16),o.Nb(8,"div",17),o.Rb(),o.Pb())}function T(t,e){1&t&&(o.Sb(0,"div",19),o.ic(1,1),o.Rb())}function I(t,e){if(1&t&&(o.Qb(0),o.ic(1,2),o.Sb(2,"span"),o.Jc(3),o.Rb(),o.Pb()),2&t){var i=o.dc(2);o.Ab(3),o.Kc(i._control.placeholder)}}function O(t,e){1&t&&o.ic(0,3,["*ngSwitchCase","true"])}function D(t,e){1&t&&(o.Sb(0,"span",23),o.Jc(1," *"),o.Rb())}function M(t,e){if(1&t){var i=o.Tb();o.Sb(0,"label",20,21),o.Zb("cdkObserveContent",(function(){return o.xc(i),o.dc().updateOutlineGap()})),o.Hc(2,I,4,1,"ng-container",12),o.Hc(3,O,1,0,"ng-content",12),o.Hc(4,D,2,0,"span",22),o.Rb()}if(2&t){var n=o.dc();o.Eb("mat-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),o.kc("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),o.Bb("for",n._control.id)("aria-owns",n._control.id),o.Ab(2),o.kc("ngSwitchCase",!1),o.Ab(1),o.kc("ngSwitchCase",!0),o.Ab(1),o.kc("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function P(t,e){1&t&&(o.Sb(0,"div",24),o.ic(1,4),o.Rb())}function x(t,e){if(1&t&&(o.Sb(0,"div",25,26),o.Nb(2,"span",27),o.Rb()),2&t){var i=o.dc();o.Ab(2),o.Eb("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function N(t,e){if(1&t&&(o.Sb(0,"div"),o.ic(1,5),o.Rb()),2&t){var i=o.dc();o.kc("@transitionMessages",i._subscriptAnimationState)}}function L(t,e){if(1&t&&(o.Sb(0,"div",31),o.Jc(1),o.Rb()),2&t){var i=o.dc(2);o.kc("id",i._hintLabelId),o.Ab(1),o.Kc(i.hintLabel)}}function F(t,e){if(1&t&&(o.Sb(0,"div",28),o.Hc(1,L,2,2,"div",29),o.ic(2,6),o.Nb(3,"div",30),o.ic(4,7),o.Rb()),2&t){var i=o.dc();o.kc("@transitionMessages",i._subscriptAnimationState),o.Ab(1),o.kc("ngIf",i.hintLabel)}}var z=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],H=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],B=0,j=function(){var t=function t(){g(this,t),this.id="mat-error-"+B++};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o.Bb("id",e.id)},inputs:{id:"id"}}),t}(),G={transitionMessages:Object(y.n)("transitionMessages",[Object(y.k)("enter",Object(y.l)({opacity:1,transform:"translateY(0%)"})),Object(y.m)("void => enter",[Object(y.l)({opacity:0,transform:"translateY(-100%)"}),Object(y.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},U=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t}),t}();function K(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var V=0,q=function(){var t=function t(){g(this,t),this.align="start",this.id="mat-hint-"+V++};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.Bb("id",e.id)("align",null),o.Eb("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t}(),J=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-label"]]}),t}(),W=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["mat-placeholder"]]}),t}(),Z=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matPrefix",""]]}),t}(),Y=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","matSuffix",""]]}),t}(),X=0,Q=Object(c.y)((function t(e){g(this,t),this._elementRef=e}),"primary"),$=new o.r("MAT_FORM_FIELD_DEFAULT_OPTIONS"),tt=new o.r("MatFormField"),et=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s,c,u){var h;return g(this,i),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=n,h._dir=a,h._defaults=o,h._platform=s,h._ngZone=c,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new l.a,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+X++,h._labelId="mat-form-field-label-"+X++,h._labelOptions=r||{},h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==u,h.appearance=o&&o.appearance?o.appearance:"legacy",h._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,h}return m(i,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(Object(p.a)(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Object(b.a)(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Object(b.a)(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object(h.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Object(p.a)(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Object(p.a)(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Object(b.a)(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(f.a)(this._label.nativeElement,"transitionend").pipe(Object(v.a)(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var t,e,i=this;this._hintChildren&&this._hintChildren.forEach((function(n){if("start"===n.align){if(t||i.hintLabel)throw K("start");t=n}else if("end"===n.align){if(e)throw K("end");e=n}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,i=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,i=0,n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),a=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=n.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,c=this._getStartEnd(o),u=this._getStartEnd(t.children[0].getBoundingClientRect()),l=0,h=d(t.children);try{for(h.s();!(s=h.n()).done;){l+=s.value.offsetWidth}}catch(g){h.e(g)}finally{h.f()}e=Math.abs(u-c)-5,i=l>0?.75*l+10:0}for(var f=0;f0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+k(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?"".concat(e).concat(i):e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+k(n));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+k(n));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),i}(E);return t.\u0275fac=function(e){return new(e||t)(n.Wb(p),n.Wb(C,8))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this))._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return m(i,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=_(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+k(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+k(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),i}(E);return t.\u0275fac=function(e){return new(e||t)(n.Wb(p),n.Wb(C,8))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t}(),O=function(){var t=function(){function t(e,i){var r=this;g(this,t),this._subject=new n.o,this._urlChangeListeners=[],this._platformStrategy=e;var a=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=S(M(a)),this._platformStrategy.onPopState((function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})}))}return m(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+k(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,M(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+k(e)),i)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+k(e)),i)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(i){return i(t,e)}))}},{key:"subscribe",value:function(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Wb(E),n.Wb(p))},t.normalizeQueryParams=k,t.joinWithSlash=_,t.stripTrailingSlash=S,t.\u0275prov=Object(n.Ib)({factory:D,token:t,providedIn:"root"}),t}();function D(){return new O(Object(n.Wb)(E),Object(n.Wb)(p))}function M(t){return t.replace(/\/index.html$/,"")}var P={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},x=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),N=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),L=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),F=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),z=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),H=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function B(t,e){return J(Object(n.kb)(t)[n.bb.DateFormat],e)}function j(t,e){return J(Object(n.kb)(t)[n.bb.TimeFormat],e)}function G(t,e){return J(Object(n.kb)(t)[n.bb.DateTimeFormat],e)}function U(t,e){var i=Object(n.kb)(t),r=i[n.bb.NumberSymbols][e];if(void 0===r){if(e===H.CurrencyDecimal)return i[n.bb.NumberSymbols][H.Decimal];if(e===H.CurrencyGroup)return i[n.bb.NumberSymbols][H.Group]}return r}function K(t,e){return Object(n.kb)(t)[n.bb.NumberFormats][e]}var V=n.nb;function q(t){if(!t[n.bb.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[n.bb.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function J(t,e){for(var i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function W(t){var e=r(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var Z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Y={},X=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Q=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),$=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),tt=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function et(t,e,i,a){var o=function(t){if(lt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,i=parseFloat(t);if(!isNaN(t-i))return new Date(i);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var n=r(t.split("-").map((function(t){return+t})),3),a=n[0],o=n[1],s=n[2];return new Date(a,o-1,s)}if(e=t.match(Z))return function(t){var e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,a=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var o=Number(t[4]||0)-i,s=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return a.call(e,o,s,c,u),e}(e)}var c=new Date(t);if(!lt(c))throw new Error('Unable to convert "'.concat(t,'" into a date'));return c}(t);e=function t(e,i){var r=function(t){return Object(n.kb)(t)[n.bb.LocaleId]}(e);if(Y[r]=Y[r]||{},Y[r][i])return Y[r][i];var a="";switch(i){case"shortDate":a=B(e,z.Short);break;case"mediumDate":a=B(e,z.Medium);break;case"longDate":a=B(e,z.Long);break;case"fullDate":a=B(e,z.Full);break;case"shortTime":a=j(e,z.Short);break;case"mediumTime":a=j(e,z.Medium);break;case"longTime":a=j(e,z.Long);break;case"fullTime":a=j(e,z.Full);break;case"short":var o=t(e,"shortTime"),s=t(e,"shortDate");a=it(G(e,z.Short),[o,s]);break;case"medium":var c=t(e,"mediumTime"),u=t(e,"mediumDate");a=it(G(e,z.Medium),[c,u]);break;case"long":var l=t(e,"longTime"),h=t(e,"longDate");a=it(G(e,z.Long),[l,h]);break;case"full":var d=t(e,"fullTime"),f=t(e,"fullDate");a=it(G(e,z.Full),[d,f])}return a&&(Y[r][i]=a),a}(i,e)||e;for(var s,c=[];e;){if(!(s=X.exec(e))){c.push(e);break}var u=(c=c.concat(s.slice(1))).pop();if(!u)break;e=u}var l=o.getTimezoneOffset();a&&(l=ut(a,l),o=function(t,e,i){var n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(ut(e,n)-n))}(o,a));var h="";return c.forEach((function(t){var e=function(t){if(ct[t])return ct[t];var e;switch(t){case"G":case"GG":case"GGG":e=at(tt.Eras,F.Abbreviated);break;case"GGGG":e=at(tt.Eras,F.Wide);break;case"GGGGG":e=at(tt.Eras,F.Narrow);break;case"y":e=rt($.FullYear,1,0,!1,!0);break;case"yy":e=rt($.FullYear,2,0,!0,!0);break;case"yyy":e=rt($.FullYear,3,0,!1,!0);break;case"yyyy":e=rt($.FullYear,4,0,!1,!0);break;case"M":case"L":e=rt($.Month,1,1);break;case"MM":case"LL":e=rt($.Month,2,1);break;case"MMM":e=at(tt.Months,F.Abbreviated);break;case"MMMM":e=at(tt.Months,F.Wide);break;case"MMMMM":e=at(tt.Months,F.Narrow);break;case"LLL":e=at(tt.Months,F.Abbreviated,L.Standalone);break;case"LLLL":e=at(tt.Months,F.Wide,L.Standalone);break;case"LLLLL":e=at(tt.Months,F.Narrow,L.Standalone);break;case"w":e=st(1);break;case"ww":e=st(2);break;case"W":e=st(1,!0);break;case"d":e=rt($.Date,1);break;case"dd":e=rt($.Date,2);break;case"E":case"EE":case"EEE":e=at(tt.Days,F.Abbreviated);break;case"EEEE":e=at(tt.Days,F.Wide);break;case"EEEEE":e=at(tt.Days,F.Narrow);break;case"EEEEEE":e=at(tt.Days,F.Short);break;case"a":case"aa":case"aaa":e=at(tt.DayPeriods,F.Abbreviated);break;case"aaaa":e=at(tt.DayPeriods,F.Wide);break;case"aaaaa":e=at(tt.DayPeriods,F.Narrow);break;case"b":case"bb":case"bbb":e=at(tt.DayPeriods,F.Abbreviated,L.Standalone,!0);break;case"bbbb":e=at(tt.DayPeriods,F.Wide,L.Standalone,!0);break;case"bbbbb":e=at(tt.DayPeriods,F.Narrow,L.Standalone,!0);break;case"B":case"BB":case"BBB":e=at(tt.DayPeriods,F.Abbreviated,L.Format,!0);break;case"BBBB":e=at(tt.DayPeriods,F.Wide,L.Format,!0);break;case"BBBBB":e=at(tt.DayPeriods,F.Narrow,L.Format,!0);break;case"h":e=rt($.Hours,1,-12);break;case"hh":e=rt($.Hours,2,-12);break;case"H":e=rt($.Hours,1);break;case"HH":e=rt($.Hours,2);break;case"m":e=rt($.Minutes,1);break;case"mm":e=rt($.Minutes,2);break;case"s":e=rt($.Seconds,1);break;case"ss":e=rt($.Seconds,2);break;case"S":e=rt($.FractionalSeconds,1);break;case"SS":e=rt($.FractionalSeconds,2);break;case"SSS":e=rt($.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=ot(Q.Short);break;case"ZZZZZ":e=ot(Q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=ot(Q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=ot(Q.Long);break;default:return null}return ct[t]=e,e}(t);h+=e?e(o,i,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),h}function it(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,i){return null!=e&&i in e?e[i]:t}))),t}function nt(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,a=i));for(var o=String(t);o.length2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s,c=function(t,e){switch(t){case $.FullYear:return e.getFullYear();case $.Month:return e.getMonth();case $.Date:return e.getDate();case $.Hours:return e.getHours();case $.Minutes:return e.getMinutes();case $.Seconds:return e.getSeconds();case $.FractionalSeconds:return e.getMilliseconds();case $.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,a);if((i>0||c>-i)&&(c+=i),t===$.Hours)0===c&&-12===i&&(c=12);else if(t===$.FractionalSeconds)return s=e,nt(c,3).substr(0,s);var u=U(o,H.MinusSign);return nt(c,e,u,n,r)}}function at(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Format,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,s){return function(t,e,i,a,o,s){switch(i){case tt.Months:return function(t,e,i){var r=Object(n.kb)(t),a=J([r[n.bb.MonthsFormat],r[n.bb.MonthsStandalone]],e);return J(a,i)}(e,o,a)[t.getMonth()];case tt.Days:return function(t,e,i){var r=Object(n.kb)(t),a=J([r[n.bb.DaysFormat],r[n.bb.DaysStandalone]],e);return J(a,i)}(e,o,a)[t.getDay()];case tt.DayPeriods:var c=t.getHours(),u=t.getMinutes();if(s){var l=function(t){var e=Object(n.kb)(t);return q(e),(e[n.bb.ExtraData][2]||[]).map((function(t){return"string"==typeof t?W(t):[W(t[0]),W(t[1])]}))}(e),h=function(t,e,i){var r=Object(n.kb)(t);q(r);var a=J([r[n.bb.ExtraData][0],r[n.bb.ExtraData][1]],e)||[];return J(a,i)||[]}(e,o,a),d=l.findIndex((function(t){if(Array.isArray(t)){var e=r(t,2),i=e[0],n=e[1],a=c>=i.hours&&u>=i.minutes,o=c0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Q.Short:return(r>=0?"+":"")+nt(o,2,a)+nt(Math.abs(r%60),2,a);case Q.ShortGMT:return"GMT"+(r>=0?"+":"")+nt(o,1,a);case Q.Long:return"GMT"+(r>=0?"+":"")+nt(o,2,a)+":"+nt(Math.abs(r%60),2,a);case Q.Extended:return 0===n?"Z":(r>=0?"+":"")+nt(o,2,a)+":"+nt(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function st(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){var r,a,o,s;if(e){var c=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,u=i.getDate();r=1+Math.floor((u+c)/7)}else{var l=(s=i,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))),h=(a=l.getFullYear(),o=new Date(a,0,1).getDay(),new Date(a,0,1+(o<=4?4:11)-o)),d=l.getTime()-h.getTime();r=1+Math.round(d/6048e5)}return nt(r,t,U(n,H.MinusSign))}}var ct={};function ut(t,e){t=t.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function lt(t){return t instanceof Date&&!isNaN(t.valueOf())}var ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function dt(t,e,i,n,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",c=!1;if(isFinite(t)){var u=function(t){var e,i,n,r,a,o=Math.abs(t)+"",s=0;for((i=o.indexOf("."))>-1&&(o=o.replace(".","")),(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length),n=0;"0"===o.charAt(n);n++);if(n===(a=o.length))e=[0],i=1;else{for(a--;"0"===o.charAt(a);)a--;for(i-=n,e=[],r=0;n<=a;n++,r++)e[r]=Number(o.charAt(n))}return i>22&&(e=e.splice(0,21),s=i-1,i=1),{digits:e,exponent:s,integerLen:i}}(t);o&&(u=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(u));var l=e.minInt,h=e.minFrac,d=e.maxFrac;if(a){var f=a.match(ht);if(null===f)throw new Error(a+" is not a valid digit info");var p=f[1],g=f[3],b=f[5];null!=p&&(l=pt(p)),null!=g&&(h=pt(g)),null!=b?d=pt(b):null!=g&&h>d&&(d=h)}!function(t,e,i){if(e>i)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(i,")."));var n=t.digits,r=n.length-t.integerLen,a=Math.min(Math.max(e,r),i),o=a+t.integerLen,s=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(var c=o;c=5)if(o-1<0){for(var l=0;l>o;l--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r=d?n.pop():h=!1),e>=10?1:0}),0);f&&(n.unshift(f),t.integerLen++)}(u,h,d);var m=u.digits,v=u.integerLen,y=u.exponent,A=[];for(c=m.every((function(t){return!t}));v0?A=m.splice(v,m.length):(A=m,m=[0]);var w=[];for(m.length>=e.lgSize&&w.unshift(m.splice(-e.lgSize,m.length).join(""));m.length>e.gSize;)w.unshift(m.splice(-e.gSize,m.length).join(""));m.length&&w.unshift(m.join("")),s=w.join(U(i,n)),A.length&&(s+=U(i,r)+A.join("")),y&&(s+=U(i,H.Exponential)+"+"+y)}else s=U(i,H.Infinity);return s=t<0&&!c?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function ft(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),r=n[0],a=n[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],c=o[1]||"";i.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u-1)return r;if(r=i.getPluralCategory(t,n),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(t,'"'))}var mt=function(){var t=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this)).locale=t,n}return m(i,[{key:"getPluralCategory",value:function(t,e){switch(V(e||this.locale)(t)){case N.Zero:return"zero";case N.One:return"one";case N.Two:return"two";case N.Few:return"few";case N.Many:return"many";default:return"other"}}}]),i}(gt);return t.\u0275fac=function(e){return new(e||t)(n.Wb(n.v))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t}();function vt(t,e){e=encodeURIComponent(e);var i,n=d(t.split(";"));try{for(n.s();!(i=n.n()).done;){var a=i.value,o=a.indexOf("="),s=r(-1==o?[a,""]:[a.slice(0,o),a.slice(o+1)],2),c=s[0],u=s[1];if(c.trim()===e)return decodeURIComponent(u)}}catch(l){n.e(l)}finally{n.f()}return null}var yt=function(){var t=function(){function t(e,i,n,r){g(this,t),this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return m(t,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(n.vb)(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(i){return e._toggleClass(i,!!t[i])})))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))}},{key:"_toggleClass",value:function(t,e){var i=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?i._renderer.addClass(i._ngEl.nativeElement,t):i._renderer.removeClass(i._ngEl.nativeElement,t)}))}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(n.qb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.t),n.Mb(n.u),n.Mb(n.l),n.Mb(n.F))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),At=function(){var t=function(){function t(e){g(this,t),this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return m(t,[{key:"ngOnChanges",value:function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var i=e.get(n.y);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(i.injector)}else this._moduleRef=null;var r=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(n.j)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(r,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.Q))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[n.yb]}),t}(),wt=function(){function t(e,i,n,r){g(this,t),this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}return m(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),_t=function(){var t=function(){function t(e,i,n){g(this,t),this._viewContainer=e,this._template=i,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return m(t,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(t){var e=this,i=[];t.forEachOperation((function(t,n,r){if(null==t.previousIndex){var a=e._viewContainer.createEmbeddedView(e._template,new wt(null,e._ngForOf,-1,-1),null===r?void 0:r),o=new St(t,a);i.push(o)}else if(null==r)e._viewContainer.remove(null===n?void 0:n);else if(null!==n){var s=e._viewContainer.get(n);e._viewContainer.move(s,r);var c=new St(t,s);i.push(c)}}));for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"mediumDate",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return et(e,i,r||this.locale,n)}catch(a){throw Nt(t,a.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.v))},t.\u0275pipe=n.Lb({name:"date",type:t,pure:!0}),t}(),Vt=/#/g,qt=function(){var t=function(){function t(e){g(this,t),this._localization=e}return m(t,[{key:"transform",value:function(e,i,n){if(null==e)return"";if("object"!=typeof i||null===i)throw Nt(t,i);return i[bt(e,Object.keys(i),this._localization,n)].replace(Vt,e.toString())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(gt))},t.\u0275pipe=n.Lb({name:"i18nPlural",type:t,pure:!0}),t}(),Jt=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(e,i){if(null==e)return"";if("object"!=typeof i||"string"!=typeof e)throw Nt(t,i);return i.hasOwnProperty(e)?i[e]:i.hasOwnProperty("other")?i.other:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"i18nSelect",type:t,pure:!0}),t}(),Wt=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t){return JSON.stringify(t,null,2)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"json",type:t,pure:!1}),t}(),Zt=function(){var t=function(){function t(e){g(this,t),this.differs=e,this.keyValues=[]}return m(t,[{key:"transform",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem((function(t){e.keyValues.push({key:t.key,value:t.currentValue})})),this.keyValues.sort(i)),this.keyValues}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.u))},t.\u0275pipe=n.Lb({name:"keyvalue",type:t,pure:!1}),t}();function Yt(t,e){var i=t.key,n=e.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i1&&void 0!==arguments[1]?arguments[1]:"USD";g(this,t),this._locale=e,this._defaultCurrencyCode=i}return m(t,[{key:"transform",value:function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(te(e))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");var s=i||this._defaultCurrencyCode;"code"!==r&&(s="symbol"===r||"symbol-narrow"===r?function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",r=function(t){return Object(n.kb)(t)[n.bb.Currencies]}(i)[t]||P[t]||[],a=r[1];return"narrow"===e&&"string"==typeof a?a:r[0]||t}(s,"symbol"===r?"wide":"narrow",o):r);try{return function(t,e,i,n,r){var a=ft(K(e,x.Currency),U(e,H.MinusSign));return a.minFrac=function(t){var e,i=P[t];return i&&(e=i[2]),"number"==typeof e?e:2}(n),a.maxFrac=a.minFrac,dt(t,a,e,H.CurrencyGroup,H.CurrencyDecimal,r).replace("\xa4",i).replace("\xa4","").trim()}(ee(e),o,s,i,a)}catch(c){throw Nt(t,c.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.v),n.Mb(n.k))},t.\u0275pipe=n.Lb({name:"currency",type:t,pure:!0}),t}();function te(t){return null==t||""===t||t!=t}function ee(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}var ie=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(e,i,n){if(null==e)return e;if(!this.supports(e))throw Nt(t,e);return e.slice(i,n)}},{key:"supports",value:function(t){return"string"==typeof t||Array.isArray(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"slice",type:t,pure:!1}),t}(),ne=function(){var t=function t(){g(this,t)};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[{provide:gt,useClass:mt}]}),t}(),re="browser";function ae(t){return t===re}var oe=function(){var t=function t(){g(this,t)};return t.\u0275prov=Object(n.Ib)({token:t,providedIn:"root",factory:function(){return new se(Object(n.Wb)(f),window,Object(n.Wb)(n.n))}}),t}(),se=function(){function t(e,i,n){g(this,t),this.document=e,this.window=i,this.errorHandler=n,this.offset=function(){return[0,0]}}return m(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var t=ce(this.window.history)||ce(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(t){return!1}}}]),t}();function ce(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},"3EQ+":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("X2Q7"),a=i("EM62"),o=i("2kYt"),s=i("PBFl"),c=i("csyo"),u=i("29Wa"),l=i("Cd2c"),h=i("nIj0"),d=i("R7+U"),f=i("mFH5"),p=i("s2Ay");function b(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function v(t,e){if(1&t){var i=a.Tb();a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Sb(3,"mat-form-field",9),a.Sb(4,"mat-select",10),a.Zb("valueChange",(function(t){return a.xc(i),a.dc(2).embeddedState=t})),a.Sb(5,"mat-option",11),a.Jc(6),a.ec(7,"translate"),a.Rb(),a.Sb(8,"mat-option",12),a.Jc(9),a.ec(10,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Rb()}if(2&t){var n=a.dc(2);a.Ab(1),a.Lc(" ",a.fc(2,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),": "),a.Ab(3),a.kc("value",n.embeddedState),a.Ab(2),a.Kc(a.fc(7,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),a.Ab(3),a.Kc(a.fc(10,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function y(t,e){if(1&t){var i=a.Tb();a.Sb(0,"div",7),a.Sb(1,"div"),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"mat-form-field"),a.Sb(5,"input",8),a.Zb("ngModelChange",(function(t){return a.xc(i),a.dc().moduleName=t})),a.Rb(),a.Rb(),a.Sb(6,"div"),a.Jc(7),a.ec(8,"translate"),a.Rb(),a.Sb(9,"mat-form-field",9),a.Sb(10,"mat-select",10),a.Zb("valueChange",(function(t){return a.xc(i),a.dc().initialState=t})),a.Sb(11,"mat-option",11),a.Jc(12),a.ec(13,"translate"),a.Rb(),a.Sb(14,"mat-option",12),a.Jc(15),a.ec(16,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Sb(17,"div"),a.Jc(18),a.ec(19,"translate"),a.Rb(),a.Sb(20,"mat-form-field",9),a.Sb(21,"mat-select",10),a.Zb("valueChange",(function(t){return a.xc(i),a.dc().extensionState=t})),a.Sb(22,"mat-option",11),a.Jc(23),a.ec(24,"translate"),a.Rb(),a.Sb(25,"mat-option",12),a.Jc(26),a.ec(27,"translate"),a.Rb(),a.Rb(),a.Rb(),a.Hc(28,v,11,10,"div",13),a.Rb()}if(2&t){var n=a.dc();a.Ab(2),a.Kc(a.fc(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),a.Ab(3),a.kc("ngModel",n.moduleName),a.Ab(2),a.Lc(" ",a.fc(8,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),": "),a.Ab(3),a.kc("value",n.initialState),a.Ab(2),a.Kc(a.fc(13,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),a.Ab(3),a.Kc(a.fc(16,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),a.Ab(3),a.Lc(" ",a.fc(19,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),": "),a.Ab(3),a.kc("value",n.extensionState),a.Ab(2),a.Kc(a.fc(24,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),a.Ab(3),a.Kc(a.fc(27,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),a.Ab(2),a.kc("ngIf","group"===n.entity)}}var A=function(){var t=function(){function t(e,i,n){g(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){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}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;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((function(e){t.dialogRef.close(e)}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(r.l))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,b,1,0,"mat-spinner",1),a.Hc(5,y,29,25,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.submit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.j,o.t,n.c,s.b,c.c,n.g,u.c,l.b,h.c,h.r,h.u,d.a,f.n],pipes:[p.d],styles:[""]}),t}()},"3Uyd":function(t,e,i){"use strict";i.d(e,"a",(function(){return st})),i.d(e,"b",(function(){return ut})),i.d(e,"c",(function(){return it})),i.d(e,"d",(function(){return nt})),i.d(e,"e",(function(){return $})),i.d(e,"f",(function(){return at})),i.d(e,"g",(function(){return rt})),i.d(e,"h",(function(){return ot}));var r,o,c,u=i("EM62"),l=i("5XID"),d=i("ZTXN"),f=i("bwdy"),p=i("cqs0"),b=0,v=((c=function(){function t(){g(this,t),this._stateChanges=new d.a,this._openCloseAllActions=new d.a,this.id="cdk-accordion-"+b++,this._multi=!1}return m(t,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(t){this.multi&&this._openCloseAllActions.next(t)}},{key:"multi",get:function(){return this._multi},set:function(t){this._multi=Object(l.c)(t)}}]),t}()).\u0275fac=function(t){return new(t||c)},c.\u0275dir=u.Hb({type:c,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[u.yb]}),c),y=0,A=((o=function(){function t(e,i,n){var r=this;g(this,t),this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=n,this._openCloseAllSubscription=f.a.EMPTY,this.closed=new u.o,this.opened=new u.o,this.destroyed=new u.o,this.expandedChange=new u.o,this.id="cdk-accordion-child-"+y++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen((function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return m(t,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))}},{key:"expanded",get:function(){return this._expanded},set:function(t){t=Object(l.c)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(l.c)(t)}}]),t}()).\u0275fac=function(t){return new(t||o)(u.Mb(v,12),u.Mb(u.h),u.Mb(p.d))},o.\u0275dir=u.Hb({type:o,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[u.zb([{provide:v,useValue:void 0}])]}),o),w=((r=function t(){g(this,t)}).\u0275mod=u.Kb({type:r}),r.\u0275inj=u.Jb({factory:function(t){return new(t||r)}}),r),_=i("Sv/w"),S=i("2kYt"),k=i("sg/T"),E=i("fAiE"),R=i("Ohay"),C=i("jIqt"),T=i("xVbo"),I=i("J+dc"),O=i("6Oco"),D=i("g6G6"),M=i("f7+R"),P=i("5lCh"),x=["body"];function N(t,e){}var L=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],F=["mat-expansion-panel-header","*","mat-action-row"],z=function(t,e){return{collapsedHeight:t,expandedHeight:e}},H=function(t,e){return{value:t,params:e}};function B(t,e){if(1&t&&u.Nb(0,"span",2),2&t){var i=u.dc();u.kc("@indicatorRotate",i._getExpandedState())}}var j,G,U,K,V,q,J,W,Z=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Y=["mat-panel-title","mat-panel-description","*"],X=new u.r("MAT_ACCORDION"),Q={indicatorRotate:Object(M.n)("indicatorRotate",[Object(M.k)("collapsed, void",Object(M.l)({transform:"rotate(0deg)"})),Object(M.k)("expanded",Object(M.l)({transform:"rotate(180deg)"})),Object(M.m)("expanded <=> collapsed, void => collapsed",Object(M.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:Object(M.n)("expansionHeight",[Object(M.k)("collapsed, void",Object(M.l)({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),Object(M.k)("expanded",Object(M.l)({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),Object(M.m)("expanded <=> collapsed, void => collapsed",Object(M.g)([Object(M.i)("@indicatorRotate",Object(M.f)(),{optional:!0}),Object(M.e)("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:Object(M.n)("bodyExpansion",[Object(M.k)("collapsed, void",Object(M.l)({height:"0px",visibility:"hidden"})),Object(M.k)("expanded",Object(M.l)({height:"*",visibility:"visible"})),Object(M.m)("expanded <=> collapsed, void => collapsed",Object(M.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},$=((j=function t(e){g(this,t),this._template=e}).\u0275fac=function(t){return new(t||j)(u.Mb(u.M))},j.\u0275dir=u.Hb({type:j,selectors:[["ng-template","matExpansionPanelContent",""]]}),j),tt=0,et=new u.r("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),it=((J=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s,c){var l;return g(this,i),(l=e.call(this,t,n,r))._viewContainerRef=a,l._animationMode=s,l._hideToggle=!1,l.afterExpand=new u.o,l.afterCollapse=new u.o,l._inputChanges=new d.a,l._headerId="mat-expansion-panel-header-"+tt++,l._bodyAnimationDone=new d.a,l.accordion=t,l._document=o,l._bodyAnimationDone.pipe(Object(R.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?l.afterExpand.emit():"collapsed"===t.toState&&l.afterCollapse.emit())})),c&&(l.hideToggle=c.hideToggle),l}return m(i,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe(Object(C.a)(null),Object(T.a)((function(){return t.expanded&&!t._portal})),Object(I.a)(1)).subscribe((function(){t._portal=new _.j(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=Object(l.c)(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),i}(A)).\u0275fac=function(t){return new(t||J)(u.Mb(X,12),u.Mb(u.h),u.Mb(p.d),u.Mb(u.Q),u.Mb(S.e),u.Mb(P.a,8),u.Mb(et,8))},J.\u0275cmp=u.Gb({type:J,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&u.Fb(i,$,!0),2&t&&u.sc(n=u.ac())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&u.Qc(x,!0),2&t&&u.sc(i=u.ac())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&u.Eb("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[u.zb([{provide:X,useValue:void 0}]),u.xb,u.yb],ngContentSelectors:F,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(u.jc(L),u.ic(0),u.Sb(1,"div",0,1),u.Zb("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),u.Sb(3,"div",2),u.ic(4,1),u.Hc(5,N,0,0,"ng-template",3),u.Rb(),u.ic(6,2),u.Rb()),2&t&&(u.Ab(1),u.kc("@bodyExpansion",e._getExpandedState())("id",e.id),u.Bb("aria-labelledby",e._headerId),u.Ab(4),u.kc("cdkPortalOutlet",e._portal))},directives:[_.c],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Q.bodyExpansion]},changeDetection:0}),J),nt=((q=function t(){g(this,t)}).\u0275fac=function(t){return new(t||q)},q.\u0275dir=u.Hb({type:q,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),q),rt=((V=function(){function t(e,i,n,r,a){var o=this;g(this,t),this.panel=e,this._element=i,this._focusMonitor=n,this._changeDetectorRef=r,this._parentChangeSubscription=f.a.EMPTY,this._animationsDisabled=!0;var s=e.accordion?e.accordion._stateChanges.pipe(Object(T.a)((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):O.a;this._parentChangeSubscription=Object(D.a)(e.opened,e.closed,s,e._inputChanges.pipe(Object(T.a)((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),e.closed.pipe(Object(T.a)((function(){return e._containsFocus()}))).subscribe((function(){return n.focusVia(i,"program")})),n.monitor(i).subscribe((function(t){t&&e.accordion&&e.accordion._handleHeaderFocus(o)})),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}return m(t,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_keydown",value:function(t){switch(t.keyCode){case E.o:case E.g:Object(E.t)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,t,e)}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),t}()).\u0275fac=function(t){return new(t||V)(u.Mb(it,1),u.Mb(u.l),u.Mb(k.h),u.Mb(u.h),u.Mb(et,8))},V.\u0275cmp=u.Gb({type:V,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:19,hostBindings:function(t,e){1&t&&(u.Fc("@expansionHeight.start",(function(){return e._animationStarted()})),u.Zb("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(u.Bb("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),u.Gc("@.disabled",e._animationsDisabled)("@expansionHeight",u.qc(16,H,e._getExpandedState(),u.qc(13,z,e.collapsedHeight,e.expandedHeight))),u.Eb("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Y,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(u.jc(Z),u.Sb(0,"span",0),u.ic(1),u.ic(2,1),u.ic(3,2),u.Rb(),u.Hc(4,B,1,1,"span",1)),2&t&&(u.Ab(4),u.kc("ngIf",e._showToggle()))},directives:[S.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;position:relative}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[Q.indicatorRotate,Q.expansionHeaderHeight]},changeDetection:0}),V),at=((K=function t(){g(this,t)}).\u0275fac=function(t){return new(t||K)},K.\u0275dir=u.Hb({type:K,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),K),ot=((U=function t(){g(this,t)}).\u0275fac=function(t){return new(t||U)},U.\u0275dir=u.Hb({type:U,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),U),st=((G=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments))._ownHeaders=new u.E,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return m(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe(Object(C.a)(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new k.g(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(t){var e=t.keyCode,i=this._keyManager;e===E.i?Object(E.t)(t)||(i.setFirstItemActive(),t.preventDefault()):e===E.f?Object(E.t)(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=Object(l.c)(t)}}]),i}(v)).\u0275fac=function(t){return ct(t||G)},G.\u0275dir=u.Hb({type:G,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&u.Fb(i,rt,!0),2&t&&u.sc(n=u.ac())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&u.Eb("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[u.zb([{provide:X,useExisting:G}]),u.xb]}),G),ct=u.Ub(st),ut=((W=function t(){g(this,t)}).\u0275mod=u.Kb({type:W}),W.\u0275inj=u.Jb({factory:function(t){return new(t||W)},imports:[[S.c,w,_.i]]}),W)},"3jrC":function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("X2Q7"),r=i("Ssnw"),a=i("FlRo"),o=i("EM62"),s=i("2kYt"),c=i("cePI"),u=i("FcRk"),l=i("PBFl"),h=i("s2Ay"),d=i("W5/Z");function f(t,e){1&t&&(o.Sb(0,"app-alert"),o.Jc(1),o.ec(2,"translate"),o.ec(3,"customTranslate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,o.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function p(t,e){1&t&&(o.Sb(0,"th",15),o.Jc(1),o.ec(2,"translate"),o.ec(3,"customTranslate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,o.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function b(t,e){if(1&t&&(o.Sb(0,"td",16),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.Ab(1),o.Kc(i.friendlyNameParameter)}}function v(t,e){1&t&&(o.Sb(0,"th",15),o.Jc(1),o.ec(2,"translate"),o.ec(3,"customTranslate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,o.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function y(t,e){if(1&t&&(o.Sb(0,"td",17),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.Ab(1),o.Kc(i.value)}}function A(t,e){1&t&&o.Nb(0,"th",15)}function w(t,e){if(1&t){var i=o.Tb();o.Sb(0,"td",18),o.Sb(1,"button",19),o.Zb("click",(function(){o.xc(i);var t=e.$implicit;return o.dc().changePassword(t.friendlyNameParameter)})),o.Jc(2),o.ec(3,"translate"),o.ec(4,"customTranslate"),o.Rb(),o.Rb()}if(2&t){var n=e.$implicit,r=o.dc();o.Ab(1),o.kc("disabled",!r.logins.includes(n)),o.Ab(1),o.Kc(o.fc(3,2,o.fc(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function _(t,e){1&t&&o.Nb(0,"tr",20)}function S(t,e){1&t&&o.Nb(0,"tr",21)}var k=function(){var t=function(){function t(e,i){g(this,t),this.attributesManagerService=e,this.store=i,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe((function(e){var i=t.nameSpaces.map((function(t){var e=t.split(":");return e[e.length-1]}));t.logins=e.filter((function(t){return i.includes(t.friendlyNameParameter)})),t.dataSource=new a.o(e)}))}},{key:"changePassword",value:function(t){var e=this.store.get("pwd_reset_base_url");location.href="".concat(e,"?login-namespace=").concat(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.c),o.Mb(r.m))},t.\u0275cmp=o.Gb({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(o.Sb(0,"h1",0),o.Jc(1),o.ec(2,"translate"),o.ec(3,"customTranslate"),o.Rb(),o.Hc(4,f,4,5,"app-alert",1),o.Sb(5,"div",2),o.Sb(6,"div",3),o.Sb(7,"div",4),o.Sb(8,"table",5),o.Qb(9,6),o.Hc(10,p,4,5,"th",7),o.Hc(11,b,2,1,"td",8),o.Pb(),o.Qb(12,9),o.Hc(13,v,4,5,"th",7),o.Hc(14,y,2,1,"td",10),o.Pb(),o.Qb(15,11),o.Hc(16,A,1,0,"th",7),o.Hc(17,w,5,6,"td",12),o.Pb(),o.Hc(18,_,1,0,"tr",13),o.Hc(19,S,1,0,"tr",14),o.Rb(),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,5,o.fc(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),o.Ab(3),o.kc("ngIf",!e.logins.length),o.Ab(4),o.kc("dataSource",e.dataSource),o.Ab(10),o.kc("matHeaderRowDef",e.displayedColumns),o.Ab(1),o.kc("matRowDefColumns",e.displayedColumns))},directives:[s.t,a.n,c.a,a.c,a.i,a.b,a.k,a.m,u.a,a.h,a.a,l.b,a.j,a.l],pipes:[h.d,d.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t}()},"3lSR":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("cJ9h"),r=i("5E2i");function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(n.a)(r.a,t)}},"3p4X":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("IdLP"),r=i("Efrr"),a=i("KRZI");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return(!Object(a.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=r.a),new n.a((function(i){return i.add(e.schedule(s,t,{subscriber:i,counter:0,period:t})),i}))}function s(t){var e=t.subscriber,i=t.counter,n=t.period;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},"47ST":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("IdLP");function r(t,e){return new n.a(e?function(i){return e.schedule(a,0,{error:t,subscriber:i})}:function(e){return e.error(t)})}function a(t){var e=t.error;t.subscriber.error(e)}},"49Zq":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("FlRo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&s.Nb(0,"th",15)}function p(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){1&t&&s.Nb(0,"tr",18)}function y(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,1,0,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Hc(11,b,1,0,"tr",13),s.Hc(12,v,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Kc(s.fc(3,5,"DIALOGS.DELETE_FACILITY.DESCRIPTION")),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.DELETE_FACILITY.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.facilitiesManager=n,this.notificator=r,this.translate=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new o.o([this.facility])}},{key:"onConfirm",value:function(){var t=this;this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id).subscribe((function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(n.g),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-delete-facility-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onConfirm()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.DELETE_FACILITY.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.DELETE_FACILITY.CANCEL"),""),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.DELETE_FACILITY.CONFIRM"),""))},directives:[r.j,u.t,r.c,l.b,h.c,r.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l],pipes:[c.d],styles:[""]}),t}()},"4CqK":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t){var e=t.find((function(t){return"mail"===t.friendlyName}));return e?e.value.toString():"N/A"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"getMailFromAttributes",type:t,pure:!0}),t}()},"4e/d":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var r=i("pBDD"),o=i("r9RI"),c=i("mW0F");function u(t){return function(e){var i=new l(t),n=e.lift(i);return i.caught=n}}var l=function(){function t(e){g(this,t),this.selector=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new d(t,this.selector,this.caught))}}]),t}(),d=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t)).selector=n,a.caught=r,a}return m(i,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void n(h(i.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var r=new o.a(this,void 0,void 0);this.add(r);var a=Object(c.a)(this,e,void 0,void 0,r);a!==r&&this.add(a)}}}]),i}(r.a)},"4sdY":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t),this.accessItemsChange=new n.o,this.facilityItemsChange=new n.o,this.adminItemsChange=new n.o,this.userItemsChange=new n.o,this.resetChange=new n.o,this.homeItemsChange=new n.o}return m(t,[{key:"setHomeItems",value:function(t){this.homeItemsChange.emit(t)}},{key:"setAccessMenuItems",value:function(t){this.accessItemsChange.emit(t)}},{key:"setFacilityMenuItems",value:function(t){this.facilityItemsChange.emit(t)}},{key:"setAdminItems",value:function(t){this.adminItemsChange.emit(t)}},{key:"setUserItems",value:function(t){this.userItemsChange.emit(t)}},{key:"reset",value:function(){this.resetChange.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},"5E2i":function(t,e,i){"use strict";function n(t){return t}i.d(e,"a",(function(){return n}))},"5XID":function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return r})),i.d(e,"d",(function(){return c})),i.d(e,"e",(function(){return u})),i.d(e,"f",(function(){return a}));var n=i("EM62");function r(t){return null!=t&&""+t!="false"}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function s(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function u(t){return t instanceof n.l?t.nativeElement:t}},"5bHy":function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("cqs0"),r=i("X2Q7"),a=i("V78E"),o=i("iyZ4"),s=i("8clQ"),c=i("Ssnw"),u=i("EM62"),l=i("sEIs"),h=i("OZ4H"),d=i("0XDM"),f=i("2kYt"),p=i("A8Ay"),b=i("PBFl"),v=i("csyo"),y=i("23RZ"),A=i("s2Ay");function w(t,e){if(1&t){var i=u.Tb();u.Sb(0,"button",6),u.Zb("click",(function(){return u.xc(i),u.dc().deleteSelectedResources()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}if(2&t){var n=u.dc();u.kc("disabled",0===n.selected.selected.length),u.Ab(1),u.Lc(" ",u.fc(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function _(t,e){1&t&&u.Nb(0,"mat-spinner",7)}function S(t,e){if(1&t){var i=u.Tb();u.Sb(0,"perun-web-apps-resources-list",8),u.Zb("page",(function(t){return u.xc(i),u.dc().pageChanged(t)})),u.Rb()}if(2&t){var n=u.dc();u.kc("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("routingVo",!0)("disableRouting",!n.routeAuth)("selection",n.selected)("displayedColumns",n.displayedColumns)}}var k=function(){var t=function(){function t(e,i,r,a,s,c){g(this,t),this.resourcesManager=e,this.voService=i,this.route=r,this.tableConfigService=a,this.dialog=s,this.authResolver=c,this.resources=[],this.selected=new n.c(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=o.lb,this.routeAuth=!1}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe((function(e){t.voService.getVoById(e.voId).subscribe((function(e){t.vo=e,t.refreshTable()}))}))}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe((function(e){t.resources=e,t.selected.clear(),t.setAuthRights(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"deleteSelectedResources",value:function(){var t=this,e=Object(s.o)();e.width="450px",e.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(a.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(u.Mb(r.m),u.Mb(r.q),u.Mb(l.a),u.Mb(o.pb),u.Mb(h.b),u.Mb(c.h))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&u.Eb("router-component",!0)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page"]],template:function(t,e){1&t&&(u.Sb(0,"div"),u.Sb(1,"h1",0),u.Jc(2),u.ec(3,"translate"),u.Rb(),u.Sb(4,"perun-web-apps-refresh-button",1),u.Zb("refresh",(function(){return e.refreshTable()})),u.Rb(),u.Hc(5,w,3,4,"button",2),u.Sb(6,"perun-web-apps-immediate-filter",3),u.Zb("filter",(function(t){return e.applyFilter(t)})),u.Rb(),u.Hc(7,_,1,0,"mat-spinner",4),u.Hc(8,S,1,7,"perun-web-apps-resources-list",5),u.Rb()),2&t&&(u.Ab(2),u.Kc(u.fc(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),u.Ab(3),u.kc("ngIf",!e.loading&&e.removeAuth),u.Ab(1),u.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.Ab(1),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading))},directives:[d.a,f.t,p.a,b.b,v.c,y.a],pipes:[A.d],styles:[""]}),t}()},"5kIe":function(t,e,i){"use strict";i.d(e,"a",(function(){return D}));var n=i("EM62"),r=i("cePI"),a=i("iAde"),o=i("cqs0"),s=i("FlRo"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("FcRk"),p=i("s2Ay");function b(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",18),n.Sb(1,"mat-checkbox",19),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function v(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",20),n.Sb(1,"mat-checkbox",21),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function y(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.ID")))}function A(t,e){if(1&t&&(n.Sb(0,"td",20),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Lc(" ",i.id," ")}}function w(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.NAME")))}function _(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.name)}}function S(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.CONTACT")))}function k(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.contact)}}function E(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.TYPE")))}function R(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.type)}}function C(t,e){1&t&&n.Nb(0,"tr",24)}function T(t,e){1&t&&n.Nb(0,"tr",25)}function I(t,e){1&t&&(n.Sb(0,"app-alert",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.NO_OWNERS")))}function O(t,e){1&t&&(n.Sb(0,"app-alert",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.OWNERS_LIST.NO_OWNERS")))}var D=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.owners=[],this.hideColumns=[],this.selection=new o.c(!0,[]),this.pageSize=10,this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.page=new n.o,this.pageSizeOptions=c.a}return m(t,[{key:"ngAfterViewInit",value:function(){this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}},{key:"ngOnChanges",value:function(t){var e=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.displayedColumns=this.displayedColumns.filter((function(t){return!e.hideColumns.includes(t)})),this.dataSource=new s.o(this.owners),this.setDataSource()}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matPaginator",set:function(t){this.paginator=t}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-owners-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matPaginator=i.first),n.sc(i=n.ac())&&(e.matSort=i.first))},inputs:{owners:"owners",hideColumns:"hideColumns",selection:"selection",pageSize:"pageSize",filterValue:"filterValue",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:25,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSizeOptions","pageSize","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,b,2,3,"th",6),n.Hc(7,v,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,y,3,3,"th",9),n.Hc(10,A,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,w,3,3,"th",9),n.Hc(13,_,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,S,3,3,"th",9),n.Hc(16,k,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,E,3,3,"th",9),n.Hc(19,R,2,1,"td",11),n.Pb(),n.Hc(20,C,1,0,"tr",14),n.Hc(21,T,1,0,"tr",15),n.Rb(),n.Rb(),n.Sb(22,"mat-paginator",16),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(23,I,3,3,"app-alert",17),n.Hc(24,O,3,3,"app-alert",17)),2&t&&(n.kc("hidden",!e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(16),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.owners.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.Ab(1),n.kc("ngIf",!e.owners.length),n.Ab(1),n.kc("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[l.a,s.n,r.a,s.c,s.i,s.b,s.k,s.m,a.a,h.t,s.h,d.a,s.a,r.b,s.j,s.l,f.a],pipes:[p.d],styles:[""]}),t}()},"5lCh":function(t,e,o){"use strict";o.d(e,"a",(function(){return Oe})),o.d(e,"b",(function(){return Me}));var c=o("EM62"),u=o("e4iD"),l=o("f7+R");function f(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function p(t){switch(t.length){case 0:return new l.d;case 1:return t[0];default:return new l.o(t)}}function b(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],c=-1,u=null;if(n.forEach((function(t){var i=t.offset,n=i==c,h=n&&u||{};Object.keys(t).forEach((function(i){var n=i,s=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),s){case l.p:s=r[i];break;case l.a:s=a[i];break;default:s=e.normalizeStyleValue(i,n,s,o)}h[n]=s})),n||s.push(h),u=h,c=i})),o.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(o.join(h)))}return s}function v(t,e,i,n){switch(e){case"start":t.onStart((function(){return n(i&&y(i,"start",t))}));break;case"done":t.onDone((function(){return n(i&&y(i,"done",t))}));break;case"destroy":t.onDestroy((function(){return n(i&&y(i,"destroy",t))}))}}function y(t,e,i){var n=i.totalTime,r=A(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),a=t._data;return null!=a&&(r._data=a),r}function A(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:a,disabled:!!o}}function w(t,e,i){var n;return t instanceof Map?(n=t.get(e))||t.set(e,n=i):(n=t[e])||(n=t[e]=i),n}function _(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var S=function(t,e){return!1},k=function(t,e){return!1},E=function(t,e,i){return[]},R=f();(R||"undefined"!=typeof Element)&&(S=function(t,e){return t.contains(e)},k=function(){if(R||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,i){return e.apply(t,[i])}:k}(),E=function(t,e,n){var r=[];if(n)r.push.apply(r,i(t.querySelectorAll(e)));else{var a=t.querySelector(e);a&&r.push(a)}return r});var C=null,T=!1;function I(t){C||(C=("undefined"!=typeof document?document.body:null)||{},T=!!C.style&&"WebkitAppearance"in C.style);var e=!0;return C.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in C.style)&&T)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in C.style),e}var O=k,D=S,M=E;function P(t){var e={};return Object.keys(t).forEach((function(i){var n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]})),e}var x,N=((x=function(){function t(){g(this,t)}return m(t,[{key:"validateStyleProperty",value:function(t){return I(t)}},{key:"matchesElement",value:function(t,e){return O(t,e)}},{key:"containsElement",value:function(t,e){return D(t,e)}},{key:"query",value:function(t,e,i){return M(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return i||""}},{key:"animate",value:function(t,e,i,n,r){return new l.d(i,n)}}]),t}()).\u0275fac=function(t){return new(t||x)},x.\u0275prov=c.Ib({token:x,factory:x.\u0275fac}),x),L=function(){var t=function t(){g(this,t)};return t.NOOP=new N,t}();function F(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:z(parseFloat(e[1]),e[2])}function z(t,e){switch(e){case"s":return 1e3*t;default:return t}}function H(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){var n,r=0,a="";if("string"==typeof t){var o=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return e.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};n=z(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(r=z(parseFloat(s),o[4]));var c=o[5];c&&(a=c)}else n=t;if(!i){var u=!1,l=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(l,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:n,delay:r,easing:a}}(t,e,i)}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(i){e[i]=t[i]})),e}function j(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var n in t)i[n]=t[n];else B(t,i);return i}function G(t,e,i){return i?e+":"+i+";":""}function U(t){for(var e="",i=0;i *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return i.push('The provided transition expression "'.concat(t,'" is not supported')),e;var a=r[1],o=r[2],s=r[3];e.push(at(a,s)),"<"!=o[0]||"*"==a&&"*"==s||e.push(at(s,a))}(t,r,n)})):r.push(i),r),animation:a,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}},{key:"visitSequence",value:function(t,e){var i=this;return{type:2,steps:t.steps.map((function(t){return et(i,t,e)})),options:ht(t.options)}}},{key:"visitGroup",value:function(t,e){var i=this,n=e.currentTime,r=0,a=t.steps.map((function(t){e.currentTime=n;var a=et(i,t,e);return r=Math.max(r,e.currentTime),a}));return e.currentTime=r,{type:3,steps:a,options:ht(t.options)}}},{key:"visitAnimate",value:function(t,e){var i,n=function(t,e){var i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return dt(H(t,e).duration,0,"");var n=t;if(n.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=dt(0,0,"");return r.dynamic=!0,r.strValue=n,r}return dt((i=i||H(n,e)).duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var r=t.styles?t.styles:Object(l.l)({});if(5==r.type)i=this.visitKeyframes(r,e);else{var a=t.styles,o=!1;if(!a){o=!0;var s={};n.easing&&(s.easing=n.easing),a=Object(l.l)(s)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(a,e);c.isEmptyStep=o,i=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}},{key:"_makeStyleAst",value:function(t,e){var i=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?t==l.a?i.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):i.push(t)})):i.push(t.styles);var n=!1,r=null;return i.forEach((function(t){if(lt(t)){var e=t,i=e.easing;if(i&&(r=i,delete e.easing),!n)for(var a in e)if(e[a].toString().indexOf("{{")>=0){n=!0;break}}})),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(t,e){var i=this,n=e.currentAnimateTimings,r=e.currentTime,a=e.currentTime;n&&a>0&&(a-=n.duration+n.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(n){if(i._driver.validateStyleProperty(n)){var o,s,c,u,l,h=e.collectedStyles[e.currentQuerySelector],d=h[n],f=!0;d&&(a!=r&&a>=d.startTime&&r<=d.endTime&&(e.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),f=!1),a=d.startTime),f&&(h[n]={startTime:a,endTime:r}),e.options&&(o=t[n],s=e.options,c=e.errors,u=s.params||{},(l=W(o)).length&&l.forEach((function(t){u.hasOwnProperty(t)||c.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})))}else e.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var i=this,n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;var r=0,a=[],o=!1,s=!1,c=0,u=t.steps.map((function(t){var n=i._makeStyleAst(t,e),u=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(lt(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}}));else if(lt(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}return e}(n.styles),l=0;return null!=u&&(r++,l=n.offset=u),s=s||l<0||l>1,o=o||l0&&r0?r==d?1:h*r:a[r],s=o*g;e.currentTime=f+p.delay+s,p.duration=s,i._validateStyleAst(t,e),t.offset=o,n.styles.push(t)})),n}},{key:"visitReference",value:function(t,e){return{type:8,animation:et(this,q(t.animation),e),options:ht(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:ht(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}},{key:"visitQuery",value:function(t,e){var i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;var a=r(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(ot,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=a[0],s=a[1];e.currentQuerySelector=i.length?i+" "+o:o,w(e.collectedStyles,e.currentQuerySelector,{});var c=et(this,q(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:c,originalSelector:t.selector,options:ht(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:H(t.timings,e.errors,!0);return{type:12,animation:et(this,q(t.animation),e),timings:i,options:null}}}]),t}(),ut=function t(e){g(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function lt(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=B(t)).params&&(t.params=(e=t.params)?B(e):null):t={},t}function dt(t,e,i){return{duration:t,delay:e,easing:i}}function ft(t,e,i,n,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var pt=function(){function t(){g(this,t),this._map=new Map}return m(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,r=this._map.get(t);r||this._map.set(t,r=[]),(n=r).push.apply(n,i(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),gt=new RegExp(":enter","g"),bt=new RegExp(":leave","g");function mt(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new vt).buildKeyframes(t,e,i,n,r,a,o,s,c,u)}var vt=function(){function t(){g(this,t)}return m(t,[{key:"buildKeyframes",value:function(t,e,i,n,r,a,o,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new pt;var l=new At(t,e,c,n,r,u,[]);l.options=s,l.currentTimeline.setStyles([a],null,l.errors,s),et(this,i,l);var h=l.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,l.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[ft(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var i=e.subInstructions.consume(e.element);if(i){var n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,n,n.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,i){var n=e.currentTimeline.currentTime,r=null!=i.duration?F(i.duration):null,a=null!=i.delay?F(i.delay):null;return 0!==r&&t.forEach((function(t){var i=e.appendInstructionToTimeline(t,r,a);n=Math.max(n,i.duration+i.delay)})),n}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),et(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var i=this,n=e.subContextCount,r=e,a=t.options;if(a&&(a.params||a.delay)&&((r=e.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=yt);var o=F(a.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return et(i,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var i=this,n=[],r=e.currentTimeline.currentTime,a=t.options&&t.options.delay?F(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);a&&s.delayNextStep(a),et(i,o,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)})),n.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var i=t.strValue;return H(e.params?Z(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach((function(t){a.forwardTime((t.offset||0)*r),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(n+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var i=this,n=e.currentTimeline.currentTime,r=t.options||{},a=r.delay?F(r.delay):0;a&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);var o=n,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach((function(n,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,n);a&&s.delayNextStep(a),n===e.element&&(c=s.currentTimeline),et(i,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var i=e.parentContext,n=e.currentTimeline,r=t.timings,a=Math.abs(r.duration),o=a*(e.currentQueryTotal-1),s=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=i.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;et(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}]),t}(),yt={},At=function(){function t(e,i,n,r,a,o,s,c){g(this,t),this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new wt(this._driver,i,0),s.push(this.currentTimeline)}return m(t,[{key:"updateOptions",value:function(t,e){var i=this;if(t){var n=t,r=this.options;null!=n.duration&&(r.duration=F(n.duration)),null!=n.delay&&(r.delay=F(n.delay));var a=n.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=Z(a[t],o,i.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var i=t.params={};Object.keys(e).forEach((function(t){i[t]=e[t]}))}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=i||this.element,a=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,i){var n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new _t(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,r,a,o){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(gt,"."+this._enterClassName)).replace(bt,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),s.push.apply(s,i(c))}return a||0!=s.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),t}(),wt=function(){function t(e,i,n,r){g(this,t),this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return m(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||l.a,e._currentKeyframe[t]=l.a})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,i,n){var r=this;e&&(this._previousKeyframe.easing=e);var a=n&&n.params||{},o=function(t,e){var i,n={};return t.forEach((function(t){"*"===t?(i=i||Object.keys(e)).forEach((function(t){n[t]=l.a})):j(t,!1,n)})),n}(t,this._globalTimelineStyles);Object.keys(o).forEach((function(t){var e=Z(o[t],a,i);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:l.a),r._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,i=Object.keys(e);0!=i.length&&(this._pendingStyles={},i.forEach((function(i){t._currentKeyframe[i]=e[i]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var i=t._localTimelineStyles[e];t._pendingStyles[e]=i,t._updateStyle(e,i)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(i){var n=e._styleSummary[i],r=t._styleSummary[i];(!n||r.time>n.time)&&e._updateStyle(i,r.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(a,o){var s=j(a,!0);Object.keys(s).forEach((function(t){var n=s[t];n==l.p?e.add(t):n==l.a&&i.add(t)})),n||(s.offset=o/t.duration),r.push(s)}));var a=e.size?Y(e.values()):[],o=i.size?Y(i.values()):[];if(n){var s=r[0],c=B(s);s.offset=0,c.offset=1,r=[s,c]}return ft(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),_t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s){var c,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return g(this,i),(c=e.call(this,t,n,s.delay)).element=n,c.keyframes=r,c.preStyleProps=a,c.postStyleProps=o,c._stretchStartingKeyframe=u,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return m(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,i=e.delay,n=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&i){var a=[],o=n+i,s=i/o,c=j(t[0],!1);c.offset=0,a.push(c);var u=j(t[0],!1);u.offset=St(s),a.push(u);for(var l=t.length-1,h=1;h<=l;h++){var d=j(t[h],!1);d.offset=St((i+d.offset*n)/o),a.push(d)}n=o,i=0,r="",t=a}return ft(this.element,t,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}]),i}(wt);function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,e-1);return Math.round(t*i)/i}var kt,Et,Rt=function t(){g(this,t)},Ct=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"normalizePropertyName",value:function(t,e){return Q(t)}},{key:"normalizeStyleValue",value:function(t,e,i,n){var r="",a=i.toString().trim();if(Tt[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{var o=i.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&n.push("Please provide a CSS unit value for ".concat(t,":").concat(i))}return a+r}}]),i}(Rt),Tt=(kt="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),Et={},kt.forEach((function(t){return Et[t]=!0})),Et);function It(t,e,i,n,r,a,o,s,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}var Ot={},Dt=function(){function t(e,i,n){g(this,t),this._triggerName=e,this.ast=i,this._stateStyles=n}return m(t,[{key:"match",value:function(t,e,i,n){return function(t,e,i,n,r){return t.some((function(t){return t(e,i,n,r)}))}(this.ast.matchers,t,e,i,n)}},{key:"buildStyles",value:function(t,e,i){var n=this._stateStyles["*"],r=this._stateStyles[t],a=n?n.buildStyles(e,i):{};return r?r.buildStyles(e,i):a}},{key:"build",value:function(t,e,i,n,r,a,o,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||Ot,d=this.buildStyles(i,o&&o.params||Ot,l),f=s&&s.params||Ot,p=this.buildStyles(n,f,l),g=new Set,b=new Map,m=new Map,v="void"===n,y={params:Object.assign(Object.assign({},h),f)},A=u?[]:mt(t,e,this.ast.animation,r,a,d,p,y,c,l),_=0;if(A.forEach((function(t){_=Math.max(t.duration+t.delay,_)})),l.length)return It(e,this._triggerName,i,n,v,d,p,[],[],b,m,_,l);A.forEach((function(t){var i=t.element,n=w(b,i,{});t.preStyleProps.forEach((function(t){return n[t]=!0}));var r=w(m,i,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),i!==e&&g.add(i)}));var S=Y(g.values());return It(e,this._triggerName,i,n,v,d,p,A,S,b,m,_)}}]),t}(),Mt=function(){function t(e,i){g(this,t),this.styles=e,this.defaultParams=i}return m(t,[{key:"buildStyles",value:function(t,e){var i={},n=B(this.defaultParams);return Object.keys(t).forEach((function(e){var i=t[e];null!=i&&(n[e]=i)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var a=r[t];a.length>1&&(a=Z(a,n,e)),i[t]=a}))}})),i}}]),t}(),Pt=function(){function t(e,i){var n=this;g(this,t),this.name=e,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach((function(t){n.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})})),xt(this.states,"true","1"),xt(this.states,"false","0"),i.transitions.forEach((function(t){n.transitionFactories.push(new Dt(e,t,n.states))})),this.fallbackTransition=new Dt(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return m(t,[{key:"matchTransition",value:function(t,e,i,n){return this.transitionFactories.find((function(r){return r.match(t,e,i,n)}))||null}},{key:"matchStyles",value:function(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function xt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}var Nt=new pt,Lt=function(){function t(e,i,n){g(this,t),this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return m(t,[{key:"register",value:function(t,e){var i=[],n=st(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: "+i.join("\n"));this._animations[t]=n}},{key:"_buildPlayer",value:function(t,e,i){var n=t.element,r=b(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[t],s=new Map;if(o?(i=mt(this._driver,e,o,"ng-enter","ng-leave",{},{},r,Nt,a)).forEach((function(t){var e=w(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(a.push("The requested animation doesn't exist or has already been destroyed"),i=[]),a.length)throw new Error("Unable to create the animation due to the following errors: "+a.join("\n"));s.forEach((function(t,e){Object.keys(t).forEach((function(i){t[i]=n._driver.computeStyle(e,i,l.a)}))}));var c=p(i.map((function(t){var e=s.get(t.element);return n._buildPlayer(t,{},e)})));return this._playersById[t]=c,c.onDestroy((function(){return n.destroy(t)})),this.players.push(c),c}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}},{key:"listen",value:function(t,e,i,n){var r=A(e,"","","");return v(this._getPlayer(t),i,r,n),function(){}}},{key:"command",value:function(t,e,i,n){if("register"!=i)if("create"!=i){var r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,n[0]||{});else this.register(t,n[0])}}]),t}(),Ft=[],zt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ht={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";g(this,t),this.namespaceId=i;var n,r=e&&e.hasOwnProperty("value");if(this.value=null!=(n=r?e.value:e)?n:null,r){var a=B(e);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return m(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var i=this.options.params;Object.keys(e).forEach((function(t){null==i[t]&&(i[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),jt=new Bt("void"),Gt=function(){function t(e,i,n){g(this,t),this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Zt(i,this._hostClassName)}return m(t,[{key:"listen",value:function(t,e,i,n){var r,a=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=i)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(e,'" is not supported!'));var o=w(this._elementListeners,t,[]),s={name:e,phase:i,callback:n};o.push(s);var c=w(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(Zt(t,"ng-trigger"),Zt(t,"ng-trigger-"+e),c[e]=jt),function(){a._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),a._triggers[e]||delete c[e]}))}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,i){var n=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(e),o=new Kt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Zt(t,"ng-trigger"),Zt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],u=new Bt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[e]=u,c||(c=jt),"void"===u.value||c.value!==u.value){var l=w(this._engine.playersByElement,t,[]);l.forEach((function(t){t.namespaceId==n.id&&t.triggerName==e&&t.queued&&t.destroy()}));var h=a.matchTransition(c.value,u.value,t,u.params),d=!1;if(!h){if(!r)return;h=a.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:u,player:o,isFallbackTransition:d}),d||(Zt(t,"ng-animate-queued"),o.onStart((function(){Yt(t,"ng-animate-queued")}))),o.onDone((function(){var e=n.players.indexOf(o);e>=0&&n.players.splice(e,1);var i=n._engine.playersByElement.get(t);if(i){var r=i.indexOf(o);r>=0&&i.splice(r,1)}})),this.players.push(o),l.push(o),o}if(!function(t,e){var i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(var r=0;r=0){for(var n=!1,r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}},{key:"registerTrigger",value:function(t,e,i){var n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var i=this;if(t){var n=this._fetchNamespace(t);this.afterFlush((function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[t];var e=i._namespaceList.indexOf(n);e>=0&&i._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return n.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,i=this.statesByElement.get(t);if(i)for(var n=Object.keys(i),r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,i)}n&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Yt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,i,n){if(Vt(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){var a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,n)}}else this._onRemovalComplete(e,n)}},{key:"markElementAsRemoved",value:function(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,i,n,r){return Vt(e)?this._fetchNamespace(t).listen(e,i,n,r):function(){}}},{key:"_buildInstruction",value:function(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,i=this.driver.query(t,".ng-trigger",!0);i.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise((function(e){if(t.players.length)return p(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,i=t.__ng_removed;if(i&&i.setForRemoval){if(t.__ng_removed=zt,i.namespaceId){this.destroyInnerAnimations(t);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,i){return t._balanceNamespaceList(e,i)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach((function(t){var e=t.player,i=t.element;if(T.push(e),n.collectedEnterElements.length){var o=i.__ng_removed;if(o&&o.setForMove)return void e.destroy()}var l=!f||!n.driver.containsElement(f,i),d=R.get(i),p=m.get(i),g=n._buildInstruction(t,r,p,d,l);if(g.errors&&g.errors.length)I.push(g);else{if(l)return e.onStart((function(){return V(i,g.fromStyles)})),e.onDestroy((function(){return K(i,g.toStyles)})),void a.push(e);if(t.isFallbackTransition)return e.onStart((function(){return V(i,g.fromStyles)})),e.onDestroy((function(){return K(i,g.toStyles)})),void a.push(e);g.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),r.append(i,g.timelines),s.push({instruction:g,player:e,element:i}),g.queriedElements.forEach((function(t){return w(c,t,[]).push(e)})),g.preStyleProps.forEach((function(t,e){var i=Object.keys(t);if(i.length){var n=u.get(e);n||u.set(e,n=new Set),i.forEach((function(t){return n.add(t)}))}})),g.postStyleProps.forEach((function(t,e){var i=Object.keys(t),n=h.get(e);n||h.set(e,n=new Set),i.forEach((function(t){return n.add(t)}))}))}}));if(I.length){var D=[];I.forEach((function(t){D.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return D.push("- ".concat(t,"\n"))}))})),T.forEach((function(t){return t.destroy()})),this.reportError(D)}var M=new Map,P=new Map;s.forEach((function(t){var e=t.element;r.has(e)&&(P.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,M))})),a.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){w(M,e,[]).push(t),t.destroy()}))}));var x=y.filter((function(t){return Qt(t,u,h)})),N=new Map;Jt(N,this.driver,_,h,l.a).forEach((function(t){Qt(t,u,h)&&x.push(t)}));var L=new Map;b.forEach((function(t,e){Jt(L,n.driver,new Set(t),u,l.p)})),x.forEach((function(t){var e=N.get(t),i=L.get(t);N.set(t,Object.assign(Object.assign({},e),i))}));var F=[],z=[],H={};s.forEach((function(t){var e=t.element,i=t.player,s=t.instruction;if(r.has(e)){if(d.has(e))return i.onDestroy((function(){return K(e,s.toStyles)})),i.disabled=!0,i.overrideTotalTime(s.totalTime),void a.push(i);var c=H;if(P.size>1){for(var u=e,l=[];u=u.parentNode;){var h=P.get(u);if(h){c=h;break}l.push(u)}l.forEach((function(t){return P.set(t,c)}))}var f=n._buildAnimation(i.namespaceId,s,M,o,L,N);if(i.setRealPlayer(f),c===H)F.push(i);else{var g=n.playersByElement.get(c);g&&g.length&&(i.parentPlayer=p(g)),a.push(i)}}else V(e,s.fromStyles),i.onDestroy((function(){return K(e,s.toStyles)})),z.push(i),d.has(e)&&a.push(i)})),z.forEach((function(t){var e=o.get(t.element);if(e&&e.length){var i=p(e);t.setRealPlayer(i)}})),a.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var B=0;B0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new l.d(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}}]),t}(),Kt=function(){function t(e,i,n){g(this,t),this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new l.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return m(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(i){e._queuedCallbacks[i].forEach((function(e){return v(t,i,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,i=this._player;i.triggerCallback&&t.onStart((function(){return i.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){w(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Vt(t){return t&&1===t.nodeType}function qt(t,e){var i=t.style.display;return t.style.display=null!=e?e:"none",i}function Jt(t,e,i,n,r){var a=[];i.forEach((function(t){return a.push(qt(t))}));var o=[];n.forEach((function(i,n){var a={};i.forEach((function(t){var i=a[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n.__ng_removed=Ht,o.push(n))})),t.set(n,a)}));var s=0;return i.forEach((function(t){return qt(t,a[s++])})),o}function Wt(t,e){var i=new Map;if(t.forEach((function(t){return i.set(t,[])})),0==e.length)return i;var n=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var a=r.get(e);if(a)return a;var o=e.parentNode;return a=i.has(o)?o:n.has(o)?1:t(o),r.set(e,a),a}(t);1!==e&&i.get(e).push(t)})),i}function Zt(t,e){if(t.classList)t.classList.add(e);else{var i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Yt(t,e){if(t.classList)t.classList.remove(e);else{var i=t.$$classes;i&&delete i[e]}}function Xt(t,e,i){p(i).onDone((function(){return t.processLeaveNode(e)}))}function Qt(t,e,i){var n=i.get(t);if(!n)return!1;var r=e.get(t);return r?n.forEach((function(t){return r.add(t)})):e.set(t,n),i.delete(t),!0}var $t=function(){function t(e,i,n){var r=this;g(this,t),this.bodyNode=e,this._driver=i,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Ut(e,i,n),this._timelineEngine=new Lt(e,i,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return m(t,[{key:"registerTrigger",value:function(t,e,i,n,r){var a=t+"-"+n,o=this._triggerCache[a];if(!o){var s=[],c=st(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(n,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(t,e){return new Pt(t,e)}(n,c),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(e,n,o)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}},{key:"onRemove",value:function(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,i,n){if("@"==i.charAt(0)){var a=r(_(i),2),o=a[0],s=a[1];this._timelineEngine.command(o,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}},{key:"listen",value:function(t,e,i,n,a){if("@"==i.charAt(0)){var o=r(_(i),2),s=o[0],c=o[1];return this._timelineEngine.listen(s,e,c,a)}return this._transitionEngine.listen(t,e,i,n,a)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function te(t,e){var i=null,n=null;return Array.isArray(e)&&e.length?(i=ie(e[0]),e.length>1&&(n=ie(e[e.length-1]))):e&&(i=ie(e)),i||n?new ee(t,i,n):null}var ee=function(){var t=function(){function t(e,i,n){g(this,t),this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return m(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&K(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(K(this._element,this._initialStyles),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),K(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function ie(t){for(var e=null,i=Object.keys(t),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ce(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,i,n;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,i=le(t,"").split(","),(n=se(i,e))>=0&&(i.splice(n,1),ue(t,"",i.join(","))))}}]),t}();function ae(t,e,i){ue(t,"PlayState",i,oe(t,e))}function oe(t,e){var i=le(t,"");return i.indexOf(",")>0?se(i.split(","),e):se([i],e)}function se(t,e){for(var i=0;i=0)return i;return-1}function ce(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ue(t,e,i,n){var r="animation"+e;if(null!=n){var a=t.style[r];if(a.length){var o=a.split(",");o[n]=i,i=o.join(",")}}t.style[r]=i}function le(t,e){return t.style["animation"+e]}var he=function(){function t(e,i,n,r,a,o,s,c){g(this,t),this.element=e,this.keyframes=i,this.animationName=n,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return m(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new re(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach((function(n){"offset"!=n&&(e[n]=i?t._finalStyles[n]:it(t.element,n))}))}this.currentSnapshot=e}}]),t}(),de=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=P(n),r}return m(i,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),n(h(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),n(h(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var i=t._startingStyles[e];i?t.element.style.setProperty(e,i):t.element.style.removeProperty(e)})),this._startingStyles=null,n(h(i.prototype),"destroy",this).call(this))}}]),i}(l.d),fe=function(){function t(){g(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return m(t,[{key:"validateStyleProperty",value:function(t){return I(t)}},{key:"matchesElement",value:function(t,e){return O(t,e)}},{key:"containsElement",value:function(t,e){return D(t,e)}},{key:"query",value:function(t,e,i){return M(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,i){i=i.map((function(t){return P(t)}));var n="@keyframes ".concat(e," {\n"),r="";i.forEach((function(t){r=" ";var e=parseFloat(t.offset);n+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach((function(e){var i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+="".concat(r,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(r).concat(e,": ").concat(i,";\n"))}})),n+=r+"}\n"})),n+="}\n";var a=document.createElement("style");return a.innerHTML=n,a}},{key:"animate",value:function(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=a.filter((function(t){return t instanceof he})),c={};$(i,n)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(i){"offset"!=i&&"easing"!=i&&(e[i]=t[i])}))})),e}(e=tt(t,e,c));if(0==i)return new de(t,u);var l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(h);var d=te(t,e),f=new he(t,e,l,i,n,r,u,d);return f.onDestroy((function(){var t;(t=h).parentNode.removeChild(t)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),t}(),pe=function(){function t(e,i,n,r){g(this,t),this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return m(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,i){return t.animate(e,i)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(i){"offset"!=i&&(e[i]=t._finished?t._finalKeyframe[i]:it(t.element,i))})),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),ge=function(){function t(){g(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(be().toString()),this._cssKeyframesDriver=new fe}return m(t,[{key:"validateStyleProperty",value:function(t){return I(t)}},{key:"matchesElement",value:function(t,e){return O(t,e)}},{key:"containsElement",value:function(t,e){return D(t,e)}},{key:"query",value:function(t,e,i){return M(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,r,a);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(s.easing=r);var c={},u=a.filter((function(t){return t instanceof pe}));$(i,n)&&u.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var l=te(t,e=tt(t,e=e.map((function(t){return j(t,!1)})),c));return new pe(t,e,s,l)}}]),t}();function be(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var me,ve=o("2kYt"),ye=((me=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:c.R.None,styles:[],data:{animation:[]}}),r}return m(i,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(t)?Object(l.j)(t):t;return _e(this._renderer,null,e,"register",[i]),new Ae(e,this._renderer)}}]),i}(l.b)).\u0275fac=function(t){return new(t||me)(c.Wb(c.G),c.Wb(ve.e))},me.\u0275prov=c.Ib({token:me,factory:me.\u0275fac}),me),Ae=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this))._id=t,r._renderer=n,r}return m(i,[{key:"create",value:function(t,e){return new we(this._id,t,e||{},this._renderer)}}]),i}(l.c),we=function(){function t(e,i,n,r){g(this,t),this.id=e,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return m(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n=0&&t1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(e,Math.min(i,t))}var w=function(){var t=function t(){g(this,t)};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[r.c,o.i],o.i]}),t}()},"6Oco":function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return a}));var n=i("IdLP"),r=new n.a((function(t){return t.complete()}));function a(t){return t?function(t){return new n.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):r}},"6Xhx":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return s}));var n=i("EM62"),r=(i("X2Q7"),i("s2Ay")),a=i("LAw4"),o={},s=function(){var t=function t(e){var i=this;g(this,t),this.translate=e,this.item=null,this.itemSelected=new n.o,this.nameFunction=function(t){return t===o?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname},this.secondaryFunction=function(t){return t===o?"":t.id<0?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id},this.searchFunction=function(t){return t===o?"":t.shortname+t.id}};return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.e))},t.\u0275cmp=n.Gb({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(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.itemSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.fc(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.fc(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.fc(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[a.a],pipes:[r.d],styles:[""]}),t}()},"6mVK":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("FlRo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&s.Nb(0,"th",15)}function p(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){1&t&&s.Nb(0,"tr",18)}function y(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,1,0,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Hc(11,b,1,0,"tr",13),s.Hc(12,v,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Kc(s.fc(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.notificator=r,this.translate=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new o.o(this.data.groups)}},{key:"onRemove",value:function(){var t=this;this.loading=!0;var e=this.dataSource.data.map((function(t){return t.id}));this.groupManager.removeMember(e,this.data.memberId).subscribe((function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(n.h),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onRemove()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc("",s.fc(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc("",s.fc(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[r.j,u.t,r.c,l.b,h.c,r.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l],pipes:[c.d],styles:[""]}),t}()},"77So":function(t,e,i){"use strict";i.d(e,"a",(function(){return O}));var n=i("EM62"),r=i("cePI"),a=i("cqs0"),o=i("iAde"),s=i("FlRo"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("FcRk"),p=i("s2Ay"),b=i("j+u3");function v(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",17),n.Sb(1,"mat-checkbox",18),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function y(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function A(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")))}function w(t,e){if(1&t&&(n.Sb(0,"td",19),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i[1].id)}}function _(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")))}function S(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i[1]))}}function k(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")))}function E(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i[0].description)}}function R(t,e){1&t&&n.Nb(0,"tr",23)}function C(t,e){1&t&&n.Nb(0,"tr",24)}function T(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function I(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}var O=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.bansOnFacilitiesWithUsers=[],this.selection=new a.c(!0,[]),this.pageSize=10,this.page=new n.o,this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=c.a}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"userId"!==t}))),this.dataSource=new s.o(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(t,e){switch(e){case"userId":return t[1].id.toString();case"reason":return t[0].description;case"name":return Object(c.z)(t[1]);default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t[0].userId+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Dc(o.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",pageSize:"pageSize"},outputs:{page:"page"},features:[n.yb],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,v,2,3,"th",6),n.Hc(7,y,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,A,3,3,"th",9),n.Hc(10,w,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,_,3,3,"th",9),n.Hc(13,S,3,3,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,k,3,3,"th",9),n.Hc(16,E,2,1,"td",11),n.Pb(),n.Hc(17,R,1,0,"tr",13),n.Hc(18,C,1,0,"tr",14),n.Rb(),n.Rb(),n.Sb(19,"mat-paginator",15),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(20,T,3,3,"app-alert",16),n.Hc(21,I,3,3,"app-alert",16)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.bansOnFacilitiesWithUsers.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(13),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.bansOnFacilitiesWithUsers.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.bansOnFacilitiesWithUsers.length),n.Ab(1),n.kc("ngIf",0===e.bansOnFacilitiesWithUsers.length))},directives:[l.a,s.n,r.a,s.c,s.i,s.b,s.k,s.m,o.a,h.t,s.h,d.a,s.a,r.b,s.j,s.l,f.a],pipes:[p.d,b.a],styles:[""]}),t}()},"7TQF":function(t,e,i){"use strict";i.d(e,"a",(function(){return D}));var n=i("4sdY"),r=i("X2Q7"),a=i("8clQ"),o=i("Ssnw"),s=i("cqs0"),c=i("tDou"),u=i("iyZ4"),l=i("JjRu"),h=i("EM62"),d=i("OZ4H"),f=i("EtYo"),p=i("bFHC"),b=i("2kYt"),v=i("0XDM"),y=i("PBFl"),A=i("A8Ay"),w=i("csyo"),_=i("qySP"),S=i("s2Ay");function k(t,e){if(1&t){var i=h.Tb();h.Sb(0,"perun-web-apps-refresh-button",9),h.Zb("refresh",(function(){return h.xc(i),h.dc().refreshTable()})),h.Rb()}}function E(t,e){if(1&t){var i=h.Tb();h.Sb(0,"button",10),h.Zb("click",(function(){return h.xc(i),h.dc().onCreateVo()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function R(t,e){if(1&t){var i=h.Tb();h.Sb(0,"button",11),h.Zb("click",(function(){return h.xc(i),h.dc().onRemoveVo()})),h.Jc(1),h.ec(2,"translate"),h.Rb()}if(2&t){var n=h.dc();h.kc("disabled",0===n.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function C(t,e){if(1&t){var i=h.Tb();h.Sb(0,"perun-web-apps-immediate-filter",12),h.Zb("filter",(function(t){return h.xc(i),h.dc().applyFilter(t)})),h.Rb()}2&t&&h.kc("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function T(t,e){1&t&&h.Nb(0,"mat-spinner",13)}function I(t,e){if(1&t){var i=h.Tb();h.Sb(0,"perun-web-apps-vos-list",14),h.Zb("page",(function(t){return h.xc(i),h.dc().pageChanged(t)})),h.Rb()}if(2&t){var n=h.dc();h.kc("pageSize",n.pageSize)("displayedColumns",n.displayedColumns)("filterValue",n.filterValue)("recentIds",n.recentIds)("selection",n.selection)("vos",n.vos)}}var O=function(){return{color:"black"}},D=function(){var t=function(){function t(e,i,n,r,a,o,s,c){g(this,t),this.sideMenuService=e,this.voService=i,this.guiAuthResolver=n,this.tableConfigService=r,this.dialog=a,this.notificator=o,this.apiRequest=s,this.initAuthService=c,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=u.nb}return m(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new s.c(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}},{key:"ngAfterViewChecked",value:function(){this.sideMenuService.setAccessMenuItems([])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe((function(e){t.vos=e,t.recentIds=Object(a.r)("vos"),t.loading=!1}),(function(e){"PrivilegeException"===e.error.name?(t.vos=[],t.loading=!1):t.notificator.showRPCError(e)}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCreateVo",value:function(){var t=this,e=Object(a.o)();e.width="600px",e.data={theme:"vo-theme"},this.dialog.open(c.a,e).afterClosed().subscribe((function(e){e&&(t.loading=!0,t.refreshTable())}))}},{key:"onRemoveVo",value:function(){var t=this,e=Object(a.o)();e.width="500px",e.data={theme:"vo-theme",entity:this.selection.selected[0],entityType:l.b.VO},this.dialog.open(l.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(h.Mb(n.a),h.Mb(r.q),h.Mb(o.h),h.Mb(u.pb),h.Mb(d.b),h.Mb(o.l),h.Mb(o.b),h.Mb(o.i))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("router-component",!0)},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",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page"]],template:function(t,e){1&t&&(h.Sb(0,"div",0),h.Nb(1,"perun-web-apps-back-button"),h.Sb(2,"h1",1),h.Nb(3,"mat-icon",2),h.Jc(4),h.ec(5,"translate"),h.Rb(),h.Hc(6,k,1,0,"perun-web-apps-refresh-button",3),h.Hc(7,E,3,3,"button",4),h.Hc(8,R,3,4,"button",5),h.Hc(9,C,1,2,"perun-web-apps-immediate-filter",6),h.Hc(10,T,1,0,"mat-spinner",7),h.Hc(11,I,1,6,"perun-web-apps-vos-list",8),h.Rb()),2&t&&(h.Ab(3),h.kc("ngStyle",h.oc(10,O)),h.Ab(1),h.Lc(" ",h.fc(5,8,"VO_MANAGEMENT.TITLE")," "),h.Ab(2),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",!e.loading&&e.createAuth),h.Ab(1),h.kc("ngIf",!e.loading&&e.deleteAuth),h.Ab(1),h.kc("ngIf",!e.loading),h.Ab(1),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",!e.loading))},directives:[f.a,p.a,b.w,b.t,v.a,y.b,A.a,w.c,_.a],pipes:[S.d],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t}()},"7Y6W":function(t,e,i){"use strict";i.d(e,"a",(function(){return it}));var n=i("OZ4H"),r=i("X2Q7"),a=i("Ssnw"),o=i("nIj0"),s=i("2kYt"),c=i("Iydx"),u=i("8lHc"),l=i("ROBh"),h=i("TLy2"),f=i("YtkY"),p=i("4e/d"),b=i("EM62"),v=i("s2Ay"),y=i("csyo"),A=i("x9Az"),w=i("29Wa"),_=i("Cd2c"),S=i("PBFl"),k=i("R7+U"),E=i("Y2X+"),R=i("+Tre"),C=i("F1o0"),T=i("HMTk"),I=i("FcRk"),O=i("mFH5"),D=i("bFHC"),M=i("jqZM"),P=i("j+u3");function x(t,e){1&t&&(b.Sb(0,"h1",4),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")))}function N(t,e){1&t&&b.Nb(0,"mat-spinner",5)}function L(t,e){1&t&&(b.Jc(0),b.ec(1,"translate")),2&t&&b.Kc(b.fc(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function F(t,e){1&t&&(b.Sb(0,"app-alert",42),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Lc(" ",b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function z(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Lc(" ",b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function H(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Lc(" ",b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function B(t,e){1&t&&(b.Jc(0),b.ec(1,"translate")),2&t&&b.Kc(b.fc(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function j(t,e){if(1&t&&(b.Sb(0,"mat-option",43),b.Jc(1),b.Rb()),2&t){var i=e.$implicit;b.kc("value",i),b.Ab(1),b.Lc(" ",i," ")}}function G(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Lc(" ",b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function U(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Lc(" ",b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function K(t,e){1&t&&b.Nb(0,"mat-spinner",44),2&t&&b.kc("diameter",18)}function V(t,e){1&t&&(b.Sb(0,"mat-icon",45),b.ec(1,"translate"),b.Jc(2," error "),b.Rb()),2&t&&b.kc("matTooltip",b.fc(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR_LONG"))}function q(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")))}function J(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Kc(b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR")))}function W(t,e){1&t&&(b.Sb(0,"mat-error"),b.Jc(1),b.ec(2,"translate"),b.Rb()),2&t&&(b.Ab(1),b.Lc(" ",b.fc(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function Z(t,e){1&t&&(b.Jc(0),b.ec(1,"translate")),2&t&&b.Kc(b.fc(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Y(t,e){if(1&t){var i=b.Tb();b.Sb(0,"div"),b.Sb(1,"perun-web-apps-user-search-select",46),b.Zb("userSelected",(function(t){return b.xc(i),b.dc(2).selectedSponsor=t})),b.Rb(),b.Rb()}if(2&t){var n=b.dc(2);b.Ab(1),b.kc("users",n.voSponsors)("disableAutoSelect",!0)}}function X(t,e){if(1&t){var i=b.Tb();b.Sb(0,"div",6),b.Sb(1,"mat-horizontal-stepper",7),b.Sb(2,"mat-step",8),b.Hc(3,L,2,3,"ng-template",9),b.Hc(4,F,3,3,"app-alert",10),b.Sb(5,"form",11),b.Sb(6,"h5",12),b.Jc(7),b.ec(8,"translate"),b.Rb(),b.Sb(9,"mat-form-field",13),b.Nb(10,"input",14),b.ec(11,"translate"),b.Hc(12,z,3,3,"mat-error",15),b.Rb(),b.Sb(13,"mat-form-field"),b.Nb(14,"input",16),b.ec(15,"translate"),b.Hc(16,H,3,3,"mat-error",15),b.Rb(),b.Sb(17,"mat-form-field"),b.Nb(18,"input",17),b.ec(19,"translate"),b.Rb(),b.Sb(20,"mat-form-field"),b.Nb(21,"input",18),b.ec(22,"translate"),b.Rb(),b.Rb(),b.Sb(23,"div",19),b.Sb(24,"button",20),b.Zb("click",(function(){return b.xc(i),b.dc().onCancel()})),b.Jc(25),b.ec(26,"translate"),b.Rb(),b.Sb(27,"button",21),b.Jc(28),b.ec(29,"translate"),b.Rb(),b.Rb(),b.Rb(),b.Sb(30,"mat-step",8),b.Hc(31,B,2,3,"ng-template",9),b.Sb(32,"h5",12),b.Jc(33),b.ec(34,"translate"),b.Rb(),b.Sb(35,"form",22),b.Sb(36,"mat-form-field"),b.Sb(37,"mat-select",23),b.Zb("valueChange",(function(t){return b.xc(i),b.dc().onNamespaceChanged(t)})),b.ec(38,"translate"),b.Hc(39,j,2,2,"mat-option",24),b.Rb(),b.Hc(40,G,3,3,"mat-error",15),b.Rb(),b.Sb(41,"mat-form-field",25),b.ec(42,"translate"),b.Nb(43,"input",26),b.ec(44,"translate"),b.Hc(45,U,3,3,"mat-error",15),b.Rb(),b.Sb(46,"span",25),b.ec(47,"translate"),b.Sb(48,"mat-checkbox",27),b.Zb("change",(function(){return b.xc(i),b.dc().passwordResetChange()})),b.Jc(49),b.ec(50,"translate"),b.Rb(),b.Rb(),b.Sb(51,"mat-form-field",25),b.Nb(52,"input",28),b.ec(53,"translate"),b.Hc(54,K,1,1,"mat-spinner",29),b.Hc(55,V,3,3,"mat-icon",30),b.Hc(56,q,3,3,"mat-error",15),b.Hc(57,J,3,3,"mat-error",15),b.Rb(),b.Sb(58,"mat-checkbox",31),b.Jc(59),b.ec(60,"translate"),b.Rb(),b.Sb(61,"mat-form-field"),b.Nb(62,"input",32),b.ec(63,"translate"),b.Hc(64,W,3,3,"mat-error",15),b.Rb(),b.Sb(65,"div",19),b.Sb(66,"button",20),b.Zb("click",(function(){return b.xc(i),b.dc().onCancel()})),b.Jc(67),b.ec(68,"translate"),b.Rb(),b.Sb(69,"button",33),b.Jc(70),b.ec(71,"translate"),b.Rb(),b.Sb(72,"button",34),b.Jc(73),b.ec(74,"translate"),b.Rb(),b.Rb(),b.Rb(),b.Rb(),b.Sb(75,"mat-step"),b.Hc(76,Z,2,3,"ng-template",9),b.Sb(77,"div",35),b.Sb(78,"h5",12),b.Jc(79),b.ec(80,"translate"),b.Rb(),b.Sb(81,"div",13),b.Sb(82,"h6"),b.Jc(83),b.ec(84,"translate"),b.Rb(),b.Sb(85,"mat-radio-group",36),b.Zb("ngModelChange",(function(t){return b.xc(i),b.dc().sponsorType=t})),b.Sb(86,"span",37),b.ec(87,"translate"),b.Sb(88,"mat-radio-button",38),b.Zb("click",(function(){return b.xc(i),b.dc().selectedSponsor=null})),b.Jc(89),b.ec(90,"translate"),b.Rb(),b.Rb(),b.Sb(91,"span",37),b.ec(92,"translate"),b.Sb(93,"mat-radio-button",39),b.Jc(94),b.ec(95,"translate"),b.Rb(),b.Rb(),b.Rb(),b.Hc(96,Y,2,2,"div",15),b.Rb(),b.Sb(97,"h6",13),b.Jc(98),b.ec(99,"translate"),b.Rb(),b.Sb(100,"perun-web-apps-expiration-select",40),b.Zb("datePicker",(function(t){return b.xc(i),b.dc().setExpiration(t)})),b.Rb(),b.Rb(),b.Sb(101,"div",19),b.Sb(102,"button",20),b.Zb("click",(function(){return b.xc(i),b.dc().onCancel()})),b.Jc(103),b.ec(104,"translate"),b.Rb(),b.Sb(105,"button",33),b.Jc(106),b.ec(107,"translate"),b.Rb(),b.Sb(108,"button",41),b.Zb("click",(function(){return b.xc(i),b.dc().onConfirm()})),b.Jc(109),b.ec(110,"translate"),b.Rb(),b.Rb(),b.Rb(),b.Rb(),b.Rb()}if(2&t){var n=b.dc();b.Ab(1),b.kc("linear",!0),b.Ab(1),b.kc("stepControl",n.userControl),b.Ab(2),b.kc("ngIf",n.functionalityNotSupported),b.Ab(1),b.kc("formGroup",n.userControl),b.Ab(2),b.Lc(" ",b.fc(8,60,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),b.Ab(3),b.lc("placeholder",b.fc(11,62,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),b.Ab(2),b.kc("ngIf",n.userControl.hasError("required","firstName")),b.Ab(2),b.lc("placeholder",b.fc(15,64,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),b.Ab(2),b.kc("ngIf",n.userControl.hasError("required","lastName")),b.Ab(2),b.lc("placeholder",b.fc(19,66,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),b.Ab(3),b.lc("placeholder",b.fc(22,68,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),b.Ab(4),b.Lc(" ",b.fc(26,70,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.Ab(2),b.kc("disabled",n.userControl.invalid),b.Ab(1),b.Lc(" ",b.fc(29,72,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),b.Ab(2),b.kc("stepControl",n.namespaceControl),b.Ab(3),b.Kc(b.fc(34,74,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),b.Ab(2),b.kc("formGroup",n.namespaceControl),b.Ab(2),b.lc("placeholder",b.fc(38,76,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),b.Ab(2),b.kc("ngForOf",n.namespaceOptions),b.Ab(1),b.kc("ngIf",n.namespaceControl.hasError("required","namespace")),b.Ab(1),b.lc("matTooltip",b.fc(42,78,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),b.kc("matTooltipDisabled",n.namespaceControl.get("login").enabled),b.Ab(2),b.lc("placeholder",b.fc(44,80,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),b.Ab(2),b.kc("ngIf",n.namespaceControl.hasError("required","login")),b.Ab(1),b.lc("matTooltip",b.fc(47,82,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),b.kc("matTooltipDisabled",n.namespaceControl.get("passwordReset").enabled),b.Ab(3),b.Lc("",b.fc(50,84,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),b.Ab(2),b.kc("matTooltip",n.getPasswordDisabledTooltip())("matTooltipDisabled",n.namespaceControl.get("password").enabled),b.Ab(1),b.lc("placeholder",b.fc(53,86,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")),b.kc("type",n.namespaceControl.get("showPassword").value?"text":"password")("errorStateMatcher",n.passwordStateMatcher),b.Ab(2),b.kc("ngIf",n.namespaceControl.get("password").pending),b.Ab(1),b.kc("ngIf",n.namespaceControl.get("password").dirty&&null!==n.namespaceControl.get("password").errors),b.Ab(1),b.kc("ngIf",n.namespaceControl.get("password").hasError("required")),b.Ab(1),b.kc("ngIf",n.namespaceControl.get("password").hasError("backendError")),b.Ab(2),b.Lc(" ",b.fc(60,88,"DIALOGS.CREATE_SPONSORED_MEMBER.SHOW_PASSWORD")," "),b.Ab(3),b.lc("placeholder",b.fc(63,90,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),b.Ab(2),b.kc("ngIf",n.namespaceControl.hasError("required","email")||n.namespaceControl.hasError("pattern","email")),b.Ab(3),b.Lc(" ",b.fc(68,92,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.Ab(3),b.Lc(" ",b.fc(71,94,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),b.Ab(2),b.kc("disabled",n.namespaceControl.invalid||n.namespaceControl.get("password").pending),b.Ab(1),b.Lc(" ",b.fc(74,96,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),b.Ab(6),b.Kc(b.fc(80,98,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),b.Ab(4),b.Kc(b.fc(84,100,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),b.Ab(2),b.kc("ngModel",n.sponsorType),b.Ab(1),b.lc("matTooltip",b.fc(87,102,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),b.kc("matTooltipDisabled",n.isSponsor),b.Ab(2),b.kc("disabled",!n.isSponsor),b.Ab(1),b.Lc(" ",b.fc(90,104,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),b.Ab(2),b.lc("matTooltip",b.fc(92,106,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),b.kc("matTooltipDisabled",n.isPerunAdmin),b.Ab(2),b.kc("disabled",!n.isPerunAdmin),b.Ab(1),b.Lc(" ",b.fc(95,108,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),b.Ab(2),b.kc("ngIf","other"===n.sponsorType),b.Ab(2),b.Kc(b.fc(99,110,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),b.Ab(5),b.Lc(" ",b.fc(104,112,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.Ab(3),b.Lc(" ",b.fc(107,114,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),b.Ab(2),b.kc("disabled",null===n.sponsorType||"other"===n.sponsorType&&null===n.selectedSponsor),b.Ab(1),b.Lc(" ",b.fc(110,116,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function Q(t,e){if(1&t&&(b.Sb(0,"div",6),b.Sb(1,"div",47),b.Sb(2,"mat-icon",48),b.Jc(3,"done"),b.Rb(),b.Jc(4),b.ec(5,"translate"),b.Sb(6,"i"),b.Jc(7),b.ec(8,"userFullName"),b.Rb(),b.Jc(9),b.ec(10,"translate"),b.Rb(),b.Sb(11,"div"),b.Jc(12),b.ec(13,"translate"),b.Rb(),b.Sb(14,"div"),b.Jc(15),b.ec(16,"translate"),b.Rb(),b.Sb(17,"app-alert",49),b.Jc(18),b.ec(19,"translate"),b.Rb(),b.Rb()),2&t){var i=b.dc();b.Ab(4),b.Lc(" ",b.fc(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),b.Ab(3),b.Kc(b.fc(8,10,i.createdMember.user)),b.Ab(2),b.Lc(" ",b.fc(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),b.Ab(3),b.Mc("",b.fc(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",i.loginThatWasSet,""),b.Ab(3),b.Mc("",b.fc(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",i.namespaceControl.get("password").value," "),b.Ab(3),b.Kc(b.fc(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function $(t,e){if(1&t){var i=b.Tb();b.Sb(0,"div",19),b.Sb(1,"button",50),b.Zb("click",(function(){return b.xc(i),b.dc().onCancel()})),b.Jc(2),b.ec(3,"translate"),b.Rb(),b.Rb()}2&t&&(b.Ab(2),b.Lc(" ",b.fc(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}var tt=function(){function t(){g(this,t)}return m(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&t.dirty)}}]),t}(),et=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500;return function(r){return Object(u.a)(n).pipe(Object(h.a)((function(){return i.dontHandleErrorForNext(),null===t||"No namespace"===t?Object(l.a)(null):e.checkPasswordStrength(r.value,t)})),Object(f.a)((function(){return null})),Object(p.a)((function(t){return Object(l.a)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})})))}},it=function(){var t=function(){function t(e,i,n,r,a,o,s,c,u,l){g(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.apiRequestConfiguration=r,this.usersService=a,this.store=o,this.translator=s,this.authzService=c,this.guiAuthResolver=u,this.formBuilder=l,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.parsedRules=new Map,this.emailRegx=/^(([^<>+()\[\]\\.,;:\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]{2,3}))$/,this.userControl=null,this.namespaceControl=null,this.passwordStateMatcher=new tt,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(c.a.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.userControl=this.formBuilder.group({firstName:["",o.F.required],lastName:["",o.F.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",o.F.required],login:["",[o.F.required]],password:["",o.F.required,[et(null,this.usersService,this.apiRequestConfiguration)]],passwordReset:[!1,[]],showPassword:[!1,[]],email:["",[o.F.required,o.F.pattern(this.emailRegx)]]}),this.membersService.getAllNamespacesRules().subscribe((function(e){t.store.get("allow_empty_sponsor_namespace")&&t.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),t.namespaceRules=t.namespaceRules.concat(e),t.parseNamespaceRules(),0===t.namespaceOptions.length&&(t.functionalityNotSupported=!0),t.loading=!1}))}},{key:"parseNamespaceRules",value:function(){var t,e=d(this.namespaceRules);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.namespaceOptions.push(i.namespaceName);var n={login:"disabled",password:"disabled"};this.parseAttributes(n,i.requiredAttributes,"required"),this.parseAttributes(n,i.optionalAttributes,"optional"),this.parsedRules.set(i.namespaceName,n)}}catch(r){e.e(r)}finally{e.f()}}},{key:"parseAttributes",value:function(t,e,i){var n,r=d(e);try{for(r.s();!(n=r.n()).done;){switch(n.value){case"login":t.login=i;break;case"password":t.password=i}}}catch(a){r.e(a)}finally{r.f()}}},{key:"onConfirm",value:function(){var t=this;this.loading=!0;var e={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},i=this.namespaceControl.get("namespace").value,n=this.parsedRules.get(i);"No namespace"!==i&&(e.userData.namespace=i),"disabled"!==n.login&&(e.userData.login=this.namespaceControl.get("login").value),"disabled"!==n.password&&(e.sendActivationLink=this.namespaceControl.get("passwordReset").value,e.userData.password=this.namespaceControl.get("password").value),"never"!==this.expiration&&(e.validityTo=this.expiration),this.membersService.createSponsoredMember(e).subscribe((function(e){t.successfullyCreated=!0,t.dialogRef.updateSize("600px"),t.createdMember=e,e&&e.userAttributes&&e.userAttributes.filter((function(t){return"login-namespace"===t.baseFriendlyName})).filter((function(t){return t.friendlyNameParameter===i})).filter((function(t){return null!==t.value})).forEach((function(e){t.loginThatWasSet=e.value.toString()})),t.loading=!1}),(function(){t.loading=!1}))}},{key:"onCancel",value:function(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}},{key:"enableFormControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}},{key:"onNamespaceChanged",value:function(t){var e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("password"),r=this.namespaceControl.get("passwordReset"),a=this.namespaceControl.get("showPassword");"disabled"!==e.login?this.enableFormControl(i,"optional"===e.login?[]:[o.F.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?(this.enableFormControl(n,"optional"===e.password?[]:[o.F.required],[et(t,this.usersService,this.apiRequestConfiguration)]),this.enableFormControl(r,[]),this.enableFormControl(a,[])):(n.disable(),n.setValue(""),r.disable(),r.setValue(!1),a.disable(),a.setValue(!1))}},{key:"passwordResetChange",value:function(){var t=this.namespaceControl.get("password");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue("")):t.enable()}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":Object(s.I)(t,"yyyy-MM-dd","en-GB")}},{key:"getPasswordDisabledTooltip",value:function(){return this.namespaceControl.get("passwordReset").value?this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_VIA_EMAIL"):this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_DISABLED")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Mb(n.i),b.Mb(n.a),b.Mb(r.i),b.Mb(a.b),b.Mb(r.p),b.Mb(a.m),b.Mb(v.e),b.Mb(r.d),b.Mb(a.h),b.Mb(o.f))},t.\u0275cmp=b.Gb({type:t,selectors:[["app-create-sponsored-member-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"dialog-container","mt-4",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],["matInput","","formControlName","password",3,"type","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["color","warn","matSuffix","",3,"matTooltip",4,"ngIf"],["formControlName","showPassword",1,"example-margin"],["matInput","","required","","formControlName","email",3,"placeholder"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled"],[1,"dialog-container"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[1,"mt-2",3,"datePicker"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","error"],[3,"value"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",3,"matTooltip"],[3,"users","disableAutoSelect","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(t,e){1&t&&(b.Sb(0,"div"),b.Hc(1,x,3,3,"h1",0),b.Hc(2,N,1,0,"mat-spinner",1),b.Hc(3,X,111,118,"div",2),b.Hc(4,Q,20,20,"div",2),b.Hc(5,$,4,3,"div",3),b.Rb()),2&t&&(b.Cb(e.theme),b.Ab(1),b.kc("ngIf",!e.successfullyCreated),b.Ab(1),b.kc("ngIf",e.loading),b.Ab(1),b.kc("ngIf",!e.loading&&!e.successfullyCreated),b.Ab(1),b.kc("ngIf",!e.loading&&e.successfullyCreated),b.Ab(1),b.kc("ngIf",e.successfullyCreated))},directives:[s.t,n.j,y.c,n.g,A.a,A.b,A.d,o.H,o.s,o.j,w.c,_.b,o.c,o.r,o.i,o.C,n.c,S.b,A.h,k.a,s.s,E.a,R.a,A.i,C.b,o.u,C.a,T.a,I.a,w.b,O.n,w.j,D.a,M.a],pipes:[v.d,P.a],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}"]}),t}()},"7fDV":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){return t.substring(40)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"extSourceType",type:t,pure:!0}),t}()},"7ntQ":function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var r=i("ZTXN"),o=i("IdLP"),c=i("5uGe"),u=i("bwdy");function l(){return function(t){return t.lift(new f(t))}}var d,f=function(){function t(e){g(this,t),this.connectable=e}return m(t,[{key:"call",value:function(t,e){var i=this.connectable;i._refCount++;var n=new p(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}]),t}(),p=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).connectable=n,r}return m(i,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null}}]),i}(c.a),b=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this)).source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return m(i,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.a).add(this.source.subscribe(new y(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.a.EMPTY)),t}},{key:"refCount",value:function(){return l()(this)}}]),i}(o.a),v={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(d=b.prototype)._subscribe},_isComplete:{value:d._isComplete,writable:!0},getSubject:{value:d.getSubject},connect:{value:d.connect},refCount:{value:d.refCount}},y=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).connectable=n,r}return m(i,[{key:"_error",value:function(t){this._unsubscribe(),n(h(i.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),n(h(i.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),i}(r.b);function A(){return new r.a}function w(){return function(t){return l()((e=A,function(t){var i;i="function"==typeof e?e:function(){return e};var n=Object.create(t,v);return n.source=t,n.subjectFactory=i,n})(t));var e}}},"7o/y":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?"invalid"===t.toLowerCase()||e&&"invalid"===t.toLowerCase()?"INACTIVE":t:"ACTIVE"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"transformMemberStatus",type:t,pure:!0}),t}()},"8clQ":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"C",(function(){return c})),i.d(e,"B",(function(){return u})),i.d(e,"v",(function(){return l})),i.d(e,"E",(function(){return h})),i.d(e,"F",(function(){return f})),i.d(e,"x",(function(){return p})),i.d(e,"w",(function(){return g})),i.d(e,"z",(function(){return b})),i.d(e,"t",(function(){return m})),i.d(e,"D",(function(){return v})),i.d(e,"h",(function(){return y})),i.d(e,"r",(function(){return A})),i.d(e,"b",(function(){return w})),i.d(e,"c",(function(){return _})),i.d(e,"G",(function(){return S})),i.d(e,"j",(function(){return k})),i.d(e,"k",(function(){return E})),i.d(e,"l",(function(){return R})),i.d(e,"m",(function(){return C})),i.d(e,"p",(function(){return T})),i.d(e,"e",(function(){return I})),i.d(e,"o",(function(){return O})),i.d(e,"d",(function(){return D})),i.d(e,"s",(function(){return M})),i.d(e,"y",(function(){return P})),i.d(e,"A",(function(){return x})),i.d(e,"q",(function(){return N})),i.d(e,"u",(function(){return L})),i.d(e,"g",(function(){return F})),i.d(e,"f",(function(){return z})),i.d(e,"n",(function(){return H})),i.d(e,"i",(function(){return B}));var n=i("D57K"),r=i("OZ4H"),a=i("2kYt"),o=i("etrl"),s=[5,10,25,100,1e3,1e4];function c(t){switch(t.status){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete"}}function u(t){switch(t.status){case"VALID":return"accent";case"INVALID":return"warn";default:return""}}function l(t){var e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach((function(t){"preferredMail"===t.friendlyName&&(e=t.value)})),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach((function(t){"mail"===t.friendlyName&&null!==t.value&&(e=t.value)}))),e}function h(t){var e="";return t&&t.userAttributes.forEach((function(t){"preferredMail"===t.friendlyName&&(e=t.value)})),e}function f(t){var e="";return t&&t.userAttributes&&t.userAttributes.filter((function(t){return"login-namespace"===t.baseFriendlyName})).filter((function(t){return null!==t.value})).forEach((function(t){e+=t.friendlyNameParameter+": "+t.value+", "})),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function p(t){var e="";return t&&t.userAttributes&&t.userAttributes.filter((function(t){return"login-namespace"===t.baseFriendlyName})).filter((function(t){return null!==t.value})).forEach((function(t){e+=t.friendlyNameParameter+": "+t.value+", "})),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function g(t){var e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function b(t){var e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function m(t){var e="";return t.split(/(?=[A-Z])/g).forEach((function(t){e=(e=e.concat(t.toLowerCase())).concat(" ")})),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1)}function v(t){var e,i="",n=d(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;"technical"===r.type&&(i+=r.name+", ")}}catch(a){n.e(a)}finally{n.f()}return i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function y(t,e){return Object(n.a)(this,void 0,void 0,regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n=t,new Promise((function(t){return setTimeout(t,n)}));case 2:e();case 3:case"end":return i.stop()}}),i)})))}function A(t){return JSON.parse(localStorage.getItem(t))||[]}function w(t,e){if(null===localStorage.getItem(t)){var i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{var n=JSON.parse(localStorage.getItem(t)),r=function(t,e){for(var i=0;i0&&n.splice(r,1),0!==r&&n.unshift(e.id),n.length>5&&n.pop(),localStorage.setItem(t,JSON.stringify(n))}}function _(t){if(null===localStorage.getItem("recent")){var e;e="Group"===t.beanName?[{id:t.id,name:t.shortName,type:t.beanName,voId:t.voId}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(e))}else{var i,n=JSON.parse(localStorage.getItem("recent")),r=function(t,e){for(var i=0;i0&&n.splice(r,1),0!==r&&n.unshift(i),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function S(t){var e="";return t&&t.userAttributes.forEach((function(t){"organization"===t.friendlyName&&(e=t.value)})),e}function k(t){return t.filter((function(t){return!t.namespace.includes("def:core")}))}function E(t,e){var i=e.find((function(e){return e.id===t}));return i?i.parentGroupId?E(i.parentGroupId,e).concat(i):[i]:[]}function R(t,e){var i,n=d(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.namespace+":"+r.friendlyName===e)return r}}catch(a){n.e(a)}finally{n.f()}return null}function C(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function T(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){var e=t.split("/");for(var i in e)if(i.startsWith("CN="))return n=i.substring(3),decodeURIComponent(n.replace(/\\x/g,"%"))}var n;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function I(){return{appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{en:{locale:"en",subject:"",text:""},cs:{locale:"cs",subject:"",text:""}}}}function O(){var t=new r.e;return t.disableClose=!0,t.autoFocus=!1,t}function D(){return{applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{en:{locale:"en",errorMessage:"",help:"",label:"",options:""},cs:{locale:"cs",errorMessage:"",help:"",label:"",options:""}},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null}}function M(t){return"virt"===t.namespace.split(":")[4]}function P(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?"invalid"===t.toLowerCase()||e&&"invalid"===t.toLowerCase()?"INACTIVE":t:"ACTIVE"}function x(t){var e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach((function(t){"organization"===t.friendlyName&&null!==t.value&&(e=t.value)})),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach((function(t){"organization"===t.friendlyName&&(e=t.value)}))),e}function N(t){var e=t.attributes.find((function(t){return"groupMembershipExpiration"===t.baseFriendlyName}));return e&&e.value?e.value:"Never"}function L(t){return t&&"never"!==t.toLowerCase()?Object(a.I)(t,"d.M.yyyy","en"):t}function F(t,e,i,n){var r=e.active,a=e.direction;return r&&""!==a?t.sort((function(t,e){var o=i(t,r,n),s=i(e,r,n);return new Intl.Collator("cs",{numeric:!0}).compare(o,s)*("asc"===a?1:-1)})):t}function z(t,e,i,n,r){e=e.toLowerCase();var a="";return i.forEach((function(e){a+=";"+n(t,e,r)})),-1!==a.toLowerCase().indexOf(e)}function H(t,e,i,n){var r=[],a=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter((function(t){return!a.includes(t)})),t.forEach((function(t){var a={};e.forEach((function(e){var r;a[e]=(null!==(r=i(t,e,n))&&void 0!==r?r:"").split('"').join("''").trim()})),r.push(a)})),r}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(e){case"csv":var n=function(t,e){return null===e?"":e},r=Object.keys(t[0]),a=t.map((function(t){return r.map((function(e){return JSON.stringify(t[e],n)})).join(",")}));a.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var s=a.join("\r\n"),c=new Blob([s],{type:"text/csv"});Object(o.saveAs)(c,"".concat(i,".").concat(e))}}},"8cyV":function(t,e,i){"use strict";i.d(e,"a",(function(){return R}));var n=i("EM62"),r=i("fAiE"),a=i("oqI+"),o=i("+0js"),s=i("8clQ"),c=i("OZ4H"),u=i("S17y"),l=i("2kYt"),h=i("bFHC"),d=i("Y2X+"),f=i("PBFl"),p=i("29Wa"),b=i("Cd2c");function v(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-icon",9),n.Zb("mousedown",(function(){return n.xc(i),n.dc(2).dragDisabled=!1})),n.Jc(1,"drag_indicator"),n.Rb()}}function y(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-icon",10),n.Zb("click",(function(){n.xc(i);var t=n.dc().$implicit;return n.dc().edit(t)})),n.Jc(1,"edit"),n.Rb()}}function A(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-icon",11),n.Zb("click",(function(){n.xc(i);var t=n.dc().$implicit;return n.dc().remove(t)})),n.Jc(1,"cancel"),n.Rb()}}function w(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-chip",4),n.Zb("removed",(function(){n.xc(i);var t=e.$implicit,r=n.dc();return r.remove(t),r._sendEventToParent()})),n.Hc(1,v,2,0,"mat-icon",5),n.Sb(2,"div",6),n.Zb("click",(function(){n.xc(i);var t=e.$implicit,r=n.dc();return r.readonly&&void 0!==r.attribute.displayName&&r.showValue(t,r.attribute.displayName)})),n.Jc(3),n.Rb(),n.Hc(4,y,2,0,"mat-icon",7),n.Hc(5,A,2,0,"mat-icon",8),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.kc("selectable",a.selectable)("cdkDragData",r)("removable",a.removable),n.Ab(1),n.kc("ngIf",a.removable),n.Ab(1),n.Eb("cursor-pointer",a.readonly&&void 0!==a.attribute.displayName),n.Ab(1),n.Kc(r),n.Ab(1),n.kc("ngIf",a.removable),n.Ab(1),n.kc("ngIf",a.removable)}}function _(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"more_horiz"),n.Rb())}function S(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"keyboard_arrow_up"),n.Rb())}function k(t,e){if(1&t){var i=n.Tb();n.Sb(0,"div",12),n.Sb(1,"span",13),n.Sb(2,"button",14),n.Zb("click",(function(){return n.xc(i),n.dc().onShowChange()})),n.Hc(3,_,2,0,"mat-icon",15),n.Hc(4,S,2,0,"mat-icon",15),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("matTooltip",r.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.Ab(2),n.kc("ngIf",!r.showMore),n.Ab(1),n.kc("ngIf",r.showMore)}}function E(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-form-field",12),n.Sb(1,"input",16),n.Zb("matChipInputTokenEnd",(function(t){return n.xc(i),n.dc().add(t)}))("change",(function(){return n.xc(i),n.dc()._sendEventToParent()})),n.Rb(),n.Rb()}if(2&t){var r=n.dc(),a=n.tc(2);n.Ab(1),n.kc("matChipInputFor",a)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("matChipInputAddOnBlur",r.addOnBlur)}}var R=function(){var t=function(){function t(e){g(this,t),this.dialog=e,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[r.g,r.c],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.o,this.readonly=!1}return m(t,[{key:"ngOnInit",value:function(){this.removable=!Object(s.s)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Object(s.s)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(t){var e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(t){var e=this,i=Object(s.o)();i.width="400px",i.data={name:t},this.dialog.open(o.a,i).afterClosed().subscribe((function(i){if(i){var n=e.attribute.value.indexOf(t);e.attribute.value.splice(n,1),e.values=Object.values(e.attribute.value),e.sendEventToParent.emit()}}))}},{key:"drop",value:function(t){this.dragDisabled=!0,Object(a.h)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(t){var e=this,i=this.attribute.value.indexOf(t),n=Object(s.o)();n.width="600px",n.data={attribute:this.attribute,index:i},this.dialog.open(o.b,n).afterClosed().subscribe((function(t){t&&(e.values=Object.values(e.attribute.value),e.sendEventToParent.emit())}))}},{key:"showValue",value:function(t,e){var i=Object(s.o)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.l,i)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.b))},t.\u0275cmp=n.Gb({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"mat-chip-list",0,1),n.Zb("cdkDropListDropped",(function(t){return e.drop(t),e._sendEventToParent()})),n.Hc(3,w,6,9,"mat-chip",2),n.Hc(4,k,5,4,"div",3),n.Hc(5,E,2,3,"mat-form-field",3),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.kc("cdkDropListDisabled",e.dragDisabled),n.Ab(2),n.kc("ngForOf",e.values.slice(0,e.itemsShown)),n.Ab(1),n.kc("ngIf",e.values.length>e.defaultItemsShown),n.Ab(1),n.kc("ngIf",!e.readonly))},directives:[u.d,a.e,l.s,l.t,u.a,a.a,h.a,d.a,f.b,p.c,b.b,u.c],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},"8j5Y":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("5uGe");function r(){}var o=i("IJgj");function c(t,e,i){return function(n){return n.lift(new l(t,e,i))}}var l=function(){function t(e,i,n){g(this,t),this.nextOrObserver=e,this.error=i,this.complete=n}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new h(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),h=function(t){a(i,t);var e=s(i);function i(t,n,a,s){var c;return g(this,i),(c=e.call(this,t))._tapNext=r,c._tapError=r,c._tapComplete=r,c._tapError=a||r,c._tapComplete=s||r,Object(o.a)(n)?(c._context=u(c),c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||r,c._tapError=n.error||r,c._tapComplete=n.complete||r),c}return m(i,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),i}(n.a)},"8lHc":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("IdLP"),r=i("Efrr"),a=i("KRZI"),o=i("gBlb");function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,s=-1;return Object(a.a)(e)?s=Number(e)<1?1:Number(e):Object(o.a)(e)&&(i=e),Object(o.a)(i)||(i=r.a),new n.a((function(e){var n=Object(a.a)(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:s,subscriber:e})}))}function c(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},"9RND":function(t){t.exports=JSON.parse('{"a":"0.21.0"}')},"9bRT":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("IdLP");function r(t){return!!t&&(t instanceof n.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"9wx0":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),r=i("PBFl"),a=i("Jb3d"),o=i("bFHC"),s=i("s2Ay"),c=function(){var t=function t(){g(this,t),this.exportData=new n.o};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(n.Sb(0,"div",0),n.Sb(1,"button",1),n.Sb(2,"mat-icon"),n.Jc(3,"more_vert"),n.Rb(),n.Rb(),n.Sb(4,"mat-menu",null,2),n.Sb(6,"button",3),n.Jc(7),n.ec(8,"translate"),n.Rb(),n.Rb(),n.Sb(9,"mat-menu",null,4),n.Sb(11,"button",5),n.Zb("click",(function(){return e.exportData.emit("csv")})),n.Jc(12,"Csv"),n.Rb(),n.Rb(),n.Rb()),2&t){var i=n.tc(5),r=n.tc(10);n.Ab(1),n.kc("matMenuTriggerFor",i),n.Ab(5),n.kc("matMenuTriggerFor",r),n.Ab(1),n.Lc(" ",n.fc(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[r.b,a.d,o.a,a.e,a.b],pipes:[s.d],styles:[".position-right[_ngcontent-%COMP%]{position:absolute;right:20px;margin:-1.25rem}"]}),t}()},A1vf:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("4sdY"),r=i("Sy1n"),a=i("EkAj"),o=i("Ssnw"),s=i("TkCa"),c=i("EM62");function u(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",9),c.Rb()),2&t){var i=e.$implicit,n=e.index,r=c.dc();c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",r.sideNav)("item",i)("index",n)}}function l(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",10),c.Rb()),2&t){var i=e.$implicit,n=e.index,r=c.dc();c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.accessItems.length-1)}}function h(t,e){if(1&t&&c.Nb(0,"app-side-menu-root-item",2),2&t){var i=c.dc();c.kc("sideNav",i.sideNav)("item",i.facilityItem)}}function d(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",10),c.Rb()),2&t){var i=e.$implicit,n=e.index,r=c.dc(2);c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.facilityItems.length-1)}}function f(t,e){if(1&t&&(c.Sb(0,"div"),c.Hc(1,d,2,5,"div",3),c.Rb()),2&t){var i=c.dc();c.Ab(1),c.kc("ngForOf",i.facilityItems)}}function p(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",10),c.Rb()),2&t){var i=e.$implicit,n=e.index,r=c.dc();c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.userItems.length-1)}}function b(t,e){if(1&t&&c.Nb(0,"app-side-menu-root-item",6),2&t){var i=c.dc();c.kc("sideNav",i.sideNav)("showOpen",i.adminItemOpened)("item",i.adminItem)}}function v(t,e){if(1&t&&(c.Sb(0,"div",8),c.Nb(1,"app-side-menu-item",10),c.Rb()),2&t){var i=e.$implicit,n=e.index,r=c.dc(2);c.kc("@rollInOut",void 0),c.Ab(1),c.kc("sideNav",r.sideNav)("item",i)("index",n)("showLinks",!0)}}function y(t,e){if(1&t&&(c.Sb(0,"div"),c.Hc(1,v,2,5,"div",3),c.Rb()),2&t){var i=c.dc();c.Ab(1),c.kc("ngForOf",i.adminItems)}}var A=function(){var t=function(){function t(e,i,n,r){g(this,t),this.sideMenuService=e,this.sideMenuItemService=i,this.authResolver=n,this.store=r,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}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.mobileView=window.innerWidth<=r.a.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe((function(e){t.setFacilityItems(e)})),this.sideMenuService.accessItemsChange.subscribe((function(e){t.setAccessItems(e)})),this.sideMenuService.adminItemsChange.subscribe((function(e){t.setAdminItems(e)})),this.sideMenuService.userItemsChange.subscribe((function(e){t.setUserItems(e)})),this.sideMenuService.homeItemsChange.subscribe((function(e){t.setHomeItems(e)})),this.sideMenuService.resetChange.subscribe((function(){t.reset()}))}},{key:"reset",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptHome",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptFacility",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAccess",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAdmin",value:function(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptUser",value:function(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}},{key:"setHomeItems",value:function(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}},{key:"setFacilityItems",value:function(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}},{key:"setAccessItems",value:function(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}},{key:"setUserItems",value:function(t){this.userItemOpened=!0,this.resetExceptUser(),this.setNewItems(this.userItems,t)}},{key:"setAdminItems",value:function(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}},{key:"setNewItems",value:function(t,e){for(var i=t.length>e.length?t.length:e.length,n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){for(var r=t.length,a=0;a3&&void 0!==arguments[3]?arguments[3]:null,u=arguments.length>4?arguments[4]:void 0,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;g(this,t),this.matSelect=e,this.changeDetectorRef=i,this._viewportRuler=o,this.matOption=c,this.liveAnnouncer=u,this.matFormField=m,this.placeholderLabel="Suche",this.type="text",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.toggleAll=new n.o,this.onTouched=function(t){},this._options$=new l.a(null),this.optionsList$=this._options$.pipe(Object(p.a)((function(t){return t?t.changes.pipe(Object(b.a)((function(t){return t.toArray()})),Object(v.a)(t.toArray())):Object(h.a)(null)}))),this.optionsLength$=this.optionsList$.pipe(Object(b.a)((function(t){return t?t.length:0}))),this._formControl=new a.g(""),this._showNoEntriesFound$=Object(d.a)([this._formControl.valueChanges,this.optionsLength$]).pipe(Object(b.a)((function(t){var e=r(t,2),i=e[0],n=e[1];return s.noEntriesFoundLabel&&i&&n===s.getOptionsLengthOffset()}))),this._onDestroy=new f.a}return m(t,[{key:"ngOnInit",value:function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.initMultiSelectedValuesTracking(),this.matSelect.openedChange.pipe(Object(y.a)(1),Object(A.a)(this._onDestroy)).subscribe((function(e){e?(t.updateInputWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()})),this.matSelect.openedChange.pipe(Object(w.a)(1)).pipe(Object(A.a)(this._onDestroy)).subscribe((function(){t.matSelect._keyManager?t.matSelect._keyManager.change.pipe(Object(A.a)(t._onDestroy)).subscribe((function(){return t.adjustScrollTopToFitActiveOptionIntoView()})):console.log("_keyManager was not initialized."),t._options=t.matSelect.options;var e=t._options.toArray()[t.getOptionsLengthOffset()];t._options.changes.pipe(Object(A.a)(t._onDestroy)).subscribe((function(){setTimeout((function(){var i=t._options.toArray()[t.getOptionsLengthOffset()],n=t.matSelect._keyManager;n&&t.matSelect.panelOpen&&(!t.matSelect.compareWith(e,i)&&n.setFirstItemActive(),setTimeout((function(){t.updateInputWidth()})),t.disableScrollToActiveOnOptionsChanged||t.adjustScrollTopToFitActiveOptionIntoView()),e=i}))}))})),this._showNoEntriesFound$.pipe(Object(A.a)(this._onDestroy)).subscribe((function(e){t.matOption&&(e?t.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):t.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))})),this._viewportRuler.change().pipe(Object(A.a)(this._onDestroy)).subscribe((function(){t.matSelect.panelOpen&&t.updateInputWidth()})),this.initMultipleHandling(),this.optionsList$.pipe(Object(A.a)(this._onDestroy)).subscribe((function(){t.changeDetectorRef.markForCheck()}))}},{key:"_emitSelectAllBooleanToParent",value:function(t){this.toggleAll.emit(t)}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"_isToggleAllCheckboxVisible",value:function(){return this.matSelect.multiple&&this.showToggleAllCheckbox}},{key:"_handleKeydown",value:function(t){(t.key&&1===t.key.length||t.keyCode>=u.a&&t.keyCode<=u.r||t.keyCode>=u.s&&t.keyCode<=u.k||t.keyCode===u.o||this.preventHomeEndKeyPropagation&&(t.keyCode===u.i||t.keyCode===u.f))&&t.stopPropagation(),!0===this.enableClearOnEscapePressed&&t.keyCode===u.h&&this.value&&(this._reset(!0),t.stopPropagation())}},{key:"_handleKeyup",value:function(t){if(t.keyCode===u.q||t.keyCode===u.e){var e=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex((function(t){return t.id===e}));if(-1!==i){var n=this._options.toArray()[i];this.liveAnnouncer.announce(n.viewValue+" "+this.getAriaIndex(i)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}},{key:"getAriaIndex",value:function(t){return 0===this.getOptionsLengthOffset()?t+1:t}},{key:"getAriaLength",value:function(){return this._options.toArray().length-this.getOptionsLengthOffset()}},{key:"writeValue",value:function(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}},{key:"onBlur",value:function(){this.onTouched()}},{key:"registerOnChange",value:function(t){var e=this;this._formControl.valueChanges.pipe(Object(_.a)((function(t){return t!==e._lastExternalInputValue})),Object(S.a)((function(){return e._lastExternalInputValue=void 0})),Object(A.a)(this._onDestroy)).subscribe(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}}},{key:"_reset",value:function(t){this._formControl.setValue(""),t&&this._focus()}},{key:"initMultipleHandling",value:function(){var t=this;this.matSelect.valueChange.pipe(Object(A.a)(this._onDestroy)).subscribe((function(e){if(t.matSelect.multiple){var i=!1;if(t._formControl.value&&t._formControl.value.length&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var n=t.matSelect.options.map((function(t){return t.value}));t.previousSelectedValues.forEach((function(r){e.some((function(e){return t.matSelect.compareWith(e,r)}))||n.some((function(e){return t.matSelect.compareWith(e,r)}))||(e.push(r),i=!0)}))}i&&(t.matSelect._onChange(e),t.previousSelectedValues=e)}}))}},{key:"adjustScrollTopToFitActiveOptionIntoView",value:function(){if(this.matSelect.panel&&this.matSelect.options.length>0){var t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=Object(o.w)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,r=this.matSelect.panel.nativeElement.scrollTop,a=this.innerSelectSearch.nativeElement.offsetHeight,c=Math.floor((s.d-a)/t),u=Math.round((r+a)/t)-1;u>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:u+c<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(s.d-a))}}},{key:"updateInputWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}}},{key:"getMatOptionHeight",value:function(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}},{key:"initMultiSelectedValuesTracking",value:function(){var t=this;this._formControl.valueChanges.pipe(Object(v.a)(void 0),Object(k.a)((function(t,e){return{currentValue:e,previousValue:t.currentValue}}),{currentValue:void 0,previousValue:void 0}),Object(A.a)(this._onDestroy)).subscribe((function(e){var i=t._options?t._options.toArray():[];t.matSelect.multiple&&!e.previousValue&&(t.previousSelectedValues=i.filter((function(t){return t.selected})).map((function(t){return t.value})))}))}},{key:"getOptionsLengthOffset",value:function(){return this.matOption?1:0}},{key:"isInsideMatOption",get:function(){return!!this.matOption}},{key:"value",get:function(){return this._formControl.value}},{key:"_options",set:function(t){this._options$.next(t)},get:function(){return this._options$.getValue()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.a),n.Mb(n.h),n.Mb(D.h),n.Mb(o.n,8),n.Mb(M.k),n.Mb(c.c,8))},t.\u0275cmp=n.Gb({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){var r;1&t&&n.Fb(i,V,!0),2&t&&n.sc(r=n.ac())&&(e.clearIcon=r.first)},viewQuery:function(t,e){var i;1&t&&(n.Dc(P,!0,n.l),n.Dc(x,!0,n.l)),2&t&&(n.sc(i=n.ac())&&(e.searchSelectInput=i.first),n.sc(i=n.ac())&&(e.innerSelectSearch=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&n.Eb("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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"},outputs:{toggleAll:"toggleAll"},features:[n.zb([{provide:a.p,useExisting:Object(n.U)((function(){return j})),multi:!0}])],ngContentSelectors:K,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",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(n.jc(G),n.Nb(0,"input",0),n.Sb(1,"div",1,2),n.Hc(3,N,1,5,"mat-checkbox",3),n.Sb(4,"input",4,5),n.Zb("keydown",(function(t){return e._handleKeydown(t)}))("keyup",(function(t){return e._handleKeyup(t)}))("blur",(function(){return e.onBlur()})),n.Rb(),n.Hc(6,L,1,0,"mat-spinner",6),n.Hc(7,H,4,2,"button",7),n.ic(8),n.Rb(),n.Hc(9,B,2,1,"div",8),n.ec(10,"async")),2&t&&(n.Ab(1),n.kc("ngClass",n.qc(11,U,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),n.Ab(2),n.kc("ngIf",e._isToggleAllCheckboxVisible()),n.Ab(1),n.kc("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),n.Bb("aria-label",e.ariaLabel),n.Ab(2),n.kc("ngIf",e.searching),n.Ab(1),n.kc("ngIf",e.value&&!e.searching),n.Ab(2),n.kc("ngIf",n.fc(10,9,e._showNoEntriesFound$)))},directives:[O.q,O.t,a.c,a.r,a.h,R.a,I.a,T.c,E.b,C.a],pipes:[O.b],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}),t}(),J=function(){var t=function t(){g(this,t)};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[O.c,a.B,E.c,R.b,C.b,T.b,I.b]]}),t}()},BnyX:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("EM62"),r=i("29Wa"),a=i("Cd2c"),o=i("gcUQ"),s=i("nIj0"),c=i("s2Ay"),u=function(){var t=function(){function t(){g(this,t),this.datePicker=new n.o}return m(t,[{key:"ngOnInit",value:function(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}},{key:"dateChange",value:function(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"space-right",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-form-field",0),n.Zb("click",(function(){return n.xc(i),n.tc(7).open()})),n.Sb(1,"mat-label"),n.Jc(2),n.ec(3,"translate"),n.Rb(),n.Sb(4,"input",1),n.Zb("dateChange",(function(){return e.dateChange()})),n.Rb(),n.Nb(5,"mat-datepicker-toggle",2),n.Nb(6,"mat-datepicker",null,3),n.Rb(),n.Sb(8,"mat-form-field",4),n.Zb("click",(function(){return n.xc(i),n.tc(15).open()})),n.Sb(9,"mat-label"),n.Jc(10),n.ec(11,"translate"),n.Rb(),n.Sb(12,"input",1),n.Zb("dateChange",(function(){return e.dateChange()})),n.Rb(),n.Nb(13,"mat-datepicker-toggle",2),n.Nb(14,"mat-datepicker",null,5),n.Rb()}if(2&t){var r=n.tc(7),a=n.tc(15);n.Ab(2),n.Kc(n.fc(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.Ab(2),n.kc("matDatepicker",r)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.Ab(1),n.kc("for",r),n.Ab(5),n.Kc(n.fc(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.Ab(2),n.kc("matDatepicker",a)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.Ab(1),n.kc("for",a)}},directives:[r.c,r.g,a.b,o.f,s.c,s.r,s.h,o.h,r.j,o.d],pipes:[c.d],styles:[""]}),t}()},BwBJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("Efrr"),r=i("5uGe"),o=i("ryP2");function c(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.a,r=(e=t)instanceof Date&&!isNaN(+e)?+t-i.now():Math.abs(t);return function(t){return t.lift(new u(r,i))}}var u=function(){function t(e,i){g(this,t),this.delay=e,this.scheduler=i}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}]),t}(),l=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t)).delay=n,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return m(i,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,i=new h(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(o.a.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,i=e.queue,n=t.scheduler,r=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var a=Math.max(0,i[0].time-n.now());this.schedule(t,a)}else this.unsubscribe(),e.active=!1}}]),i}(r.a),h=function t(e,i){g(this,t),this.time=e,this.notification=i}},C05f:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var r=i("ZTXN"),o=i("MiDb"),c=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this))._value=t,n}return m(i,[{key:"_subscribe",value:function(t){var e=n(h(i.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value}},{key:"next",value:function(t){n(h(i.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),i}(r.a)},C5kn:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"memberStatusIconColor",type:t,pure:!0}),t}()},CIWc:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("FlRo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&(s.Sb(0,"th",17),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")))}function p(t,e){if(1&t&&(s.Sb(0,"td",18),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.id," ")}}function b(t,e){1&t&&(s.Sb(0,"th",17),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")))}function v(t,e){if(1&t&&(s.Sb(0,"td",18),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.destination.destination," ")}}function y(t,e){1&t&&(s.Sb(0,"th",17),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function A(t,e){if(1&t&&(s.Sb(0,"td",18),s.Jc(1),s.ec(2,"date"),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",s.gc(2,1,i.timestamp,"d.M.y H:mm:ss")," ")}}function w(t,e){1&t&&s.Nb(0,"tr",19)}function _(t,e){1&t&&s.Nb(0,"tr",20)}function S(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,3,3,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Qb(11,13),s.Hc(12,b,3,3,"th",11),s.Hc(13,v,2,1,"td",12),s.Pb(),s.Qb(14,14),s.Hc(15,y,3,3,"th",11),s.Hc(16,A,3,4,"td",12),s.Pb(),s.Hc(17,w,1,0,"tr",15),s.Hc(18,_,1,0,"tr",16),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Kc(s.fc(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(10),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var k=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.taskManager=n,this.notificator=r,this.translate=a,this.loading=!1,this.dataSource=new o.o(this.data.taskResults),this.displayedColumns=["id","destination","time"]}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}},{key:"deleteResults",value:function(){var t=this;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((function(){t.deleteResults()}),(function(){return t.loading=!1}))}},{key:"onDelete",value:function(){this.deleteResults()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(n.o),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"div"),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,S,19,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onDelete()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),s.Ab(2),s.Cb(e.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[r.j,u.t,r.c,l.b,h.c,r.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l],pipes:[c.d,u.f],styles:[""]}),t}()},COMt:function(t,e,i){"use strict";i.d(e,"a",(function(){return G}));var n=i("EM62"),r=i("cqs0"),a=i("iAde"),o=i("cePI"),s=i("FlRo"),c=i("8clQ"),u=i("Ssnw"),l=i("2kYt"),h=i("9wx0"),d=i("+Tre"),f=i("FcRk"),p=i("s2Ay");function b(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",23),n.Sb(1,"mat-checkbox",24),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function v(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",25),n.Sb(1,"mat-checkbox",26),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function y(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function A(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function w(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function _(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.destination.destination)}}function S(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function k(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.destination.type.toUpperCase())}}function E(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function R(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.service.name)}}function C(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function T(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.status)}}function I(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function O(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.gc(2,1,i.timestamp,"d.M.y H:mm:ss"))}}function D(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function M(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.returnCode)}}function P(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function x(t,e){if(1&t&&(n.Sb(0,"span"),n.Jc(1),n.Nb(2,"br"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i)}}function N(t,e){if(1&t&&(n.Sb(0,"td",25),n.Hc(1,x,3,1,"span",28),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngForOf",i.standardMessage.split("\n"))}}function L(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function F(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.errorMessage)}}function z(t,e){1&t&&n.Nb(0,"tr",29)}function H(t,e){if(1&t&&n.Nb(0,"tr",30),2&t){var i=e.$implicit;n.Eb("yellowTableItem","WARNING"===i.status)("greenTableItem","DONE"===i.status)("redTableItem","ERROR"===i.status||"DENIED"===i.status)}}function B(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function j(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}var G=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.pageSizeOptions=c.a,this.taskResults=[],this.selection=new r.c(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.page=new n.o}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new s.o(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return Object(l.I)(t.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}},{key:"getSortDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return Object(l.I)(t.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getSortDataForColumn,t)})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(a.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:40,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",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,"yellowTableItem","greenTableItem","redTableItem",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,b,2,3,"th",6),n.Hc(7,v,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,y,3,3,"th",9),n.Hc(10,A,2,1,"td",10),n.Pb(),n.Qb(11,11),n.Hc(12,w,3,3,"th",9),n.Hc(13,_,2,1,"td",10),n.Pb(),n.Qb(14,12),n.Hc(15,S,3,3,"th",9),n.Hc(16,k,2,1,"td",10),n.Pb(),n.Qb(17,13),n.Hc(18,E,3,3,"th",9),n.Hc(19,R,2,1,"td",10),n.Pb(),n.Qb(20,14),n.Hc(21,C,3,3,"th",9),n.Hc(22,T,2,1,"td",10),n.Pb(),n.Qb(23,15),n.Hc(24,I,3,3,"th",9),n.Hc(25,O,3,4,"td",10),n.Pb(),n.Qb(26,16),n.Hc(27,D,3,3,"th",9),n.Hc(28,M,2,1,"td",10),n.Pb(),n.Qb(29,17),n.Hc(30,P,3,3,"th",9),n.Hc(31,N,2,1,"td",10),n.Pb(),n.Qb(32,18),n.Hc(33,L,3,3,"th",9),n.Hc(34,F,2,1,"td",10),n.Pb(),n.Hc(35,z,1,0,"tr",19),n.Hc(36,H,1,6,"tr",20),n.Rb(),n.Rb(),n.Sb(37,"mat-paginator",21),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(38,B,3,3,"app-alert",22),n.Hc(39,j,3,3,"app-alert",22)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.taskResults.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(31),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.taskResults.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.taskResults.length),n.Ab(1),n.kc("ngIf",0===e.taskResults.length))},directives:[h.a,s.n,o.a,s.c,s.i,s.b,s.k,s.m,a.a,l.t,s.h,d.a,s.a,o.b,l.s,s.j,s.l,f.a],pipes:[p.d,l.f],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),t}()},Cd2c:function(t,e,i){"use strict";i.d(e,"a",(function(){return b})),i.d(e,"b",(function(){return w})),i.d(e,"c",(function(){return _})),i.d(e,"d",(function(){return f}));var n=i("H0K4"),r=i("EM62"),o=i("5XID"),c=i("cZZj"),u=i("mFH5"),l=i("29Wa"),h=i("ZTXN"),d=i("nIj0"),f=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(t){this.minRows=t}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(t){this.maxRows=t}},{key:"matAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}}]),i}(n.c);return t.\u0275fac=function(e){return p(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[r.xb]}),t}(),p=r.Ub(f),b=new r.r("MAT_INPUT_VALUE_ACCESSOR"),v=["button","checkbox","file","hidden","image","radio","range","reset","submit"],y=0,A=Object(u.B)((function t(e,i,n,r){g(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r})),w=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s,u,l,d){var f;g(this,i),(f=e.call(this,s,a,o,r))._elementRef=t,f._platform=n,f.ngControl=r,f._autofillMonitor=l,f._uid="mat-input-"+y++,f.focused=!1,f.stateChanges=new h.a,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return Object(c.e)().has(t)}));var p=f._elementRef.nativeElement,b=p.nodeName.toLowerCase();return f._inputValueAccessor=u||p,f._previousNativeValue=f.value,f.id=f.id,n.IOS&&d.runOutsideAngular((function(){t.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===b,f._isTextarea="textarea"===b,f._isNativeSelect&&(f.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),f}return m(i,[{key:"ngOnInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){if(v.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Object(o.c)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=Object(o.c)(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Object(c.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=Object(o.c)(t)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}}]),i}(A);return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(c.a),r.Mb(d.q,10),r.Mb(d.t,8),r.Mb(d.j,8),r.Mb(u.d),r.Mb(b,10),r.Mb(n.a),r.Mb(r.A))},t.\u0275dir=r.Hb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&r.Zb("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(r.Vb("disabled",e.disabled)("required",e.required),r.Bb("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),r.Eb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[r.zb([{provide:l.d,useExisting:t}]),r.xb,r.yb]}),t}(),_=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[u.d],imports:[[n.d,l.e],n.d,l.e]}),t}()},"D+oT":function(t,e,i){"use strict";i.d(e,"a",(function(){return R}));var n=i("X2Q7"),r=i("iyZ4"),a=i("nyAh"),o=i("Ssnw"),s=i("nIj0"),c=i("EM62"),u=i("29Wa"),l=i("Cd2c"),h=i("PBFl"),d=i("bFHC"),f=i("2kYt"),p=i("csyo"),b=i("NC8S"),v=i("FcRk"),y=i("s2Ay");function A(t,e){1&t&&c.Nb(0,"mat-spinner",8)}var w=function(){return["user","id","name","email","logins","organization"]};function _(t,e){if(1&t){var i=c.Tb();c.Sb(0,"app-users-list",11),c.Zb("page",(function(t){return c.xc(i),c.dc(2).pageChanged(t)})),c.Rb()}if(2&t){var n=c.dc(2);c.kc("pageSize",n.pageSize)("displayedColumns",c.oc(3,w))("users",n.users)}}function S(t,e){1&t&&(c.Sb(0,"app-alert",12),c.Jc(1),c.ec(2,"translate"),c.Rb()),2&t&&(c.kc("alert_type","info"),c.Ab(1),c.Lc(" ",c.fc(2,2,"ADMIN.USERS.SEARCH_INFO")," "))}function k(t,e){1&t&&(c.Sb(0,"app-alert",12),c.Jc(1),c.ec(2,"translate"),c.Rb()),2&t&&(c.kc("alert_type","warn"),c.Ab(1),c.Lc(" ",c.fc(2,2,"ADMIN.USERS.NO_USERS_FOUND")," "))}function E(t,e){if(1&t&&(c.Sb(0,"div"),c.Hc(1,_,1,4,"app-users-list",9),c.Hc(2,S,3,4,"app-alert",10),c.Hc(3,k,3,4,"app-alert",10),c.Rb()),2&t){var i=c.dc();c.Ab(1),c.kc("ngIf",void 0!==i.users&&i.users.length>0),c.Ab(1),c.kc("ngIf",!i.firstSearchDone),c.Ab(1),c.kc("ngIf",i.firstSearchDone&&0===i.users.length)}}var R=function(){var t=function(){function t(e,i,n){g(this,t),this.usersService=e,this.storeService=i,this.tableConfigService=n,this.loading=!1,this.firstSearchDone=!1,this.tableId=r.n,this.attributes=[]}return m(t,[{key:"ngOnInit",value:function(){this.searchControl=new s.g("",[s.F.required,s.F.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.attributes=[a.a.USER_DEF_ORGANIZATION,a.a.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}},{key:"onSearchByString",value:function(){var t=this;this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.loading=!0,this.firstSearchDone=!0,this.usersService.findRichUsersWithAttributes(this.searchControl.value,this.attributes).subscribe((function(e){t.users=e,t.loading=!1}),(function(){t.loading=!1})))}},{key:"onKeyInput",value:function(t){"Enter"===t.key&&this.onSearchByString()}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"findUsersWithoutVO",value:function(){var t=this;this.loading=!0,this.firstSearchDone=!0,this.usersService.getRichUsersWithoutVoWithAttributes(this.attributes).subscribe((function(e){t.users=e,t.loading=!1}),(function(){return t.loading=!1}))}}]),t}();return t.id="AdminUsersComponent",t.\u0275fac=function(e){return new(e||t)(c.Mb(n.p),c.Mb(o.m),c.Mb(r.pb))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("router-component",!0)},decls:19,vars:17,consts:[[3,"keyup"],[1,"page-subtitle"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","users","page",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"pageSize","displayedColumns","users","page"],[3,"alert_type"]],template:function(t,e){1&t&&(c.Sb(0,"div",0),c.Zb("keyup",(function(t){return e.onKeyInput(t)})),c.Sb(1,"h1",1),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Sb(4,"mat-form-field",2),c.Sb(5,"label"),c.Nb(6,"input",3),c.ec(7,"translate"),c.Rb(),c.Sb(8,"mat-error"),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Rb(),c.Sb(11,"button",4),c.Zb("click",(function(){return e.onSearchByString()})),c.Sb(12,"mat-icon"),c.Jc(13,"search"),c.Rb(),c.Rb(),c.Sb(14,"button",5),c.Zb("click",(function(){return e.findUsersWithoutVO()})),c.Jc(15),c.ec(16,"translate"),c.Rb(),c.Hc(17,A,1,0,"mat-spinner",6),c.Hc(18,E,4,3,"div",7),c.Rb()),2&t&&(c.Ab(2),c.Kc(c.fc(3,9,"ADMIN.USERS.TITLE")),c.Ab(4),c.lc("placeholder",c.fc(7,11,"ADMIN.USERS.SEARCH_PLACEHOLDER")),c.kc("formControl",e.searchControl),c.Ab(3),c.Lc(" ",c.fc(10,13,"ADMIN.USERS.EMPTY_SEARCH")," "),c.Ab(2),c.kc("disabled",e.loading),c.Ab(3),c.kc("disabled",e.loading),c.Ab(1),c.Lc(" ",c.fc(16,15,"ADMIN.USERS.USERS_WITHOUT_VO")," "),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[u.c,l.b,s.c,s.r,s.h,u.b,h.b,d.a,f.t,p.c,b.a,v.a],pipes:[y.d],styles:[".search-field[_ngcontent-%COMP%]{width:300px}"]}),t}()},D57K:function(t,e,i){"use strict";function n(t,e,i,n){var r,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,i,o):r(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o}function r(t,e,i,n){return new(i||(i=Promise))((function(r,a){function o(t){try{c(n.next(t))}catch(e){a(e)}}function s(t){try{c(n.throw(t))}catch(e){a(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,s)}c((n=n.apply(t,e||[])).next())}))}i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return r}))},"DG/E":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var r=function(){var t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;g(this,t),this.SchedulerAction=e,this.now=i}return m(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(i,e)}}]),t}();return t.now=function(){return Date.now()},t}(),o=function(t){a(i,t);var e=s(i);function i(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return g(this,i),(n=e.call(this,t,(function(){return i.delegate&&i.delegate!==u(n)?i.delegate.now():a()}))).actions=[],n.active=!1,n.scheduled=void 0,n}return m(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,r):n(h(i.prototype),"schedule",this).call(this,t,e,r)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}}]),i}(r)},Dkjx:function(t,e,i){"use strict";i.d(e,"a",(function(){return D}));var n=i("OZ4H"),r=i("TkCa"),a=i("X2Q7"),o=i("nIj0"),s=i("EM62"),c=i("2kYt"),u=i("PBFl"),l=i("csyo"),h=i("29Wa"),d=i("R7+U"),f=i("+Tre"),p=i("mFH5"),b=i("Cd2c"),v=i("s2Ay");function y(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function A(t,e){1&t&&(s.Sb(0,"mat-option",19),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function w(t,e){1&t&&(s.Sb(0,"mat-option",20),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function _(t,e){if(1&t&&(s.Sb(0,"mat-option",21),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i),s.Ab(1),s.Lc(" ",i.name," ")}}function S(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function k(t,e){if(1&t&&(s.Sb(0,"mat-option",21),s.Jc(1),s.Rb()),2&t){var i=e.$implicit,n=s.dc(2);s.kc("value",i),s.Ab(1),s.Lc(" ",n.getTypeForView(i)," ")}}function E(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function R(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function C(t,e){if(1&t&&(s.Sb(0,"mat-form-field",22),s.Nb(1,"input",23),s.Hc(2,E,3,3,"mat-error",13),s.Hc(3,R,3,3,"mat-error",13),s.Rb()),2&t){var i=s.dc(2);s.Ab(1),s.lc("placeholder",i.getTypeForView(i.selectedType)),s.kc("formControl",i.destinationControl),s.Ab(1),s.kc("ngIf","host"===i.selectedType&&!i.useFacilityHost&&i.destinationControl.hasError("required")),s.Ab(1),s.kc("ngIf",i.destinationControl.hasError("invalidDestination"))}}function T(t,e){if(1&t){var i=s.Tb();s.Sb(0,"mat-checkbox",24),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).useFacilityHost=t})),s.Jc(1),s.ec(2,"translate"),s.Rb()}if(2&t){var n=s.dc(2);s.kc("ngModel",n.useFacilityHost),s.Ab(1),s.Lc(" ",s.fc(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function I(t,e){if(1&t&&(s.Sb(0,"mat-option",21),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i),s.Ab(1),s.Lc(" ",i," ")}}function O(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",7),s.Sb(1,"div",8),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"mat-form-field"),s.Sb(5,"mat-select",9),s.ec(6,"translate"),s.Hc(7,A,3,3,"mat-option",10),s.Hc(8,w,3,3,"mat-option",11),s.Hc(9,_,2,2,"mat-option",12),s.Rb(),s.Hc(10,S,3,3,"mat-error",13),s.Rb(),s.Sb(11,"mat-checkbox",14),s.Zb("change",(function(){return s.xc(i),s.dc().getServices()}))("ngModelChange",(function(t){return s.xc(i),s.dc().servicesOnFacility=t})),s.Jc(12),s.ec(13,"translate"),s.Rb(),s.Sb(14,"mat-form-field"),s.Sb(15,"mat-select",15),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().selectedType=t}))("selectionChange",(function(){return s.xc(i),s.dc().destinationControl.updateValueAndValidity()})),s.ec(16,"translate"),s.Hc(17,k,2,2,"mat-option",12),s.Rb(),s.Rb(),s.Hc(18,C,4,4,"mat-form-field",16),s.Hc(19,T,3,4,"mat-checkbox",17),s.Sb(20,"mat-form-field"),s.Sb(21,"mat-select",18),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().selectedPropagation=t})),s.ec(22,"translate"),s.Hc(23,I,2,2,"mat-option",12),s.Rb(),s.Rb(),s.Sb(24,"div",8),s.Jc(25),s.ec(26,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Kc(s.fc(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),s.Ab(3),s.lc("placeholder",s.fc(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),s.kc("formControl",n.serviceControl),s.Ab(2),s.kc("ngIf",0!==n.services.length),s.Ab(1),s.kc("ngIf",0===n.services.length),s.Ab(1),s.kc("ngForOf",n.services),s.Ab(1),s.kc("ngIf",null==n.serviceControl.value),s.Ab(1),s.kc("ngModel",n.servicesOnFacility),s.Ab(1),s.Kc(s.fc(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),s.Ab(3),s.lc("placeholder",s.fc(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),s.kc("ngModel",n.selectedType),s.Ab(2),s.kc("ngForOf",n.types),s.Ab(1),s.kc("ngIf",!("host"===n.selectedType&&n.useFacilityHost)),s.Ab(1),s.kc("ngIf","host"===n.selectedType),s.Ab(2),s.lc("placeholder",s.fc(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),s.kc("ngModel",n.selectedPropagation),s.Ab(2),s.kc("ngForOf",n.propagations),s.Ab(2),s.Lc(" ",s.fc(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+n.selectedPropagation)," ")}}var D=function(){var t=function(){function t(e,i,n,r){g(this,t),this.dialogRef=e,this.data=i,this.facilitiesManager=n,this.servicesManager=r,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(/^(([^<>()\[\]\\.,;:\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]{2,}))$/),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("[(http(s)?):\\/\\/(www\\.)?a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-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-_.:/]*$")}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.serviceControl=new o.g(void 0,o.F.required),this.destinationControl=new o.g("",this.getDestinationValidator()),this.emailControl=new o.g("",[o.F.required,o.F.pattern(this.emailRegex)]),this.facilitiesManager.getHosts(this.data.facility.id).subscribe((function(e){t.hosts=e,t.servicesOnFacility=!0,t.getServices(),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"getDestinationValidator",value:function(){var t=this;return function(e){if(!e.value)return null;var i;switch(t.selectedType){case"host":case"host-windows-proxy":i=t.hostPattern;break;case"email":case"semail":i=t.emailRegex;break;case"url":i=t.urlPattern;break;case"user@host":case"user@host-windows":i=t.userAtHostPattern;break;case"user@host:port":i=t.userAtHostPortPattern;break;case"service-specific":i=t.serviceSpecificPattern;break;default:return null}return i.test(e.value)?null:{invalidDestination:{value:e.value}}}}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1})):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1})):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1})):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"getServices",value:function(){var t=this;this.loading=!0,this.servicesOnFacility?this.servicesManager.getAssignedServices(this.data.facility.id).subscribe((function(e){t.services=e}),(function(){return t.loading=!1})):this.servicesManager.getServices().subscribe((function(e){t.services=e}),(function(){return t.loading=!1})),this.loading=!1,this.serviceControl.setValue(void 0)}},{key:"getTypeForView",value:function(t){return"semail"===t?"Send Mail":"service-specific"===t?"Service Specific":t}},{key:"invalidDestination",value:function(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.g),s.Mb(a.n))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,y,1,0,"mat-spinner",1),s.Hc(5,O,27,30,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.data.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading||e.invalidDestination()||e.serviceControl.invalid||"noService"===e.serviceControl.value),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[n.j,c.t,n.c,u.b,l.c,n.g,h.c,d.a,o.C,o.r,o.h,c.s,f.a,o.u,p.n,h.b,b.b,o.c],pipes:[v.d],styles:[""],data:{animation:[r.c]}}),t}()},DnAX:function(t,e,i){"use strict";i.d(e,"a",(function(){return at}));var n=i("OZ4H"),r=i("X2Q7"),a=i("8clQ"),o=i("HHEo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo"),f=i("KZIX"),p=i("dEHC"),b=i("29Wa"),v=i("Cd2c"),y=i("nIj0"),A=i("+Tre"),w=i("R7+U"),_=i("mFH5"),S=i("6Xhx"),k=i("H0K4"),E=i("g3Wv"),R=i("rmDM"),C=i("Qgg6");function T(t,e){1&t&&s.Nb(0,"mat-spinner",7)}function I(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"section"),s.Sb(5,"mat-checkbox",20),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(3).applicationFormItem.updatable=t})),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(3);s.Ab(1),s.kc("label",s.fc(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE"))("description",s.fc(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.updatable)}}function O(t,e){if(1&t&&(s.Sb(0,"mat-option",23),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i.value),s.Ab(1),s.Lc(" ",i.displayName," ")}}function D(t,e){if(1&t&&(s.Sb(0,"mat-option",23),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i.value),s.Ab(1),s.Lc(" ",i.displayName," ")}}function M(t,e){if(1&t&&(s.Sb(0,"mat-option",23),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i.value),s.Ab(1),s.Lc(" ",i.displayName," ")}}function P(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",12),s.Sb(1,"mat-form-field",12),s.Sb(2,"input",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(3).applicationFormItem.federationAttribute=t})),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(3);s.Ab(2),s.kc("ngModel",n.applicationFormItem.federationAttribute)}}function x(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"section"),s.Sb(5,"mat-checkbox",20),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.required=t})),s.Rb(),s.Rb(),s.Rb(),s.Hc(6,I,6,7,"div",16),s.Sb(7,"app-edit-application-form-item-line",11),s.ec(8,"translate"),s.ec(9,"translate"),s.Sb(10,"mat-form-field",12),s.Sb(11,"mat-select",17),s.Zb("valueChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.perunSourceAttribute=t})),s.Hc(12,O,2,2,"mat-option",18),s.Rb(),s.Rb(),s.Rb(),s.Sb(13,"app-edit-application-form-item-line",11),s.ec(14,"translate"),s.ec(15,"translate"),s.Sb(16,"mat-form-field",12),s.Sb(17,"mat-select",17),s.Zb("valueChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.perunDestinationAttribute=t})),s.Hc(18,D,2,2,"mat-option",18),s.Rb(),s.Rb(),s.Rb(),s.Sb(19,"app-edit-application-form-item-line",11),s.ec(20,"translate"),s.ec(21,"translate"),s.Sb(22,"mat-form-field",12),s.Sb(23,"mat-select",21),s.Zb("selectionChange",(function(){return s.xc(i),s.dc(2).federationAttributeschanged()}))("valueChange",(function(t){return s.xc(i),s.dc(2).federationAttribute=t})),s.Hc(24,M,2,2,"mat-option",18),s.Rb(),s.Rb(),s.Hc(25,P,3,1,"div",22),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED"))("description",s.fc(3,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.required),s.Ab(1),s.kc("ngIf",n.typesWithUpdatable.indexOf(n.applicationFormItem.type)>-1),s.Ab(1),s.kc("label",s.fc(8,21,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",s.fc(9,23,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),s.Ab(4),s.kc("value",n.applicationFormItem.perunSourceAttribute),s.Ab(1),s.kc("ngForOf",n.sourceAttributes),s.Ab(1),s.kc("label",s.fc(14,25,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",s.fc(15,27,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),s.Ab(4),s.kc("value",n.applicationFormItem.perunDestinationAttribute),s.Ab(1),s.kc("ngForOf",n.destinationAttributes),s.Ab(1),s.kc("label",s.fc(20,29,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",s.fc(21,31,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),s.Ab(4),s.kc("value",n.federationAttribute),s.Ab(1),s.kc("ngForOf",n.federationAttributes),s.Ab(1),s.kc("ngIf","custom"===n.federationAttribute)}}function N(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"mat-form-field",12),s.Sb(5,"input",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.regex=t})),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",s.fc(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.regex)}}function L(t,e){if(1&t&&(s.Sb(0,"mat-option",23),s.Jc(1),s.ec(2,"applicationFormItemDisabled"),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i),s.Ab(1),s.Lc(" ",s.fc(2,2,i)," ")}}function F(t,e){if(1&t){var i=s.Tb();s.Sb(0,"perun-web-apps-app-form-item-search-select",24),s.Zb("itemSelected",(function(t){return s.xc(i),s.dc(3).disabledDependencyItem=t})),s.Rb()}if(2&t){var n=s.dc(3);s.kc("item",n.disabledDependencyItem)("items",n.possibleDependencyItems)}}function z(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"mat-form-field",12),s.Sb(5,"mat-select",17),s.Zb("valueChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.disabled=t})),s.Hc(6,L,3,4,"mat-option",18),s.Rb(),s.Rb(),s.Rb(),s.Sb(7,"app-edit-application-form-item-line",11),s.ec(8,"translate"),s.ec(9,"translate"),s.Sb(10,"div",12),s.Hc(11,F,1,2,"perun-web-apps-app-form-item-search-select",19),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",s.fc(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),s.Ab(4),s.kc("value",n.applicationFormItem.disabled),s.Ab(1),s.kc("ngForOf",n.disabledValues),s.Ab(1),s.kc("label",s.fc(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",s.fc(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),s.Ab(4),s.kc("ngIf",null!==n.disabledDependencyItem)}}function H(t,e){if(1&t&&(s.Sb(0,"mat-option",23),s.Jc(1),s.ec(2,"applicationFormItemHidden"),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i),s.Ab(1),s.Lc(" ",s.fc(2,2,i)," ")}}function B(t,e){if(1&t){var i=s.Tb();s.Sb(0,"perun-web-apps-app-form-item-search-select",24),s.Zb("itemSelected",(function(t){return s.xc(i),s.dc(2).hiddenDependencyItem=t})),s.Rb()}if(2&t){var n=s.dc(2);s.kc("item",n.hiddenDependencyItem)("items",n.possibleDependencyItems)}}function j(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"mat-form-field",12),s.Sb(5,"textarea",25),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.en.label=t})),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",s.fc(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),s.Ab(4),s.kc("cdkTextareaAutosize",!0)("ngModel",n.applicationFormItem.i18n.en.label)}}function G(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"mat-form-field",12),s.Sb(5,"textarea",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.en.label=t})),s.Rb(),s.Rb(),s.Rb(),s.Sb(6,"app-edit-application-form-item-line",11),s.ec(7,"translate"),s.ec(8,"translate"),s.Sb(9,"mat-form-field",12),s.Sb(10,"textarea",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.en.help=t})),s.Rb(),s.Rb(),s.Rb(),s.Sb(11,"app-edit-application-form-item-line",11),s.ec(12,"translate"),s.ec(13,"translate"),s.Sb(14,"mat-form-field",12),s.Sb(15,"textarea",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.en.errorMessage=t})),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",s.fc(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.i18n.en.label),s.Ab(1),s.kc("label",s.fc(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",s.fc(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.i18n.en.help),s.Ab(1),s.kc("label",s.fc(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",s.fc(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.i18n.en.errorMessage)}}function U(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"mat-form-field",12),s.Sb(5,"textarea",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.en.label=t})),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",s.fc(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.i18n.en.label)}}function K(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Jc(1),s.ec(2,"translate"),s.Sb(3,"mat-form-field"),s.Sb(4,"input",13),s.Zb("ngModelChange",(function(t){return s.xc(i),e.$implicit[0]=t})),s.Rb(),s.Rb(),s.Jc(5),s.ec(6,"translate"),s.Sb(7,"mat-form-field"),s.Sb(8,"input",13),s.Zb("ngModelChange",(function(t){return s.xc(i),e.$implicit[1]=t})),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=e.$implicit;s.Ab(1),s.Lc(" ",s.fc(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),s.Ab(3),s.kc("ngModel",n[0]),s.Ab(1),s.Lc(" ",s.fc(6,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),s.Ab(3),s.kc("ngModel",n[1])}}function V(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"div",26),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",27),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"div",28),s.Sb(8,"button",29),s.Zb("click",(function(){return s.xc(i),s.dc(2).sortEnOptionsAZ()})),s.Sb(9,"i",30),s.Jc(10,"arrow_downward"),s.Rb(),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Sb(13,"button",31),s.Zb("click",(function(){return s.xc(i),s.dc(2).sortEnOptionsZA()})),s.Sb(14,"i",30),s.Jc(15,"arrow_upward"),s.Rb(),s.Jc(16),s.ec(17,"translate"),s.Rb(),s.Rb(),s.Hc(18,K,9,8,"div",32),s.Sb(19,"button",33),s.Zb("click",(function(){return s.xc(i),s.dc(2).addEnOption()})),s.Jc(20),s.ec(21,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(2),s.Lc("",s.fc(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),":"),s.Ab(3),s.Lc(" ",s.fc(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),s.Ab(6),s.Lc(" ",s.fc(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),s.Ab(5),s.Lc(" ",s.fc(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),s.Ab(2),s.kc("ngForOf",n.optionsEn),s.Ab(2),s.Lc(" ",s.fc(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}function q(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"mat-form-field",12),s.Sb(5,"textarea",25),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.cs.label=t})),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",s.fc(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),s.Ab(4),s.kc("cdkTextareaAutosize",!0)("ngModel",n.applicationFormItem.i18n.cs.label)}}function J(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"mat-form-field",12),s.Sb(5,"textarea",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.cs.label=t})),s.Rb(),s.Rb(),s.Rb(),s.Sb(6,"app-edit-application-form-item-line",11),s.ec(7,"translate"),s.ec(8,"translate"),s.Sb(9,"mat-form-field",12),s.Sb(10,"textarea",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.cs.help=t})),s.Rb(),s.Rb(),s.Rb(),s.Sb(11,"app-edit-application-form-item-line",11),s.ec(12,"translate"),s.ec(13,"translate"),s.Sb(14,"mat-form-field",12),s.Sb(15,"textarea",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.cs.errorMessage=t})),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",s.fc(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.i18n.cs.label),s.Ab(1),s.kc("label",s.fc(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",s.fc(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.i18n.cs.help),s.Ab(1),s.kc("label",s.fc(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",s.fc(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.i18n.cs.errorMessage)}}function W(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"app-edit-application-form-item-line",11),s.ec(2,"translate"),s.ec(3,"translate"),s.Sb(4,"mat-form-field",12),s.Sb(5,"textarea",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc(2).applicationFormItem.i18n.cs.label=t})),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(1),s.kc("label",s.fc(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",s.fc(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.i18n.cs.label)}}function Z(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Jc(1),s.ec(2,"translate"),s.Sb(3,"mat-form-field"),s.Sb(4,"input",13),s.Zb("ngModelChange",(function(t){return s.xc(i),e.$implicit[0]=t})),s.Rb(),s.Rb(),s.Jc(5),s.ec(6,"translate"),s.Sb(7,"mat-form-field"),s.Sb(8,"input",13),s.Zb("ngModelChange",(function(t){return s.xc(i),e.$implicit[1]=t})),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=e.$implicit;s.Ab(1),s.Lc(" ",s.fc(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),s.Ab(3),s.kc("ngModel",n[0]),s.Ab(1),s.Lc(" ",s.fc(6,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),s.Ab(3),s.kc("ngModel",n[1])}}function Y(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"div",26),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",27),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"div",28),s.Sb(8,"button",29),s.Zb("click",(function(){return s.xc(i),s.dc(2).sortCsOptionsAZ()})),s.Sb(9,"i",30),s.Jc(10,"arrow_downward"),s.Rb(),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Sb(13,"button",31),s.Zb("click",(function(){return s.xc(i),s.dc(2).sortCsOptionsZA()})),s.Sb(14,"i",30),s.Jc(15,"arrow_upward"),s.Rb(),s.Jc(16),s.ec(17,"translate"),s.Rb(),s.Rb(),s.Hc(18,Z,9,8,"div",32),s.Sb(19,"button",33),s.Zb("click",(function(){return s.xc(i),s.dc(2).addCsOption()})),s.Jc(20),s.ec(21,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc(2);s.Ab(2),s.Lc("",s.fc(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),":"),s.Ab(3),s.Lc(" ",s.fc(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),s.Ab(6),s.Lc(" ",s.fc(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),s.Ab(5),s.Lc(" ",s.fc(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),s.Ab(2),s.kc("ngForOf",n.optionsCs),s.Ab(2),s.Lc(" ",s.fc(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}var X=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},Q=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},$=function(){return["HEADING","HTML_COMMENT"]},tt=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},et=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},it=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function nt(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",8),s.Sb(1,"mat-tab-group",9),s.Sb(2,"mat-tab",10),s.ec(3,"translate"),s.Sb(4,"app-edit-application-form-item-line",11),s.ec(5,"translate"),s.ec(6,"translate"),s.Sb(7,"mat-form-field",12),s.Sb(8,"input",13),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().applicationFormItem.shortname=t})),s.Rb(),s.Rb(),s.Rb(),s.Sb(9,"app-edit-application-form-item-line",11),s.ec(10,"translate"),s.ec(11,"translate"),s.Jc(12),s.ec(13,"applicationFormItemType"),s.Rb(),s.Sb(14,"app-edit-application-form-item-line",11),s.ec(15,"translate"),s.ec(16,"translate"),s.Sb(17,"section"),s.Sb(18,"mat-checkbox",14),s.Zb("change",(function(){return s.xc(i),s.dc().onChangingType("INITIAL")})),s.Jc(19),s.ec(20,"translate"),s.Rb(),s.Sb(21,"mat-checkbox",15),s.Zb("change",(function(){return s.xc(i),s.dc().onChangingType("EXTENSION")})),s.Jc(22),s.ec(23,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Hc(24,x,26,33,"div",16),s.Hc(25,N,6,7,"div",16),s.Hc(26,z,12,15,"div",16),s.Sb(27,"app-edit-application-form-item-line",11),s.ec(28,"translate"),s.ec(29,"translate"),s.Sb(30,"mat-form-field",12),s.Sb(31,"mat-select",17),s.Zb("valueChange",(function(t){return s.xc(i),s.dc().applicationFormItem.hidden=t})),s.Hc(32,H,3,4,"mat-option",18),s.Rb(),s.Rb(),s.Rb(),s.Sb(33,"app-edit-application-form-item-line",11),s.ec(34,"translate"),s.ec(35,"translate"),s.Sb(36,"div",12),s.Hc(37,B,1,2,"perun-web-apps-app-form-item-search-select",19),s.Rb(),s.Rb(),s.Rb(),s.Sb(38,"mat-tab",10),s.ec(39,"translate"),s.Hc(40,j,6,8,"div",16),s.Hc(41,G,16,21,"div",16),s.Hc(42,U,6,7,"div",16),s.Hc(43,V,22,16,"div",16),s.Rb(),s.Sb(44,"mat-tab",10),s.ec(45,"translate"),s.Hc(46,q,6,8,"div",16),s.Hc(47,J,16,21,"div",16),s.Hc(48,W,6,7,"div",16),s.Hc(49,Y,22,16,"div",16),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.lc("label",s.fc(3,33,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),s.Ab(2),s.kc("label",s.fc(5,35,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",s.fc(6,37,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.shortname),s.Ab(1),s.kc("label",s.fc(10,39,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",s.fc(11,41,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),s.Ab(3),s.Lc(" ",s.fc(13,43,n.applicationFormItem.type)," "),s.Ab(2),s.kc("label",s.fc(15,45,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",s.fc(16,47,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),s.Ab(4),s.kc("ngModel",n.applicationFormItem.applicationTypes.includes("INITIAL")),s.Ab(1),s.Lc(" ",s.fc(20,49,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),s.Ab(2),s.kc("ngModel",n.applicationFormItem.applicationTypes.includes("EXTENSION")),s.Ab(1),s.Lc(" ",s.fc(23,51,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),s.Ab(2),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(65,X))),s.Ab(1),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(66,Q))),s.Ab(1),s.kc("ngIf",n.typesWithDisabled.indexOf(n.applicationFormItem.type)>-1),s.Ab(1),s.kc("label",s.fc(28,53,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",s.fc(29,55,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),s.Ab(4),s.kc("value",n.applicationFormItem.hidden),s.Ab(1),s.kc("ngForOf",n.hiddenValues),s.Ab(1),s.kc("label",s.fc(34,57,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",s.fc(35,59,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),s.Ab(4),s.kc("ngIf",null!==n.hiddenDependencyItem),s.Ab(1),s.lc("label",s.fc(39,61,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_EN")),s.Ab(2),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(67,$))),s.Ab(1),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(68,tt))),s.Ab(1),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(69,et))),s.Ab(1),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(70,it))),s.Ab(1),s.lc("label",s.fc(45,63,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_CS")),s.Ab(2),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(71,$))),s.Ab(1),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(72,tt))),s.Ab(1),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(73,et))),s.Ab(1),s.kc("ngIf",n.isApplicationFormItemOfType(s.oc(74,it)))}}var rt=function t(e,i){g(this,t),this.value=i,this.displayName=e},at=function(){var t=function(){function t(e,i,n,r){g(this,t),this.dialogRef=e,this.data=i,this.attributesManager=n,this.translateService=r,this.federationAttributes=[],this.federationAttribute="",this.sourceAttributes=[],this.destinationAttributes=[],this.optionsEn=[],this.optionsCs=[],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=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.hiddenDependencyItem=this.data.allItems.find((function(e){return e.id===t.data.applicationFormItem.hiddenDependencyItemId})),this.hiddenDependencyItem||(this.hiddenDependencyItem=o.b),this.disabledDependencyItem=this.data.allItems.find((function(e){return e.id===t.data.applicationFormItem.disabledDependencyItemId})),this.disabledDependencyItem||(this.disabledDependencyItem=o.b),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=Object(a.d)(),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe((function(e){t.attributeDefinitions=e,t.getDestinationAndSourceAttributes(),t.loading=!1}),(function(){return t.loading=!1})),this.getFederationAttributes(),this.getFederationAttribute(),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}},{key:"getPossibleDepItems",value:function(){var t=this;return[o.b].concat(this.data.allItems.filter((function(e){return t.dependencyTypes.indexOf(e.type)>-1})).filter((function(e){return e.id!==t.data.applicationFormItem.id})))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===o.b?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===o.b?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}},{key:"onChangingType",value:function(t){if(this.applicationFormItem.applicationTypes.includes(t)){var e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}},{key:"getDestinationAndSourceAttributes",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe((function(e){t.sourceAttributes.push(new rt(e,"")),t.destinationAttributes.push(new rt(e,""))}));var e,i=d(this.attributeDefinitions);try{for(i.s();!(e=i.n()).done;){var n=e.value;"user"===n.entity.toLowerCase()||"member"===n.entity.toLowerCase()?(this.sourceAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName)),this.destinationAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName))):("vo"===n.entity.toLowerCase()||"group"===n.entity.toLowerCase()&&this.data.group)&&this.sourceAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName))}}catch(r){i.e(r)}finally{i.f()}}},{key:"getFederationAttributes",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe((function(e){t.federationAttributes.push(new rt(e,"")),t.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe((function(e){t.federationAttributes.push(new rt(e,"custom")),t.federationAttributes.push(new rt("Display name","displayName")),t.federationAttributes.push(new rt("Common name","cn")),t.federationAttributes.push(new rt("Mail","mail")),t.federationAttributes.push(new rt("Organization","o")),t.federationAttributes.push(new rt("Level of Assurance (LoA)","loa")),t.federationAttributes.push(new rt("First name","givenName")),t.federationAttributes.push(new rt("Surname","sn")),t.federationAttributes.push(new rt("EPPN","eppn")),t.federationAttributes.push(new rt("IdP Category","md_entityCategory")),t.federationAttributes.push(new rt("IdP Affiliation","affiliation")),t.federationAttributes.push(new rt("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),t.federationAttributes.push(new rt("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),t.federationAttributes.push(new rt("schacHomeOrganization","schacHomeOrganization")),t.federationAttributes.push(new rt("Login","uid")),t.federationAttributes.push(new rt("Alternative login name","alternativeLoginName"))}))}))}},{key:"getFederationAttribute",value:function(){if(this.applicationFormItem.federationAttribute){var t,e=d(this.federationAttributes);try{for(e.s();!(t=e.n()).done;){var i=t.value;if(i.value===this.applicationFormItem.federationAttribute)return void(this.federationAttribute=i.value)}}catch(n){e.e(n)}finally{e.f()}this.federationAttribute="custom"}}},{key:"federationAttributeschanged",value:function(){this.applicationFormItem.federationAttribute="custom"!==this.federationAttribute?this.federationAttribute:""}},{key:"getDefinition",value:function(t){var e=t.namespace.split(":");return null===e[4]?"null":e[4]}},{key:"addEnOption",value:function(){this.optionsEn.push(["",""])}},{key:"addCsOption",value:function(){this.optionsCs.push(["",""])}},{key:"updateOptions",value:function(){var t,e="",i=d(this.optionsEn);try{for(i.s();!(t=i.n()).done;){var n=t.value;""!==n[0]&&""!==n[1]&&(e=""===e?n[0]+"#"+n[1]:e+"|"+n[0]+"#"+n[1])}}catch(c){i.e(c)}finally{i.f()}this.applicationFormItem.i18n.en.options=e;var r,a="",o=d(this.optionsCs);try{for(o.s();!(r=o.n()).done;){var s=r.value;""!==s[0]&&""!==s[1]&&(a=""===a?s[0]+"#"+s[1]:a+"|"+s[0]+"#"+s[1])}}catch(c){o.e(c)}finally{o.f()}this.applicationFormItem.i18n.cs.options=a}},{key:"getOptions",value:function(){if(this.applicationFormItem.i18n.en.options){var t,e=d(this.applicationFormItem.i18n.en.options.split("|"));try{for(e.s();!(t=e.n()).done;){var i=t.value.split("#");this.optionsEn.push([i[0],i[1]])}}catch(o){e.e(o)}finally{e.f()}}if(this.applicationFormItem.i18n.cs.options){var n,r=d(this.applicationFormItem.i18n.cs.options.split("|"));try{for(r.s();!(n=r.n()).done;){var a=n.value.split("#");this.optionsCs.push([a[0],a[1]])}}catch(o){r.e(o)}finally{r.f()}}}},{key:"sortEnOptionsAZ",value:function(){this.optionsEn=this.optionsEn.sort((function(t,e){return t[1]>e[1]?1:t[1]e[1]?-1:t[1]e[1]?-1:t[1]e[1]?1:t[1]-1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(r.c),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"label","description"],[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,"ngModel","ngModelChange"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"div",0),s.Sb(2,"h1",1),s.Jc(3),s.ec(4,"translate"),s.Rb(),s.Hc(5,T,1,0,"mat-spinner",2),s.Hc(6,nt,50,75,"div",3),s.Sb(7,"div",4),s.Sb(8,"button",5),s.Zb("click",(function(){return e.cancel()})),s.Jc(9),s.ec(10,"translate"),s.Rb(),s.Sb(11,"button",6),s.Zb("click",(function(){return e.submit()})),s.Jc(12),s.ec(13,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Db("",e.theme," h-100"),s.Ab(3),s.Mc("",s.fc(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname,""),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,f.c,f.a,p.a,b.c,v.b,y.c,y.r,y.u,A.a,w.a,u.s,_.n,S.a,k.c],pipes:[c.d,E.a,R.a,C.a],styles:[""]}),t}()},Ds80:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("EM62"),r=i("2kYt"),a=i("bFHC"),o=i("Y2X+"),s=i("s2Ay");function c(t,e){1&t&&(n.Sb(0,"mat-icon",1),n.ec(1,"translate"),n.Jc(2," visibility\n"),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}var u=function(){var t=function(){function t(){g(this,t),this.recentIds=[]}return m(t,[{key:"ngOnChanges",value:function(t){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},features:[n.yb],decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(t,e){1&t&&n.Hc(0,c,3,3,"mat-icon",0),2&t&&n.kc("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[r.t,a.a,o.a],pipes:[s.d],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t}()},E5oP:function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o}));var n=i("EM62"),r=i("2kYt"),a=new n.r("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(n.V)(r.e)}}),o=function(){var t=function(){function t(e){if(g(this,t),this.value="ltr",this.change=new n.o,e){var i=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||i;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return m(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Wb(a,8))},t.\u0275prov=Object(n.Ib)({factory:function(){return new t(Object(n.Wb)(a,8))},token:t,providedIn:"root"}),t}(),s=function(){var t=function(){function t(){g(this,t),this._dir="ltr",this._isInitialized=!1,this.change=new n.o}return m(t,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(t){var e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Bb("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[n.zb([{provide:o,useExisting:t}])]}),t}(),c=function(){var t=function t(){g(this,t)};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t}()},EFHi:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("8clQ"),r=i("EM62"),a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t){return Object(n.D)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"technicalOwners",type:t,pure:!0}),t}()},EM62:function(t,o,c){"use strict";c.d(o,"a",(function(){return za})),c.d(o,"b",(function(){return au})),c.d(o,"c",(function(){return tu})),c.d(o,"d",(function(){return Qc})),c.d(o,"e",(function(){return $c})),c.d(o,"f",(function(){return Zu})),c.d(o,"g",(function(){return zu})),c.d(o,"h",(function(){return Aa})),c.d(o,"i",(function(){return bu})),c.d(o,"j",(function(){return As})),c.d(o,"k",(function(){return cu})),c.d(o,"l",(function(){return ws})),c.d(o,"m",(function(){return Vu})),c.d(o,"n",(function(){return Gi})),c.d(o,"o",(function(){return Tc})),c.d(o,"p",(function(){return rt})),c.d(o,"q",(function(){return w})),c.d(o,"r",(function(){return nt})),c.d(o,"s",(function(){return Fa})),c.d(o,"t",(function(){return Bs})),c.d(o,"u",(function(){return js})),c.d(o,"v",(function(){return su})),c.d(o,"w",(function(){return vt})),c.d(o,"x",(function(){return Bu})),c.d(o,"y",(function(){return mt})),c.d(o,"z",(function(){return Pu})),c.d(o,"A",(function(){return yu})),c.d(o,"B",(function(){return _})),c.d(o,"C",(function(){return ru})),c.d(o,"D",(function(){return nu})),c.d(o,"E",(function(){return Oc})),c.d(o,"F",(function(){return Es})),c.d(o,"G",(function(){return Ss})),c.d(o,"H",(function(){return ks})),c.d(o,"I",(function(){return Cs})),c.d(o,"J",(function(){return Dn})),c.d(o,"K",(function(){return k})),c.d(o,"L",(function(){return Uu})),c.d(o,"M",(function(){return Vs})),c.d(o,"N",(function(){return Cu})),c.d(o,"O",(function(){return _a})),c.d(o,"P",(function(){return Ts})),c.d(o,"Q",(function(){return Js})),c.d(o,"R",(function(){return Tt})),c.d(o,"S",(function(){return xu})),c.d(o,"T",(function(){return sn})),c.d(o,"U",(function(){return j})),c.d(o,"V",(function(){return ft})),c.d(o,"W",(function(){return on})),c.d(o,"X",(function(){return Ju})),c.d(o,"Y",(function(){return Iu})),c.d(o,"Z",(function(){return ou})),c.d(o,"ab",(function(){return Sa})),c.d(o,"bb",(function(){return uc})),c.d(o,"cb",(function(){return In})),c.d(o,"db",(function(){return dn})),c.d(o,"eb",(function(){return Yi})),c.d(o,"fb",(function(){return Qi})),c.d(o,"gb",(function(){return nn})),c.d(o,"hb",(function(){return tn})),c.d(o,"ib",(function(){return $i})),c.d(o,"jb",(function(){return en})),c.d(o,"kb",(function(){return ac})),c.d(o,"lb",(function(){return qu})),c.d(o,"mb",(function(){return oc})),c.d(o,"nb",(function(){return sc})),c.d(o,"ob",(function(){return Xi})),c.d(o,"pb",(function(){return Z})),c.d(o,"qb",(function(){return Za})),c.d(o,"rb",(function(){return Ao})),c.d(o,"sb",(function(){return yo})),c.d(o,"tb",(function(){return rc})),c.d(o,"ub",(function(){return ae})),c.d(o,"vb",(function(){return z})),c.d(o,"wb",(function(){return Zi})),c.d(o,"xb",(function(){return ja})),c.d(o,"yb",(function(){return $t})),c.d(o,"zb",(function(){return ms})),c.d(o,"Ab",(function(){return Qn})),c.d(o,"Bb",(function(){return io})),c.d(o,"Cb",(function(){return Go})),c.d(o,"Db",(function(){return ss})),c.d(o,"Eb",(function(){return jo})),c.d(o,"Fb",(function(){return Uc})),c.d(o,"Gb",(function(){return Mt})),c.d(o,"Hb",(function(){return Bt})),c.d(o,"Ib",(function(){return T})),c.d(o,"Jb",(function(){return I})),c.d(o,"Kb",(function(){return Ft})),c.d(o,"Lb",(function(){return jt})),c.d(o,"Mb",(function(){return so})),c.d(o,"Nb",(function(){return po})),c.d(o,"Ob",(function(){return mo})),c.d(o,"Pb",(function(){return bo})),c.d(o,"Qb",(function(){return go})),c.d(o,"Rb",(function(){return fo})),c.d(o,"Sb",(function(){return ho})),c.d(o,"Tb",(function(){return vo})),c.d(o,"Ub",(function(){return zi})),c.d(o,"Vb",(function(){return cs})),c.d(o,"Wb",(function(){return dt})),c.d(o,"Xb",(function(){return co})),c.d(o,"Yb",(function(){return Xc})),c.d(o,"Zb",(function(){return wo})),c.d(o,"ac",(function(){return qc})),c.d(o,"bc",(function(){return Qe})),c.d(o,"cc",(function(){return Xe})),c.d(o,"dc",(function(){return Ro})),c.d(o,"ec",(function(){return _c})),c.d(o,"fc",(function(){return Sc})),c.d(o,"gc",(function(){return kc})),c.d(o,"hc",(function(){return Ec})),c.d(o,"ic",(function(){return Io})),c.d(o,"jc",(function(){return To})),c.d(o,"kc",(function(){return uo})),c.d(o,"lc",(function(){return Oo})),c.d(o,"mc",(function(){return Do})),c.d(o,"nc",(function(){return Mo})),c.d(o,"oc",(function(){return pc})),c.d(o,"pc",(function(){return gc})),c.d(o,"qc",(function(){return bc})),c.d(o,"rc",(function(){return mc})),c.d(o,"sc",(function(){return Hc})),c.d(o,"tc",(function(){return oo})),c.d(o,"uc",(function(){return yi})),c.d(o,"vc",(function(){return vi})),c.d(o,"wc",(function(){return mi})),c.d(o,"xc",(function(){return Ee})),c.d(o,"yc",(function(){return Mn})),c.d(o,"zc",(function(){return Pn})),c.d(o,"Ac",(function(){return Pt})),c.d(o,"Bc",(function(){return zt})),c.d(o,"Cc",(function(){return Kc})),c.d(o,"Dc",(function(){return Bc})),c.d(o,"Ec",(function(){return Bo})),c.d(o,"Fc",(function(){return _o})),c.d(o,"Gc",(function(){return us})),c.d(o,"Hc",(function(){return ao})),c.d(o,"Ic",(function(){return Yc})),c.d(o,"Jc",(function(){return ts})),c.d(o,"Kc",(function(){return es})),c.d(o,"Lc",(function(){return is})),c.d(o,"Mc",(function(){return ns})),c.d(o,"Nc",(function(){return rs})),c.d(o,"Oc",(function(){return as})),c.d(o,"Pc",(function(){return os})),c.d(o,"Qc",(function(){return jc}));var l=c("ZTXN"),f=c("bwdy"),p=c("IdLP"),b=c("g6G6"),v=c("7ntQ");function y(t){return{toString:t}.toString()}function A(t,i,n){return y((function(){var r=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var i in e)this[i]=e[i]}}}(i);function a(){for(var t=arguments.length,i=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:E.Default;if(void 0===ct)throw new Error("inject() must be called from an injection context");return null===ct?pt(t,void 0,e):ct.get(t,e&E.Optional?null:void 0,e)}function dt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.Default;return(K||ht)(G(t),e)}var ft=dt;function pt(t,e,i){var n=O(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&E.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(z(t),"]"))}function gt(t){for(var e=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:at;if(e===at){var i=new Error("NullInjectorError: No provider for ".concat(z(t),"!"));throw i.name="NullInjectorError",i}return e}}]),t}(),mt=function t(){g(this,t)},vt=function t(){g(this,t)};function yt(t,e){t.forEach((function(t){return Array.isArray(t)?yt(t,e):e(t)}))}function At(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function wt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function _t(t,e){for(var i=[],n=0;n=0?t[1|n]=i:function(t,e,i,n){var r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n=~n,e,i),n}function kt(t,e){var i=Et(t,e);if(i>=0)return t[1|i]}function Et(t,e){return function(t,e,i){for(var n=0,r=t.length>>1;r!==n;){var a=n+(r-n>>1),o=t[a<<1];if(e===o)return a<<1;o>e?r=a:n=a+1}return~(r<<1)}(t,e)}var Rt,Ct=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Tt=((Rt={})[Rt.Emulated=0]="Emulated",Rt[Rt.Native=1]="Native",Rt[Rt.None=2]="None",Rt[Rt.ShadowDom=3]="ShadowDom",Rt),It={},Ot=[],Dt=0;function Mt(t){return y((function(){var e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ct.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ot,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Tt.Emulated,id:"c",styles:t.styles||Ot,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,r=t.features,a=t.pipes;return i.id+=Dt++,i.inputs=Ht(t.inputs,e),i.outputs=Ht(t.outputs),r&&r.forEach((function(t){return t(i)})),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(xt)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(Nt)}:null,i}))}function Pt(t,e,i){var n=t.\u0275cmp;n.directiveDefs=function(){return e.map(xt)},n.pipeDefs=function(){return i.map(Nt)}}function xt(t){return Gt(t)||function(t){return t[X]||null}(t)}function Nt(t){return function(t){return t[Q]||null}(t)}var Lt={};function Ft(t){var e={type:t.type,bootstrap:t.bootstrap||Ot,declarations:t.declarations||Ot,imports:t.imports||Ot,exports:t.exports||Ot,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&y((function(){Lt[t.id]=t.type})),e}function zt(t,e){return y((function(){var i=Kt(t,!0);i.declarations=e.declarations||Ot,i.imports=e.imports||Ot,i.exports=e.exports||Ot}))}function Ht(t,e){if(null==t)return It;var i={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),i[r]=n,e&&(e[r]=a)}return i}var Bt=Mt;function jt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Gt(t){return t[Y]||null}function Ut(t,e){return t.hasOwnProperty(et)?t[et]:null}function Kt(t,e){var i=t[$]||null;if(!i&&!0===e)throw new Error("Type ".concat(z(t)," does not have '\u0275mod' property."));return i}function Vt(t){return Array.isArray(t)&&"object"==typeof t[1]}function qt(t){return Array.isArray(t)&&!0===t[1]}function Jt(t){return 0!=(8&t.flags)}function Wt(t){return 2==(2&t.flags)}function Zt(t){return 1==(1&t.flags)}function Yt(t){return null!==t.template}function Xt(t){return 0!=(512&t[2])}var Qt=function(){function t(e,i,n){g(this,t),this.previousValue=e,this.currentValue=i,this.firstChange=n}return m(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function $t(){return te}function te(t){return t.type.prototype.ngOnChanges&&(t.setInput=ie),ee}function ee(){var t=ne(this),e=null==t?void 0:t.current;if(e){var i=t.previous;if(i===It)t.previous=e;else for(var n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function ie(t,e,i,n){var r=ne(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:It,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[i],c=o[s];a[s]=new Qt(c&&c.currentValue,e,o===It),t[n]=e}function ne(t){return t.__ngSimpleChanges__||null}$t.ngInherit=!0;var re=void 0;function ae(t){re=t}function oe(){return void 0!==re?re:"undefined"!=typeof document?document:void 0}function se(t){return!!t.listen}var ce={createRenderer:function(t,e){return oe()}};function ue(t){for(;Array.isArray(t);)t=t[0];return t}function le(t,e){return ue(e[t+20])}function he(t,e){return ue(e[t.index])}function de(t,e){return t.data[e+20]}function fe(t,e){return t[e+20]}function pe(t,e){var i=e[t];return Vt(i)?i:i[0]}function ge(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function be(t){return 4==(4&t[2])}function me(t){return 128==(128&t[2])}function ve(t,e){return null===t||null==e?null:t[e]}function ye(t){t[18]=0}function Ae(t,e){t[5]+=e;for(var i=t,n=t[3];null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}var we={lFrame:Ke(null),bindingsEnabled:!0,checkNoChangesMode:!1};function _e(){return we.bindingsEnabled}function Se(){return we.lFrame.lView}function ke(){return we.lFrame.tView}function Ee(t){we.lFrame.contextLView=t}function Re(){return we.lFrame.currentTNode}function Ce(t,e){we.lFrame.currentTNode=t,we.lFrame.isParent=e}function Te(){return we.lFrame.isParent}function Ie(){we.lFrame.isParent=!1}function Oe(){return we.checkNoChangesMode}function De(t){we.checkNoChangesMode=t}function Me(){var t=we.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Pe(){return we.lFrame.bindingIndex}function xe(){return we.lFrame.bindingIndex++}function Ne(t){var e=we.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Le(t,e){var i=we.lFrame;i.bindingIndex=i.bindingRootIndex=t,Fe(e)}function Fe(t){we.lFrame.currentDirectiveIndex=t}function ze(t){var e=we.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function He(){return we.lFrame.currentQueryIndex}function Be(t){we.lFrame.currentQueryIndex=t}function je(t,e){var i=Ue();we.lFrame=i,i.currentTNode=e,i.lView=t}function Ge(t){var e=Ue(),i=t[1];we.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex}function Ue(){var t=we.lFrame,e=null===t?null:t.child;return null===e?Ke(t):e}function Ke(t){var e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ve(){var t=we.lFrame;return we.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var qe=Ve;function Je(){var t=Ve();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function We(){return we.lFrame.selectedIndex}function Ze(t){we.lFrame.selectedIndex=t}function Ye(){var t=we.lFrame;return de(t.tView,t.selectedIndex)}function Xe(){we.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Qe(){we.lFrame.currentNamespace=null}function $e(t,e){for(var i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[o]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e&&(t[2]+=2048,a.call(o)):a.call(o)}var ai=function t(e,i,n){g(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n};function oi(t,e,i){for(var n=se(t),r=0;re){o=a-1;break}}}for(;a>16,n=e;i>0;)n=n[15],i--;return n}function pi(t){return"string"==typeof t?t:null==t?"":""+t}function gi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():pi(t)}var bi=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Z);function mi(t){return{name:"window",target:t.ownerDocument.defaultView}}function vi(t){return{name:"document",target:t.ownerDocument}}function yi(t){return{name:"body",target:t.ownerDocument.body}}function Ai(t){return t instanceof Function?t():t}var wi=!0;function _i(t){var e=wi;return wi=t,e}var Si=0;function ki(t,e){var i=Ri(t,e);if(-1!==i)return i;var n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ei(n.data,t),Ei(e,null),Ei(n.blueprint,null));var r=Ci(t,e),a=t.injectorIndex;if(hi(r))for(var o=di(r),s=fi(r,e),c=s[1].data,u=0;u<8;u++)e[a+u]=s[o+u]|c[o+u];return e[a+8]=r,a}function Ei(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ri(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ci(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var i=0,n=null,r=e;null!==r;){var a=r[1],o=a.type;if(null===(n=2===o?a.declTNode:1===o?r[6]:null))return-1;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Ti(t,e,i){!function(t,e,i){var n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(it)&&(n=i[it]),null==n&&(n=i[it]=Si++);var r=255&n,a=1<3&&void 0!==arguments[3]?arguments[3]:E.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var a=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(it)?t[it]:void 0;return"number"==typeof e&&e>0?255&e:e}(i);if("function"==typeof a){je(e,t);try{var o=a();if(null!=o||n&E.Optional)return o;throw new Error("No provider for ".concat(gi(i),"!"))}finally{qe()}}else if("number"==typeof a){if(-1===a)return new Li(t,e);var s=null,c=Ri(t,e),u=-1,l=n&E.Host?e[16][6]:null;for((-1===c||n&E.SkipSelf)&&(-1!==(u=-1===c?Ci(t,e):e[c+8])&&Ni(n,!1)?(s=e[1],c=di(u),e=fi(u,e)):c=-1);-1!==c;){var h=e[1];if(xi(a,c,h.data)){var d=Di(c,e,i,s,n,l);if(d!==Oi)return d}-1!==(u=e[c+8])&&Ni(n,e[1].data[c+8]===l)&&xi(a,c,e)?(s=h,c=di(u),e=fi(u,e)):c=-1}}}if(n&E.Optional&&void 0===r&&(r=null),0==(n&(E.Self|E.Host))){var f=e[9],p=lt(void 0);try{return f?f.get(i,r,n&E.Optional):pt(i,r,n&E.Optional)}finally{lt(p)}}if(n&E.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(gi(i),"]"))}var Oi={};function Di(t,e,i,n,r,a){var o=e[1],s=o.data[t+8],c=Mi(s,o,i,null==n?Wt(s)&&wi:n!=o&&2===s.type,r&E.Host&&a===s);return null!==c?Pi(e,o,c,s):Oi}function Mi(t,e,i,n,r){for(var a=t.providerIndexes,o=e.data,s=1048575&a,c=t.directiveStart,u=a>>20,l=r?s+u:t.directiveEnd,h=n?s:s+u;h=c&&d.type===i)return h}if(r){var f=o[c];if(f&&Yt(f)&&f.type===i)return c}return null}function Pi(t,e,i,n){var r=t[i],a=e.data;if(r instanceof ai){var o=r;if(o.resolving)throw new Error("Circular dep for "+gi(a[i]));var s=_i(o.canSeeViewProviders);o.resolving=!0;var c=o.injectImpl?lt(o.injectImpl):null;je(t,n);try{r=t[i]=o.factory(void 0,a,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){var n=e.type.prototype,r=n.ngOnChanges,a=n.ngOnInit,o=n.ngDoCheck;if(r){var s=te(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s)}a&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,a),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,a[i],e)}finally{null!==c&<(c),_i(s),o.resolving=!1,qe()}}return r}function xi(t,e,i){var n=64&t,r=32&t;return!!((128&t?n?r?i[e+7]:i[e+6]:r?i[e+5]:i[e+4]:n?r?i[e+3]:i[e+2]:r?i[e+1]:i[e])&1<1?e-1:0),n=1;n"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();An.hasOwnProperty(e)&&!bn.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Tn(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}]),t}(),Rn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cn=/([^\#-~ |!])/g;function Tn(t){return t.replace(/&/g,"&").replace(Rn,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Cn,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function In(t,e){var i=null;try{gn=gn||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new cn:new un(t)}(t);var n=e?String(e):"";i=gn.getInertBodyElement(n);var r=5,a=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=a,a=i.innerHTML,i=gn.getInertBodyElement(n)}while(n!==a);var o=new En,s=o.sanitizeChildren(On(i)||i);return on()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(i)for(var c=On(i)||i;c.firstChild;)c.removeChild(c.firstChild)}}function On(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Dn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Mn(t){var e=xn();return e?e.sanitize(Dn.HTML,t)||"":Yi(t,"HTML")?Zi(t):In(oe(),pi(t))}function Pn(t){var e=xn();return e?e.sanitize(Dn.URL,t)||"":Yi(t,"URL")?Zi(t):dn(pi(t))}function xn(){var t=Se();return t&&t[12]}function Nn(t,e){t.__ngContext__=e}function Ln(t,e,i){for(var n=t.length;;){var r=t.indexOf(e,i);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){var a=e.length;if(r+a===n||t.charCodeAt(r+a)<=32)return r}i=r+1}}function Fn(t,e,i){for(var n=0;na?"":r[l+1].toLowerCase();var d=8&n?h:null;if(d&&-1!==Ln(d,u,0)||2&n&&u!==h){if(jn(n))return!1;o=!0}}}}else{if(!o&&!jn(n)&&!jn(c))return!1;if(o&&jn(c))continue;o=!1,n=c|1&n}}return jn(n)||o}function jn(t){return 0==(1&t)}function Gn(t,e,i,n){if(null===e)return-1;var r=0;if(n||!i){for(var a=!1;r-1)for(i++;i2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?r+="."+o:4&n&&(r+=" "+o);else""===r||jn(o)||(e+=Vn(a,r),r=""),n=o,a=a||!jn(n);i++}return""!==r&&(e+=Vn(a,r)),e}var Jn={};function Wn(t){var e=t[3];return qt(e)?e[3]:e}function Zn(t){return Xn(t[13])}function Yn(t){return Xn(t[4])}function Xn(t){for(;null!==t&&!qt(t);)t=t[4];return t}function Qn(t){$n(ke(),Se(),We()+t,Oe())}function $n(t,e,i,n){if(!n)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&ti(e,r,i)}else{var a=t.preOrderHooks;null!==a&&ei(e,a,0,i)}Ze(i)}function tr(t,e){return t<<17|e<<2}function er(t){return t>>17&32767}function ir(t){return 2|t}function nr(t){return(131068&t)>>2}function rr(t,e){return-131069&t|e<<2}function ar(t){return 1|t}function or(t,e){var i=t.contentQueries;if(null!==i)for(var n=0;n20&&$n(t,e,0,Oe()),i(n,r)}finally{Ze(a)}}function pr(t,e,i){if(Jt(e))for(var n=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:he,n=e.localNames;if(null!==n)for(var r=e.index+1,a=0;a0&&function t(e){for(var i=Zn(e);null!==i;i=Yn(i))for(var n=10;n0&&t(r)}var o=e[1].components;if(null!==o)for(var s=0;s0&&t(c)}}(i)}}function Lr(t,e){var i=pe(e,t),n=i[1];!function(t,e){for(var i=e.length;i0&&(t[n-1][4]=r[4]);var o=wt(t,10+e);sa(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Xr(t,e){if(!(256&e[2])){var i=e[11];se(i)&&i.destroyNode&&sa(t,e,i,3,null,null),function(t){var e=t[13];if(!e)return Qr(t[1],t);for(;e;){var i=null;if(Vt(e))i=e[13];else{var n=e[10];n&&(i=n)}if(!i){for(;e&&!e[4]&&e!==t;)Vt(e)&&Qr(e[1],e),e=e[3];null===e&&(e=t),Vt(e)&&Qr(e[1],e),i=e&&e[4]}e=i}}(e)}}function Qr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var i;if(null!=t&&null!=(i=t.destroyHooks))for(var n=0;n=0?n[c]():n[-c].unsubscribe(),r+=2}else i[r].call(n[i[r+1]]);e[7]=null}}(t,e),1===e[1].type&&se(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&qt(e[3])){i!==e[3]&&Zr(i,e);var n=e[19];null!==n&&n.detachView(t)}}}function $r(t,e,i){for(var n=e.parent;null!=n&&(3===n.type||4===n.type);)n=(e=n).parent;if(null===n)return i[0];if(e&&4===e.type&&4&e.flags)return he(e,i).parentNode;if(2&n.flags){var r=t.data,a=r[r[n.index].directiveStart].encapsulation;if(a!==Tt.ShadowDom&&a!==Tt.Native)return null}return he(n,i)}function ta(t,e,i,n){se(t)?t.insertBefore(e,i,n):e.insertBefore(i,n,!0)}function ea(t,e,i){se(t)?t.appendChild(e,i):e.appendChild(i)}function ia(t,e,i,n){null!==n?ta(t,e,i,n):ea(t,e,i)}function na(t,e){return se(t)?t.parentNode(e):e.parentNode}function ra(t,e){return 3===t.type||4===t.type?he(t,e):null}function aa(t,e,i,n){var r=$r(t,n,e);if(null!=r){var a=e[11],o=ra(n.parent||e[6],e);if(Array.isArray(i))for(var s=0;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Xr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){yr(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){zr(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Hr(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,i){De(!0);try{Hr(t,e,i)}finally{De(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,sa(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView,e=t[1];return function t(e,n,r,a){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&a.push(ue(s)),qt(s))for(var c=10;c0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"createEmbeddedView",value:function(t,e,i){var n=t.createEmbeddedView(e||{});return this.insert(n,i),n}},{key:"createComponent",value:function(t,e,i,n,r){var a=i||this.parentInjector;if(!r&&null==t.ngModule&&a){var o=a.get(mt,null);o&&(r=o)}var s=t.create(a,n,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var i=t._lView,n=i[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),qt(i[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var a=i[3],o=new fa(a,a[6],a[3]);o.detach(o.indexOf(t))}}var s=this._adjustIndex(e),c=this._lContainer;!function(t,e,i,n){var r=10+n,a=i.length;n>0&&(i[r-1][4]=e),n1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return ba(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Li(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=Ci(this._hostTNode,this._hostView);if(hi(t)){var e=fi(t,this._hostView),i=di(t);return new Li(e[1].data[i+8],e)}return new Li(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(t));var o=n[i.index];if(qt(o))r=o;else{var c;if(3===i.type)c=ue(o);else if(c=n[11].createComment(""),Xt(n)){var u=n[11],l=he(i,n);ta(u,na(u,l),c,function(t,e){return se(t)?t.nextSibling(e):e.nextSibling}(u,l))}else aa(n[1],n,c,i);n[i.index]=r=xr(o,n,c,i),Fr(n,r)}return new fa(r,i,n)}function ya(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,i){if(!i&&Wt(t)){var n=pe(t.index,e);return new pa(n,n)}return 2===t.type||0===t.type||3===t.type||4===t.type?new pa(e[16],e):null}(Re(),Se(),t)}var Aa=function(){var t=function t(){g(this,t)};return t.__NG_ELEMENT_ID__=function(){return wa()},t}(),wa=ya,_a=Function,Sa=new nt("Set Injector scope."),ka={},Ea={},Ra=[],Ca=void 0;function Ta(){return void 0===Ca&&(Ca=new bt),Ca}function Ia(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new Oa(t,i,e||Ta(),n)}var Oa=function(){function t(e,i,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,t),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];i&&yt(i,(function(t){return r.processProvider(t,e,i)})),yt([e],(function(t){return r.processInjectorType(t,[],o)})),this.records.set(rt,Pa(void 0,this));var s=this.records.get(Sa);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof e?null:z(e))}return m(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E.Default;this.assertNotDestroyed();var n,r=ut(this);try{if(!(i&E.SkipSelf)){var a=this.records.get(t);if(void 0===a){var o=("function"==typeof(n=t)||"object"==typeof n&&n instanceof nt)&&O(t);a=o&&this.injectableDefInScope(o)?Pa(Da(t),ka):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&E.Self?Ta():this.parent).get(t,e=i&E.Optional&&e===at?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(z(t)),r)throw s;return function(t,e,i,n){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=z(e);if(Array.isArray(e))r=e.map(z).join(" -> ");else if("object"==typeof e){var a=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):z(s)))}r="{".concat(a.join(", "),"}")}return"".concat(i).concat(n?"("+n+")":"","[").concat(r,"]: ").concat(t.replace(ot,"\n "))}("\n"+t.message,r,"R3InjectorError",n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{ut(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,i){return t.push(z(i))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,i){var n=this;if(!(t=G(t)))return!1;var r=M(t),a=null==r&&t.ngModule||void 0,o=void 0===a?t:a,s=-1!==i.indexOf(o);if(void 0!==a&&(r=M(a)),null==r)return!1;if(null!=r.imports&&!s){var c;i.push(o);try{yt(r.imports,(function(t){n.processInjectorType(t,e,i)&&(void 0===c&&(c=[]),c.push(t))}))}finally{}if(void 0!==c)for(var u=function(t){var e=c[t],i=e.ngModule,r=e.providers;yt(r,(function(t){return n.processProvider(t,i,r||Ra)}))},l=0;l0){var i=_t(e,"?");throw new Error("Can't resolve all parameters for ".concat(z(t),": (").concat(i.join(", "),")."))}var n=function(t){var e=t&&(t[P]||t[L]||t[N]&&t[N]());if(e){var i=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(i,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(i,'" class.')),e}return null}(t);return null!==n?function(){return n.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Ma(t,n,r){var a,o=void 0;if(Na(t)){var s=G(t);return Ut(s)||Da(s)}if(xa(t))o=function(){return G(t.useValue)};else if((a=t)&&a.useFactory)o=function(){return t.useFactory.apply(t,i(gt(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))o=function(){return dt(G(t.useExisting))};else{var c=G(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ut(c)||Da(c);o=function(){return e(c,i(gt(t.deps)))}}return o}function Pa(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:i?[]:void 0}}function xa(t){return null!==t&&"object"==typeof t&&st in t}function Na(t){return"function"==typeof t}var La=function(t,e,i){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,r=Ia(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)},Fa=function(){var t=function(){function t(){g(this,t)}return m(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?La(t,e,""):La(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=at,t.NULL=new bt,t.\u0275prov=T({token:t,providedIn:"any",factory:function(){return dt(rt)}}),t.__NG_ELEMENT_ID__=-1,t}(),za=new nt("AnalyzeForEntryComponents");function Ha(t,e,i){var n=i?t.styles:null,r=i?t.classes:null,a=0;if(null!==e)for(var o=0;o=0;n--){var r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=ui(r.hostAttrs,i=ui(i,r.hostAttrs))}}(n)}function Ga(t){return t===It?{}:t===Ot?[]:t}function Ua(t,e){var i=t.viewQuery;t.viewQuery=i?function(t,n){e(t,n),i(t,n)}:e}function Ka(t,e){var i=t.contentQueries;t.contentQueries=i?function(t,n,r){e(t,n,r),i(t,n,r)}:e}function Va(t,e){var i=t.hostBindings;t.hostBindings=i?function(t,n){e(t,n),i(t,n)}:e}var qa=null;function Ja(){if(!qa){var t=Z.Symbol;if(t&&t.iterator)qa=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),i=0;i1&&void 0!==arguments[1]?arguments[1]:E.Default,i=Se();return null===i?dt(t,e):Ii(Re(),i,G(t),e)}function co(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var i=t.attrs;if(i)for(var n=i.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,r=Se(),a=ke(),o=Re();return So(a,r,r[11],o,t,e,i,n),wo}function _o(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,r=Re(),a=Se(),o=ke();return So(o,a,Kr(ze(o.data),r,a),r,t,e,i,n),_o}function So(t,e,i,n,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,c=Zt(n),u=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=Ur(e),h=!0;if(2===n.type){var d=he(n,e),f=s?s(d):It,p=f.target||d,g=l.length,b=s?function(t){return s(ue(t[n.index])).target}:n.index;if(se(i)){var m=null;if(!s&&c&&(m=function(t,e,i,n){var r=t.cleanup;if(null!=r)for(var a=0;ac?s[c]:null}"string"==typeof o&&(a+=2)}return null}(t,e,r,n.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=a,m.__ngLastListenerFn__=a,h=!1;else{a=Eo(n,e,a,!1);var v=i.listen(f.name||p,r,a);l.push(a,v),u&&u.push(r,b,g,g+1)}}else a=Eo(n,e,a,!0),p.addEventListener(r,a,o),l.push(a),u&&u.push(r,b,g,o)}var y,A=n.outputs;if(h&&null!==A&&(y=A[r])){var w=y.length;if(w)for(var _=0;_0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(we.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,we.lFrame.contextLView))[8]}(t)}function Co(t,e){for(var i=null,n=function(t){var e=t.attrs;if(null!=e){var i=e.indexOf(5);if(0==(1&i))return e[i+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=Se(),r=ke(),a=ur(r,t,1,null,i||null);null===a.projection&&(a.projection=e),Ie(),function(t,e,i){ca(e[11],0,e,i,$r(t,i,e),ra(i.parent||e[6],e))}(r,n,a)}function Oo(t,e,i){return Do(t,"",e,"",i),Oo}function Do(t,e,i,n,r){var a=Se(),o=no(a,e,i,n);return o!==Jn&&wr(ke(),Ye(),a,t,o,a[11],r,!1),Do}function Mo(t,e,i,n,r,a,o){var s=Se(),c=ro(s,e,i,n,r,a);return c!==Jn&&wr(ke(),Ye(),s,t,c,s[11],o,!1),Mo}var Po=[];function xo(t,e,i,n,r){for(var a=t[i+1],o=null===e,s=n?er(a):nr(a),c=!1;0!==s&&(!1===c||o);){var u=t[s+1];No(t[s],e)&&(c=!0,t[s+1]=n?ar(u):ir(u)),s=n?er(u):nr(u)}c&&(t[i+1]=n?ir(a):ar(a))}function No(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Et(t,e)>=0}var Lo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fo(t){return t.substring(Lo.key,Lo.keyEnd)}function zo(t,e){var i=Lo.textEnd;return i===e?-1:(e=Lo.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Lo.key=e,i),Ho(t,e,i))}function Ho(t,e,i){for(;e=0;i=zo(e,i))St(t,Fo(e),!0)}function Ko(t,e,i,n){var r=Se(),a=ke(),o=Ne(2);a.firstUpdatePass&&Jo(a,t,o,n),e!==Jn&&Qa(r,o,e)&&Yo(a,a.data[We()+20],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=z(Zi(t)))),t}(e,i),n,o)}function Vo(t,e,i,n){var r=ke(),a=Ne(2);r.firstUpdatePass&&Jo(r,null,a,n);var o=Se();if(i!==Jn&&Qa(o,a,i)){var s=r.data[We()+20];if($o(s,n)&&!qo(r,a)){var c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(i=H(c,i||"")),lo(r,s,o,i,n)}else!function(t,e,i,n,r,a,o,s){r===Jn&&(r=Po);for(var c=0,u=0,l=0=t.expandoStartIndex}function Jo(t,e,i,n){var r=t.data;if(null===r[i+1]){var a=r[We()+20],o=qo(t,i);$o(a,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){var r=ze(t),a=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=Zo(i=Wo(null,t,e,i,n),e.attrs,n),a=null);else{var o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(i=Wo(r,t,e,i,n),null===a){var s=function(t,e,i){var n=i?e.classBindings:e.styleBindings;if(0!==nr(n))return t[er(n)]}(t,e,n);void 0!==s&&Array.isArray(s)&&function(t,e,i,n){t[er(i?e.classBindings:e.styleBindings)]=n}(t,e,n,s=Zo(s=Wo(null,t,e,s[1],n),e.attrs,n))}else a=function(t,e,i){for(var n=void 0,r=e.directiveEnd,a=1+e.directiveStylingLast;a0)&&(l=!0)}else u=i;if(r)if(0!==c){var d=er(t[s+1]);t[n+1]=tr(d,s),0!==d&&(t[d+1]=rr(t[d+1],n)),t[s+1]=131071&t[s+1]|n<<17}else t[n+1]=tr(s,0),0!==s&&(t[s+1]=rr(t[s+1],n)),s=n;else t[n+1]=tr(c,0),0===s?s=n:t[c+1]=rr(t[c+1],n),c=n;l&&(t[n+1]=ir(t[n+1])),xo(t,u,n,!0),xo(t,u,n,!1),function(t,e,i,n,r){var a=r?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof e&&Et(a,e)>=0&&(i[n+1]=ar(i[n+1]))}(e,u,t,n,a),o=tr(s,c),a?e.classBindings=o:e.styleBindings=o}(r,a,e,i,o,n)}}function Wo(t,e,i,n,r){var a=null,o=i.directiveEnd,s=i.directiveStylingLast;for(-1===s?s=i.directiveStart:s++;s0;){var c=t[r],u=Array.isArray(c),l=u?c[1]:c,h=null===l,d=i[r+1];d===Jn&&(d=h?Po:void 0);var f=h?kt(d,n):l===n?d:void 0;if(u&&!Qo(f)&&(f=kt(c,n)),Qo(f)&&(s=f,o))return s;var p=t[r+1];r=o?er(p):nr(p)}if(null!==e){var g=a?e.residualClasses:e.residualStyles;null!=g&&(s=kt(g,n))}return s}function Qo(t){return void 0!==t}function $o(t,e){return 0!=(t.flags&(e?16:32))}function ts(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=Se(),n=ke(),r=t+20,a=n.firstCreatePass?ur(n,t,2,null,null):n.data[r],o=i[r]=function(t,e){return se(e)?e.createText(t):e.createTextNode(t)}(e,i[11]);aa(n,i,o,a),Ce(a,!1)}function es(t){return is("",t,""),es}function is(t,e,i){var n=Se(),r=no(n,t,e,i);return r!==Jn&&Jr(n,We(),r),is}function ns(t,e,i,n,r){var a=Se(),o=ro(a,t,e,i,n,r);return o!==Jn&&Jr(a,We(),o),ns}function rs(t,e,i,n,r,a,o){var s=Se(),c=function(t,e,i,n,r,a,o,s){var c=to(t,Pe(),i,r,o);return Ne(3),c?e+pi(i)+n+pi(r)+a+pi(o)+s:Jn}(s,t,e,i,n,r,a,o);return c!==Jn&&Jr(s,We(),c),rs}function as(t,e,i,n,r,a,o,s,c){var u=Se(),l=function(t,e,i,n,r,a,o,s,c,u){var l=eo(t,Pe(),i,r,o,c);return Ne(4),l?e+pi(i)+n+pi(r)+a+pi(o)+s+pi(c)+u:Jn}(u,t,e,i,n,r,a,o,s,c);return l!==Jn&&Jr(u,We(),l),as}function os(t,e,i,n,r,a,o,s,c,u,l){var h=Se(),d=function(t,e,i,n,r,a,o,s,c,u,l,h){var d=Pe(),f=eo(t,d,i,r,o,c);return f=Qa(t,d+4,l)||f,Ne(5),f?e+pi(i)+n+pi(r)+a+pi(o)+s+pi(c)+u+pi(l)+h:Jn}(h,t,e,i,n,r,a,o,s,c,u,l);return d!==Jn&&Jr(h,We(),d),os}function ss(t,e,i){Vo(St,Uo,no(Se(),t,e,i),!0)}function cs(t,e,i){var n=Se();return Qa(n,xe(),e)&&wr(ke(),Ye(),n,t,e,n[11],i,!0),cs}function us(t,e,i){var n=Se();if(Qa(n,xe(),e)){var r=ke(),a=Ye();wr(r,a,n,t,e,Kr(ze(r.data),a,n),i,!0)}return us}function ls(t,e,i,n,r){if(t=G(t),Array.isArray(t))for(var a=0;a>20;if(Na(t)||!t.multi){var p=new ai(u,r,so),g=fs(c,e,r?h:h+f,d);-1===g?(Ti(ki(l,s),o,c),hs(o,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(p),s.push(p)):(i[g]=p,s[g]=p)}else{var b=fs(c,e,h+f,d),m=fs(c,e,h,h+f),v=b>=0&&i[b],y=m>=0&&i[m];if(r&&!y||!r&&!v){Ti(ki(l,s),o,c);var A=function(t,e,i,n,r){var a=new ai(t,i,so);return a.multi=[],a.index=e,a.componentProviders=0,ds(a,r,n&&!i),a}(r?gs:ps,i.length,r,n,u);!r&&y&&(i[m].providerFactory=A),hs(o,t,e.length,0),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(A),s.push(A)}else hs(o,t,b>-1?b:m,ds(i[r?m:b],u,!r&&n));!r&&n&&y&&i[m].componentProviders++}}}function hs(t,e,i,n){var r=Na(e);if(r||e.useClass){var a=(e.useClass||e).prototype.ngOnDestroy;if(a){var o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=o.indexOf(i);-1===s?o.push(i,[n,a]):o[s+1].push(n,a)}else o.push(i,a)}}}function ds(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function fs(t,e,i,n){for(var r=i;r1&&void 0!==arguments[1]?arguments[1]:[];return function(i){i.providersResolver=function(i,n){return function(t,e,i){var n=ke();if(n.firstCreatePass){var r=Yt(t);ls(i,n.data,n.blueprint,r,!0),ls(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}}var vs=function t(){g(this,t)},ys=function(){function t(){g(this,t)}return m(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(z(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),As=function(){var t=function t(){g(this,t)};return t.NULL=new ys,t}(),ws=function(){var t=function t(e){g(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=function(){return _s(t)},t}(),_s=function(t){return ba(t,Re(),Se())},Ss=function t(){g(this,t)},ks=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Es=function(){var t=function t(){g(this,t)};return t.__NG_ELEMENT_ID__=function(){return Rs()},t}(),Rs=function(){var t=Se(),e=pe(Re().index,t);return function(t){var e=t[11];if(se(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Vt(e)?e:t)},Cs=function(){var t=function t(){g(this,t)};return t.\u0275prov=T({token:t,providedIn:"root",factory:function(){return null}}),t}(),Ts=function t(e){g(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Is=new Ts("10.1.5"),Os=function(){function t(){g(this,t)}return m(t,[{key:"supports",value:function(t){return Za(t)}},{key:"create",value:function(t){return new Ms(t)}}]),t}(),Ds=function(t,e){return e},Ms=function(){function t(e){g(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ds}return m(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,i=this._removalsHead,n=0,r=null;e||i;){var a=!i||e&&e.currentIndex0&&la(u,h,y.join(" "))}if(a=de(p,0),void 0!==e)for(var A=a.projection=[],w=0;w null != ".concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var hc=new Map,dc=function(t){a(i,t);var e=s(i);function i(t,n){var r;g(this,i),(r=e.call(this))._parent=n,r._bootstrapComponents=[],r.injector=u(r),r.destroyCbs=[],r.componentFactoryResolver=new Ys(u(r));var a=Kt(t),o=t[tt]||null;return o&&lc(o),r._bootstrapComponents=Ai(a.bootstrap),r._r3Injector=Ia(t,n,[{provide:mt,useValue:u(r)},{provide:As,useValue:r.componentFactoryResolver}],z(t)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(t),r}return m(i,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fa.THROW_IF_NOT_FOUND,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E.Default;return t===Fa||t===mt||t===rt?this:this._r3Injector.get(t,e,i)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),i}(mt),fc=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this)).moduleType=t,null!==Kt(t)&&function t(e){if(null!==e.\u0275mod.id){var i=e.\u0275mod.id;(function(t,e,i){if(e&&e!==i)throw new Error("Duplicate module registered for ".concat(t," - ").concat(z(e)," vs ").concat(z(e.name)))})(i,hc.get(i),e),hc.set(i,e)}var n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach((function(e){return t(e)}))}(t),n}return m(i,[{key:"create",value:function(t){return new dc(this.moduleType,t)}}]),i}(vt);function pc(t,e,i){var n=Me()+t,r=Se();return r[n]===Jn?Xa(r,n,i?e.call(i):e()):function(t,e){return t[e]}(r,n)}function gc(t,e,i,n){return yc(Se(),Me(),t,e,i,n)}function bc(t,e,i,n,r){return Ac(Se(),Me(),t,e,i,n,r)}function mc(t,e,i,n,r,a){return wc(Se(),Me(),t,e,i,n,r,a)}function vc(t,e){var i=t[e];return i===Jn?void 0:i}function yc(t,e,i,n,r,a){var o=e+i;return Qa(t,o,r)?Xa(t,o+1,a?n.call(a,r):n(r)):vc(t,o+1)}function Ac(t,e,i,n,r,a,o){var s=e+i;return $a(t,s,r,a)?Xa(t,s+2,o?n.call(o,r,a):n(r,a)):vc(t,s+2)}function wc(t,e,i,n,r,a,o,s){var c=e+i;return to(t,c,r,a,o)?Xa(t,c+3,s?n.call(s,r,a,o):n(r,a,o)):vc(t,c+3)}function _c(t,e){var i,n=ke(),r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(var i=e.length-1;i>=0;i--){var n=e[i];if(t===n.name)return n}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];var a=i.factory||(i.factory=Ut(i.type)),o=lt(so);try{var s=_i(!1),c=a();return _i(s),function(t,e,i,n){var r=i+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}(n,Se(),t,c),c}finally{lt(o)}}function Sc(t,e,i){var n=Se(),r=fe(n,t);return Cc(n,Rc(n,t)?yc(n,Me(),e,r.transform,i,r):r.transform(i))}function kc(t,e,i,n){var r=Se(),a=fe(r,t);return Cc(r,Rc(r,t)?Ac(r,Me(),e,a.transform,i,n,a):a.transform(i,n))}function Ec(t,e,i,n,r){var a=Se(),o=fe(a,t);return Cc(a,Rc(a,t)?wc(a,Me(),e,o.transform,i,n,r,o):o.transform(i,n,r))}function Rc(t,e){return t[1].data[e+20].pure}function Cc(t,e){return Wa.isWrapped(e)&&(e=Wa.unwrap(e),t[Pe()]=Jn),e}var Tc=function(t){a(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,i),(t=e.call(this)).__isAsync=n,t}return m(i,[{key:"emit",value:function(t){n(h(i.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var a,o=function(t){return null},s=function(){return null};t&&"object"==typeof t?(a=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(a=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var c=n(h(i.prototype),"subscribe",this).call(this,a,o,s);return t instanceof f.a&&t.add(c),c}}]),i}(l.a);function Ic(){return this._results[Ja()]()}var Oc=function(){function t(){g(this,t),this.dirty=!0,this._results=[],this.changes=new Tc,this.length=0;var e=Ja(),i=t.prototype;i[e]||(i[e]=Ic)}return m(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=function t(e,i){void 0===i&&(i=e);for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];g(this,t),this.queries=e}return m(t,[{key:"createEmbeddedView",value:function(e){var i=e.queries;if(null!==i){for(var n=null!==e.contentQueries?e.contentQueries[0]:i.length,r=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:null;g(this,t),this.predicate=e,this.descendants=i,this.isStatic=n,this.read=r},xc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,t),this.queries=e}return m(t,[{key:"elementStart",value:function(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;g(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}return m(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,i=t.parent;null!==i&&3===i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var i=this.metadata.predicate;if(Array.isArray(i))for(var n=0;n0)r.push(s[c/2]);else{for(var l=o[c+1],h=i[-u],d=10;d0&&void 0!==arguments[0]?arguments[0]:E.Default,e=ya(!0);if(null!=e||t&E.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}var Qc=new nt("Application Initializer"),$c=function(){var t=function(){function t(e){var i=this;g(this,t),this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,e){i.resolve=t,i.reject=e}))}return m(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],i=function(){t.done=!0,t.resolve()};if(this.appInits)for(var n=0;n0&&(r=setTimeout((function(){n._callbacks=n._callbacks.filter((function(t){return t.timeoutId!==r})),t(n._didWork,n.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:i})}},{key:"whenStable",value:function(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,i){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(dt(yu))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}(),Tu=function(){var t=function(){function t(){g(this,t),this._applications=new Map,Du.addToWindow(this)}return m(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Du.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function Iu(t){Du=t}var Ou,Du=new(function(){function t(){g(this,t)}return m(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,i){return null}}]),t}()),Mu=new nt("AllowMultipleToken"),Pu=function t(e,i){g(this,t),this.name=e,this.token=i};function xu(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: "+e,r=new nt(n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Nu();if(!a||a.injector.get(Mu,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{var o=i.concat(e).concat({provide:r,useValue:!0},{provide:Sa,useValue:"platform"});!function(t){if(Ou&&!Ou.destroyed&&!Ou.injector.get(Mu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ou=t.get(Lu);var e=t.get(nu,null);e&&e.forEach((function(t){return t()}))}(Fa.create({providers:o,name:n}))}return function(t){var e=Nu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Nu(){return Ou&&!Ou.destroyed?Ou:null}var Lu=function(){var t=function(){function t(e){g(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return m(t,[{key:"bootstrapModuleFactory",value:function(t,e){var i,n,r=this,a=(i=e?e.ngZone:void 0,n=e&&e.ngZoneEventCoalescing||!1,"noop"===i?new Ru:("zone.js"===i?void 0:i)||new yu({enableLongStackTrace:on(),shouldCoalesceEventChangeDetection:n})),o=[{provide:yu,useValue:a}];return a.run((function(){var e=Fa.create({providers:o,parent:r.injector,name:t.moduleType.name}),i=t.create(e),n=i.injector.get(Gi,null);if(!n)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy((function(){return Hu(r._modules,i)})),a.runOutsideAngular((function(){return a.onError.subscribe({next:function(t){n.handleError(t)}})})),function(t,e,n){try{var a=((o=i.injector.get($c)).runInitializers(),o.donePromise.then((function(){return lc(i.injector.get(su,"en-US")||"en-US"),r._moduleDoBootstrap(i),i})));return yo(a)?a.catch((function(i){throw e.runOutsideAngular((function(){return t.handleError(i)})),i})):a}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var o}(n,a)}))}},{key:"bootstrapModule",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Fu({},i);return function(t,e,i){var n=new fc(i);return Promise.resolve(n)}(0,0,t).then((function(t){return e.bootstrapModuleFactory(t,n)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(zu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(z(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(dt(Fa))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function Fu(t,e){return Array.isArray(e)?e.reduce(Fu,t):Object.assign(Object.assign({},t),e)}var zu=function(){var t=function(){function t(e,i,n,r,a,o){var s=this;g(this,t),this._zone=e,this._console=i,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=on(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var c=new p.a((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}))})),u=new p.a((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){yu.assertNotInAngularZone(),vu((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var i=s._zone.onUnstable.subscribe((function(){yu.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),i.unsubscribe()}}));this.isStable=Object(b.a)(c,u.pipe(Object(v.a)()))}return m(t,[{key:"bootstrap",value:function(t,e){var i,n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");i=t instanceof vs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);var r=i.isBoundToModule?void 0:this._injector.get(mt),a=i.create(Fa.NULL,[],e||i.selector,r);a.onDestroy((function(){n._unloadComponent(a)}));var o=a.injector.get(Cu,null);return o&&a.injector.get(Tu).registerApplication(a.location.nativeElement,o),this._loadComponent(a),on()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),a}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,i=d(this._views);try{for(i.s();!(e=i.n()).done;){e.value.detectChanges()}}catch(a){i.e(a)}finally{i.f()}if(this._enforceNoNewChanges){var n,r=d(this._views);try{for(r.s();!(n=r.n()).done;){n.value.checkNoChanges()}}catch(a){r.e(a)}finally{r.f()}}}catch(o){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(o)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Hu(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(au,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),Hu(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(dt(yu),dt(ou),dt(Fa),dt(Gi),dt(As),dt($c))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function Hu(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}var Bu=function t(){g(this,t)},ju=function t(){g(this,t)},Gu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Uu=function(){var t=function(){function t(e,i){g(this,t),this._compiler=e,this._config=i||Gu}return m(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=r(t.split("#"),2),n=i[0],a=i[1];return void 0===a&&(a="default"),c("zn8P")(n).then((function(t){return t[a]})).then((function(t){return Ku(t,n,a)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=r(t.split("#"),2),i=e[0],n=e[1],a="NgFactory";return void 0===n&&(n="default",a=""),c("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(t){return t[n+a]})).then((function(t){return Ku(t,i,n)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(dt(bu),dt(ju,8))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function Ku(t,e,i){if(!t)throw new Error("Cannot find '".concat(i,"' in '").concat(e,"'"));return t}var Vu=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(Aa)),qu=function(t){return null},Ju=xu(null,"core",[{provide:ru,useValue:"unknown"},{provide:Lu,deps:[Fa]},{provide:Tu,deps:[]},{provide:ou,deps:[]}]),Wu=[{provide:zu,useClass:zu,deps:[yu,ou,Fa,Gi,As,$c]},{provide:Qs,deps:[yu],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:$c,useClass:$c,deps:[[new _,Qc]]},{provide:bu,useClass:bu,deps:[]},eu,{provide:Bs,useFactory:function(){return Us},deps:[]},{provide:js,useFactory:function(){return Ks},deps:[]},{provide:su,useFactory:function(t){return lc(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new w(su),new _,new k]]},{provide:cu,useValue:"USD"}],Zu=function(){var t=function t(e){g(this,t)};return t.\u0275mod=Ft({type:t}),t.\u0275inj=I({factory:function(e){return new(e||t)(dt(zu))},providers:Wu}),t}()},ESXS:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("FlRo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function f(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&s.Nb(0,"th",15)}function b(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function v(t,e){1&t&&s.Nb(0,"tr",17)}function y(t,e){1&t&&s.Nb(0,"tr",18)}function A(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,p,1,0,"th",11),s.Hc(10,b,2,1,"td",12),s.Pb(),s.Hc(11,v,1,0,"tr",13),s.Hc(12,y,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var w=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=a,this.displayedColumns=["name"]}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new o.o(this.data.services)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e,i=[],n=d(this.data.services);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}this.resourcesManager.removeServices(this.data.resourceId,i).subscribe((function(){t.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(r.l),s.Mb(c.e),s.Mb(a.m))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,f,1,0,"mat-spinner",1),s.Hc(5,A,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l],pipes:[c.d],styles:[""]}),t}()},EWqr:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r.pending=!1,r}return m(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),i)}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var i=!1,n=void 0;try{this.work(t)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),i}(function(t){a(i,t);var e=s(i);function i(t,n){return g(this,i),e.call(this)}return m(i,[{key:"schedule",value:function(t){return this}}]),i}(i("bwdy").a))},Efrr:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EWqr"),r=new(i("DG/E").a)(n.a)},EkAj:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("Ssnw"),r=i("X2Q7"),a=i("8clQ"),o=i("t47Z"),s=i("nyAh"),c=i("EM62"),u=i("s2Ay"),l=function(){var t=function(){function t(e,i,n,r,a,o,s){g(this,t),this.translate=e,this.authResolver=i,this.store=n,this.apiRequest=r,this.attributesManager=a,this.notificator=o,this.guiAuthResolver=s,this.baseItemColor=this.store.get("theme","sidemenu_bg_color"),this.voBgColor=this.store.get("theme","sidemenu_vo_bg_color"),this.memberBgColor=this.store.get("theme","sidemenu_member_bg_color"),this.groupBgColor=this.store.get("theme","sidemenu_group_bg_color"),this.facilityBgColor=this.store.get("theme","sidemenu_facility_bg_color"),this.resourceBgColor=this.store.get("theme","sidemenu_resource_bg_color"),this.userBgColor=this.store.get("theme","sidemenu_user_bg_color"),this.serviceBgColor=this.store.get("theme","sidemenu_service_bg_color"),this.baseItemTextColor=this.store.get("theme","sidemenu_text_color"),this.voTextColor=this.store.get("theme","sidemenu_vo_text_color"),this.memberTextColor=this.store.get("theme","sidemenu_member_text_color"),this.groupTextColor=this.store.get("theme","sidemenu_group_text_color"),this.facilityTextColor=this.store.get("theme","sidemenu_facility_text_color"),this.resourceTextColor=this.store.get("theme","sidemenu_resource_text_color"),this.userTextColor=this.store.get("theme","sidemenu_user_text_color"),this.serviceTextColor=this.store.get("theme","sidemenu_service_text_color")}return m(t,[{key:"getFacilitiesManagementItem",value:function(){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.baseItemColor,textColorCss:this.baseItemTextColor}}},{key:"getAccessManagementItem",value:function(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}},{key:"getHomeItem",value:function(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[]}}},{key:"getUserItem",value:function(){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.baseItemColor,textColorCss:this.baseItemTextColor,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.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"}]}}},{key:"getAdminItem",value:function(){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.baseItemColor,textColorCss:this.baseItemTextColor,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$"}]}}},{key:"parseFacility",value:function(t){return{label:t.name,baseLink:["/facilities/"+t.id],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseResource",value:function(t,e){var i=(new o.a).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getResourceLinks",value:function(t,e,i){var n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:e+"/\\d+/resources/\\d+$"}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:e+"/\\d+/resources/\\d+/groups$"}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:e+"/\\d+/resources/\\d+/services$"}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:e+"/\\d+/resources/\\d+/members$"}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:e+"/\\d+/resources/\\d+/attributes$"}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:e+"/\\d+/resources/\\d+/settings$",children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:e+"/\\d+/resources/\\d+/settings/managers$"}],showChildrenRegex:e+"/\\d+/resources/\\d+/settings"}),n}},{key:"parseGroup",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseVo",value:function(t){return{label:t.name,baseLink:["/organizations/"+t.id],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}},{key:"parseMember",value:function(t,e){return{label:Object(a.w)(t.user),baseLink:["/organizations/".concat(t.voId,"/members/").concat(t.id)],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseUser",value:function(t,e,i){return{label:Object(a.w)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseService",value:function(t){return{label:t.name,baseLink:["/admin/services/"+t.id],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:["/admin/services/"+t.id],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:["/admin/services/".concat(t.id,"/required-attributes")],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:["/admin/services/".concat(t.id,"/destinations")],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getVoLinks",value:function(t){var e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:["/organizations/"+t.id],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:["/organizations/".concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:["/organizations/".concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){var i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:["/organizations/".concat(t.id,"/resources/preview")],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:["/organizations/".concat(t.id,"/resources/tags")],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:["/organizations/".concat(t.id,"/resources/states")],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:["/organizations/".concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:["/organizations/".concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:["/organizations/".concat(t.id,"/sponsoredMembers")],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:["/organizations/".concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:["/organizations/".concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/statistics"});var n=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),r=this.authResolver.isManagerPagePrivileged(t),a=this.authResolver.isThisVoAdminOrObserver(t.id);if(r||n||a){var o=[];a&&o.push({label:"MENU_ITEMS.VO.EXPIRATION",url:["/organizations/".concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/settings/expiration$"}),r&&o.push({label:"MENU_ITEMS.VO.MANAGERS",url:["/organizations/".concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/settings/managers$"}),a&&o.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:["/organizations/".concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),a&&o.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:["/organizations/".concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/settings/notifications$"}),n&&o.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:["/organizations/".concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:["/organizations/".concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/settings$",children:o,showChildrenRegex:"/organizations/\\d+/settings"})}return e}},{key:"getUserLinks",value:function(t,e,i){var n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:i+"$"}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[e+"/organizations"],activatedRegex:i+"/organizations"}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[e+"/groups"],activatedRegex:i+"/groups"}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[e+"/identities"],activatedRegex:i+"/identities"}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:[e+"/facilities"],activatedRegex:i+"/facilities"}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:[e+"/resources"],activatedRegex:i+"/resources"}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[e+"/attributes"],activatedRegex:i+"/attributes"}),n.push({label:"MENU_ITEMS.USER.ROLES",url:[e+"/roles"],activatedRegex:"^".concat(e,"/roles")}),n.push({label:"MENU_ITEMS.ADMIN.SETTINGS",url:[e+"/settings"],activatedRegex:i+"/settings$",children:[],showChildrenRegex:i+"/settings"}),n[n.length-1].children.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[e+"/settings/associated-users"],activatedRegex:"^".concat(e,"/settings/associated-users")}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[e+"/settings/service-identities"],activatedRegex:"^".concat(e,"/settings/service-identities")}),n}},{key:"getMemberLinks",value:function(t,e){var i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:["/organizations/".concat(t.voId,"/members/").concat(t.id)],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}},{key:"getFacilityLinks",value:function(t){var e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:["/facilities/"+t.id],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:["/facilities/".concat(t.id,"/resources")],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:["/facilities/".concat(t.id,"/allowed-users")],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:["/facilities/".concat(t.id,"/allowed-groups")],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:["/facilities/".concat(t.id,"/services-status")],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:["/facilities/".concat(t.id,"/services-destinations")],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:["/facilities/".concat(t.id,"/hosts")],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});var i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),r=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),a=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||r||a){var o=[];r&&o.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&o.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),a&&o.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:["/facilities/".concat(t.id,"/settings/security-teams")],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&o.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:o,showChildrenRegex:"/facilities/\\d+/settings"})}return e}},{key:"getGroupLinks",value:function(t){var e=this,i=[],n=[];i.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&i.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/subgroups")],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),i.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});var r=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),a=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return r&&a&&o&&i.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,s.a.GROUP_DEF_EXPIRATION_RULES).subscribe((function(){n.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})}),(function(t){"HttpErrorResponse"!==t.name&&e.notificator.showRPCError(t)})),this.authResolver.isManagerPagePrivileged(t)&&n.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/relations")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==n.length&&i.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:n,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Wb(u.e),c.Wb(n.h),c.Wb(n.m),c.Wb(n.b),c.Wb(r.c),c.Wb(n.l),c.Wb(n.h))},t.\u0275prov=c.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},EkHC:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("cqs0"),r=i("X2Q7"),a=i("iyZ4"),o=i("8clQ"),s=(i("HHEo"),i("mEf3")),c=i("+0js"),u=i("IDQ9"),l=i("EM62"),h=i("OZ4H"),d=i("sEIs"),f=i("0XDM"),p=i("PBFl"),b=i("2kYt"),v=i("csyo"),y=i("LKLE"),A=i("s2Ay"),w=["list"];function _(t,e){1&t&&l.Nb(0,"mat-spinner",7)}function S(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-attributes-list",8,9),l.Zb("page",(function(t){return l.xc(i),l.dc().pageChanged(t)})),l.Rb()}if(2&t){var n=l.dc();l.kc("pageSize",n.pageSize)("attributes",n.attributes)("selection",n.selection)}}var k=function(){var t=function(){function t(e,i,r,o,s){g(this,t),this.dialog=e,this.attributesManager=i,this.tableConfigService=r,this.userService=o,this.route=s,this.loading=!1,this.selection=new n.c(!0,[]),this.tableId=a.r,this.attributes=[]}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe((function(e){t.userService.getUserExtSourceById(e.identityId).subscribe((function(e){t.userExtSource=e,t.refreshTable()}))}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe((function(e){t.attributes=Object(o.j)(e),t.selection.clear(),t.loading=!1}))}},{key:"onAdd",value:function(){var t=this,e=Object(o.o)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(u.a,e).afterClosed().subscribe((function(e){"saved"===e&&t.refreshTable()}))}},{key:"onSave",value:function(){var t=this;this.list.updateMapAttributes();var e=Object(o.o)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(c.f,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onRemove",value:function(){var t=this,e=Object(o.o)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(s.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(h.b),l.Mb(r.c),l.Mb(a.pb),l.Mb(r.p),l.Mb(d.a))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-identity-detail"]],viewQuery:function(t,e){var i;1&t&&l.Qc(w,!0),2&t&&l.sc(i=l.ac())&&(e.list=i.first)},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(l.Sb(0,"div"),l.Sb(1,"h1",0),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"perun-web-apps-refresh-button",1),l.Zb("refresh",(function(){return e.refreshTable()})),l.Rb(),l.Sb(5,"button",2),l.Zb("click",(function(){return e.onSave()})),l.Jc(6),l.ec(7,"translate"),l.Rb(),l.Sb(8,"button",3),l.Zb("click",(function(){return e.onAdd()})),l.Jc(9),l.ec(10,"translate"),l.Rb(),l.Sb(11,"button",4),l.Zb("click",(function(){return e.onRemove()})),l.Jc(12),l.ec(13,"translate"),l.Rb(),l.Hc(14,_,1,0,"mat-spinner",5),l.Hc(15,S,2,3,"perun-web-apps-attributes-list",6),l.Rb()),2&t&&(l.Ab(2),l.Mc("",l.fc(3,9,"SHARED.IDENTITY_DETAIL.TITLE")," - ",e.userExtSource?e.userExtSource.extSource.name:"",""),l.Ab(3),l.kc("disabled",0===e.selection.selected.length),l.Ab(1),l.Kc(l.fc(7,11,"SHARED.IDENTITY_DETAIL.SAVE")),l.Ab(3),l.Kc(l.fc(10,13,"SHARED.IDENTITY_DETAIL.ADD")),l.Ab(2),l.kc("disabled",0===e.selection.selected.length),l.Ab(1),l.Kc(l.fc(13,15,"SHARED.IDENTITY_DETAIL.REMOVE")),l.Ab(2),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading))},directives:[f.a,p.b,b.t,v.c,y.a],pipes:[A.d],styles:[""]}),t}()},"EtR/":function(t,e,i){"use strict";i.d(e,"a",(function(){return R}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("2kYt"),s=i("nIj0"),c=i("cqs0"),u=i("nyAh"),l=i("iyZ4"),h=i("EM62"),d=i("s2Ay"),f=i("29Wa"),p=i("Cd2c"),b=i("PBFl"),v=i("HMTk"),y=i("csyo"),A=i("nz2m"),w=i("FcRk");function _(t,e){1&t&&h.Nb(0,"mat-spinner",12)}var S=function(){return["groupStatus","organization","logins","type"]};function k(t,e){if(1&t){var i=h.Tb();h.Sb(0,"perun-web-apps-members-list",13),h.Zb("page",(function(t){return h.xc(i),h.dc().pageChanged(t)})),h.Rb()}if(2&t){var n=h.dc();h.kc("pageSize",n.pageSize)("hidden",n.loading)("members",n.members)("selection",n.selection)("hideColumns",h.oc(6,S))("disableRouting",!0)}}function E(t,e){1&t&&(h.Sb(0,"app-alert",14),h.Jc(1),h.ec(2,"translate"),h.Rb()),2&t&&(h.Ab(1),h.Lc(" ",h.fc(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}var R=function(){var t=function(){function t(e,i,n,r,a,o,u){g(this,t),this.dialogRef=e,this.data=i,this.store=n,this.membersService=r,this.notificator=a,this.translate=o,this.tableConfigService=u,this.loading=!1,this.tableId=l.h,this.expiration="never",this.searchCtrl=new s.g("",[s.F.required]),this.firstSearchDone=!1,this.members=[],this.selection=new c.c(!0,[])}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"sponsor",value:function(t){var e=this;if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);var i=t.pop();i.sponsored?this.membersService.sponsorMember(i.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe((function(){e.sponsor(t)}),(function(){return e.loading=!1})):this.membersService.setSponsorshipForMember(i.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe((function(){e.sponsor(t)}),(function(){return e.loading=!1}))}},{key:"onSubmit",value:function(){this.loading=!0;var t=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(t)}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":Object(o.I)(t,"yyyy-MM-dd","en-GB")}},{key:"onSearchByString",value:function(){var t=this;this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[u.a.MEMBER_DEF_EXPIRATION,u.a.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe((function(e){t.members=e,t.loading=!1}),(function(){return t.loading=!1})))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.i),h.Mb(n.a),h.Mb(r.m),h.Mb(a.i),h.Mb(r.l),h.Mb(d.e),h.Mb(l.pb))},t.\u0275cmp=h.Gb({type:t,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","hidden","members","selection","hideColumns","disableRouting","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","hidden","members","selection","hideColumns","disableRouting","page"],["alert_type","warn"]],template:function(t,e){1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"div",1),h.Sb(5,"mat-form-field",2),h.Sb(6,"label"),h.Sb(7,"input",3),h.Zb("keyup.enter",(function(){return e.onSearchByString()})),h.ec(8,"translate"),h.Rb(),h.Rb(),h.Sb(9,"mat-error"),h.Jc(10),h.ec(11,"translate"),h.Rb(),h.Rb(),h.Sb(12,"button",4),h.Zb("click",(function(){return e.onSearchByString()})),h.Jc(13),h.ec(14,"translate"),h.Rb(),h.Hc(15,_,1,0,"mat-spinner",5),h.Hc(16,k,1,7,"perun-web-apps-members-list",6),h.Hc(17,E,3,3,"app-alert",7),h.Sb(18,"div"),h.Nb(19,"br"),h.Sb(20,"h6"),h.Jc(21),h.ec(22,"translate"),h.Rb(),h.Sb(23,"perun-web-apps-expiration-select",8),h.Zb("datePicker",(function(t){return e.setExpiration(t)})),h.Rb(),h.Rb(),h.Rb(),h.Sb(24,"div",9),h.Sb(25,"button",10),h.Zb("click",(function(){return e.onCancel()})),h.Jc(26),h.ec(27,"translate"),h.Rb(),h.Sb(28,"button",11),h.Zb("click",(function(){return e.onSubmit()})),h.Jc(29),h.ec(30,"translate"),h.Rb(),h.Rb(),h.Rb()),2&t&&(h.Cb(e.theme),h.Ab(2),h.Kc(h.fc(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),h.Ab(5),h.lc("placeholder",h.fc(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),h.kc("formControl",e.searchCtrl),h.Ab(3),h.Lc(" ",h.fc(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),h.Ab(2),h.kc("disabled",e.loading),h.Ab(1),h.Lc(" ",h.fc(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",e.firstSearchDone),h.Ab(1),h.kc("ngIf",!e.firstSearchDone),h.Ab(4),h.Kc(h.fc(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),h.Ab(5),h.Lc(" ",h.fc(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),h.Ab(2),h.kc("disabled",e.loading||0===e.selection.selected.length),h.Ab(1),h.Lc(" ",h.fc(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[n.j,n.g,f.c,p.b,s.c,s.r,s.h,f.b,b.b,o.t,v.a,n.c,y.c,A.a,w.a],pipes:[d.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),t}()},EtYo:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("Ssnw"),r=i("EM62"),a=i("2kYt"),o=i("PBFl"),s=i("Y2X+"),c=i("bFHC"),u=i("s2Ay"),l=function(t){return{color:t}},h=function(){var t=function(){function t(e,i){g(this,t),this.location=e,this.storeService=i}return m(t,[{key:"ngOnInit",value:function(){this.backButtonColor=this.storeService.get("theme","backButtonColor")}},{key:"goBack",value:function(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(a.n),r.Mb(n.m))},t.\u0275cmp=r.Gb({type:t,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(t,e){1&t&&(r.Sb(0,"button",0),r.Zb("click",(function(){return e.goBack()})),r.ec(1,"translate"),r.Sb(2,"mat-icon",1),r.Jc(3,"arrow_right_alt"),r.Rb(),r.Rb()),2&t&&(r.lc("matTooltip",r.fc(1,2,"Back")),r.kc("ngStyle",r.pc(4,l,e.backButtonColor)))},directives:[o.b,a.w,s.a,c.a],pipes:[u.d],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t}()},F1o0:function(t,e,i){"use strict";i.d(e,"a",(function(){return k})),i.d(e,"b",(function(){return w})),i.d(e,"c",(function(){return R}));var n=i("EM62"),r=i("mFH5"),o=i("5XID"),c=i("nIj0"),u=i("5lCh"),l=i("sg/T"),h=i("cqs0"),d=["input"],f=function(){return{enterDuration:150}},p=["*"],b=new n.r("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),v=0,y={provide:c.p,useExisting:Object(n.U)((function(){return w})),multi:!0},A=function t(e,i){g(this,t),this.source=e,this.value=i},w=function(){var t=function(){function t(e){g(this,t),this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+v++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new n.o}return m(t,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var t=this;this._radios&&this._radios.forEach((function(e){e.name=t.name,e._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var t=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(e){e.checked=t.value===e.value,e.checked&&(t._selected=e)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new A(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(t){return t._markForCheck()}))}},{key:"writeValue",value:function(t){this.value=t,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(o.c)(t),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(t){this._required=Object(o.c)(t),this._markRadiosForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.h))},t.\u0275dir=n.Hb({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var r;1&t&&n.Fb(i,k,!0),2&t&&n.sc(r=n.ac())&&(e._radios=r)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[n.zb([y])]}),t}(),_=Object(r.z)(Object(r.D)((function t(e){g(this,t),this._elementRef=e}))),S=function(){var t=function(t){a(i,t);var e=s(i);function i(t,r,a,o,s,c,u){var l;return g(this,i),(l=e.call(this,r))._changeDetector=a,l._focusMonitor=o,l._radioDispatcher=s,l._animationMode=c,l._providerOverride=u,l._uniqueId="mat-radio-"+ ++v,l.id=l._uniqueId,l.change=new n.o,l._checked=!1,l._value=null,l._removeUniqueSelectionListener=function(){},l.radioGroup=t,l._removeUniqueSelectionListener=s.listen((function(t,e){t!==l.id&&e===l.name&&(l.checked=!1)})),l}return m(i,[{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){!e&&t.radioGroup&&t.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new A(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"_onInputChange",value:function(t){t.stopPropagation();var e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(t){var e=Object(o.c)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(t){this._setDisabled(Object(o.c)(t))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=Object(o.c)(t)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(t){this._color=t}},{key:"inputId",get:function(){return(this.id||this._uniqueId)+"-input"}}]),i}(_);return t.\u0275fac=function(e){return new(e||t)(n.Mb(w,8),n.Mb(n.l),n.Mb(n.h),n.Mb(l.h),n.Mb(h.d),n.Mb(u.a,8),n.Mb(b,8))},t.\u0275dir=n.Hb({type:t,viewQuery:function(t,e){var i;1&t&&n.Qc(d,!0),2&t&&n.sc(i=n.ac())&&(e._inputElement=i.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[n.xb]}),t}(),k=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(S);return t.\u0275fac=function(e){return E(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&n.Zb("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(n.Bb("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.Eb("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.xb],ngContentSelectors:p,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(t,e){if(1&t&&(n.jc(),n.Sb(0,"label",0,1),n.Sb(2,"div",2),n.Nb(3,"div",3),n.Nb(4,"div",4),n.Sb(5,"input",5,6),n.Zb("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),n.Rb(),n.Sb(7,"div",7),n.Nb(8,"div",8),n.Rb(),n.Rb(),n.Sb(9,"div",9),n.Sb(10,"span",10),n.Jc(11,"\xa0"),n.Rb(),n.ic(12),n.Rb(),n.Rb()),2&t){var i=n.tc(1);n.Bb("for",e.inputId),n.Ab(5),n.kc("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),n.Bb("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.Ab(2),n.kc("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.oc(18,f)),n.Ab(2),n.Eb("mat-radio-label-before","before"==e.labelPosition)}},directives:[r.s],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;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;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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}.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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t}(),E=n.Ub(k),R=function(){var t=function t(){g(this,t)};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[r.t,r.i],r.i]}),t}()},FU6l:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=Array.isArray||function(t){return t&&"number"==typeof t.length}},FcRk:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),r=i("2kYt"),a=i("bFHC");function o(t,e){1&t&&(n.Sb(0,"mat-icon",2),n.Jc(1," error "),n.Rb())}var s=["*"],c=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"ngOnInit",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:s,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(n.jc(),n.Sb(0,"div",0),n.Hc(1,o,2,0,"mat-icon",1),n.ic(2),n.Rb()),2&t&&(n.Eb("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),n.Ab(1),n.kc("ngIf","error"!==e.alert_type))},directives:[r.t,a.a],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t}()},FlRo:function(t,e,o){"use strict";o.d(e,"a",(function(){return ue})),o.d(e,"b",(function(){return $t})),o.d(e,"c",(function(){return ae})),o.d(e,"d",(function(){return ce})),o.d(e,"e",(function(){return ne})),o.d(e,"f",(function(){return ve})),o.d(e,"g",(function(){return de})),o.d(e,"h",(function(){return se})),o.d(e,"i",(function(){return ee})),o.d(e,"j",(function(){return be})),o.d(e,"k",(function(){return le})),o.d(e,"l",(function(){return Ae})),o.d(e,"m",(function(){return pe})),o.d(e,"n",(function(){return Xt})),o.d(e,"o",(function(){return Ee})),o.d(e,"p",(function(){return ke})),o.d(e,"q",(function(){return _e}));var c=o("5XID"),u=o("cqs0"),l=o("EM62"),f=o("E5oP"),p=o("cZZj"),b=o("2kYt"),v=o("ZTXN"),y=o("C05f"),A=o("9bRT"),w=o("ROBh"),_=o("kuMc"),S=[[["caption"]]],k=["caption"];function E(t,e){if(1&t&&(l.Sb(0,"th",3),l.Jc(1),l.Rb()),2&t){var i=l.dc();l.Ec("text-align",i.justify),l.Ab(1),l.Lc(" ",i.headerText," ")}}function R(t,e){if(1&t&&(l.Sb(0,"td",4),l.Jc(1),l.Rb()),2&t){var i=e.$implicit,n=l.dc();l.Ec("text-align",n.justify),l.Ab(1),l.Lc(" ",n.dataAccessor(i,n.name)," ")}}function C(t){return function(t){a(i,t);var e=s(i);function i(){var t;g(this,i);for(var n=arguments.length,r=new Array(n),a=0;a3&&void 0!==arguments[3])||arguments[3];g(this,t),this._isNativeHtmlTable=e,this._stickCellCss=i,this.direction=n,this._isBrowser=r}return m(t,[{key:"clearStickyPositioning",value:function(t,e){var i,n=d(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.nodeType===r.ELEMENT_NODE){this._removeStickyStyle(r,e);for(var a=0;a0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}}]),t}();function dt(t){return Error('Could not find column with id "'.concat(t,'".'))}var ft,pt,gt,bt,mt=((bt=function t(e,i){g(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||bt)(l.Mb(l.Q),l.Mb(l.l))},bt.\u0275dir=l.Hb({type:bt,selectors:[["","rowOutlet",""]]}),bt),vt=((gt=function t(e,i){g(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||gt)(l.Mb(l.Q),l.Mb(l.l))},gt.\u0275dir=l.Hb({type:gt,selectors:[["","headerRowOutlet",""]]}),gt),yt=((pt=function t(e,i){g(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||pt)(l.Mb(l.Q),l.Mb(l.l))},pt.\u0275dir=l.Hb({type:pt,selectors:[["","footerRowOutlet",""]]}),pt),At=((ft=function(){function t(e,i,n,r,a,o,s){g(this,t),this._differs=e,this._changeDetectorRef=i,this._elementRef=n,this._dir=a,this._platform=s,this._onDestroy=new v.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new y.a({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return m(t,[{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,i){return t.trackBy?t.trackBy(i.dataIndex,i.data):i}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),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._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(u.e)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var i=this._rowOutlet.viewContainer;e.forEachOperation((function(e,n,r){if(null==e.previousIndex)t._insertRow(e.item,r);else if(null==r)i.remove(n);else{var a=i.get(n);i.move(a,r)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){i.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var i=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var i=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(i(e),i(n),i(r)),["left","right"]),e.forEach((function(e,i){t._addStickyColumnStyles([e],t._headerRowDefs[i])})),this._rowDefs.forEach((function(e){for(var i=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}},{key:"_renderUpdatedColumns",value:function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(t){this._data=[],Object(u.e)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}},{key:"_observeRenderChanges",value:function(){var t=this;if(this.dataSource){var e;if(Object(u.e)(this.dataSource)?e=this.dataSource.connect(this):Object(A.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(w.a)(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(Object(_.a)(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,i){return t._renderRow(t._headerRowOutlet,e,i)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,i){return t._renderRow(t._footerRowOutlet,e,i)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var i=this,n=Array.from(e.columns||[]).map((function(t){var e=i._columnDefsByName.get(t);if(!e)throw dt(t);return e})),r=n.map((function(t){return t.sticky})),a=n.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,r,a)}},{key:"_getRenderedRows",value:function(t){for(var e=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{};t.viewContainer.createEmbeddedView(e.template,n,i);var r,a=d(this._getCellTemplates(e));try{for(a.s();!(r=a.n()).done;){var o=r.value;ot.mostRecentCellOutlet&&ot.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n)}}catch(s){a.e(s)}finally{a.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,i=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return g(this,i),(t=e.call(this))._renderData=new y.a([]),t._filter=new y.a(""),t._internalPageChanges=new v.a,t._renderChangesSubscription=Ct.a.EMPTY,t.sortingDataAccessor=function(t,e){var i=t[e];if(Object(c.a)(i)){var n=Number(i);return n<9007199254740991?n:i}return i},t.sortData=function(e,i){var n=i.active,r=i.direction;return n&&""!=r?e.sort((function(e,i){var a=t.sortingDataAccessor(e,n),o=t.sortingDataAccessor(i,n),s=0;return null!=a&&null!=o?a>o?s=1:a0)){var n=Math.ceil(i.length/i.pageSize)-1||0,r=Math.min(i.pageIndex,n);r!==i.pageIndex&&(i.pageIndex=r,e._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"filter",get:function(){return this._filter.value},set:function(t){this._filter.next(t)}},{key:"sort",get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()}}]),i}(u.b)},GoAz:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("IdLP"),r=i("1MAX"),a=i("bwdy"),o=i("qEfY"),s=i("czMQ"),c=i("sWLk"),u=i("/vgl"),l=i("eY+9");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new n.a((function(i){var n=new a.a;return n.add(e.schedule((function(){var r=t[o.a]();n.add(r.subscribe({next:function(t){n.add(e.schedule((function(){return i.next(t)})))},error:function(t){n.add(e.schedule((function(){return i.error(t)})))},complete:function(){n.add(e.schedule((function(){return i.complete()})))}}))}))),n}))}(t,e);if(Object(u.a)(t))return function(t,e){return new n.a((function(i){var n=new a.a;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){i.next(t),n.add(e.schedule((function(){return i.complete()})))})))}),(function(t){n.add(e.schedule((function(){return i.error(t)})))}))}))),n}))}(t,e);if(Object(l.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.a((function(i){var n,r=new a.a;return r.add((function(){n&&"function"==typeof n.return&&n.return()})),r.add(e.schedule((function(){n=t[c.a](),r.add(e.schedule((function(){if(!i.closed){var t,e;try{var r=n.next();t=r.value,e=r.done}catch(a){return void i.error(a)}e?i.complete():(i.next(t),this.schedule())}})))}))),r}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.a?t:new n.a(Object(r.a)(t))}},Gtvd:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("FlRo"),r=i("X2Q7"),a=i("OZ4H"),o=i("Ssnw"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("csyo"),h=i("PBFl");function d(t,e){1&t&&s.Nb(0,"mat-spinner",4)}function f(t,e){1&t&&s.Nb(0,"th",13)}function p(t,e){if(1&t&&(s.Sb(0,"td",14),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function b(t,e){1&t&&s.Nb(0,"tr",15)}function v(t,e){1&t&&s.Nb(0,"tr",16)}function y(t,e){if(1&t&&(s.Sb(0,"div",5),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",6),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",7),s.Qb(8,8),s.Hc(9,f,1,0,"th",9),s.Hc(10,p,2,1,"td",10),s.Pb(),s.Hc(11,b,1,0,"tr",11),s.Hc(12,v,1,0,"tr",12),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}function A(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",17),s.Sb(1,"button",18),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"button",19),s.Zb("click",(function(){return s.xc(i),s.dc().onSubmit()})),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),s.Ab(2),s.kc("disabled",n.loading),s.Ab(1),s.Lc(" ",s.fc(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}var w=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=a,this.displayedColumns=["name"]}return m(t,[{key:"ngOnInit",value:function(){this.dataSource=new n.o(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.data.resources.map((function(t){return t.id}));this.resourcesManager.removeGroupFromResources(this.data.groupId,e).subscribe((function(){t.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe((function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(a.i),s.Mb(a.a),s.Mb(o.l),s.Mb(c.e),s.Mb(r.m))},t.\u0275cmp=s.Gb({type:t,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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Hc(6,A,7,7,"div",3),s.Rb()),2&t&&(s.Cb(e.data.theme),s.Ab(2),s.Kc(s.fc(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(1),s.kc("ngIf",!e.loading))},directives:[a.j,u.t,l.c,a.g,n.n,n.c,n.i,n.b,n.k,n.m,n.h,n.a,n.j,n.l,a.c,h.b],pipes:[c.d],styles:[""]}),t}()},H0K4:function(t,e,i){"use strict";i.d(e,"a",(function(){return f})),i.d(e,"b",(function(){return p})),i.d(e,"c",(function(){return b})),i.d(e,"d",(function(){return v}));var n=i("cZZj"),r=i("EM62"),a=i("5XID"),o=i("6Oco"),s=i("ZTXN"),c=i("KTx3"),u=i("prE9"),l=i("kuMc"),h=i("2kYt"),d=Object(n.f)({passive:!0}),f=function(){var t=function(){function t(e,i){g(this,t),this._platform=e,this._ngZone=i,this._monitoredElements=new Map}return m(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return o.a;var i=Object(a.e)(t),n=this._monitoredElements.get(i);if(n)return n.subject.asObservable();var r=new s.a,c="cdk-text-field-autofilled",u=function(t){"cdk-text-field-autofill-start"!==t.animationName||i.classList.contains(c)?"cdk-text-field-autofill-end"===t.animationName&&i.classList.contains(c)&&(i.classList.remove(c),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!1})}))):(i.classList.add(c),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){i.addEventListener("animationstart",u,d),i.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(i,{subject:r,unlisten:function(){i.removeEventListener("animationstart",u,d)}}),r.asObservable()}},{key:"stopMonitoring",value:function(t){var e=Object(a.e)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach((function(e,i){return t.stopMonitoring(i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Wb(n.a),r.Wb(r.A))},t.\u0275prov=Object(r.Ib)({factory:function(){return new t(Object(r.Wb)(n.a),Object(r.Wb)(r.A))},token:t,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i){g(this,t),this._elementRef=e,this._autofillMonitor=i,this.cdkAutofill=new r.o}return m(t,[{key:"ngOnInit",value:function(){var t=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(e){return t.cdkAutofill.emit(e)}))}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(f))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t}(),b=function(){var t=function(){function t(e,i,n,r){g(this,t),this._elementRef=e,this._platform=i,this._ngZone=n,this._destroyed=new s.a,this._enabled=!0,this._previousMinRows=-1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=i.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return m(t,[{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){var e=t._getWindow();Object(c.a)(e,"resize").pipe(Object(u.a)(16),Object(l.a)(t._destroyed)).subscribe((function(){return t.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(e||this._minRows!==this._previousMinRows||n!==this._previousValue){var r=i.placeholder;i.classList.add(this._measuringClass),i.placeholder="",i.style.height=i.scrollHeight-4+"px",i.classList.remove(this._measuringClass),i.placeholder=r,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return t._scrollToCaretPosition(i)})):setTimeout((function(){return t._scrollToCaretPosition(i)}))})),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,i=t.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}},{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=Object(a.f)(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=Object(a.f)(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=Object(a.c)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(n.a),r.Mb(r.A),r.Mb(h.e,8))},t.\u0275dir=r.Hb({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.Zb("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t}(),v=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[n.b]]}),t}()},H2Dp:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e,i){return t.filter((function(t){return t[i].includes(e)})).filter((function(t,e,n){return n.findIndex((function(e){return e[i]===t[i]}))===e}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"filterUniqueObjects",type:t,pure:!0}),t}()},HHEo:function(t,e,i){"use strict";i.d(e,"d",(function(){return j})),i.d(e,"a",(function(){return G.a})),i.d(e,"c",(function(){return U.a})),i.d(e,"e",(function(){return K.a})),i.d(e,"b",(function(){return V.b}));var n,r,o=i("2kYt"),c=i("+Tre"),u=i("FlRo"),l=i("s2Ay"),h=i("sEIs"),d=i("cePI"),f=i("iAde"),p=i("csyo"),b=i("KoHB"),v=i("bFHC"),y=i("Jb3d"),A=i("PBFl"),w=i("Y2X+"),_=i("29Wa"),S=i("nIj0"),k=i("Cd2c"),E=i("S17y"),R=i("oqI+"),C=i("mFH5"),T=i("t47Z"),I=i("HHFY"),O=i("QcI7"),D=i("gcUQ"),M=i("F1o0"),P=i("R7+U"),x=i("BYpP"),N=i("qvOF"),L=i("OZ4H"),F=i("EM62"),z=((n=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"format",value:function(t,e){return"input"===e?"".concat(t.getDate().toString(),".").concat((t.getMonth()+1).toString(),".").concat(t.getFullYear()):t.toDateString()}}]),i}(C.u)).\u0275fac=function(t){return H(t||n)},n.\u0275prov=F.Ib({token:n,factory:n.\u0275fac}),n),H=F.Ub(z),B={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"}}},j=((r=function t(){g(this,t)}).\u0275mod=F.Kb({type:r}),r.\u0275inj=F.Jb({factory:function(t){return new(t||r)},providers:[{provide:C.c,useClass:z},{provide:C.e,useValue:B}],imports:[[o.c,c.b,u.p,S.l,E.g,R.g,l.c,h.j,d.c,f.b,p.b,b.a,v.b,y.c,A.c,w.b,_.e,S.B,k.c,C.t,T.b,I.c,O.e,D.g,M.c,C.o,P.b,x.b,N.g,L.h]]}),r);i("LKLE");var G=i("nhAq"),U=(i("b7Yx"),i("8cyV"),i("U3ra"),i("UX+r"),i("23RZ"),i("tmvS"),i("YFHD"),i("3jrC")),K=i("B/Qt"),V=(i("K9kF"),i("XAvq"),i("HMTk"),i("2Zb0"),i("oYGW"),i("6Xhx"))},HHFY:function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return u}));var n=i("2kYt"),r=i("EM62"),a=function(){function t(e,i){g(this,t),this._document=i;var n=this._textarea=this._document.createElement("textarea"),r=n.style;r.opacity="0",r.position="absolute",r.left=r.top="-999em",n.setAttribute("aria-hidden","true"),n.value=e,this._document.body.appendChild(n)}return m(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(n){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),o=function(){var t=function(){function t(e){g(this,t),this._document=e}return m(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),i=e.copy();return e.destroy(),i}},{key:"beginCopy",value:function(t){return new a(t,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Wb(n.e))},t.\u0275prov=Object(r.Ib)({factory:function(){return new t(Object(r.Wb)(n.e))},token:t,providedIn:"root"}),t}(),s=new r.r("CKD_COPY_TO_CLIPBOARD_CONFIG"),c=function(){var t=function(){function t(e,i,n){g(this,t),this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new r.o,this._deprecatedCopied=this.copied,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return m(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var i=e,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var r=function e(){var r=n.copy();r||!--i||t._destroyed?(t._currentTimeout=null,t._pending.delete(n),n.destroy(),t.copied.emit(r)):t._currentTimeout=t._ngZone?t._ngZone.runOutsideAngular((function(){return setTimeout(e,1)})):setTimeout(e,1)};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((function(t){return t.destroy()})),this._pending.clear(),this._destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(o),r.Mb(r.A),r.Mb(s,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&r.Zb("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),t}(),u=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t}()},HHqq:function(t,e,i){"use strict";i.d(e,"a",(function(){return F}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("nIj0"),s=i("jIqt"),c=i("YtkY"),u=i("cqs0"),l=i("EM62"),h=i("s2Ay"),f=i("x9Az"),p=i("2kYt"),b=i("PBFl"),v=i("csyo"),y=i("29Wa"),A=i("Cd2c"),w=i("ulve"),_=i("R7+U"),S=i("mFH5"),k=i("K9kF"),E=i("FcRk");function R(t,e){1&t&&(l.Jc(0),l.ec(1,"translate")),2&t&&l.Kc(l.fc(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function C(t,e){1&t&&l.Nb(0,"mat-spinner",13)}function T(t,e){if(1&t&&(l.Sb(0,"mat-option",24),l.Jc(1),l.Rb()),2&t){var i=e.$implicit;l.kc("value",i),l.Ab(1),l.Lc(" ",i," ")}}function I(t,e){if(1&t){var i=l.Tb();l.Sb(0,"mat-option",25),l.Zb("click",(function(){l.xc(i);var t=e.$implicit,n=l.dc(2),r=l.tc(6);return n.setResource(t),r.selected.completed=!0})),l.Jc(1),l.Rb()}if(2&t){var n=e.$implicit;l.kc("value",n),l.Ab(1),l.Lc(" ",n.name," ")}}function O(t,e){if(1&t&&(l.Sb(0,"div",22),l.Jc(1),l.Rb()),2&t){var i=e.$implicit;l.Ab(1),l.Kc(i.name)}}function D(t,e){if(1&t&&(l.Sb(0,"div"),l.Sb(1,"div"),l.Sb(2,"mat-form-field",14),l.Nb(3,"input",15),l.ec(4,"translate"),l.Sb(5,"mat-autocomplete",16,17),l.Hc(7,T,2,2,"mat-option",18),l.ec(8,"async"),l.Rb(),l.Rb(),l.Rb(),l.Sb(9,"div"),l.Sb(10,"mat-form-field",14),l.Sb(11,"mat-select",19),l.ec(12,"translate"),l.Hc(13,I,2,2,"mat-option",20),l.ec(14,"async"),l.Rb(),l.Rb(),l.Rb(),l.Sb(15,"div"),l.Sb(16,"span",21),l.Jc(17),l.ec(18,"translate"),l.Rb(),l.Sb(19,"div",22),l.Jc(20),l.Rb(),l.Rb(),l.Sb(21,"div"),l.Sb(22,"span",21),l.Jc(23),l.ec(24,"translate"),l.Rb(),l.Hc(25,O,2,1,"div",23),l.Rb(),l.Rb()),2&t){var i=l.tc(6),n=l.dc();l.Ab(3),l.lc("placeholder",l.fc(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),l.kc("formControl",n.facilityCtrl)("matAutocomplete",i),l.Ab(4),l.kc("ngForOf",l.fc(8,12,n.filteredFacilities)),l.Ab(4),l.lc("placeholder",l.fc(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),l.Ab(2),l.kc("ngForOf",l.fc(14,16,n.filteredResources)),l.Ab(4),l.Kc(l.fc(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),l.Ab(3),l.Lc(" ",n.description," "),l.Ab(3),l.Kc(l.fc(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),l.Ab(2),l.kc("ngForOf",n.services)}}function M(t,e){1&t&&(l.Jc(0),l.ec(1,"translate")),2&t&&l.Kc(l.fc(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function P(t,e){1&t&&l.Nb(0,"mat-spinner",13)}var x=function(){return["recent","vo","expiration","menu"]};function N(t,e){if(1&t&&(l.Sb(0,"div"),l.Nb(1,"perun-web-apps-groups-list",26),l.Rb()),2&t){var i=l.dc();l.Ab(1),l.kc("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisable",i.membersGroupsId)("groups",i.groups)("hideColumns",l.oc(7,x))("selection",i.selectedGroups)}}function L(t,e){1&t&&(l.Sb(0,"app-alert",27),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}var F=function(){var t=function(){function t(e,i,n,r,a,s,c){g(this,t),this.dialogRef=e,this.data=i,this.resourceManager=n,this.groupManager=r,this.notificator=a,this.translate=s,this.authResolver=c,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new o.g,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new u.c(!1,[])}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe((function(e){t.resources=e,t.getResourceFacilities(),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"getResourceFacilities",value:function(){var t,e=this,i=new Set,n=d(this.resources);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.add(r.facility.name)}}catch(a){n.e(a)}finally{n.f()}this.facilitiesNames=Array.from(i),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe(Object(s.a)(""),Object(c.a)((function(t){return e.filterFacilities(t)}))),this.filteredResources=this.facilityCtrl.valueChanges.pipe(Object(s.a)(""),Object(c.a)((function(t){return e.filterResources(t)})))}},{key:"filterFacilities",value:function(t){var e=t.toLowerCase();return this.facilitiesNames.filter((function(t){return t.toLowerCase().indexOf(e)>=0})).sort((function(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}))}},{key:"filterResources",value:function(t){if(null==t)return this.resources;var e=t.toLowerCase();return this.resources.filter((function(t){return 0===t.facility.name.toLowerCase().indexOf(e)})).sort((function(t,e){return t.name.toLowerCase().localeCompare(e.name.toLowerCase())}))}},{key:"setResource",value:function(t){var e=this;this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe((function(t){e.services=t,e.processing=!1}),(function(){return e.processing=!1})),this.description=this.selectedResource.description}},{key:"loadGroups",value:function(){var t=this;this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe((function(e){t.groups=e,t.groupManager.getAllMemberGroups(t.data.memberId).subscribe((function(e){t.membersGroupsId=new Set(e.map((function(t){return t.id}))),t.groups.forEach((function(e){t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])||t.membersGroupsId.add(e.id)})),t.processing=!1}),(function(){return t.processing=!1}))}))}},{key:"onFinish",value:function(){var t=this;this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe((function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),t.dialogRef.close(!0)}),(function(){return t.processing=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(n.i),l.Mb(n.a),l.Mb(a.m),l.Mb(a.h),l.Mb(r.l),l.Mb(h.e),l.Mb(r.h))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-add-member-to-resource-dialog"]],decls:30,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto",3,"click"],[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",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","groupsToDisable","groups","hideColumns","selection"],["alert_type","warn"]],template:function(t,e){1&t&&(l.Sb(0,"div"),l.Sb(1,"h1",0),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"div",1),l.Sb(5,"mat-horizontal-stepper",2,3),l.Sb(7,"mat-step",4),l.Hc(8,R,2,3,"ng-template",5),l.Hc(9,C,1,0,"mat-spinner",6),l.Hc(10,D,26,22,"div",7),l.Sb(11,"div",8),l.Sb(12,"button",9),l.Zb("click",(function(){return e.onCancel()})),l.Jc(13),l.ec(14,"translate"),l.Rb(),l.Sb(15,"button",10),l.Zb("click",(function(){return e.loadGroups()})),l.Jc(16),l.ec(17,"translate"),l.Rb(),l.Rb(),l.Rb(),l.Sb(18,"mat-step"),l.Hc(19,M,2,3,"ng-template",5),l.Hc(20,P,1,0,"mat-spinner",6),l.Hc(21,N,2,8,"div",7),l.Hc(22,L,3,3,"app-alert",11),l.Sb(23,"div",8),l.Sb(24,"button",12),l.Zb("click",(function(){return e.selectedGroups.clear()})),l.Jc(25),l.ec(26,"translate"),l.Rb(),l.Sb(27,"button",10),l.Zb("click",(function(){return e.onFinish()})),l.Jc(28),l.ec(29,"translate"),l.Rb(),l.Rb(),l.Rb(),l.Rb(),l.Rb(),l.Rb()),2&t&&(l.Cb(e.theme),l.Ab(2),l.Kc(l.fc(3,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),l.Ab(3),l.kc("linear",!0),l.Ab(4),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(3),l.Kc(l.fc(14,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")),l.Ab(2),l.kc("disabled",null==e.selectedResource||e.processing||e.loading),l.Ab(1),l.Kc(l.fc(17,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")),l.Ab(4),l.kc("ngIf",e.processing),l.Ab(1),l.kc("ngIf",0!==e.groups.length&&!e.processing),l.Ab(1),l.kc("ngIf",0===e.groups.length&&!e.processing),l.Ab(3),l.Lc(" ",l.fc(26,22,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK"),""),l.Ab(2),l.kc("disabled",0===e.selectedGroups.selected.length||e.processing),l.Ab(1),l.Lc(" ",l.fc(29,24,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT"),""))},directives:[n.j,n.g,f.a,f.b,f.d,p.t,n.c,b.b,f.h,f.i,v.c,y.c,A.b,o.c,w.d,o.r,o.h,w.a,p.s,_.a,S.n,k.a,E.a],pipes:[h.d,p.b],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t}()},HM3f:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("gBlb"),r=i("FU6l"),o=i("pBDD"),c=i("mW0F"),u=i("ckkg"),l={};function h(){for(var t=arguments.length,e=new Array(t),i=0;ithis.total&&this.destination.next(t)}}]),i}(p.a),y=i("mWib"),A=i("YtkY"),w=i("jIqt"),_=i("kuMc"),S=i("5XID"),k=new Set,E=((r=function(){function t(e){g(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):R}return m(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!k.has(t))try{n||((n=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(n)),n.sheet&&(n.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),k.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||r)(o.Wb(c.a))},r.\u0275prov=Object(o.Ib)({factory:function(){return new r(Object(o.Wb)(c.a))},token:r,providedIn:"root"}),r);function R(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var C,T=((C=function(){function t(e,i){g(this,t),this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new u.a}return m(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return I(Object(S.b)(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,i=I(Object(S.b)(t)).map((function(t){return e._registerQuery(t).observable})),n=Object(l.a)(i);return(n=Object(h.a)(n.pipe(Object(f.a)(1)),n.pipe((function(t){return t.lift(new b(1))}),Object(y.a)(0)))).pipe(Object(A.a)((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var i=this._mediaMatcher.matchMedia(t),n={observable:new d.a((function(t){var n=function(i){return e._zone.run((function(){return t.next(i)}))};return i.addListener(n),function(){i.removeListener(n)}})).pipe(Object(w.a)(i),Object(A.a)((function(e){return{query:t,matches:e.matches}})),Object(_.a)(this._destroySubject)),mql:i};return this._queries.set(t,n),n}}]),t}()).\u0275fac=function(t){return new(t||C)(o.Wb(E),o.Wb(o.A))},C.\u0275prov=Object(o.Ib)({factory:function(){return new C(Object(o.Wb)(E),Object(o.Wb)(o.A))},token:C,providedIn:"root"}),C);function I(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var O={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},HYj3:function(t,e,i){"use strict";i.d(e,"a",(function(){return Z})),i.d(e,"b",(function(){return W})),i.d(e,"c",(function(){return V})),i.d(e,"d",(function(){return T})),i.d(e,"e",(function(){return N})),i.d(e,"f",(function(){return X}));var n=i("qvOF"),a=i("EM62"),o=i("cZZj"),s=i("E5oP"),c=i("2kYt"),u=i("5XID"),l=i("Sv/w"),h=i("ZTXN"),f=i("bwdy"),p=i("g6G6"),b=i("J+dc"),v=i("kuMc"),y=i("fAiE"),A=function(){function t(e,i){g(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}return m(t,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(u.d)(-this._previousScrollPosition.left),t.style.top=Object(u.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=r}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}]),t}();function w(){return Error("Scroll strategy has already been attached.")}var _=function(){function t(e,i,n,r){var a=this;g(this,t),this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run((function(){return a._overlayRef.detach()}))}}return m(t,[{key:"attach",value:function(t){if(this._overlayRef)throw w();this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),S=function(){function t(){g(this,t)}return m(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function k(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function E(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var R=function(){function t(e,i,n,r){g(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}return m(t,[{key:"attach",value:function(t){if(this._overlayRef)throw w();this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),i=t._viewportRuler.getViewportSize(),n=i.width,r=i.height;k(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),C=function(){var t=function t(e,i,n,r){var a=this;g(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new S},this.close=function(t){return new _(a._scrollDispatcher,a._ngZone,a._viewportRuler,t)},this.block=function(){return new A(a._viewportRuler,a._document)},this.reposition=function(t){return new R(a._scrollDispatcher,a._viewportRuler,a._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(a.Wb(n.f),a.Wb(n.h),a.Wb(a.A),a.Wb(c.e))},t.\u0275prov=Object(a.Ib)({factory:function(){return new t(Object(a.Wb)(n.f),Object(a.Wb)(n.h),Object(a.Wb)(a.A),Object(a.Wb)(c.e))},token:t,providedIn:"root"}),t}(),T=function t(e){if(g(this,t),this.scrollStrategy=new S,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var i=0,n=Object.keys(e);i-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},this._document=e}return m(t,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Wb(c.e))},t.\u0275prov=Object(a.Ib)({factory:function(){return new t(Object(a.Wb)(c.e))},token:t,providedIn:"root"}),t}(),x=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),N=function(){var t=function(){function t(e,i){g(this,t),this._platform=i,this._document=e}return m(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||x)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),i=0;ip&&(p=m,f=b)}}catch(v){g.e(v)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&H(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?n:r}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,i){var n,r;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+r}}},{key:"_getOverlayFit",value:function(t,e,i,n){var r=t.x,a=t.y,o=this._getOffset(n,"x"),s=this._getOffset(n,"y");o&&(r+=o),s&&(a+=s);var c=0-a,u=a+e.height-i.height,l=this._subtractOverflows(e.width,0-r,r+e.width-i.width),h=this._subtractOverflows(e.height,c,u),d=l*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:l==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,r=i.right-e.x,a=B(this._overlayRef.getConfig().minHeight),o=B(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=a&&a<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,r,a=this._viewportRect,o=Math.max(t.x+e.width-a.right,0),s=Math.max(t.y+e.height-a.bottom,0),c=Math.max(a.top-i.top-t.y,0),u=Math.max(a.left-i.left-t.x,0);return n=e.width<=a.width?u||-o:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=c.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)o=t.x,a=c.right-t.x;else{var d=Math.min(c.right-t.x+c.left,t.x),f=this._lastBoundingBoxSize.width;a=2*d,o=t.x-d,a>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/2)}return{top:n,left:o,bottom:r,right:s,width:a,height:i}}},{key:"_setBoundingBoxStyles",value:function(t,e){var i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;n.height=Object(u.d)(i.height),n.top=Object(u.d)(i.top),n.bottom=Object(u.d)(i.bottom),n.width=Object(u.d)(i.width),n.left=Object(u.d)(i.left),n.right=Object(u.d)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(n.maxHeight=Object(u.d)(r)),a&&(n.maxWidth=Object(u.d)(a))}this._lastBoundingBoxSize=i,H(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){H(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){H(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){var o=this._viewportRuler.getViewportScrollPosition();H(i,this._getExactOverlayY(e,t,o)),H(i,this._getExactOverlayX(e,t,o))}else i.position="static";var s="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(s+="translateX(".concat(c,"px) ")),l&&(s+="translateY(".concat(l,"px)")),i.transform=s.trim(),a.maxHeight&&(n?i.maxHeight=Object(u.d)(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(n?i.maxWidth=Object(u.d)(a.maxWidth):r&&(i.maxWidth="")),H(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,e,i){var n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=Object(u.d)(r.y),n}},{key:"_getExactOverlayX",value:function(t,e,i){var n={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=Object(u.d)(r.x),n}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:E(t,i),isOriginOutsideView:k(t,i),isOverlayClipped:E(e,i),isOverlayOutsideView:k(e,i)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,r=i.height,a=i.maxWidth,o=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),U=function(){var t=function(){function t(e,i,n,r){g(this,t),this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}return m(t,[{key:"global",value:function(){return new G}},{key:"connectedTo",value:function(t,e,i){return new j(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new z(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Wb(n.h),a.Wb(c.e),a.Wb(o.a),a.Wb(N))},t.\u0275prov=Object(a.Ib)({factory:function(){return new t(Object(a.Wb)(n.h),Object(a.Wb)(c.e),Object(a.Wb)(o.a),Object(a.Wb)(N))},token:t,providedIn:"root"}),t}(),K=0,V=function(){var t=function(){function t(e,i,n,r,a,o,s,c,u,l){g(this,t),this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=l}return m(t,[{key:"create",value:function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),r=new T(t);return r.direction=r.direction||this._directionality.value,new L(n,e,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+K++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(a.g)),new l.f(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Wb(C),a.Wb(N),a.Wb(a.j),a.Wb(U),a.Wb(P),a.Wb(a.s),a.Wb(a.A),a.Wb(c.e),a.Wb(s.c),a.Wb(c.n,8))},t.\u0275prov=a.Ib({token:t,factory:t.\u0275fac}),t}(),q=[{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"}],J=new a.r("cdk-connected-overlay-scroll-strategy"),W=function(){var t=function t(e){g(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l))},t.\u0275dir=a.Hb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),Z=function(){var t=function(){function t(e,i,n,r,o){g(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=f.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new a.o,this.positionChange=new a.o,this.attach=new a.o,this.detach=new a.o,this.overlayKeydown=new a.o,this._templatePortal=new l.j(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return m(t,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=q),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),e.keyCode!==y.h||Object(y.t)(e)||(e.preventDefault(),t._detachOverlay())}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new T({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,i=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Object(u.c)(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=Object(u.c)(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=Object(u.c)(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=Object(u.c)(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=Object(u.c)(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Mb(V),a.Mb(a.M),a.Mb(a.Q),a.Mb(J),a.Mb(s.c,8))},t.\u0275dir=a.Hb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[a.yb]}),t}(),Y={provide:J,deps:[V],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},X=function(){var t=function t(){g(this,t)};return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},providers:[V,Y],imports:[[s.a,l.i,n.g],n.g]}),t}()},HdwC:function(t,e,i){"use strict";i.d(e,"a",(function(){return z}));var n=i("OF3q"),r=i("cqs0"),a=i("RUSO"),o=i("8clQ"),s=i("X2Q7"),c=i("nyAh"),u=i("iyZ4"),l=i("yaDT"),h=i("Ssnw"),d=(i("HHEo"),i("EM62")),f=i("OZ4H"),p=i("sEIs"),b=i("0XDM"),v=i("2kYt"),y=i("pynj"),A=i("k8N0"),w=i("nIj0"),_=i("PBFl"),S=i("Y2X+"),k=i("csyo"),E=i("XAvq"),R=i("K9kF"),C=i("s2Ay"),T=["tree"],I=["list"],O=["toggle"];function D(t,e){if(1&t){var i=d.Tb();d.Sb(0,"button",9),d.Zb("click",(function(){return d.xc(i),d.dc().onCreateGroup()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}2&t&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function M(t,e){if(1&t){var i=d.Tb();d.Sb(0,"button",12),d.Zb("click",(function(){return d.xc(i),d.dc(2).deleteGroup()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&t){var n=d.dc(2);d.kc("disabled",0===n.selected.selected.length||void 0!==n.tree&&!n.tree.removeAuth||void 0!==n.list&&!n.list.removeAuth),d.Ab(1),d.Lc(" ",d.fc(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function P(t,e){if(1&t&&(d.Sb(0,"span",10),d.ec(1,"translate"),d.Hc(2,M,3,4,"button",11),d.Rb()),2&t){var i=d.dc();d.lc("matTooltip",d.fc(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.kc("matTooltipDisabled",void 0===i.tree&&void 0===i.list||void 0!==i.tree&&i.tree.removeAuth||void 0!==i.list&&i.list.removeAuth),d.Ab(2),d.kc("ngIf",!i.loading&&i.deleteAuth)}}function x(t,e){1&t&&d.Nb(0,"mat-spinner",13)}function N(t,e){if(1&t){var i=d.Tb();d.Sb(0,"perun-web-apps-groups-tree",17,18),d.Zb("moveGroup",(function(t){return d.xc(i),d.dc(2).onMoveGroup(t)}))("refreshTable",(function(){return d.xc(i),d.dc(2).refreshTable()})),d.Rb()}if(2&t){var n=d.dc(2);d.kc("groups",n.groups)("expandAll",n.filtering)("hideCheckbox",!n.deleteAuth)("selection",n.selected)("filterValue",n.filterValue)("disableRouting",!n.routeAuth)}}function L(t,e){if(1&t){var i=d.Tb();d.Sb(0,"perun-web-apps-groups-list",19,20),d.Zb("page",(function(t){return d.xc(i),d.dc(2).pageChanged(t)}))("moveGroup",(function(t){return d.xc(i),d.dc(2).onMoveGroup(t)}))("refreshTable",(function(){return d.xc(i),d.dc(2).refreshTable()})),d.Rb()}if(2&t){var n=d.dc(2);d.kc("pageSize",n.pageSize)("groups",n.groups)("selection",n.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!n.routeAuth)("hideColumns",n.hideColumns)("filter",n.filterValue)}}function F(t,e){if(1&t&&(d.Sb(0,"div",14),d.Hc(1,N,2,6,"perun-web-apps-groups-tree",15),d.Hc(2,L,2,8,"perun-web-apps-groups-list",16),d.Rb()),2&t){var i=d.dc();d.Ab(1),d.kc("ngIf",!i.showGroupList),d.Ab(1),d.kc("ngIf",i.showGroupList)}}var z=function(){var t=function(){function t(e,i,n,a,o,s){g(this,t),this.dialog=e,this.groupService=i,this.tableConfigService=n,this.route=a,this.guiAuthResolver=o,this.initAuthService=s,this.groups=[],this.selected=new r.c(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=u.M,this.filterValue="",this.hideColumns=["expiration","recent","vo"]}return m(t,[{key:"onCreateGroup",value:function(){var t=this,e=Object(o.o)();e.width="450px",e.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.a,e).afterClosed().subscribe((function(e){e&&(t.loading=!0,t.refreshTable())}))}},{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe((function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree")})),this.route.parent.params.subscribe((function(e){t.groupService.getGroupById(e.groupId).subscribe((function(e){t.group=e,t.refreshTable()}))}))}},{key:"setAuthRights",value:function(){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]])),this.hideColumns=this.deleteAuth?["vo","expiration","recent"]:["select","vo","expiration","recent"]}},{key:"deleteGroup",value:function(){var t=this,e=Object(o.o)();e.width="450px",e.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(a.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[c.a.GROUP_DEF_MAIL_FOOTER,c.a.GROUP_SYNC_ENABLED,c.a.GROUP_LAST_SYNC_STATE,c.a.GROUP_LAST_SYNC_TIMESTAMP,c.a.GROUP_STRUCTURE_SYNC_ENABLED,c.a.GROUP_LAST_STRUCTURE_SYNC_STATE,c.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe((function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"onMoveGroup",value:function(t){var e=this,i=Object(o.o)();i.width="550px",i.data={group:t,theme:"group-theme"},this.dialog.open(l.a,i).afterClosed().subscribe((function(t){t&&e.refreshTable()}))}}]),t}();return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Mb(f.b),d.Mb(s.h),d.Mb(u.pb),d.Mb(p.a),d.Mb(h.h),d.Mb(h.i))},t.\u0275cmp=d.Gb({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){var i;1&t&&(d.Qc(T,!0),d.Qc(I,!0),d.Dc(O,!0)),2&t&&(d.sc(i=d.ac())&&(e.tree=i.first),d.sc(i=d.ac())&&(e.list=i.first),d.sc(i=d.ac())&&(e.toggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.Eb("router-component",!0)},decls:17,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled",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","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","hideColumns","filter","page","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","hideColumns","filter","page","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"perun-web-apps-refresh-button",1),d.Zb("refresh",(function(){return e.refreshTable()})),d.Rb(),d.Hc(5,D,3,3,"button",2),d.Hc(6,P,3,5,"span",3),d.Sb(7,"perun-web-apps-debounce-filter",4),d.Zb("filter",(function(t){return e.applyFilter(t)})),d.Rb(),d.Sb(8,"mat-slide-toggle",5,6),d.Zb("change",(function(){return e.selected.clear()}))("ngModelChange",(function(t){return e.showGroupList=t})),d.Jc(10),d.ec(11,"translate"),d.Rb(),d.Sb(12,"label"),d.Jc(13),d.ec(14,"translate"),d.Rb(),d.Hc(15,x,1,0,"mat-spinner",7),d.Hc(16,F,3,2,"div",8),d.Rb()),2&t){var i=d.tc(9);d.Ab(2),d.Kc(d.fc(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.Ab(3),d.kc("ngIf",!e.loading&&e.createAuth),d.Ab(1),d.kc("ngIf",!e.loading),d.Ab(1),d.kc("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.Ab(1),d.kc("ngModel",e.showGroupList),d.Ab(2),d.Kc(d.fc(11,12,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.Ab(2),d.Bb("for",i.inputId),d.Ab(1),d.Kc(d.fc(14,14,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.Ab(2),d.kc("ngIf",e.loading),d.Ab(1),d.kc("ngIf",!e.loading)}},directives:[b.a,v.t,y.a,A.a,w.r,w.u,_.b,S.a,k.c,E.a,R.a],pipes:[C.d],styles:[""]}),t}()},HgnN:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},IBaA:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("8clQ"),r=i("EM62"),a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t){return Object(n.A)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"memberOrganization",type:t,pure:!0}),t}()},IDQ9:function(t,e,i){"use strict";i.d(e,"a",(function(){return S}));var n=i("OZ4H"),r=i("cqs0"),a=i("Ssnw"),o=i("X2Q7"),s=i("iyZ4"),c=(i("HHEo"),i("EM62")),u=i("s2Ay"),l=i("A8Ay"),h=i("2kYt"),f=i("PBFl"),p=i("FcRk"),b=i("csyo"),v=i("LKLE"),y=["list"];function A(t,e){1&t&&(c.Sb(0,"app-alert",10),c.Jc(1),c.ec(2,"translate"),c.Rb()),2&t&&(c.Ab(1),c.Lc(" ",c.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function w(t,e){1&t&&c.Nb(0,"mat-spinner",11)}function _(t,e){if(1&t){var i=c.Tb();c.Sb(0,"perun-web-apps-attributes-list",12,13),c.Zb("page",(function(t){return c.xc(i),c.dc().pageChanged(t)})),c.Rb()}if(2&t){var n=c.dc();c.kc("attributes",n.attributes)("filterValue",n.filterValue)("inDialog",!0)("pageSize",n.pageSize)("selection",n.selected)}}var S=function(){var t=function(){function t(e,i,n,a,o,c){var u=this;g(this,t),this.dialogRef=e,this.data=i,this.attributesManager=n,this.notificator=a,this.tableConfigService=o,this.translate=c,this.selected=new r.c(!0,[]),this.showError=!1,this.filterValue="",this.tableId=s.r,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe((function(t){return u.saveSuccessMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId);var e,i,n,r,a,o,s,c,u=new Array;switch(this.data.notEmptyAttributes.forEach((function(t){u.push(t.id)})),this.data.entity){case"member":e=this.data.entityId;break;case"user":i=this.data.entityId;break;case"vo":n=this.data.entityId;break;case"group":r=this.data.entityId;break;case"resource":a=this.data.entityId;break;case"facility":o=this.data.entityId;break;case"host":s=this.data.entityId;break;case"ues":c=this.data.entityId}switch(this.data.secondEntity){case"member":e=this.data.secondEntityId;break;case"user":i=this.data.secondEntityId;break;case"vo":n=this.data.secondEntityId;break;case"group":r=this.data.secondEntityId;break;case"resource":a=this.data.secondEntityId;break;case"facility":o=this.data.secondEntityId;break;case"host":s=this.data.secondEntityId;break;case"ues":c=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(e,i,n,r,a,o,s,c).subscribe((function(e){t.attributes=e,t.attributes=t.attributes.filter((function(e){return!u.includes(e.id)&&t.twoEntityValid(e)})),t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSave",value:function(){var t=this;this.list.updateMapAttributes();var e,i=!1,n=d(this.selected.selected);try{for(n.s();!(e=n.n()).done;){var r=e.value;"java.util.ArrayList"===r.type&&0===r.value.length&&(i=!0),void 0===r.value&&(i=!0)}}catch(a){n.e(a)}finally{n.f()}if(i)return this.showError=!0,void setTimeout((function(){t.showError=!1}),5e3);switch(this.data.entity){case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}));break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}));break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe((function(){t.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((function(){t.handleSuccess()}));break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}));break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}))}break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}));break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}));break;default:this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}))}break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}));break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe((function(){t.handleSuccess()}))}}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"handleSuccess",value:function(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"twoEntityValid",value:function(t){return!this.data.secondEntity||t.entity==="".concat(this.data.entity,"_").concat(this.data.secondEntity)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(o.c),c.Mb(a.l),c.Mb(s.pb),c.Mb(u.e))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-create-attribute-dialog"]],viewQuery:function(t,e){var i;1&t&&c.Qc(y,!0),2&t&&c.sc(i=c.ac())&&(e.list=i.first)},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[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,"attributes","filterValue","inDialog","pageSize","selection","page",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","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","inDialog","pageSize","selection","page"],["list",""]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"div",0),c.Sb(2,"h1",1),c.Jc(3),c.ec(4,"translate"),c.Rb(),c.Sb(5,"perun-web-apps-immediate-filter",2),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Hc(6,A,3,3,"app-alert",3),c.Rb(),c.Sb(7,"div",4),c.Hc(8,w,1,0,"mat-spinner",5),c.Hc(9,_,2,5,"perun-web-apps-attributes-list",6),c.Rb(),c.Sb(10,"div",7),c.Sb(11,"button",8),c.Zb("click",(function(){return e.onCancel()})),c.Jc(12),c.ec(13,"translate"),c.Rb(),c.Sb(14,"button",9),c.Zb("click",(function(){return e.onSave()})),c.Jc(15),c.ec(16,"translate"),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Cb(e.data.style),c.Ab(3),c.Kc(c.fc(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),c.Ab(2),c.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),c.Ab(1),c.kc("ngIf",e.showError),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",void 0!==e.attributes&&!e.loading),c.Ab(3),c.Lc(" ",c.fc(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),c.Ab(2),c.kc("disabled",0===e.selected.selected.length),c.Ab(1),c.Lc(" ",c.fc(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},directives:[n.j,l.a,h.t,n.g,n.c,f.b,p.a,b.c,v.a],pipes:[u.d],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t}()},IJgj:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,"a",(function(){return n}))},ILoV:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("FlRo"),a=i("X2Q7"),o=i("Ssnw"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function f(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&s.Nb(0,"th",15)}function b(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function v(t,e){1&t&&s.Nb(0,"tr",17)}function y(t,e){1&t&&s.Nb(0,"tr",18)}function A(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,p,1,0,"th",11),s.Hc(10,b,2,1,"td",12),s.Pb(),s.Hc(11,v,1,0,"tr",13),s.Hc(12,y,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var w=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.o(this.data.groups)}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t,e=this,i=[],n=d(this.data.groups);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}this.loading=!0,this.resourceManager.removeGroupsFromResource(i,this.data.resourceId).subscribe((function(){e.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe((function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)}))}),(function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(o.l),s.Mb(c.e),s.Mb(a.m))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,f,1,0,"mat-spinner",1),s.Hc(5,A,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t}()},IdLP:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n,r=i("5uGe"),a=i("25CY"),o=i("rWo0"),s=i("qEfY"),c=i("5E2i"),u=i("HgnN"),l=((n=function(){function t(e){g(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return m(t,[{key:"lift",value:function(e){var i=new t;return i.source=this,i.operator=e,i}},{key:"subscribe",value:function(t,e,i){var n=this.operator,s=function(t,e,i){if(t){if(t instanceof r.a)return t;if(t[a.a])return t[a.a]()}return t||e||i?new r.a(t,e,i):new r.a(o.a)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||u.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){u.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,i=e.closed,n=e.destination,a=e.isStopped;if(i||a)return!1;t=n&&n instanceof r.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var i=this;return new(e=h(e))((function(e,n){var r;r=i.subscribe((function(e){try{t(e)}catch(i){n(i),r&&r.unsubscribe()}}),n,e)}))}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:s.a,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","preview","managegroups","edit","delete"]:["shortname","type","preview","managegroups"]}},{key:"add",value:function(){var t=this,e=Object(u.o)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(o.a,e).afterClosed().subscribe((function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=Object(u.o)()).width="600px",e.height="600px",e.data={voId:t.voId,applicationFormItem:i[1],theme:"vo-theme",allItems:t.applicationFormItems},t.dialog.open(s.a,e),t.itemsChanged=!0)}))}},{key:"copy",value:function(){var t=this,e=Object(u.o)();e.width="500px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(a.a,e).afterClosed().subscribe((function(e){e&&t.updateFormItems()}))}},{key:"settings",value:function(){var t=this,e=Object(u.o)();e.width="400px",e.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.a,e).afterClosed().subscribe((function(e){e&&(t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.applicationForm=e)}))}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.voId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.registrarManager.getFormItemsForVo(this.voId).subscribe((function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.loading=!1}))}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"save",value:function(){var t,e=this,i=0,n=d(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(a){n.e(a)}finally{n.f()}this.registrarManager.updateFormItemsForVo({vo:this.voId,items:this.applicationFormItems}).subscribe((function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe((function(t){e.notificator.showSuccess(t)})),e.updateFormItems()}))}},{key:"clear",value:function(){this.applicationFormItems.forEach((function(t){return t.forDelete=!0})),this.itemsChanged=!0}}]),t}();return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Mb(c.l),l.Mb(h.a),l.Mb(f.b),l.Mb(r.l),l.Mb(p.e),l.Mb(h.f),l.Mb(r.h),l.Mb(c.q))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("router-component",!0)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],[3,"alert_type",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[3,"alert_type"]],template:function(t,e){1&t&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Hc(3,R,1,0,"mat-spinner",1),l.Hc(4,M,36,30,"div",2)),2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.Ab(2),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading))},directives:[b.t,v.c,y.a,A.a,w.a,_.a,S.b,k.a,E.a],pipes:[p.d],styles:[""]}),t}()},Iydx:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r}));var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({}),r=function(){function t(e){g(this,t),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}return m(t,[{key:"addChild",value:function(t){null==this.children?this.children=[t]:this.children.push(t)}}]),t}()},"J+dc":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("5uGe"),r=i("PNff"),o=i("6Oco");function c(t){return function(e){return 0===t?Object(o.b)():e.lift(new u(t))}}var u=function(){function t(e){if(g(this,t),this.total=e,this.total<0)throw new r.a}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.total))}}]),t}(),l=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).total=n,r.count=0,r}return m(i,[{key:"_next",value:function(t){var e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}]),i}(n.a)},JKyc:function(t,e,i){"use strict";i.d(e,"a",(function(){return j}));var n=i("Ssnw"),r=i("h1El"),a=i("DnAX"),o=i("ipn+"),s=i("3EQ+"),c=i("X2Q7"),u=i("8clQ"),l=i("EM62"),h=i("sEIs"),f=i("OZ4H"),p=i("s2Ay"),b=i("2kYt"),v=i("csyo"),y=i("bFHC"),A=i("Y2X+"),w=i("zmEM"),_=i("0XDM"),S=i("PBFl"),k=i("O82x"),E=i("k8N0"),R=i("nIj0"),C=i("FcRk"),T=["autoRegToggle"];function I(t,e){1&t&&l.Nb(0,"mat-spinner",3)}function O(t,e){if(1&t){var i=l.Tb();l.Sb(0,"div"),l.Sb(1,"mat-slide-toggle",22,23),l.Zb("change",(function(){return l.xc(i),l.dc(2).updateAutoRegistration()})),l.Jc(3),l.ec(4,"translate"),l.Rb(),l.Rb()}if(2&t){var n=l.dc(2);l.Ab(1),l.kc("disabled",!n.changeAutoRegistration)("ngModel",n.autoRegistrationEnabled),l.Ab(2),l.Lc(" ",l.fc(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function D(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",24),l.Zb("click",(function(){return l.xc(i),l.dc(2).settings()})),l.Sb(1,"i",19),l.Jc(2,"edit"),l.Rb(),l.Jc(3),l.ec(4,"translate"),l.Rb()}2&t&&(l.Ab(3),l.Lc(" ",l.fc(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function M(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",25),l.Zb("click",(function(){return l.xc(i),l.dc(2).add()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function P(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",26),l.Zb("click",(function(){return l.xc(i),l.dc(2).save()})),l.Sb(1,"i",19),l.Jc(2,"save"),l.Rb(),l.Jc(3),l.ec(4,"translate"),l.Rb()}if(2&t){var n=l.dc(2);l.kc("disabled",!n.itemsChanged),l.Ab(3),l.Lc(" ",l.fc(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function x(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",27),l.Zb("click",(function(){return l.xc(i),l.dc(2).copy()})),l.Sb(1,"i",19),l.Jc(2,"file_copy"),l.Rb(),l.Jc(3),l.ec(4,"translate"),l.Rb()}2&t&&(l.Ab(3),l.Lc(" ",l.fc(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function N(t,e){1&t&&(l.Sb(0,"app-alert",28),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}var L=function(){return["drag","shortname","type","preview","managegroups","edit","delete"]},F=function(){return["shortname","type","preview","managegroups"]};function z(t,e){if(1&t){var i=l.Tb();l.Sb(0,"div"),l.Sb(1,"div",4),l.Sb(2,"div",5),l.Sb(3,"div",6),l.Jc(4),l.ec(5,"translate"),l.Rb(),l.Sb(6,"div"),l.Sb(7,"span",6),l.Jc(8),l.ec(9,"translate"),l.Rb(),l.Jc(10,": "),l.Sb(11,"mat-icon",7),l.Jc(12,"arrow_right_alt"),l.Rb(),l.Jc(13),l.ec(14,"translate"),l.ec(15,"translate"),l.Sb(16,"mat-icon",8),l.Jc(17,"restore"),l.Rb(),l.Jc(18),l.ec(19,"translate"),l.ec(20,"translate"),l.Sb(21,"mat-icon",9),l.Jc(22,"nat"),l.Rb(),l.Jc(23),l.ec(24,"translate"),l.ec(25,"translate"),l.Rb(),l.Hc(26,O,5,5,"div",2),l.Rb(),l.Sb(27,"div",10),l.Hc(28,D,5,3,"button",11),l.Rb(),l.Rb(),l.Nb(29,"mat-divider",12),l.Sb(30,"div",13),l.Sb(31,"perun-web-apps-refresh-button",14),l.Zb("refresh",(function(){return l.xc(i),l.dc().updateFormItems()})),l.Rb(),l.Hc(32,M,3,3,"button",15),l.Hc(33,P,5,4,"button",16),l.Hc(34,x,5,3,"button",17),l.Sb(35,"button",18),l.Zb("click",(function(){return l.xc(i),l.dc().preview()})),l.Sb(36,"i",19),l.Jc(37,"search"),l.Rb(),l.Jc(38),l.ec(39,"translate"),l.Rb(),l.Rb(),l.Hc(40,N,3,3,"app-alert",20),l.Sb(41,"app-application-form-list",21),l.Zb("applicationFormItemsChange",(function(){return l.xc(i),l.dc().changeItems()})),l.Rb(),l.Rb()}if(2&t){var n=l.dc();l.Ab(4),l.Mc("",l.fc(5,18,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",n.applicationForm.moduleClassName," "),l.Ab(4),l.Kc(l.fc(9,20,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.Ab(5),l.Lc(" ",n.applicationForm.automaticApproval?l.fc(14,22,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.fc(15,24,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.Ab(5),l.Lc(" ",n.applicationForm.automaticApprovalExtension?l.fc(19,26,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.fc(20,28,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.Ab(5),l.Lc(" ",n.applicationForm.automaticApprovalEmbedded?l.fc(24,30,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.fc(25,32,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.Ab(3),l.kc("ngIf",n.voHasEmbeddedGroupApplication),l.Ab(2),l.kc("ngIf",n.editAuth),l.Ab(4),l.kc("ngIf",n.editAuth),l.Ab(1),l.kc("ngIf",n.editAuth),l.Ab(1),l.kc("ngIf",n.editAuth),l.Ab(4),l.Lc(" ",l.fc(39,34,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.Ab(2),l.kc("ngIf",n.editAuth),l.Ab(1),l.kc("loading",n.loading)("applicationForm",n.applicationForm)("applicationFormItems",n.applicationFormItems)("theme","group-theme")("displayedColumns",n.editAuth?l.oc(36,L):l.oc(37,F))}}function H(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",18),l.Zb("click",(function(){return l.xc(i),l.dc(2).createEmptyApplicationForm()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function B(t,e){if(1&t&&(l.Sb(0,"div"),l.Sb(1,"app-alert",29),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Hc(4,H,3,3,"button",30),l.Rb()),2&t){var i=l.dc();l.Ab(2),l.Kc(l.fc(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),l.Ab(2),l.kc("ngIf",i.createEmptyForm)}}var j=function(){var t=function(){function t(e,i,n,r,a,o,s,c,u,l){g(this,t),this.registrarManager=e,this.route=i,this.dialog=n,this.notificator=r,this.translate=a,this.apiRequest=o,this.router=s,this.guiAuthResolver=c,this.groupsManager=u,this.attributesManager=l,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.idCounter=-1}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe((function(e){t.voId=e.voId,t.groupId=e.groupId,t.groupsManager.getGroupById(t.groupId).subscribe((function(e){t.group=e,t.apiRequest.dontHandleErrorForNext(),t.registrarManager.getGroupApplicationForm(t.groupId).subscribe((function(e){t.applicationForm=e,t.registrarManager.getFormItemsForGroup(t.groupId).subscribe((function(e){t.applicationFormItems=e,t.attributesManager.getGroupAttributeByName(t.groupId,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe((function(e){t.voHasEmbeddedGroupApplication=null!==e.value,t.autoRegistrationEnabled=!!e.value,t.setAuth(),t.loading=!1}))}),(function(){return t.loading=!1}))}),(function(e){"FormNotExistsException"===e.error.name?(t.noApplicationForm=!0,t.setAuth(),t.loading=!1):t.notificator.showRPCError(e.error)}))}),(function(){return t.loading=!1}))}))}},{key:"setAuth",value:function(){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])}},{key:"add",value:function(){var t=this,e=Object(u.o)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.a,e).afterClosed().subscribe((function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=Object(u.o)()).width="600px",e.height="600px",e.data={voId:t.voId,groupId:t.groupId,applicationFormItem:i[1],theme:"group-theme",allItems:t.applicationFormItems},t.dialog.open(a.a,e),t.itemsChanged=!0)}))}},{key:"copy",value:function(){var t=this,e=Object(u.o)();e.width="500px",e.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(o.a,e).afterClosed().subscribe((function(e){e&&t.updateFormItems()}))}},{key:"settings",value:function(){var t=this,e=Object(u.o)();e.width="400px",e.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme"},this.dialog.open(s.a,e).afterClosed().subscribe((function(e){e&&(t.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.applicationForm=e)}))}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.voId,"groups",this.groupId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe((function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.loading=!1}))}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"createEmptyApplicationForm",value:function(){var t=this;this.registrarManager.createApplicationFormInGroup(this.groupId).subscribe((function(){t.noApplicationForm=!1,t.ngOnInit()}))}},{key:"save",value:function(){var t,e=this,i=0,n=d(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(a){n.e(a)}finally{n.f()}this.registrarManager.updateFormItemsForGroup({group:this.groupId,items:this.applicationFormItems}).subscribe((function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe((function(t){e.notificator.showSuccess(t)})),e.updateFormItems()}))}},{key:"clear",value:function(){this.applicationFormItems=[],this.itemsChanged=!0}},{key:"updateAutoRegistration",value:function(){var t=this;this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.groupsManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe((function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.autoRegToggle.setDisabledState(!1)}),(function(){return t.autoRegToggle.setDisabledState(!1)})):this.groupsManager.addGroupsToAutoRegistration([this.group.id]).subscribe((function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e)})),t.autoRegToggle.setDisabledState(!1)}),(function(){return t.autoRegToggle.setDisabledState(!1)}))}}]),t}();return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Mb(c.l),l.Mb(h.a),l.Mb(f.b),l.Mb(n.l),l.Mb(p.e),l.Mb(n.b),l.Mb(h.f),l.Mb(n.h),l.Mb(c.h),l.Mb(c.c))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){var i;1&t&&l.Qc(T,!0),2&t&&l.sc(i=l.ac())&&(e.autoRegToggle=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("router-component",!0)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-75"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-top"],["matTooltip","Extension",1,"align-text-top"],["matTooltip","Embedded",1,"align-text-top"],[1,"w-25"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"]],template:function(t,e){1&t&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Hc(3,I,1,0,"mat-spinner",1),l.Hc(4,z,42,38,"div",2),l.Hc(5,B,5,4,"div",2)),2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.Ab(2),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading&&!e.noApplicationForm),l.Ab(1),l.kc("ngIf",!e.loading&&e.noApplicationForm))},directives:[b.t,v.c,y.a,A.a,w.a,_.a,S.b,k.a,E.a,R.r,R.u,C.a],pipes:[p.d],styles:[""]}),t}()},JVFj:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("EM62"),s=i("s2Ay"),c=i("2kYt"),u=i("PBFl"),l=i("csyo"),h=i("29Wa"),d=i("R7+U"),f=i("mFH5"),p=i("Cd2c"),b=i("nIj0");function v(t,e){1&t&&o.Nb(0,"mat-spinner",6)}function y(t,e){if(1&t){var i=o.Tb();o.Sb(0,"div"),o.Jc(1),o.ec(2,"translate"),o.Sb(3,"mat-form-field",8),o.Sb(4,"textarea",17),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc(2).reason=t})),o.Rb(),o.Rb(),o.Rb()}if(2&t){var n=o.dc(2);o.Ab(1),o.Lc(" ",o.fc(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),o.Ab(3),o.kc("ngModel",n.reason)}}function A(t,e){if(1&t){var i=o.Tb();o.Sb(0,"div",7),o.Jc(1),o.ec(2,"translate"),o.Sb(3,"mat-form-field",8),o.Sb(4,"mat-select",9),o.Zb("valueChange",(function(t){return o.xc(i),o.dc().mailType=t})),o.Sb(5,"mat-option",10),o.Jc(6),o.ec(7,"translate"),o.Rb(),o.Sb(8,"mat-option",11),o.Jc(9),o.ec(10,"translate"),o.Rb(),o.Sb(11,"mat-option",12),o.Jc(12),o.ec(13,"translate"),o.Rb(),o.Sb(14,"mat-option",13),o.Jc(15),o.ec(16,"translate"),o.Rb(),o.Sb(17,"mat-option",14),o.Jc(18),o.ec(19,"translate"),o.Rb(),o.Sb(20,"mat-option",15),o.Jc(21),o.ec(22,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Hc(23,y,5,4,"div",16),o.Rb()}if(2&t){var n=o.dc();o.Ab(1),o.Lc(" ",o.fc(2,9,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),o.Ab(3),o.kc("value",n.mailType),o.Ab(2),o.Kc(o.fc(7,11,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),o.Ab(3),o.Kc(o.fc(10,13,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),o.Ab(3),o.Kc(o.fc(13,15,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),o.Ab(3),o.Kc(o.fc(16,17,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),o.Ab(3),o.Kc(o.fc(19,19,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),o.Ab(3),o.Kc(o.fc(22,21,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),o.Ab(2),o.kc("ngIf","APP_REJECTED_USER"===n.mailType)}}var w=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=r,this.registrarManager=a,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe((function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close()}))}),(function(){return t.loading=!1})):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe((function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close()}))}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.i),o.Mb(n.a),o.Mb(s.e),o.Mb(r.l),o.Mb(a.l))},t.\u0275cmp=o.Gb({type:t,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"],["mat-flat-button","","color","accent",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","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(o.Sb(0,"div"),o.Sb(1,"h1",0),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Hc(4,v,1,0,"mat-spinner",1),o.Hc(5,A,24,23,"div",2),o.Sb(6,"div",3),o.Sb(7,"button",4),o.Zb("click",(function(){return e.onCancel()})),o.Jc(8),o.ec(9,"translate"),o.Rb(),o.Sb(10,"button",5),o.Zb("click",(function(){return e.onSubmit()})),o.Jc(11),o.ec(12,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Db("",e.theme,"}"),o.Ab(2),o.Kc(o.fc(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),o.Ab(2),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading),o.Ab(3),o.Lc(" ",o.fc(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),o.Ab(2),o.kc("disabled",e.loading),o.Ab(1),o.Lc(" ",o.fc(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[n.j,c.t,n.c,u.b,l.c,n.g,h.c,d.a,f.n,p.b,b.c,b.r,b.u],pipes:[s.d],styles:[""]}),t}()},Jb3d:function(t,e,n){"use strict";n.d(e,"a",(function(){return F})),n.d(e,"b",(function(){return B})),n.d(e,"c",(function(){return Q})),n.d(e,"d",(function(){return Y})),n.d(e,"e",(function(){return q}));var o=n("sg/T"),c=n("5XID"),l=n("fAiE"),h=n("EM62"),d=n("ZTXN"),f=n("bwdy"),p=n("g6G6"),b=n("ROBh"),v=n("vT4p"),y=n("jIqt"),A=n("TLy2"),w=n("J+dc"),_=n("xVbo"),S=n("kuMc"),k=n("BwBJ"),E=n("f7+R"),R=n("Sv/w"),C=n("2kYt"),T=n("mFH5"),I=n("HYj3"),O=n("cZZj"),D=n("qvOF"),M=n("E5oP"),P=["mat-menu-item",""],x=["*"];function N(t,e){if(1&t){var i=h.Tb();h.Sb(0,"div",0),h.Zb("keydown",(function(t){return h.xc(i),h.dc()._handleKeydown(t)}))("click",(function(){return h.xc(i),h.dc().closed.emit("click")}))("@transformMenu.start",(function(t){return h.xc(i),h.dc()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return h.xc(i),h.dc()._onAnimationDone(t)})),h.Sb(1,"div",1),h.ic(2),h.Rb(),h.Rb()}if(2&t){var n=h.dc();h.kc("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),h.Bb("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var L={transformMenu:Object(E.n)("transformMenu",[Object(E.k)("void",Object(E.l)({opacity:0,transform:"scale(0.8)"})),Object(E.m)("void => enter",Object(E.g)([Object(E.i)(".mat-menu-content, .mat-mdc-menu-content",Object(E.e)("100ms linear",Object(E.l)({opacity:1}))),Object(E.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(E.l)({transform:"scale(1)"}))])),Object(E.m)("* => void",Object(E.e)("100ms 25ms linear",Object(E.l)({opacity:0})))]),fadeInItems:Object(E.n)("fadeInItems",[Object(E.k)("showing",Object(E.l)({opacity:1})),Object(E.m)("void => *",[Object(E.l)({opacity:0}),Object(E.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},F=function(){var t=function(){function t(e,i,n,r,a,o,s){g(this,t),this._template=e,this._componentFactoryResolver=i,this._appRef=n,this._injector=r,this._viewContainerRef=a,this._document=o,this._changeDetectorRef=s,this._attached=new d.a}return m(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new R.j(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new R.f(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Mb(h.M),h.Mb(h.j),h.Mb(h.g),h.Mb(h.s),h.Mb(h.Q),h.Mb(C.e),h.Mb(h.h))},t.\u0275dir=h.Hb({type:t,selectors:[["ng-template","matMenuContent",""]]}),t}(),z=new h.r("MAT_MENU_PANEL"),H=Object(T.z)(Object(T.A)((function t(){g(this,t)}))),B=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this))._elementRef=t,o._focusMonitor=r,o._parentMenu=a,o.role="menuitem",o._hovered=new d.a,o._focused=new d.a,o._highlighted=!1,o._triggersSubmenu=!1,r&&r.monitor(o._elementRef,!1),a&&a.addItem&&a.addItem(u(o)),o._document=n,o}return m(i,[{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,i="";if(t.childNodes)for(var n=t.childNodes.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(Object(w.a)(1)).subscribe((function(){return t._focusFirstItem(e)})):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z"+Math.min(4+t,24),i=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Object(y.a)(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Object(c.c)(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Object(c.c)(t)}},{key:"panelClass",set:function(t){var e=this,i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Mb(h.l),h.Mb(h.A),h.Mb(j))},t.\u0275dir=h.Hb({type:t,contentQueries:function(t,e,i){var n;1&t&&(h.Fb(i,F,!0),h.Fb(i,B,!0),h.Fb(i,B,!1)),2&t&&(h.sc(n=h.ac())&&(e.lazyContent=n.first),h.sc(n=h.ac())&&(e._allItems=n),h.sc(n=h.ac())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&h.Qc(h.M,!0),2&t&&h.sc(i=h.ac())&&(e.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),K=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(U);return t.\u0275fac=function(e){return V(e||t)},t.\u0275dir=h.Hb({type:t,features:[h.xb]}),t}(),V=h.Ub(K),q=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){return g(this,i),e.call(this,t,n,r)}return i}(K);return t.\u0275fac=function(e){return new(e||t)(h.Mb(h.l),h.Mb(h.A),h.Mb(j))},t.\u0275cmp=h.Gb({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[h.zb([{provide:z,useExisting:K},{provide:K,useExisting:t}]),h.xb],ngContentSelectors:x,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(h.jc(),h.Hc(0,N,3,6,"ng-template"))},directives:[C.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[L.transformMenu,L.fadeInItems]},changeDetection:0}),t}(),J=new h.r("mat-menu-scroll-strategy"),W={provide:J,deps:[I.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Z=Object(O.f)({passive:!0}),Y=function(){var t=function(){function t(e,i,n,r,a,o,s,c){var u=this;g(this,t),this._overlay=e,this._element=i,this._viewContainerRef=n,this._parentMenu=a,this._menuItemInstance=o,this._dir=s,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=f.a.EMPTY,this._hoverSubscription=f.a.EMPTY,this._menuCloseSubscription=f.a.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new h.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.o,this.onMenuClose=this.menuClosed,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Z),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return m(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Z),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof K&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof K?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Object(_.a)((function(t){return"void"===t.toState})),Object(w.a)(1),Object(S.a)(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new I.d({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(t){var e=r("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=e[0],n=e[1],a=r("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=a[0],s=a[1],c=o,u=s,l=i,h=n,d=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",n=l="end"===i?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(c="top"===o?"bottom":"top",u="top"===s?"bottom":"top"),t.withPositions([{originX:i,originY:c,overlayX:l,overlayY:o,offsetY:d},{originX:n,originY:c,overlayX:h,overlayY:o,offsetY:d},{originX:i,originY:u,overlayX:l,overlayY:s,offsetY:-d},{originX:n,originY:u,overlayX:h,overlayY:s,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Object(b.a)(),r=this._parentMenu?this._parentMenu._hovered().pipe(Object(_.a)((function(e){return e!==t._menuItemInstance})),Object(_.a)((function(){return t._menuOpen}))):Object(b.a)();return Object(p.a)(e,n,r,i)}},{key:"_handleMousedown",value:function(t){Object(o.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;this.triggersSubmenu()&&(e===l.n&&"ltr"===this.dir||e===l.j&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Object(_.a)((function(e){return e===t._menuItemInstance&&!e.disabled})),Object(k.a)(0,v.a)).subscribe((function(){t._openedBy="mouse",t.menu instanceof K&&t.menu._isAnimating?t.menu._animationDone.pipe(Object(w.a)(1),Object(k.a)(0,v.a),Object(S.a)(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new R.j(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Mb(I.c),h.Mb(h.l),h.Mb(h.Q),h.Mb(J),h.Mb(K,8),h.Mb(B,10),h.Mb(M.c,8),h.Mb(o.h))},t.\u0275dir=h.Hb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&h.Zb("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&h.Bb("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),X=function(){var t=function t(){g(this,t)};return t.\u0275mod=h.Kb({type:t}),t.\u0275inj=h.Jb({factory:function(e){return new(e||t)},providers:[W],imports:[T.i]}),t}(),Q=function(){var t=function t(){g(this,t)};return t.\u0275mod=h.Kb({type:t}),t.\u0275inj=h.Jb({factory:function(e){return new(e||t)},providers:[W],imports:[[C.c,T.i,T.t,I.f,X],D.c,T.i,X]}),t}()},JjRu:function(t,e,i){"use strict";i.d(e,"b",(function(){return w})),i.d(e,"a",(function(){return _}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("nIj0"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("bFHC"),d=i("nKqi"),f=i("FcRk"),p=i("29Wa"),b=i("Cd2c");function v(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"h1",1),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",2),s.Sb(5,"div",3),s.Jc(6),s.ec(7,"translate"),s.Sb(8,"span",4),s.Jc(9),s.ec(10,"translate"),s.Rb(),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Sb(13,"div",5),s.Sb(14,"button",6),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(15),s.ec(16,"translate"),s.Rb(),s.Sb(17,"button",7),s.Zb("click",(function(){return s.xc(i),s.dc().onDelete()})),s.Jc(18),s.ec(19,"translate"),s.Rb(),s.Sb(20,"button",8),s.Zb("click",(function(){return s.xc(i),s.dc().force=!0})),s.Sb(21,"mat-icon"),s.Jc(22,"warning"),s.Rb(),s.Jc(23),s.ec(24,"translate"),s.ec(25,"translate"),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Mc("",s.fc(3,11,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.entityType,""),s.Ab(4),s.Mc(" ",s.fc(7,13,"DIALOGS.DELETE_ENTITY.BASIC")," ",n.entityType," "),s.Ab(3),s.Kc(s.fc(10,15,"DIALOGS.DELETE_ENTITY.OR")),s.Ab(2),s.Mc(" ",n.entityType," ",s.fc(12,17,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? "),s.Ab(4),s.Lc(" ",s.fc(16,19,"DIALOGS.DELETE_ENTITY.CANCEL")," "),s.Ab(3),s.Lc(" ",s.fc(19,21,"DIALOGS.DELETE_ENTITY.DELETE")," "),s.Ab(5),s.Mc(" ",s.fc(24,23,"DIALOGS.DELETE_ENTITY.DELETE")," ",s.fc(25,25,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}function y(t,e){if(1&t&&(s.Sb(0,"mat-list-item"),s.Sb(1,"span"),s.Sb(2,"mat-icon",14),s.Jc(3,"fiber_manual_record"),s.Rb(),s.Jc(4),s.Rb(),s.Rb()),2&t){var i=e.$implicit;s.Ab(4),s.Lc(" ",i," ")}}function A(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"h1",1),s.Jc(2),s.ec(3,"translate"),s.ec(4,"translate"),s.Rb(),s.Sb(5,"div",2),s.Sb(6,"div",3),s.Jc(7),s.ec(8,"translate"),s.Sb(9,"mat-list"),s.Hc(10,y,5,1,"mat-list-item",9),s.Rb(),s.Sb(11,"app-alert",10),s.Jc(12),s.ec(13,"translate"),s.Rb(),s.Rb(),s.Sb(14,"mat-form-field"),s.Nb(15,"input",11),s.ec(16,"translate"),s.Rb(),s.Rb(),s.Sb(17,"div",5),s.Sb(18,"button",12),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(19),s.ec(20,"translate"),s.Rb(),s.Sb(21,"button",13),s.Zb("click",(function(){return s.xc(i),s.dc().onDelete()})),s.Sb(22,"mat-icon"),s.Jc(23,"warning"),s.Rb(),s.Jc(24),s.ec(25,"translate"),s.ec(26,"translate"),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Nc("",s.fc(3,13,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.entityType," ",s.fc(4,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),""),s.Ab(5),s.Lc(" ",s.fc(8,17,"DIALOGS.DELETE_ENTITY.WARN"),": "),s.Ab(3),s.kc("ngForOf",n.relations),s.Ab(2),s.Mc(" ",s.fc(13,19,"DIALOGS.DELETE_ENTITY.ASK"),": ",n.entityName," ? "),s.Ab(3),s.lc("placeholder",s.fc(16,21,"DIALOGS.DELETE_ENTITY.CONTROL")),s.kc("formControl",n.deleteControl),s.Ab(4),s.Lc(" ",s.fc(20,23,"DIALOGS.DELETE_ENTITY.CANCEL")," "),s.Ab(2),s.kc("disabled",n.deleteControl.invalid),s.Ab(3),s.Mc(" ",s.fc(25,25,"DIALOGS.DELETE_ENTITY.DELETE")," ",s.fc(26,27,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}var w=function(t){return t[t.VO=0]="VO",t[t.GROUP=1]="GROUP",t[t.FACILITY=2]="FACILITY",t[t.RESOURCE=3]="RESOURCE",t}({}),_=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=r,this.voService=a,this.relations=[],this.loading=!1,this.force=!1,this.deleteReg=/^DELETE$/,this.deleteControl=new o.g("",[o.F.required,o.F.pattern(this.deleteReg)])}return m(t,[{key:"ngOnInit",value:function(){switch(this.entityName=this.data.entity.name,this.data.entityType){case w.VO:this.entityType=this.translateService.instant("DIALOGS.DELETE_ENTITY.VO"),this.successMessage=this.entityType.charAt(0).toUpperCase()+this.entityType.slice(1)+" "+this.translateService.instant("DIALOGS.DELETE_ENTITY.SUCCESS"),this.relations.push(this.translateService.instant("DIALOGS.DELETE_ENTITY.GROUP_RELATION")),this.relations.push(this.translateService.instant("DIALOGS.DELETE_ENTITY.MEMBER_RELATION")),this.relations.push(this.translateService.instant("DIALOGS.DELETE_ENTITY.RESOURCE_RELATION"))}}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){switch(this.data.entityType){case w.VO:this.deleteVo()}}},{key:"deleteVo",value:function(){var t=this;this.loading=!0,this.voService.deleteVo(this.data.entity.id,this.force).subscribe((function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(a.l),s.Mb(c.e),s.Mb(n.q))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-delete-entity-dialog"]],decls:2,vars:2,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mb-4"],[1,"font-weight-bold"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["matInput","",3,"formControl","placeholder"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(t,e){1&t&&(s.Hc(0,v,26,27,"div",0),s.Hc(1,A,27,29,"div",0)),2&t&&(s.kc("ngIf",!e.force),s.Ab(1),s.kc("ngIf",e.force))},directives:[u.t,r.j,r.g,r.c,l.b,h.a,d.a,u.s,f.a,p.c,b.b,o.c,o.r,o.h,d.d],pipes:[c.d],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}"]}),t}()},K9kF:function(t,e,i){"use strict";i.d(e,"a",(function(){return $}));var n=i("EM62"),r=i("cePI"),a=i("FlRo"),o=i("cqs0"),s=i("iAde"),c=i("X2Q7"),u=i("8clQ"),l=i("+0js"),h=i("Ssnw"),f=i("2kYt"),p=i("OZ4H"),b=i("9wx0"),v=i("+Tre"),y=i("Y2X+"),A=i("Ds80"),w=i("PBFl"),_=i("bFHC"),S=i("XpU2"),k=i("sEIs"),E=i("TQS+"),R=i("FcRk"),C=i("s2Ay"),T=i("SAuR"),I=i("OcHD");function O(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-checkbox",24),n.Zb("change",(function(t){n.xc(i);var e=n.dc(2);return t?e.masterToggle():null})),n.Rb()}if(2&t){var r=n.dc(2);n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function D(t,e){if(1&t&&(n.Sb(0,"th",22),n.Hc(1,O,1,3,"mat-checkbox",23),n.Rb()),2&t){var i=n.dc();n.Ab(1),n.kc("ngIf",!i.disableHeadCheckbox)}}function M(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",25),n.Sb(1,"span",26),n.ec(2,"translate"),n.Sb(3,"mat-checkbox",27),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.itemSelectionToggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.lc("matTooltip",n.fc(2,6,a.getCheckboxTooltipMessage(r))),n.kc("matTooltipPosition","above")("matTooltipDisabled",!a.disableSelect(r)),n.Ab(2),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))("disabled","members"===r.name&&a.disableMembers||a.disableSelect(r))}}function P(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function x(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function N(t,e){1&t&&n.Nb(0,"th",22)}function L(t,e){if(1&t&&(n.Sb(0,"td",29),n.Nb(1,"perun-web-apps-recently-viewed-icon",30),n.Rb()),2&t){var i=e.$implicit,r=n.dc();n.Ab(1),n.kc("recentIds",r.recentIds)("id",i.id)}}function F(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function z(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit,r=n.dc();n.Ab(1),n.Kc(r.voNames.get(i.voId))}}function H(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function B(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.name)}}function j(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function G(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.description)}}function U(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function K(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",33),n.Zb("click",(function(){n.xc(i);var t=n.dc().$implicit;return n.dc().changeExpiration(t)}))("mouseenter",(function(){return n.xc(i),n.dc(2).disabledRouting=!0}))("mouseleave",(function(){n.xc(i);var t=n.dc(2);return t.disabledRouting=t.disableRouting})),n.Sb(1,"mat-icon"),n.Jc(2,"edit"),n.Rb(),n.Rb()}}function V(t,e){if(1&t&&(n.Sb(0,"td",31),n.Jc(1),n.ec(2,"parseDate"),n.ec(3,"groupExpiration"),n.Hc(4,K,3,0,"button",32),n.Rb()),2&t){var i=e.$implicit,r=n.dc();n.Ab(1),n.Lc(" ",n.fc(2,2,n.fc(3,4,i))," "),n.Ab(3),n.kc("ngIf",r.canManageGroup(i))}}function q(t,e){1&t&&n.Nb(0,"th",22)}function J(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",29),n.Sb(1,"perun-web-apps-group-menu",34),n.Zb("mouseenter",(function(){return n.xc(i),n.dc().disabledRouting=!0}))("mouseleave",(function(){n.xc(i);var t=n.dc();return t.disabledRouting=t.disableRouting}))("moveGroup",(function(){n.xc(i);var t=e.$implicit;return n.dc().onMoveGroup(t)}))("changeNameDescription",(function(){n.xc(i);var t=e.$implicit;return n.dc().onChangeNameDescription(t)}))("syncGroup",(function(){n.xc(i);var t=e.$implicit;return n.dc().onSyncDetail(t)})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("disabled","members"===r.name)("displayButtons",a.displayButtons)("group",r)}}function W(t,e){1&t&&n.Nb(0,"tr",35)}var Z=function(t,e){return["/organizations",t,"groups",e]};function Y(t,e){if(1&t&&n.Nb(0,"tr",36),2&t){var i=e.$implicit,r=n.dc();n.Eb("cursor-pointer",!r.disableRouting&&!r.groupsToDisable.has(i.id))("disable-outline",r.disabledRouting||r.groupsToDisable.has(i.id)),n.kc("routerLink",r.disabledRouting||r.groupsToDisable.has(i.id)?null:n.qc(6,Z,i.voId,i.id))("perunWebAppsMiddleClickRouterLink",r.disabledRouting||r.groupsToDisable.has(i.id)?null:n.qc(9,Z,i.voId,i.id))}}function X(t,e){1&t&&(n.Sb(0,"app-alert",37),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function Q(t,e){1&t&&(n.Sb(0,"app-alert",37),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var $=function(){var t=function(){function t(e,i,r,a){var s=this;g(this,t),this.dialog=e,this.authResolver=i,this.voService=r,this.tableCheckbox=a,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.o,this.groups=[],this.selection=new o.c(!0,[]),this.hasMembersGroup=!1,this.hideColumns=[],this.groupsToDisable=new Set,this.pageSize=10,this.filter="",this.disableRouting=!1,this.pageSizeOptions=u.a,this.recentIds=[],this.page=new n.o,this.refreshTable=new n.o,this.displayedColumns=["select","id","recent","vo","name","description","expiration","menu"],this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=function(t){return!("members"===t.name&&s.disableMembers||s.disableSelect(t))}}return m(t,[{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>800}},{key:"ngOnInit",value:function(){this.shouldHideButtons()}},{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.dataSource=new a.o(this.groups),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkIfHasMembersGroup",value:function(){var t,e=d(this.groups);try{for(e.s();!(t=e.n()).done;){if("members"===t.value.name)return!0}}catch(i){e.e(i)}finally{e.f()}return!1}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return this.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=Object(u.q)(t);return Object(u.u)(n);case"recent":return"";default:return t[e]}}},{key:"getSortDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return this.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=Object(u.q)(t);return n&&"never"!==n.toLowerCase()?Object(f.I)(n,"yyyy.MM.dd","en"):n;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}},{key:"exportData",value:function(t){Object(u.i)(Object(u.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.displayedColumns=this.displayedColumns.filter((function(e){return!t.hideColumns.includes(e)})),this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(u.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(u.g)(e,i,t.getSortDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"disableSelect",value:function(t){return this.disableGroups&&(this.groupsToDisable.has(t.id)||this.isSynchronized(t))}},{key:"ngAfterViewInit",value:function(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.dataSource.paginator=this.paginator}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"onSyncDetail",value:function(t){var e=Object(u.o)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.i,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=Object(u.o)();i.data={theme:"group-theme",group:t,dialogType:l.h.GROUP},this.dialog.open(l.g,i).afterClosed().subscribe((function(t){t&&e.refreshTable.emit()}))}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"setAuth",value:function(){var t=this;return"group-subgroups"===this.authType?this.selection.selected.reduce((function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[i])}),!0):"group-relations"===this.authType?this.selection.selected.reduce((function(e,i){return e&&t.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[t.parentGroup,i])}),!0):"vo-groups"===this.authType?this.selection.selected.reduce((function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.vo,i])}),!0):"member-groups"===this.authType?this.selection.selected.reduce((function(e,i){return e&&t.authResolver.isAuthorized("removeMember_Member_List_policy",[i])}),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((function(e,i){return e&&t.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[t.vo,i])}),!0):void 0}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}},{key:"isSynchronized",value:function(t){return!!t.attributes&&t.attributes.some((function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()}))}},{key:"getCheckboxTooltipMessage",value:function(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}},{key:"updateVoNames",value:function(){var t=this;this.hideColumns.includes("vo")||this.groups.forEach((function(e){t.voIds.has(e.voId)||(t.voIds.add(e.voId),t.voService.getVoById(e.voId).subscribe((function(i){t.voNames.set(e.voId,i.name)})))}))}},{key:"changeExpiration",value:function(t){var e=this,i=t.attributes.find((function(t){return"groupMembershipExpiration"===t.baseFriendlyName})),n=Object(u.o)();n.width="400px",n.data={memberId:this.memberId,groupId:t.id,expirationAttr:i,mode:"group"},this.dialog.open(l.d,n).afterClosed().subscribe((function(t){t&&e.refreshTable.emit()}))}},{key:"canManageGroup",value:function(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(p.b),n.Mb(h.h),n.Mb(c.q),n.Mb(h.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Dc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},hostBindings:function(t,e){1&t&&n.Zb("resize",(function(t){return e.shouldHideButtons(t)}),!1,n.wc)},inputs:{theme:"theme",groups:"groups",selection:"selection",hideColumns:"hideColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisable:"groupsToDisable",pageSize:"pageSize",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds"},outputs:{moveGroup:"moveGroup",page:"page",refreshTable:"refreshTable"},features:[n.yb],decls:34,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","name"],["matColumnDef","description"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-cell","",1,"wrap-content"],["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,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,D,2,1,"th",6),n.Hc(7,M,4,8,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,P,3,3,"th",9),n.Hc(10,x,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,N,1,0,"th",6),n.Hc(13,L,2,2,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,F,3,3,"th",9),n.Hc(16,z,2,1,"td",7),n.Pb(),n.Qb(17,13),n.Hc(18,H,3,3,"th",9),n.Hc(19,B,2,1,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,j,3,3,"th",9),n.Hc(22,G,2,1,"td",15),n.Pb(),n.Qb(23,16),n.Hc(24,U,3,3,"th",9),n.Hc(25,V,5,6,"td",15),n.Pb(),n.Qb(26,17),n.Hc(27,q,1,0,"th",6),n.Hc(28,J,2,3,"td",11),n.Pb(),n.Hc(29,W,1,0,"tr",18),n.Hc(30,Y,1,12,"tr",19),n.Rb(),n.Rb(),n.Sb(31,"mat-paginator",20),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(32,X,3,3,"app-alert",21),n.Hc(33,Q,3,3,"app-alert",21)),2&t&&(n.kc("hidden",0===e.groups.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(25),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.groups.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.groups.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[b.a,a.n,r.a,a.c,a.i,a.b,a.k,a.m,s.a,f.t,a.h,v.a,a.a,y.a,r.b,A.a,w.b,_.a,S.a,a.j,a.l,k.g,E.c,R.a],pipes:[C.d,T.a,I.a],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},KF6X:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("FlRo"),r=i("EM62"),a=i("Meci"),o=i("s2Ay");function s(t,e){1&t&&r.Nb(0,"th",9)}function c(t,e){if(1&t&&(r.Sb(0,"td",10),r.Jc(1),r.Rb()),2&t){var i=e.$implicit;r.Ab(1),r.Lc(" ",i,": ")}}function u(t,e){1&t&&r.Nb(0,"th",9)}function l(t,e){if(1&t&&(r.Sb(0,"td",11),r.Jc(1),r.Rb()),2&t){var i=e.$implicit,n=r.dc();r.Ab(1),r.Lc(" ",n.statistics.get(i.toLowerCase())," ")}}function h(t,e){1&t&&r.Nb(0,"tr",12)}var d=function(){var t=function(){function t(){g(this,t),this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}return m(t,[{key:"ngOnInit",value:function(){this.dataSource=new n.o(this.rowNames)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Gb({type:t,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(t,e){1&t&&(r.Sb(0,"mat-card",0),r.Sb(1,"mat-card-header"),r.Sb(2,"mat-card-title"),r.Sb(3,"h1",1),r.Jc(4),r.ec(5,"translate"),r.Rb(),r.Rb(),r.Rb(),r.Sb(6,"mat-card-content"),r.Sb(7,"table",2),r.Qb(8,3),r.Hc(9,s,1,0,"th",4),r.Hc(10,c,2,1,"td",5),r.Pb(),r.Qb(11,6),r.Hc(12,u,1,0,"th",4),r.Hc(13,l,2,1,"td",7),r.Pb(),r.Hc(14,h,1,0,"tr",8),r.Rb(),r.Rb(),r.Rb()),2&t&&(r.Ab(4),r.Kc(r.fc(5,3,e.title)),r.Ab(3),r.kc("dataSource",e.dataSource),r.Ab(7),r.kc("matRowDefColumns",e.displayedColumns))},directives:[a.a,a.f,a.m,a.d,n.n,n.c,n.i,n.b,n.m,n.h,n.a,n.l],pipes:[o.d],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t}()},KQGD:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),r=i("LAw4"),a=i("s2Ay"),o=function(){var t=function t(){g(this,t),this.facilitySelected=new n.o,this.nameFunction=function(t){return t.name}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.facilitySelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.facilities)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",n.fc(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",n.fc(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",n.fc(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[r.a],pipes:[a.d],styles:[""]}),t}()},KRZI:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("FU6l");function r(t){return!Object(n.a)(t)&&t-parseFloat(t)+1>=0}},KSio:function(t,e,i){"use strict";i.d(e,"a",(function(){return it}));var n=i("Ssnw"),r=i("X2Q7"),a=i("EM62"),o=i("sEIs"),s=i("2kYt"),c=i("csyo"),u=i("0XDM"),l=i("KZIX"),h=i("FlRo"),f=i("3Uyd"),p=i("zmEM"),b=i("s2Ay");function v(t,e){if(1&t&&(a.Sb(0,"mat-panel-description"),a.Sb(1,"div"),a.Sb(2,"i",7),a.Jc(3," error "),a.Rb(),a.Jc(4),a.ec(5,"translate"),a.ec(6,"translate"),a.Rb(),a.Rb()),2&t){var i=a.dc().$implicit,n=a.dc();a.Ab(4),a.Oc(" ",n.getErrorCountStates(i)," ",a.fc(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",i.taskList.length," ",a.fc(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function y(t,e){1&t&&(a.Sb(0,"th",20),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")))}function A(t,e){if(1&t&&(a.Sb(0,"td",21),a.Jc(1),a.Rb()),2&t){var i=e.$implicit;a.Ab(1),a.Kc(i.id)}}function w(t,e){1&t&&(a.Sb(0,"th",20),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")))}function _(t,e){if(1&t&&(a.Sb(0,"td",21),a.Jc(1),a.Rb()),2&t){var i=e.$implicit;a.Ab(1),a.Kc(i.service.name)}}function S(t,e){1&t&&(a.Sb(0,"th",20),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")))}function k(t,e){if(1&t&&(a.Sb(0,"td",21),a.Jc(1),a.Rb()),2&t){var i=e.$implicit;a.Ab(1),a.Kc(i.status)}}function E(t,e){1&t&&(a.Sb(0,"th",20),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")))}function R(t,e){if(1&t&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"date"),a.Rb()),2&t){var i=a.dc().$implicit;a.Ab(1),a.Lc(" ",a.gc(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function C(t,e){1&t&&(a.Jc(0),a.ec(1,"translate")),2&t&&a.Lc(" ",a.fc(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function T(t,e){if(1&t&&(a.Sb(0,"td",21),a.Hc(1,R,3,4,"div",22),a.Hc(2,C,2,3,"ng-template",23,24,a.Ic),a.Rb()),2&t){var i=e.$implicit,n=a.tc(3);a.Ab(1),a.kc("ngIf",i.schedule)("ngIfElse",n)}}function I(t,e){1&t&&(a.Sb(0,"th",20),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")))}function O(t,e){if(1&t&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"date"),a.Rb()),2&t){var i=a.dc().$implicit;a.Ab(1),a.Lc(" ",a.gc(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function D(t,e){1&t&&(a.Jc(0),a.ec(1,"translate")),2&t&&a.Lc(" ",a.fc(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function M(t,e){if(1&t&&(a.Sb(0,"td",21),a.Hc(1,O,3,4,"div",22),a.Hc(2,D,2,3,"ng-template",23,24,a.Ic),a.Rb()),2&t){var i=e.$implicit,n=a.tc(3);a.Ab(1),a.kc("ngIf",i.startTime)("ngIfElse",n)}}function P(t,e){1&t&&(a.Sb(0,"th",20),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Kc(a.fc(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")))}function x(t,e){if(1&t&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"date"),a.Rb()),2&t){var i=a.dc().$implicit;a.Ab(1),a.Lc(" ",a.gc(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function N(t,e){1&t&&(a.Jc(0),a.ec(1,"translate")),2&t&&a.Lc(" ",a.fc(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function L(t,e){if(1&t&&(a.Sb(0,"td",21),a.Hc(1,x,3,4,"div",22),a.Hc(2,N,2,3,"ng-template",23,24,a.Ic),a.Rb()),2&t){var i=e.$implicit,n=a.tc(3);a.Ab(1),a.kc("ngIf",i.endTime)("ngIfElse",n)}}function F(t,e){1&t&&a.Nb(0,"tr",25)}var z=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function H(t,e){if(1&t&&a.Nb(0,"tr",26),2&t){var i=e.$implicit;a.kc("ngClass",a.rc(1,z,"ERROR"===i.status||"SENDERROR"===i.status||"GENERROR"===i.status,"DONE"===i.status,"WARNING"===i.status))}}function B(t,e){if(1&t&&(a.Sb(0,"table",9),a.Qb(1,10),a.Hc(2,y,3,3,"th",11),a.Hc(3,A,2,1,"td",12),a.Pb(),a.Qb(4,13),a.Hc(5,w,3,3,"th",11),a.Hc(6,_,2,1,"td",12),a.Pb(),a.Qb(7,14),a.Hc(8,S,3,3,"th",11),a.Hc(9,k,2,1,"td",12),a.Pb(),a.Qb(10,15),a.Hc(11,E,3,3,"th",11),a.Hc(12,T,4,2,"td",12),a.Pb(),a.Qb(13,16),a.Hc(14,I,3,3,"th",11),a.Hc(15,M,4,2,"td",12),a.Pb(),a.Qb(16,17),a.Hc(17,P,3,3,"th",11),a.Hc(18,L,4,2,"td",12),a.Pb(),a.Hc(19,F,1,0,"tr",18),a.Hc(20,H,1,5,"tr",19),a.Rb()),2&t){var i=a.dc(2).$implicit,n=a.dc();a.kc("dataSource",n.datasources[n.propagation.indexOf(i)]),a.Ab(19),a.kc("matHeaderRowDef",n.displayedColumns),a.Ab(1),a.kc("matRowDefColumns",n.displayedColumns)}}function j(t,e){1&t&&(a.Sb(0,"div"),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function G(t,e){if(1&t&&(a.Nb(0,"mat-divider"),a.Hc(1,B,21,3,"table",8),a.Hc(2,j,3,3,"div",5)),2&t){var i=a.dc().$implicit;a.Ab(1),a.kc("ngIf",0!==i.taskList.length),a.Ab(1),a.kc("ngIf",0===i.taskList.length)}}function U(t,e){if(1&t&&(a.Sb(0,"mat-expansion-panel"),a.Sb(1,"mat-expansion-panel-header"),a.Sb(2,"mat-panel-title"),a.Nb(3,"img",3),a.Sb(4,"div",4),a.Jc(5),a.Rb(),a.Rb(),a.Hc(6,v,7,8,"mat-panel-description",5),a.Rb(),a.Hc(7,G,3,2,"ng-template",6),a.Rb()),2&t){var i=e.$implicit,n=a.dc();a.Ab(5),a.Lc(" ",i.resource.name," "),a.Ab(1),a.kc("ngIf",0!==n.getErrorCountStates(i))}}var K,V=((K=function(){function t(){g(this,t),this.propagation=[],this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}return m(t,[{key:"ngOnInit",value:function(){this.getDataSource()}},{key:"getErrorCountStates",value:function(t){var e,i=0,n=d(t.taskList);try{for(n.s();!(e=n.n()).done;){var r=e.value;"ERROR"!==r.status&&"GENERROR"!==r.status&&"SENDERROR"!==r.status||i++}}catch(a){n.e(a)}finally{n.f()}return i}},{key:"getDataSource",value:function(){var t,e=d(this.propagation);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.datasources.push(new h.o(i.taskList))}}catch(n){e.e(n)}finally{e.f()}}}]),t}()).\u0275fac=function(t){return new(t||K)},K.\u0275cmp=a.Gb({type:K,selectors:[["app-state-tab"]],inputs:{propagation:"propagation"},decls:3,vars:1,consts:[[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(a.Sb(0,"div",0),a.Sb(1,"mat-accordion",1),a.Hc(2,U,8,2,"mat-expansion-panel",2),a.Rb(),a.Rb()),2&t&&(a.Ab(2),a.kc("ngForOf",e.propagation))},directives:[f.a,s.s,f.c,f.g,f.h,s.t,f.e,f.f,p.a,h.n,h.c,h.i,h.b,h.k,h.m,h.h,h.a,h.j,h.l,s.q],pipes:[b.d,s.f],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-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),K),q=i("FcRk");function J(t,e){1&t&&a.Nb(0,"mat-spinner",3)}function W(t,e){if(1&t&&(a.Jc(0),a.ec(1,"translate"),a.Sb(2,"span",8),a.Jc(3),a.Rb()),2&t){var i=a.dc(2);a.Lc(" ",a.fc(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),a.Ab(3),a.Kc(i.errorPropagation.length)}}function Z(t,e){1&t&&(a.Sb(0,"app-alert",11),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.kc("alert_type","warn"),a.Ab(1),a.Lc(" ",a.fc(2,2,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function Y(t,e){if(1&t&&(a.Hc(0,Z,3,4,"app-alert",9),a.Nb(1,"app-state-tab",10)),2&t){var i=a.dc(2);a.kc("ngIf",0===i.errorPropagation.length),a.Ab(1),a.kc("propagation",i.errorPropagation)}}function X(t,e){if(1&t&&(a.Jc(0),a.ec(1,"translate"),a.Sb(2,"span",12),a.Jc(3),a.Rb()),2&t){var i=a.dc(2);a.Lc(" ",a.fc(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),a.Ab(3),a.Kc(i.okPropagation.length)}}function Q(t,e){1&t&&(a.Sb(0,"app-alert",14),a.Jc(1),a.ec(2,"translate"),a.Rb()),2&t&&(a.Ab(1),a.Lc(" ",a.fc(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function $(t,e){if(1&t&&(a.Hc(0,Q,3,3,"app-alert",13),a.Nb(1,"app-state-tab",10)),2&t){var i=a.dc(2);a.kc("ngIf",0===i.okPropagation.length),a.Ab(1),a.kc("propagation",i.okPropagation)}}function tt(t,e){if(1&t){var i=a.Tb();a.Sb(0,"div"),a.Sb(1,"perun-web-apps-refresh-button",4),a.Zb("refresh",(function(){return a.xc(i),a.dc().refreshTable()})),a.Rb(),a.Sb(2,"mat-tab-group",5),a.Zb("selectedIndexChange",(function(t){return a.xc(i),a.dc().selectedIndex=t})),a.Sb(3,"mat-tab"),a.Hc(4,W,4,4,"ng-template",6),a.Hc(5,Y,2,2,"ng-template",7),a.Rb(),a.Sb(6,"mat-tab"),a.Hc(7,X,4,4,"ng-template",6),a.Hc(8,$,2,2,"ng-template",7),a.Rb(),a.Rb(),a.Rb()}if(2&t){var n=a.dc();a.Ab(2),a.kc("selectedIndex",n.selectedIndex)}}var et,it=((et=function(){function t(e,i,n){g(this,t),this.route=e,this.taskService=i,this.customIconService=n,this.loading=!1,this.resourceStates=[],this.selectedIndex=0}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.customIconService.registerPerunRefreshIcon(),this.loading=!0,this.route.parent.parent.params.subscribe((function(e){t.voId=e.voId,t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;console.log(this.selectedIndex),this.loading=!0,this.taskService.getAllResourcesState(this.voId).subscribe((function(e){t.resourceStates=e,t.okPropagation=[],t.errorPropagation=[];var i,n=d(e);try{for(n.s();!(i=n.n()).done;){var r,a=i.value,o=!0,s=d(a.taskList);try{for(s.s();!(r=s.n()).done;){var c=r.value;if("ERROR"===c.status||"GENERROR"===c.status||"SENDERROR"===c.status){o=!1;break}}}catch(u){s.e(u)}finally{s.f()}o?t.okPropagation.push(a):t.errorPropagation.push(a)}}catch(u){n.e(u)}finally{n.f()}t.loading=!1}))}}]),t}()).id="VoResourcesStatesComponent",et.\u0275fac=function(t){return new(t||et)(a.Mb(o.a),a.Mb(r.o),a.Mb(n.e))},et.\u0275cmp=a.Gb({type:et,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&a.Eb("router-component",!0)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],[3,"alert_type",4,"ngIf"],[3,"propagation"],[3,"alert_type"],[1,"badge","badge-success","ml-1"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(a.Sb(0,"h1",0),a.Jc(1),a.ec(2,"translate"),a.Rb(),a.Hc(3,J,1,0,"mat-spinner",1),a.Hc(4,tt,9,1,"div",2)),2&t&&(a.Ab(1),a.Kc(a.fc(2,3,"VO_DETAIL.RESOURCES.STATES.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading))},directives:[s.t,c.c,u.a,l.c,l.a,l.d,l.b,V,q.a],pipes:[b.d],styles:[""]}),et)},KTx3:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("IdLP"),a=n("FU6l"),o=n("IJgj"),s=n("YtkY");function c(t,e,n,u){return Object(o.a)(n)&&(u=n,n=void 0),u?c(t,e,n).pipe(Object(s.a)((function(t){return Object(a.a)(t)?u.apply(void 0,i(t)):u(t)}))):new r.a((function(i){!function t(e,i,n,r,a){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(i,n,a),o=function(){return s.removeEventListener(i,n,a)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(i,n),o=function(){return c.off(i,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(i,n),o=function(){return u.removeListener(i,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,h=e.length;l1?Array.prototype.slice.call(arguments):t)}),i,n)}))}},KZIX:function(t,e,r){"use strict";r.d(e,"a",(function(){return nt})),r.d(e,"b",(function(){return Q})),r.d(e,"c",(function(){return ft})),r.d(e,"d",(function(){return $})),r.d(e,"e",(function(){return kt})),r.d(e,"f",(function(){return wt})),r.d(e,"g",(function(){return Et}));var o=r("sg/T"),c=r("TKFd"),l=r("Sv/w"),d=r("2kYt"),f=r("EM62"),p=r("mFH5"),b=r("5lCh"),v=r("ZTXN"),y=r("bwdy"),A=r("g6G6"),w=r("KTx3"),_=r("ROBh"),S=r("8lHc"),k=r("f7+R"),E=r("jIqt"),R=r("Ohay"),C=r("kuMc"),T=r("5XID"),I=r("cZZj"),O=r("fAiE"),D=r("E5oP"),M=r("qvOF");function P(t,e){1&t&&f.ic(0)}var x=["*"];function N(t,e){}var L=function(t){return{animationDuration:t}},F=function(t,e){return{value:t,params:e}},z=["tabBodyWrapper"],H=["tabHeader"];function B(t,e){}function j(t,e){if(1&t&&f.Hc(0,B,0,0,"ng-template",9),2&t){var i=f.dc().$implicit;f.kc("cdkPortalOutlet",i.templateLabel)}}function G(t,e){if(1&t&&f.Jc(0),2&t){var i=f.dc().$implicit;f.Kc(i.textLabel)}}function U(t,e){if(1&t){var i=f.Tb();f.Sb(0,"div",6),f.Zb("click",(function(){f.xc(i);var t=e.$implicit,n=e.index,r=f.dc(),a=f.tc(1);return r._handleClick(t,a,n)})),f.Sb(1,"div",7),f.Hc(2,j,1,1,"ng-template",8),f.Hc(3,G,1,1,"ng-template",8),f.Rb(),f.Rb()}if(2&t){var n=e.$implicit,r=e.index,a=f.dc();f.Eb("mat-tab-label-active",a.selectedIndex==r),f.kc("id",a._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||a.disableRipple),f.Bb("tabIndex",a._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),f.Ab(2),f.kc("ngIf",n.templateLabel),f.Ab(1),f.kc("ngIf",!n.templateLabel)}}function K(t,e){if(1&t){var i=f.Tb();f.Sb(0,"mat-tab-body",10),f.Zb("_onCentered",(function(){return f.xc(i),f.dc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return f.xc(i),f.dc()._setTabBodyWrapperHeight(t)})),f.Rb()}if(2&t){var n=e.$implicit,r=e.index,a=f.dc();f.Eb("mat-tab-body-active",a.selectedIndex==r),f.kc("id",a._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",a.animationDuration),f.Bb("aria-labelledby",a._getTabLabelId(r))}}var V=["tabListContainer"],q=["tabList"],J=["nextPaginator"],W=["previousPaginator"],Z=["mat-tab-nav-bar",""],Y=new f.r("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),X=function(){var t=function(){function t(e,i,n,r){g(this,t),this._elementRef=e,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=r}return m(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.l),f.Mb(f.A),f.Mb(Y),f.Mb(b.a,8))},t.\u0275dir=f.Hb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&f.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),Q=function(){var t=function t(e){g(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.M))},t.\u0275dir=f.Hb({type:t,selectors:[["","matTabContent",""]]}),t}(),$=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(l.b);return t.\u0275fac=function(e){return tt(e||t)},t.\u0275dir=f.Hb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[f.xb]}),t}(),tt=f.Ub($),et=Object(p.A)((function t(){g(this,t)})),it=new f.r("MAT_TAB_GROUP"),nt=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=n,r.textLabel="",r._contentPortal=null,r._stateChanges=new v.a,r.position=null,r.origin=null,r.isActive=!1,r}return m(i,[{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new l.j(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){t&&(this._templateLabel=t)}},{key:"content",get:function(){return this._contentPortal}}]),i}(et);return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.Q),f.Mb(it,8))},t.\u0275cmp=f.Gb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;1&t&&(f.Fb(i,$,!0),f.Cc(i,Q,!0,f.M)),2&t&&(f.sc(n=f.ac())&&(e.templateLabel=n.first),f.sc(n=f.ac())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;1&t&&f.Dc(f.M,!0),2&t&&f.sc(i=f.ac())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[f.xb,f.yb],ngContentSelectors:x,decls:1,vars:0,template:function(t,e){1&t&&(f.jc(),f.Hc(0,P,1,0,"ng-template"))},encapsulation:2}),t}(),rt={translateTab:Object(k.n)("translateTab",[Object(k.k)("center, void, left-origin-center, right-origin-center",Object(k.l)({transform:"none"})),Object(k.k)("left",Object(k.l)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(k.k)("right",Object(k.l)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(k.m)("* => left, * => right, left => center, right => center",Object(k.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(k.m)("void => left-origin-center",[Object(k.l)({transform:"translate3d(-100%, 0, 0)"}),Object(k.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(k.m)("void => right-origin-center",[Object(k.l)({transform:"translate3d(100%, 0, 0)"}),Object(k.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},at=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,t,n,a))._host=r,o._centeringSub=y.a.EMPTY,o._leavingSub=y.a.EMPTY,o}return m(i,[{key:"ngOnInit",value:function(){var t=this;n(h(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Object(E.a)(this._host._isCenterPosition(this._host._position))).subscribe((function(e){e&&!t.hasAttached()&&t.attach(t._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){t.detach()}))}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(l.c);return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.j),f.Mb(f.Q),f.Mb(Object(f.U)((function(){return st}))),f.Mb(d.e))},t.\u0275dir=f.Hb({type:t,selectors:[["","matTabBodyHost",""]],features:[f.xb]}),t}(),ot=function(){var t=function(){function t(e,i,n){var r=this;g(this,t),this._elementRef=e,this._dir=i,this._dirChangeSubscription=y.a.EMPTY,this._translateTabComplete=new v.a,this._onCentering=new f.o,this._beforeCentering=new f.o,this._afterLeavingCenter=new f.o,this._onCentered=new f.o(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe((function(t){r._computePositionAnimationState(t),n.markForCheck()}))),this._translateTabComplete.pipe(Object(R.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()}))}return m(t,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.l),f.Mb(D.c,8),f.Mb(f.h))},t.\u0275dir=f.Hb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),st=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){return g(this,i),e.call(this,t,n,r)}return i}(ot);return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.l),f.Mb(D.c,8),f.Mb(f.h))},t.\u0275cmp=f.Gb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&f.Qc(l.g,!0),2&t&&f.sc(i=f.ac())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[f.xb],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(f.Sb(0,"div",0,1),f.Zb("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),f.Hc(2,N,0,0,"ng-template",2),f.Rb()),2&t&&f.kc("@translateTab",f.qc(3,F,e._position,f.pc(1,L,e.animationDuration)))},directives:[at],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[rt.translateTab]}}),t}(),ct=new f.r("MAT_TABS_CONFIG"),ut=0,lt=function t(){g(this,t)},ht=Object(p.y)(Object(p.z)((function t(e){g(this,t),this._elementRef=e})),"primary"),dt=function(){var t=function(t){a(n,t);var e=s(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,t))._changeDetectorRef=i,o._animationMode=a,o._tabs=new f.E,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=y.a.EMPTY,o._tabLabelSubscription=y.a.EMPTY,o._dynamicHeight=!1,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new f.o,o.focusChange=new f.o,o.animationDone=new f.o,o.selectedTabChange=new f.o(!0),o._groupId=ut++,o.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",o.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,o}return m(n,[{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var i=null==this._selectedIndex;i||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,i){return t.isActive=i===e})),i||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(i,n){i.position=n-e,null==t._selectedIndex||0!=i.position||i.origin||(i.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),i=0;i.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t}(),pt=Object(p.A)((function t(){g(this,t)})),gt=function(){var t=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this)).elementRef=t,n}return m(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),i}(pt);return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.l))},t.\u0275dir=f.Hb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(f.Bb("aria-disabled",!!e.disabled),f.Eb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[f.xb]}),t}(),bt=Object(I.f)({passive:!0}),mt=function(){var t=function(){function t(e,i,n,r,a,o,s){var c=this;g(this,t),this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=a,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new v.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new v.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new f.o,this.indexFocused=new f.o,a.runOutsideAngular((function(){Object(w.a)(e.nativeElement,"mouseleave").pipe(Object(C.a)(c._destroyed)).subscribe((function(){c._stopInterval()}))}))}return m(t,[{key:"ngAfterViewInit",value:function(){var t=this;Object(w.a)(this._previousPaginator.nativeElement,"touchstart",bt).pipe(Object(C.a)(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),Object(w.a)(this._nextPaginator.nativeElement,"touchstart",bt).pipe(Object(C.a)(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Object(_.a)(null),i=this._viewportRuler.change(150),n=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new o.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(A.a)(e,i,this._items.changes).pipe(Object(C.a)(this._destroyed)).subscribe((function(){Promise.resolve().then(n),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(Object(C.a)(this._destroyed)).subscribe((function(e){t.indexFocused.emit(e),t._setTabFocus(e)}))}},{key:"ngAfterContentChecked",value:function(){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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Object(O.t)(t))switch(t.keyCode){case O.i:this._keyManager.setFirstItemActive(),t.preventDefault();break;case O.f:this._keyManager.setLastItemActive(),t.preventDefault();break;case O.g:case O.o:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run((function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(i),"px)"),e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var i,n,r=this._tabListContainer.nativeElement.offsetWidth,a=e.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=o)+s:i=(n=this._tabList.nativeElement.offsetWidth-o)-s;var c=this.scrollDistance,u=this.scrollDistance+r;iu&&(this.scrollDistance+=n-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var i=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(S.a)(650,100).pipe(Object(C.a)(Object(A.a)(this._stopScrolling,this._destroyed))).subscribe((function(){var e=i._scrollHeader(t),n=e.maxScrollDistance,r=e.distance;(0===r||r>=n)&&i._stopInterval()})))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=Object(T.f)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.l),f.Mb(f.h),f.Mb(M.h),f.Mb(D.c,8),f.Mb(f.A),f.Mb(I.a),f.Mb(b.a,8))},t.\u0275dir=f.Hb({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),vt=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s,c){var u;return g(this,i),(u=e.call(this,t,n,r,a,o,s,c))._disableRipple=!1,u}return m(i,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=Object(T.c)(t)}}]),i}(mt);return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.l),f.Mb(f.h),f.Mb(M.h),f.Mb(D.c,8),f.Mb(f.A),f.Mb(I.a),f.Mb(b.a,8))},t.\u0275dir=f.Hb({type:t,inputs:{disableRipple:"disableRipple"},features:[f.xb]}),t}(),yt=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s,c){return g(this,i),e.call(this,t,n,r,a,o,s,c)}return i}(vt);return t.\u0275fac=function(e){return new(e||t)(f.Mb(f.l),f.Mb(f.h),f.Mb(M.h),f.Mb(D.c,8),f.Mb(f.A),f.Mb(I.a),f.Mb(b.a,8))},t.\u0275cmp=f.Gb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;1&t&&f.Fb(i,gt,!1),2&t&&f.sc(n=f.ac())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(f.Dc(X,!0),f.Dc(V,!0),f.Dc(q,!0),f.Qc(J,!0),f.Qc(W,!0)),2&t&&(f.sc(i=f.ac())&&(e._inkBar=i.first),f.sc(i=f.ac())&&(e._tabListContainer=i.first),f.sc(i=f.ac())&&(e._tabList=i.first),f.sc(i=f.ac())&&(e._nextPaginator=i.first),f.sc(i=f.ac())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&f.Eb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[f.xb],ngContentSelectors:x,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(f.jc(),f.Sb(0,"div",0,1),f.Zb("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),f.Nb(2,"div",2),f.Rb(),f.Sb(3,"div",3,4),f.Zb("keydown",(function(t){return e._handleKeydown(t)})),f.Sb(5,"div",5,6),f.Zb("cdkObserveContent",(function(){return e._onContentChanges()})),f.Sb(7,"div",7),f.ic(8),f.Rb(),f.Nb(9,"mat-ink-bar"),f.Rb(),f.Rb(),f.Sb(10,"div",8,9),f.Zb("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),f.Nb(12,"div",2),f.Rb()),2&t&&(f.Eb("mat-tab-header-pagination-disabled",e._disableScrollBefore),f.kc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),f.Ab(5),f.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode),f.Ab(5),f.Eb("mat-tab-header-pagination-disabled",e._disableScrollAfter),f.kc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[p.s,c.a,X],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),At=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s,c){var u;return g(this,i),(u=e.call(this,t,a,o,n,r,s,c))._disableRipple=!1,u.color="primary",u}return m(i,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var t=this;this._items.changes.pipe(Object(E.a)(null),Object(C.a)(this._destroyed)).subscribe((function(){t.updateActiveLink()})),n(h(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(t){if(this._items){for(var e=this._items.toArray(),i=0;i.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{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;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t}(),_t=Object(p.D)(Object(p.z)(Object(p.A)((function t(){g(this,t)})))),St=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s){var c;return g(this,i),(c=e.call(this))._tabNavBar=t,c.elementRef=n,c._focusMonitor=o,c._isActive=!1,c.rippleConfig=r||{},c.tabIndex=parseInt(a)||0,"NoopAnimations"===s&&(c.rippleConfig.animation={enterDuration:0,exitDuration:0}),o.monitor(n),c}return m(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"active",get:function(){return this._isActive},set:function(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}]),i}(_t);return t.\u0275fac=function(e){return new(e||t)(f.Mb(At),f.Mb(f.l),f.Mb(p.h,8),f.Xb("tabindex"),f.Mb(o.h),f.Mb(b.a,8))},t.\u0275dir=f.Hb({type:t,inputs:{active:"active"},features:[f.xb]}),t}(),kt=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s,c,l){var h;return g(this,i),(h=e.call(this,t,n,o,s,c,l))._tabLinkRipple=new p.v(u(h),r,n,a),h._tabLinkRipple.setupTriggerEvents(n.nativeElement),h}return m(i,[{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),i}(St);return t.\u0275fac=function(e){return new(e||t)(f.Mb(wt),f.Mb(f.l),f.Mb(f.A),f.Mb(I.a),f.Mb(p.h,8),f.Xb("tabindex"),f.Mb(o.h),f.Mb(b.a,8))},t.\u0275dir=f.Hb({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(f.Bb("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),f.Eb("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[f.xb]}),t}(),Et=function(){var t=function t(){g(this,t)};return t.\u0275mod=f.Kb({type:t}),t.\u0275inj=f.Jb({factory:function(e){return new(e||t)},imports:[[d.c,p.i,l.i,p.t,c.c,o.a],p.i]}),t}()},KoHB:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n,r=i("bFHC"),a=i("2kYt"),o=i("EM62"),s=((n=function t(){g(this,t)}).\u0275mod=o.Kb({type:n}),n.\u0275inj=o.Jb({factory:function(t){return new(t||n)},imports:[[r.b,a.c]]}),n)},KtsV:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("X2Q7"),a=i("cqs0"),o=i("Ssnw"),s=i("iyZ4"),c=i("EM62"),u=i("s2Ay"),l=i("2kYt"),h=i("csyo"),f=i("A8Ay"),p=i("K9kF"),b=i("PBFl");function v(t,e){1&t&&c.Nb(0,"mat-spinner",3)}function y(t,e){if(1&t){var i=c.Tb();c.Sb(0,"div"),c.Sb(1,"perun-web-apps-immediate-filter",4),c.Zb("filter",(function(t){return c.xc(i),c.dc().applyFilter(t)})),c.Rb(),c.Sb(2,"div",5),c.Sb(3,"perun-web-apps-groups-list",6),c.Zb("page",(function(t){return c.xc(i),c.dc().pageChanged(t)})),c.Rb(),c.Rb(),c.Sb(4,"div",7),c.Sb(5,"button",8),c.Zb("click",(function(){return c.xc(i),c.dc().onCancel()})),c.Jc(6),c.ec(7,"translate"),c.Rb(),c.Sb(8,"button",9),c.Zb("click",(function(){return c.xc(i),c.dc().onSubmit()})),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Rb(),c.Rb()}if(2&t){var n=c.dc();c.Cb(n.theme),c.Ab(1),c.kc("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),c.Ab(2),c.kc("groupsToDisable",n.groupsToDisable)("disableGroups",!0)("pageSize",n.pageSize)("groups",n.groups)("selection",n.selection)("hideColumns",n.hideColumns)("filter",n.filterValue)("disableHeadCheckbox",!0)("disableRouting",!0)("authType","create-relation-dialog"),c.Ab(3),c.Lc(" ",c.fc(7,17,"DIALOGS.CREATE_RELATION.CANCEL")," "),c.Ab(2),c.kc("disabled",n.loading||0===n.selection.selected.length),c.Ab(1),c.Lc(" ",c.fc(10,19,"DIALOGS.CREATE_RELATION.CREATE")," ")}}var A=function(){var t=function(){function t(e,i,n,r,o,c,u){var l=this;g(this,t),this.dialogRef=e,this.groupService=i,this.notificator=n,this.translate=r,this.tableConfigService=o,this.guiAuthResolver=c,this.data=u,this.selection=new a.c(!1,[]),this.hideColumns=["recent","vo","expiration","menu"],this.filterValue="",this.tableId=s.s,this.groupsToDisable=new Set,r.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe((function(t){return l.successMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe((function(e){e=e.concat(t.data.groups),t.groupService.getAllGroups(t.data.voId).subscribe((function(i){var n=e.map((function(t){return t.id}));t.groups=i.filter((function(e){return!n.includes(e.id)&&e.id!==t.data.group.id})),t.setGroupsToDisable(),t.loading=!1}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1})),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe((function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"setGroupsToDisable",value:function(){var t,e=d(this.groups);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.guiAuthResolver.isAuthorized("createGroupUnion_Group_Group_policy",[this.data.group,i])||this.groupsToDisable.add(i.id)}}catch(n){e.e(n)}finally{e.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(r.h),c.Mb(o.l),c.Mb(u.e),c.Mb(s.pb),c.Mb(o.h),c.Mb(n.a))},t.\u0275cmp=c.Gb({type:t,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,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"groupsToDisable","disableGroups","pageSize","groups","selection","hideColumns","filter","disableHeadCheckbox","disableRouting","authType","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Sb(3,"div"),c.Hc(4,v,1,0,"mat-spinner",1),c.Rb(),c.Hc(5,y,11,21,"div",2)),2&t&&(c.Ab(1),c.Kc(c.fc(2,6,"DIALOGS.CREATE_RELATION.TITLE")),c.Ab(2),c.Cb(e.theme),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[n.j,l.t,h.c,f.a,n.g,p.a,n.c,b.b],pipes:[u.d],styles:[""]}),t}()},L4Ow:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),r=i("s2Ay"),a=function(){var t=function(){function t(e){g(this,t),this.translate=e,this.prefix="ROLES."}return m(t,[{key:"transform",value:function(t,e){var i=this.prefix.concat(t);return this.translate.instant(i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.e))},t.\u0275pipe=n.Lb({name:"displayedRole",type:t,pure:!0}),t}()},LAw4:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("EM62"),r=i("nIj0"),a=i("QQZH"),o=i("ZTXN"),s=i("kuMc"),c=(i("X2Q7"),i("OIgT")),u=i("29Wa"),l=i("R7+U"),h=i("mFH5"),d=i("BYpP"),f=i("2kYt"),p=i("qvOF"),b=["scrollViewport"];function v(t,e){if(1&t&&(n.Sb(0,"mat-option",7),n.Jc(1),n.Sb(2,"span",8),n.Jc(3),n.Rb(),n.Rb()),2&t){var i=n.dc();n.kc("value",null==i.entitiesCtrl?null:i.entitiesCtrl.value),n.Ab(1),n.Lc(" ",i.mainTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)," "),n.Ab(2),n.Kc(i.secondaryTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value))}}function y(t,e){if(1&t&&(n.Sb(0,"mat-option",9),n.Jc(1),n.Sb(2,"span",8),n.Jc(3),n.Rb(),n.Rb()),2&t){var i=e.$implicit,r=n.dc();n.kc("value",i),n.Ab(1),n.Lc(" ",r.mainTextFunction(i)," "),n.Ab(2),n.Kc(r.secondaryTextFunction(i))}}var A=function(){var t=function(){function t(e){g(this,t),this.cd=e,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.entitySelected=new n.o,this.entitiesCtrl=new r.g,this.entityFilterCtrl=new r.g,this.filteredEntities=new a.a(1),this.entitiesLen=0,this._onDestroy=new o.a,this.mainTextFunction=function(t){return Object(c.stringify)(t)},this.secondaryTextFunction=function(t){return"#"+t.id}}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.entitiesCtrl.valueChanges.subscribe((function(e){return t.entitySelected.emit(e)})),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe((function(e){return t.entitiesLen=e.length})),this.entityFilterCtrl.valueChanges.pipe(Object(s.a)(this._onDestroy)).subscribe((function(){t.filterEntites()})),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}},{key:"ngOnChanges",value:function(t){t.entities&&this.filteredEntities.next(this.entities.slice())}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"filterEntites",value:function(){var t=this;if(this.entities){var e=this.entityFilterCtrl.value;if(!e)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();e=this.normalize(e),this.filteredEntities.next(this.entities.filter((function(i){return t.normalize(t.searchFunction(i)).indexOf(e)>=0}))),this.cd.detectChanges()}}},{key:"normalize",value:function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"openChange",value:function(t){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}},{key:"getViewportHeight",value:function(){var t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){var i;1&t&&n.Qc(b,!0),2&t&&n.sc(i=n.ac())&&(e.scrollViewport=i.first)},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[n.yb],decls:9,vars:14,consts:[[1,"w-100"],[3,"placeholder","formControl","openedChange"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted","muted"],[3,"value"]],template:function(t,e){1&t&&(n.Sb(0,"mat-form-field",0),n.Sb(1,"mat-select",1),n.Zb("openedChange",(function(t){return e.openChange(t)})),n.Sb(2,"mat-option"),n.Nb(3,"ngx-mat-select-search",2),n.Rb(),n.Hc(4,v,4,3,"mat-option",3),n.Sb(5,"cdk-virtual-scroll-viewport",4,5),n.Hc(7,y,4,3,"mat-option",6),n.ec(8,"async"),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.lc("placeholder",e.selectPlaceholder),n.kc("formControl",e.entitiesCtrl),n.Ab(2),n.lc("placeholderLabel",e.findPlaceholder),n.lc("noEntriesFoundLabel",e.noEntriesText),n.kc("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.Ab(1),n.kc("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.Ab(1),n.Ec("height",e.getViewportHeight(),"px"),n.kc("minBufferPx",240)("maxBufferPx",480),n.Ab(2),n.kc("cdkVirtualForOf",n.fc(8,12,e.filteredEntities)))},directives:[u.c,l.a,r.r,r.h,h.n,d.a,f.t,p.e,p.a,p.d],pipes:[f.b],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}"]}),t}()},LKLE:function(t,e,i){"use strict";i.d(e,"a",(function(){return N}));var n=i("EM62"),r=i("iAde"),a=i("cePI"),o=i("FlRo"),s=i("cqs0"),c=i("nhAq"),u=i("8clQ"),l=i("Ssnw"),h=i("9wx0"),f=i("2kYt"),p=i("+Tre"),b=i("Y2X+"),v=i("FcRk"),y=i("YEcy"),A=i("s2Ay");function w(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",18),n.Sb(1,"mat-checkbox",19),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())("aria-label",r.checkboxLabel())}}function _(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",20),n.Sb(1,"mat-checkbox",21),n.Zb("click",(function(t){return n.xc(i),t.stopPropagation()}))("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null})),n.ec(2,"isVirtualAttribute"),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("checked",a.selection.isSelected(r))("disabled",n.fc(2,3,r)||!r.writable)("aria-label",a.checkboxLabel(r))}}function S(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function k(t,e){if(1&t&&(n.Sb(0,"td",20),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function E(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function R(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.displayName)}}function C(t,e){1&t&&(n.Sb(0,"th",18),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function T(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",23),n.Sb(1,"perun-web-apps-attribute-value",24),n.Zb("sendEventToParent2",(function(){n.xc(i);var t=e.$implicit;return n.dc().onValueChange(t)})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("attribute",r)("readonly",a.readonly||!r.writable)}}function I(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function O(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.description)}}function D(t,e){1&t&&n.Nb(0,"tr",25)}function M(t,e){if(1&t&&(n.Nb(0,"tr",26),n.ec(1,"translate")),2&t){var i=e.$implicit,r=n.dc();n.lc("matTooltip",n.fc(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.kc("matTooltipPosition","before")("matTooltipDisabled",i.writable||r.readonly)}}function P(t,e){1&t&&(n.Sb(0,"app-alert",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function x(t,e){1&t&&(n.Sb(0,"app-alert",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}var N=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.attributes=[],this.selection=new s.c(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new n.o,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=u.a}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new o.o(Object(u.j)(this.attributes)),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}},{key:"exportData",value:function(t){Object(u.i)(Object(u.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.displayedColumns=this.displayedColumns.filter((function(e){return!t.hiddenColumns.includes(e)})),this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(u.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(u.g)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"updateMapAttributes",value:function(){var t,e=d(this.items.toArray());try{for(e.s();!(t=e.n()).done;){var i=t.value;"java.util.LinkedHashMap"===i.attribute.type&&i.updateMapAttribute()}}catch(n){e.e(n)}finally{e.f()}}},{key:"onValueChange",value:function(t){this.canBeSelected(t)&&this.selection.select(t)}},{key:"canBeSelected",value:function(t){return!Object(u.s)(t)&&t.writable}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Dc(r.a,!0),n.Qc(c.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first),n.sc(i=n.ac())&&(e.items=i))},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[n.yb],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,w,2,3,"th",6),n.Hc(7,_,3,5,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,S,3,3,"th",9),n.Hc(10,k,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,E,3,3,"th",9),n.Hc(13,R,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,C,3,3,"th",6),n.Hc(16,T,2,2,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,I,3,3,"th",9),n.Hc(19,O,2,1,"td",11),n.Pb(),n.Hc(20,D,1,0,"tr",14),n.Hc(21,M,2,5,"tr",15),n.Rb(),n.Rb(),n.Sb(22,"mat-paginator",16),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(23,P,3,3,"app-alert",17),n.Hc(24,x,3,3,"app-alert",17)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(16),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.attributes.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.data.length))},directives:[h.a,o.n,a.a,o.c,o.i,o.b,o.k,o.m,r.a,f.t,o.h,p.a,o.a,a.b,c.a,o.j,o.l,b.a,v.a],pipes:[y.a,A.d],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},Log1:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("8clQ"),r=i("EM62"),a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){return Object(n.x)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"memberLogins",type:t,pure:!0}),t}()},M7la:function(t,e,i){"use strict";i.d(e,"a",(function(){return j}));var n=i("4sdY"),r=i("cqs0"),a=i("Ssnw"),o=i("Y9OK"),s=i("p3Ob"),c=i("X2Q7"),u=i("nyAh"),l=i("nIj0"),h=i("iyZ4"),d=i("8clQ"),f=i("hiWg"),p=i("EM62"),b=i("sEIs"),v=i("s2Ay"),y=i("OZ4H"),A=i("Y2X+"),w=i("2kYt"),_=i("PBFl"),S=i("29Wa"),k=i("R7+U"),E=i("Cd2c"),R=i("bFHC"),C=i("mFH5"),T=i("csyo"),I=i("l18O"),O=i("nz2m"),D=i("FcRk");function M(t,e){if(1&t){var i=p.Tb();p.Sb(0,"button",17),p.Zb("click",(function(){return p.xc(i),p.dc().onAddMember()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}if(2&t){var n=p.dc();p.kc("disabled",n.blockManualMemberAdding),p.Ab(1),p.Lc(" ",p.fc(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function P(t,e){if(1&t){var i=p.Tb();p.Sb(0,"button",18),p.Zb("click",(function(){return p.xc(i),p.dc().onInviteMember()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function x(t,e){if(1&t){var i=p.Tb();p.Sb(0,"button",19),p.Zb("click",(function(){return p.xc(i),p.dc().onRemoveMembers()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}if(2&t){var n=p.dc();p.kc("disabled",n.selection.isEmpty()),p.Ab(1),p.Lc(" ",p.fc(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function N(t,e){if(1&t&&(p.Sb(0,"mat-option",20),p.Jc(1),p.Rb()),2&t){var i=e.$implicit;p.kc("value",i),p.Ab(1),p.Kc(i)}}function L(t,e){1&t&&p.Nb(0,"mat-spinner",21)}function F(t,e){if(1&t){var i=p.Tb();p.Sb(0,"perun-web-apps-members-dynamic-list",22),p.Zb("page",(function(t){return p.xc(i),p.dc().pageChanged(t)}))("updateTable",(function(){return p.xc(i),p.dc().refreshTable()})),p.Rb()}if(2&t){var n=p.dc();p.kc("voId",n.vo.id)("pageSize",n.pageSize)("selection",n.selection)("hideColumns",n.hideColumns)("attrNames",n.attrNames)}}function z(t,e){if(1&t){var i=p.Tb();p.Sb(0,"perun-web-apps-members-list",26),p.Zb("page",(function(t){return p.xc(i),p.dc(2).pageChanged(t)}))("updateTable",(function(){return p.xc(i),p.dc(2).refreshTable()})),p.Rb()}if(2&t){var n=p.dc(2);p.kc("pageSize",n.pageSize)("selection",n.selection)("members",n.members)("disableRouting",!n.routeAuth)("hideColumns",n.hideColumns)}}function H(t,e){1&t&&(p.Sb(0,"app-alert",27),p.Jc(1),p.ec(2,"translate"),p.Rb()),2&t&&(p.kc("alert_type","warn"),p.Ab(1),p.Lc(" ",p.fc(2,2,"VO_DETAIL.MEMBERS.NO_MEMBERS_ALERT")," "))}function B(t,e){if(1&t&&(p.Sb(0,"div",23),p.Hc(1,z,1,5,"perun-web-apps-members-list",24),p.Hc(2,H,3,4,"app-alert",25),p.Rb()),2&t){var i=p.dc();p.Ab(1),p.kc("ngIf",0!==i.members.length),p.Ab(1),p.kc("ngIf",0===i.members.length)}}var j=function(){var t=function(){function t(e,i,n,a,o,s,c,d,f,p,b,m){g(this,t),this.membersService=e,this.sideMenuService=i,this.voService=n,this.route=a,this.notificator=o,this.translate=s,this.tableConfigService=c,this.dialog=d,this.authzService=f,this.storeService=p,this.attributesManager=b,this.apiRequest=m,this.members=null,this.selection=new r.c(!0,[]),this.firstSearchDone=!1,this.loading=!1,this.attrNames=[u.a.MEMBER_DEF_ORGANIZATION,u.a.MEMBER_DEF_MAIL,u.a.USER_DEF_ORGANIZATION,u.a.USER_DEF_PREFERRED_MAIL,u.a.MEMBER_DEF_EXPIRATION],this.statuses=new l.g,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID","EXPIRED","DISABLED"],this.tableId=h.kb,this.hideColumns=[]}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.searchControl=new l.g("",[l.F.required,l.F.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.statuses.setValue(this.statusList),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe((function(e){var i=e.voId;t.isManualAddingBlocked(i).then((function(){t.voService.getVoById(i).subscribe((function(e){t.vo=e,t.setAuthRights(),t.loading=!1}))}))}))}},{key:"setAuthRights",value:function(){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.hideColumns=this.removeAuth?["groupStatus","sponsored","type"]:["checkbox","groupStatus","sponsored","type"],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])}},{key:"onSearchByString",value:function(){var t=this;this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.loading=!0,this.firstSearchDone=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.vo.id,this.attrNames,this.searchControl.value,this.selectedStatuses).subscribe((function(e){t.members=e,t.setAuthRights(),t.loading=!1}),(function(){return t.loading=!1})))}},{key:"onListAll",value:function(){var t=this;this.loading=!0,this.firstSearchDone=!0,this.selection.clear(),this.membersService.getCompleteRichMembersForVo(this.vo.id,this.selectedStatuses,this.attrNames).subscribe((function(e){t.members=e,t.setAuthRights(),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"onAddMember",value:function(){var t=this,e=Object(d.o)();e.width="1000px",e.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(s.a,e).afterClosed().subscribe((function(e){(t.firstSearchDone||e)&&t.refreshTable()}))}},{key:"onKeyInput",value:function(t){"Enter"===t.key&&this.onSearchByString()}},{key:"onRemoveMembers",value:function(){var t=this,e=Object(d.o)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onInviteMember",value:function(){var t=this,e=Object(d.o)();e.width="650px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(f.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){this.searchControl.value.trim().length>0?this.onSearchByString():this.onListAll()}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"isManualAddingBlocked",value:function(t){var e=this;return new Promise((function(i){e.apiRequest.dontHandleErrorForNext(),e.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe((function(t){e.blockManualMemberAdding=null!==t.value,i()}),(function(t){"PrivilegeException"!==t.error.name&&e.notificator.showError(t),i()}))}))}}]),t}();return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Mb(c.i),p.Mb(n.a),p.Mb(c.q),p.Mb(b.a),p.Mb(a.l),p.Mb(v.e),p.Mb(h.pb),p.Mb(y.b),p.Mb(a.h),p.Mb(a.m),p.Mb(c.c),p.Mb(a.b))},t.\u0275cmp=p.Gb({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.Eb("router-component",!0)},decls:34,vars:31,consts:[[1,"vo-theme",3,"keyup"],[1,"page-subtitle"],[1,"align-elements"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"mr-2","fix-select"],["multiple","",3,"value","formControl","valueChange"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"voId","pageSize","selection","hideColumns","attrNames","page","updateTable",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","pageSize","selection","hideColumns","attrNames","page","updateTable"],[1,"mt-3"],[3,"pageSize","selection","members","disableRouting","hideColumns","page","updateTable",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"pageSize","selection","members","disableRouting","hideColumns","page","updateTable"],[3,"alert_type"]],template:function(t,e){1&t&&(p.Sb(0,"div",0),p.Zb("keyup",(function(t){return e.onKeyInput(t)})),p.Sb(1,"h1",1),p.Jc(2),p.ec(3,"translate"),p.Rb(),p.Sb(4,"div",2),p.Sb(5,"div",3),p.ec(6,"translate"),p.Hc(7,M,3,4,"button",4),p.Rb(),p.Hc(8,P,3,3,"button",5),p.Hc(9,x,3,4,"button",6),p.Sb(10,"button",7),p.Zb("click",(function(){return e.onListAll()})),p.Jc(11),p.ec(12,"translate"),p.Rb(),p.Sb(13,"mat-form-field",8),p.Sb(14,"mat-label"),p.Jc(15),p.ec(16,"translate"),p.Rb(),p.Sb(17,"mat-select",9),p.Zb("valueChange",(function(t){return e.selectedStatuses=t})),p.Sb(18,"mat-select-trigger"),p.Jc(19),p.Rb(),p.Hc(20,N,2,2,"mat-option",10),p.Rb(),p.Rb(),p.Sb(21,"mat-form-field",11),p.Sb(22,"label"),p.Nb(23,"input",12),p.ec(24,"translate"),p.Rb(),p.Sb(25,"mat-error"),p.Jc(26),p.ec(27,"translate"),p.Rb(),p.Rb(),p.Sb(28,"button",13),p.Zb("click",(function(){return e.onSearchByString()})),p.Sb(29,"mat-icon"),p.Jc(30,"search"),p.Rb(),p.Rb(),p.Rb(),p.Hc(31,L,1,0,"mat-spinner",14),p.Hc(32,F,1,5,"perun-web-apps-members-dynamic-list",15),p.Hc(33,B,3,2,"div",16),p.Rb()),2&t&&(p.Ab(2),p.Kc(p.fc(3,19,"VO_DETAIL.MEMBERS.TITLE")),p.Ab(3),p.lc("matTooltip",p.fc(6,21,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.kc("matTooltipDisabled",!e.blockManualMemberAdding),p.Ab(2),p.kc("ngIf",e.addAuth),p.Ab(1),p.kc("ngIf",e.inviteAuth),p.Ab(1),p.kc("ngIf",e.removeAuth),p.Ab(2),p.Lc(" ",p.fc(12,23,"VO_DETAIL.MEMBERS.LIST_MEMBERS")," "),p.Ab(4),p.Kc(p.fc(16,25,"VO_DETAIL.MEMBERS.FILTER_STATUS")),p.Ab(2),p.kc("value",e.selectedStatuses)("formControl",e.statuses),p.Ab(2),p.Lc(" ",e.displaySelectedStatuses()," "),p.Ab(1),p.kc("ngForOf",e.statusList),p.Ab(3),p.lc("placeholder",p.fc(24,27,"VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION")),p.kc("formControl",e.searchControl),p.Ab(3),p.Lc(" ",p.fc(27,29,"VO_DETAIL.MEMBERS.EMPTY_SEARCH")," "),p.Ab(2),p.kc("disabled",0===e.selectedStatuses.length),p.Ab(3),p.kc("ngIf",e.loading),p.Ab(1),p.kc("ngIf",!e.firstSearchDone&&!e.loading),p.Ab(1),p.kc("ngIf",null!==e.members&&!e.loading))},directives:[A.a,w.t,_.b,S.c,S.g,k.a,l.r,l.h,k.c,w.s,E.b,l.c,S.b,R.a,C.n,T.c,I.a,O.a,D.a],pipes:[v.d],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),t}()},MP6f:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("OZ4H"),r=i("FlRo"),a=i("Ssnw"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo"),f=i("FcRk");function p(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function b(t,e){1&t&&s.Nb(0,"th",16)}function v(t,e){if(1&t&&(s.Sb(0,"td",17),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.friendlyName," ")}}function y(t,e){1&t&&s.Nb(0,"tr",18)}function A(t,e){1&t&&s.Nb(0,"tr",19)}function w(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"div"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,b,1,0,"th",11),s.Hc(10,v,2,1,"td",12),s.Pb(),s.Hc(11,y,1,0,"tr",13),s.Hc(12,A,1,0,"tr",14),s.Rb(),s.Sb(13,"app-alert",15),s.Jc(14),s.ec(15,"translate"),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),s.Ab(3),s.Lc(" ",s.fc(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns),s.Ab(2),s.Lc(" ",s.fc(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}var _=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.attributesManager=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.o(this.data.attributes)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e,i=[],n=d(this.data.attributes);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}this.attributesManager.deleteAttributeDefinitions(i).subscribe((function(){t.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(c.e),s.Mb(o.c))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","error",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,p,1,0,"mat-spinner",1),s.Hc(5,w,16,12,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,f.a,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t}()},Meci:function(t,e,i){"use strict";i.d(e,"a",(function(){return k})),i.d(e,"b",(function(){return b})),i.d(e,"c",(function(){return S})),i.d(e,"d",(function(){return d})),i.d(e,"e",(function(){return m})),i.d(e,"f",(function(){return E})),i.d(e,"g",(function(){return v})),i.d(e,"h",(function(){return w})),i.d(e,"i",(function(){return A})),i.d(e,"j",(function(){return C})),i.d(e,"k",(function(){return y})),i.d(e,"l",(function(){return p})),i.d(e,"m",(function(){return f})),i.d(e,"n",(function(){return R})),i.d(e,"o",(function(){return _}));var n=i("5lCh"),r=i("mFH5"),a=i("EM62"),o=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],l=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],h=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],d=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t}(),f=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t}(),p=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t}(),b=function(){var t=function t(){g(this,t),this.align="start"};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&a.Eb("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t}(),m=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t}(),v=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t}(),y=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t}(),A=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t}(),w=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t}(),_=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t}(),S=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t}(),k=function(){var t=function t(e){g(this,t),this._animationMode=e};return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.a,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&a.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:s,decls:2,vars:0,template:function(t,e){1&t&&(a.jc(o),a.ic(0),a.ic(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t}(),E=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(a.jc(c),a.ic(0),a.Sb(1,"div",0),a.ic(2,1),a.Rb(),a.ic(3,2))},encapsulation:2,changeDetection:0}),t}(),R=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:h,decls:4,vars:0,template:function(t,e){1&t&&(a.jc(l),a.Sb(0,"div"),a.ic(1),a.Rb(),a.ic(2,1),a.ic(3,2))},encapsulation:2,changeDetection:0}),t}(),C=function(){var t=function t(){g(this,t)};return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t}()},MiDb:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},NC8S:function(t,e,i){"use strict";i.d(e,"a",(function(){return q}));var n=i("EM62"),r=i("iAde"),a=i("cePI"),o=i("FlRo"),s=i("cqs0"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("bFHC"),p=i("Y2X+"),b=i("TQS+"),v=i("FcRk"),y=i("s2Ay"),A=i("j+u3"),w=i("hLiN"),_=i("bwko"),S=i("O/Vf");function k(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-checkbox",23),n.Zb("change",(function(t){n.xc(i);var e=n.dc(2);return t?e.masterToggle():null})),n.Rb()}if(2&t){var r=n.dc(2);n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function E(t,e){if(1&t&&(n.Sb(0,"th",21),n.Hc(1,k,1,3,"mat-checkbox",22),n.Rb()),2&t){var i=n.dc();n.Ab(1),n.kc("ngIf",i.selection.isMultipleSelection())}}function R(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",24),n.Sb(1,"mat-checkbox",25),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function C(t,e){1&t&&n.Nb(0,"th",21)}function T(t,e){1&t&&(n.Sb(0,"mat-icon",27),n.ec(1,"translate"),n.Jc(2," account_circle "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"MANAGERS_LIST.PERSON"))}function I(t,e){1&t&&(n.Sb(0,"mat-icon",27),n.ec(1,"translate"),n.Jc(2," traffic "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"MANAGERS_LIST.SERVICE"))}function O(t,e){if(1&t&&(n.Sb(0,"td",24),n.Hc(1,T,3,3,"mat-icon",26),n.Hc(2,I,3,3,"mat-icon",26),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngIf",!i.serviceUser),n.Ab(1),n.kc("ngIf",i.serviceUser)}}function D(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.ID")))}function M(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Lc(" ",i.id," ")}}function P(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.NAME")))}function x(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i))}}function N(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.ORGANIZATION")))}function L(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.ec(2,"userVo"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i))}}function F(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.EMAIL")))}function z(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.ec(2,"userEmail"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i))}}function H(t,e){1&t&&(n.Sb(0,"th",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MANAGERS_LIST.LOGINS")))}function B(t,e){if(1&t&&(n.Sb(0,"td",29),n.Jc(1),n.ec(2,"userLogins"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i))}}function j(t,e){1&t&&n.Nb(0,"tr",30)}var G=function(t){return["/admin/users",t]};function U(t,e){if(1&t&&n.Nb(0,"tr",31),2&t){var i=e.$implicit,r=n.dc();n.Eb("cursor-pointer",!r.disableRouting),n.kc("perunWebAppsForceRouterLink",r.disableRouting?null:n.pc(4,G,i.id))("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.pc(6,G,i.id))}}function K(t,e){1&t&&(n.Sb(0,"app-alert",32),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}function V(t,e){1&t&&(n.Sb(0,"app-alert",32),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var q=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.selection=new s.c(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.o,this.pageSizeOptions=c.a}return m(t,[{key:"getDataForColumn",value:function(t,e){var i;switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"true":"false";case"name":return t?t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"":"";case"organization":return Object(c.G)(t);case"email":return Object(c.E)(t);case"logins":return Object(c.x)(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?Object(c.w)(t):"";case"organization":return Object(c.G)(t);case"email":return Object(c.E)(t);case"logins":return Object(c.x)(t);default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)})}},{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new o.o(this.users),this.dataSource.paginator=this.paginator,this.setDataSource()}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-users-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page"},features:[n.yb],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-cell","","class","static-column-size",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,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"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(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,E,2,1,"th",6),n.Hc(7,R,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,C,1,0,"th",6),n.Hc(10,O,3,2,"td",9),n.Pb(),n.Qb(11,10),n.Hc(12,D,3,3,"th",11),n.Hc(13,M,2,1,"td",7),n.Pb(),n.Qb(14,12),n.Hc(15,P,3,3,"th",11),n.Hc(16,x,3,3,"td",13),n.Pb(),n.Qb(17,14),n.Hc(18,N,3,3,"th",11),n.Hc(19,L,3,3,"td",13),n.Pb(),n.Qb(20,15),n.Hc(21,F,3,3,"th",11),n.Hc(22,z,3,3,"td",13),n.Pb(),n.Qb(23,16),n.Hc(24,H,3,3,"th",11),n.Hc(25,B,3,3,"td",13),n.Pb(),n.Hc(26,j,1,0,"tr",17),n.Hc(27,U,1,8,"tr",18),n.Rb(),n.Rb(),n.Sb(28,"mat-paginator",19),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(29,K,3,3,"app-alert",20),n.Hc(30,V,3,3,"app-alert",20)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(22),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.users.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.users.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.users.length))},directives:[l.a,o.n,a.a,o.c,o.i,o.b,o.k,o.m,r.a,h.t,o.h,d.a,o.a,f.a,p.a,a.b,o.j,o.l,b.b,b.c,v.a],pipes:[y.d,A.a,w.a,_.a,S.a],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},NMas:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("EM62"),s=i("s2Ay"),c=i("2kYt"),u=i("PBFl"),l=i("csyo");function h(t,e){1&t&&o.Nb(0,"mat-spinner",6)}function d(t,e){1&t&&(o.Sb(0,"div",7),o.Sb(1,"div",8),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Rb()),2&t&&(o.Ab(2),o.Lc(" ",o.fc(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}var f=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.tasksManager=n,this.translate=r,this.notificator=a,this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskId=this.data.taskId}},{key:"remove",value:function(){var t=this;this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe((function(){t.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}},{key:"cancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.i),o.Mb(n.a),o.Mb(a.o),o.Mb(s.e),o.Mb(r.l))},t.\u0275cmp=o.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(t,e){1&t&&(o.Sb(0,"h1",0),o.Jc(1),o.ec(2,"translate"),o.Rb(),o.Sb(3,"div"),o.Hc(4,h,1,0,"mat-spinner",1),o.Hc(5,d,4,3,"div",2),o.Sb(6,"div",3),o.Sb(7,"button",4),o.Zb("click",(function(){return e.cancel()})),o.Jc(8),o.ec(9,"translate"),o.Rb(),o.Sb(10,"button",5),o.Zb("click",(function(){return e.remove()})),o.Jc(11),o.ec(12,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,9,"DIALOGS.DELETE_TASK.TITLE")),o.Ab(2),o.Cb(e.theme),o.Ab(1),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading),o.Ab(3),o.Lc(" ",o.fc(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),o.Ab(2),o.kc("disabled",e.loading),o.Ab(1),o.Lc(" ",o.fc(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[n.j,c.t,n.c,u.b,l.c,n.g],pipes:[s.d],styles:[""]}),t}()},"NU+N":function(t,e,i){"use strict";i.d(e,"a",(function(){return it}));var n=i("cqs0"),r=i("WimW"),a=i("jk8c"),o=i("p/8k"),s=i("vhVt"),c=i("X2Q7"),u=i("nyAh"),l=i("iyZ4"),h=i("8clQ"),f=i("Ssnw"),p=i("EM62"),b=i("OZ4H"),v=i("KZIX"),y=i("2kYt"),A=i("0XDM"),w=i("PBFl"),_=i("29Wa"),S=i("R7+U"),k=i("mFH5"),E=i("csyo"),R=i("NC8S"),C=i("K9kF"),T=i("FcRk"),I=i("s2Ay"),O=i("L4Ow");function D(t,e){1&t&&(p.Jc(0),p.ec(1,"translate")),2&t&&p.Lc(" ",p.fc(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function M(t,e){if(1&t){var i=p.Tb();p.Sb(0,"perun-web-apps-refresh-button",11),p.Zb("refresh",(function(){return p.xc(i),p.dc(2).refreshUsers()})),p.Rb()}}function P(t,e){if(1&t){var i=p.Tb();p.Sb(0,"button",12),p.Zb("click",(function(){return p.xc(i),p.dc(2).addManager()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function x(t,e){if(1&t){var i=p.Tb();p.Sb(0,"button",13),p.Zb("click",(function(){return p.xc(i),p.dc(2).removeManager()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}if(2&t){var n=p.dc(2);p.kc("disabled",0===n.selectionUsers.selected.length),p.Ab(1),p.Lc(" ",p.fc(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function N(t,e){if(1&t&&(p.Sb(0,"mat-option",17),p.Jc(1),p.ec(2,"displayedRole"),p.Rb()),2&t){var i=e.$implicit;p.kc("value",i),p.Ab(1),p.Kc(p.fc(2,2,i))}}function L(t,e){if(1&t){var i=p.Tb();p.Sb(0,"mat-form-field",14),p.Sb(1,"mat-label"),p.Jc(2),p.ec(3,"translate"),p.Rb(),p.Sb(4,"mat-select",15),p.Zb("valueChange",(function(t){return p.xc(i),p.dc(2).selectedRole=t}))("selectionChange",(function(){return p.xc(i),p.dc(2).refreshUsers()})),p.Hc(5,N,3,4,"mat-option",16),p.Rb(),p.Rb()}if(2&t){var n=p.dc(2);p.Ab(2),p.Kc(p.fc(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.Ab(2),p.kc("value",n.selectedRole),p.Ab(1),p.kc("ngForOf",n.availableRoles)}}function F(t,e){1&t&&p.Nb(0,"mat-spinner",18)}var z=function(){return["select","id","name","email","logins","organization"]},H=function(){return["id","name","email","logins","organization"]};function B(t,e){if(1&t){var i=p.Tb();p.Sb(0,"app-users-list",20),p.Zb("page",(function(t){return p.xc(i),p.dc(3).pageChanged(t)})),p.Rb()}if(2&t){var n=p.dc(3);p.kc("pageSize",n.pageSize)("users",n.managers)("disableRouting",!n.routeAuth)("displayedColumns",n.manageAuth?p.oc(5,z):p.oc(6,H))("selection",n.selectionUsers)}}function j(t,e){if(1&t&&(p.Sb(0,"div"),p.Hc(1,B,1,7,"app-users-list",19),p.Rb()),2&t){var i=p.dc(2);p.Ab(1),p.kc("ngIf",i.managers)}}function G(t,e){if(1&t&&(p.Hc(0,M,1,0,"perun-web-apps-refresh-button",5),p.Hc(1,P,3,3,"button",6),p.Hc(2,x,3,4,"button",7),p.Hc(3,L,6,5,"mat-form-field",8),p.Hc(4,F,1,0,"mat-spinner",9),p.Hc(5,j,2,1,"div",10)),2&t){var i=p.dc();p.kc("ngIf",!i.loading),p.Ab(1),p.kc("ngIf",!i.loading&&i.manageAuth),p.Ab(1),p.kc("ngIf",!i.loading&&i.manageAuth),p.Ab(1),p.kc("ngIf",!i.loading),p.Ab(1),p.kc("ngIf",i.loading),p.Ab(1),p.kc("ngIf",!i.loading)}}function U(t,e){1&t&&(p.Jc(0),p.ec(1,"translate")),2&t&&p.Lc(" ",p.fc(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function K(t,e){if(1&t){var i=p.Tb();p.Sb(0,"perun-web-apps-refresh-button",11),p.Zb("refresh",(function(){return p.xc(i),p.dc(2).refreshGroups()})),p.Rb()}}function V(t,e){if(1&t){var i=p.Tb();p.Sb(0,"button",12),p.Zb("click",(function(){return p.xc(i),p.dc(2).addGroup()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function q(t,e){if(1&t){var i=p.Tb();p.Sb(0,"button",13),p.Zb("click",(function(){return p.xc(i),p.dc(2).removeGroup()})),p.Jc(1),p.ec(2,"translate"),p.Rb()}if(2&t){var n=p.dc(2);p.kc("disabled",0===n.selectionGroups.selected.length),p.Ab(1),p.Lc(" ",p.fc(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function J(t,e){if(1&t&&(p.Sb(0,"mat-option",17),p.Jc(1),p.ec(2,"displayedRole"),p.Rb()),2&t){var i=e.$implicit;p.kc("value",i),p.Ab(1),p.Kc(p.fc(2,2,i))}}function W(t,e){if(1&t){var i=p.Tb();p.Sb(0,"mat-form-field",14),p.Sb(1,"mat-label"),p.Jc(2),p.ec(3,"translate"),p.Rb(),p.Sb(4,"mat-select",15),p.Zb("valueChange",(function(t){return p.xc(i),p.dc(2).selectedRole=t}))("selectionChange",(function(){return p.xc(i),p.dc(2).refreshGroups()})),p.Hc(5,J,3,4,"mat-option",16),p.Rb(),p.Rb()}if(2&t){var n=p.dc(2);p.Ab(2),p.Kc(p.fc(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.Ab(2),p.kc("value",n.selectedRole),p.Ab(1),p.kc("ngForOf",n.availableRoles)}}function Z(t,e){1&t&&p.Nb(0,"mat-spinner",18)}var Y=function(){return["menu","expiration","recent"]},X=function(){return["select","expiration","menu","recent"]};function Q(t,e){if(1&t){var i=p.Tb();p.Sb(0,"perun-web-apps-groups-list",22),p.Zb("page",(function(t){return p.xc(i),p.dc(3).pageChanged(t)})),p.Rb()}if(2&t){var n=p.dc(3);p.kc("pageSize",n.pageSize)("hideColumns",n.manageAuth?p.oc(5,Y):p.oc(6,X))("groups",n.groups)("selection",n.selectionGroups)("disableMembers",!1)}}function $(t,e){if(1&t&&(p.Sb(0,"div"),p.Hc(1,Q,1,7,"perun-web-apps-groups-list",21),p.Rb()),2&t){var i=p.dc(2);p.Ab(1),p.kc("ngIf",i.groups)}}function tt(t,e){if(1&t&&(p.Hc(0,K,1,0,"perun-web-apps-refresh-button",5),p.Hc(1,V,3,3,"button",6),p.Hc(2,q,3,4,"button",7),p.Hc(3,W,6,5,"mat-form-field",8),p.Hc(4,Z,1,0,"mat-spinner",9),p.Hc(5,$,2,1,"div",10)),2&t){var i=p.dc();p.kc("ngIf",!i.loading),p.Ab(1),p.kc("ngIf",!i.loading&&i.manageAuth),p.Ab(1),p.kc("ngIf",!i.loading&&i.manageAuth),p.Ab(1),p.kc("ngIf",!i.loading),p.Ab(1),p.kc("ngIf",i.loading),p.Ab(1),p.kc("ngIf",!i.loading)}}function et(t,e){1&t&&(p.Sb(0,"app-alert",23),p.Jc(1),p.ec(2,"translate"),p.Rb()),2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}var it=function(){var t=function(){function t(e,i,r,a,o){g(this,t),this.dialog=e,this.tableConfigService=i,this.authzService=r,this.storeService=a,this.guiAuthResolver=o,this.groups=null,this.managers=null,this.selectionUsers=new n.c(!0,[]),this.selectionGroups=new n.c(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=l.H,this.availableRolesPrivileges=new Map}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter((function(e){return t.availableRolesPrivileges.get(e).readAuth})),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.routeAuth=this.guiAuthResolver.isPerunAdmin(),this.refreshUsers()}},{key:"changeRolePrivileges",value:function(){this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;var t,e=!1,i=d(this.roleModes);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(this.selectedMode===n.toLowerCase()){e=!0;break}}}catch(r){i.e(r)}finally{i.f()}e||(this.selectedMode=this.roleModes[0].toLowerCase())}},{key:"tabChanged",value:function(t){this.loading=!0,0===t.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}},{key:"refreshUsers",value:function(){var t=this;this.loading=!0,this.changeRolePrivileges();var e=[u.a.USER_DEF_ORGANIZATION,u.a.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,e,!1,!0).subscribe((function(e){t.managers=e,t.selectionUsers.clear(),t.loading=!1}),(function(){t.loading=!1}))}},{key:"refreshGroups",value:function(){var t=this;this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe((function(e){t.groups=e,t.selectionGroups.clear(),t.loading=!1}),(function(){t.loading=!1}))}},{key:"addManager",value:function(){var t=this,e=Object(h.o)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(r.a,e).afterClosed().subscribe((function(e){e&&t.refreshUsers()}))}},{key:"removeManager",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(a.a,e).afterClosed().subscribe((function(e){e&&t.refreshUsers()}))}},{key:"removeGroup",value:function(){var t=this,e=Object(h.o)();e.width="450px",e.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(o.a,e).afterClosed().subscribe((function(e){e&&t.refreshGroups()}))}},{key:"addGroup",value:function(){var t=this,e=Object(h.o)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(s.a,e).afterClosed().subscribe((function(e){e&&t.refreshGroups()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Mb(b.b),p.Mb(l.pb),p.Mb(c.d),p.Mb(f.m),p.Mb(f.h))},t.\u0275cmp=p.Gb({type:t,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(t,e){2&t&&p.Eb("router-component",!0)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],["class","mt-2",3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 mt-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],["class","mr-2 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page",4,"ngIf"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page"],[3,"pageSize","hideColumns","groups","selection","disableMembers","page",4,"ngIf"],[3,"pageSize","hideColumns","groups","selection","disableMembers","page"],["alert_type","warn"]],template:function(t,e){1&t&&(p.Sb(0,"h1",0),p.Jc(1),p.ec(2,"translate"),p.Rb(),p.Sb(3,"mat-tab-group",1),p.Zb("selectedTabChange",(function(t){return e.tabChanged(t)})),p.Sb(4,"mat-tab"),p.Hc(5,D,2,3,"ng-template",2),p.Hc(6,G,6,6,"ng-template",3),p.Rb(),p.Sb(7,"mat-tab"),p.Hc(8,U,2,3,"ng-template",2),p.Hc(9,tt,6,6,"ng-template",3),p.Rb(),p.Rb(),p.Hc(10,et,3,3,"app-alert",4)),2&t&&(p.Ab(1),p.Lc(" ",p.fc(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),p.Ab(9),p.kc("ngIf",0===e.availableRoles.length))},directives:[v.c,v.a,v.d,v.b,y.t,A.a,w.b,_.c,_.g,S.a,y.s,k.n,E.c,R.a,C.a,T.a],pipes:[I.d,O.a],styles:[""]}),t}()},NZNE:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("8clQ"),r=i("EM62"),a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){return Object(n.v)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"memberEmail",type:t,pure:!0}),t}()},"O/Vf":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("8clQ"),r=i("EM62"),a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t){return Object(n.F)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"userLogins",type:t,pure:!0}),t}()},O82x:function(t,e,i){"use strict";i.d(e,"a",(function(){return pt}));var n=i("EM62"),r=i("oqI+"),a=i("VMyb"),o=i("Ssnw"),s=i("DnAX"),c=i("8clQ"),u=i("OZ4H"),l=i("sEIs"),h=i("s2Ay"),f=i("2kYt"),p=i("csyo"),b=i("FlRo"),v=i("PBFl"),y=i("bFHC"),A=i("nIj0"),w=i("Y2X+"),_=i("FcRk"),S=i("g3Wv"),k=["table"];function E(t,e){1&t&&n.Nb(0,"mat-spinner",3)}function R(t,e){1&t&&n.Nb(0,"th",20)}function C(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",21),n.Sb(1,"button",22),n.Zb("mousedown",(function(){return n.xc(i),n.dc(2).dragDisabled=!1})),n.Sb(2,"mat-icon"),n.Jc(3,"drag_indicator"),n.Rb(),n.Rb(),n.Rb()}}function T(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")))}function I(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.shortname)}}function O(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")))}function D(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.ec(2,"applicationFormItemType"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.type))}}function M(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")))}function P(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",25),n.Rb(),n.Rb())}function x(t,e){1&t&&(n.Sb(0,"div",26),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_VALUE")," "))}function N(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",27),n.Rb(),n.Rb())}function L(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",28),n.Nb(3,"br"),n.Nb(4,"input",25),n.Rb(),n.Rb())}function F(t,e){if(1&t&&(n.Sb(0,"div"),n.Nb(1,"input",31),n.Jc(2),n.Nb(3,"br"),n.Rb()),2&t){var i=e.$implicit;n.Ab(2),n.Lc(" ",i,"")}}function z(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Hc(2,F,4,1,"div",29),n.Nb(3,"input",30),n.ec(4,"translate"),n.Rb(),n.Rb()),2&t){var i=n.dc().$implicit,r=n.dc(2);n.Ab(2),n.kc("ngForOf",r.getLocalizedOptions(i)),n.Ab(1),n.lc("value",n.fc(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function H(t,e){if(1&t&&(n.Sb(0,"div"),n.Nb(1,"span",32),n.Rb()),2&t){var i=n.dc().$implicit,r=n.dc(2);n.Ab(1),n.kc("innerHTML",r.getLocalizedLabel(i),n.yc)}}function B(t,e){if(1&t&&(n.Sb(0,"option"),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i)}}function j(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"select"),n.Hc(2,B,2,1,"option",29),n.Rb(),n.Rb()),2&t){var i=n.dc().$implicit,r=n.dc(2);n.Ab(2),n.kc("ngForOf",r.getLocalizedOptions(i))}}function G(t,e){1&t&&(n.Sb(0,"div"),n.Nb(1,"textarea"),n.Rb())}function U(t,e){if(1&t&&(n.Sb(0,"option",36),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i)}}function K(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",25),n.Rb(),n.Rb())}function V(t,e){if(1&t){var i=n.Tb();n.Sb(0,"div"),n.Sb(1,"select",33),n.Zb("ngModelChange",(function(t){n.xc(i);var e=n.dc().$implicit;return n.dc(2).mapForCombobox[e.id]=t})),n.Hc(2,U,2,1,"option",34),n.Sb(3,"option",35),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Rb(),n.Hc(6,K,3,0,"div",23),n.Rb()}if(2&t){var r=n.dc().$implicit,a=n.dc(2);n.Ab(1),n.kc("ngModel",a.mapForCombobox[r.id]),n.Ab(1),n.kc("ngForOf",a.getLocalizedOptions(r)),n.Ab(2),n.Kc(n.fc(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),n.Ab(2),n.kc("ngIf","true"===a.mapForCombobox[r.id])}}function q(t,e){if(1&t&&(n.Sb(0,"div"),n.Nb(1,"input",37),n.Jc(2),n.Rb()),2&t){var i=e.$implicit;n.Ab(2),n.Lc(" ",i," ")}}function J(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Hc(2,q,3,1,"div",29),n.Rb(),n.Rb()),2&t){var i=n.dc().$implicit,r=n.dc(2);n.Ab(2),n.kc("ngForOf",r.getLocalizedOptions(i))}}function W(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"button",38),n.Jc(2),n.Rb(),n.Rb()),2&t){var i=n.dc().$implicit,r=n.dc(2);n.Ab(2),n.Kc(r.getLocalizedLabel(i))}}function Z(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"select",39),n.Sb(2,"option",40),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Sb(5,"option",41),n.Jc(6,"(GMT -12:00) Eniwetok, Kwajalein"),n.Rb(),n.Sb(7,"option",42),n.Jc(8,"(GMT -11:00) Midway Island, Samoa"),n.Rb(),n.Sb(9,"option",43),n.Jc(10,"(GMT -10:00) Hawaii"),n.Rb(),n.Sb(11,"option",44),n.Jc(12,"(GMT -9:30) Taiohae"),n.Rb(),n.Sb(13,"option",45),n.Jc(14,"(GMT -9:00) Alaska"),n.Rb(),n.Sb(15,"option",46),n.Jc(16,"(GMT -8:00) Pacific Time (US & Canada)"),n.Rb(),n.Sb(17,"option",47),n.Jc(18,"(GMT -7:00) Mountain Time (US & Canada)"),n.Rb(),n.Sb(19,"option",48),n.Jc(20,"(GMT -6:00) Central Time (US & Canada), Mexico City"),n.Rb(),n.Sb(21,"option",49),n.Jc(22,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),n.Rb(),n.Sb(23,"option",50),n.Jc(24,"(GMT -4:30) Caracas"),n.Rb(),n.Sb(25,"option",51),n.Jc(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),n.Rb(),n.Sb(27,"option",52),n.Jc(28,"(GMT -3:30) Newfoundland"),n.Rb(),n.Sb(29,"option",53),n.Jc(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),n.Rb(),n.Sb(31,"option",54),n.Jc(32,"(GMT -2:00) Mid-Atlantic"),n.Rb(),n.Sb(33,"option",55),n.Jc(34,"(GMT -1:00) Azores, Cape Verde Islands"),n.Rb(),n.Sb(35,"option",56),n.Jc(36,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),n.Rb(),n.Sb(37,"option",57),n.Jc(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),n.Rb(),n.Sb(39,"option",58),n.Jc(40,"(GMT +2:00) Kaliningrad, South Africa"),n.Rb(),n.Sb(41,"option",59),n.Jc(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),n.Rb(),n.Sb(43,"option",60),n.Jc(44,"(GMT +3:30) Tehran"),n.Rb(),n.Sb(45,"option",61),n.Jc(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),n.Rb(),n.Sb(47,"option",62),n.Jc(48,"(GMT +4:30) Kabul"),n.Rb(),n.Sb(49,"option",63),n.Jc(50,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),n.Rb(),n.Sb(51,"option",64),n.Jc(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),n.Rb(),n.Sb(53,"option",65),n.Jc(54,"(GMT +5:45) Kathmandu, Pokhara"),n.Rb(),n.Sb(55,"option",66),n.Jc(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),n.Rb(),n.Sb(57,"option",67),n.Jc(58,"(GMT +6:30) Yangon, Mandalay"),n.Rb(),n.Sb(59,"option",68),n.Jc(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),n.Rb(),n.Sb(61,"option",69),n.Jc(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),n.Rb(),n.Sb(63,"option",70),n.Jc(64,"(GMT +8:45) Eucla"),n.Rb(),n.Sb(65,"option",71),n.Jc(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),n.Rb(),n.Sb(67,"option",72),n.Jc(68,"(GMT +9:30) Adelaide, Darwin"),n.Rb(),n.Sb(69,"option",73),n.Jc(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),n.Rb(),n.Sb(71,"option",74),n.Jc(72,"(GMT +10:30) Lord Howe Island"),n.Rb(),n.Sb(73,"option",75),n.Jc(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),n.Rb(),n.Sb(75,"option",76),n.Jc(76,"(GMT +11:30) Norfolk Island"),n.Rb(),n.Sb(77,"option",77),n.Jc(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),n.Rb(),n.Sb(79,"option",78),n.Jc(80,"(GMT +12:45) Chatham Islands"),n.Rb(),n.Sb(81,"option",79),n.Jc(82,"(GMT +13:00) Apia, Nukualofa"),n.Rb(),n.Sb(83,"option",80),n.Jc(84,"(GMT +14:00) Line Islands, Tokelau"),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Ab(3),n.Kc(n.fc(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")))}function Y(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"button",38),n.Jc(2),n.Rb(),n.Rb()),2&t){var i=n.dc().$implicit,r=n.dc(2);n.Ab(2),n.Kc(r.getLocalizedLabel(i))}}function X(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"form"),n.Nb(2,"input",37),n.Jc(3," example group1 "),n.Nb(4,"br"),n.Nb(5,"input",37),n.Jc(6," example group2 "),n.Nb(7,"br"),n.Nb(8,"input",37),n.Jc(9," example group3 "),n.Rb(),n.Rb())}function Q(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,P,3,0,"div",23),n.Hc(2,x,3,3,"div",24),n.Hc(3,N,3,0,"div",23),n.Hc(4,L,5,0,"div",23),n.Hc(5,z,5,4,"div",23),n.Hc(6,H,2,1,"div",23),n.Hc(7,j,3,1,"div",23),n.Hc(8,G,2,0,"div",23),n.Hc(9,V,7,6,"div",23),n.Hc(10,J,3,1,"div",23),n.Hc(11,W,3,1,"div",23),n.Hc(12,Z,85,3,"div",23),n.Hc(13,Y,3,1,"div",23),n.Hc(14,X,10,0,"div",23),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngIf","TEXTFIELD"===i.type||"VALIDATED_EMAIL"===i.type||"USERNAME"===i.type),n.Ab(1),n.kc("ngIf","FROM_FEDERATION_HIDDEN"===i.type),n.Ab(1),n.kc("ngIf","FROM_FEDERATION_SHOW"===i.type),n.Ab(1),n.kc("ngIf","PASSWORD"===i.type),n.Ab(1),n.kc("ngIf","RADIO"===i.type),n.Ab(1),n.kc("ngIf","HEADING"===i.type||"HTML_COMMENT"===i.type),n.Ab(1),n.kc("ngIf","SELECTIONBOX"===i.type),n.Ab(1),n.kc("ngIf","TEXTAREA"===i.type),n.Ab(1),n.kc("ngIf","COMBOBOX"===i.type),n.Ab(1),n.kc("ngIf","CHECKBOX"===i.type),n.Ab(1),n.kc("ngIf","SUBMIT_BUTTON"===i.type),n.Ab(1),n.kc("ngIf","TIMEZONE"===i.type),n.Ab(1),n.kc("ngIf","AUTO_SUBMIT_BUTTON"===i.type),n.Ab(1),n.kc("ngIf","EMBEDDED_GROUP_APPLICATION"===i.type)}}function $(t,e){1&t&&n.Nb(0,"th",20)}function tt(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",82),n.Zb("click",(function(){n.xc(i);var t=n.dc().$implicit;return n.dc(2).openManagingGroups(t)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"supervised_user_circle"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function et(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,tt,4,3,"button",81),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngIf","EMBEDDED_GROUP_APPLICATION"===i.type&&!i.forDelete)}}function it(t,e){1&t&&n.Nb(0,"th",20)}function nt(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",85),n.Zb("click",(function(){n.xc(i);var t=n.dc().$implicit;return n.dc(2).edit(t)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"edit"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function rt(t,e){1&t&&(n.Sb(0,"div",86),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function at(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,nt,4,3,"button",83),n.Hc(2,rt,3,3,"div",84),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngIf",!i.forDelete),n.Ab(1),n.kc("ngIf",i.forDelete)}}function ot(t,e){1&t&&n.Nb(0,"th",20)}function st(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",88),n.Zb("click",(function(){n.xc(i);var t=n.dc().$implicit;return n.dc(2).delete(t)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"delete"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}function ct(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",82),n.Zb("click",(function(){n.xc(i);var t=n.dc().$implicit;return n.dc(2).restore(t)})),n.ec(1,"translate"),n.Sb(2,"mat-icon"),n.Jc(3,"settings_backup_restore"),n.Rb(),n.Rb()}2&t&&n.lc("matTooltip",n.fc(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function ut(t,e){if(1&t&&(n.Sb(0,"td",21),n.Hc(1,st,4,3,"button",87),n.Hc(2,ct,4,3,"button",81),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngIf",!i.forDelete),n.Ab(1),n.kc("ngIf",i.forDelete)}}function lt(t,e){1&t&&n.Nb(0,"tr",89)}function ht(t,e){if(1&t&&n.Nb(0,"tr",90),2&t){var i=e.$implicit,r=n.dc(2);n.Eb("make-green",i.id<=0)("make-red",i.forDelete)("make-yellow",-1!=r.itemsChanged.indexOf(i.id)&&!i.forDelete&&i.id>0),n.kc("cdkDragData",i)}}function dt(t,e){if(1&t){var i=n.Tb();n.Sb(0,"div",4),n.Sb(1,"div",5),n.Sb(2,"div",6),n.Sb(3,"table",7,8),n.Zb("cdkDropListDropped",(function(t){return n.xc(i),n.dc().drop(t)})),n.Qb(5,9),n.Hc(6,R,1,0,"th",10),n.Hc(7,C,4,0,"td",11),n.Pb(),n.Qb(8,12),n.Hc(9,T,3,3,"th",10),n.Hc(10,I,2,1,"td",11),n.Pb(),n.Qb(11,13),n.Hc(12,O,3,3,"th",10),n.Hc(13,D,3,3,"td",11),n.Pb(),n.Qb(14,14),n.Hc(15,M,3,3,"th",10),n.Hc(16,Q,15,14,"td",11),n.Pb(),n.Qb(17,15),n.Hc(18,$,1,0,"th",10),n.Hc(19,et,2,1,"td",11),n.Pb(),n.Qb(20,16),n.Hc(21,it,1,0,"th",10),n.Hc(22,at,3,2,"td",11),n.Pb(),n.Qb(23,17),n.Hc(24,ot,1,0,"th",10),n.Hc(25,ut,3,2,"td",11),n.Pb(),n.Hc(26,lt,1,0,"tr",18),n.Hc(27,ht,1,7,"tr",19),n.Rb(),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(3),n.kc("cdkDropListDisabled",r.dragDisabled)("dataSource",r.dataSource),n.Ab(23),n.kc("matHeaderRowDef",r.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",r.displayedColumns)}}function ft(t,e){1&t&&(n.Sb(0,"app-alert",91),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}var pt=function(){var t=function(){function t(e,i,r,a){g(this,t),this.dialog=e,this.notificator=i,this.router=r,this.translate=a,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.o,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}return m(t,[{key:"ngOnChanges",value:function(t){this.dataSource=this.applicationFormItems}},{key:"edit",value:function(t){var e=this,i=Object(c.o)();i.width="600px",i.height="600px",i.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(s.a,i).afterClosed().subscribe((function(i){i&&(e.itemsChanged.push(t.id),e.applicationFormItemsChange.emit())}))}},{key:"delete",value:function(t){var e=this,i=Object(c.o)();i.width="500px",this.dialog.open(a.a,i).afterClosed().subscribe((function(i){i&&(t.forDelete=!0,0===t.id&&(e.applicationFormItems.splice(e.applicationFormItems.indexOf(t),1),e.table.renderRows()),e.applicationFormItemsChange.emit())}))}},{key:"drop",value:function(t){this.dragDisabled=!0;var e=this.applicationFormItems.indexOf(t.item.data);Object(r.h)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.translate.getDefaultLang()]){var e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){var i,n=[],r=d(e.split("|"));try{for(r.s();!(i=r.n()).done;){var a=i.value;n.push(a.split("#")[1])}}catch(o){r.e(o)}finally{r.f()}return n}}return[]}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}},{key:"restore",value:function(t){t.forDelete=!1}},{key:"openManagingGroups",value:function(t){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.b),n.Mb(o.l),n.Mb(l.f),n.Mb(h.e))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){var i;1&t&&n.Qc(k,!0),2&t&&n.sc(i=n.ac())&&(e.table=i.first)},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.yb],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","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"],[4,"ngIf"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.Hc(0,E,1,0,"mat-spinner",0),n.Hc(1,dt,28,4,"div",1),n.Hc(2,ft,3,3,"app-alert",2)),2&t&&(n.kc("ngIf",e.loading),n.Ab(1),n.kc("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.Ab(1),n.kc("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[f.t,p.c,b.n,r.e,b.c,b.i,b.b,b.k,b.m,b.h,b.a,v.b,y.a,A.H,A.s,A.t,f.s,A.w,A.G,A.D,A.r,A.u,w.a,b.j,b.l,r.a,_.a],pipes:[h.d,S.a],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t}()},OF3q:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("nIj0"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("csyo"),h=i("29Wa"),d=i("Cd2c"),f=i("PBFl"),p=i("+Tre"),b=i("ABWF");function v(t,e){1&t&&s.Nb(0,"mat-spinner",3)}function y(t,e){if(1&t){var i=s.Tb();s.Sb(0,"mat-checkbox",13),s.Zb("click",(function(){return s.xc(i),s.dc(2).loadVoGroups()}))("ngModelChange",(function(t){return s.xc(i),s.dc(2).asSubgroup=t})),s.Jc(1),s.ec(2,"translate"),s.Rb()}if(2&t){var n=s.dc(2);s.kc("labelPosition","before")("ngModel",n.asSubgroup),s.Ab(1),s.Lc(" ",s.fc(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function A(t,e){if(1&t){var i=s.Tb();s.Sb(0,"perun-web-apps-group-search-select",14),s.Zb("groupSelected",(function(t){return s.xc(i),s.dc(2).selectedParent=t})),s.Rb()}if(2&t){var n=s.dc(2);s.kc("disableAutoSelect",!0)("groups",n.voGroups)}}function w(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"div",4),s.Sb(2,"mat-form-field"),s.Sb(3,"label",5),s.Nb(4,"input",6),s.ec(5,"translate"),s.Rb(),s.Sb(6,"mat-error"),s.Jc(7),s.ec(8,"translate"),s.Rb(),s.Rb(),s.Sb(9,"mat-form-field",7),s.Sb(10,"label",5),s.Nb(11,"textarea",6),s.ec(12,"translate"),s.Rb(),s.Sb(13,"mat-error"),s.Jc(14),s.ec(15,"translate"),s.Rb(),s.Rb(),s.Hc(16,y,3,5,"mat-checkbox",8),s.Hc(17,A,1,2,"perun-web-apps-group-search-select",9),s.Rb(),s.Sb(18,"div",10),s.Sb(19,"button",11),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(20),s.ec(21,"translate"),s.Rb(),s.Sb(22,"button",12),s.Zb("click",(function(){return s.xc(i),s.dc().onSubmit()})),s.Jc(23),s.ec(24,"translate"),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(4),s.lc("placeholder",s.fc(5,11,"DIALOGS.CREATE_GROUP.NAME")),s.kc("formControl",n.nameControl),s.Ab(3),s.Lc(" ",n.invalidNameMessage.length?n.invalidNameMessage:s.fc(8,13,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),s.Ab(4),s.lc("placeholder",s.fc(12,15,"DIALOGS.CREATE_GROUP.DESCRIPTION")),s.kc("formControl",n.descriptionControl),s.Ab(3),s.Lc(" ",s.fc(15,17,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),s.Ab(2),s.kc("ngIf",n.isNotSubGroup),s.Ab(1),s.kc("ngIf",n.asSubgroup),s.Ab(3),s.Lc(" ",s.fc(21,19,"DIALOGS.CREATE_GROUP.CANCEL")," "),s.Ab(2),s.kc("disabled",n.nameControl.invalid||n.descriptionControl.invalid||n.asSubgroup&&null===n.selectedParent||n.loading),s.Ab(1),s.Lc(" ",s.fc(24,21,"DIALOGS.CREATE_GROUP.CREATE")," ")}}var _=function(){var t=function(){function t(e,i,n,r,a,o){var s=this;g(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.translate=r,this.notificator=a,this.store=o,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.voGroups=[],this.nameFunction=function(t){return t.name},this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?r.get("DIALOGS.CREATE_GROUP.TITLE").subscribe((function(t){return s.title=t})):r.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe((function(t){s.title=t+s.data.parentGroup.name})),r.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe((function(t){return s.successMessage=t})),r.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe((function(t){return s.successSubGroupMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new o.g("",[o.F.required,o.F.pattern(this.secondaryRegex?this.secondaryRegex:""),o.F.pattern(".*[\\S]+.*")]),this.descriptionControl=new o.g("",[o.F.required,o.F.maxLength(129)]),this.selectedParent=null}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe((function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1})):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe((function(){t.notificator.showSuccess(t.successSubGroupMessage),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"loadVoGroups",value:function(){var t=this;this.groupService.getAllGroups(this.data.voId).subscribe((function(e){t.voGroups=e.filter((function(t){return"members"!==t.name}))}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.h),s.Mb(c.e),s.Mb(r.l),s.Mb(r.m))},t.\u0275cmp=s.Gb({type:t,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","","required","",3,"formControl","placeholder"],[1,"mt-4"],[3,"labelPosition","ngModel","click","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",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,"labelPosition","ngModel","click","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.Rb(),s.Sb(2,"div"),s.Hc(3,v,1,0,"mat-spinner",1),s.Hc(4,w,25,23,"div",2),s.Rb()),2&t&&(s.Ab(1),s.Kc(e.title),s.Ab(1),s.Cb(e.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading))},directives:[n.j,u.t,l.c,n.g,h.c,d.b,o.c,o.C,o.r,o.h,h.b,n.c,f.b,p.a,o.u,b.a],pipes:[c.d],styles:[""]}),t}()},OIgT:function(t,e,i){"use strict";e.decode=e.parse=i("wOqL"),e.encode=e.stringify=i("f8+N")},OL2r:function(t,e,i){"use strict";i.d(e,"a",(function(){return x}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("FlRo"),s=i("8clQ"),c=i("+0js"),u=i("2kYt"),l=i("EM62"),h=i("s2Ay"),d=i("PBFl"),f=i("csyo"),p=i("bFHC"),b=i("Y2X+"),v=i("j+u3");function y(t,e){1&t&&l.Nb(0,"mat-spinner",6)}function A(t,e){1&t&&(l.Sb(0,"th",17),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")))}function w(t,e){if(1&t&&(l.Sb(0,"td",18),l.Jc(1),l.Rb()),2&t){var i=e.$implicit;l.Ab(1),l.Lc(" ",i.user.id," ")}}function _(t,e){1&t&&(l.Sb(0,"th",17),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")))}function S(t,e){if(1&t&&(l.Sb(0,"td",18),l.Jc(1),l.ec(2,"userFullName"),l.Rb()),2&t){var i=e.$implicit;l.Ab(1),l.Lc(" ",l.fc(2,1,i.user)," ")}}function k(t,e){1&t&&(l.Sb(0,"th",17),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")))}function E(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",20),l.Zb("click",(function(){l.xc(i);var t=l.dc().$implicit;return l.dc(2).changeExpiration(t)})),l.Sb(1,"mat-icon"),l.Jc(2," today "),l.Rb(),l.Rb()}}function R(t,e){if(1&t&&(l.Sb(0,"td",18),l.Sb(1,"span"),l.Jc(2),l.Rb(),l.Hc(3,E,3,0,"button",19),l.Rb()),2&t){var i=e.$implicit,n=l.dc(2);l.Ab(2),l.Kc(n.parseDate(i.validityTo)),l.Ab(1),l.kc("ngIf",n.isExpirationAuthorized(i))}}function C(t,e){1&t&&l.Nb(0,"th",17)}function T(t,e){1&t&&(l.Sb(0,"mat-icon",25),l.Jc(1,"clear"),l.Rb())}function I(t,e){1&t&&(l.Sb(0,"mat-icon"),l.Jc(1,"settings_backup_restore"),l.Rb())}function O(t,e){if(1&t){var i=l.Tb();l.Sb(0,"td",18),l.Sb(1,"div",21),l.ec(2,"translate"),l.Sb(3,"button",22),l.Zb("click",(function(){l.xc(i);var t=e.$implicit;return l.dc(2).markSponsor(t)})),l.Hc(4,T,2,0,"mat-icon",23),l.Hc(5,I,2,0,"mat-icon",24),l.Rb(),l.Rb(),l.Rb()}if(2&t){var n=e.$implicit,r=l.dc(2);l.Ab(1),l.lc("matTooltip",l.fc(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),l.kc("matTooltipPosition","above")("matTooltipDisabled",r.isRemoveAuthorized(n)),l.Ab(2),l.kc("disabled",!r.isRemoveAuthorized(n)),l.Ab(1),l.kc("ngIf",!r.sponsorsToRemove.has(n.user.id)),l.Ab(1),l.kc("ngIf",r.sponsorsToRemove.has(n.user.id))}}function D(t,e){1&t&&l.Nb(0,"tr",26)}function M(t,e){if(1&t&&l.Nb(0,"tr",27),2&t){var i=e.$implicit,n=l.dc(2);l.Eb("make-red",n.sponsorsToRemove.has(i.user.id))}}function P(t,e){if(1&t&&(l.Sb(0,"div",7),l.Sb(1,"table",8),l.Qb(2,9),l.Hc(3,A,3,3,"th",10),l.Hc(4,w,2,1,"td",11),l.Pb(),l.Qb(5,12),l.Hc(6,_,3,3,"th",10),l.Hc(7,S,3,3,"td",11),l.Pb(),l.Qb(8,13),l.Hc(9,k,3,3,"th",10),l.Hc(10,R,4,2,"td",11),l.Pb(),l.Qb(11,14),l.Hc(12,C,1,0,"th",10),l.Hc(13,O,6,8,"td",11),l.Pb(),l.Hc(14,D,1,0,"tr",15),l.Hc(15,M,1,2,"tr",16),l.Rb(),l.Rb()),2&t){var i=l.dc();l.Ab(1),l.kc("dataSource",i.dataSource),l.Ab(13),l.kc("matHeaderRowDef",i.displayedColumns),l.Ab(1),l.kc("matRowDefColumns",i.displayedColumns)}}var x=function(){var t=function(){function t(e,i,n,r,a,o,s,c){g(this,t),this.dialogRef=e,this.data=i,this.memberService=n,this.userService=r,this.notificator=a,this.authResolver=o,this.translate=s,this.dialog=c,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new o.o(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}},{key:"markSponsor",value:function(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}},{key:"removeSponsors",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);var i=t.pop();this.memberService.removeSponsor(this.data.member.id,i).subscribe((function(){e.removeSponsors(t)}),(function(){return e.loading=!1}))}},{key:"onSubmit",value:function(){this.loading=!0;var t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"isRemoveAuthorized",value:function(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}},{key:"isExpirationAuthorized",value:function(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}},{key:"parseDate",value:function(t){return null===t?"Never expire":Object(u.I)(t,"d.M.y","en")}},{key:"changeExpiration",value:function(t){var e=this,i=Object(s.o)();i.width="400px",i.data={memberId:this.data.member.id,sponsor:t,mode:"sponsor"},this.dialog.open(c.d,i).afterClosed().subscribe((function(t){t&&(e.loading=!0,e.userService.getSponsorsForMember(e.data.member.id,[]).subscribe((function(t){e.sponsors=t,e.dataSource=new o.o(e.sponsors),e.loading=!1})))}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(r.i),l.Mb(r.a),l.Mb(n.i),l.Mb(n.p),l.Mb(a.l),l.Mb(a.h),l.Mb(h.e),l.Mb(r.b))},t.\u0275cmp=l.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Sb(3,"div"),l.Hc(4,y,1,0,"mat-spinner",1),l.Hc(5,P,16,3,"div",2),l.Sb(6,"div",3),l.Sb(7,"button",4),l.Zb("click",(function(){return e.onCancel()})),l.Jc(8),l.ec(9,"translate"),l.Rb(),l.Sb(10,"button",5),l.Zb("click",(function(){return e.onSubmit()})),l.Jc(11),l.ec(12,"translate"),l.Rb(),l.Rb(),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),l.Ab(2),l.Cb(e.theme),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(3),l.Lc(" ",l.fc(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL"),""),l.Ab(2),l.kc("disabled",e.loading||0===e.sponsorsToRemove.size),l.Ab(1),l.Lc(" ",l.fc(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT"),""))},directives:[r.j,u.t,r.c,d.b,f.c,r.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,p.a,b.a,o.j,o.l],pipes:[h.d,v.a],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t}()},OZ4H:function(t,e,i){"use strict";i.d(e,"a",(function(){return I})),i.d(e,"b",(function(){return P})),i.d(e,"c",(function(){return z})),i.d(e,"d",(function(){return N})),i.d(e,"e",(function(){return S})),i.d(e,"f",(function(){return R})),i.d(e,"g",(function(){return F})),i.d(e,"h",(function(){return B})),i.d(e,"i",(function(){return T})),i.d(e,"j",(function(){return L}));var n=i("HYj3"),r=i("Sv/w"),o=i("EM62"),c=i("mFH5"),u=i("E5oP"),l=i("2kYt"),h=i("ZTXN"),d=i("i9xl"),f=i("ROBh"),p=i("xVbo"),b=i("J+dc"),v=i("jIqt"),y=i("f7+R"),A=i("fAiE"),w=i("sg/T");function _(t,e){}var S=function t(){g(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},k={dialogContainer:Object(y.n)("dialogContainer",[Object(y.k)("void, exit",Object(y.l)({opacity:0,transform:"scale(0.7)"})),Object(y.k)("enter",Object(y.l)({transform:"none"})),Object(y.m)("* => enter",Object(y.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(y.l)({transform:"none",opacity:1}))),Object(y.m)("* => void, * => exit",Object(y.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(y.l)({opacity:0})))])};function E(){throw Error("Attempting to attach dialog content after content is already attached")}var R=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,s){var c;return g(this,i),(c=e.call(this))._elementRef=t,c._focusTrapFactory=n,c._changeDetectorRef=r,c._config=s,c._elementFocusedBeforeDialogWasOpened=null,c._state="enter",c._animationStateChanged=new o.o,c.attachDomPortal=function(t){return c._portalOutlet.hasAttached()&&E(),c._setupFocusTrap(),c._portalOutlet.attachDomPortal(t)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=a,c}return m(i,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&E(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&E(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._focusTrap.focusInitialElement()||this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){var t=this;this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"_onAnimationDone",value:function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}},{key:"_onAnimationStart",value:function(t){this._animationStateChanged.emit(t)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(r.a);return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.l),o.Mb(w.i),o.Mb(o.h),o.Mb(l.e,8),o.Mb(S))},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&o.Dc(r.c,!0),2&t&&o.sc(i=o.ac())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.Fc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(o.Bb("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.Gc("@dialogContainer",e._state))},features:[o.xb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.Hc(0,_,0,0,"ng-template",0)},directives:[r.c],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[k.dialogContainer]}}),t}(),C=0,T=function(){function t(e,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+C++;g(this,t),this._overlayRef=e,this._containerInstance=i,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new h.a,this._afterClosed=new h.a,this._beforeClosed=new h.a,this._state=0,i._id=r,i._animationStateChanged.pipe(Object(p.a)((function(t){return"done"===t.phaseName&&"enter"===t.toState})),Object(b.a)(1)).subscribe((function(){n._afterOpened.next(),n._afterOpened.complete()})),i._animationStateChanged.pipe(Object(p.a)((function(t){return"done"===t.phaseName&&"exit"===t.toState})),Object(b.a)(1)).subscribe((function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()})),e.detachments().subscribe((function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()})),e.keydownEvents().pipe(Object(p.a)((function(t){return t.keyCode===A.h&&!n.disableClose&&!Object(A.t)(t)}))).subscribe((function(t){t.preventDefault(),n.close()})),e.backdropClick().subscribe((function(){n.disableClose?n._containerInstance._recaptureFocus():n.close()}))}return m(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Object(p.a)((function(t){return"start"===t.phaseName})),Object(b.a)(1)).subscribe((function(i){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){return e._finishDialogClose()}),i.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}(),I=new o.r("MatDialogData"),O=new o.r("mat-dialog-default-options"),D=new o.r("mat-dialog-scroll-strategy"),M={provide:D,deps:[n.c],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},P=function(){var t=function(){function t(e,i,n,r,a,o,s){var c=this;g(this,t),this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new h.a,this._afterOpenedAtThisLevel=new h.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(d.a)((function(){return c.openDialogs.length?c._afterAllClosed:c._afterAllClosed.pipe(Object(v.a)(void 0))})),this._scrollStrategy=a}return m(t,[{key:"open",value:function(t,e){var i=this;if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new S)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'.concat(e.id,'" exists already. The dialog id must be unique.'));var n=this._createOverlay(e),r=this._attachDialogContainer(n,e),a=this._attachDialogContent(t,r,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return i._removeOpenDialog(a)})),this.afterOpened.next(a),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find((function(e){return e.id===t}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new n.d({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var i=o.s.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:S,useValue:e}]}),n=new r.d(R,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}},{key:"_attachDialogContent",value:function(t,e,i,n){var a=new T(i,e,n.id);if(t instanceof o.M)e.attachTemplatePortal(new r.j(t,null,{$implicit:n.data,dialogRef:a}));else{var s=this._createInjector(n,a,e),c=e.attachComponentPortal(new r.d(t,n.viewContainerRef,s));a.componentInstance=c.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}},{key:"_createInjector",value:function(t,e,i){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:R,useValue:i},{provide:I,useValue:t.data},{provide:T,useValue:e}];return!t.direction||n&&n.get(u.c,null)||r.push({provide:u.c,useValue:{value:t.direction,change:Object(f.a)()}}),o.s.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,i=e.length-1;i>-1;i--){var n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Wb(n.c),o.Wb(o.s),o.Wb(l.n,8),o.Wb(O,8),o.Wb(D),o.Wb(t,12),o.Wb(n.e))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t}(),x=0,N=function(){var t=function(){function t(e,i,n){g(this,t),this.dialogRef=e,this._elementRef=i,this._dialog=n,this.type="button"}return m(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=H(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(T,8),o.Mb(o.l),o.Mb(P))},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&o.Zb("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&o.Bb("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.yb]}),t}(),L=function(){var t=function(){function t(e,i,n){g(this,t),this._dialogRef=e,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-"+x++}return m(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=H(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(T,8),o.Mb(o.l),o.Mb(P))},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Vb("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),F=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),z=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Hb({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function H(t,e){for(var i=t.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find((function(t){return t.id===i.id})):null}var B=function(){var t=function t(){g(this,t)};return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[P,M],imports:[[n.f,r.i,c.i],c.i]}),t}()},OcHD:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t){var e=t.attributes.find((function(t){return"groupMembershipExpiration"===t.baseFriendlyName}));return e&&e.value?e.value:"Never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"groupExpiration",type:t,pure:!0}),t}()},Ohay:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("5uGe");function r(t,e){return function(i){return i.lift(new o(t,e))}}var o=function(){function t(e,i){g(this,t),this.compare=e,this.keySelector=i}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))}}]),t}(),c=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t)).keySelector=r,a.hasKey=!1,"function"==typeof n&&(a.compare=n),a}return m(i,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var i=this.keySelector;e=i?i(t):t}catch(r){return this.destination.error(r)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}]),i}(n.a)},P2UU:function(t,e,i){"use strict";i.d(e,"a",(function(){return S}));var n=i("Ssnw"),r=i("X2Q7"),a=i("nIj0"),o=i("EM62"),s=i("OZ4H"),c=i("s2Ay"),u=i("2kYt"),l=i("csyo"),h=i("29Wa"),d=i("Cd2c"),f=i("R7+U"),p=i("mFH5"),b=i("PBFl"),v=i("Y2X+");function y(t,e){1&t&&o.Nb(0,"mat-spinner",4)}function A(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function w(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Lc(" ",o.fc(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function _(t,e){if(1&t){var i=o.Tb();o.Sb(0,"div"),o.Sb(1,"div",5),o.Sb(2,"mat-form-field"),o.Nb(3,"input",6),o.ec(4,"translate"),o.Sb(5,"mat-error"),o.Jc(6),o.ec(7,"translate"),o.Rb(),o.Rb(),o.Sb(8,"mat-form-field"),o.Nb(9,"input",6),o.ec(10,"translate"),o.Hc(11,A,3,3,"mat-error",3),o.Hc(12,w,3,3,"mat-error",3),o.Rb(),o.Sb(13,"mat-form-field"),o.Sb(14,"mat-select",7),o.Zb("valueChange",(function(t){return o.xc(i),o.dc().type=t})),o.Sb(15,"mat-option",8),o.Jc(16),o.ec(17,"translate"),o.Rb(),o.Sb(18,"mat-option",9),o.Jc(19),o.ec(20,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Rb(),o.Sb(21,"div",10),o.Sb(22,"button",11),o.Zb("click",(function(){return o.xc(i),o.dc().onCancel()})),o.Jc(23),o.ec(24,"translate"),o.Rb(),o.Sb(25,"div",12),o.ec(26,"translate"),o.Sb(27,"button",13),o.Zb("click",(function(){return o.xc(i),o.dc().onSubmit()})),o.Jc(28),o.ec(29,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Rb()}if(2&t){var n=o.dc();o.Ab(3),o.lc("placeholder",o.fc(4,15,"DIALOGS.ADD_OWNER.NAME")),o.kc("formControl",n.nameCtrl),o.Ab(3),o.Lc(" ",o.fc(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),o.Ab(3),o.lc("placeholder",o.fc(10,19,"DIALOGS.ADD_OWNER.CONTACT")),o.kc("formControl",n.contactCtrl),o.Ab(2),o.kc("ngIf",n.contactCtrl.hasError("required")),o.Ab(1),o.kc("ngIf",n.contactCtrl.invalid&&!n.contactCtrl.hasError("required")),o.Ab(2),o.kc("value",n.type),o.Ab(2),o.Kc(o.fc(17,21,"DIALOGS.ADD_OWNER.TYPE1")),o.Ab(3),o.Kc(o.fc(20,23,"DIALOGS.ADD_OWNER.TYPE2")),o.Ab(4),o.Lc(" ",o.fc(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),o.Ab(2),o.lc("matTooltip",o.fc(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),o.kc("matTooltipDisabled",n.nameCtrl.valid&&n.contactCtrl.valid),o.Ab(2),o.kc("disabled",n.nameCtrl.invalid||n.contactCtrl.invalid),o.Ab(1),o.Lc(" ",o.fc(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}var S=function(){var t=function(){function t(e,i,n,r){var a=this;g(this,t),this.dialogRef=e,this.notificator=i,this.ownersManagerService=n,this.translate=r,this.type="1",this.emailRegex=/^(([^<>+()\[\]\\.,;:\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]{2,3}))$/,r.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe((function(t){return a.successMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){this.nameCtrl=new a.g(null,[a.F.required,a.F.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new a.g(null,[a.F.required,a.F.pattern(this.emailRegex)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number.parseInt(this.type,10)}).subscribe((function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(s.i),o.Mb(n.l),o.Mb(r.j),o.Mb(c.e))},t.\u0275cmp=o.Gb({type:t,selectors:[["app-add-owner-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"],[3,"value","valueChange"],["value","1"],["value","0"],["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(t,e){1&t&&(o.Sb(0,"div",0),o.Sb(1,"h1",1),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Hc(4,y,1,0,"mat-spinner",2),o.Hc(5,_,30,31,"div",3),o.Rb()),2&t&&(o.Ab(2),o.Kc(o.fc(3,3,"DIALOGS.ADD_OWNER.TITLE")),o.Ab(2),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading))},directives:[s.j,u.t,l.c,s.g,h.c,d.b,a.c,a.C,a.r,a.h,h.b,f.a,p.n,s.c,b.b,v.a],pipes:[c.d],styles:[""]}),t}()},P4Xx:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("IdLP"),a=n("FU6l"),o=n("YtkY"),s=n("X0qr"),c=n("GoAz");function u(){for(var t=arguments.length,e=new Array(t),n=0;n*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n",f=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],p=Object(n.y)(Object(n.A)(Object(n.z)((function t(e){g(this,t),this._elementRef=e})))),b=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;g(this,i),(a=e.call(this,t))._focusMonitor=n,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,s=d(f);try{for(s.s();!(o=s.n()).done;){var c=o.value;a._hasHostAttributes(c)&&a._getHostElement().classList.add(c)}}catch(u){s.e(u)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),a._focusMonitor.monitor(a._elementRef,!0),a.isRoundButton&&(a.color="accent"),a}return m(i,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return e>0?n(h(i.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?n(h(i.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?n(h(i.prototype),"requestAsyncId",this).call(this,t,e,r):t.flush(this)}}]),i}(i("EWqr").a),c=new(function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(i("DG/E").a))(o),u=i("bwdy"),l=i("5uGe"),d=i("ryP2"),f=function(t){a(i,t);var e=s(i);function i(t,n){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(this,i),(r=e.call(this,t)).scheduler=n,r.delay=a,r}return m(i,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new p(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(d.a.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(d.a.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(d.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,i=t.destination;e.observe(i),this.unsubscribe()}}]),i}(l.a),p=function t(e,i){g(this,t),this.notification=e,this.destination=i},b=i("MiDb"),v=i("yTkW"),y=function(t){a(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return g(this,i),(t=e.call(this)).scheduler=a,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return m(i,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),n(h(i.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new A(this._getNow(),t)),this._trimBufferThenGetEvents(),n(h(i.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,a=n.length;if(this.closed)throw new b.a;if(this.isStopped||this.hasError?e=u.a.EMPTY:(this.observers.push(t),e=new v.a(this,t)),r&&t.add(t=new f(t,r)),i)for(var o=0;oe&&(a=Math.max(a,r-e)),a>0&&n.splice(0,a),n}}]),i}(r.a),A=function t(e,i){g(this,t),this.time=e,this.value=i}},QcI7:function(t,e,i){"use strict";i.d(e,"a",(function(){return _})),i.d(e,"b",(function(){return R})),i.d(e,"c",(function(){return M})),i.d(e,"d",(function(){return D})),i.d(e,"e",(function(){return O})),i.d(e,"f",(function(){return y})),i.d(e,"g",(function(){return A})),i.d(e,"h",(function(){return E})),i.d(e,"i",(function(){return S})),i.d(e,"j",(function(){return T}));var r=i("seVz"),o=i("mFH5"),c=i("5XID"),u=i("cqs0"),l=i("C05f"),d=i("g6G6"),f=i("J+dc"),p=i("YtkY"),b=i("EM62"),v=Object(o.D)(Object(o.A)(r.e)),y=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t,n))._elementRef=t,a._tree=n,a.role="treeitem",a.tabIndex=Number(r)||0,a}return i}(v);return t.\u0275fac=function(e){return new(e||t)(b.Mb(b.l),b.Mb(r.c),b.Xb("tabindex"))},t.\u0275dir=b.Hb({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:3,hostBindings:function(t,e){2&t&&b.Bb("aria-expanded",e.isExpanded)("aria-level","treeitem"===e.role?e.level:null)("role",e.role)},inputs:{disabled:"disabled",tabIndex:"tabIndex",role:"role"},exportAs:["matTreeNode"],features:[b.zb([{provide:r.e,useExisting:t}]),b.xb]}),t}(),A=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(r.f);return t.\u0275fac=function(e){return w(e||t)},t.\u0275dir=b.Hb({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[b.zb([{provide:r.f,useExisting:t}]),b.xb]}),t}(),w=b.Ub(A),_=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,t,n,r))._elementRef=t,o._tree=n,o._differs=r,o._disabled=!1,o.tabIndex=Number(a)||0,o}return m(i,[{key:"ngAfterContentInit",value:function(){n(h(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(c.c)(t)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:0}}]),i}(r.b);return t.\u0275fac=function(e){return new(e||t)(b.Mb(b.l),b.Mb(r.c),b.Mb(b.t),b.Xb("tabindex"))},t.\u0275dir=b.Hb({type:t,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],hostVars:2,hostBindings:function(t,e){2&t&&b.Bb("aria-expanded",e.isExpanded)("role",e.role)},inputs:{tabIndex:"tabIndex",disabled:"disabled",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[b.zb([{provide:r.b,useExisting:t},{provide:r.e,useExisting:t},{provide:r.a,useExisting:t}]),b.xb]}),t}(),S=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(r.h);return t.\u0275fac=function(e){return k(e||t)},t.\u0275dir=b.Hb({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[b.zb([{provide:r.h,useExisting:t}]),b.xb]}),t}(),k=b.Ub(S),E=function(){var t=function t(e,i){g(this,t),this.viewContainer=e,this._node=i};return t.\u0275fac=function(e){return new(e||t)(b.Mb(b.Q),b.Mb(r.a,8))},t.\u0275dir=b.Hb({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[b.zb([{provide:r.g,useExisting:t}])]}),t}(),R=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(r.c);return t.\u0275fac=function(e){return C(e||t)},t.\u0275cmp=b.Gb({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){var i;1&t&&b.Dc(E,!0),2&t&&b.sc(i=b.ac())&&(e._nodeOutlet=i.first)},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[b.zb([{provide:r.c,useExisting:t}]),b.xb],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&b.Ob(0,0)},directives:[E],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t}(),C=b.Ub(R),T=function(){var t=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments)).recursive=!1,t}return i}(r.i);return t.\u0275fac=function(e){return I(e||t)},t.\u0275dir=b.Hb({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[b.zb([{provide:r.i,useExisting:t}]),b.xb]}),t}(),I=b.Ub(T),O=function(){var t=function t(){g(this,t)};return t.\u0275mod=b.Kb({type:t}),t.\u0275inj=b.Jb({factory:function(e){return new(e||t)},imports:[[r.d,o.i],o.i]}),t}(),D=function(){function t(e,i,n,r){g(this,t),this.transformFunction=e,this.getLevel=i,this.isExpandable=n,this.getChildren=r}return m(t,[{key:"_flattenNode",value:function(t,e,i,n){var r=this,a=this.transformFunction(t,e);if(i.push(a),this.isExpandable(a)){var o=this.getChildren(t);o&&(Array.isArray(o)?this._flattenChildren(o,e,i,n):o.pipe(Object(f.a)(1)).subscribe((function(t){r._flattenChildren(t,e,i,n)})))}return i}},{key:"_flattenChildren",value:function(t,e,i,n){var r=this;t.forEach((function(a,o){var s=n.slice();s.push(o!=t.length-1),r._flattenNode(a,e+1,i,s)}))}},{key:"flattenNodes",value:function(t){var e=this,i=[];return t.forEach((function(t){return e._flattenNode(t,0,i,[])})),i}},{key:"expandFlattenedNodes",value:function(t,e){var i=this,n=[],r=[];return r[0]=!0,t.forEach((function(t){for(var a=!0,o=0;o<=i.getLevel(t);o++)a=a&&r[o];a&&n.push(t),i.isExpandable(t)&&(r[i.getLevel(t)+1]=e.isExpanded(t))})),n}}]),t}(),M=function(t){a(i,t);var e=s(i);function i(t,n){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return g(this,i),(r=e.call(this))._treeControl=t,r._treeFlattener=n,r._flattenedData=new l.a([]),r._expandedData=new l.a([]),r._data=new l.a(a),r}return m(i,[{key:"connect",value:function(t){var e=this,i=[t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData];return Object(d.a).apply(void 0,i).pipe(Object(p.a)((function(){return e._expandedData.next(e._treeFlattener.expandFlattenedNodes(e._flattenedData.value,e._treeControl)),e._expandedData.value})))}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}}]),i}(u.b)},Qgg6:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),r=i("s2Ay"),a=function(){var t=function(){function t(e){g(this,t),this.translateService=e}return m(t,[{key:"transform",value:function(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+t);default:return t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.e))},t.\u0275pipe=n.Lb({name:"applicationFormItemHidden",type:t,pure:!0}),t}()},Qu9H:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),r=i("X2Q7"),a=i("cqs0"),o=i("iyZ4"),s=i("EM62"),c=i("2kYt"),u=i("PBFl"),l=i("csyo"),h=i("pynj"),d=i("K9kF"),f=i("s2Ay");function p(t,e){1&t&&s.Nb(0,"mat-spinner",6)}var b=function(){return["recent","vo","expiration","menu"]};function v(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",7),s.Sb(1,"perun-web-apps-debounce-filter",8),s.Zb("filter",(function(t){return s.xc(i),s.dc().applyFilter(t)})),s.ec(2,"translate"),s.Rb(),s.Sb(3,"perun-web-apps-groups-list",9),s.Zb("page",(function(t){return s.xc(i),s.dc().pageChanged(t)})),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(1),s.lc("placeholder",s.fc(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),s.Ab(2),s.kc("pageSize",n.pageSize)("groups",n.unAssignedGroups)("selection",n.selection)("filter",n.filterValue)("hideColumns",s.oc(10,b))("disableRouting",!0)("disableMembers",!0)}}var y=function(){var t=function(){function t(e,i,n,r){g(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.tableConfigService=r,this.loading=!1,this.selection=new a.c(!0,[]),this.filterValue="",this.tableId=o.e}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe((function(e){t.unAssignedGroups=e.filter((function(e){return t.data.assignedGroups.indexOf(e.id)<=-1})),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){var t=this;this.loading=!0,this.groupService.addGroupsToAutoRegistration(this.selection.selected.map((function(t){return t.id}))).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(r.h),s.Mb(o.pb))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","hideColumns","disableRouting","disableMembers","page"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,p,1,0,"mat-spinner",1),s.Hc(5,v,4,11,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onAdd()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),s.Ab(2),s.kc("disabled",0===e.selection.selected.length||e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},directives:[n.j,c.t,n.c,u.b,l.c,n.g,h.a,d.a],pipes:[f.d],styles:[""]}),t}()},R0qJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),r=i("X2Q7"),a=i("cqs0"),o=i("Ssnw"),s=i("iyZ4"),c=i("EM62"),u=i("s2Ay"),l=i("A8Ay"),h=i("2kYt"),d=i("PBFl"),f=i("csyo"),p=i("ZWyU");function b(t,e){1&t&&c.Nb(0,"mat-spinner",8)}function v(t,e){if(1&t){var i=c.Tb();c.Sb(0,"div",9),c.Sb(1,"app-ext-sources-list",10),c.Zb("page",(function(t){return c.xc(i),c.dc().pageChanged(t)})),c.Rb(),c.Rb()}if(2&t){var n=c.dc();c.Ab(1),c.kc("pageSize",n.pageSize)("extSources",n.extSources)("filterValue",n.filterValue)("selection",n.selection)}}var y=function(){var t=function(){function t(e,i,n,r,o,c){g(this,t),this.dialogRef=e,this.data=i,this.extSourceService=n,this.notificator=r,this.tableConfigService=o,this.translate=c,this.extSources=[],this.selection=new a.c(!0,[]),this.loading=!1,this.filterValue="",this.tableId=s.d}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe((function(e){t.extSources=e.filter((function(e){return!t.data.extSources.some((function(t){return t.id===e.id}))})),t.loading=!1}),(function(){return t.loading=!1})):this.extSourceService.getExtSources().subscribe((function(e){t.extSources=e.filter((function(e){return!t.data.extSources.some((function(t){return t.id===e.id}))})),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"addVoExtSource",value:function(t){var e=this;if(0!==t.length){var i=t.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,i.id).subscribe((function(i){e.addVoExtSource(t)}),(function(){return e.loading=!1}))}else this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe((function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)}))}},{key:"addGroupExtSource",value:function(t){var e=this;if(0!==t.length){var i=t.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,i.id).subscribe((function(i){e.addGroupExtSource(t)}),(function(){return e.loading=!1}))}else this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe((function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)}))}},{key:"onAdd",value:function(){this.loading=!0,this.data.groupId?this.addGroupExtSource(this.selection.selected):this.addVoExtSource(this.selection.selected)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(r.f),c.Mb(o.l),c.Mb(s.pb),c.Mb(u.e))},t.\u0275cmp=c.Gb({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"pageSize","extSources","filterValue","selection","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"div",0),c.Sb(2,"h1",1),c.Jc(3),c.ec(4,"translate"),c.Rb(),c.Sb(5,"perun-web-apps-immediate-filter",2),c.Zb("filter",(function(t){return e.applyFilter(t)})),c.Rb(),c.Rb(),c.Hc(6,b,1,0,"mat-spinner",3),c.Hc(7,v,2,4,"div",4),c.Sb(8,"div",5),c.Sb(9,"button",6),c.Zb("click",(function(){return e.onCancel()})),c.Jc(10),c.ec(11,"translate"),c.Rb(),c.Sb(12,"button",7),c.Zb("click",(function(){return e.onAdd()})),c.Jc(13),c.ec(14,"translate"),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Cb(e.theme),c.Ab(3),c.Kc(c.fc(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),c.Ab(2),c.kc("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(3),c.Lc(" ",c.fc(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),c.Ab(2),c.kc("disabled",0===e.selection.selected.length||e.loading),c.Ab(1),c.Lc(" ",c.fc(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},directives:[n.j,l.a,h.t,n.c,d.b,f.c,n.g,p.a],pipes:[u.d],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t}()},"R7+U":function(t,e,n){"use strict";n.d(e,"a",(function(){return Y})),n.d(e,"b",(function(){return X})),n.d(e,"c",(function(){return Z})),n.d(e,"d",(function(){return U}));var r=n("HYj3"),o=n("2kYt"),c=n("EM62"),l=n("mFH5"),h=n("29Wa"),d=n("qvOF"),f=n("sg/T"),p=n("5XID"),b=n("cqs0"),v=n("fAiE"),y=n("ZTXN"),A=n("i9xl"),w=n("g6G6"),_=n("jIqt"),S=n("TLy2"),k=n("J+dc"),E=n("xVbo"),R=n("YtkY"),C=n("Ohay"),T=n("kuMc"),I=n("f7+R"),O=n("E5oP"),D=n("nIj0"),M=["trigger"],P=["panel"];function x(t,e){if(1&t&&(c.Sb(0,"span",8),c.Jc(1),c.Rb()),2&t){var i=c.dc();c.Ab(1),c.Kc(i.placeholder||"\xa0")}}function N(t,e){if(1&t&&(c.Sb(0,"span"),c.Jc(1),c.Rb()),2&t){var i=c.dc(2);c.Ab(1),c.Kc(i.triggerValue||"\xa0")}}function L(t,e){1&t&&c.ic(0,0,["*ngSwitchCase","true"])}function F(t,e){if(1&t&&(c.Sb(0,"span",9),c.Hc(1,N,2,1,"span",10),c.Hc(2,L,1,0,"ng-content",11),c.Rb()),2&t){var i=c.dc();c.kc("ngSwitch",!!i.customTrigger),c.Ab(2),c.kc("ngSwitchCase",!0)}}function z(t,e){if(1&t){var i=c.Tb();c.Sb(0,"div",12),c.Sb(1,"div",13,14),c.Zb("@transformPanel.done",(function(t){return c.xc(i),c.dc()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return c.xc(i),c.dc()._handleKeydown(t)})),c.ic(3,1),c.Rb(),c.Rb()}if(2&t){var n=c.dc();c.kc("@transformPanelWrap",void 0),c.Ab(1),c.Db("mat-select-panel ",n._getPanelTheme(),""),c.Ec("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),c.kc("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing"),c.Bb("id",n.id+"-panel")}}var H=[[["mat-select-trigger"]],"*"],B=["mat-select-trigger","*"],j={transformPanelWrap:Object(I.n)("transformPanelWrap",[Object(I.m)("* => void",Object(I.i)("@transformPanel",[Object(I.f)()],{optional:!0}))]),transformPanel:Object(I.n)("transformPanel",[Object(I.k)("void",Object(I.l)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(I.k)("showing",Object(I.l)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(I.k)("showing-multiple",Object(I.l)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(I.m)("void => *",Object(I.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(I.m)("* => void",Object(I.e)("100ms 25ms linear",Object(I.l)({opacity:0})))])},G=0,U=256,K=new c.r("mat-select-scroll-strategy"),V=new c.r("MAT_SELECT_CONFIG"),q={provide:K,deps:[r.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},J=function t(e,i){g(this,t),this.source=e,this.value=i},W=Object(l.z)(Object(l.D)(Object(l.A)(Object(l.B)((function t(e,i,n,r,a){g(this,t),this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=r,this.ngControl=a}))))),Z=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Hb({type:t,selectors:[["mat-select-trigger"]]}),t}(),Y=function(){var t=function(t){a(n,t);var e=s(n);function n(t,r,a,o,s,l,h,d,f,p,b,m,v,C){var T;return g(this,n),(T=e.call(this,s,o,h,d,p))._viewportRuler=t,T._changeDetectorRef=r,T._ngZone=a,T._dir=l,T._parentFormField=f,T.ngControl=p,T._liveAnnouncer=v,T._panelOpen=!1,T._required=!1,T._scrollTop=0,T._multiple=!1,T._compareWith=function(t,e){return t===e},T._uid="mat-select-"+G++,T._destroy=new y.a,T._triggerFontSize=0,T._onChange=function(){},T._onTouched=function(){},T._optionIds="",T._transformOrigin="top",T._panelDoneAnimatingStream=new y.a,T._offsetY=0,T._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],T._disableOptionCentering=!1,T._focused=!1,T.controlType="mat-select",T.ariaLabel="",T.optionSelectionChanges=Object(A.a)((function(){var t=T.options;return t?t.changes.pipe(Object(_.a)(t),Object(S.a)((function(){return Object(w.a).apply(void 0,i(t.map((function(t){return t.onSelectionChange}))))}))):T._ngZone.onStable.asObservable().pipe(Object(k.a)(1),Object(S.a)((function(){return T.optionSelectionChanges})))})),T.openedChange=new c.o,T._openedStream=T.openedChange.pipe(Object(E.a)((function(t){return t})),Object(R.a)((function(){}))),T._closedStream=T.openedChange.pipe(Object(E.a)((function(t){return!t})),Object(R.a)((function(){}))),T.selectionChange=new c.o,T.valueChange=new c.o,T.ngControl&&(T.ngControl.valueAccessor=u(T)),T._scrollStrategyFactory=m,T._scrollStrategy=T._scrollStrategyFactory(),T.tabIndex=parseInt(b)||0,T.id=T.id,C&&(null!=C.disableOptionCentering&&(T.disableOptionCentering=C.disableOptionCentering),null!=C.typeaheadDebounceInterval&&(T.typeaheadDebounceInterval=C.typeaheadDebounceInterval)),T}return m(n,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new b.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(C.a)(),Object(T.a)(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Object(T.a)(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Object(T.a)(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(Object(_.a)(null),Object(T.a)(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Object(k.a)(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.options&&this._setSelectionByValue(t)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,i=e===v.e||e===v.q||e===v.j||e===v.n,n=e===v.g||e===v.o,r=this._keyManager;if(!r.isTyping()&&n&&!Object(v.t)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;e===v.i||e===v.f?(e===v.i?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,i=t.keyCode,n=i===v.e||i===v.q,r=e.isTyping();if(i===v.i||i===v.f)t.preventDefault(),i===v.i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(r||i!==v.g&&i!==v.o||!e.activeItem||Object(v.t)(t))if(!r&&this._multiple&&i===v.a&&t.ctrlKey){t.preventDefault();var a=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(a?t.select():t.deselect())}))}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==o&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this.overlayDir.positionChange.pipe(Object(k.a)(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-"+this._parentFormField.color:""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var i=this._selectValue(t);i?this._keyManager.setActiveItem(i):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,i=this.options.find((function(i){try{return null!=i.value&&e._compareWith(i.value,t)}catch(n){return Object(c.W)()&&console.warn(n),!1}}));return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new f.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(T.a)(this._destroy)).subscribe((function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())})),this._keyManager.change.pipe(Object(T.a)(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var t=this,e=Object(w.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(T.a)(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Object(w.a).apply(void 0,i(this.options.map((function(t){return t._stateChanges})))).pipe(Object(T.a)(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(t,e){var i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(i,n){return t.sortComparator?t.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new J(this,e)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var t=this._keyManager.activeItemIndex||0,e=Object(l.w)(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Object(l.x)(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,U)}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getOptionIndex",value:function(t){return this.options.reduce((function(e,i,n){return void 0!==e?e:t===i?n:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,U),n=e*t-i,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=Object(l.w)(r,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(r,a,n),this._offsetY=this._calculateOverlayOffsetY(r,a,n),this._checkOverlayWithinViewport(n)}},{key:"_calculateOverlayScroll",value:function(t,e,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var a=this._selectionModel.selected[0]||this.options.first;t=a&&a.group?32:16}n||(t*=-1);var o=0-(e.left+t-(n?r:0)),s=e.right+t-i.width+(n?0:r);o>0?t+=o+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,i){var n,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(U/r);return this._disableOptionCentering?0:(n=0===this._scrollTop?t*r:this._scrollTop===i?(t-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-U)%r):e-r/2,Math.round(-1*n-a))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,U)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>n?this._adjustPanelDown(a,n,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,i){var n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=Object(p.c)(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Object(p.c)(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Object(p.c)(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=Object(p.f)(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(W);return t.\u0275fac=function(e){return new(e||t)(c.Mb(d.h),c.Mb(c.h),c.Mb(c.A),c.Mb(l.d),c.Mb(c.l),c.Mb(O.c,8),c.Mb(D.t,8),c.Mb(D.j,8),c.Mb(h.a,8),c.Mb(D.q,10),c.Xb("tabindex"),c.Mb(K),c.Mb(f.k),c.Mb(V,8))},t.\u0275cmp=c.Gb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(c.Fb(i,Z,!0),c.Fb(i,l.n,!0),c.Fb(i,l.m,!0)),2&t&&(c.sc(n=c.ac())&&(e.customTrigger=n.first),c.sc(n=c.ac())&&(e.options=n),c.sc(n=c.ac())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(c.Qc(M,!0),c.Qc(P,!0),c.Qc(r.a,!0)),2&t&&(c.sc(i=c.ac())&&(e.trigger=i.first),c.sc(i=c.ac())&&(e.panel=i.first),c.sc(i=c.ac())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&c.Zb("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(c.Bb("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),c.Eb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[c.zb([{provide:h.d,useExisting:t},{provide:l.g,useExisting:t}]),c.xb,c.yb],ngContentSelectors:B,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(c.jc(H),c.Sb(0,"div",0,1),c.Zb("click",(function(){return e.toggle()})),c.Sb(3,"div",2),c.Hc(4,x,2,1,"span",3),c.Hc(5,F,3,2,"span",4),c.Rb(),c.Sb(6,"div",5),c.Nb(7,"div",6),c.Rb(),c.Rb(),c.Hc(8,z,4,11,"ng-template",7),c.Zb("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var i=c.tc(1);c.Ab(3),c.kc("ngSwitch",e.empty),c.Ab(1),c.kc("ngSwitchCase",!0),c.Ab(1),c.kc("ngSwitchCase",!1),c.Ab(3),c.kc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[r.b,o.x,o.y,r.a,o.z,o.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[j.transformPanelWrap,j.transformPanel]},changeDetection:0}),t}(),X=function(){var t=function t(){g(this,t)};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},providers:[q],imports:[[o.c,r.f,l.o,l.i],d.c,h.e,l.o,l.i]}),t}()},RCwe:function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var r=n("OZ4H"),a=n("X2Q7"),o=n("FlRo"),s=n("cqs0"),c=n("iyZ4"),u=n("Ssnw"),l=n("EM62"),h=n("s2Ay"),d=n("2kYt"),f=n("PBFl"),p=n("csyo"),b=n("+Tre"),v=n("Y2X+"),y=n("23RZ");function A(t,e){1&t&&l.Nb(0,"mat-spinner",6)}function w(t,e){if(1&t){var i=l.Tb();l.Sb(0,"mat-checkbox",13),l.Zb("change",(function(t){return l.xc(i),l.dc(2).change(t)})),l.ec(1,"translate"),l.Jc(2),l.ec(3,"translate"),l.Rb()}if(2&t){var n=l.dc(2);l.lc("matTooltip",l.fc(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),l.kc("matTooltipDisabled",!n.checkboxesDisabled)("disabled",n.checkboxesDisabled)("checked",n.taskChecked),l.Ab(2),l.Lc(" ",l.fc(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function _(t,e){if(1&t){var i=l.Tb();l.Sb(0,"mat-checkbox",14),l.Zb("change",(function(t){return l.xc(i),l.dc(2).change(t)})),l.ec(1,"translate"),l.Jc(2),l.ec(3,"translate"),l.Rb()}if(2&t){var n=l.dc(2);l.lc("matTooltip",l.fc(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),l.kc("matTooltipDisabled",!n.checkboxesDisabled)("disabled",n.checkboxesDisabled)("checked",n.taskResultsChecked),l.Ab(2),l.Lc(" ",l.fc(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function S(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-resources-list",15),l.Zb("allSelected",(function(t){return l.xc(i),l.dc(2).disableCheckboxes(t)}))("page",(function(t){return l.xc(i),l.dc(2).pageChanged(t)})),l.Rb()}if(2&t){var n=l.dc(2);l.kc("pageSize",n.pageSize)("disableRouting",!0)("resources",n.resources)("selection",n.selected)("displayedColumns",n.displayedColumns)}}function k(t,e){if(1&t){var i=l.Tb();l.Sb(0,"div",7),l.Sb(1,"p"),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"div"),l.Hc(5,w,4,9,"mat-checkbox",8),l.Hc(6,_,4,9,"mat-checkbox",9),l.Sb(7,"mat-checkbox",10),l.Zb("change",(function(t){return l.xc(i),l.dc().change(t)})),l.ec(8,"translate"),l.Jc(9),l.ec(10,"translate"),l.Rb(),l.Rb(),l.Sb(11,"p"),l.Jc(12),l.ec(13,"translate"),l.Rb(),l.Sb(14,"div",11),l.Jc(15),l.ec(16,"translate"),l.Rb(),l.Hc(17,S,1,5,"perun-web-apps-resources-list",12),l.Rb()}if(2&t){var n=l.dc();l.Ab(2),l.Kc(l.fc(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),l.Ab(3),l.kc("ngIf",null!==n.taskId),l.Ab(1),l.kc("ngIf",null!==n.taskId),l.Ab(1),l.lc("matTooltip",l.fc(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),l.kc("matTooltipDisabled",!n.checkboxesDisabled)("disabled",n.checkboxesDisabled)("checked",n.destinationChecked),l.Ab(2),l.Lc(" ",l.fc(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),l.Ab(3),l.Kc(l.fc(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),l.Ab(3),l.Lc(" ",l.fc(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),l.Ab(2),l.kc("ngIf",!n.loading)}}var E=function(){var t=function(){function t(e,n,r,a,u,l,h,d,f){g(this,t),this.dialogRef=e,this.data=n,this.tableConfigService=r,this.resourcesManager=a,this.tasksManager=u,this.serviceManager=l,this.translate=h,this.notificator=d,this.cd=f,this.loading=!1,this.dataSource=new o.o(this.data.resource),this.selected=new s.c(!0,i(this.dataSource.data)),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=c.U}return m(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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}},{key:"remove",value:function(){var t=this;this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe((function(e){e.forEach((function(e){t.tasksManager.deleteTaskResultById({taskResultId:e.id}).subscribe()}))})),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe((function(e){e.forEach((function(e){t.serviceManager.removeDestination(t.serviceId,t.facilityId,e.destination,e.type).subscribe()}))})),this.selected.selected.forEach((function(e){t.resourcesManager.removeService(e.id,t.serviceId).subscribe((function(){t.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}))}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"disableCheckboxes",value:function(t){t&&this.checkboxesDisabled&&this.changeCheckboxes(!0),t||this.checkboxesDisabled||this.changeCheckboxes(!1)}},{key:"changeCheckboxes",value:function(t){this.checkboxesDisabled=!t,this.taskChecked=t,this.taskResultsChecked=t,this.destinationChecked=t,this.cd.detectChanges()}},{key:"change",value:function(t){switch(t.source.id){case"task":this.taskChecked=t.checked;break;case"taskResults":this.taskResultsChecked=t.checked;break;case"destination":this.destinationChecked=t.checked}}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(r.i),l.Mb(r.a),l.Mb(c.pb),l.Mb(a.m),l.Mb(a.o),l.Mb(a.n),l.Mb(h.e),l.Mb(u.l),l.Mb(l.h))},t.\u0275cmp=l.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page"]],template:function(t,e){1&t&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Sb(3,"div"),l.Hc(4,A,1,0,"mat-spinner",1),l.Hc(5,k,18,21,"div",2),l.Sb(6,"div",3),l.Sb(7,"button",4),l.Zb("click",(function(){return e.cancel()})),l.Jc(8),l.ec(9,"translate"),l.Rb(),l.Sb(10,"button",5),l.Zb("click",(function(){return e.remove()})),l.Jc(11),l.ec(12,"translate"),l.Rb(),l.Rb(),l.Rb()),2&t&&(l.Ab(1),l.Kc(l.fc(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),l.Ab(2),l.Cb(e.theme),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(3),l.Lc(" ",l.fc(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),l.Ab(2),l.kc("disabled",e.loading||0===e.selected.selected.length),l.Ab(1),l.Lc(" ",l.fc(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[r.j,d.t,r.c,f.b,p.c,r.g,b.a,v.a,y.a],pipes:[h.d],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t}()},"RK/0":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"memberStatusIcon",type:t,pure:!0}),t}()},ROBh:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("gBlb"),r=i("ckkg"),a=i("czMQ");function o(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case r.d:case r.b:this.remove(),t.preventDefault();break;case r.o:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(Object(p.a)(1)).subscribe((function(){t._ngZone.run((function(){t._hasFocus=!1,t._onBlur.next({chip:t})}))}))}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=Object(h.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=Object(h.c)(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=Object(h.c)(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=Object(h.c)(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),i}(C);return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.l),o.Mb(o.A),o.Mb(S.a),o.Mb(c.h,8),o.Mb(y.a,8),o.Mb(o.h),o.Xb("tabindex"),o.Mb(l.e,8))},t.\u0275dir=o.Hb({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;1&t&&(o.Fb(i,T,!0),o.Fb(i,I,!0),o.Fb(i,D,!0)),2&t&&(o.sc(n=o.ac())&&(e.avatar=n.first),o.sc(n=o.ac())&&(e.trailingIcon=n.first),o.sc(n=o.ac())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&o.Zb("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(o.Bb("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),o.Eb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[o.xb]}),t}(),D=function(){var t=function(){function t(e,i){g(this,t),this._parentChip=e,i&&"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}return m(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(O),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&o.Zb("click",(function(t){return e._handleClick(t)}))}}),t}(),M=new o.r("mat-chips-default-options"),P=Object(c.B)((function t(e,i,n,r){g(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r})),x=0,N=function t(e,i){g(this,t),this.source=e,this.value=i},L=function(){var t=function(t){a(n,t);var e=s(n);function n(t,i,r,a,s,c,l){var h;return g(this,n),(h=e.call(this,c,a,s,l))._elementRef=t,h._changeDetectorRef=i,h._dir=r,h.ngControl=l,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new d.a,h._uid="mat-chip-list-"+x++,h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(t,e){return t===e},h._required=!1,h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new o.o,h.valueChange=new o.o,h.ngControl&&(h.ngControl.valueAccessor=u(h)),h}return m(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new A.g(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(b.a)(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.tabOut.pipe(Object(b.a)(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.chips.changes.pipe(Object(v.a)(null),Object(b.a)(this._destroyed)).subscribe((function(){t.disabled&&Promise.resolve().then((function(){t._syncChipsState()})),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new w.c(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;t.keyCode===r.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(t.keyCode===r.i?(this._keyManager.setFirstItemActive(),t.preventDefault()):t.keyCode===r.f?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(t){return t.deselect()})),Array.isArray(t))t.forEach((function(t){return e._selectValue(t,i)})),this._sortValues();else{var n=this._selectValue(t,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find((function(i){return null!=i.value&&e._compareWith(i.value,t)}));return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())}))}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach((function(e){e!==t&&e.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(e){e.selected&&t._selectionModel.select(e)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.change.emit(new N(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){t.focused||t._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach((function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()})),e.isUserInput&&t._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(e){var i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&t._keyManager.updateActiveItem(i),t.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){t._blur(),t.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(e){var i=e.chip,n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&i._hasFocus&&(t._lastDestroyedChipIndex=n)}))}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips.some((function(t){return t._hasFocus}))}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach((function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=Object(h.c)(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=Object(h.c)(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Object(h.c)(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=Object(h.c)(t),this.chips&&this.chips.forEach((function(t){return t.chipListSelectable=e._selectable}))}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return Object(f.a).apply(void 0,i(this.chips.map((function(t){return t.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return Object(f.a).apply(void 0,i(this.chips.map((function(t){return t._onFocus}))))}},{key:"chipBlurChanges",get:function(){return Object(f.a).apply(void 0,i(this.chips.map((function(t){return t._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return Object(f.a).apply(void 0,i(this.chips.map((function(t){return t.destroyed}))))}}]),n}(P);return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.l),o.Mb(o.h),o.Mb(k.c,8),o.Mb(E.t,8),o.Mb(E.j,8),o.Mb(c.d),o.Mb(E.q,10))},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;1&t&&o.Fb(i,O,!0),2&t&&o.sc(n=o.ac())&&(e.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&o.Zb("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(o.Vb("id",e._uid),o.Bb("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),o.Eb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[o.zb([{provide:_.d,useExisting:t}]),o.xb],ngContentSelectors:R,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(o.jc(),o.Sb(0,"div",0),o.ic(1),o.Rb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),F=0,z=function(){var t=function(){function t(e,i){g(this,t),this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new o.o,this.placeholder="",this.id="mat-chip-list-input-"+F++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return m(t,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(t){t&&t.keyCode===r.p&&!Object(r.t)(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this._inputElement.focus(t)}},{key:"_isSeparatorKey",value:function(t){if(Object(r.t)(t))return!1;var e=this.separatorKeyCodes,i=t.keyCode;return Array.isArray(e)?e.indexOf(i)>-1:e.has(i)}},{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=Object(h.c)(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=Object(h.c)(t)}},{key:"empty",get:function(){return!this._inputElement.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.l),o.Mb(M))},t.\u0275dir=o.Hb({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&o.Zb("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(o.Vb("id",e.id),o.Bb("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[o.yb]}),t}(),H={separatorKeyCodes:[r.g]},B=function(){var t=function t(){g(this,t)};return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[c.d,{provide:M,useValue:H}]}),t}()},SAuR:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("2kYt"),r=i("EM62"),a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){return t&&"never"!==t.toLowerCase()?Object(n.I)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"parseDate",type:t,pure:!0}),t}()},SrNW:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("5uGe");function r(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new o(t,e,i))}}var o=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,t),this.accumulator=e,this.seed=i,this.hasSeed=n}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),c=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,t)).accumulator=n,o._seed=r,o.hasSeed=a,o.index=0,o}return m(i,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),i}(n.a)},Ssnw:function(t,e,i){"use strict";i.d(e,"h",(function(){return k})),i.d(e,"d",(function(){return N})),i.d(e,"m",(function(){return I})),i.d(e,"i",(function(){return F})),i.d(e,"e",(function(){return B})),i.d(e,"a",(function(){return q})),i.d(e,"b",(function(){return V})),i.d(e,"l",(function(){return K})),i.d(e,"k",(function(){return J})),i.d(e,"c",(function(){return Z})),i.d(e,"g",(function(){return Y})),i.d(e,"n",(function(){return X})),i.d(e,"f",(function(){return Q})),i.d(e,"j",(function(){return it}));var n,a,o,s,c,u,l,h,f,p,b,v,y,A,w=i("Iydx"),_=i("X2Q7"),S=i("EM62"),k=((n=function(){function t(e){g(this,t),this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return m(t,[{key:"init",value:function(t){this.principal=t,this.initData(t)}},{key:"setPerunPolicies",value:function(t){this.perunPolicies=t}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(t,e){if(null===this.principal.roles)return!1;var i,n=[],r=d(this.fetchPolicyWithAllIncludedPolicies(t));try{for(r.s();!(i=r.n()).done;){var a=i.value;n=n.concat(a.perunRoles)}}catch(s){r.e(s)}finally{r.f()}var o=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,o)}},{key:"resolveAuthorization",value:function(t,e){var i,n=d(t);try{for(n.s();!(i=n.n()).done;){for(var r=i.value,a=!0,o=0,s=Object.keys(r);o1&&void 0!==arguments[1]?arguments[1]:this.getDefaultRpcMessage();this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}},{key:"showError",value:function(t,e,i,n,r){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),t}()).\u0275fac=function(t){return new(t||p)(S.Wb(D.e))},p.\u0275prov=S.Ib({token:p,factory:p.\u0275fac,providedIn:"root"}),p),V=((f=function(){function t(){g(this,t),this.handleNextError=!0}return m(t,[{key:"dontHandleErrorForNext",value:function(){this.handleNextError=!1}},{key:"shouldHandleError",value:function(){var t=this.handleNextError;return this.handleNextError=!0,t}}]),t}()).\u0275fac=function(t){return new(t||f)},f.\u0275prov=S.Ib({token:f,factory:f.\u0275fac,providedIn:"root"}),f),q=((h=function(){function t(e,i,n,r,a,o){g(this,t),this.authService=e,this.apiRequestConfiguration=i,this.notificator=n,this.store=r,this.dialog=a,this.initAuthService=o}return m(t,[{key:"intercept",value:function(t,e){var i=this,n=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==n&&-1!==t.url.toString().indexOf(n)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){var r=Object(O.o)();r.width="450px",this.dialog.open(x,r)}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var a=this.apiRequestConfiguration.shouldHandleError(),o="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe(Object(U.a)((function(t){t instanceof j.f&&o&&i.initAuthService.loadPrincipal()}),(function(e){var n=i.formatErrors(e,t);return void 0===n?Object(G.a)(e):a?void i.notificator.showRPCError(n):Object(G.a)(n)})))}},{key:"formatErrors",value:function(t,e){var i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.call=e.url,i.payload=e.body,i}}]),t}()).\u0275fac=function(t){return new(t||h)(S.Wb(N),S.Wb(V),S.Wb(K),S.Wb(I),S.Wb(M.b),S.Wb(F))},h.\u0275prov=S.Ib({token:h,factory:h.\u0275fac}),h),J=((l=function(){function t(){g(this,t),this.notificationData=[],this.newNotificationsCount=0}return m(t,[{key:"storeNotification",value:function(t){this.newNotificationsCount++,this.notificationData.push(t)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),t}()).\u0275fac=function(t){return new(t||l)},l.\u0275prov=S.Ib({token:l,factory:l.\u0275fac,providedIn:"root"}),l),W=i("4e/d"),Z=((A=function(){function t(e,i,n,r){g(this,t),this.http=e,this.notificator=i,this.authService=n,this.storeService=r}return m(t,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(t,e,i,n){var r=t.error;return r.call=e,r.payload=i,n&&this.notificator.showRPCError(t.error),Object(G.a)(r)}},{key:"getHeaders",value:function(){var t=new j.d;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(t){var e=this,i=(arguments.length>1&&void 0!==arguments[1]||new j.e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),n="".concat(this.getApiUrl()).concat(t);return this.http.get(n,{headers:this.getHeaders()}).pipe(Object(W.a)((function(t){return e.formatErrors(t,n,null,i)})))}},{key:"put",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),a=JSON.stringify(i);return this.http.put(r,a,{headers:this.getHeaders()}).pipe(Object(W.a)((function(t){return e.formatErrors(t,r,a,n)})))}},{key:"post",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),a=JSON.stringify(i),o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,a,{headers:o}).pipe(Object(W.a)((function(t){return e.formatErrors(t,r,a,n)})))}},{key:"delete",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="".concat(this.getApiUrl()).concat(t);return this.http.delete(n,{headers:this.getHeaders()}).pipe(Object(W.a)((function(t){return e.formatErrors(t,n,null,i)})))}}]),t}()).\u0275fac=function(t){return new(t||A)(S.Wb(j.b),S.Wb(K),S.Wb(N),S.Wb(I))},A.\u0275prov=S.Ib({token:A,factory:A.\u0275fac,providedIn:"root"}),A),Y=((y=function(){function t(e){var i=this;g(this,t),this.router=e,this.lastState="forward",this.history=new Set,e.events.subscribe((function(t){t instanceof T.c&&("popstate"===t.navigationTrigger?i.history.has(t.restoredState.navigationId)?(i.lastState="back",i.history.delete(t.restoredState.navigationId)):(i.lastState="forward",i.history.add(t.id)):(i.history.add(t.id),i.lastState="forward"))}))}return m(t,[{key:"forceNavigate",value:function(t,e){if(null!==t){var i="";t.forEach((function(t){return i+="/"+t})),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}}},{key:"getLastState",value:function(){return this.lastState}}]),t}()).\u0275fac=function(t){return new(t||y)(S.Wb(T.f))},y.\u0275prov=S.Ib({token:y,factory:y.\u0275fac,providedIn:"root"}),y),X=((v=function(){function t(){g(this,t)}return m(t,[{key:"isAllSelectedWithDisabledCheckbox",value:function(t,e,i,n,r,a,o,s){var c=this;return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=r*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?a.data.length:a.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),a.sortData(a.filteredData,o).forEach((function(t){c.pageStart<=c.pageIterator&&c.pageIterator1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,n(h(i.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,n(h(i.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),i}(l),p=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this)).element=t instanceof r.l?t.nativeElement:t,n}return i}(l),b=function(){function t(){g(this,t),this._isDisposed=!1,this.attachDomPortal=null}return m(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&c(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof d?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof f?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof p?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),v=function(t){a(i,t);var e=s(i);function i(t,r,a,o,s){var c,l;return g(this,i),(l=e.call(this)).outletElement=t,l._componentFactoryResolver=r,l._appRef=a,l._defaultInjector=o,l.attachDomPortal=function(t){if(!l._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var r=l._document.createComment("dom-portal");e.parentNode.insertBefore(r,e),l.outletElement.appendChild(e),n((c=u(l),h(i.prototype)),"setDisposeFn",c).call(c,(function(){r.parentNode&&r.parentNode.replaceChild(e,r)}))},l._document=s,l}return m(i,[{key:"attachComponentPortal",value:function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){i._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=i.indexOf(n);-1!==t&&i.remove(t)})),n}},{key:"dispose",value:function(){n(h(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),i}(b),y=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(v),A=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n){return g(this,i),e.call(this,t,n)}return i}(f);return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.M),r.Mb(r.Q))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[r.xb]}),t}(),w=function(){var t=function(t){a(i,t);var e=s(i);function i(t,a,o){var s,c;return g(this,i),(c=e.call(this))._componentFactoryResolver=t,c._viewContainerRef=a,c._isInitialized=!1,c.attached=new r.o,c.attachDomPortal=function(t){if(!c._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var r=c._document.createComment("dom-portal");t.setAttachedHost(u(c)),e.parentNode.insertBefore(r,e),c._getRootNode().appendChild(e),n((s=u(c),h(i.prototype)),"setDisposeFn",s).call(s,(function(){r.parentNode&&r.parentNode.replaceChild(e,r)}))},c._document=o,c}return m(i,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=e.createComponent(r,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),n(h(i.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return n(h(i.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&n(h(i.prototype),"detach",this).call(this),t&&n(h(i.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),i}(b);return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.j),r.Mb(r.Q),r.Mb(o.e))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.xb]}),t}(),_=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(w);return t.\u0275fac=function(e){return S(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[r.zb([{provide:w,useExisting:t}]),r.xb]}),t}(),S=r.Ub(_),k=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t}(),E=function(){function t(e,i){g(this,t),this._parentInjector=e,this._customTokens=i}return m(t,[{key:"get",value:function(t,e){var i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}]),t}()},Sv31:function(t,e,i){"use strict";i.d(e,"a",(function(){return I}));var n=i("X2Q7"),r=i("iyZ4"),a=i("nIj0"),o=i("2kYt"),s=i("EM62"),c=i("sEIs"),u=i("0XDM"),l=i("29Wa"),h=i("R7+U"),d=i("mFH5"),f=i("pynj"),p=i("BnyX"),b=i("+Tre"),v=i("PBFl"),y=i("csyo"),A=i("aag5"),w=i("oCM2"),_=i("s2Ay");function S(t,e){if(1&t){var i=s.Tb();s.Sb(0,"button",16),s.Zb("click",(function(){return s.xc(i),s.dc().showAllDetails=!0})),s.Jc(1),s.ec(2,"translate"),s.Rb()}2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function k(t,e){if(1&t){var i=s.Tb();s.Sb(0,"button",16),s.Zb("click",(function(){return s.xc(i),s.dc().showAllDetails=!1})),s.Jc(1),s.ec(2,"translate"),s.Rb()}2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function E(t,e){1&t&&s.Nb(0,"mat-spinner",17)}function R(t,e){if(1&t){var i=s.Tb();s.Sb(0,"app-applications-list",20),s.Zb("page",(function(t){return s.xc(i),s.dc(2).pageChanged(t)})),s.Rb()}if(2&t){var n=s.dc(2);s.kc("pageSize",n.pageSize)("filterValue",n.filterValue)("applications",n.applications)("displayedColumns",n.displayedColumns)}}function C(t,e){if(1&t){var i=s.Tb();s.Sb(0,"app-perun-web-apps-application-list-details",21),s.Zb("page",(function(t){return s.xc(i),s.dc(2).detailPageChanged(t)})),s.Rb()}if(2&t){var n=s.dc(2);s.kc("pageSize",n.detailPageSize)("filterValue",n.filterValue)("applications",n.applications)}}function T(t,e){if(1&t&&(s.Sb(0,"div"),s.Hc(1,R,1,4,"app-applications-list",18),s.Hc(2,C,1,3,"app-perun-web-apps-application-list-details",19),s.Rb()),2&t){var i=s.dc();s.Ab(1),s.kc("ngIf",!i.showAllDetails),s.Ab(1),s.kc("ngIf",i.showAllDetails)}}var I=function(){var t=function(){function t(e,i,n,a){g(this,t),this.voService=e,this.registrarManager=i,this.tableConfigService=n,this.route=a,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.gb,this.tableId=r.hb,this.checked=!1}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe((function(e){t.voService.getVoById(e.voId).subscribe((function(e){t.vo=e,t.setData(["NEW","VERIFIED"])})),t.startDate=new a.g(Object(o.I)(t.yearAgo(),"yyyy-MM-dd","en-GB")),t.endDate=new a.g(Object(o.I)(new Date,"yyyy-MM-dd","en-GB"))}))}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForVo(this.vo.id,t,Object(o.I)(this.startDate.value,"yyyy-MM-dd","en-GB"),Object(o.I)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe((function(t){e.applications=!1===e.checked?t.filter((function(t){return null===t.group})):t,e.loading=!1}))}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"showGroupApplications",value:function(t){this.checked=t.checked,this.select()}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"detailPageChanged",value:function(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(s.Mb(n.q),s.Mb(n.l),s.Mb(r.pb),s.Mb(c.a))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&s.Eb("router-component",!0)},decls:38,vars:36,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","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","page",4,"ngIf"],[3,"pageSize","filterValue","applications","displayedColumns","page"],[3,"pageSize","filterValue","applications","page"]],template:function(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"div"),s.Sb(4,"perun-web-apps-refresh-button",1),s.Zb("refresh",(function(){return e.select()})),s.Rb(),s.Hc(5,S,3,3,"button",2),s.Hc(6,k,3,3,"button",2),s.Sb(7,"mat-form-field",3),s.Sb(8,"mat-label"),s.Jc(9),s.ec(10,"translate"),s.Rb(),s.Sb(11,"mat-select",4),s.Zb("selectionChange",(function(){return e.select()}))("valueChange",(function(t){return e.state=t})),s.Sb(12,"mat-option",5),s.Jc(13),s.ec(14,"translate"),s.Rb(),s.Sb(15,"mat-option",6),s.Jc(16),s.ec(17,"translate"),s.Rb(),s.Sb(18,"mat-option",7),s.Jc(19),s.ec(20,"translate"),s.Rb(),s.Sb(21,"mat-option",8),s.Jc(22),s.ec(23,"translate"),s.Rb(),s.Sb(24,"mat-option",9),s.Jc(25),s.ec(26,"translate"),s.Rb(),s.Sb(27,"mat-option",10),s.Jc(28),s.ec(29,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Sb(30,"perun-web-apps-debounce-filter",11),s.Zb("filter",(function(t){return e.applyFilter(t)})),s.Rb(),s.Sb(31,"perun-web-apps-date-range",12),s.Zb("datePicker",(function(){return e.select()})),s.Rb(),s.Sb(32,"div"),s.Sb(33,"mat-checkbox",13),s.Zb("change",(function(t){return e.showGroupApplications(t)})),s.Jc(34),s.ec(35,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Hc(36,E,1,0,"mat-spinner",14),s.Hc(37,T,3,2,"div",15)),2&t&&(s.Ab(1),s.Kc(s.fc(2,18,"VO_DETAIL.APPLICATION.TITLE")),s.Ab(4),s.kc("ngIf",!e.showAllDetails),s.Ab(1),s.kc("ngIf",e.showAllDetails),s.Ab(3),s.Kc(s.fc(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),s.Ab(2),s.kc("value",e.state),s.Ab(2),s.Kc(s.fc(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),s.Ab(3),s.Kc(s.fc(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),s.Ab(3),s.Kc(s.fc(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),s.Ab(3),s.Kc(s.fc(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),s.Ab(3),s.Kc(s.fc(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),s.Ab(3),s.Kc(s.fc(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),s.Ab(2),s.kc("placeholder","VO_DETAIL.APPLICATION.FILTER"),s.Ab(1),s.kc("startDate",e.startDate)("endDate",e.endDate),s.Ab(2),s.kc("checked",e.checked),s.Ab(1),s.Lc(" ",s.fc(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading))},directives:[u.a,o.t,l.c,l.g,h.a,d.n,f.a,p.a,b.a,v.b,y.c,A.a,w.a],pipes:[_.d],styles:[""]}),t}()},Sy1n:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n,r=i("sEIs"),a=i("EM62"),o=((n=function(){function t(e,i){g(this,t),this.router=e,this.routeReuseStrategy=i;var n=i;e.events.subscribe((function(t){t instanceof r.c&&n.setLastNavigationType("popstate"===t.navigationTrigger?"back":"direct")}))}return m(t,[{key:"init",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||n)(a.Wb(r.f),a.Wb(r.e))},n.\u0275prov=a.Ib({token:n,factory:n.\u0275fac,providedIn:"root"}),n),s=i("Ssnw"),c=i("3p4X"),u=i("vobO"),l=i("8clQ"),h=i("YSZu"),d=i("9RND"),f=i("xVbo"),p=i("OZ4H");function b(t,e){if(1&t&&(a.Sb(0,"div",10),a.Sb(1,"mat-icon"),a.Jc(2,"alert"),a.Rb(),a.Jc(3),a.Rb()),2&t){var i=a.dc();a.Ab(3),a.Lc(" ",i.warningMessage,"\n")}}var v,y=function(t,e){return{top:t,background:e}},A=function(t,e){return{"margin-top":t,"min-height":e}},w=function(t){return{"border-color":t}},_=function(t){return{background:t}},S=function(t,e){return{"min-height":t,"background-color":e}},k=((v=function(){function t(e,i,n,r,a){g(this,t),this.cache=e,this.store=i,this.http=n,this.dialog=r,this.router=a,this.sidebarMode="side",this.navBackgroundColor=this.store.get("theme","nav_bg_color"),this.sideBarBorderColor=this.store.get("theme","sidemenu_border_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.sideMenubackgroundColor=this.store.get("theme","sidemenu_bg_color"),this.displayWarning=this.store.get("display_warning"),this.warningMessage=this.store.get("warning_message"),this.version=d.a,this.cache.init(),this.getScreenSize(null)}return m(t,[{key:"getScreenSize",value:function(t){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}},{key:"isMobile",value:function(){return window.innerWidth<=t.minWidth}},{key:"ngOnInit",value:function(){var t=this;null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),Object(c.a)(3e4).subscribe((function(){t.loadAppVersion()})),this.router.events.pipe(Object(f.a)((function(t){return t instanceof r.c}))).subscribe((function(e){t.updateInitAccessedPage(e)}))}},{key:"updateInitAccessedPage",value:function(t){t.url===sessionStorage.getItem("initPage")?("imperative"===t.navigationTrigger&&t.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===t.navigationTrigger&&(t.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(t.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}},{key:"loadAppVersion",value:function(){var t=this,e=new u.d({"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:e}).subscribe((function(e){var i=e.version;if(i)if(t.version&&"SNAPSHOT"!==i&&t.version!==i){var n=Object(l.o)();t.dialog.open(h.a,n)}else t.version=i}),(function(){}))}},{key:"getTopGap",value:function(){return this.displayWarning?112:64}},{key:"getSideNavMarginTop",value:function(){return this.displayWarning?"112px":"64px"}},{key:"getSideNavMinHeight",value:function(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}},{key:"getNavMenuTop",value:function(){return this.displayWarning?"48px":"0"}},{key:"getContentInnerMinHeight",value:function(){return this.displayWarning?"calc((100vh - 112px) + 0px)":"calc((100vh - 64px) + 0px)"}}]),t}()).minWidth=992,v.\u0275fac=function(t){return new(t||v)(a.Mb(o),a.Mb(s.m),a.Mb(u.b),a.Mb(p.b),a.Mb(r.f))},v.\u0275cmp=a.Gb({type:v,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&a.Zb("resize",(function(t){return e.getScreenSize(t)}),!1,a.wc)},decls:13,vars:27,consts:[["class","beta-warning",4,"ngIf"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","sideNav","principal"],["id","content",3,"ngStyle"],[3,"ngStyle","mode","opened","fixedInViewport","fixedTopGap"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"beta-warning"]],template:function(t,e){if(1&t&&(a.Hc(0,b,4,1,"div",0),a.Nb(1,"app-perun-nav-menu",1),a.Nb(2,"app-notificator"),a.Sb(3,"mat-sidenav-container",2),a.Sb(4,"mat-sidenav",3,4),a.Sb(6,"perfect-scrollbar",5),a.Nb(7,"app-side-menu",6),a.Rb(),a.Rb(),a.Sb(8,"mat-sidenav-content",7),a.Sb(9,"div",8),a.Nb(10,"router-outlet"),a.Rb(),a.Sb(11,"div",9),a.Nb(12,"perun-web-apps-footer"),a.Rb(),a.Rb(),a.Rb()),2&t){var i=a.tc(5);a.kc("ngIf",e.displayWarning),a.Ab(1),a.kc("ngStyle",a.qc(14,y,e.getNavMenuTop(),e.navBackgroundColor))("sideNav",i)("principal",e.principal),a.Ab(2),a.kc("ngStyle",a.qc(17,A,e.getSideNavMarginTop(),e.getSideNavMinHeight())),a.Ab(1),a.kc("ngStyle",a.pc(20,w,e.sideBarBorderColor))("mode",e.sidebarMode)("opened",!e.isMobile())("fixedInViewport",!0)("fixedTopGap",e.getTopGap()),a.Ab(2),a.kc("ngStyle",a.pc(22,_,e.sideMenubackgroundColor))("scrollIndicators",!0),a.Ab(1),a.kc("sideNav",i),a.Ab(1),a.kc("ngStyle",a.qc(24,S,e.getContentInnerMinHeight(),e.contentBackgroundColor))}},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#footer[_ngcontent-%COMP%]{position:absolute;height:200px;bottom:0;width:100%}@media (max-width:768px){#footer[_ngcontent-%COMP%]{height:450px}}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width:768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.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}"]}),v)},TKFd:function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return u})),i.d(e,"c",(function(){return h}));var n=i("5XID"),r=i("EM62"),a=i("IdLP"),o=i("ZTXN"),s=i("mWib"),c=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),u=function(){var t=function(){function t(e){g(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return m(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach((function(e,i){return t._cleanupObserver(i)}))}},{key:"observe",value:function(t){var e=this,i=Object(n.e)(t);return new a.a((function(t){var n=e._observeElement(i).subscribe(t);return function(){n.unsubscribe(),e._unobserveElement(i)}}))}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new o.a,i=this._mutationObserverFactory.create((function(t){return e.next(t)}));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),i=e.observer,n=e.stream;i&&i.disconnect(),n.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Wb(c))},t.\u0275prov=Object(r.Ib)({factory:function(){return new t(Object(r.Wb)(c))},token:t,providedIn:"root"}),t}(),l=function(){var t=function(){function t(e,i,n){g(this,t),this._contentObserver=e,this._elementRef=i,this._ngZone=n,this.event=new r.o,this._disabled=!1,this._currentSubscription=null}return m(t,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe(Object(s.a)(t.debounce)):e).subscribe(t.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(n.c)(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=Object(n.f)(t),this._subscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(u),r.Mb(r.l),r.Mb(r.A))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),h=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[c]}),t}()},TLy2:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var r=i("pBDD"),o=i("r9RI"),c=i("mW0F"),u=i("YtkY"),l=i("GoAz");function d(t,e){return"function"==typeof e?function(i){return i.pipe(d((function(i,n){return Object(l.a)(t(i,n)).pipe(Object(u.a)((function(t,r){return e(i,t,n,r)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(e){g(this,t),this.project=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new p(t,this.project))}}]),t}(),p=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).project=n,r.index=0,r}return m(i,[{key:"_next",value:function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}},{key:"_innerSub",value:function(t,e,i){var n=this.innerSubscription;n&&n.unsubscribe();var r=new o.a(this,e,i),a=this.destination;a.add(r),this.innerSubscription=Object(c.a)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||n(h(i.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&n(h(i.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,i,n,r){this.destination.next(e)}}]),i}(r.a)},"TQS+":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return u})),i.d(e,"c",(function(){return l}));var n,r,a,o=i("EM62"),s=((n=function(){function t(e){g(this,t),this.elementRef=e}return m(t,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),t}()).\u0275fac=function(t){return new(t||n)(o.Mb(o.l))},n.\u0275dir=o.Hb({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n),c=i("Ssnw"),u=((a=function(){function t(e,i){g(this,t),this.el=e,this.router=i}return m(t,[{key:"onClick",value:function(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}]),t}()).\u0275fac=function(t){return new(t||a)(o.Mb(o.l),o.Mb(c.g))},a.\u0275dir=o.Hb({type:a,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&o.Zb("click",(function(){return e.onClick()}))},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),a),l=((r=function(){function t(){g(this,t)}return m(t,[{key:"onClick",value:function(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){var e="";this.perunWebAppsMiddleClickRouterLink.forEach((function(t){return e+="/"+t})),e.length>0&&(e=e.substring(1)),window.open(e)}}}]),t}()).\u0275fac=function(t){return new(t||r)},r.\u0275dir=o.Hb({type:r,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&o.Zb("mouseup",(function(t){return e.onClick(t)}))},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),r)},TkCa:function(t,e,i){"use strict";i.d(e,"c",(function(){return r})),i.d(e,"b",(function(){return a})),i.d(e,"d",(function(){return o})),i.d(e,"a",(function(){return s})),i.d(e,"h",(function(){return c})),i.d(e,"g",(function(){return u})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return h}));var n=i("f7+R"),r=Object(n.n)("openClose",[Object(n.k)("open",Object(n.l)({overflow:"hidden"})),Object(n.k)("closed",Object(n.l)({height:"0px",overflow:"hidden"})),Object(n.m)("open <=> closed",[Object(n.e)(".3s ease-in")])]),a=Object(n.n)("flyInOut",[Object(n.m)(":enter",[Object(n.l)({transform:"translateX(100%)"}),Object(n.e)(".25s")]),Object(n.m)(":leave",[Object(n.e)(".5s",Object(n.l)({transform:"translateX(100%)"}))])]),o=Object(n.n)("rollInOut",[Object(n.m)(":enter",[Object(n.l)({height:"0px"}),Object(n.e)(".25s")]),Object(n.m)(":leave",[Object(n.e)(".25s",Object(n.l)({height:"0px"}))])]),s=Object(n.n)("routeAnimations",[Object(n.m)("* => *",[Object(n.l)({position:"relative"}),Object(n.i)(":enter",[Object(n.l)({width:"100%",opacity:0})],{optional:!0}),Object(n.i)(":leave",[Object(n.l)({position:"absolute",width:"100%",opacity:1}),Object(n.e)("0.15s",Object(n.l)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Object(n.i)(":enter",[Object(n.l)({position:"absolute",width:"100%",opacity:0}),Object(n.e)("0.15s",Object(n.l)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c=Object(n.n)("tagsOpenClose",[Object(n.k)("open",Object(n.l)({})),Object(n.k)("closed",Object(n.l)({width:"0px",height:"0px"})),Object(n.m)("open <=> closed",[Object(n.e)(".3s ease-in")])]),u=Object(n.n)("switchAnimations",[Object(n.m)("true => false",[Object(n.i)(":enter, :leave",Object(n.l)({})),Object(n.g)([Object(n.i)(":enter",[Object(n.l)({transform:"translateX(-100%)"}),Object(n.e)("1s ease-in-out",Object(n.l)({transform:"translateX(0%)"}))],{optional:!0}),Object(n.i)(":leave",[Object(n.l)({transform:"translateX(0%)",position:"absolute"}),Object(n.e)("1s ease-in-out",Object(n.l)({transform:"translateX(100%)"}))],{optional:!0})])]),Object(n.m)("false => true",[Object(n.i)(":enter, :leave",Object(n.l)({})),Object(n.g)([Object(n.i)(":enter",[Object(n.l)({transform:"translateX(100%)"}),Object(n.e)("1s ease-in-out",Object(n.l)({transform:"translateX(0%)"}))],{optional:!0}),Object(n.i)(":leave",[Object(n.l)({transform:"translateX(0%)",position:"absolute"}),Object(n.e)("1s ease-in-out",Object(n.l)({transform:"translateX(-100%)"}))],{optional:!0})])])]),l=Object(n.n)("slideInOutLeft",[Object(n.m)(":enter",[Object(n.l)({transform:"translateX(-100%)",position:"relative"}),Object(n.e)("0.5s ease-in",Object(n.l)({transform:"translateX(0%)"}))]),Object(n.m)(":leave",[Object(n.e)("0.5s ease-in",Object(n.l)({transform:"translateX(-100%)"}))])]),h=Object(n.n)("slideInOutRight",[Object(n.m)(":enter",[Object(n.l)({transform:"translateX(100%)",position:"fixed"}),Object(n.e)("0.5s ease-in",Object(n.l)({transform:"translateX(0%)"}))]),Object(n.m)(":leave",[Object(n.l)({transform:"translateX(-100%)",position:"relative"}),Object(n.e)("0.5s ease-in",Object(n.l)({transform:"translateX(100%)"}))])])},Tsqg:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("Ssnw"),a=i("nyAh"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("Y2X+"),d=i("csyo"),f=i("29Wa"),p=i("Cd2c"),b=i("H0K4"),v=i("nIj0");function y(t,e){1&t&&s.Nb(0,"mat-spinner",7)}function A(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",8),s.Sb(1,"div"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"mat-form-field"),s.Sb(5,"textarea",9),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().mailFooter=t})),s.Rb(),s.Rb(),s.Sb(6,"div",10),s.Jc(7),s.ec(8,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),": "),s.Ab(3),s.kc("cdkTextareaAutosize",!0)("ngModel",n.mailFooter),s.Ab(2),s.Kc(s.fc(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION"))}}var w=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.attributesManager=i,this.translateService=n,this.notificator=r,this.data=a,this.mailFooter="",this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}},{key:"submit",value:function(){var t=this;this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe((function(){t.notificateSuccess(),t.dialogRef.close()}),(function(){return t.loading=!1})):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe((function(){t.notificateSuccess(),t.dialogRef.close()}),(function(){return t.loading=!1}))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"getFooterForVo",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.data.voId,a.a.VO_DEF_MAIL_FOOTER).subscribe((function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""}))}},{key:"getFooterForGroup",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.data.groupId,a.a.GROUP_DEF_MAIL_FOOTER).subscribe((function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""}))}},{key:"notificateSuccess",value:function(){var t=this;this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close()}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(o.c),s.Mb(c.e),s.Mb(r.l),s.Mb(n.a))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[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"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,y,1,0,"mat-spinner",1),s.Hc(5,A,9,8,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.cancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"div",5),s.ec(11,"translate"),s.Sb(12,"button",6),s.Zb("click",(function(){return e.submit()})),s.Jc(13),s.ec(14,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),s.Ab(2),s.lc("matTooltip",s.fc(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),s.kc("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),s.Ab(2),s.kc("disabled",e.loading||!e.editAuth),s.Ab(1),s.Lc(" ",s.fc(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[n.j,u.t,n.c,l.b,h.a,d.c,n.g,f.c,p.b,b.c,v.c,v.r,v.u],pipes:[c.d],styles:[""]}),t}()},U3ra:function(t,e,i){"use strict";i.d(e,"a",(function(){return S}));var n=i("+0js"),a=i("8clQ"),o=i("EM62"),s=i("OZ4H"),c=i("nIj0"),u=i("2kYt"),l=i("Y2X+"),h=i("29Wa"),d=i("Cd2c"),f=i("PBFl"),p=i("bFHC");function b(t,e){if(1&t){var i=o.Tb();o.Sb(0,"button",15),o.Zb("click",(function(){o.xc(i);var t=o.dc().index;return o.dc().removeValue(t)})),o.Sb(1,"mat-icon"),o.Jc(2," indeterminate_check_box "),o.Rb(),o.Rb()}}function v(t,e){if(1&t){var i=o.Tb();o.Sb(0,"div",9),o.Sb(1,"mat-form-field",10),o.Nb(2,"label",11),o.Sb(3,"input",12),o.Zb("click",(function(){o.xc(i);var t=e.index,n=o.dc();return n.readonly&&n.attribute.displayName&&n.showValue(n.keys[t],n.attribute.displayName)}))("ngModelChange",(function(t){o.xc(i);var n=e.index;return o.dc().keys[n]=t})),o.Rb(),o.Rb(),o.Sb(4,"mat-form-field",10),o.Nb(5,"label",11),o.Sb(6,"input",13),o.Zb("click",(function(){o.xc(i);var t=e.$implicit,n=o.dc();return n.readonly&&void 0!==n.attribute.displayName&&n.showValue(t,n.attribute.displayName)}))("ngModelChange",(function(t){o.xc(i);var n=e.index;return o.dc().values[n]=t})),o.Rb(),o.Rb(),o.Hc(7,b,3,0,"button",14),o.Rb()}if(2&t){var n=e.index,r=o.dc();o.Ab(1),o.lc("appearance",r.readonly?"none":"standard"),o.Ab(1),o.nc("for","",r.attribute.id,"-key-",n,""),o.Ab(1),o.Eb("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),o.nc("id","",r.attribute.id,"-key-",n,""),o.mc("name","key-",n,""),o.kc("ngModel",r.keys[n])("readonly",r.readonly),o.Ab(1),o.lc("appearance",r.readonly?"none":"standard"),o.Ab(1),o.nc("for","",r.attribute.id,"-value-",n,""),o.Ab(1),o.Eb("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),o.mc("name","value-",n,""),o.nc("id","",r.attribute.id,"-value-",n,""),o.kc("readonly",r.readonly)("ngModel",r.values[n]),o.Ab(1),o.kc("ngIf",!r.readonly)}}function y(t,e){1&t&&(o.Sb(0,"mat-icon"),o.Jc(1,"more_horiz"),o.Rb())}function A(t,e){1&t&&(o.Sb(0,"mat-icon"),o.Jc(1,"keyboard_arrow_up"),o.Rb())}function w(t,e){if(1&t){var i=o.Tb();o.Sb(0,"button",16),o.Zb("click",(function(){return o.xc(i),o.dc().onShowChange()})),o.Hc(1,y,2,0,"mat-icon",17),o.Hc(2,A,2,0,"mat-icon",17),o.Rb()}if(2&t){var n=o.dc();o.Ab(1),o.kc("ngIf",!n.showMore),o.Ab(1),o.kc("ngIf",n.showMore)}}function _(t,e){if(1&t){var i=o.Tb();o.Sb(0,"button",18),o.Zb("click",(function(){return o.xc(i),o.dc().addValue()})),o.Sb(1,"mat-icon"),o.Jc(2," add_box "),o.Rb(),o.Rb()}}var S=function(){var t=function(){function t(e){g(this,t),this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}return m(t,[{key:"ngOnInit",value:function(){if(void 0!==this.attribute.value)for(var t=this.attribute.value,e=0,i=Object.entries(t);ethis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(t){this.keys.splice(t,1),this.values.splice(t,1)}},{key:"updateAttribute",value:function(){for(var t={},e=0;ee.defaultItemsShown),o.Ab(1),o.kc("ngIf",!e.readonly))},directives:[c.H,c.s,c.t,u.s,l.a,u.t,h.c,d.b,c.c,c.C,c.r,c.u,f.b,p.a],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}"]}),t}()},"UX+r":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("EM62"),r=i("8clQ"),a=i("+0js"),o=i("OZ4H"),s=i("29Wa"),c=i("Cd2c"),u=i("nIj0"),l=function(){var t=function(){function t(e){g(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.o}return m(t,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=Object(r.s)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t,e){var i=Object(r.o)();i.width="350px",i.data={value:t,title:e},this.dialog.open(a.l,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(o.b))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.Sb(0,"mat-form-field",0),n.Sb(1,"input",1),n.Zb("click",(function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)}))("ngModelChange",(function(t){return e.attribute.value=t}))("keydown",(function(){return e._sendEventToParent()})),n.Rb(),n.Rb()),2&t&&(n.lc("appearance",e.readonly?"none":"standard"),n.Ab(1),n.Eb("cursor-pointer",e.readonly&&void 0!==e.value),n.kc("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[s.c,c.b,u.c,u.r,u.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},V78E:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("FlRo"),a=i("Ssnw"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&s.Nb(0,"th",15)}function p(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){1&t&&s.Nb(0,"tr",18)}function y(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,1,0,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Hc(11,b,1,0,"tr",13),s.Hc(12,v,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.dataSource=new r.o(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe((function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe((function(){t.data.resources.shift(),t.onSubmit()}),(function(){t.dialogRef.close(!0)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(c.e),s.Mb(o.m))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-remove-resource-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"div"),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,9,"DIALOGS.REMOVE_RESOURCES.TITLE")),s.Ab(2),s.Cb(e.data.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_RESOURCES.DELETE")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t}()},VBdk:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),r=i("OZ4H"),a=i("s2Ay"),o=function(){var t=function t(e){g(this,t),this.dialogRef=e};return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.i))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(n.Sb(0,"h2",0),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[r.g],pipes:[a.d],styles:[""]}),t}()},VEwN:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("cqs0"),s=i("iyZ4"),c=i("EM62"),u=i("s2Ay"),l=i("2kYt"),h=i("PBFl"),f=i("Y2X+"),p=i("csyo"),b=i("pynj"),v=i("K9kF");function y(t,e){1&t&&c.Nb(0,"mat-spinner",6)}var A=function(){return["recent","vo","expiration","menu"]};function w(t,e){if(1&t){var i=c.Tb();c.Sb(0,"div",7),c.Sb(1,"perun-web-apps-debounce-filter",8),c.Zb("filter",(function(t){return c.xc(i),c.dc().applyFilter(t)})),c.ec(2,"translate"),c.Rb(),c.Sb(3,"perun-web-apps-groups-list",9),c.Zb("page",(function(t){return c.xc(i),c.dc().pageChanged(t)})),c.Rb(),c.Rb()}if(2&t){var n=c.dc();c.Ab(1),c.lc("placeholder",c.fc(2,8,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),c.Ab(2),c.kc("pageSize",n.pageSize)("groups",n.unAssignedGroups)("selection",n.selection)("filter",n.filterValue)("hideColumns",c.oc(10,A))("disableRouting",!0)("disableMembers",!1)}}var _=function(){var t=function(){function t(e,i,n,r,a,c,u,l){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourceManager=a,this.tableConfigService=c,this.groupService=u,this.guiAuthResolver=l,this.loading=!1,this.checkGroups=!1,this.selection=new o.c(!0,[]),this.filterValue="",this.tableId=s.p}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resource=this.data.resource,this.resourceManager.getAssignedGroups(this.resource.id).subscribe((function(e){t.groupService.getAllGroups(t.resource.voId).subscribe((function(i){t.unAssignedGroups=i;var n,r=d(e);try{for(r.s();!(n=r.n()).done;){var a,o=n.value,s=d(i);try{for(s.s();!(a=s.n()).done;){var c=a.value;o.id===c.id&&t.unAssignedGroups.splice(t.unAssignedGroups.indexOf(c),1)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){r.e(u)}finally{r.f()}t.loading=!1}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onAdd",value:function(){var t=this;if(this.checkGroups);else{this.loading=!0;var e,i=[],n=d(this.selection.selected);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}this.resourceManager.assignGroupsToResource(i,this.resource.id).subscribe((function(){t.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"canAddGroups",value:function(){var t=this,e=!0;return this.selection.selected.forEach((function(i){t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[t.resource,i])||(e=!1)})),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(r.l),c.Mb(u.e),c.Mb(a.m),c.Mb(s.pb),c.Mb(a.h),c.Mb(r.h))},t.\u0275cmp=c.Gb({type:t,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],decls:14,vars:19,consts:[["mat-dialog-title",""],["class","mr-auto ml-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","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","hideColumns","disableRouting","disableMembers","page"]],template:function(t,e){1&t&&(c.Sb(0,"div"),c.Sb(1,"h1",0),c.Jc(2),c.ec(3,"translate"),c.Rb(),c.Hc(4,y,1,0,"mat-spinner",1),c.Hc(5,w,4,11,"div",2),c.Sb(6,"div",3),c.Sb(7,"button",4),c.Zb("click",(function(){return e.onCancel()})),c.Jc(8),c.ec(9,"translate"),c.Rb(),c.Sb(10,"button",5),c.Zb("click",(function(){return e.onAdd()})),c.ec(11,"translate"),c.Jc(12),c.ec(13,"translate"),c.Rb(),c.Rb(),c.Rb()),2&t&&(c.Cb(e.theme),c.Ab(2),c.Kc(c.fc(3,11,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),c.Ab(2),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading),c.Ab(3),c.Lc(" ",c.fc(9,13,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),c.Ab(2),c.lc("matTooltip",c.fc(11,15,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_TOOLTIP")),c.kc("disabled",0===e.selection.selected.length||!e.canAddGroups()||e.loading)("matTooltipDisabled",e.canAddGroups()),c.Ab(2),c.Lc(" ",c.fc(13,17,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))},directives:[n.j,l.t,n.c,h.b,f.a,p.c,n.g,b.a,v.a],pipes:[u.d],styles:[""]}),t}()},VFai:function(t,e,i){"use strict";i.d(e,"a",(function(){return O}));var n=i("4sdY"),r=i("X2Q7"),a=i("8clQ"),o=i("iyZ4"),s=i("cqs0"),c=i("AtkZ"),u=i("49Zq"),l=i("EM62"),h=i("OZ4H"),d=i("EtYo"),f=i("bFHC"),p=i("2kYt"),b=i("0XDM"),v=i("PBFl"),y=i("A8Ay"),A=i("csyo"),w=i("w+DT"),_=i("s2Ay");function S(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-refresh-button",9),l.Zb("refresh",(function(){return l.xc(i),l.dc().refreshTable()})),l.Rb()}}function k(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",10),l.Zb("click",(function(){return l.xc(i),l.dc().onCreate()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&t&&(l.Ab(1),l.Kc(l.fc(2,1,"FACILITY_MANAGEMENT.CREATE")))}function E(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",11),l.Zb("click",(function(){return l.xc(i),l.dc().onDelete()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}if(2&t){var n=l.dc();l.kc("disabled",0===n.selection.selected.length),l.Ab(1),l.Kc(l.fc(2,2,"FACILITY_MANAGEMENT.DELETE"))}}function R(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-immediate-filter",12),l.Zb("filter",(function(t){return l.xc(i),l.dc().applyFilter(t)})),l.Rb()}2&t&&l.kc("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER")}function C(t,e){1&t&&l.Nb(0,"mat-spinner",13)}function T(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-facilities-list",14),l.Zb("page",(function(t){return l.xc(i),l.dc().pageChanged(t)})),l.Rb()}if(2&t){var n=l.dc();l.kc("pageSize",n.pageSize)("selection",n.selection)("filterValue",n.filterValue)("facilities",n.facilities)("recentIds",n.recentIds)}}var I=function(){return{color:"black"}},O=function(){var t=function(){function t(e,i,n,r){g(this,t),this.facilityManager=e,this.sideMenuService=i,this.tableConfigService=n,this.dialog=r,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=o.B,this.selection=new s.c(!1,[])}return m(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"ngAfterViewChecked",value:function(){this.sideMenuService.setFacilityMenuItems([])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe((function(e){t.selection.clear(),t.facilities=e,t.recentIds=Object(a.r)("facilities"),t.loading=!1}))}},{key:"onCreate",value:function(){var t=this,e=Object(a.o)();e.width="800px",e.data={theme:"facility-theme"},this.dialog.open(c.a,e).afterClosed().subscribe((function(e){e&&(t.loading=!0,t.refreshTable())}))}},{key:"onDelete",value:function(){var t=this,e=Object(a.o)();e.width="650px",e.data={facility:this.selection.selected[0],theme:"facility-theme"},this.dialog.open(u.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="FacilitySelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Mb(r.g),l.Mb(n.a),l.Mb(o.pb),l.Mb(h.b))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("router-component",!0)},decls:12,vars:11,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",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","selection","filterValue","facilities","recentIds","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","selection","filterValue","facilities","recentIds","page"]],template:function(t,e){1&t&&(l.Sb(0,"div",0),l.Nb(1,"perun-web-apps-back-button"),l.Sb(2,"h1",1),l.Nb(3,"mat-icon",2),l.Jc(4),l.ec(5,"translate"),l.Rb(),l.Hc(6,S,1,0,"perun-web-apps-refresh-button",3),l.Hc(7,k,3,3,"button",4),l.Hc(8,E,3,4,"button",5),l.Hc(9,R,1,2,"perun-web-apps-immediate-filter",6),l.Hc(10,C,1,0,"mat-spinner",7),l.Hc(11,T,1,5,"perun-web-apps-facilities-list",8),l.Rb()),2&t&&(l.Ab(3),l.kc("ngStyle",l.oc(10,I)),l.Ab(1),l.Lc(" ",l.fc(5,8,"FACILITY_MANAGEMENT.TITLE")," "),l.Ab(2),l.kc("ngIf",!e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading))},directives:[d.a,f.a,p.w,p.t,b.a,v.b,y.a,A.c,w.a],pipes:[_.d],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t}()},VMyb:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62"),r=i("OZ4H"),a=i("PBFl"),o=i("s2Ay"),s=function(){var t=function(){function t(e){g(this,t),this.dialogRef=e}return m(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.i))},t.\u0275cmp=n.Gb({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(n.Sb(0,"h1",0),n.Jc(1),n.ec(2,"translate"),n.Rb(),n.Sb(3,"div",1),n.Sb(4,"div",2),n.Jc(5),n.ec(6,"translate"),n.Rb(),n.Sb(7,"div"),n.Jc(8),n.ec(9,"translate"),n.Rb(),n.Sb(10,"div",3),n.Jc(11),n.ec(12,"translate"),n.Rb(),n.Rb(),n.Sb(13,"div",4),n.Sb(14,"button",5),n.Zb("click",(function(){return e.onCancel()})),n.Jc(15),n.ec(16,"translate"),n.Rb(),n.Sb(17,"button",6),n.Zb("click",(function(){return e.submit()})),n.Jc(18),n.ec(19,"translate"),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),n.Ab(4),n.Kc(n.fc(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")),n.Ab(3),n.Kc(n.fc(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),n.Ab(3),n.Kc(n.fc(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),n.Ab(4),n.Lc(" ",n.fc(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),n.Ab(3),n.Lc(" ",n.fc(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},directives:[r.j,r.g,r.c,a.b],pipes:[o.d],styles:[""]}),t}()},VYu3:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),r=i("FcRk"),a=i("qvOF"),o=i("wBUr"),s=i("s2Ay"),c=function(){var t=function(){function t(){g(this,t),this.addedTag=new n.o,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}return m(t,[{key:"ngOnInit",value:function(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}},{key:"getApplicationRelatedTags",value:function(){var t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),this.applicationRelatedTags=t}},{key:"getUserRelatedTags",value:function(){var t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}},{key:"getValidationLinksUsersTags",value:function(){var t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}},{key:"getApplicationLinksUsersTags",value:function(){var t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}},{key:"getApplicationLinksAdministratorsTags",value:function(){var t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}},{key:"getPerunLinksAdministratorsTags",value:function(){var t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}},{key:"getUserInvitationsTags",value:function(){var t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}},{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"app-alert",0),n.Jc(1),n.ec(2,"translate"),n.Rb(),n.Sb(3,"div",1),n.Sb(4,"div",2),n.Jc(5),n.ec(6,"translate"),n.Rb(),n.Sb(7,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(8,"div",4),n.Jc(9),n.ec(10,"translate"),n.Rb(),n.Sb(11,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(12,"div",4),n.Jc(13),n.ec(14,"translate"),n.Rb(),n.Sb(15,"div",5),n.Jc(16),n.ec(17,"translate"),n.Rb(),n.Sb(18,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(19,"div",4),n.Jc(20),n.ec(21,"translate"),n.Rb(),n.Sb(22,"div",5),n.Jc(23),n.ec(24,"translate"),n.Rb(),n.Sb(25,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(26,"div",4),n.Jc(27),n.ec(28,"translate"),n.Rb(),n.Sb(29,"div",5),n.Jc(30),n.ec(31,"translate"),n.Rb(),n.Sb(32,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(33,"div",4),n.Jc(34),n.ec(35,"translate"),n.Rb(),n.Sb(36,"div",5),n.Jc(37),n.ec(38,"translate"),n.Rb(),n.Sb(39,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Sb(40,"div",4),n.Jc(41),n.ec(42,"translate"),n.Rb(),n.Sb(43,"div",5),n.Jc(44),n.ec(45,"translate"),n.Rb(),n.Sb(46,"app-tag-section",3),n.Zb("addedTag",(function(t){return e.addTag(t)})),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),n.Ab(4),n.Lc("",n.fc(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),":"),n.Ab(2),n.kc("tags",e.applicationRelatedTags),n.Ab(2),n.Lc("",n.fc(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),":"),n.Ab(2),n.kc("tags",e.userRelatedTags),n.Ab(2),n.Lc("",n.fc(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.validationLinksUsersTags),n.Ab(2),n.Lc("",n.fc(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.applicationLinksUsersTags),n.Ab(2),n.Lc("",n.fc(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.applicationLinksAdministratorsTags),n.Ab(2),n.Lc("",n.fc(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.perunLinksAdministratorsTags),n.Ab(2),n.Lc("",n.fc(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),":"),n.Ab(3),n.Lc(" ",n.fc(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),n.Ab(2),n.kc("tags",e.userInvitationsTags))},directives:[r.a,a.b,o.a],pipes:[s.d],styles:[".scrollable[_ngcontent-%COMP%]{height:380px;overflow:auto}"]}),t}()},VvXq:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var r=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r}return m(i,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?n(h(i.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return n(h(i.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),i}(i("EWqr").a),o=new(function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n visible",Object(f.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(f.m)("* => void, * => hidden",Object(f.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(f.l)({opacity:0})))])},y=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this))._ngZone=t,o._elementRef=n,o._changeDetectorRef=r,o.snackBarConfig=a,o._destroyed=!1,o._onExit=new h.a,o._onEnter=new h.a,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?null:"status":"alert",o}return m(i,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.fromState,i=t.toState;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(d.a)(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),i}(r.a);return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.A),c.Mb(c.l),c.Mb(c.h),c.Mb(b))},t.\u0275cmp=c.Gb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&c.Dc(r.c,!0),2&t&&c.sc(i=c.ac())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&c.Fc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(c.Bb("role",e._role),c.Gc("@state",e._animationState))},features:[c.xb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&c.Hc(0,p,0,0,"ng-template",0)},directives:[r.c],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[v.snackBarState]}}),t}(),A=function(){var t=function t(){g(this,t)};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[n.f,r.i,o.c,l.c,u.i],u.i]}),t}()},"W5/Z":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("Ssnw"),r=i("EM62"),a=i("s2Ay"),o=function(){var t=function(){function t(e,i){g(this,t),this.translate=e,this.storage=i}return m(t,[{key:"transform",value:function(t,e){var i=this.storage.get("custom_labels");if(i)for(var n=0,r=Object.keys(i);n0&&void 0!==arguments[0]?arguments[0]:{};g(this,t),this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials,this.encoder=e.encoder}return m(t,[{key:"selectHeaderContentType",value:function(t){var e=this;if(0!==t.length){var i=t.find((function(t){return e.isJsonMime(t)}));return void 0===i?t[0]:i}}},{key:"selectHeaderAccept",value:function(t){var e=this;if(0!==t.length){var i=t.find((function(t){return e.isJsonMime(t)}));return void 0===i?t[0]:i}}},{key:"isJsonMime",value:function(t){var e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}]),t}(),P=((S=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"convertAttributeToNonunique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/convertAttributeToNonunique",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"convertAttributeToUnique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/convertAttributeToUnique",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/createAttribute",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/deleteAttribute",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinitions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("attributes[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/deleteAttributes",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAttributeDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributesDefinition",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAttribute",value:function(t,e,i,n,r,a,o,s,c,u,l){var h=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",d=arguments.length>12&&void 0!==arguments[12]&&arguments[12],f=new T.e({encoder:this.encoder});null!=t&&(f=f.set("attributeName",t)),null!=e&&(f=f.set("attributeId",e)),null!=i&&(f=f.set("facility",i)),null!=n&&(f=f.set("user",n)),null!=r&&(f=f.set("vo",r)),null!=a&&(f=f.set("resource",a)),null!=o&&(f=f.set("member",o)),null!=s&&(f=f.set("group",s)),null!=c&&(f=f.set("host",c)),null!=u&&(f=f.set("userExtSource",u)),null!=l&&(f=f.set("key",l));var p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var g="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+g)}var b=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==b&&(p=p.set("Accept",b)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/any",{params:f,withCredentials:this.configuration.withCredentials,headers:p,observe:h,reportProgress:d})}},{key:"getAttributeDefinitionById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeDefinitionById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeDefinition",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionsByNamespace",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributesDefinitionByNamespace",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("format",t)),null!=e&&(r=r.set("attrName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAttributeModulesDependenciesGraphText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("format",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeModulesDependenciesGraphText",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeRights",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributesDefinitionWithRights",value:function(t,e,i,n,r,a,o,s){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",u=arguments.length>9&&void 0!==arguments[9]&&arguments[9],l=new T.e({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=r&&(l=l.set("resource",r)),null!=a&&(l=l.set("facility",a)),null!=o&&(l=l.set("host",o)),null!=s&&(l=l.set("userExtSource",s));var h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var d="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+d)}var f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(h=h.set("Accept",f)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights",{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}},{key:"getEntitylessAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-entityless",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getEntitylessAttributesByKey",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("key",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/key",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesWithKeys",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("attrName",t)),e&&e.forEach((function(t){r=r.append("keys[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessAttributesWithKeys",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getEntitylessKeys",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessKeys",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-facility",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilityAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-facility",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilityResourceUserMemberAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("user",i)),null!=n&&(o=o.set("member",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-r-u-m",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getFacilityUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-u",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-group",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-group",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/g",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/g-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("attributeId",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-group-resource",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("attributeName",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-group-resource",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/group-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getHostAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-host",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getHostAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-host",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/h",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/h-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getLogins",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getLogins",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAndUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-wu",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getMemberAndUserAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),e&&e.forEach((function(t){a=a.append("attrNames[]",t)})),null!=i&&(a=a.set("workWithUserAttributes",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-names-wu",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getMemberAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach((function(t){o=o.append("attrNames[]",t)})),null!=n&&(o=o.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g-names-wu",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getMemberGroupAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("attributeId",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member-group",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("attributeName",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member-group",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getMemberGroupAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach((function(t){a=a.append("attrNames[]",t)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g-names",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("workWithUserAttributes",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r-wu",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach((function(t){o=o.append("attrNames[]",t)})),null!=n&&(o=o.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r-names-wu",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getMemberResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("attributeId",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member-resource",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("attributeName",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member-resource",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRequiredAttributesDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributesDefinition",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/f",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacilityService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-f",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRequiredAttributesFacilityServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");var r=new T.e({encoder:this.encoder});t&&t.forEach((function(t){r=r.append("services[]",t)})),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/ss-f",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRequiredAttributesGroupResourceService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-g",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("host",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-h",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMemberGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("workWithUserAttributes",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m-g",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var s=new T.e({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e)),null!=i&&(s=s.set("group",i)),null!=n&&(s=s.set("member",n)),null!=r&&(s=s.set("workWithUserAttributes",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-g-m",{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getRequiredAttributesMemberGroupService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-g-m",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRequiredAttributesMemberResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("workWithUserAttributes",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m-r",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-m",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRequiredAttributesResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/r",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesResourceService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRequiredAttributesResourceServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");var r=new T.e({encoder:this.encoder});t&&t.forEach((function(t){r=r.append("services[]",t)})),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/ss-r",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRequiredAttributesUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/u",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesUserFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/u-f",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRequiredAttributesVoService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("vo",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-v",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getResourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getResourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getResourceGroupAndGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("workWithGroupAttributes",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-wg",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach((function(t){o=o.append("attrNames[]",t)})),null!=n&&(o=o.set("workWithGroupAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-names-wg",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getResourceGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getResourceGroupMemberAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),n&&n.forEach((function(t){o=o.append("attrNames[]",t)}));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-m-names",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getUserAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-user",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getUserAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-user",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/u",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/u-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-ues",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-ues",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/ues",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/ues-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getUserFacilityAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("attributeId",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-user_facility",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("attributeName",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-user_facility",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/user-facility",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getVoAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-vo",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getVoAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-vo",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/vo-names",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(t,e,i,n,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)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.");var c=new T.e({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=r&&(c=c.set("member",r)),a&&a.forEach((function(t){c=c.append("attributes[]",t)}));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m",null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var s=new T.e({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("resource",e)),null!=i&&(s=s.set("user",i)),null!=n&&(s=s.set("member",n)),r&&r.forEach((function(t){s=s.append("attributes[]",t)}));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m",null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"removeEntitylessAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/e",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeGroupAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeGroupResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("attribute",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/g-r",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach((function(t){a=a.append("attributes[]",t)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g-r",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach((function(t){o=o.append("attributes[]",t)})),null!=n&&(o=o.set("workWithGroupAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"removeHostAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/h",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeHostAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/h",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeMemberAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeMemberAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),e&&e.forEach((function(t){a=a.append("attributes[]",t)})),null!=i&&(a=a.set("workWithUserAttributes",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("attribute",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m-g",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach((function(t){a=a.append("attributes[]",t)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-g",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach((function(t){o=o.append("attributes[]",t)})),null!=n&&(o=o.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"removeMemberResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("attribute",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m-r",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach((function(t){a=a.append("attributes[]",t)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-r",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeResourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeUesAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/ues",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeUserAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeUserExtSourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/ues",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeUserFacilityAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("attribute",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/u-f",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("facility",e)),i&&i.forEach((function(t){a=a.append("attributes[]",t)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/u-f",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeVoAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attribute",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/v",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeVoAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/v",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"setAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributeRights",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setEntitylessAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/entityless",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/facility",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-r-g-u-m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-r-u-m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/group-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/group-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/host",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/h",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member-group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-g-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAndUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-r-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-r",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r-g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupWithGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r-g-wg",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/userExtSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/ues",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/facility-user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/facility-user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/updateAttributeDefinition",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||S)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},S.\u0275prov=O.Ib({token:S,factory:S.\u0275fac,providedIn:"root"}),S),x=((_=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"auditMessagesManagerLog",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("msg",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/AuditMessagesManager/log",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAuditerConsumer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/AuditMessagesManager/createAuditerConsumer",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAuditerConsumers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getAllAuditerConsumers",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuditerMessagesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getAuditerMessagesCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getLastMessageId",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getLastMessageId",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getMessages",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMessagesByCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/getMessagesByCount",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"pollConsumerMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/AuditMessagesManager/pollConsumerMessages",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setLastProcessedId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("consumerName",t)),null!=e&&(r=r.set("lastProcessedId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/AuditMessagesManager/setLastProcessedId",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}}]),t}()).\u0275fac=function(t){return new(t||_)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},_.\u0275prov=O.Ib({token:_,factory:_.\u0275fac,providedIn:"root"}),_),N=((w=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"getAllPolicies",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAllPolicies",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRolesManagementRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAllRolesManagementRules",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuthzAdminGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("role",t)),null!=e&&(a=a.set("complementaryObjectId",e)),null!=i&&(a=a.set("complementaryObjectName",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAdminGroups",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(t,e,i,n,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var c=new T.e({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach((function(t){c=c.append("specificAttributes",t)})),null!=r&&(c=c.set("allUserAttributes",r)),null!=a&&(c=c.set("onlyDirectAdmins",a));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getRichAdmins",{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new T.e({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach((function(t){r=r.append("roles[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getFacilitiesWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getGroupRoleNames",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/getGroupRoles",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new T.e({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach((function(t){r=r.append("roles[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getGroupsWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getLoggedUser",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getLoggedUser",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMembersWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new T.e({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach((function(t){r=r.append("roles[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getMembersWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getPerunPrincipal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getPerunPrincipal",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPrincipalRoleNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getPrincipalRoleNames",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new T.e({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach((function(t){r=r.append("roles[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getResourcesWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new T.e({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach((function(t){r=r.append("roles[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getUserRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getUserRoleNames",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("userId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getUserRoles",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new T.e({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach((function(t){r=r.append("roles[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getVosWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"isFacilityAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isFacilityAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isGroupAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isGroupAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isPerunAdmin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/isPerunAdmin",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isVoAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isVoAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"keepAlive",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/keepAlive",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"loadAuthorizationComponents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/loadAuthorizationComponents",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"setRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/setRole/g-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/setRole/u-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/unsetRole/g-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/unsetRole/u-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||w)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},w.\u0275prov=O.Ib({token:w,factory:w.\u0275fac,providedIn:"root"}),w),L=((A=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"createAutorship",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createAuthorship",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryCat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createCategory/cat",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryNR",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createCategory/n-r",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createPublication",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createPublicationSystem",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/createThanks",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAuthorship",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter publication was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAuthorship.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("publication",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deleteAuthorship",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deleteCategory",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deletePublication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deletePublicationSystem",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/cabinetManager/deleteThanks",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findAllAuthors",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findAllAuthors",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"findAuthorsByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findAuthorsByPublicationId",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findExternalPublications",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=n&&(o=o.set("pubSysNamespace",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findExternalPublications",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"findNewAuthors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findNewAuthors",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findPublicationById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationsByFilter",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");var a=new T.e({encoder:this.encoder});null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=t&&(a=a.set("userId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findPublicationsByFilter",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"findPublicationsByGUIFilter",value:function(t,e,i,n,r,a,o,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"body",l=arguments.length>10&&void 0!==arguments[10]&&arguments[10],h=new T.e({encoder:this.encoder});null!=t&&(h=h.set("title",t)),null!=e&&(h=h.set("isbn",e)),null!=i&&(h=h.set("doi",i)),null!=n&&(h=h.set("id",n)),null!=r&&(h=h.set("year",r)),null!=a&&(h=h.set("category",a)),null!=o&&(h=h.set("yearSince",o)),null!=s&&(h=h.set("yearTill",s)),null!=c&&(h=h.set("userId",c));var d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var f="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+f)}var p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findPublicationsByGUIFilter",{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}},{key:"findSimilarPublications",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("title",t)),null!=e&&(a=a.set("doi",e)),null!=i&&(a=a.set("isbn",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/findSimilarPublications",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getCategories",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/getCategories",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPublicationSystems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/getPublicationSystems",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRank",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/getRank",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichThanksByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/cabinetManager/getRichThanksByPublicationId",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"lockPublications",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/lockPublications",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/updateCategory",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/updatePublication",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/cabinetManager/updatePublicationSystem",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||A)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},A.\u0275prov=O.Ib({token:A,factory:A.\u0275fac,providedIn:"root"}),A),F=((y=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"getCurrentDatabaseVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/databaseManager/getCurrentDatabaseVersion",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseDriverInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/databaseManager/getDatabaseDriverInformation",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/databaseManager/getDatabaseInformation",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTimeOfQueryPerformance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/databaseManager/getTimeOfQueryPerformance",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}()).\u0275fac=function(t){return new(t||y)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},y.\u0275prov=O.Ib({token:y,factory:y.\u0275fac,providedIn:"root"}),y),z=((v=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"addExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/addExtSource/g-s",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/addExtSource/v-s",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createExtSourceFromExtSourceObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/extSourcesManager/createExtSource/es",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createExtSourceWithNameType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("type",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/createExtSource/n-t",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/deleteExtSource",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getExtSourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getExtSourceByName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getExtSources",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGroupExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getGroupExtSources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/getVoExtSources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"loadExtSourcesDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/extSourcesManager/loadExtSourcesDefinitions",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/removeExtSource/g-s",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/extSourcesManager/removeExtSource/v-s",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}}]),t}()).\u0275fac=function(t){return new(t||v)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},v.\u0275prov=O.Ib({token:v,factory:v.\u0275fac,providedIn:"root"}),v),H=((b=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"addFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/group/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/user/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addFacilityContact",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddFacilityContact was null or undefined when calling addFacilityContact.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/addFacilityContact",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addFacilityContacts",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddFacilityContacts was null or undefined when calling addFacilityContacts.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/addFacilityContacts",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/f-o-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/o-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addHost",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHost",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addHostByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHost/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach((function(t){r=r.append("hostnames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHosts",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach((function(t){r=r.append("hostnames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHosts/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"assignSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/assignSecurityTeam",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"assignSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyAttributesByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/src-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyManagers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyManagersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyManagersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/src-dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyManagersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/src-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyOwners",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyOwnersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/src-dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/src-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/createFacility",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("force",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/deleteFacility",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/deleteFacility/f-name",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllContactGroupNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllContactGroupNames",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllowedGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("vo",e)),null!=i&&(a=a.set("service",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedGroups",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getAllowedGroupsByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("vo",e)),null!=i&&(a=a.set("service",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedGroups/f-name",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getAllowedRichGroupsWithAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach((function(t){o=o.append("attrNames[]",t)})),null!=i&&(o=o.set("vo",i)),null!=n&&(o=o.set("service",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedRichGroupsWithAttributes",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getAllowedRichGroupsWithAttributesByFacilityName",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach((function(t){o=o.append("attrNames[]",t)})),null!=i&&(o=o.set("vo",i)),null!=n&&(o=o.set("service",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getAllowedUsersOfFacility",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("vo",e)),null!=i&&(a=a.set("service",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedUsers/v-f-s",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getAllowedUsersOfFacilityByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("vo",e)),null!=i&&(a=a.set("service",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedUsers/v-f-s/f-name",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getAllowedVos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/getAllowedVos",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedVosByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/getAllowedVos/f-name",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/group",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/member",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/service",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/user",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesByAssignedServiceForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResourcesByAssignedService",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAssignedResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResources/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedRichResources/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeams",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedSecurityTeams",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeamsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedSecurityTeams/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedUsers",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAssignedUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedUsers/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getBansForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBansForFacility",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBansForUser",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getEnrichedFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getEnrichedHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getEnrichedHosts",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilitiesByAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("attributeName",t)),null!=e&&(r=r.set("attributeValue",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByAttribute",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilitiesByDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByDestination",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByHostName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByHostName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesWhereUserIsAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdminGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdmins",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilityAdminUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdmins/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilityBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBan",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityByName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityContactGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroup.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getFacilityContactGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("name",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroup",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilityContactGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupByFacilityName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getFacilityContactGroupByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("name",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroup/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacilityContactGroupsForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupsForFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/facility",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityContactGroupsForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupsForFacilityByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/facility/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityContactGroupsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFacilityContactGroupsForGroup.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/group",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityContactGroupsForOwner",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getFacilityContactGroupsForOwner.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/owner",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityContactGroupsForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityContactGroupsForUser.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/user",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityForHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityForHost",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwners",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwners",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwnersByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwners/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHosts",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHosts",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHosts/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsByHostname",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsCount",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCountByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsCount/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerFacilities",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwnerFacilities",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getRichFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeBanByUserIdFacilityId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/group/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/user/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeBan/byId",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeFacilityContact",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputRemoveFacilityContact was null or undefined when calling removeFacilityContact.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/removeFacilityContact",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"removeFacilityContacts",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputRemoveFacilityContacts was null or undefined when calling removeFacilityContacts.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/removeFacilityContacts",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"removeFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/f-o-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/o-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHost",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHostByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHostByHostname",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach((function(t){r=r.append("hosts[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHosts",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach((function(t){r=r.append("hosts[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHosts/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeSecurityTeam",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"setFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/updateFacility",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/updateBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||b)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},b.\u0275prov=O.Ib({token:b,factory:b.\u0275fac,providedIn:"root"}),b),B=((p=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"getFacilityAdminGroupsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdminGroups/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||p)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},p.\u0275prov=O.Ib({token:p,factory:p.\u0275fac,providedIn:"root"}),p),j=((f=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"addGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("groups[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addGroupsToAutoRegistration",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"addMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");var r=new T.e({encoder:this.encoder});t&&t.forEach((function(t){r=r.append("groups[]",t)})),null!=e&&(r=r.set("member",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addMember",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach((function(t){r=r.append("members[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addMembers",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroupUnion",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createGroupWithParentGroupNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("parentGroup",t)),null!=e&&(a=a.set("name",e)),null!=i&&(a=a.set("description",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroup/pg-n-d",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("name",e)),null!=i&&(a=a.set("description",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroup/v-n-d",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"deleteGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("force",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");var r=new T.e({encoder:this.encoder});t&&t.forEach((function(t){r=r.append("groups[]",t)})),null!=e&&(r=r.set("forceDelete",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroups",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteGroupsFromAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("groups[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroupsFromAutoRegistration",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceAllSubGroupsSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupStructureSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceGroupStructureSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceGroupSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllMemberGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllRichGroupsWithAttributesByNames",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupByName",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCount",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByGroupStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCountsByGroupStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByVoStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCountsByVoStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupUnions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("reverseDirection",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupUnions",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupsByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupsByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupsToAutoRegistration",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getMemberGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getMemberRichGroupsWithAttributesByNames",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("groupId",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getRichGroupByIdWithAttributesByNames",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"isGroupMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/isGroupMember",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new T.e({encoder:this.encoder});null!=e&&(r=r.set("destinationGroup",e)),null!=t&&(r=r.set("movingGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/moveGroup/dg-mg",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeGroupUnion",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");var r=new T.e({encoder:this.encoder});t&&t.forEach((function(t){r=r.append("groups[]",t)})),null!=e&&(r=r.set("member",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeMember",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach((function(t){r=r.append("members[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeMembers",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"updateGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/groupsManager/updateGroup",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||f)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},f.\u0275prov=O.Ib({token:f,factory:f.\u0275fac,providedIn:"root"}),f),G=((d=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"createMemberForCandidate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/c",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberFromExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/extSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSpecificMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSpecificMember",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMember/withFullName",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMembers",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembersFromCSV",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMembersFromCSV",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/deleteMember",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("members[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/deleteMembers",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findCompleteRichMembersByAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");var a=new T.e({encoder:this.encoder});t&&t.forEach((function(t){a=a.append("attrsNames[]",t)})),null!=e&&(a=a.set("searchString",e)),i&&i.forEach((function(t){a=a.append("allowedStatuses[]",t)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/attrs",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(t,e,i,n,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var c=new T.e({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach((function(t){c=c.append("attrsNames[]",t)})),r&&r.forEach((function(t){c=c.append("allowedStatuses[]",t)})),a&&a.forEach((function(t){c=c.append("allowedGroupStatuses[]",t)})),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/g",{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"findCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach((function(t){o=o.append("attrsNames[]",t)})),n&&n.forEach((function(t){o=o.append("allowedStatuses[]",t)})),null!=i&&(o=o.set("searchString",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/v",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"findMembersInVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("searchString",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findMembersInVo",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach((function(t){o=o.append("attrsNames[]",t)})),null!=i&&(o=o.set("searchString",i)),null!=n&&(o=o.set("onlySponsored",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/v-sponsored",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getAllNamespacesRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllNamespacesRules",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllSponsoredMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllSponsoredMembersAndTheirSponsors",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getCompleteRichMembersForGroup",value:function(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");var s=new T.e({encoder:this.encoder});null!=t&&(s=s.set("group",t)),i&&i.forEach((function(t){s=s.append("allowedStatuses[]",t)})),n&&n.forEach((function(t){s=s.append("allowedGroupStatuses[]",t)})),null!=e&&(s=s.set("lookingInParentGroup",e)),r&&r.forEach((function(t){s=s.append("attrsNames[]",t)}));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/g",{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getCompleteRichMembersForGroupResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach((function(t){o=o.append("attrsNames[]",t)})),n&&n.forEach((function(t){o=o.append("allowedStatuses[]",t)}));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/g-r",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getCompleteRichMembersForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach((function(t){a=a.append("allowedStatuses[]",t)})),i&&i.forEach((function(t){a=a.append("attrsNames[]",t)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/v",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extLogin",e)),null!=i&&(a=a.set("extSourceName",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberByExtSourceNameAndExtLogin",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMemberById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberByUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberByUser",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembers",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getMembersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersByUser",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersCount",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/getMembersPage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getMembersWithStatusCount",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersCount/status",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getRichMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMember",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMemberWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMemberWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMembersByIds",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new T.e({encoder:this.encoder});t&&t.forEach((function(t){r=r.append("ids[]",t)})),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMembersByIds",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsoredMembers/v",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsoredMembersAndTheirSponsors",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getSponsorsByMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsors/member",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getSponsorsByVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach((function(t){o=o.append("attrNames[]",t)}));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsors/vo",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"moveMembership",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("sourceUser",e)),null!=i&&(a=a.set("targetUser",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/moveMembership",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"removeSponsor",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/removeSponsor",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"sendAccountActivationLinkEmail",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sendAccountActivationLinkEmail",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sendPasswordResetLinkEmail",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sendPasswordResetLinkEmail",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"setSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/setSponsoredMember",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSponsorshipForMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("sponsoredMember",t)),null!=e&&(a=a.set("sponsor",e)),null!=i&&(a=a.set("validityTo",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/setSponsorshipForMember",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"setStatus",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("status",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/setStatus",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"sponsorMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("sponsor",e)),null!=i&&(a=a.set("validityTo",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sponsorMember",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("sponsor",e)),null!=i&&(a=a.set("validityTo",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/updateSponsorshipValidity",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"validateMemberAsync",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/validateMemberAsync",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||d)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},d.\u0275prov=O.Ib({token:d,factory:d.\u0275fac,providedIn:"root"}),d),U=((h=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"createOwner",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/ownersManager/createOwner",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("owner",t)),null!=e&&(r=r.set("force",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/ownersManager/deleteOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAllOwners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/ownersManager/getOwners",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getOwnerById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/ownersManager/getOwnerById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/ownersManager/getOwnerByName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||h)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},h.\u0275prov=O.Ib({token:h,factory:h.\u0275fac,providedIn:"root"}),h),K=((l=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"sentMessageToRTWithMemberQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("memberId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sentMessageToRTWithQueue",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("queue",t)),null!=e&&(a=a.set("subject",e)),null!=i&&(a=a.set("text",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/q",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("subject",e)),null!=i&&(a=a.set("text",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/v",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}}]),t}()).\u0275fac=function(t){return new(t||l)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},l.\u0275prov=O.Ib({token:l,factory:l.\u0275fac,providedIn:"root"}),l),V=((u=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"addApplicationMailForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/addApplicationMail/g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addApplicationMailForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/addApplicationMail/v",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"approveApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/approveApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"consolidateIdentityUsingToken",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/consolidateIdentityUsingToken",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"copyFormFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/groupToGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyFormFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/groupToVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyFormFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/voToGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyFormFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/voToVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/groupToGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/groupToVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/voToGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/voToVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createApplicationFormInGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/createApplicationForm/group",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createApplicationFormInVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/createApplicationForm/vo",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplicationMailForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("id",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplicationMail/g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteApplicationMailForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("id",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplicationMail/v",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getApplicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationDataById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationDataById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationMails/g",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationMails/v",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationsForGroup",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach((function(t){o=o.append("state[]",t)})),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForGroup",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getApplicationsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForMember",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getApplicationsForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach((function(t){o=o.append("state[]",t)})),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForVo",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getConsolidatorToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getConsolidatorToken",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/group",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForGroupWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("type",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/group-type",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForVoWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("type",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/vo-type",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationForm/group",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationForm/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"rejectApplication",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("reason",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/rejectApplication",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"sendInvitation",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");var o=new T.e({encoder:this.encoder});null!=i&&(o=o.set("voId",i)),null!=n&&(o=o.set("name",n)),null!=t&&(o=o.set("email",t)),null!=e&&(o=o.set("language",e));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sendInvitationForGroup",value:function(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");var s=new T.e({encoder:this.encoder});null!=i&&(s=s.set("voId",i)),null!=n&&(s=s.set("groupId",n)),null!=r&&(s=s.set("name",r)),null!=t&&(s=s.set("email",t)),null!=e&&(s=s.set("language",e));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/g",null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"sendInvitationGroupToExistingUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("userId",t)),null!=e&&(a=a.set("voId",e)),null!=i&&(a=a.set("groupId",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/u-g",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"sendMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/sendMessage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSendingEnabled",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/setSendingEnabled",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"submitApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/submitApplication",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateApplicationMail",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateApplicationMail",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateForm",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItemData",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItemsData",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItems/group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItems/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"verifyApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/verifyApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||u)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},u.\u0275prov=O.Ib({token:u,factory:u.\u0275fac,providedIn:"root"}),u),q=((c=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"addAdminToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addAdmin/r-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addAdminToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addAdmin/r-u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addResourceSelfServiceUser",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"assignGroupToResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupToResource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"assignGroupToResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach((function(t){r=r.append("resources[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupToResources",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"assignGroupsToResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");var r=new T.e({encoder:this.encoder});t&&t.forEach((function(t){r=r.append("groups[]",t)})),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupsToResource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"assignResourceTagToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/assignResourceTagToResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"assignService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignService",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"assignServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach((function(t){r=r.append("services[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignServices",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"assignServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignServicesPackage",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"copyResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/copyResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i)),null!=n&&(o=o.set("description",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/createResource",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"createResourceTagWithResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/createResourceTag/resourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResourceTagWithTagName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("tagName",t)),null!=e&&(r=r.set("vo",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/createResourceTag/tagName",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteAllResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteAllResources",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteResource",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/deleteResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAdminGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAdmins",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAdmins",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAllResourcesByResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/getAllResourcesByResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllResourcesTagsForResource",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllResourcesTagsForVo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/all",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedUsersOfResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("member",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAssignedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedResources/g",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedResources/m",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/g",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/m",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMemberService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("service",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/s-m",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAssignedServicesToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedServices",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBansForMember",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBansForResource",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedResourceById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("id",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourceById",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourcesForFacility",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourcesForVo",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getFacility",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBan",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourceByName",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesCountForAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesCount/all",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesCountForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesCount/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getResourcesWhereGroupIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("vo",e)),null!=i&&(a=a.set("group",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/group",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("vo",e)),null!=i&&(a=a.set("user",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getRichAdmins",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach((function(t){o=o.append("specificAttributes",t)})),null!=i&&(o=o.set("allUserAttributes",i)),null!=n&&(o=o.set("onlyDirectAdmins",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichAdmins",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRichResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getVo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeAllResourceTagsFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeBanByMemberAndResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeBan/member-resource-id",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeGroupAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAdmin/r-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeGroupFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupFromResource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeGroupFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach((function(t){r=r.append("resources[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupFromResources",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeGroupsFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");var r=new T.e({encoder:this.encoder});t&&t.forEach((function(t){r=r.append("groups[]",t)})),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupsFromResource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeBan/id",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeResourceTagFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/removeResourceTagFromResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"removeService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeService",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach((function(t){r=r.append("services[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeServices",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeServicesPackage",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeUserAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAdmin/r-u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"setResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||c)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},c.\u0275prov=O.Ib({token:c,factory:c.\u0275fac,providedIn:"root"}),c),J=((s=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"addDestination",value:function(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");var s=new T.e({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e)),null!=i&&(s=s.set("destination",i)),null!=n&&(s=s.set("type",n)),null!=r&&(s=s.set("propagationType",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addDestination",null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"addDestinationToMultipleServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/addDestination",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addDestinationsForAllServicesOnFacility",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("type",i)),null!=n&&(o=o.set("propagationType",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"addRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addRequiredAttribute",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addRequiredAttributes",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addServiceToServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/addServiceToServicesPackage",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"blockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockAllServicesOnDestination/d",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"blockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockAllServicesOnFacility",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockServiceOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockServiceOnDestination/s-d",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"blockServiceOnDestinationWithNameAndType",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("destinationType",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"blockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/blockServiceOnFacility",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("name",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("script",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/createService",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"createServiceWithService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/createService",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/createServicesPackage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackageByNameAndDescription",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/createServicesPackage",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("force",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/deleteService",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"deleteServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/deleteServicesPackage",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/forceServicePropagation",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAllDestinations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDestinations/all",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRichDestinationsForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getAllRichDestinations/f",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichDestinationsForService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getAllRichDestinations/s",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getAssignedResourcesForService",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getAssignedServices",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("filterExpiredMembers",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDataWithGroups",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getDataWithVos",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("filterExpiredMembers",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDataWithVos",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDestinationById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDestinations/s-f",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getDestinationsCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getDestinationsCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getFacilitiesDestinations",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAssignedServicesForGUI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getFacilityAssignedServicesForGUI",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFlatData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("filterExpiredMembers",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getFlatData",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getHashedDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("filterExpiredMembers",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getHashedDataWithGroups",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getHashedHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("filterExpiredMembers",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getHashedHierarchicalData",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("filterExpiredMembers",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getHierarchicalData",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getRichDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getRichDestinations",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getServiceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServiceById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServiceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServiceByName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServices",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServices",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getServicesBlockedOnDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesBlockedOnDestination",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesBlockedOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesBlockedOnFacility",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesByAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesByAttributeDefinition",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesFromServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesFromServicesPackage",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesPackageById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesPackageByName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackages",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/getServicesPackages",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isServiceBlockedOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/isServiceBlockedOnDestination",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"isServiceBlockedOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/servicesManager/isServiceBlockedOnFacility",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"planServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/planServicePropagation",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeAllDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeAllDestinations",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeAllRequiredAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeAllRequiredAttributes",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeDestination",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("destination",i)),null!=n&&(o=o.set("type",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeDestination",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"removeRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeRequiredAttribute",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach((function(t){r=r.append("attributes[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeRequiredAttributes",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeServiceFromServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/removeServiceFromServicesPackage",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockAllServicesOnFacility",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockServiceOnDestinationById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"unblockServiceOnDestinationByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("destinationType",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"unblockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/servicesManager/unblockServiceOnFacility",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"updateService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/updateService",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/servicesManager/updateServicesPackage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||s)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},s.\u0275prov=O.Ib({token:s,factory:s.\u0275fac,providedIn:"root"}),s),W=((o=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"countTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/countTasks",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"deleteTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/deleteTask",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/deleteTaskResultById",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/deleteTaskResults/id",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/deleteTaskResults/name",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllFacilitiesStates",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getAllFacilitiesStates",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("voId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getAllResourcesState",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityServicesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getFacilityServicesState",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getFacilityState",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTask",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getTaskById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResults",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTaskResultsByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsByTask",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("destinations[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsForDestinations",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsForGUIByTask",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTaskAndDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("task",t)),null!=e&&(r=r.set("destination",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsForGUIByTaskAndDestination",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getTaskResultsForGUIByTaskOnlyNewest",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isThereSuchTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/isThereSuchTask",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"listAllTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/listAllTasks",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"listAllTasksForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/tasksManager/listAllTasksForFacility",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"suspendTasksPropagation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/json/tasksManager/suspendTasksPropagation",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||o)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},o.\u0275prov=O.Ib({token:o,factory:o.\u0275fac,providedIn:"root"}),o),Z=((a=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"addSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/addSpecificUserOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addUserExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/addUserExtSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"changeNonAuthzPassword",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter i was null or undefined when calling changeNonAuthzPassword.");if(null==e)throw new Error("Required parameter m was null or undefined when calling changeNonAuthzPassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPassword.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("i",t)),null!=e&&(o=o.set("m",e)),null!=i&&(o=o.set("password",i)),null!=n&&(o=o.set("lang",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/changeNonAuthzPassword",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"changeNonAuthzPasswordByToken",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("token",t)),null!=e&&(a=a.set("password",e)),null!=i&&(a=a.set("lang",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/changeNonAuthzPassword/token",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordResetRequestIsValid/token",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"checkPasswordResetRequestIsValid",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter i was null or undefined when calling checkPasswordResetRequestIsValid.");if(null==e)throw new Error("Required parameter m was null or undefined when calling checkPasswordResetRequestIsValid.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("i",t)),null!=e&&(r=r.set("m",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordResetRequestIsValid",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"checkPasswordStrength",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("password",t)),null!=e&&(r=r.set("namespace",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordStrength",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createAlternativePassword",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("loginNamespace",i)),null!=n&&(o=o.set("password",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/createAlternativePassword",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"createServiceUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/createServiceUser",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAlternativePassword",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("loginNamespace",e)),null!=i&&(a=a.set("passwordId",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/deleteAlternativePassword",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"deleteUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("force",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/deleteUser",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"findRichUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findRichUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findRichUsersWithAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("searchString",t)),e&&e.forEach((function(t){r=r.append("attrsNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findRichUsersWithAttributes",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"findUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getAssignedRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsActive/facility",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("resource",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsActive/resource",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("vo",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsAdmin/u-v",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getGroupsWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsAdmin/u",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getPendingPreferredEmailChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getPendingPreferredEmailChanges",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUserExtSources/u",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUserWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithAttributesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersWithAttributesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("attrsNames[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersWithoutVoWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSpecificUsersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSpecificUsersByUser",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsorsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach((function(t){r=r.append("attrNames[]",t)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSponsorsForMember/member",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach((function(t){o=o.append("attrNames[]",t)}));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSponsorsForMember/vo",{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("extLogin",t)),null!=e&&(r=r.set("extSourceName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserByExtSourceNameAndExtLogin",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getUserById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUsersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersBySpecificUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUsersBySpecificUser",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getVosWhereUserIsAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getVosWhereUserIsMember",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/removeSpecificUserOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeUserExtSource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("userExtSource",e)),null!=i&&(a=a.set("force",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/removeUserExtSource",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");var o=new T.e({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("email",e)),null!=i&&(o=o.set("lang",i)),null!=n&&(o=o.set("linkPath",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/requestPreferredEmailChange",null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"reservePassword",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePassword.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("password",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/reservePassword",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"updateUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/updateUser",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"validatePreferredEmailChange",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter i was null or undefined when calling validatePreferredEmailChange.");if(null==e)throw new Error("Required parameter m was null or undefined when calling validatePreferredEmailChange.");if(null==i)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChange.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("i",t)),null!=e&&(a=a.set("m",e)),null!=i&&(a=a.set("u",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/validatePreferredEmailChange",null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}}]),t}()).\u0275fac=function(t){return new(t||a)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},a.\u0275prov=O.Ib({token:a,factory:a.\u0275fac,providedIn:"root"}),a),Y=((r=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"getGuiConfiguration",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/utils/getGuiConfiguration",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunRPCVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatistics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/utils/getPerunStatistics",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/utils/getPerunStatus",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunSystemTimeInMillis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/utils/getPerunSystemTimeInMillis",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}()).\u0275fac=function(t){return new(t||r)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},r.\u0275prov=O.Ib({token:r,factory:r.\u0275fac,providedIn:"root"}),r),X=((n=function(){function t(e,i,n){g(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new T.d,this.configuration=new M,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new I}return m(t,[{key:"addSponsorRoleToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addSponsorRole/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addSponsorRoleToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addSponsorRole/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addAdmin/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"addVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addAdmin/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createVoWithName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("shortName",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/createVo/withName",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"createVoWithVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/createVo/withVo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("force",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/deleteVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"findCandidates",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("id",t)),null!=e&&(a=a.set("searchString",e)),null!=i&&(a=a.set("maxNumOfResults",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/findCandidates",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("searchString",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/findCandidates/forGroup",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getAllVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAllVos",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getCompleteCandidatesForGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach((function(t){a=a.append("attrNames[]",t)})),null!=i&&(a=a.set("searchString",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getCompleteCandidates/forGroup",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach((function(t){a=a.append("attrNames[]",t)})),null!=i&&(a=a.set("searchString",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getCompleteCandidates/forVo",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getMyVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVos",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRichAdminsForVo",value:function(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var s=new T.e({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e)),i&&i.forEach((function(t){s=s.append("specificAttributes",t)})),null!=n&&(s=s.set("allUserAttributes",n)),null!=r&&(s=s.set("onlyDirectAdmins",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getRichAdmins",{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getVoAdminGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAdminGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"getVoAdminUsers",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var a=new T.e({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),null!=i&&(a=a.set("onlyDirectAdmins",i));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAdmins",{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"getVoBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBanForMember",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBansForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBansForVo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoByShortName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoByShortName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoMembersCountsByStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoMembersCountsByStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var n=new T.e({encoder:this.encoder});t&&t.forEach((function(t){n=n.append("ids[]",t)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVosByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVosCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeSponsorRoleFromGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeSponsorRole/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeSponsorRoleFromUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeSponsorRole/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeAdmin/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");var r=new T.e({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeAdmin/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:n})}},{key:"removeVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeBan",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var n=new T.e({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeBanForMember",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(n=n.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/updateVo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}()).\u0275fac=function(t){return new(t||n)(O.Wb(T.b),O.Wb(D,8),O.Wb(M,8))},n.\u0275prov=O.Ib({token:n,factory:n.\u0275fac,providedIn:"root"}),n),Q={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(k||(k={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(E||(E={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(R||(R={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(C||(C={}));var $,tt=(($=function(){function t(e,i){if(g(this,t),e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!i)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}return m(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:M,useFactory:e}]}}}]),t}()).\u0275mod=O.Kb({type:$}),$.\u0275inj=O.Jb({factory:function(t){return new(t||$)(O.Wb($,12),O.Wb(T.b,8))},providers:[P,x,N,L,F,z,H,B,j,G,U,K,V,q,J,W,Z,Y,X],imports:[[]]}),$)},XAvq:function(t,e,n){"use strict";n.d(e,"a",(function(){return L}));var r=n("EM62"),a=n("QcI7"),o=n("seVz"),s=n("cqs0"),c=n("Iydx"),u=n("8clQ"),l=n("+0js"),h=n("Ssnw"),f=n("OZ4H"),p=n("2kYt"),b=n("qvOF"),v=n("sEIs"),y=n("TQS+"),A=n("PBFl"),w=n("Y2X+"),_=n("XpU2"),S=n("+Tre"),k=n("bFHC"),E=n("FcRk"),R=n("s2Ay"),C=["scrollViewport"];function T(t,e){if(1&t){var i=r.Tb();r.Sb(0,"mat-checkbox",19),r.Zb("change",(function(){r.xc(i);var t=r.dc().$implicit;return r.dc(2).itemSelectionToggle(t)})),r.Rb()}if(2&t){var n=r.dc().$implicit,a=r.dc(2);r.kc("disabled","members"===n.fullName)("checked",a.selection.isSelected(n))("indeterminate",a.descendantsPartiallySelected(n))}}function I(t,e){if(1&t&&(r.Sb(0,"mat-icon",20),r.Jc(1),r.Rb()),2&t){var i=r.dc().$implicit,n=r.dc(2);r.Ab(1),r.Lc(" ",n.treeControl.isExpanded(i)?"expand_more":"chevron_right"," ")}}function O(t,e){if(1&t&&(r.Sb(0,"span",21),r.Jc(1),r.Rb()),2&t){var i=r.dc().$implicit;r.Ab(1),r.Lc(" #",i.id," ")}}var D=function(t,e){return["/organizations",t,"groups",e]};function M(t,e){if(1&t){var i=r.Tb();r.Qb(0),r.Sb(1,"div",6),r.Hc(2,T,1,3,"mat-checkbox",7),r.Sb(3,"div",8),r.Sb(4,"button",9),r.Zb("mouseenter",(function(){return r.xc(i),r.dc(2).disableRouting=!0}))("mouseleave",(function(){return r.xc(i),r.dc(2).disableRouting=!1}))("click",(function(){r.xc(i);var t=e.$implicit;return r.dc(2).treeControl.toggle(t)})),r.Hc(5,I,2,1,"mat-icon",10),r.Rb(),r.Sb(6,"div",11),r.Sb(7,"span",12),r.Jc(8),r.Rb(),r.Hc(9,O,2,1,"span",13),r.Rb(),r.Sb(10,"div",14,15),r.Sb(12,"span",16),r.Jc(13),r.Rb(),r.Rb(),r.Rb(),r.Sb(14,"div",17),r.Sb(15,"perun-web-apps-group-menu",18),r.Zb("moveGroup",(function(){r.xc(i);var t=e.$implicit;return r.dc(2).onMoveGroup(t)}))("syncGroup",(function(){r.xc(i);var t=e.$implicit;return r.dc(2).onSyncDetail(t)}))("changeNameDescription",(function(){r.xc(i);var t=e.$implicit;return r.dc(2).onChangeNameDescription(t)})),r.Rb(),r.Rb(),r.Rb(),r.Pb()}if(2&t){var n=e.$implicit,a=r.dc(2);r.Ab(1),r.Ec("padding-left",24*n.level+"px"),r.Ab(1),r.kc("ngIf",!a.hideCheckbox),r.Ab(1),r.kc("routerLink",a.disableRouting?null:r.qc(15,D,n.voId,n.id))("perunWebAppsMiddleClickRouterLink",a.disableRouting?null:r.qc(18,D,n.voId,n.id)),r.Ab(1),r.kc("disabled",!n.expandable),r.Bb("aria-label","toggle "+n.name),r.Ab(1),r.kc("ngIf",n.expandable),r.Ab(3),r.Lc(" ",n.name," "),r.Ab(1),r.kc("ngIf",a.authResolver.isPerunAdmin()),r.Ab(3),r.lc("matTooltip",n.description),r.Ab(1),r.Lc(" ",n.description," "),r.Ab(2),r.kc("disabled","members"===n.fullName)("displayButtons",a.displayButtons)("group",n)}}var P=function(t){return{height:t}};function x(t,e){if(1&t&&(r.Sb(0,"div",2),r.Sb(1,"cdk-virtual-scroll-viewport",3,4),r.Hc(3,M,16,21,"ng-container",5),r.Rb(),r.Rb()),2&t){var i=r.dc();r.Ab(1),r.kc("minBufferPx",240)("maxBufferPx",480)("ngStyle",r.pc(4,P,i.getTreeViewHeight())),r.Ab(2),r.kc("cdkVirtualForOf",i.dataSource)}}function N(t,e){1&t&&(r.Sb(0,"app-alert",22),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var L=function(){var t=function(){function t(e,i,n){g(this,t),this.cd=e,this.dialog=i,this.authResolver=n,this.transformer=function(t,e){return{expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}},this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new r.o,this.refreshTable=new r.o,this.expandAll=!1,this.disableRouting=!1,this.selection=new s.c(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.j((function(t){return t.level}),(function(t){return t.expandable})),this.treeFlattener=new a.d(this.transformer,(function(t){return t.level}),(function(t){return t.expandable}),(function(t){return t.children})),this.dataSource=new a.c(this.treeControl,this.treeFlattener),this.hasChild=function(t,e){return e.expandable},this.getLevel=function(t){return t.level}}return m(t,[{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>600}},{key:"ngOnChanges",value:function(t){var e=this;if(this.expandAll){this.filteredGroups=this.groups.filter((function(t){var i,n;return(null===(i=t.name)||void 0===i?void 0:i.toLowerCase().includes(e.filterValue.toLowerCase()))||(null===(n=t.description)||void 0===n?void 0:n.toLowerCase().includes(e.filterValue.toLowerCase()))||t.id.toString().includes(e.filterValue.toLowerCase())}));var i,n=d(this.filteredGroups);try{for(n.s();!(i=n.n()).done;){var r=i.value;r.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat(Object(u.k)(r.parentGroupId,this.groups)))}}catch(a){n.e(a)}finally{n.f()}}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}},{key:"onSyncDetail",value:function(t){var e=Object(u.o)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.i,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=Object(u.o)();i.data={theme:"group-theme",group:t,dialogType:l.h.GROUP},this.dialog.open(l.g,i).afterClosed().subscribe((function(t){t&&e.refreshTable.emit()}))}},{key:"createGroupTrees",value:function(t){var e,i=new Map,n=d(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.set(r.id,new c.b(r))}}catch(s){n.e(s)}finally{n.f()}var a=new Set;i.forEach((function(t,e,i){var n=i.get(t.parentGroupId);void 0!==n&&(n.addChild(t),i.set(t.parentGroupId,n)),null!==t.parentGroupId&&void 0===n&&a.add(t.id)}));var o=[];i.forEach((function(t){(null===t.parentGroupId||a.has(t.id))&&o.push(t)})),this.dataSource.data=o,this.cd.detectChanges()}},{key:"getParentNode",value:function(t){var e=this.getLevel(t);if(e<1)return null;for(var i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){var n=this.treeControl.dataNodes[i];if(this.getLevel(n)_boolean_policy",[t.vo,i])}:function(e,i){return e&&t.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[i])},!0)}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"getTreeViewHeight",value:function(){var t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());var e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.h),r.Mb(f.b),r.Mb(h.h))},t.\u0275cmp=r.Gb({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){var i;1&t&&r.Qc(C,!0),2&t&&r.sc(i=r.ac())&&(e.scrollViewport=i.first)},hostBindings:function(t,e){1&t&&r.Zb("resize",(function(t){return e.shouldHideButtons(t)}),!1,r.wc)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[r.yb],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",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["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(t,e){1&t&&(r.Hc(0,x,4,6,"div",0),r.Hc(1,N,3,3,"app-alert",1)),2&t&&(r.kc("ngIf",0!==e.filteredGroups.length),r.Ab(1),r.kc("ngIf",0===e.filteredGroups.length))},directives:[p.t,b.e,b.a,p.w,b.d,v.g,y.c,A.b,w.a,_.a,S.a,k.a,E.a],pipes:[R.d],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}"]}),t}()},XhvO:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){if(null===t)return null;var i=t;return i.substring(i.lastIndexOf(":")+1,i.length)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"nameSpaceToDef",type:t,pure:!0}),t}()},XpU2:function(t,e,i){"use strict";i.d(e,"a",(function(){return E}));var n=i("EM62"),r=i("Ssnw"),a=i("2kYt"),o=i("PBFl"),s=i("HHFY"),c=i("Y2X+"),u=i("bFHC"),l=i("Jb3d"),h=i("s2Ay"),d=i("jEFW"),f=i("iD4z"),p=i("py76");function b(t,e){if(1&t){var i=n.Tb();n.Sb(0,"span",5),n.ec(1,"translate"),n.ec(2,"groupSyncToolTip"),n.Sb(3,"button",6),n.Zb("click",(function(){return n.xc(i),n.dc(2).onSyncDetail()})),n.ec(4,"groupSyncIcon"),n.Sb(5,"mat-icon"),n.ec(6,"groupSyncIconColor"),n.Jc(7),n.ec(8,"groupSyncIcon"),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=n.dc(2);n.kc("matTooltipPosition","above")("matTooltip",n.fc(1,7,n.fc(2,9,r.group))),n.Ab(3),n.kc("disabled","sync_disabled"===n.fc(4,11,r.group)),n.Ab(2),n.Cb(n.fc(6,13,r.group)),n.Ab(2),n.Lc(" ",n.fc(8,15,r.group)," ")}}function v(t,e){if(1&t){var i=n.Tb();n.Sb(0,"span",5),n.ec(1,"translate"),n.Sb(2,"button",6),n.Zb("click",(function(){return n.xc(i),n.dc(2).onMoveGroup()})),n.Sb(3,"mat-icon"),n.Jc(4,"arrow_right_alt"),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=n.dc(2);n.lc("matTooltip",n.fc(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.kc("matTooltipPosition","above"),n.Ab(2),n.kc("disabled",r.disabled)}}function y(t,e){if(1&t){var i=n.Tb();n.Sb(0,"span",5),n.ec(1,"translate"),n.Sb(2,"button",6),n.Zb("click",(function(){return n.xc(i),n.dc(2).onChangeNameDescription()})),n.Sb(3,"mat-icon"),n.Jc(4,"text_format"),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=n.dc(2);n.lc("matTooltip",n.fc(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.kc("matTooltipPosition","above"),n.Ab(2),n.kc("disabled",r.disabled)}}function A(t,e){if(1&t&&(n.Sb(0,"div",2),n.Sb(1,"button",3),n.ec(2,"translate"),n.Sb(3,"mat-icon"),n.Jc(4," file_copy "),n.Rb(),n.Rb(),n.Hc(5,b,9,17,"span",4),n.Hc(6,v,5,5,"span",4),n.Hc(7,y,5,5,"span",4),n.Rb()),2&t){var i=n.dc();n.Ab(1),n.lc("matTooltip",n.fc(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.kc("cdkCopyToClipboard",i.group.name)("matTooltipPosition","above"),n.Ab(4),n.kc("ngIf",i.syncAuth),n.Ab(1),n.kc("ngIf",i.moveAuth),n.Ab(1),n.kc("ngIf",i.editAuth)}}function w(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",11),n.Zb("click",(function(){return n.xc(i),n.dc(2).onSyncDetail()})),n.ec(1,"groupSyncIcon"),n.Sb(2,"mat-icon"),n.ec(3,"groupSyncIconColor"),n.Jc(4),n.ec(5,"groupSyncIcon"),n.Rb(),n.Sb(6,"span"),n.Jc(7),n.ec(8,"translate"),n.ec(9,"groupSyncToolTip"),n.Rb(),n.Rb()}if(2&t){var r=n.dc(2);n.kc("disabled","sync_disabled"===n.fc(1,6,r.group)),n.Ab(2),n.Cb(n.fc(3,8,r.group)),n.Ab(2),n.Lc(" ",n.fc(5,10,r.group)," "),n.Ab(3),n.Kc(n.fc(8,12,n.fc(9,14,r.group)))}}function _(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",11),n.Zb("click",(function(){return n.xc(i),n.dc(2).onMoveGroup()})),n.Sb(1,"mat-icon"),n.Jc(2,"arrow_right_alt"),n.Rb(),n.Sb(3,"span"),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Rb()}if(2&t){var r=n.dc(2);n.kc("disabled",r.disabled),n.Ab(4),n.Kc(n.fc(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function S(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",11),n.Zb("click",(function(){return n.xc(i),n.dc(2).onChangeNameDescription()})),n.Sb(1,"mat-icon"),n.Jc(2,"text_format"),n.Rb(),n.Sb(3,"span"),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Rb()}if(2&t){var r=n.dc(2);n.kc("disabled",r.disabled),n.Ab(4),n.Kc(n.fc(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function k(t,e){if(1&t&&(n.Sb(0,"div"),n.Sb(1,"button",7),n.Sb(2,"mat-icon"),n.Jc(3,"more_vert"),n.Rb(),n.Rb(),n.Sb(4,"mat-menu",null,8),n.Sb(6,"button",9),n.Sb(7,"mat-icon"),n.Jc(8," file_copy "),n.Rb(),n.Sb(9,"span"),n.Jc(10),n.ec(11,"translate"),n.Rb(),n.Rb(),n.Hc(12,w,10,16,"button",10),n.Hc(13,_,6,4,"button",10),n.Hc(14,S,6,4,"button",10),n.Rb(),n.Rb()),2&t){var i=n.tc(5),r=n.dc();n.Ab(1),n.kc("mat-menu-trigger-for",i),n.Ab(5),n.kc("cdkCopyToClipboard",r.group.name),n.Ab(4),n.Kc(n.fc(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Ab(2),n.kc("ngIf",r.syncAuth),n.Ab(1),n.kc("ngIf",r.moveAuth),n.Ab(1),n.kc("ngIf",r.editAuth)}}var E=function(){var t=function(){function t(e){g(this,t),this.authResolver=e,this.disabled=!1,this.moveGroup=new n.o,this.syncGroup=new n.o,this.changeNameDescription=new n.o}return m(t,[{key:"ngOnInit",value:function(){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])}},{key:"onMoveGroup",value:function(){this.moveGroup.emit()}},{key:"onSyncDetail",value:function(){this.syncGroup.emit()}},{key:"onChangeNameDescription",value:function(){this.changeNameDescription.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.h))},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Hc(0,A,8,8,"div",0),n.Hc(1,k,15,8,"div",1)),2&t&&(n.kc("ngIf",e.displayButtons),n.Ab(1),n.kc("ngIf",!e.displayButtons))},directives:[a.t,o.b,s.a,c.a,u.a,l.d,l.e,l.b],pipes:[h.d,d.a,f.a,p.a],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t}()},"Y2X+":function(t,e,i){"use strict";i.d(e,"a",(function(){return C})),i.d(e,"b",(function(){return I})),i.d(e,"c",(function(){return T}));var n=i("HYj3"),r=i("sg/T"),a=i("2kYt"),o=i("EM62"),s=i("mFH5"),c=i("qvOF"),u=i("5XID"),l=i("fAiE"),h=i("HOZh"),d=i("cZZj"),f=i("Sv/w"),p=i("ZTXN"),b=i("kuMc"),v=i("J+dc"),y=i("f7+R"),A=i("E5oP"),w={tooltipState:Object(y.n)("state",[Object(y.k)("initial, void, hidden",Object(y.l)({opacity:0,transform:"scale(0)"})),Object(y.k)("visible",Object(y.l)({transform:"scale(1)"})),Object(y.m)("* => visible",Object(y.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(y.h)([Object(y.l)({opacity:0,transform:"scale(0)",offset:0}),Object(y.l)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(y.l)({opacity:1,transform:"scale(1)",offset:1})]))),Object(y.m)("* => hidden",Object(y.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(y.l)({opacity:0})))])},_=Object(d.f)({passive:!0});function S(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var k=new o.r("mat-tooltip-scroll-strategy"),E={provide:k,deps:[n.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},R=new o.r("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),C=function(){var t=function(){function t(e,i,n,r,a,o,s,c,u,h,d,f){var m=this;g(this,t),this._overlay=e,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=h,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new p.a,this._handleKeydown=function(t){m._isTooltipVisible()&&t.keyCode===l.h&&!Object(l.t)(t)&&(t.preventDefault(),t.stopPropagation(),m._ngZone.run((function(){return m.hide(0)})))},this._scrollStrategy=u,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),c.monitor(i).pipe(Object(b.a)(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&a.run((function(){return m.show()})):a.run((function(){return m.hide(0)}))})),a.runOutsideAngular((function(){i.nativeElement.addEventListener("keydown",m._handleKeydown)}))}return m(t,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e,i){t.removeEventListener(i,e,_)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new f.d(T,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(b.a)(this._destroyed)).subscribe((function(){return t._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return i.positionChanges.pipe(Object(b.a)(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(b.a)(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i||"below"==i)t={originX:"center",originY:"above"==i?"top":"bottom"};else if("before"==i||"left"==i&&e||"right"==i&&!e)t={originX:"start",originY:"center"};else{if(!("after"==i||"right"==i&&e||"left"==i&&!e))throw S(i);t={originX:"end",originY:"center"}}var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i)t={overlayX:"center",overlayY:"bottom"};else if("below"==i)t={overlayX:"center",overlayY:"top"};else if("before"==i||"left"==i&&e||"right"==i&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==i||"right"==i&&e||"left"==i&&!e))throw S(i);t={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(v.a)(1),Object(b.a)(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_setupPointerEvents",value:function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,i){t._elementRef.nativeElement.addEventListener(i,e,_)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(u.c)(t),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.c),o.Mb(o.l),o.Mb(c.f),o.Mb(o.Q),o.Mb(o.A),o.Mb(d.a),o.Mb(r.c),o.Mb(r.h),o.Mb(k),o.Mb(A.c,8),o.Mb(R,8),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),T=function(){var t=function(){function t(e,i){g(this,t),this._changeDetectorRef=e,this._breakpointObserver=i,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new p.a,this._isHandset=this._breakpointObserver.observe(h.b.Handset)}return m(t,[{key:"show",value:function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)}},{key:"hide",value:function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(h.a))},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.Zb("click",(function(){return e._handleBodyInteraction()}),!1,o.uc),2&t&&o.Ec("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var i;1&t&&(o.Sb(0,"div",0),o.Zb("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),o.ec(1,"async"),o.Jc(2),o.Rb()),2&t&&(o.Eb("mat-tooltip-handset",null==(i=o.fc(1,5,e._isHandset))?null:i.matches),o.kc("ngClass",e.tooltipClass)("@state",e._visibility),o.Ab(2),o.Kc(e.message))},directives:[a.q],pipes:[a.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[w.tooltipState]},changeDetection:0}),t}(),I=function(){var t=function t(){g(this,t)};return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[E],imports:[[r.a,a.c,n.f,s.i],s.i,c.c]}),t}()},Y7Yh:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t){return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"serviceStateBlockedToString",type:t,pure:!0}),t}()},Y9OK:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("OZ4H"),r=i("FlRo"),a=i("Ssnw"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("csyo"),h=i("PBFl"),d=i("j+u3");function f(t,e){1&t&&s.Nb(0,"th",13)}function p(t,e){if(1&t&&(s.Sb(0,"td",14),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.id," ")}}function b(t,e){1&t&&s.Nb(0,"th",13)}function v(t,e){if(1&t&&(s.Sb(0,"td",14),s.Jc(1),s.ec(2,"userFullName"),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",s.fc(2,1,i.user)," ")}}function y(t,e){1&t&&s.Nb(0,"tr",15)}function A(t,e){1&t&&s.Nb(0,"tr",16)}function w(t,e){if(1&t&&(s.Sb(0,"div",4),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",5),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",6),s.Qb(8,7),s.Hc(9,f,1,0,"th",8),s.Hc(10,p,2,1,"td",9),s.Pb(),s.Qb(11,10),s.Hc(12,b,1,0,"th",8),s.Hc(13,v,3,3,"td",9),s.Pb(),s.Hc(14,y,1,0,"tr",11),s.Hc(15,A,1,0,"tr",12),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,i.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(7),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}function _(t,e){1&t&&s.Nb(0,"mat-spinner",17)}function S(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",18),s.Sb(1,"button",19),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"button",20),s.Zb("click",(function(){return s.xc(i),s.dc().onSubmit()})),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,2,"DIALOGS.DELETE_GROUP.CANCEL")," "),s.Ab(3),s.Lc(" ",s.fc(6,4,n.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}var k=function(){var t=function(){function t(e,i,n,r,a,o){g(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.groupService=r,this.notificator=a,this.translate=o,this.displayedColumns=["id","name"]}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.o(this.data.members)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map((function(t){return t.id}))).subscribe((function(){return t.onSuccess()}),(function(){return t.onError()})):this.membersService.deleteMembers(this.data.members.map((function(t){return t.id}))).subscribe((function(){return t.onSuccess()}),(function(){return t.onError()}))}},{key:"onSuccess",value:function(){var t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}},{key:"onError",value:function(){this.loading=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(o.i),s.Mb(o.h),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({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"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,w,16,9,"div",1),s.Hc(5,_,1,0,"mat-spinner",2),s.Hc(6,S,7,6,"div",3),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),s.Ab(2),s.kc("ngIf",!e.loading),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading))},directives:[n.j,u.t,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l,l.c,n.c,h.b],pipes:[c.d,d.a],styles:[""]}),t}()},YEcy:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){return"virt"===t.namespace.split(":")[4]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"isVirtualAttribute",type:t,pure:!0}),t}()},YFHD:function(t,e,i){"use strict";i.d(e,"a",(function(){return F}));var n=i("EM62"),r=i("cqs0"),a=i("iAde"),o=i("cePI"),s=i("FlRo"),c=i("Ssnw"),u=i("8clQ"),l=i("sEIs"),h=i("9wx0"),d=i("2kYt"),f=i("+Tre"),p=i("TQS+"),b=i("FcRk"),v=i("s2Ay"),y=i("W5/Z"),A=i("4CqK");function w(t,e){1&t&&n.Nb(0,"th",20)}function _(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",21),n.Sb(1,"mat-checkbox",22),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function S(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function k(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.userExtSource.id)}}function E(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function R(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.ec(2,"getMailFromAttributes"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.attributes))}}function C(t,e){if(1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t){var i=n.dc();n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,i.extSourceNameHeader?i.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function T(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.userExtSource.extSource.name)}}function I(t,e){if(1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t){var i=n.dc();n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,i.loginHeader?i.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function O(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.userExtSource.login)}}function D(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,n.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function M(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.gc(2,1,i.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function P(t,e){1&t&&n.Nb(0,"tr",26)}var x=function(t,e){return["/admin","users",t,"identities",e]};function N(t,e){if(1&t&&n.Nb(0,"tr",27),2&t){var i=e.$implicit,r=n.dc();n.Eb("cursor-pointer",!r.disableRouting)("disable-outline",r.disableRouting),n.kc("routerLink",r.disableRouting?null:n.qc(6,x,r.userId,i.userExtSource.id))("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.qc(9,x,r.userId,i.userExtSource.id))}}function L(t,e){1&t&&(n.Sb(0,"app-alert",28),n.Jc(1),n.ec(2,"translate"),n.ec(3,"customTranslate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,n.fc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var F=function(){var t=function(){function t(e,i){g(this,t),this.route=e,this.authResolver=i,this.selection=new r.c,this.filterValue="",this.hideColumns=[],this.pageSize=5,this.page=new n.o,this.pageSizeOptions=u.a,this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"]}return m(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.disableRouting||this.route.parent.params.subscribe((function(e){t.userId=e.userId})),this.setDataSource()}},{key:"ngOnChanges",value:function(t){var e=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.displayedColumns=this.displayedColumns.filter((function(t){return!e.hideColumns.includes(t)})),this.dataSource=new s.o(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":var i=t.attributes.find((function(t){return"mail"===t.friendlyName}));return i?i.value.toString():"N/A";case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}},{key:"exportData",value:function(t){Object(u.i)(Object(u.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(u.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(u.g)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t.userExtSource)?"deselect":"select"," row ").concat(t.userExtSource.id+1)}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(l.a),n.Mb(c.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){var i;1&t&&(n.Qc(a.a,!0),n.Dc(o.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.paginator=i.first),n.sc(i=n.ac())&&(e.matSort=i.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",hideColumns:"hideColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.yb],decls:27,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,w,1,0,"th",6),n.Hc(7,_,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,S,4,5,"th",9),n.Hc(10,k,2,1,"td",10),n.Pb(),n.Qb(11,11),n.Hc(12,E,4,5,"th",6),n.Hc(13,R,3,3,"td",10),n.Pb(),n.Qb(14,12),n.Hc(15,C,4,5,"th",9),n.Hc(16,T,2,1,"td",10),n.Pb(),n.Qb(17,13),n.Hc(18,I,4,5,"th",9),n.Hc(19,O,2,1,"td",10),n.Pb(),n.Qb(20,14),n.Hc(21,D,4,5,"th",9),n.Hc(22,M,3,4,"td",15),n.Pb(),n.Hc(23,P,1,0,"tr",16),n.Hc(24,N,1,12,"tr",17),n.Rb(),n.Rb(),n.Sb(25,"mat-paginator",18),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(26,L,4,5,"app-alert",19)),2&t&&(n.kc("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(19),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.userExtSources.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.userExtSources.length))},directives:[h.a,s.n,o.a,s.c,s.i,s.b,s.k,s.m,a.a,d.t,s.h,s.a,f.a,o.b,s.j,s.l,l.g,p.c,b.a],pipes:[v.d,y.a,A.a,d.f],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t}()},YRqw:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),r=i("LAw4"),a=i("s2Ay"),o=function(){var t=function t(){g(this,t),this.voSelected=new n.o,this.nameFunction=function(t){return t.name},this.shortNameFunction=function(t){return t.shortName},this.searchFunction=function(t){return t.name+t.shortName+t.id}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:13,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.voSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.fc(1,7,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.fc(2,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.fc(3,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[r.a],pipes:[a.d],styles:[""]}),t}()},YSZu:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62"),r=i("OZ4H"),a=i("PBFl"),o=i("s2Ay"),s=function(){var t=function(){function t(e){g(this,t),this.dialogRef=e}return m(t,[{key:"ngOnInit",value:function(){}},{key:"onReload",value:function(){location.reload()}},{key:"onClose",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.i))},t.\u0275cmp=n.Gb({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(n.Sb(0,"h1",0),n.Jc(1),n.ec(2,"translate"),n.Rb(),n.Sb(3,"div",1),n.Sb(4,"div",2),n.Sb(5,"p"),n.Jc(6),n.ec(7,"translate"),n.Rb(),n.Rb(),n.Sb(8,"div",3),n.Sb(9,"button",4),n.Zb("click",(function(){return e.onClose()})),n.Jc(10),n.ec(11,"translate"),n.Rb(),n.Sb(12,"button",5),n.Zb("click",(function(){return e.onReload()})),n.Jc(13),n.ec(14,"translate"),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,4,"DIALOGS.NEW_VERSION.TITLE")),n.Ab(5),n.Lc(" ",n.fc(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),n.Ab(4),n.Lc(" ",n.fc(11,8,"DIALOGS.NEW_VERSION.LATER")," "),n.Ab(3),n.Lc(" ",n.fc(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[r.j,r.g,r.c,a.b],pipes:[o.d],styles:[""]}),t}()},YtkY:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("5uGe");function r(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}var o=function(){function t(e,i){g(this,t),this.project=e,this.thisArg=i}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.project,this.thisArg))}}]),t}(),c=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t)).project=n,a.count=0,a.thisArg=r||u(a),a}return m(i,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}]),i}(n.a)},ZG5M:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("EM62"),r=i("OZ4H"),a=i("sEIs"),o=i("2kYt"),s=i("mFH5"),c=i("bFHC"),u=i("s2Ay");function l(t,e){if(1&t&&(n.Sb(0,"div",3),n.Sb(1,"a",4),n.Nb(2,"mat-icon",5),n.Jc(3),n.ec(4,"translate"),n.Rb(),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Db("",i.style," item-itself"),n.kc("routerLink",i.url),n.Ab(1),n.kc("svgIcon",i.cssIcon),n.Ab(1),n.Lc(" ",n.fc(4,6,i.label)," ")}}function h(t,e){if(1&t&&(n.Sb(0,"div",1),n.Hc(1,l,5,8,"div",2),n.Rb()),2&t){var i=n.dc();n.Ab(1),n.kc("ngForOf",i.items)}}var d=function(){var t=function(){function t(e,i){g(this,t),this.dialog=e,this.route=i,this.size="large"}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.route.params.subscribe((function(e){t.voId=e.voId}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.b),n.Mb(a.a))},t.\u0275cmp=n.Gb({type:t,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,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&n.Hc(0,h,2,1,"div",0),2&t&&n.kc("ngIf","small"===e.size)},directives:[o.t,o.s,s.s,a.i,c.a],pipes:[u.d],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}}"]}),t}()},ZTXN:function(t,e,i){"use strict";i.d(e,"b",(function(){return f})),i.d(e,"a",(function(){return p}));var r=i("IdLP"),o=i("5uGe"),c=i("bwdy"),u=i("MiDb"),l=i("yTkW"),d=i("25CY"),f=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this,t)).destination=t,n}return i}(o.a),p=function(){var t=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return m(i,[{key:d.a,value:function(){return new f(this)}},{key:"lift",value:function(t){var e=new b(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new u.a;if(!this.isStopped)for(var e=this.observers,i=e.length,n=e.slice(),r=0;r0&&(i+=", "),i+=r.friendlyName.substring(16)+": "+r.value)}}catch(a){n.e(a)}finally{n.f()}return i}},{key:"getLoginsForCandidate",value:function(t){var e="";for(var i in t.attributes)t.attributes.hasOwnProperty(i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}},{key:"getAlreadyMember",value:function(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}},{key:"isCheckboxDisabled",value:function(t){return"vo"===this.type?null!=t.member:!!t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"setAddAuth",value:function(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAddAuth()}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){var i;1&t&&(n.Qc(a.a,!0),n.Qc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first))},inputs:{members:"members",selection:"selection",type:"type",pageSize:"pageSize",group:"group"},outputs:{page:"page"},features:[n.yb],decls:2,vars:1,consts:[[1,"card","mt-2"],["class","card-body table-theme",4,"ngIf"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"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"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Hc(1,B,31,6,"div",1),n.Rb()),2&t&&(n.Ab(1),n.kc("ngIf",null!=e.members))},directives:[u.t,l.a,o.n,a.a,o.c,o.i,o.b,o.k,o.m,r.a,o.h,o.a,h.a,a.b,f.a,o.j,o.l],pipes:[p.d,b.a,v.a,y.a,A.a],styles:[""]}),t}()},ZWyU:function(t,e,i){"use strict";i.d(e,"a",(function(){return O}));var n=i("EM62"),r=i("cqs0"),a=i("iAde"),o=i("cePI"),s=i("FlRo"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("FcRk"),p=i("s2Ay"),b=i("7fDV");function v(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",17),n.Sb(1,"mat-checkbox",18),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function y(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function A(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")))}function w(t,e){if(1&t&&(n.Sb(0,"td",19),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function _(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")))}function S(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.name)}}function k(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")))}function E(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.ec(2,"extSourceType"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.type))}}function R(t,e){1&t&&n.Nb(0,"tr",23)}function C(t,e){1&t&&n.Nb(0,"tr",24)}function T(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function I(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}var O=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.selection=new r.c,this.filterValue="",this.hideColumns=[],this.pageSize=5,this.page=new n.o,this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=c.a}return m(t,[{key:"ngAfterViewInit",value:function(){this.setDataSource()}},{key:"ngOnChanges",value:function(t){var e=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.displayedColumns=this.displayedColumns.filter((function(t){return!e.hideColumns.includes(t)})),this.dataSource=new s.o(this.extSources),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"type":return t.type.substring(40);case"name":return t.name;default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matPaginator",set:function(t){this.paginator=t}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-ext-sources-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Dc(o.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matPaginator=i.first),n.sc(i=n.ac())&&(e.matSort=i.first))},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",hideColumns:"hideColumns",pageSize:"pageSize"},outputs:{page:"page"},features:[n.yb],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,v,2,3,"th",6),n.Hc(7,y,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,A,3,3,"th",9),n.Hc(10,w,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,_,3,3,"th",9),n.Hc(13,S,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,k,3,3,"th",9),n.Hc(16,E,3,3,"td",11),n.Pb(),n.Hc(17,R,1,0,"tr",13),n.Hc(18,C,1,0,"tr",14),n.Rb(),n.Rb(),n.Sb(19,"mat-paginator",15),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(20,T,3,3,"app-alert",16),n.Hc(21,I,3,3,"app-alert",16)),2&t&&(n.kc("hidden",0===e.extSources.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(13),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.extSources.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.extSources.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.extSources.length))},directives:[l.a,s.n,o.a,s.c,s.i,s.b,s.k,s.m,a.a,h.t,s.h,d.a,s.a,o.b,s.j,s.l,f.a],pipes:[p.d,b.a],styles:[""]}),t}()},aFDG:function(t,e,i){"use strict";i.d(e,"a",(function(){return N}));var n=i("EM62"),r=i("OZ4H"),a=i("iAde"),o=i("cePI"),s=i("FlRo"),c=i("Ssnw"),u=i("cqs0"),l=i("HHEo"),h=i("X2Q7"),f=i("8clQ"),p=i("s2Ay"),b=i("PBFl"),v=i("Y2X+"),y=i("2kYt"),A=i("+Tre"),w=i("Cd2c"),_=i("nIj0"),S=i("nhAq"),k=i("FcRk");function E(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",23),n.Sb(1,"mat-checkbox",24),n.Zb("change",(function(t){n.xc(i);var e=n.dc(2);return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc(2);n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function R(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",25),n.Sb(1,"mat-checkbox",26),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc(2);return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc(2);n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function C(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function T(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",28),n.Sb(1,"label"),n.Sb(2,"input",29),n.Zb("ngModelChange",(function(){n.xc(i);var t=e.$implicit;return n.dc(2).onValueChange(t)}))("ngModelChange",(function(t){return n.xc(i),e.$implicit[0]=t})),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit;n.Ab(2),n.kc("ngModel",r[0])}}function I(t,e){1&t&&(n.Sb(0,"th",27),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function O(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",28),n.Sb(1,"perun-web-apps-attribute-value",30),n.Zb("sendEventToParent2",(function(){n.xc(i);var t=e.$implicit;return n.dc(2).onValueChange(t)})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit;n.Ab(1),n.kc("attribute",r[1])}}function D(t,e){1&t&&n.Nb(0,"tr",31)}function M(t,e){1&t&&n.Nb(0,"tr",32)}function P(t,e){if(1&t){var i=n.Tb();n.Sb(0,"div",9),n.Sb(1,"div",10),n.Sb(2,"div",11),n.Sb(3,"table",12),n.Qb(4,13),n.Hc(5,E,2,3,"th",14),n.Hc(6,R,2,2,"td",15),n.Pb(),n.Qb(7,16),n.Hc(8,C,3,3,"th",17),n.Hc(9,T,3,1,"td",18),n.Pb(),n.Qb(10,19),n.Hc(11,I,3,3,"th",17),n.Hc(12,O,2,1,"td",18),n.Pb(),n.Hc(13,D,1,0,"tr",20),n.Hc(14,M,1,0,"tr",21),n.Rb(),n.Rb(),n.Sb(15,"mat-paginator",22),n.Zb("page",(function(t){return n.xc(i),n.dc().pageChanged(t)})),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(3),n.kc("dataSource",r.dataSource),n.Ab(10),n.kc("matHeaderRowDef",r.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",r.displayedColumns),n.Ab(1),n.kc("length",r.records.length)("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)}}function x(t,e){1&t&&(n.Sb(0,"app-alert",33),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}var N=function(){var t=function(){function t(e,i,r,a,o){g(this,t),this.dialogRef=e,this.data=i,this.notificator=r,this.translate=a,this.attributesManager=o,this.pageSize=10,this.page=new n.o,this.switchView=new n.o,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new s.o,this.selection=new u.c(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=f.a}return m(t,[{key:"ngOnChanges",value:function(t){this.ngOnInit()}},{key:"ngOnInit",value:function(){var t=this;this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe((function(e){t.attributesManager.getEntitylessAttributesByName("".concat(t.attDef.namespace,":").concat(t.attDef.friendlyName)).subscribe((function(i){var n=0;t.records=[];var r,a=d(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.records.push([o,i[n]]),n++}}catch(c){a.e(c)}finally{a.f()}t.dataSource=new s.o(t.records),t.setDataSource()}))}))}},{key:"setDataSource",value:function(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"onSave",value:function(){var t=this;this.updateMapAttributes();var e,i=d(this.selection.selected);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.attributesManager.setEntitylessAttribute({key:n[0],attribute:n[1]}).subscribe((function(){t.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.ngOnInit()}))}))}}catch(r){i.e(r)}finally{i.f()}this.selection.clear(),this.isAddButtonDisabled=!1}},{key:"onRemove",value:function(){var t,e=this,i=d(this.selection.selected);try{for(i.s();!(t=i.n()).done;){var n=t.value;this.attributesManager.removeEntitylessAttribute(n[0],n[1].id).subscribe((function(){e.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe((function(t){e.notificator.showSuccess(t),e.ngOnInit()}))}))}}catch(r){i.e(r)}finally{i.f()}this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}},{key:"onAdd",value:function(){var t=["",this.attDef];t[1].value=void 0,this.records.unshift(t),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(t),this.isAddButtonDisabled=!0}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach((function(e){return t.selection.select(e)}))}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t[1].id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"onValueChange",value:function(t){this.selection.select(t)}},{key:"updateMapAttributes",value:function(){var t,e=d(this.items.toArray());try{for(e.s();!(t=e.n()).done;){var i=t.value;"java.util.LinkedHashMap"===i.attribute.type&&i.updateMapAttribute()}}catch(n){e.e(n)}finally{e.f()}}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.i),n.Mb(r.a),n.Mb(c.l),n.Mb(p.e),n.Mb(h.c))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Qc(a.a,!0),n.Qc(l.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first),n.sc(i=n.ac())&&(e.items=i))},inputs:{attDef:"attDef",pageSize:"pageSize"},outputs:{page:"page",switchView:"switchView"},features:[n.yb],decls:18,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltip","save or remove new attribute first","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3"],["class","card mt-3",4,"ngIf"],["alert_type","info","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["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"],["alert_type","info",1,"mt-3"]],template:function(t,e){1&t&&(n.Sb(0,"h1",0),n.Jc(1),n.Rb(),n.Sb(2,"div",1),n.Sb(3,"button",2),n.Zb("click",(function(){return e.switchView.emit()})),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Sb(6,"button",3),n.Zb("click",(function(){return e.onSave()})),n.Jc(7),n.ec(8,"translate"),n.Rb(),n.Sb(9,"button",4),n.Zb("click",(function(){return e.onAdd()})),n.Jc(10),n.ec(11,"translate"),n.Rb(),n.Sb(12,"button",5),n.Zb("click",(function(){return e.onRemove()})),n.Jc(13),n.ec(14,"translate"),n.Rb(),n.Rb(),n.Sb(15,"div",6),n.Hc(16,P,16,6,"div",7),n.Hc(17,x,3,3,"app-alert",8),n.Rb()),2&t&&(n.Ab(1),n.Kc(e.attDef.namespace+":"+e.attDef.friendlyName),n.Ab(3),n.Lc(" ",n.fc(5,9,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),n.Ab(3),n.Lc(" ",n.fc(8,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),n.Ab(2),n.kc("disabled",e.isAddButtonDisabled)("matTooltipDisabled",!e.isAddButtonDisabled),n.Ab(1),n.Lc(" ",n.fc(11,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),n.Ab(3),n.Lc(" ",n.fc(14,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),n.Ab(3),n.kc("ngIf",!(0===e.records.length)),n.Ab(1),n.kc("ngIf",0===e.records.length))},directives:[r.j,r.c,b.b,v.a,r.g,y.t,s.n,o.a,s.c,s.i,s.b,s.k,s.m,a.a,s.h,A.a,s.a,o.b,w.b,_.c,_.r,_.u,S.a,s.j,s.l,k.a],pipes:[p.d],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),t}()},aYBX:function(t,e,i){"use strict";i.d(e,"a",(function(){return S}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("iyZ4"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo"),d=i("FlRo");function f(t,e){1&t&&s.Nb(0,"mat-spinner",7)}function p(t,e){1&t&&(s.Sb(0,"th",17),s.Jc(1,"id"),s.Rb())}function b(t,e){if(1&t&&(s.Sb(0,"td",18),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.id," ")}}function v(t,e){1&t&&(s.Sb(0,"th",17),s.Jc(1,"name"),s.Rb())}function y(t,e){if(1&t&&(s.Sb(0,"td",18),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function A(t,e){1&t&&s.Nb(0,"tr",19)}function w(t,e){1&t&&s.Nb(0,"tr",20)}function _(t,e){if(1&t&&(s.Sb(0,"div",8),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",9),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",10),s.Qb(8,11),s.Hc(9,p,2,0,"th",12),s.Hc(10,b,2,1,"td",13),s.Pb(),s.Qb(11,14),s.Hc(12,v,2,0,"th",12),s.Hc(13,y,2,1,"td",13),s.Pb(),s.Hc(14,A,1,0,"tr",15),s.Hc(15,w,1,0,"tr",16),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),s.Ab(2),s.kc("dataSource",i.extSources),s.Ab(7),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var S=function(){var t=function(){function t(e,i,n,r,a,o){g(this,t),this.dialogRef=e,this.data=i,this.extSourceService=n,this.notificator=r,this.tableConfigService=a,this.translate=o,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.extSources=this.data.extSources}},{key:"removeVoExtSource",value:function(){var t=this;if(0!==this.extSources.length){var e=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,e.id).subscribe((function(e){t.onRemove()}),(function(){return t.loading=!1}))}else this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}},{key:"removeGroupExtSource",value:function(){var t=this;if(0!==this.extSources.length){var e=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,e.id).subscribe((function(e){t.onRemove()}),(function(){return t.loading=!1}))}else this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}},{key:"onRemove",value:function(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(n.f),s.Mb(a.l),s.Mb(o.pb),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"div",0),s.Sb(2,"h1",1),s.Jc(3),s.ec(4,"translate"),s.Rb(),s.Rb(),s.Hc(5,f,1,0,"mat-spinner",2),s.Hc(6,_,16,9,"div",3),s.Sb(7,"div",4),s.Sb(8,"button",5),s.Zb("click",(function(){return e.onCancel()})),s.Jc(9),s.ec(10,"translate"),s.Rb(),s.Sb(11,"button",6),s.Zb("click",(function(){return e.onRemove()})),s.Jc(12),s.ec(13,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(3),s.Kc(s.fc(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),s.Ab(3),s.Lc(" ",s.fc(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},directives:[r.j,u.t,r.c,l.b,h.c,r.g,d.n,d.c,d.i,d.b,d.k,d.m,d.h,d.a,d.j,d.l],pipes:[c.d],styles:[""]}),t}()},aag5:function(t,e,i){"use strict";i.d(e,"a",(function(){return J}));var n=i("EM62"),r=i("cePI"),a=i("FlRo"),o=i("8clQ"),s=i("Ssnw"),c=i("9wx0"),u=i("iAde"),l=i("2kYt"),h=i("bFHC"),d=i("Y2X+"),f=i("sEIs"),p=i("TQS+"),b=i("FcRk"),v=i("s2Ay"),y=i("e+sS"),A=i("j+u3"),w=["paginator"];function _(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function S(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function k(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function E(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.ec(2,"date"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.gc(2,1,i.createdAt,"d.M.y"))}}function R(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function C(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"mat-icon",24),n.Jc(2,"arrow_right_alt"),n.Rb(),n.Rb())}function T(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"mat-icon",25),n.Jc(2,"restore"),n.Rb(),n.Rb())}function I(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"mat-icon",26),n.Jc(2,"nat"),n.Rb(),n.Rb())}function O(t,e){if(1&t&&(n.Sb(0,"td",22),n.Hc(1,C,3,0,"div",23),n.Hc(2,T,3,0,"div",23),n.Hc(3,I,3,0,"div",23),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngIf","INITIAL"==i.type),n.Ab(1),n.kc("ngIf","EXTENSION"==i.type),n.Ab(1),n.kc("ngIf","EMBEDDED"==i.type)}}function D(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function M(t,e){if(1&t&&(n.Sb(0,"td",22),n.Nb(1,"span",27),n.ec(2,"applicationState"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("outerHTML",n.fc(2,1,i.state),n.yc)}}function P(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")))}function x(t,e){if(1&t&&(n.Sb(0,"div"),n.Jc(1),n.Rb()),2&t){var i=n.dc().$implicit;n.Ab(1),n.Lc(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function N(t,e){if(1&t&&(n.Jc(0),n.ec(1,"userFullName")),2&t){var i=n.dc().$implicit;n.Lc(" ",n.fc(1,1,i.user)," ")}}function L(t,e){if(1&t&&(n.Sb(0,"td",22),n.Hc(1,x,2,1,"div",28),n.Hc(2,N,2,3,"ng-template",null,29,n.Ic),n.Rb()),2&t){var i=e.$implicit,r=n.tc(3);n.Ab(1),n.kc("ngIf",null==i.user)("ngIfElse",r)}}function F(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function z(t,e){1&t&&(n.Sb(0,"div",32),n.Jc(1," - "),n.Rb())}function H(t,e){if(1&t&&n.Jc(0),2&t){var i=n.dc().$implicit;n.Lc(" ",i.group.name," ")}}function B(t,e){if(1&t&&(n.Sb(0,"td",22),n.Hc(1,z,2,0,"div",30),n.Hc(2,H,1,1,"ng-template",null,31,n.Ic),n.Rb()),2&t){var i=e.$implicit,r=n.tc(3);n.Ab(1),n.kc("ngIf",null==i.group)("ngIfElse",r)}}function j(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function G(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){var i=e.$implicit,r=n.dc();n.Ab(1),n.Kc(r.getFriendlyName(i.modifiedBy))}}function U(t,e){1&t&&n.Nb(0,"tr",33)}function K(t,e){if(1&t&&n.Nb(0,"tr",34),2&t){var i=e.$implicit,r=n.dc();n.Eb("cursor-pointer",!r.disableRouting),n.kc("routerLink",r.selectApplication(i))("perunWebAppsMiddleClickRouterLink",r.selectApplication(i))}}function V(t,e){1&t&&(n.Sb(0,"app-alert",35),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function q(t,e){1&t&&(n.Sb(0,"app-alert",35),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var J=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.changeDetector=i,this.applications=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.o,this.pageSizeOptions=o.a}return m(t,[{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.setDataSource(),this.changeDetector.detectChanges()}},{key:"ngOnChanges",value:function(t){this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?Object(o.w)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"parseModifiedBy",value:function(t){var e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){var i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}},{key:"exportData",value:function(t){Object(o.i)(Object(o.n)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.paginator&&(this.dataSource||(this.dataSource=new a.o,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,i){return Object(o.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(o.g)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.applications)}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matSort",set:function(t){this.sort=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(s.h),n.Mb(n.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){var i;1&t&&(n.Qc(r.a,!0),n.Qc(w,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first))},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.yb],decls:32,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["paginator",""],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,_,3,3,"th",6),n.Hc(7,S,2,1,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,k,3,3,"th",6),n.Hc(10,E,3,4,"td",9),n.Pb(),n.Qb(11,10),n.Hc(12,R,3,3,"th",6),n.Hc(13,O,4,3,"td",9),n.Pb(),n.Qb(14,11),n.Hc(15,D,3,3,"th",6),n.Hc(16,M,3,3,"td",9),n.Pb(),n.Qb(17,12),n.Hc(18,P,3,3,"th",6),n.Hc(19,L,4,2,"td",9),n.Pb(),n.Qb(20,13),n.Hc(21,F,3,3,"th",6),n.Hc(22,B,4,2,"td",9),n.Pb(),n.Qb(23,14),n.Hc(24,j,3,3,"th",6),n.Hc(25,G,2,1,"td",9),n.Pb(),n.Hc(26,U,1,0,"tr",15),n.Hc(27,K,1,4,"tr",16),n.Rb(),n.Rb(),n.Sb(28,"mat-paginator",17,18),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(30,V,3,3,"app-alert",19),n.Hc(31,q,3,3,"app-alert",19)),2&t&&(n.kc("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(22),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.applications.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(2),n.kc("ngIf",0===e.applications.length),n.Ab(1),n.kc("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[c.a,a.n,r.a,a.c,a.i,a.b,a.k,a.m,u.a,l.t,a.h,r.b,a.a,h.a,d.a,a.j,a.l,f.g,p.c,b.a],pipes:[v.d,l.f,y.a,A.a],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},aea8:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){return e?"/organizations/".concat(t.voId,"/resources/").concat(t.id):"/facilities/".concat(t.facilityId,"/resources/").concat(t.id)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"getResourceRoute",type:t,pure:!0}),t}()},ajPJ:function(t,e,i){"use strict";i.d(e,"a",(function(){return b}));var n=i("Ssnw"),r=i("9RND"),a=i("X2Q7"),o=i("EM62"),s=i("OZ4H"),c=i("s2Ay"),u=i("29Wa"),l=i("Cd2c"),h=i("nIj0"),d=i("2kYt"),f=i("PBFl");function p(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var b=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.storeService=a,this.message="",this.subject="",this.instanceName=""}return m(t,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var t=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe((function(e){t.dialogRef.afterClosed().subscribe((function(){return t.notificator.showSuccess(t.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+e.ticketNumber)})),t.dialogRef.close()}))}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+r.a}},{key:"close",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(s.i),o.Mb(c.e),o.Mb(n.l),o.Mb(a.k),o.Mb(n.m))},t.\u0275cmp=o.Gb({type:t,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(t,e){if(1&t&&(o.Sb(0,"h1",0),o.Jc(1),o.ec(2,"translate"),o.Rb(),o.Sb(3,"div",1),o.Sb(4,"mat-form-field"),o.Sb(5,"mat-label"),o.Jc(6),o.ec(7,"translate"),o.Rb(),o.Sb(8,"input",2,3),o.Zb("ngModelChange",(function(t){return e.subject=t})),o.Rb(),o.Hc(10,p,3,3,"mat-error",4),o.Rb(),o.Sb(11,"mat-form-field"),o.Sb(12,"mat-label"),o.Jc(13),o.ec(14,"translate"),o.Rb(),o.Sb(15,"textarea",5),o.Zb("ngModelChange",(function(t){return e.message=t})),o.ec(16,"translate"),o.Jc(17," "),o.Rb(),o.Sb(18,"mat-hint"),o.Jc(19),o.ec(20,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Sb(21,"div",6),o.Sb(22,"div",7),o.Sb(23,"button",8),o.Zb("click",(function(){return e.close()})),o.Jc(24),o.ec(25,"translate"),o.Rb(),o.Sb(26,"button",9),o.Zb("click",(function(){return e.sendBugReport()})),o.Jc(27),o.ec(28,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t){var i=o.tc(9);o.Ab(1),o.Kc(o.fc(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),o.Ab(5),o.Kc(o.fc(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),o.Ab(2),o.kc("ngModel",e.subject),o.Ab(2),o.kc("ngIf",i.invalid),o.Ab(3),o.Kc(o.fc(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),o.Ab(2),o.lc("placeholder",o.fc(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),o.kc("ngModel",e.message),o.Ab(4),o.Kc(o.fc(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),o.Ab(5),o.Lc(" ",o.fc(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),o.Ab(2),o.kc("disabled",i.invalid),o.Ab(1),o.Lc(" ",o.fc(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[s.j,s.g,u.c,u.g,l.b,h.c,h.C,h.r,h.u,d.t,u.f,s.c,f.b,u.b],pipes:[c.d],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}()},alep:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),r=i("TkCa"),a=i("k8N0"),o=i("nIj0"),s=["*"],c=function(){var t=function(){function t(){g(this,t),this.modelChange=new n.o}return m(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.toggle.change.subscribe((function(){return t.valueChanged()}))}},{key:"valueChanged",value:function(){this.modelChange.emit(this.toggle.checked)}},{key:"model",get:function(){return this.modelValue},set:function(t){this.modelValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){var i;1&t&&n.Dc(a.a,!0),2&t&&n.sc(i=n.ac())&&(e.toggle=i.first)},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:s,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(t,e){if(1&t){var i=n.Tb();n.jc(),n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"label",2),n.Zb("click",(function(){return n.xc(i),n.tc(5).toggle()||e.valueChanged()})),n.Jc(3),n.Rb(),n.Sb(4,"mat-slide-toggle",3,4),n.Zb("ngModelChange",(function(t){return e.modelValue=t})),n.Rb(),n.Rb(),n.Sb(6,"div",5),n.ic(7),n.Rb(),n.Rb()}if(2&t){var r=n.tc(5);n.Ab(2),n.Eb("unselected-setting",!r.checked),n.Ab(1),n.Lc(" ",e.title," "),n.Ab(1),n.kc("ngModel",e.modelValue),n.Ab(2),n.kc("@openClose",r.checked?"open":"closed")}},directives:[a.a,o.r,o.u],styles:[""],data:{animation:[r.c]}}),t}()},amZv:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),r=i("X2Q7"),a=i("Ssnw"),o=i("cqs0"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("csyo"),h=i("A8Ay"),d=i("eakH"),f=i("PBFl");function p(t,e){1&t&&s.Nb(0,"mat-spinner",4)}function b(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",5),s.Sb(1,"perun-web-apps-immediate-filter",6),s.Zb("filter",(function(t){return s.xc(i),s.dc().applyFilter(t)})),s.Rb(),s.Nb(2,"app-attr-def-list",7),s.Rb()}if(2&t){var n=s.dc();s.Ab(1),s.kc("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),s.Ab(1),s.kc("selection",n.selection)("definitions",n.attrDefinitions)("disableRouting",!0)("filterValue",n.filterValue)}}function v(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",8),s.Sb(1,"button",9),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"button",10),s.Zb("click",(function(){return s.xc(i),s.dc().onAdd()})),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),s.Ab(2),s.kc("disabled",0===n.selection.selected.length),s.Ab(1),s.Lc(" ",s.fc(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}var y=function(){var t=function(){function t(e,i,n,r,a,s){g(this,t),this.dialogRef=e,this.data=i,this.serviceManager=n,this.attributesManager=r,this.notificator=a,this.translate=s,this.attrDefinitions=[],this.selection=new o.c(!0,[]),this.filterValue="",this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe((function(e){t.attrDefinitions=e,t.loading=!1}))}},{key:"onAdd",value:function(){var t=this;this.loading=!0;var e=this.selection.selected.map((function(t){return t.id}));this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe((function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),t.dialogRef.close(!0),t.loading=!1}),(function(e){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(r.n),s.Mb(r.c),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,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,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,p,1,0,"mat-spinner",1),s.Hc(5,b,3,5,"div",2),s.Hc(6,v,7,7,"div",3),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(1),s.kc("ngIf",!e.loading))},directives:[n.j,u.t,l.c,n.g,h.a,d.a,n.c,f.b],pipes:[c.d],styles:[""]}),t}()},b7Yx:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("EM62"),r=i("8clQ"),a=i("2kYt"),o=i("+Tre"),s=i("nIj0"),c=i("29Wa");function u(t,e){if(1&t){var i=n.Tb();n.Sb(0,"mat-checkbox",2),n.Zb("change",(function(){return n.xc(i),n.dc()._sendEventToParent()}))("ngModelChange",(function(t){return n.xc(i),n.dc().attribute.value=t})),n.Rb()}if(2&t){var r=n.dc();n.kc("ngModel",r.attribute.value)}}function l(t,e){if(1&t&&(n.Sb(0,"mat-label"),n.Jc(1),n.Rb()),2&t){var i=n.dc();n.Ab(1),n.Kc(i.attribute.value)}}var h=function(){var t=function(){function t(){g(this,t),this.readonly=!1,this.sendEventToParent=new n.o}return m(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=Object(r.s)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"div"),n.Hc(1,u,1,1,"mat-checkbox",0),n.Hc(2,l,2,1,"mat-label",1),n.Rb()),2&t&&(n.Ab(1),n.kc("ngIf",!e.readonly),n.Ab(1),n.kc("ngIf",e.readonly))},directives:[a.t,o.a,s.r,s.u,c.g],styles:[""]}),t}()},bATb:function(t,e,i){"use strict";i.d(e,"a",(function(){return S}));var n=i("X2Q7"),r=i("nIj0"),a=i("OZ4H"),o=i("Ssnw"),s=i("jIqt"),c=i("YtkY"),u=i("EM62"),l=i("s2Ay"),h=i("2kYt"),d=i("PBFl"),f=i("csyo"),p=i("29Wa"),b=i("Cd2c"),v=i("ulve"),y=i("mFH5");function A(t,e){1&t&&u.Nb(0,"mat-spinner",7)}function w(t,e){if(1&t&&(u.Sb(0,"mat-option",14),u.Jc(1),u.Rb()),2&t){var i=e.$implicit;u.kc("value",i),u.Ab(1),u.Lc(" ",i.name," ")}}function _(t,e){if(1&t&&(u.Sb(0,"div"),u.Sb(1,"mat-form-field",8),u.Nb(2,"input",9),u.ec(3,"translate"),u.Sb(4,"mat-error"),u.Jc(5),u.ec(6,"translate"),u.Rb(),u.Rb(),u.Sb(7,"mat-form-field",8),u.Nb(8,"input",10),u.ec(9,"translate"),u.Sb(10,"mat-error"),u.Jc(11),u.ec(12,"translate"),u.Rb(),u.Sb(13,"mat-autocomplete",11,12),u.Hc(15,w,2,2,"mat-option",13),u.ec(16,"async"),u.Rb(),u.Rb(),u.Rb()),2&t){var i=u.tc(14),n=u.dc();u.Ab(2),u.lc("placeholder",u.fc(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),u.kc("formControl",n.loginControl),u.Ab(3),u.Lc(" ",u.fc(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),u.Ab(3),u.lc("placeholder",u.fc(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),u.kc("formControl",n.extSourcesControl)("matAutocomplete",i),u.Ab(3),u.Lc(" ",u.fc(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),u.Ab(2),u.kc("displayWith",n.displayFn),u.Ab(2),u.kc("ngForOf",u.fc(16,17,n.filteredExtSources))}}var S=function(){var t=function(){function t(e,i,n,r,a,o){var s=this;g(this,t),this.dialogRef=e,this.data=i,this.extSourcesManagerService=n,this.usersManagerService=r,this.translate=a,this.notificator=o,this.extSources=[],a.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe((function(t){return s.successMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.loginControl=new r.g("",[r.F.required,r.F.pattern(".*[\\S]+.*")]),this.extSourcesControl=new r.g("",[r.F.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe(Object(s.a)(""),Object(c.a)((function(e){return t._filter(e)}))),this.extSourcesManagerService.getExtSources().subscribe((function(e){t.extSources=e,t.filteredExtSources=t.extSourcesControl.valueChanges.pipe(Object(s.a)(""),Object(c.a)((function(e){return t._filter(e)}))),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"displayFn",value:function(t){return t?t.name:null}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){var t=this;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((function(){t.loading=!1,t.notificator.showSuccess(t.successMessage),t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"_filter",value:function(t){var e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.extSources.filter((function(t){return t.name.toLowerCase().includes(e)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Mb(a.i),u.Mb(a.a),u.Mb(n.f),u.Mb(n.p),u.Mb(l.e),u.Mb(o.l))},t.\u0275cmp=u.Gb({type:t,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","","type","text","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(u.Sb(0,"h1",0),u.Jc(1),u.ec(2,"translate"),u.Rb(),u.Sb(3,"div",1),u.Hc(4,A,1,0,"mat-spinner",2),u.Hc(5,_,17,19,"div",3),u.Rb(),u.Sb(6,"div",4),u.Sb(7,"button",5),u.Zb("click",(function(){return e.onCancel()})),u.Jc(8),u.ec(9,"translate"),u.Rb(),u.Sb(10,"button",6),u.Zb("click",(function(){return e.onAdd()})),u.Jc(11),u.ec(12,"translate"),u.Rb(),u.Rb()),2&t&&(u.Ab(1),u.Kc(u.fc(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),u.Ab(3),u.kc("ngIf",e.loading),u.Ab(1),u.kc("ngIf",!e.loading),u.Ab(3),u.Lc(" ",u.fc(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),u.Ab(2),u.kc("disabled",e.loginControl.invalid||e.extSourcesControl.invalid||e.loading),u.Ab(1),u.Lc(" ",u.fc(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[a.j,a.g,h.t,a.c,d.b,f.c,p.c,b.b,r.c,r.C,r.r,r.h,p.b,v.d,v.a,h.s,y.n],pipes:[l.d,h.b],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}"]}),t}()},bFHC:function(t,e,i){"use strict";i.d(e,"a",(function(){return F})),i.d(e,"b",(function(){return z})),i.d(e,"c",(function(){return I}));var n=i("EM62"),o=i("mFH5"),c=i("5XID"),u=i("2kYt"),l=i("ROBh"),h=i("47ST"),d=i("P4Xx"),f=i("bwdy"),p=i("8j5Y"),b=i("YtkY"),v=i("4e/d"),y=i("ruxD"),A=i("7ntQ"),w=i("J+dc"),_=i("vobO"),S=i("e4iD"),k=["*"];function E(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function R(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function C(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var T=function t(e,i){g(this,t),this.options=i,e.nodeName?this.svgElement=e:this.url=e},I=function(){var t=function(){function t(e,i,n,r){g(this,t),this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return m(t,[{key:"addSvgIcon",value:function(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}},{key:"addSvgIconLiteral",value:function(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}},{key:"addSvgIconInNamespace",value:function(t,e,i,n){return this._addSvgIconConfig(t,e,new T(i,n))}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,i,r){var a=this._sanitizer.sanitize(n.J.HTML,i);if(!a)throw C(i);var o=this._createSvgElementForSingleIcon(a,r);return this._addSvgIconConfig(t,e,new T(o,r))}},{key:"addSvgIconSet",value:function(t,e){return this.addSvgIconSetInNamespace("",t,e)}},{key:"addSvgIconSetLiteral",value:function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}},{key:"addSvgIconSetInNamespace",value:function(t,e,i){return this._addSvgIconSetConfig(t,new T(e,i))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,i){var r=this._sanitizer.sanitize(n.J.HTML,e);if(!r)throw C(e);var a=this._svgElementFromString(r);return this._addSvgIconSetConfig(t,new T(a,i))}},{key:"registerFontClassAlias",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,i=this._sanitizer.sanitize(n.J.RESOURCE_URL,t);if(!i)throw R(t);var r=this._cachedIconsByUrl.get(i);return r?Object(l.a)(O(r)):this._loadSvgIconFromConfig(new T(t)).pipe(Object(p.a)((function(t){return e._cachedIconsByUrl.set(i,t)})),Object(b.a)((function(t){return O(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=D(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(h.a)(E(i))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?Object(l.a)(O(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Object(p.a)((function(e){return t.svgElement=e})),Object(b.a)((function(t){return O(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var i=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return Object(l.a)(r);var a=e.filter((function(t){return!t.svgElement})).map((function(t){return i._loadSvgIconSetFromConfig(t).pipe(Object(v.a)((function(e){var r="Loading icon set URL: ".concat(i._sanitizer.sanitize(n.J.RESOURCE_URL,t.url)," failed: ").concat(e.message);return i._errorHandler?i._errorHandler.handleError(new Error(r)):console.error(r),Object(l.a)(null)})))}));return Object(d.a)(a).pipe(Object(b.a)((function(){var n=i._extractIconWithNameFromAnySet(t,e);if(!n)throw E(t);return n})))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.svgElement){var r=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(r)return r}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchUrl(t.url).pipe(Object(b.a)((function(i){return e._createSvgElementForSingleIcon(i,t.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(t){var e=this;return t.svgElement?Object(l.a)(t.svgElement):this._fetchUrl(t.url).pipe(Object(b.a)((function(i){return t.svgElement||(t.svgElement=e._svgElementFromString(i)),t.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(t,e){var i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}},{key:"_extractSvgIconFromSet",value:function(t,e,i){var n=t.querySelector('[id="'.concat(e,'"]'));if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);var a=this._svgElementFromString("");return a.appendChild(r),this._setSvgAttributes(a,i)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),i=t.attributes,n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(n){return n.pipe(l((function(i,n){return Object(u.a)(t(i,n)).pipe(Object(c.a)((function(t,r){return e(i,t,n,r)})))}),i))}:("number"==typeof e&&(i=e),function(e){return e.lift(new h(t,i))})}var h=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;g(this,t),this.project=e,this.concurrent=i}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new d(t,this.project,this.concurrent))}}]),t}(),d=function(t){a(i,t);var e=s(i);function i(t,n){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return g(this,i),(r=e.call(this,t)).project=n,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return m(i,[{key:"_next",value:function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),i}(r.a)},cZZj:function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return h})),i.d(e,"c",(function(){return v})),i.d(e,"d",(function(){return m})),i.d(e,"e",(function(){return f})),i.d(e,"f",(function(){return p})),i.d(e,"g",(function(){return b}));var n,r=i("EM62"),a=i("2kYt");try{n="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){n=!1}var o,s,c,u,l=function(){var t=function t(e){g(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(a.J)(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&&!n)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return t.\u0275fac=function(e){return new(e||t)(r.Wb(r.C,8))},t.\u0275prov=Object(r.Ib)({factory:function(){return new t(Object(r.Wb)(r.C,8))},token:t,providedIn:"root"}),t}(),h=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t}(),d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function f(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(d);var t=document.createElement("input");return o=new Set(d.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function p(t){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return s=!0}}))}finally{s=s||!1}return s}()?t:!!t.capture}function b(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function m(){if("object"!=typeof document||!document)return 0;if(null==c){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),c=0,0===t.scrollLeft&&(t.scrollLeft=1,c=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return c}function v(t){if(function(){if(null==u){var t="undefined"!=typeof document?document.head:null;u=!(!t||!t.createShadowRoot&&!t.attachShadow)}return u}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},cePI:function(t,e,i){"use strict";i.d(e,"a",(function(){return A})),i.d(e,"b",(function(){return C})),i.d(e,"c",(function(){return T}));var n=i("EM62"),r=i("5XID"),o=i("mFH5"),u=i("ZTXN"),l=i("g6G6"),h=i("f7+R"),d=i("2kYt"),f=i("sg/T"),p=["mat-sort-header",""];function b(t,e){if(1&t){var i=n.Tb();n.Sb(0,"div",3),n.Zb("@arrowPosition.start",(function(){return n.xc(i),n.dc()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return n.xc(i),n.dc()._disableViewStateAnimation=!1})),n.Nb(1,"div",4),n.Sb(2,"div",5),n.Nb(3,"div",6),n.Nb(4,"div",7),n.Nb(5,"div",8),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.kc("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),n.Ab(2),n.kc("@indicator",r._getArrowDirectionState()),n.Ab(1),n.kc("@leftPointer",r._getArrowDirectionState()),n.Ab(1),n.kc("@rightPointer",r._getArrowDirectionState())}}var v=["*"],y=Object(o.C)(Object(o.A)((function t(){g(this,t)}))),A=function(){var t=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments)).sortables=new Map,t._stateChanges=new u.a,t.start="asc",t._direction="",t.sortChange=new n.o,t}return m(i,[{key:"register",value:function(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error("Cannot have two MatSortables with the same id (".concat(t.id,")."));this.sortables.set(t.id,t)}},{key:"deregister",value:function(t){this.sortables.delete(t.id)}},{key:"sort",value:function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(t){if(!t)return"";var e,i,n,r=(e=t.start||this.start,i=null!=t.disableClear?t.disableClear:this.disableClear,n=["asc","desc"],"desc"==e&&n.reverse(),i||n.push(""),n),a=r.indexOf(this.direction)+1;return a>=r.length&&(a=0),r[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(t){if(Object(n.W)()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(t+" is not a valid sort direction ('asc' or 'desc').")}(t);this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=Object(r.c)(t)}}]),i}(y);return t.\u0275fac=function(e){return w(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.xb,n.yb]}),t}(),w=n.Ub(A),_=o.b.ENTERING+" "+o.a.STANDARD_CURVE,S={indicator:Object(h.n)("indicator",[Object(h.k)("active-asc, asc",Object(h.l)({transform:"translateY(0px)"})),Object(h.k)("active-desc, desc",Object(h.l)({transform:"translateY(10px)"})),Object(h.m)("active-asc <=> active-desc",Object(h.e)(_))]),leftPointer:Object(h.n)("leftPointer",[Object(h.k)("active-asc, asc",Object(h.l)({transform:"rotate(-45deg)"})),Object(h.k)("active-desc, desc",Object(h.l)({transform:"rotate(45deg)"})),Object(h.m)("active-asc <=> active-desc",Object(h.e)(_))]),rightPointer:Object(h.n)("rightPointer",[Object(h.k)("active-asc, asc",Object(h.l)({transform:"rotate(45deg)"})),Object(h.k)("active-desc, desc",Object(h.l)({transform:"rotate(-45deg)"})),Object(h.m)("active-asc <=> active-desc",Object(h.e)(_))]),arrowOpacity:Object(h.n)("arrowOpacity",[Object(h.k)("desc-to-active, asc-to-active, active",Object(h.l)({opacity:1})),Object(h.k)("desc-to-hint, asc-to-hint, hint",Object(h.l)({opacity:.54})),Object(h.k)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Object(h.l)({opacity:0})),Object(h.m)("* => asc, * => desc, * => active, * => hint, * => void",Object(h.e)("0ms")),Object(h.m)("* <=> *",Object(h.e)(_))]),arrowPosition:Object(h.n)("arrowPosition",[Object(h.m)("* => desc-to-hint, * => desc-to-active",Object(h.e)(_,Object(h.h)([Object(h.l)({transform:"translateY(-25%)"}),Object(h.l)({transform:"translateY(0)"})]))),Object(h.m)("* => hint-to-desc, * => active-to-desc",Object(h.e)(_,Object(h.h)([Object(h.l)({transform:"translateY(0)"}),Object(h.l)({transform:"translateY(25%)"})]))),Object(h.m)("* => asc-to-hint, * => asc-to-active",Object(h.e)(_,Object(h.h)([Object(h.l)({transform:"translateY(25%)"}),Object(h.l)({transform:"translateY(0)"})]))),Object(h.m)("* => hint-to-asc, * => active-to-asc",Object(h.e)(_,Object(h.h)([Object(h.l)({transform:"translateY(0)"}),Object(h.l)({transform:"translateY(-25%)"})]))),Object(h.k)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Object(h.l)({transform:"translateY(0)"})),Object(h.k)("hint-to-desc, active-to-desc, desc",Object(h.l)({transform:"translateY(-25%)"})),Object(h.k)("hint-to-asc, active-to-asc, asc",Object(h.l)({transform:"translateY(25%)"}))]),allowChildren:Object(h.n)("allowChildren",[Object(h.m)("* <=> *",[Object(h.i)("@*",Object(h.f)(),{optional:!0})])])},k=function(){var t=function t(){g(this,t),this.changes=new u.a,this.sortButtonLabel=function(t){return"Change sorting for "+t}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),E={provide:k,deps:[[new n.B,new n.K,k]],useFactory:function(t){return t||new k}},R=Object(o.A)((function t(){g(this,t)})),C=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s){var u;if(g(this,i),(u=e.call(this))._intl=t,u._sort=r,u._columnDef=a,u._focusMonitor=o,u._elementRef=s,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",!r)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return u._rerenderSubscription=Object(l.a)(r.sortChange,r._stateChanges,t.changes).subscribe((function(){u._isSorted()&&u._updateArrowDirection(),!u._isSorted()&&u._viewState&&"active"===u._viewState.toState&&(u._disableViewStateAnimation=!1,u._setAnimationTransitionState({fromState:"active",toState:u._arrowDirection})),n.markForCheck()})),o&&s&&o.monitor(s,!0).subscribe((function(t){return u._setIndicatorHintVisible(!!t)})),c(u)}return m(i,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_handleClick",value:function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=Object(r.c)(t)}}]),i}(R);return t.\u0275fac=function(e){return new(e||t)(n.Mb(k),n.Mb(n.h),n.Mb(A,8),n.Mb("MAT_SORT_HEADER_COLUMN_DEF",8),n.Mb(f.h),n.Mb(n.l))},t.\u0275cmp=n.Gb({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.Zb("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(n.Bb("aria-sort",e._getAriaSortAttribute()),n.Eb("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.xb],attrs:p,ngContentSelectors:v,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(n.jc(),n.Sb(0,"div",0),n.Sb(1,"button",1),n.ic(2),n.Rb(),n.Hc(3,b,6,6,"div",2),n.Rb()),2&t&&(n.Eb("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.Ab(1),n.Bb("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),n.Ab(2),n.kc("ngIf",e._renderArrow()))},directives:[d.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[S.indicator,S.leftPointer,S.rightPointer,S.arrowOpacity,S.arrowPosition,S.allowChildren]},changeDetection:0}),t}(),T=function(){var t=function t(){g(this,t)};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[E],imports:[[d.c]]}),t}()},ckkg:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("IdLP"),r=i("dUuy"),a=i("czMQ");function o(t,e){return e?Object(a.a)(t,e):new n.a(Object(r.a)(t))}},cqs0:function(t,e,i){"use strict";i.d(e,"a",(function(){return h})),i.d(e,"b",(function(){return u})),i.d(e,"c",(function(){return f})),i.d(e,"d",(function(){return p})),i.d(e,"e",(function(){return l}));var n=i("9bRT"),r=i("ROBh"),o=i("ZTXN"),c=i("EM62"),u=function t(){g(this,t)};function l(t){return t&&"function"==typeof t.connect}var h=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this))._data=t,n}return m(i,[{key:"connect",value:function(){return Object(n.a)(this._data)?this._data:Object(r.a)(this._data)}},{key:"disconnect",value:function(){}}]),i}(u),f=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g(this,t),this._multiple=i,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.a,n&&n.length&&(i?n.forEach((function(t){return e._markSelected(t)})):this._markSelected(n[0]),this._selectedToEmit.length=0)}return m(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),t}(),p=function(){var t=function(){function t(){g(this,t),this._listeners=[]}return m(t,[{key:"notify",value:function(t,e){var i,n=d(this._listeners);try{for(n.s();!(i=n.n()).done;){(0,i.value)(t,e)}}catch(r){n.e(r)}finally{n.f()}}},{key:"listen",value:function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter((function(e){return t!==e}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(c.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}()},csyo:function(t,e,i){"use strict";i.d(e,"a",(function(){return A})),i.d(e,"b",(function(){return _})),i.d(e,"c",(function(){return w}));var n=i("EM62"),r=i("2kYt"),o=i("mFH5"),c=i("5XID"),u=i("cZZj"),l=i("5lCh");function h(t,e){if(1&t&&(n.cc(),n.Nb(0,"circle",3)),2&t){var i=n.dc();n.Ec("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),n.Bb("r",i._circleRadius)}}function d(t,e){if(1&t&&(n.cc(),n.Nb(0,"circle",3)),2&t){var i=n.dc();n.Ec("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),n.Bb("r",i._circleRadius)}}function f(t,e){if(1&t&&(n.cc(),n.Nb(0,"circle",3)),2&t){var i=n.dc();n.Ec("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),n.Bb("r",i._circleRadius)}}function p(t,e){if(1&t&&(n.cc(),n.Nb(0,"circle",3)),2&t){var i=n.dc();n.Ec("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),n.Bb("r",i._circleRadius)}}var b=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",v=Object(o.y)((function t(e){g(this,t),this._elementRef=e}),"primary"),y=new n.r("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),A=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o){var s;g(this,i),(s=e.call(this,t))._elementRef=t,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=i._diameters;return c.has(r.head)||c.set(r.head,new Set([100])),s._fallbackAnimation=n.EDGE||n.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return m(i,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=Object(u.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,n=i._diameters,r=n.get(t);if(!r||!r.has(e)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",e+""),a.textContent=this._getAnimationText(),t.appendChild(a),r||(r=new Set,n.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){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*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=Object(c.f)(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=Object(c.f)(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,Object(c.f)(t)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),i}(v);return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(u.a),n.Mb(r.e,8),n.Mb(l.a,8),n.Mb(y))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.Bb("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.Ec("width",e.diameter,"px")("height",e.diameter,"px"),n.Eb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.xb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.cc(),n.Sb(0,"svg",0),n.Hc(1,h,1,9,"circle",1),n.Hc(2,d,1,7,"circle",2),n.Rb()),2&t&&(n.Ec("width",e.diameter,"px")("height",e.diameter,"px"),n.kc("ngSwitch","indeterminate"===e.mode),n.Bb("viewBox",e._viewBox),n.Ab(1),n.kc("ngSwitchCase",!0),n.Ab(1),n.kc("ngSwitchCase",!1))},directives:[r.x,r.y],styles:[b],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t}(),w=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o){var s;return g(this,i),(s=e.call(this,t,n,r,a,o)).mode="indeterminate",s}return i}(A);return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(u.a),n.Mb(r.e,8),n.Mb(l.a,8),n.Mb(y))},t.\u0275cmp=n.Gb({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(n.Ec("width",e.diameter,"px")("height",e.diameter,"px"),n.Eb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[n.xb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.cc(),n.Sb(0,"svg",0),n.Hc(1,f,1,9,"circle",1),n.Hc(2,p,1,7,"circle",2),n.Rb()),2&t&&(n.Ec("width",e.diameter,"px")("height",e.diameter,"px"),n.kc("ngSwitch","indeterminate"===e.mode),n.Bb("viewBox",e._viewBox),n.Ab(1),n.kc("ngSwitchCase",!0),n.Ab(1),n.kc("ngSwitchCase",!1))},directives:[r.x,r.y],styles:[b],encapsulation:2,changeDetection:0}),t}(),_=function(){var t=function t(){g(this,t)};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[o.i,r.c],o.i]}),t}()},czMQ:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("IdLP"),r=i("bwdy");function a(t,e){return new n.a((function(i){var n=new r.a,a=0;return n.add(e.schedule((function(){a!==t.length?(i.next(t[a++]),i.closed||n.add(this.schedule())):i.complete()}))),n}))}},dEHC:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),r=["*"],a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"ngOnChanges",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},features:[n.yb],ngContentSelectors:r,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(t,e){1&t&&(n.jc(),n.Sb(0,"div",0),n.Sb(1,"span",1),n.Jc(2),n.Rb(),n.Sb(3,"div",2),n.ic(4),n.Rb(),n.Rb(),n.Sb(5,"div",3),n.Nb(6,"span",4),n.Sb(7,"div",5),n.Jc(8),n.Rb(),n.Rb()),2&t&&(n.Ab(2),n.Lc("",e.label,":"),n.Ab(6),n.Lc(" ",e.description," "))},styles:[""]}),t}()},dUuy:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(t){return function(e){for(var i=0,n=t.length;idone'+t}));break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe((function(t){i.returnData='clear'+t}));break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe((function(t){i.returnData='contact_mail '+t}));break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe((function(t){i.returnData='gavel'+t}));break;default:this.returnData=t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.e))},t.\u0275pipe=n.Lb({name:"applicationState",type:t,pure:!1}),t}()},e4iD:function(t,e,i){"use strict";i.d(e,"a",(function(){return U})),i.d(e,"b",(function(){return F})),i.d(e,"c",(function(){return D})),i.d(e,"d",(function(){return V})),i.d(e,"e",(function(){return j})),i.d(e,"f",(function(){return R}));var r,o=i("2kYt"),c=i("EM62"),u=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"getProperty",value:function(t,e){return t[e]}},{key:"log",value:function(t){window.console&&window.console.log&&window.console.log(t)}},{key:"logGroup",value:function(t){window.console&&window.console.group&&window.console.group(t)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(t,e,i){return t.addEventListener(e,i,!1),function(){t.removeEventListener(e,i,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}},{key:"getValue",value:function(t){return t.value}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(t){var e,i=l||(l=document.querySelector("base"))?l.getAttribute("href"):null;return null==i?null:(e=i,r||(r=document.createElement("a")),r.setAttribute("href",e),"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname)}},{key:"resetBaseElement",value:function(){l=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(t){return Object(o.N)(document.cookie,t)}}],[{key:"makeCurrent",value:function(){Object(o.O)(new i)}}]),i}(function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.call(this)}return m(i,[{key:"supportsDOMEvents",value:function(){return!0}}]),i}(o.K)),l=null,d=new c.r("TRANSITION_ID"),f=[{provide:c.d,useFactory:function(t,e,i){return function(){i.get(c.e).donePromise.then((function(){var i=Object(o.M)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return i.remove(t)}))}))}},deps:[d,o.e,c.s],multi:!0}],p=function(){function t(){g(this,t)}return m(t,[{key:"addToWindow",value:function(t){c.pb.getAngularTestability=function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},c.pb.getAllAngularTestabilities=function(){return t.getAllTestabilities()},c.pb.getAllAngularRootElements=function(){return t.getAllRootElements()},c.pb.frameworkStabilizers||(c.pb.frameworkStabilizers=[]),c.pb.frameworkStabilizers.push((function(t){var e=c.pb.getAllAngularTestabilities(),i=e.length,n=!1,r=function(e){n=n||e,0==--i&&t(n)};e.forEach((function(t){t.whenStable(r)}))}))}},{key:"findTestabilityInTree",value:function(t,e,i){if(null==e)return null;var n=t.getTestability(e);return null!=n?n:i?Object(o.M)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){Object(c.Y)(new t)}}]),t}(),b=new c.r("EventManagerPlugins"),v=function(){var t=function(){function t(e,i){var n=this;g(this,t),this._zone=i,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=n})),this._plugins=e.slice().reverse()}return m(t,[{key:"addEventListener",value:function(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}},{key:"addGlobalEventListener",value:function(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var i=this._plugins,n=0;n-1&&(e.splice(i,1),a+=t+".")})),a+=r,0!=e.length||0===r.length)return null;var o={};return o.domEventName=n,o.fullKey=a,o}},{key:"getEventFullKey",value:function(t){var e="",i=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&x.hasOwnProperty(e)&&(e=x[e]))}return P[e]||e}(t);return" "===(i=i.toLowerCase())?i="space":"."===i&&(i="dot"),M.forEach((function(n){n!=i&&(0,N[n])(t)&&(e+=n+".")})),e+=i}},{key:"eventCallback",value:function(t,e,n){return function(r){i.getEventFullKey(r)===t&&n.runGuarded((function(){return e(r)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),i}(y);return t.\u0275fac=function(e){return new(e||t)(c.Wb(o.e))},t.\u0275prov=c.Ib({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(c.Ib)({factory:function(){return Object(c.Wb)(H)},token:t,providedIn:"root"}),t}();function z(t){return new H(t.get(o.e))}var H=function(){var t=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this))._doc=t,n}return m(i,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case c.J.NONE:return e;case c.J.HTML:return Object(c.eb)(e,"HTML")?Object(c.wb)(e):Object(c.cb)(this._doc,String(e));case c.J.STYLE:return Object(c.eb)(e,"Style")?Object(c.wb)(e):e;case c.J.SCRIPT:if(Object(c.eb)(e,"Script"))return Object(c.wb)(e);throw new Error("unsafe value used in a script context");case c.J.URL:return Object(c.ob)(e),Object(c.eb)(e,"URL")?Object(c.wb)(e):Object(c.db)(String(e));case c.J.RESOURCE_URL:if(Object(c.eb)(e,"ResourceURL"))return Object(c.wb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return Object(c.fb)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return Object(c.ib)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return Object(c.hb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return Object(c.jb)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return Object(c.gb)(t)}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(c.Wb(o.e))},t.\u0275prov=Object(c.Ib)({factory:function(){return z(Object(c.Wb)(c.p))},token:t,providedIn:"root"}),t}(),B=[{provide:c.C,useValue:o.L},{provide:c.D,useValue:function(){u.makeCurrent(),p.init()},multi:!0},{provide:o.e,useFactory:function(){return Object(c.ub)(document),document},deps:[]}],j=Object(c.S)(c.X,"browser",B),G=[[],{provide:c.ab,useValue:"root"},{provide:c.n,useFactory:function(){return new c.n},deps:[]},{provide:b,useClass:O,multi:!0,deps:[o.e,c.A,c.C]},{provide:b,useClass:L,multi:!0,deps:[o.e]},[],{provide:R,useClass:R,deps:[v,w,c.c]},{provide:c.G,useExisting:R},{provide:A,useExisting:w},{provide:w,useClass:w,deps:[o.e]},{provide:c.N,useClass:c.N,deps:[c.A]},{provide:v,useClass:v,deps:[b,c.A]},[]],U=function(){var t=function(){function t(e){if(g(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return m(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:c.c,useValue:e.appId},{provide:d,useExisting:c.c},f]}}}]),t}();return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)(c.Wb(t,12))},providers:G,imports:[o.c,c.f]}),t}();function K(){return new V(Object(c.Wb)(o.e))}var V=function(){var t=function(){function t(e){g(this,t),this._doc=e}return m(t,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(t){this._doc.title=t||""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Wb(o.e))},t.\u0275prov=Object(c.Ib)({factory:K,token:t,providedIn:"root"}),t}();"undefined"!=typeof window&&window},eXxK:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("EM62"),r=i("LAw4"),a=i("s2Ay"),o=function(){var t=function t(){g(this,t),this.resourceSelected=new n.o,this.nameFunction=function(t){return t.name}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resources:"resources"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.resourceSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.resources)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",n.fc(1,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",n.fc(2,8,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",n.fc(3,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[r.a],pipes:[a.d],styles:[""]}),t}()},"eY+9":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},eakH:function(t,e,i){"use strict";i.d(e,"a",(function(){return H}));var n=i("EM62"),r=i("iAde"),a=i("cePI"),o=i("FlRo"),s=i("cqs0"),c=i("hilf"),u=i("8clQ"),l=i("Ssnw"),h=i("OZ4H"),d=i("9wx0"),f=i("2kYt"),p=i("+Tre"),b=i("FcRk"),v=i("s2Ay"),y=i("XhvO"),A=i("kdIE");function w(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",20),n.Sb(1,"mat-checkbox",21),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function _(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",22),n.Sb(1,"mat-checkbox",23),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function S(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")))}function k(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function E(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")))}function R(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.friendlyName)}}function C(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")))}function T(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.entity)}}function I(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")))}function O(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"nameSpaceToDef"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.namespace))}}function D(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")))}function M(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"attributeTypeClean"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.type))}}function P(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")))}function x(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.unique)}}function N(t,e){1&t&&n.Nb(0,"tr",26)}function L(t,e){if(1&t){var i=n.Tb();n.Sb(0,"tr",27),n.Zb("click",(function(){n.xc(i);var t=e.$implicit;return n.dc().onRowClick(t)})),n.Rb()}if(2&t){var r=n.dc();n.Eb("cursor-pointer",!r.disableRouting)}}function F(t,e){1&t&&(n.Sb(0,"app-alert",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function z(t,e){1&t&&(n.Sb(0,"app-alert",28),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var H=function(){var t=function(){function t(e,i,r){g(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=r,this.selection=new s.c(!0,[]),this.hideColumns=[],this.pageSize=10,this.disableRouting=!1,this.refreshEvent=new n.o,this.page=new n.o,this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.pageSizeOptions=u.a}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new o.o(this.definitions),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"entity":return t.entity;case"namespace":if(t.namespace){var i=t.namespace;return i.substring(i.lastIndexOf(":")+1,i.length)}return"";case"type":if(t.type){var n=t.type;return n.substring(n.lastIndexOf(".")+1,n.length)}return"";case"unique":return t.unique?"true":"false";default:return""}}},{key:"exportData",value:function(t){Object(u.i)(Object(u.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,i){return Object(u.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(u.g)(e,i,t.getDataForColumn,t)},this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"onRowClick",value:function(t){var e=this;if(!this.disableRouting){var i=Object(u.o)();i.width="700px",i.data={attDef:t},this.dialog.open(c.a,i).afterClosed().subscribe((function(t){t&&(e.selection.clear(),e.refreshEvent.emit())}))}}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(h.b),n.Mb(l.h),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-attr-def-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Dc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{definitions:"definitions",selection:"selection",hideColumns:"hideColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{refreshEvent:"refreshEvent",page:"page"},features:[n.yb],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,w,2,3,"th",6),n.Hc(7,_,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,S,3,3,"th",9),n.Hc(10,k,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,E,3,3,"th",9),n.Hc(13,R,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,C,3,3,"th",9),n.Hc(16,T,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,I,3,3,"th",9),n.Hc(19,O,3,3,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,D,3,3,"th",9),n.Hc(22,M,3,3,"td",11),n.Pb(),n.Qb(23,15),n.Hc(24,P,3,3,"th",9),n.Hc(25,x,2,1,"td",11),n.Pb(),n.Hc(26,N,1,0,"tr",16),n.Hc(27,L,1,2,"tr",17),n.Rb(),n.Rb(),n.Sb(28,"mat-paginator",18),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(29,F,3,3,"app-alert",19),n.Hc(30,z,3,3,"app-alert",19)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.definitions.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(22),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.definitions.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.definitions.length),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.definitions.length))},directives:[d.a,o.n,a.a,o.c,o.i,o.b,o.k,o.m,r.a,f.t,o.h,p.a,o.a,a.b,o.j,o.l,b.a],pipes:[v.d,y.a,A.a],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},etrl:function(t,e,i){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){o(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(t,a,o){var s=r.URL||r.webkitURL,c=document.createElement("a");c.download=a=a||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,a,o):n(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){n(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,a){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,a),r);else if(i(t))e(t,r,a);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){n(o)}))}}:function(t,i,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var s="application/octet-stream"===t.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});r.saveAs=o.saveAs=o,t.exports=o})?n.apply(e,[]):n)||(t.exports=r)},f3iV:function(t,e,i){"use strict";i.d(e,"a",(function(){return f})),i.d(e,"b",(function(){return p}));var n=i("EM62"),r=i("mFH5"),o=i("sg/T"),u=i("5XID"),l=i("5lCh"),h=0,d=Object(r.A)((function t(){g(this,t)})),f=function(){var t=function(t){a(i,t);var e=s(i);function i(t,r,a,o,s){var u;if(g(this,i),(u=e.call(this))._ngZone=t,u._elementRef=r,u._ariaDescriber=a,u._renderer=o,u._animationMode=s,u._hasContent=!1,u._color="primary",u._overlap=!0,u.position="above after",u.size="medium",u._id=h++,Object(n.W)()){var l=r.nativeElement;if(l.nodeType!==l.ELEMENT_NODE)throw Error("matBadge must be attached to an element node.")}return c(u)}return m(i,[{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(t){var e=t.content;if(e){var i=e.currentValue;this._hasContent=null!=i&&(""+i).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this.content:this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add("mat-badge-content"),t.textContent=this.content,"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){t.classList.add("mat-badge-active")}))})):t.classList.add("mat-badge-active"),t}},{key:"_updateHostAriaDescription",value:function(t,e){var i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}},{key:"_setColor",value:function(t){t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-badge-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-badge-"+t))}},{key:"_clearExistingBadges",value:function(t){for(var e=this._elementRef.nativeElement,i=e.children.length;i--;){var n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}},{key:"color",get:function(){return this._color},set:function(t){this._setColor(t),this._color=t}},{key:"overlap",get:function(){return this._overlap},set:function(t){this._overlap=Object(u.c)(t)}},{key:"description",get:function(){return this._description},set:function(t){if(t!==this._description){var e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(t){this._hidden=Object(u.c)(t)}}]),i}(d);return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.A),n.Mb(n.l),n.Mb(o.c),n.Mb(n.F),n.Mb(l.a,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&n.Eb("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[n.xb,n.yb]}),t}(),p=function(){var t=function t(){g(this,t)};return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},imports:[[o.a,r.i],r.i]}),t}()},"f7+R":function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"d",(function(){return y})),i.d(e,"e",(function(){return s})),i.d(e,"f",(function(){return p})),i.d(e,"g",(function(){return c})),i.d(e,"h",(function(){return d})),i.d(e,"i",(function(){return b})),i.d(e,"j",(function(){return u})),i.d(e,"k",(function(){return h})),i.d(e,"l",(function(){return l})),i.d(e,"m",(function(){return f})),i.d(e,"n",(function(){return o})),i.d(e,"o",(function(){return A})),i.d(e,"p",(function(){return w}));var n=function t(){g(this,t)},r=function t(){g(this,t)},a="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function f(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:i}}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function b(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:i}}function v(t){Promise.resolve(null).then(t)}var y=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;g(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+i}return m(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;v((function(){return t._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),A=function(){function t(e){var i=this;g(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,a=0,o=this.players.length;0==o?v((function(){return i._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++n==o&&i._onFinish()})),t.onDestroy((function(){++r==o&&i._onDestroy()})),t.onStart((function(){++a==o&&i._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return m(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(t){return t.init()}))}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))}},{key:"pause",value:function(){this.players.forEach((function(t){return t.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(t){return t.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach((function(t){var i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var i=e.getPosition();t=Math.min(i,t)})),t}},{key:"beforeDestroy",value:function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),w="!"},"f8+N":function(t,e,i){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,i,r){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(r){var a=encodeURIComponent(n(r))+i;return Array.isArray(t[r])?t[r].map((function(t){return a+encodeURIComponent(n(t))})).join(e):a+encodeURIComponent(n(t[r]))})).join(e):r?encodeURIComponent(n(r))+i+encodeURIComponent(n(t)):""}},fAiE:function(t,e,i){"use strict";i.d(e,"a",(function(){return y})),i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return w})),i.d(e,"d",(function(){return b})),i.d(e,"e",(function(){return g})),i.d(e,"f",(function(){return l})),i.d(e,"g",(function(){return a})),i.d(e,"h",(function(){return o})),i.d(e,"i",(function(){return h})),i.d(e,"j",(function(){return d})),i.d(e,"k",(function(){return v})),i.d(e,"l",(function(){return u})),i.d(e,"m",(function(){return c})),i.d(e,"n",(function(){return p})),i.d(e,"o",(function(){return s})),i.d(e,"p",(function(){return r})),i.d(e,"q",(function(){return f})),i.d(e,"r",(function(){return A})),i.d(e,"s",(function(){return m})),i.d(e,"t",(function(){return _}));var n=8,r=9,a=13,o=27,s=32,c=33,u=34,l=35,h=36,d=37,f=38,p=39,g=40,b=46,m=48,v=57,y=65,A=90,w=188;function _(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:l;return function(e){return e.lift(new c(t))}}var c=function(){function t(e){g(this,t),this.errorFactory=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.errorFactory))}}]),t}(),u=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).errorFactory=n,r.hasValue=!1,r}return m(i,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),i}(r.a);function l(){return new n.a}},g3Wv:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),r=i("s2Ay"),a=function(){var t=function(){function t(e){g(this,t),this.translateService=e,this.returnData=""}return m(t,[{key:"transform",value:function(t){var e=this;switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe((function(t){e.returnData=t}));break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").subscribe((function(t){e.returnData=t}));break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe((function(t){e.returnData=t}));break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe((function(t){e.returnData=t}));break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").subscribe((function(t){e.returnData=t}));break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe((function(t){e.returnData=t}));break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe((function(t){e.returnData=t}));break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe((function(t){e.returnData=t}));break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe((function(t){e.returnData=t}));break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe((function(t){e.returnData=t}));break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe((function(t){e.returnData=t}));break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe((function(t){e.returnData=t}));break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe((function(t){e.returnData=t}));break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe((function(t){e.returnData=t}));break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe((function(t){e.returnData=t}));break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe((function(t){e.returnData=t}));break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe((function(t){e.returnData=t}));break;default:return t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.e))},t.\u0275pipe=n.Lb({name:"applicationFormItemType",type:t,pure:!0}),t}()},g6G6:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("IdLP"),r=i("gBlb"),a=i("3lSR"),o=i("ckkg");function s(){for(var t=arguments.length,e=new Array(t),i=0;i1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof u&&(s=e.pop()),null===c&&1===e.length&&e[0]instanceof n.a?e[0]:Object(a.a)(s)(Object(o.a)(e,c))}},gBlb:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,"a",(function(){return n}))},gcUQ:function(t,e,i){"use strict";i.d(e,"a",(function(){return it})),i.d(e,"b",(function(){return W})),i.d(e,"c",(function(){return et})),i.d(e,"d",(function(){return ut})),i.d(e,"e",(function(){return ct})),i.d(e,"f",(function(){return ft})),i.d(e,"g",(function(){return bt})),i.d(e,"h",(function(){return gt})),i.d(e,"i",(function(){return pt})),i.d(e,"j",(function(){return Z})),i.d(e,"k",(function(){return Y})),i.d(e,"l",(function(){return tt}));var n=i("sg/T"),r=i("HYj3"),o=i("Sv/w"),c=i("2kYt"),u=i("EM62"),l=i("PBFl"),h=i("OZ4H"),d=i("qvOF"),f=i("mFH5"),p=i("ZTXN"),b=i("bwdy"),v=i("g6G6"),y=i("ROBh"),A=i("fAiE"),w=i("J+dc"),_=i("jIqt"),S=i("xVbo"),k=i("5XID"),E=i("f7+R"),R=i("nIj0"),C=i("29Wa"),T=i("Cd2c"),I=i("E5oP"),O=["mat-calendar-body",""];function D(t,e){if(1&t&&(u.Sb(0,"tr",2),u.Sb(1,"td",3),u.Jc(2),u.Rb(),u.Rb()),2&t){var i=u.dc();u.Ab(1),u.Ec("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),u.Bb("colspan",i.numCols),u.Ab(1),u.Lc(" ",i.label," ")}}function M(t,e){if(1&t&&(u.Sb(0,"td",7),u.Jc(1),u.Rb()),2&t){var i=u.dc(2);u.Ec("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),u.Bb("colspan",i._firstRowOffset),u.Ab(1),u.Lc(" ",i._firstRowOffset>=i.labelMinRequiredCells?i.label:""," ")}}function P(t,e){if(1&t){var i=u.Tb();u.Sb(0,"td",8),u.Zb("click",(function(){u.xc(i);var t=e.$implicit;return u.dc(2)._cellClicked(t)})),u.Sb(1,"div",9),u.Jc(2),u.Rb(),u.Rb()}if(2&t){var n=e.$implicit,r=e.index,a=u.dc().index,o=u.dc();u.Ec("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),u.Eb("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",o._isActiveCell(a,r)),u.kc("ngClass",n.cssClasses)("tabindex",o._isActiveCell(a,r)?0:-1),u.Bb("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",o.selectedValue===n.value),u.Ab(1),u.Eb("mat-calendar-body-selected",o.selectedValue===n.value)("mat-calendar-body-today",o.todayValue===n.value),u.Ab(1),u.Lc(" ",n.displayValue," ")}}function x(t,e){if(1&t&&(u.Sb(0,"tr",4),u.Hc(1,M,2,6,"td",5),u.Hc(2,P,3,20,"td",6),u.Rb()),2&t){var i=e.$implicit,n=e.index,r=u.dc();u.Ab(1),u.kc("ngIf",0===n&&r._firstRowOffset),u.Ab(1),u.kc("ngForOf",i)}}function N(t,e){if(1&t&&(u.Sb(0,"th",5),u.Jc(1),u.Rb()),2&t){var i=e.$implicit;u.Bb("aria-label",i.long),u.Ab(1),u.Kc(i.narrow)}}var L=["*"];function F(t,e){}function z(t,e){if(1&t){var i=u.Tb();u.Sb(0,"mat-month-view",5),u.Zb("activeDateChange",(function(t){return u.xc(i),u.dc().activeDate=t}))("selectedChange",(function(t){return u.xc(i),u.dc()._dateSelected(t)}))("_userSelection",(function(){return u.xc(i),u.dc()._userSelected()})),u.Rb()}if(2&t){var n=u.dc();u.kc("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function H(t,e){if(1&t){var i=u.Tb();u.Sb(0,"mat-year-view",6),u.Zb("activeDateChange",(function(t){return u.xc(i),u.dc().activeDate=t}))("monthSelected",(function(t){return u.xc(i),u.dc()._monthSelectedInYearView(t)}))("selectedChange",(function(t){return u.xc(i),u.dc()._goToDateInView(t,"month")})),u.Rb()}if(2&t){var n=u.dc();u.kc("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)}}function B(t,e){if(1&t){var i=u.Tb();u.Sb(0,"mat-multi-year-view",7),u.Zb("activeDateChange",(function(t){return u.xc(i),u.dc().activeDate=t}))("yearSelected",(function(t){return u.xc(i),u.dc()._yearSelectedInMultiYearView(t)}))("selectedChange",(function(t){return u.xc(i),u.dc()._goToDateInView(t,"year")})),u.Rb()}if(2&t){var n=u.dc();u.kc("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)}}var j=["button"];function G(t,e){1&t&&(u.cc(),u.Sb(0,"svg",3),u.Nb(1,"path",4),u.Rb())}var U=[[["","matDatepickerToggleIcon",""]]],K=["[matDatepickerToggleIcon]"];function V(t){return Error("MatDatepicker: No provider found for ".concat(t,". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation."))}var q=function(){var t=function(){function t(){g(this,t),this.changes=new p.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return m(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(u.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),J=function t(e,i,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};g(this,t),this.value=e,this.displayValue=i,this.ariaLabel=n,this.enabled=r,this.cssClasses=a},W=function(){var t=function(){function t(e,i){g(this,t),this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new u.o}return m(t,[{key:"_cellClicked",value:function(t){t.enabled&&this.selectedValueChange.emit(t.value)}},{key:"ngOnChanges",value:function(t){var e=t.numCols,i=this.rows,n=this.numCols;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}},{key:"_isActiveCell",value:function(t,e){var i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Object(w.a)(1)).subscribe((function(){var e=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&e.focus()}))}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Mb(u.l),u.Mb(u.A))},t.\u0275cmp=u.Gb({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[u.yb],attrs:O,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell mat-focus-indicator",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell","mat-focus-indicator",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(t,e){1&t&&(u.Hc(0,D,3,6,"tr",0),u.Hc(1,x,3,2,"tr",1)),2&t&&(u.kc("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"],encapsulation:2,changeDetection:0}),t}(),Z=function(){var t=function(){function t(e,i,n,r){if(g(this,t),this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=n,this._dir=r,this._rerenderSubscription=b.a.EMPTY,this.selectedChange=new u.o,this._userSelection=new u.o,this.activeDateChange=new u.o,!this._dateAdapter)throw V("DateAdapter");if(!this._dateFormats)throw V("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return m(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe((function(){return t._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){if(this._selectedDate!=t){var e=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.createDate(e,i,t);this.selectedChange.emit(n)}this._userSelection.emit()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case A.j:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case A.n:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case A.q:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case A.e:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case A.i:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case A.f:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case A.m:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case A.l:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case A.g:case A.o:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map((function(t,i){return{long:t,narrow:e[i]}}));this._weekdays=i.slice(t).concat(i.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Mb(u.h),u.Mb(f.e,8),u.Mb(f.c,8),u.Mb(I.c,8))},t.\u0275cmp=u.Gb({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var i;1&t&&u.Qc(W,!0),2&t&&u.sc(i=u.ac())&&(e._matCalendarBody=i.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(u.Sb(0,"table",0),u.Sb(1,"thead",1),u.Sb(2,"tr"),u.Hc(3,N,2,2,"th",2),u.Rb(),u.Sb(4,"tr"),u.Nb(5,"th",3),u.Rb(),u.Rb(),u.Sb(6,"tbody",4),u.Zb("selectedValueChange",(function(t){return e._dateSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),u.Rb(),u.Rb()),2&t&&(u.Ab(3),u.kc("ngForOf",e._weekdays),u.Ab(3),u.kc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("selectedValue",e._selectedDate)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[c.s,W],encapsulation:2,changeDetection:0}),t}(),Y=function(){var t=function(){function t(e,i,n){if(g(this,t),this._changeDetectorRef=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=b.a.EMPTY,this.selectedChange=new u.o,this.yearSelected=new u.o,this.activeDateChange=new u.o,!this._dateAdapter)throw V("DateAdapter");this._activeDate=this._dateAdapter.today()}return m(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe((function(){return t._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-Q(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var i=0,n=[];i<24;i++)n.push(e+i),4==n.length&&(this._years.push(n.map((function(e){return t._createCellForYear(e)}))),n=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var e=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case A.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case A.n:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case A.q:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case A.e:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case A.i:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Q(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.f:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Q(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case A.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case A.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case A.g:case A.o:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_getActiveCell",value:function(){return Q(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new J(t,e,e,this._shouldEnableYear(t))}},{key:"_shouldEnableYear",value:function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ti||t===i&&e>n}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t enter",Object(E.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(E.l)({opacity:1,transform:"scale(1, 1)"}))),Object(E.m)("* => void",Object(E.e)("100ms linear",Object(E.l)({opacity:0})))]),fadeInCalendar:Object(E.n)("fadeInCalendar",[Object(E.k)("void",Object(E.l)({opacity:0})),Object(E.k)("enter",Object(E.l)({opacity:1})),Object(E.m)("void => *",Object(E.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},rt=0,at=new u.r("mat-datepicker-scroll-strategy"),ot={provide:at,deps:[r.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},st=Object(f.y)((function t(e){g(this,t),this._elementRef=e})),ct=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t))._changeDetectorRef=n,r._animationState="enter",r._animationDone=new p.a,r}return m(i,[{key:"ngAfterViewInit",value:function(){this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._animationDone.complete()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}]),i}(st);return t.\u0275fac=function(e){return new(e||t)(u.Mb(u.l),u.Mb(u.h))},t.\u0275cmp=u.Gb({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var i;1&t&&u.Qc(it,!0),2&t&&u.sc(i=u.ac())&&(e._calendar=i.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&u.Fc("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(u.Gc("@transformPanel",e._animationState),u.Eb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[u.xb],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(u.Sb(0,"mat-calendar",0),u.Zb("selectedChange",(function(t){return e.datepicker.select(t)}))("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(){return e.datepicker.close()})),u.Rb()),2&t&&u.kc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._minDate)("maxDate",e.datepicker._maxDate)("dateFilter",e.datepicker._dateFilter)("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e.datepicker._selected)("dateClass",e.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[it,n.f,c.q],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[nt.transformPanel,nt.fadeInCalendar]},changeDetection:0}),t}(),ut=function(){var t=function(){function t(e,i,n,r,a,o,s,c){if(g(this,t),this._dialog=e,this._overlay=i,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=o,this._dir=s,this._document=c,this.startView="month",this._touchUi=!1,this.yearSelected=new u.o,this.monthSelected=new u.o,this.openedStream=new u.o,this.closedStream=new u.o,this._opened=!1,this.id="mat-datepicker-"+rt++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=b.a.EMPTY,this._disabledChange=new p.a,this._selectedChanged=new p.a,!this._dateAdapter)throw V("DateAdapter");this._scrollStrategy=a}return m(t,[{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete()}},{key:"select",value:function(t){var e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this._selectedChanged.next(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_registerInput",value:function(t){var e=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe((function(t){return e._selected=t}))}},{key:"open",value:function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}},{key:"close",value:function(){var t=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var e=this._popupComponentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Object(w.a)(1)).subscribe((function(){return t._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var i=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(i)):i()}}},{key:"_openAsDialog",value:function(){var t=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(ct,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return t.close()})),this._dialogRef.componentInstance.datepicker=this,this._dialogRef.componentInstance.color=this.color}},{key:"_openAsPopup",value:function(){var t=this,e=new o.d(ct,this._viewContainerRef);this._destroyPopup(),this._createPopup();var i=this._popupComponentRef=this._popupRef.attach(e);i.instance.datepicker=this,i.instance.color=this.color,this._ngZone.onStable.asObservable().pipe(Object(w.a)(1)).subscribe((function(){t._popupRef.updatePosition()}))}},{key:"_createPopup",value:function(){var t=this,e=new r.d({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(v.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(S.a)((function(e){return e.keyCode===A.h||t._datepickerInput&&e.altKey&&e.keyCode===A.q})))).subscribe((function(e){e&&e.preventDefault(),t.close()}))}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_createPopupPositionStrategy",value:function(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"startAt",get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=Object(k.c)(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=Object(k.c)(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))}},{key:"opened",get:function(){return this._opened},set:function(t){t?this.open():this.close()}},{key:"_selected",get:function(){return this._validSelected},set:function(t){this._validSelected=t}},{key:"_minDate",get:function(){return this._datepickerInput&&this._datepickerInput.min}},{key:"_maxDate",get:function(){return this._datepickerInput&&this._datepickerInput.max}},{key:"_dateFilter",get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Mb(h.b),u.Mb(r.c),u.Mb(u.A),u.Mb(u.Q),u.Mb(at),u.Mb(f.c,8),u.Mb(I.c,8),u.Mb(c.e,8))},t.\u0275cmp=u.Gb({type:t,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),lt={provide:R.p,useExisting:Object(u.U)((function(){return ft})),multi:!0},ht={provide:R.o,useExisting:Object(u.U)((function(){return ft})),multi:!0},dt=function t(e,i){g(this,t),this.target=e,this.targetElement=i,this.value=this.target.value},ft=function(){var t=function(){function t(e,i,n,r){var a=this;if(g(this,t),this._elementRef=e,this._dateAdapter=i,this._dateFormats=n,this._formField=r,this.dateChange=new u.o,this.dateInput=new u.o,this._valueChange=new u.o,this._disabledChange=new u.o,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=b.a.EMPTY,this._localeSubscription=b.a.EMPTY,this._parseValidator=function(){return a._lastValueValid?null:{matDatepickerParse:{text:a._elementRef.nativeElement.value}}},this._minValidator=function(t){var e=a._getValidDateOrNull(a._dateAdapter.deserialize(t.value));return!a.min||!e||a._dateAdapter.compareDate(a.min,e)<=0?null:{matDatepickerMin:{min:a.min,actual:e}}},this._maxValidator=function(t){var e=a._getValidDateOrNull(a._dateAdapter.deserialize(t.value));return!a.max||!e||a._dateAdapter.compareDate(a.max,e)>=0?null:{matDatepickerMax:{max:a.max,actual:e}}},this._filterValidator=function(t){var e=a._getValidDateOrNull(a._dateAdapter.deserialize(t.value));return a._dateFilter&&e&&!a._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=R.F.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw V("DateAdapter");if(!this._dateFormats)throw V("MAT_DATE_FORMATS");this._localeSubscription=i.localeChanges.subscribe((function(){a.value=a.value}))}return m(t,[{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}},{key:"registerOnValidatorChange",value:function(t){this._validatorOnChange=t}},{key:"validate",value:function(t){return this._validator?this._validator(t):null}},{key:"getPopupConnectionElementRef",value:function(){return this.getConnectedOverlayOrigin()}},{key:"getConnectedOverlayOrigin",value:function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._cvaOnChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_onKeydown",value:function(t){this._datepicker&&t.altKey&&t.keyCode===A.e&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),t.preventDefault())}},{key:"_onInput",value:function(t){var e=this._lastValueValid,i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!i||this._dateAdapter.isValid(i),i=this._getValidDateOrNull(i),this._dateAdapter.sameDate(i,this._value)?e!==this._lastValueValid&&this._validatorOnChange():(this._value=i,this._cvaOnChange(i),this._valueChange.emit(i),this.dateInput.emit(new dt(this,this._elementRef.nativeElement)))}},{key:"_onChange",value:function(){this.dateChange.emit(new dt(this,this._elementRef.nativeElement))}},{key:"_getThemePalette",value:function(){return this._formField?this._formField.color:void 0}},{key:"_onBlur",value:function(){this.value&&this._formatValue(this.value),this._onTouched()}},{key:"_formatValue",value:function(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"matDatepicker",set:function(t){var e=this;t&&(this._datepicker=t,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe((function(t){e.value=t,e._cvaOnChange(t),e._onTouched(),e.dateInput.emit(new dt(e,e._elementRef.nativeElement)),e.dateChange.emit(new dt(e,e._elementRef.nativeElement))})))}},{key:"matDatepickerFilter",set:function(t){this._dateFilter=t,this._validatorOnChange()}},{key:"value",get:function(){return this._value},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);var e=this.value;this._value=t,this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}},{key:"min",get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}},{key:"max",get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}},{key:"disabled",get:function(){return!!this._disabled},set:function(t){var e=Object(k.c)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&this._isInitialized&&i.blur&&i.blur()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Mb(u.l),u.Mb(f.c,8),u.Mb(f.e,8),u.Mb(C.a,8))},t.\u0275dir=u.Hb({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&u.Zb("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(u.Vb("disabled",e.disabled),u.Bb("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{value:"value",matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[u.zb([lt,ht,{provide:T.a,useExisting:t}])]}),t}(),pt=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=u.Hb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t}(),gt=function(){var t=function(){function t(e,i,n){g(this,t),this._intl=e,this._changeDetectorRef=i,this._stateChanges=b.a.EMPTY;var r=Number(n);this.tabIndex=r||0===r?r:null}return m(t,[{key:"ngOnChanges",value:function(t){t.datepicker&&this._watchStateChanges()}},{key:"ngOnDestroy",value:function(){this._stateChanges.unsubscribe()}},{key:"ngAfterContentInit",value:function(){this._watchStateChanges()}},{key:"_open",value:function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}},{key:"_watchStateChanges",value:function(){var t=this,e=this.datepicker?this.datepicker._disabledChange:Object(y.a)(),i=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Object(y.a)(),n=this.datepicker?Object(v.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(y.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(v.a)(this._intl.changes,e,i,n).subscribe((function(){return t._changeDetectorRef.markForCheck()}))}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=Object(k.c)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Mb(q),u.Mb(u.h),u.Xb("tabindex"))},t.\u0275cmp=u.Gb({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){var n;1&t&&u.Fb(i,pt,!0),2&t&&u.sc(n=u.ac())&&(e._customIcon=n.first)},viewQuery:function(t,e){var i;1&t&&u.Qc(j,!0),2&t&&u.sc(i=u.ac())&&(e._button=i.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&u.Zb("focus",(function(){return e._button.focus()})),2&t&&(u.Bb("tabindex",e.disabled?null:-1),u.Eb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[u.yb],ngContentSelectors:K,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(u.jc(U),u.Sb(0,"button",0,1),u.Zb("click",(function(t){return e._open(t)})),u.Hc(2,G,2,0,"svg",2),u.ic(3),u.Rb()),2&t&&(u.kc("disabled",e.disabled)("disableRipple",e.disableRipple),u.Bb("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),u.Ab(2),u.kc("ngIf",!e._customIcon))},directives:[l.b,c.t],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t}(),bt=function(){var t=function t(){g(this,t)};return t.\u0275mod=u.Kb({type:t}),t.\u0275inj=u.Jb({factory:function(e){return new(e||t)},providers:[q,ot],imports:[[c.c,l.c,h.h,r.f,n.a,o.i],d.c]}),t}()},gcZR:function(t,e,i){"use strict";i.d(e,"a",(function(){return B}));var n=i("EM62"),r=i("cePI"),a=i("FlRo"),o=i("cqs0"),s=i("iAde"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("bFHC"),p=i("Y2X+"),b=i("sEIs"),v=i("TQS+"),y=i("FcRk"),A=i("s2Ay");function w(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function _(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",21),n.Sb(1,"mat-checkbox",22),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function S(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function k(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function E(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function R(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.name)}}function C(t,e){1&t&&n.Nb(0,"th",19)}function T(t,e){1&t&&(n.Sb(0,"mat-icon",26),n.ec(1,"translate"),n.Jc(2," check_circle_outline "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function I(t,e){1&t&&(n.Sb(0,"mat-icon",26),n.ec(1,"translate"),n.Jc(2," block "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function O(t,e){if(1&t&&(n.Sb(0,"td",24),n.Hc(1,T,3,3,"mat-icon",25),n.Hc(2,I,3,3,"mat-icon",25),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngIf",i.enabled),n.Ab(1),n.kc("ngIf",!i.enabled)}}function D(t,e){1&t&&(n.Sb(0,"th",19),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function M(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.script)}}function P(t,e){1&t&&(n.Sb(0,"th",23),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function x(t,e){if(1&t&&(n.Sb(0,"td",24),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.description)}}function N(t,e){1&t&&n.Nb(0,"tr",27)}var L=function(t){return["/admin/services",t]};function F(t,e){if(1&t&&n.Nb(0,"tr",28),2&t){var i=e.$implicit,r=n.dc();n.Eb("cursor-pointer",!r.disableRouting)("disable-outline",r.disableRouting),n.kc("routerLink",r.disableRouting?null:n.pc(6,L,i.id))("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.pc(8,L,i.id))}}function z(t,e){1&t&&(n.Sb(0,"app-alert",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function H(t,e){1&t&&(n.Sb(0,"app-alert",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}var B=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.services=[],this.filterValue="",this.pageSize=10,this.hideColumns=[],this.selection=new o.c(!0,[]),this.disableRouting=!1,this.page=new n.o,this.displayedColumns=["select","id","name","enabled","script","description"],this.pageSizeOptions=c.a}return m(t,[{key:"ngOnChanges",value:function(t){var e=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.displayedColumns=this.displayedColumns.filter((function(t){return!e.hideColumns.includes(t)})),this.dataSource=new a.o(this.services),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"enabled":return t.enabled?"true":"false";case"script":return t.script;case"description":return t.description;default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-services-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Dc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",hideColumns:"hideColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.yb],decls:28,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"overflow-auto"],[3,"exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"routerLink","perunWebAppsMiddleClickRouterLink","cursor-pointer","disable-outline",4,"matRowDef","matRowDefColumns"],[3,"pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"div",2),n.Sb(3,"perun-web-apps-table-options",3),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,w,2,3,"th",6),n.Hc(7,_,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,S,3,3,"th",9),n.Hc(10,k,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,E,3,3,"th",9),n.Hc(13,R,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,C,1,0,"th",6),n.Hc(16,O,3,2,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,D,3,3,"th",6),n.Hc(19,M,2,1,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,P,3,3,"th",9),n.Hc(22,x,2,1,"td",11),n.Pb(),n.Hc(23,N,1,0,"tr",15),n.Hc(24,F,1,10,"tr",16),n.Rb(),n.Sb(25,"mat-paginator",17),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Rb(),n.Hc(26,z,3,3,"app-alert",18),n.Hc(27,H,3,3,"app-alert",18)),2&t&&(n.kc("hidden",void 0===e.services||0===e.services.length||0===e.dataSource.filteredData.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(19),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&void 0!==e.services&&0!==e.services.length),n.Ab(1),n.kc("ngIf",void 0===e.services||0===e.services.length))},directives:[l.a,a.n,r.a,a.c,a.i,a.b,a.k,a.m,s.a,h.t,a.h,d.a,a.a,r.b,f.a,p.a,a.j,a.l,b.g,v.c,y.a],pipes:[A.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t}()},gdiH:function(t,e,i){"use strict";i.d(e,"a",(function(){return O}));var n=i("EM62"),r=i("cqs0"),a=i("iAde"),o=i("cePI"),s=i("FlRo"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("sEIs"),p=i("TQS+"),b=i("FcRk"),v=i("s2Ay");function y(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",16),n.Sb(1,"mat-checkbox",17),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function A(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",18),n.Sb(1,"mat-checkbox",19),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function w(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")))}function _(t,e){if(1&t&&(n.Sb(0,"td",18),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function S(t,e){1&t&&(n.Sb(0,"th",20),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")))}function k(t,e){if(1&t&&(n.Sb(0,"td",21),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.hostname)}}function E(t,e){1&t&&n.Nb(0,"tr",22)}var R=function(t,e){return["/facilities",t,"hosts",e]};function C(t,e){if(1&t&&n.Nb(0,"tr",23),2&t){var i=e.$implicit,r=n.dc();n.kc("routerLink",r.disableRouting?null:n.qc(2,R,r.facilityId,i.id))("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.qc(5,R,r.facilityId,i.id))}}function T(t,e){1&t&&(n.Sb(0,"app-alert",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function I(t,e){1&t&&(n.Sb(0,"app-alert",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}var O=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.hosts=[],this.selection=new r.c(!0,[]),this.pageSize=10,this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.page=new n.o,this.pageSizeOptions=c.a}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new s.o(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"name":return t.hostname;default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-hosts-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(o.a,!0),n.Dc(a.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["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(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,y,2,3,"th",6),n.Hc(7,A,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,w,3,3,"th",9),n.Hc(10,_,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,S,3,3,"th",9),n.Hc(13,k,2,1,"td",11),n.Pb(),n.Hc(14,E,1,0,"tr",12),n.Hc(15,C,1,8,"tr",13),n.Rb(),n.Rb(),n.Sb(16,"mat-paginator",14),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(17,T,3,3,"app-alert",15),n.Hc(18,I,3,3,"app-alert",15)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.hosts.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(10),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.hosts.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.hosts.length),n.Ab(1),n.kc("ngIf",0===e.hosts.length))},directives:[l.a,s.n,o.a,s.c,s.i,s.b,s.k,s.m,a.a,h.t,s.h,d.a,s.a,o.b,s.j,s.l,f.g,p.c,b.a],pipes:[v.d],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},got8:function(t,e,i){"use strict";i.d(e,"a",(function(){return T}));var n=i("cqs0"),r=i("X2Q7"),a=i("iyZ4"),o=i("h6su"),s=i("Gtvd"),c=i("8clQ"),u=i("Ssnw"),l=(i("HHEo"),i("EM62")),h=i("sEIs"),d=i("OZ4H"),f=i("0XDM"),p=i("2kYt"),b=i("Y2X+"),v=i("PBFl"),y=i("A8Ay"),A=i("csyo"),w=i("23RZ"),_=i("s2Ay"),S=["list"];function k(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",8),l.Zb("click",(function(){return l.xc(i),l.dc().addResource()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function E(t,e){1&t&&l.Nb(0,"mat-spinner",9)}var R=function(){return["select","id","name","facility","tags","description"]};function C(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-resources-list",10,11),l.Zb("page",(function(t){return l.xc(i),l.dc().pageChanged(t)})),l.Rb()}if(2&t){var n=l.dc();l.kc("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("routingVo",!0)("disableRouting",!n.routingAuth)("selection",n.selected)("groupToResource",n.group)("displayedColumns",l.oc(8,R))}}var T=function(){var t=function(){function t(e,i,r,o,s,c){g(this,t),this.resourcesManager=e,this.groupService=i,this.tableConfigService=r,this.route=o,this.dialog=s,this.guiAuthResolver=c,this.resources=null,this.selected=new n.c(!0,[]),this.filterValue="",this.tableId=a.J,this.addAuth=!1}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.groupId=e.groupId,t.voId=e.voId,t.groupService.getGroupById(t.groupId).subscribe((function(e){t.group=e,t.refreshTable()}))}))}},{key:"setAuthorization",value:function(){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])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getAssignedRichResourcesWithGroup(this.group.id).subscribe((function(e){t.resources=e,t.selected.clear(),t.setAuthorization(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"addResource",value:function(){var t=this,e=Object(c.o)();e.width="1000px",e.data={theme:"group-theme",group:this.group,voId:this.voId,unwantedResources:this.resources.map((function(t){return t.id}))},this.dialog.open(o.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"removeResource",value:function(){var t=this,e=Object(c.o)();e.width="450px",e.data={theme:"group-theme",resources:this.selected.selected,groupId:this.groupId},this.dialog.open(s.a,e).afterClosed().subscribe((function(e){e&&(t.selected.clear(),t.refreshTable())}))}}]),t}();return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(l.Mb(r.m),l.Mb(r.h),l.Mb(a.pb),l.Mb(h.a),l.Mb(d.b),l.Mb(u.h))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){var i;1&t&&l.Qc(S,!0),2&t&&l.sc(i=l.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("router-component",!0)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","displayedColumns","page"],["list",""]],template:function(t,e){1&t&&(l.Sb(0,"div"),l.Sb(1,"h1",0),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"perun-web-apps-refresh-button",1),l.Zb("refresh",(function(){return e.refreshTable()})),l.Rb(),l.Hc(5,k,3,3,"button",2),l.Sb(6,"span",3),l.ec(7,"translate"),l.Sb(8,"button",4),l.Zb("click",(function(){return e.removeResource()})),l.Jc(9),l.ec(10,"translate"),l.Rb(),l.Rb(),l.Sb(11,"perun-web-apps-immediate-filter",5),l.Zb("filter",(function(t){return e.applyFilter(t)})),l.Rb(),l.Hc(12,E,1,0,"mat-spinner",6),l.Hc(13,C,2,9,"perun-web-apps-resources-list",7),l.Rb()),2&t&&(l.Ab(2),l.Kc(l.fc(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),l.Ab(3),l.kc("ngIf",e.addAuth),l.Ab(1),l.lc("matTooltip",l.fc(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),l.kc("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),l.Ab(2),l.kc("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),l.Ab(1),l.Lc(" ",l.fc(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),l.Ab(2),l.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",e.resources&&!e.loading))},directives:[f.a,p.t,b.a,v.b,y.a,A.c,w.a],pipes:[_.d],styles:[""]}),t}()},gpj7:function(t,e,i){"use strict";i.d(e,"a",(function(){return T}));var n=i("X2Q7"),r=i("Ssnw"),a=i("+MEm"),o=i("8clQ"),s=i("EM62"),c=i("OZ4H"),u=i("s2Ay"),l=i("e4iD"),h=i("2kYt"),d=i("PBFl"),f=i("bFHC"),p=i("sEIs"),b=i("Y2X+"),v=i("f3iV"),y=i("Jb3d");function A(t,e){1&t&&(s.Sb(0,"div",15),s.Sb(1,"span",16),s.Jc(2," ~ \ud83d\uddf2\xa0 "),s.Rb(),s.Sb(3,"span",17),s.Jc(4," DEVEL "),s.Rb(),s.Sb(5,"span",16),s.Jc(6," \xa0\ud83d\uddf2 ~ "),s.Rb(),s.Rb())}function w(t,e){if(1&t){var i=s.Tb();s.Sb(0,"button",18),s.Zb("click",(function(){return s.xc(i),s.dc().reloadRoles()})),s.Jc(1),s.ec(2,"translate"),s.Rb()}2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"NAV.RELOAD_ROLES")," "))}function _(t,e){if(1&t){var i=s.Tb();s.Sb(0,"button",18),s.Zb("click",(function(){return s.xc(i),s.dc().onLogOut()})),s.Jc(1),s.ec(2,"translate"),s.Rb()}2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"NAV.LOGOUT")))}var S=function(t){return{color:t}},k=function(){return["/"]},E=function(t){return{padding:t}},R=function(){return{height:"56px"}},C=function(){return["/myProfile"]},T=function(){var t=function(){function t(e,i,n,r,a,o,s,c,u){g(this,t),this.storeService=e,this.authService=i,this.authzResolverService=n,this.dialog=r,this.notificator=a,this.translateService=o,this.store=s,this.sanitizer=c,this.notificationStorageService=u,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.logoPadding=this.storeService.get("logo_padding"),this.isDevel=!1}return m(t,[{key:"ngAfterViewInit",value:function(){}},{key:"ngOnInit",value:function(){this.isDevel=this.storeService.get("isDevel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.get("logo")),this.logoutEnabled=this.storeService.get("log_out_enabled")}},{key:"onLogOut",value:function(){this.authService.logout()}},{key:"showNotificationHistory",value:function(){this.notificationStorageService.newNotificationsCount=0;var t=Object(o.o)();t.width="520px",this.dialog.open(a.a,t)}},{key:"getNewNotificationsCount",value:function(){return this.notificationStorageService.newNotificationsCount}},{key:"reloadRoles",value:function(){var t=this;this.authzResolverService.loadAuthorizationComponents().subscribe((function(){return t.notificator.showSuccess(t.translateService.instant("NAV.RELOAD_ROLES_SUCCESS"))}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.m),s.Mb(r.d),s.Mb(n.d),s.Mb(c.b),s.Mb(r.l),s.Mb(u.e),s.Mb(r.m),s.Mb(l.b),s.Mb(r.k))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:25,vars:43,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],[3,"routerLink","ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],["logoContainer",""],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],["mat-button","",3,"matMenuTriggerFor"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click",4,"ngIf"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(s.Sb(0,"div",0),s.Sb(1,"button",1),s.Zb("click",(function(){return e.sideNav.toggle()})),s.Sb(2,"mat-icon",2),s.Jc(3," menu "),s.Rb(),s.Rb(),s.Sb(4,"a",3),s.Nb(5,"div",4,5),s.Rb(),s.Rb(),s.Hc(7,A,7,0,"div",6),s.Sb(8,"div",7),s.Sb(9,"button",8),s.Zb("click",(function(){return e.showNotificationHistory()})),s.ec(10,"translate"),s.Sb(11,"mat-icon",9),s.Jc(12),s.Rb(),s.Rb(),s.Sb(13,"button",10),s.Sb(14,"mat-icon",2),s.Jc(15," person "),s.Rb(),s.Sb(16,"span",11),s.Jc(17),s.Rb(),s.Rb(),s.Sb(18,"mat-menu",null,12),s.Sb(20,"button",13),s.Jc(21),s.ec(22,"translate"),s.Rb(),s.Hc(23,w,3,3,"button",14),s.Hc(24,_,3,3,"button",14),s.Rb(),s.Rb()),2&t){var i=s.tc(19);s.kc("ngStyle",s.pc(28,S,e.navTextColor)),s.Ab(2),s.kc("ngStyle",s.pc(30,S,e.iconColor)),s.Ab(2),s.kc("routerLink",s.oc(32,k))("ngStyle",s.pc(33,E,e.logoPadding)),s.Ab(1),s.kc("innerHTML",e.logo,s.yc)("ngStyle",s.oc(35,R)),s.Ab(2),s.kc("ngIf",e.isDevel),s.Ab(1),s.kc("ngStyle",s.pc(36,S,e.navTextColor)),s.Ab(1),s.kc("matTooltip",s.fc(10,24,"NAV.NOTIFICATIONS_TOOLTIP")),s.Ab(2),s.lc("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),s.kc("ngStyle",s.pc(38,S,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),s.Ab(1),s.Lc(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),s.Ab(1),s.kc("matMenuTriggerFor",i),s.Ab(1),s.kc("ngStyle",s.pc(40,S,e.iconColor)),s.Ab(3),s.Pc(" ",e.principal.user.titleBefore," ",e.principal.user.firstName," ",e.principal.user.middleName," ",e.principal.user.lastName," ",e.principal.user.titleAfter," "),s.Ab(3),s.kc("routerLink",s.oc(42,C)),s.Ab(1),s.Kc(s.fc(22,26,"NAV.PROFILE")),s.Ab(2),s.kc("ngIf",e.authzResolverService.isPerunAdmin()),s.Ab(1),s.kc("ngIf",e.logoutEnabled)}},directives:[h.w,d.b,f.a,p.i,h.t,b.a,v.a,y.d,y.e,y.b,p.g],pipes:[u.d],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:270px}.logo-container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::slotted(svg){height:56px}#nav-link-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-link-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1rem;line-height:64px;text-align:center;height:64px;display:block}"]}),t}()},h1El:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("OZ4H"),r=i("Ssnw"),a=i("8clQ"),o=i("nIj0"),s=i("EM62"),c=i("s2Ay"),u=i("29Wa"),l=i("Cd2c"),h=i("R7+U"),f=i("2kYt"),p=i("PBFl"),b=i("mFH5"),v=i("1Gb8"),y=i("g3Wv");function A(t,e){if(1&t&&(s.Sb(0,"mat-option",9),s.Jc(1),s.ec(2,"applicationFormItemType"),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i),s.Ab(1),s.Lc(" ",s.fc(2,2,i)," ")}}function w(t,e){if(1&t&&(s.Sb(0,"mat-option",9),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.kc("value",i),s.Ab(1),s.Lc(" ",i," ")}}var _=function(){var t=function(){function t(e,i,n,r){g(this,t),this.dialogRef=e,this.data=i,this.translateService=n,this.notificationService=r,this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","FROM_FEDERATION_HIDDEN","HTML_COMMENT","TEXTFIELD","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION"]}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe((function(e){t.nameCtrl=new o.g("",[o.F.required,o.F.pattern(".*[\\S]+.*"),o.F.maxLength(129)]),t.nameCtrl.markAllAsTouched(),t.items.push(e);var i,n=d(t.data.applicationFormItems);try{for(n.s();!(i=n.n()).done;){var r=i.value;t.items.push(r.shortname)}}catch(a){n.e(a)}finally{n.f()}t.selectedItem=e}))}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"submit",value:function(){var t=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,t])}},{key:"createApplicationItem",value:function(){var t=Object(a.d)();t.id=this.data.fakeId,t.shortname=this.nameCtrl.value,t.type=this.selectedWidget;for(var e=0;e0)}}function k(t,e){1&t&&(l.Sb(0,"app-alert",15),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.kc("alert_type","info"),l.Ab(1),l.Lc(" ",l.fc(2,2,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function E(t,e){1&t&&(l.Sb(0,"app-alert",16),l.Jc(1),l.ec(2,"translate"),l.Rb()),2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function R(t,e){1&t&&l.Nb(0,"mat-spinner",17)}var C=function(){var t=function(){function t(e,i,n,r,a,c,u){g(this,t),this.dialogRef=e,this.data=i,this.tableConfigService=n,this.userManager=r,this.storeService=a,this.notificator=c,this.translate=u,this.loading=!1,this.selection=new s.c(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=o.fb}return m(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new u.g("",[u.F.required,u.F.pattern(".*[\\S]+.*")])}},{key:"onAdd",value:function(){var t,e,i=this;this.loading=!0,this.isService?(t=this.selection.selected[0].id,e=this.userId):(t=this.userId,e=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(t,e).subscribe((function(){i.notificator.showSuccess(i.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),i.dialogRef.close(!0)}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSearchByString",value:function(){var t=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.firstSearchDone=!0;var e=[c.a.USER_DEF_ORGANIZATION,c.a.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe((function(e){t.identities=t.filterIdentities(e),t.loading=!1}),(function(){t.loading=!1}))}}},{key:"onKeyInput",value:function(t){"Enter"===t.key&&this.onSearchByString()}},{key:"filterIdentities",value:function(t){return t.filter(this.isService?function(t){return!t.serviceUser}:function(t){return t.serviceUser})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(n.i),l.Mb(n.a),l.Mb(o.pb),l.Mb(r.p),l.Mb(a.m),l.Mb(a.l),l.Mb(h.e))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-connect-identity"]],decls:26,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"],["mat-flat-button","","color","primary",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],[3,"alert_type",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page",4,"ngIf"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page"],[3,"alert_type"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(l.Sb(0,"div",0),l.Zb("keyup",(function(t){return e.onKeyInput(t)})),l.Sb(1,"h1",1),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"div",2),l.Sb(5,"mat-form-field",3),l.Sb(6,"label"),l.Nb(7,"input",4),l.ec(8,"translate"),l.Rb(),l.Sb(9,"mat-error"),l.Jc(10),l.ec(11,"translate"),l.Rb(),l.Rb(),l.Sb(12,"button",5),l.Zb("click",(function(){return e.onSearchByString()})),l.Sb(13,"mat-icon"),l.Jc(14,"search"),l.Rb(),l.Rb(),l.Hc(15,S,2,1,"div",6),l.Hc(16,k,3,4,"app-alert",7),l.Hc(17,E,3,3,"app-alert",8),l.Rb(),l.Hc(18,R,1,0,"mat-spinner",9),l.Sb(19,"div",10),l.Sb(20,"button",11),l.Zb("click",(function(){return e.onCancel()})),l.Jc(21),l.ec(22,"translate"),l.Rb(),l.Sb(23,"button",12),l.Zb("click",(function(){return e.onAdd()})),l.Jc(24),l.ec(25,"translate"),l.Rb(),l.Rb(),l.Rb()),2&t&&(l.Cb(e.theme),l.Ab(2),l.Kc(l.fc(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE")),l.Ab(5),l.lc("placeholder",l.fc(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),l.kc("formControl",e.searchCtrl),l.Ab(3),l.Lc(" ",l.fc(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),l.Ab(2),l.kc("disabled",e.loading),l.Ab(3),l.kc("ngIf",!e.loading),l.Ab(1),l.kc("ngIf",!e.firstSearchDone),l.Ab(1),l.kc("ngIf",!e.loading&&e.firstSearchDone&&0===e.identities.length),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(3),l.Lc(" ",l.fc(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),l.Ab(2),l.kc("disabled",0===e.selection.selected.length),l.Ab(1),l.Lc(" ",l.fc(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[n.j,n.g,d.c,f.b,u.c,u.r,u.h,d.b,p.b,b.a,v.t,n.c,y.a,A.a,w.c],pipes:[h.d],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),t}()},hLiN:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("8clQ"),r=i("EM62"),a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){return Object(n.G)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"userVo",type:t,pure:!0}),t}()},hQLc:function(t,e,i){"use strict";i.d(e,"a",(function(){return M}));var n=i("X2Q7"),r=i("iyZ4"),a=i("cqs0"),o=i("8clQ"),s=i("c9OP"),c=i("6mVK"),u=i("Ssnw"),l=(i("HHEo"),i("EM62")),h=i("sEIs"),d=i("OZ4H"),f=i("2kYt"),p=i("0XDM"),b=i("PBFl"),v=i("Y2X+"),y=i("A8Ay"),A=i("csyo"),w=i("K9kF"),_=i("s2Ay"),S=["list"];function k(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-refresh-button",7),l.Zb("refresh",(function(){return l.xc(i),l.dc().refreshTable()})),l.Rb()}}function E(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",8),l.Zb("click",(function(){return l.xc(i),l.dc().addGroup()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function R(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",11),l.Zb("click",(function(){return l.xc(i),l.dc(2).removeGroup()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}if(2&t){var n=l.dc(2);l.kc("disabled",0===n.selection.selected.length||void 0!==n.list&&!n.list.removeAuth),l.Ab(1),l.Lc(" ",l.fc(2,2,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function C(t,e){if(1&t&&(l.Sb(0,"span",9),l.ec(1,"translate"),l.Hc(2,R,3,4,"button",10),l.Rb()),2&t){var i=l.dc();l.lc("matTooltip",l.fc(1,3,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),l.kc("matTooltipDisabled",void 0===i.list||void 0!==i.list&&i.list.removeAuth),l.Ab(2),l.kc("ngIf",!i.loading)}}function T(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-immediate-filter",12),l.Zb("filter",(function(t){return l.xc(i),l.dc().applyFilter(t)})),l.Rb()}2&t&&l.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH")}function I(t,e){1&t&&l.Nb(0,"mat-spinner",13)}var O=function(){return["vo","menu","recent"]};function D(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-groups-list",14,15),l.Zb("page",(function(t){return l.xc(i),l.dc().pageChanged(t)}))("refreshTable",(function(){return l.xc(i),l.dc().refreshTable()})),l.Rb()}if(2&t){var n=l.dc();l.kc("pageSize",n.pageSize)("groups",n.groups)("hideColumns",l.oc(8,O))("selection",n.selection)("filter",n.filterValue)("memberId",n.memberId)("disableRouting",!n.routeAuth)("authType","member-groups")}}var M=function(){var t=function(){function t(e,i,n,o,s,c){g(this,t),this.groupsService=e,this.tableConfigService=i,this.route=n,this.dialog=o,this.authResolver=s,this.memberService=c,this.filterValue="",this.tableId=r.P,this.selection=new a.c(!0,[])}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.memberId=e.memberId,t.memberService.getMemberById(t.memberId).subscribe((function(e){t.member=e,t.groupsService.getAllGroups(t.member.voId).subscribe((function(e){t.allGroups=e,t.refreshTable()}))}))}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe((function(e){t.selection.clear(),t.filterValue="",t.groups=e,t.setAuthRights(),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"setAuthRights",value:function(){var t=this,e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((function(e,i){return e||t.authResolver.isAuthorized("addMember_Group_Member_policy",[i])}),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[e,this.groups[0]]))}},{key:"addGroup",value:function(){var t=this,e=Object(o.o)();e.width="850px",e.data={memberId:this.memberId,membersGroups:new Set(this.groups.map((function(t){return t.id}))),theme:"member-theme"},this.dialog.open(s.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"removeGroup",value:function(){var t=this,e=Object(o.o)();e.width="650px",e.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(c.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(l.Mb(n.h),l.Mb(r.pb),l.Mb(h.a),l.Mb(d.b),l.Mb(u.h),l.Mb(n.i))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){var i;1&t&&l.Qc(S,!0),2&t&&l.sc(i=l.ac())&&(e.list=i.first)},hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("router-component",!0)},decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","groups","hideColumns","selection","filter","memberId","disableRouting","authType","page","refreshTable",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[3,"pageSize","groups","hideColumns","selection","filter","memberId","disableRouting","authType","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(l.Sb(0,"h1",0),l.Jc(1),l.ec(2,"translate"),l.Rb(),l.Hc(3,k,1,0,"perun-web-apps-refresh-button",1),l.Hc(4,E,3,3,"button",2),l.Hc(5,C,3,5,"span",3),l.Hc(6,T,1,1,"perun-web-apps-immediate-filter",4),l.Hc(7,I,1,0,"mat-spinner",5),l.Hc(8,D,2,9,"perun-web-apps-groups-list",6)),2&t&&(l.Ab(1),l.Kc(l.fc(2,7,"MEMBER_DETAIL.GROUPS.TITLE")),l.Ab(2),l.kc("ngIf",!e.loading),l.Ab(1),l.kc("ngIf",!e.loading&&e.addAuth),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(1),l.kc("ngIf",!e.loading),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading))},directives:[f.t,p.a,b.b,v.a,y.a,A.c,w.a],pipes:[_.d],styles:[""]}),t}()},hiWg:function(t,e,i){"use strict";i.d(e,"a",(function(){return k}));var n=i("OZ4H"),r=i("nIj0"),a=i("X2Q7"),o=i("Ssnw"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo"),d=i("29Wa"),f=i("Cd2c"),p=i("R7+U"),b=i("mFH5");function v(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function y(t,e){1&t&&(s.Sb(0,"div",15),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function A(t,e){1&t&&(s.Sb(0,"div",15),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Lc(" ",s.fc(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function w(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function _(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function S(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",7),s.Hc(1,y,3,3,"div",8),s.Hc(2,A,3,3,"div",8),s.Sb(3,"mat-form-field",9),s.Nb(4,"input",10),s.ec(5,"translate"),s.Hc(6,w,3,3,"mat-error",11),s.Rb(),s.Sb(7,"mat-form-field",9),s.Nb(8,"textarea",10),s.ec(9,"translate"),s.Hc(10,_,3,3,"mat-error",11),s.Rb(),s.Sb(11,"mat-form-field",9),s.Sb(12,"mat-label"),s.Jc(13),s.ec(14,"translate"),s.Rb(),s.Sb(15,"mat-select",12),s.Zb("valueChange",(function(t){return s.xc(i),s.dc().language=t})),s.Sb(16,"mat-option",13),s.Jc(17),s.ec(18,"translate"),s.Rb(),s.Sb(19,"mat-option",14),s.Jc(20),s.ec(21,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(1),s.kc("ngIf",!n.data.groupId),s.Ab(1),s.kc("ngIf",n.data.groupId),s.Ab(2),s.lc("placeholder",s.fc(5,12,"DIALOGS.INVITE_MEMBER.NAME")),s.kc("formControl",n.name),s.Ab(2),s.kc("ngIf",n.name.invalid),s.Ab(2),s.lc("placeholder",s.fc(9,14,"DIALOGS.INVITE_MEMBER.EMAIL")),s.kc("formControl",n.emailForm),s.Ab(2),s.kc("ngIf",n.emailForm.invalid),s.Ab(3),s.Kc(s.fc(14,16,"DIALOGS.INVITE_MEMBER.LANGUAGE")),s.Ab(2),s.kc("value",n.language),s.Ab(2),s.Kc(s.fc(18,18,"DIALOGS.INVITE_MEMBER.LANGUAGE_ENGLISH")),s.Ab(3),s.Kc(s.fc(21,20,"DIALOGS.INVITE_MEMBER.LANGUAGE_CZECH"))}}var k=function(){var t=function(){function t(e,i,n,a,o){g(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.notificator=a,this.translate=o,this.emailForm=new r.g("",[r.F.required,r.F.email]),this.language="en",this.name=new r.g("",r.F.required),this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.language,this.data.voId).subscribe((function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.language,this.data.voId,this.data.groupId).subscribe((function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(o.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","accent",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"],["value","en"],["value","cs"],[1,"font-italic"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,v,1,0,"mat-spinner",1),s.Hc(5,S,22,22,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),s.Ab(2),s.kc("disabled",e.emailForm.invalid||e.name.invalid||e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,d.c,f.b,r.c,r.C,r.r,r.h,d.g,p.a,b.n,d.b],pipes:[c.d],styles:[""]}),t}()},hilf:function(t,e,i){"use strict";i.d(e,"a",(function(){return L}));var n=i("OZ4H"),r=i("Ssnw"),a=i("X2Q7"),o=i("TkCa"),s=i("Iydx"),c=i("iyZ4"),u=i("EM62"),l=i("s2Ay"),h=i("HHFY"),f=i("2kYt"),p=i("PBFl"),b=i("Y2X+"),v=i("csyo"),y=i("29Wa"),A=i("Cd2c"),w=i("nIj0"),_=i("H0K4"),S=i("k8N0"),k=i("+Tre"),E=i("gcZR"),R=i("aFDG"),C=["copiedTooltip"];function T(t,e){1&t&&u.Nb(0,"mat-spinner",12)}function I(t,e){1&t&&(u.Sb(0,"mat-error"),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Kc(u.fc(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function O(t,e){1&t&&(u.Sb(0,"mat-error"),u.Jc(1),u.ec(2,"translate"),u.Rb()),2&t&&(u.Ab(1),u.Kc(u.fc(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}var D=function(){return["select","description"]};function M(t,e){if(1&t){var i=u.Tb();u.Sb(0,"div",13),u.Sb(1,"mat-form-field",3),u.Sb(2,"label"),u.Sb(3,"input",14),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).attDef.displayName=t})),u.ec(4,"translate"),u.Rb(),u.Rb(),u.Hc(5,I,3,3,"mat-error",2),u.Rb(),u.Nb(6,"br"),u.Sb(7,"mat-form-field",3),u.Sb(8,"label"),u.Sb(9,"textarea",15),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).attDef.description=t})),u.ec(10,"translate"),u.Jc(11," "),u.Rb(),u.Rb(),u.Hc(12,O,3,3,"mat-error",2),u.Rb(),u.Nb(13,"br"),u.Sb(14,"div",16),u.Sb(15,"p"),u.Jc(16),u.ec(17,"translate"),u.Rb(),u.Sb(18,"p",17),u.Zb("click",(function(){return u.xc(i),u.dc(2).attDef.unique=!1})),u.Jc(19,"OFF"),u.Rb(),u.Sb(20,"mat-slide-toggle",18),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).attDef.unique=t})),u.ec(21,"translate"),u.Jc(22," ON "),u.Rb(),u.Rb(),u.Sb(23,"div",19),u.Sb(24,"p",20),u.Jc(25),u.ec(26,"translate"),u.Rb(),u.Sb(27,"p",21),u.Jc(28),u.ec(29,"translate"),u.Rb(),u.Rb(),u.Sb(30,"div",22),u.Sb(31,"p",23),u.Jc(32),u.ec(33,"translate"),u.Rb(),u.Sb(34,"mat-checkbox",24),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).readSelf=t})),u.Rb(),u.Sb(35,"mat-checkbox",25),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).writeSelf=t})),u.Rb(),u.Rb(),u.Sb(36,"div",22),u.Sb(37,"p",23),u.Jc(38),u.ec(39,"translate"),u.Rb(),u.Sb(40,"mat-checkbox",26),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).readSelfPublic=t})),u.Rb(),u.Sb(41,"mat-checkbox",25),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).writeSelfPublic=t})),u.Rb(),u.Rb(),u.Sb(42,"div",22),u.Sb(43,"p",23),u.Jc(44),u.ec(45,"translate"),u.Rb(),u.Sb(46,"mat-checkbox",27),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).readSelfVo=t})),u.Rb(),u.Sb(47,"mat-checkbox",25),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).writeSelfVo=t})),u.Rb(),u.Rb(),u.Sb(48,"div",22),u.Sb(49,"p",23),u.Jc(50),u.ec(51,"translate"),u.Rb(),u.Sb(52,"mat-checkbox",28),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).readVo=t})),u.Rb(),u.Sb(53,"mat-checkbox",25),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).writeVo=t})),u.Rb(),u.Rb(),u.Sb(54,"div",22),u.Sb(55,"p",23),u.Jc(56),u.ec(57,"translate"),u.Rb(),u.Sb(58,"mat-checkbox",29),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).readGroup=t})),u.Rb(),u.Sb(59,"mat-checkbox",25),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).writeGroup=t})),u.Rb(),u.Rb(),u.Sb(60,"div",22),u.Sb(61,"p",23),u.Jc(62),u.ec(63,"translate"),u.Rb(),u.Sb(64,"mat-checkbox",27),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).readFacility=t})),u.Rb(),u.Sb(65,"mat-checkbox",25),u.Zb("ngModelChange",(function(t){return u.xc(i),u.dc(2).writeFacility=t})),u.Rb(),u.Rb(),u.Sb(66,"div",30),u.Sb(67,"p"),u.Jc(68),u.ec(69,"translate"),u.Rb(),u.Nb(70,"app-services-list",31),u.Rb(),u.Rb()}if(2&t){var n=u.dc(2);u.Ab(3),u.lc("placeholder",u.fc(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),u.kc("ngModel",n.attDef.displayName),u.Ab(2),u.kc("ngIf",""===n.attDef.displayName),u.Ab(4),u.lc("placeholder",u.fc(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),u.kc("ngModel",n.attDef.description),u.Ab(3),u.kc("ngIf",""===n.attDef.description),u.Ab(4),u.Kc(u.fc(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),u.Ab(4),u.lc("matTooltip",u.fc(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),u.kc("matTooltipDisabled",!n.disableUniqueToggle())("disabled",n.disableUniqueToggle())("ngModel",n.attDef.unique),u.Ab(5),u.Kc(u.fc(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),u.Ab(3),u.Kc(u.fc(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),u.Ab(4),u.Kc(u.fc(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),u.Ab(2),u.kc("ngModel",n.readSelf),u.Ab(1),u.kc("ngModel",n.writeSelf),u.Ab(3),u.Kc(u.fc(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),u.Ab(2),u.kc("ngModel",n.readSelfPublic),u.Ab(1),u.kc("ngModel",n.writeSelfPublic),u.Ab(3),u.Kc(u.fc(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),u.Ab(2),u.kc("ngModel",n.readSelfVo),u.Ab(1),u.kc("ngModel",n.writeSelfVo),u.Ab(3),u.Kc(u.fc(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),u.Ab(2),u.kc("ngModel",n.readVo),u.Ab(1),u.kc("ngModel",n.writeVo),u.Ab(3),u.Kc(u.fc(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),u.Ab(2),u.kc("ngModel",n.readGroup),u.Ab(1),u.kc("ngModel",n.writeGroup),u.Ab(3),u.Kc(u.fc(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),u.Ab(2),u.kc("ngModel",n.readFacility),u.Ab(1),u.kc("ngModel",n.writeFacility),u.Ab(3),u.Kc(u.fc(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),u.Ab(2),u.kc("services",n.services)("hideColumns",u.oc(61,D))("disableRouting",!0)}}function P(t,e){if(1&t){var i=u.Tb();u.Sb(0,"button",32),u.Zb("click",(function(){return u.xc(i),u.dc(2).switchShowKeys()})),u.Jc(1),u.ec(2,"translate"),u.Rb()}2&t&&(u.Ab(1),u.Lc(" ",u.fc(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function x(t,e){if(1&t){var i=u.Tb();u.Sb(0,"div"),u.Sb(1,"div",3),u.Sb(2,"h1",4),u.Jc(3),u.Rb(),u.Hc(4,T,1,0,"mat-spinner",5),u.Hc(5,M,71,62,"div",6),u.Sb(6,"div",7),u.Hc(7,P,3,3,"button",8),u.Sb(8,"button",9),u.Zb("click",(function(){return u.xc(i),u.dc().onCopy()})),u.Jc(9),u.ec(10,"translate"),u.Rb(),u.Sb(11,"button",10),u.Zb("click",(function(){return u.xc(i),u.dc().onCancel()})),u.Jc(12),u.ec(13,"translate"),u.Rb(),u.Sb(14,"button",11),u.Zb("click",(function(){return u.xc(i),u.dc().onSubmit()})),u.ec(15,"translate"),u.Jc(16),u.ec(17,"translate"),u.Rb(),u.Rb(),u.Rb(),u.Rb()}if(2&t){var n=u.dc();u.Ab(3),u.Kc(n.attDef.namespace+":"+n.attDef.friendlyName),u.Ab(1),u.kc("ngIf",n.loading),u.Ab(1),u.kc("ngIf",!n.loading),u.Ab(2),u.kc("ngIf","entityless"===n.attDef.entity),u.Ab(2),u.Lc(" ",u.fc(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),u.Ab(3),u.Lc(" ",u.fc(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),u.Ab(2),u.lc("matTooltip",u.fc(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),u.kc("disabled",n.disableConfirmButton()||n.loading)("matTooltipDisabled",!n.disableConfirmButton()),u.Ab(2),u.Lc(" ",u.fc(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function N(t,e){if(1&t){var i=u.Tb();u.Sb(0,"div"),u.Sb(1,"app-entityless-attribute-keys-list",33),u.Zb("page",(function(t){return u.xc(i),u.dc().pageChanged(t)}))("switchView",(function(){return u.xc(i),u.dc().switchShowKeys()})),u.Rb(),u.Rb()}if(2&t){var n=u.dc();u.Ab(1),u.kc("pageSize",n.pageSize)("attDef",n.attDef)}}var L=function(){var t=function(){function t(e,i,n,r,a,o,s,u,l){g(this,t),this.dialog=e,this.dialogRef=i,this.data=n,this.notificator=r,this.translate=a,this.clipboard=o,this.attributesManager=s,this.tableConfigService=u,this.serviceService=l,this.showKeys=!1,this.activatedComponent="Edit",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=c.t,this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe((function(e){t.services=e,t.attributesManager.getAttributeRights(t.attDef.id).subscribe((function(e){t.fromRightsToCheckboxes(e),t.loading=!1}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}},{key:"disableConfirmButton",value:function(){return""===this.attDef.displayName||""===this.attDef.description}},{key:"disableUniqueToggle",value:function(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe((function(e){t.attDef=e,t.attributesManager.setAttributeRights({rights:t.fromCheckboxesToRights()}).subscribe((function(){t.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"fromCheckboxesToRights",value:function(){var t=[],e={};e.attributeId=this.attDef.id,e.role=s.a.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);var i={};i.attributeId=this.attDef.id,i.role=s.a.VOADMIN,i.rights=[],this.readVo&&i.rights.push("READ"),this.writeVo&&i.rights.push("WRITE"),t.push(i);var n={};n.attributeId=this.attDef.id,n.role=s.a.GROUPADMIN,n.rights=[],this.readGroup&&n.rights.push(a.a.READ),this.writeGroup&&n.rights.push("WRITE"),t.push(n);var r={};return r.attributeId=this.attDef.id,r.role=s.a.FACILITYADMIN,r.rights=[],this.readFacility&&r.rights.push("READ"),this.writeFacility&&r.rights.push("WRITE"),t.push(r),t}},{key:"fromRightsToCheckboxes",value:function(t){var e,i=d(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;switch(n.role){case s.a.SELF:n.rights.includes("READ")&&(this.readSelf=!0),n.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),n.rights.includes("READ_VO")&&(this.readSelfVo=!0),n.rights.includes("WRITE")&&(this.writeSelf=!0),n.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),n.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case s.a.GROUPADMIN:n.rights.includes("READ")&&(this.readGroup=!0),n.rights.includes("WRITE")&&(this.writeGroup=!0);break;case s.a.FACILITYADMIN:n.rights.includes("READ")&&(this.readFacility=!0),n.rights.includes("WRITE")&&(this.writeFacility=!0);break;case s.a.VOADMIN:n.rights.includes("READ")&&(this.readVo=!0),n.rights.includes("WRITE")&&(this.writeVo=!0)}}}catch(r){i.e(r)}finally{i.f()}}},{key:"switchShowKeys",value:function(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"onCopy",value:function(){var t={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};this.clipboard.copy(JSON.stringify(t))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Mb(n.b),u.Mb(n.i),u.Mb(n.a),u.Mb(r.l),u.Mb(l.e),u.Mb(h.b),u.Mb(a.c),u.Mb(c.pb),u.Mb(a.n))},t.\u0275cmp=u.Gb({type:t,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(t,e){var i;1&t&&u.Qc(C,!0),2&t&&u.sc(i=u.ac())&&(e.copiedToolTip=i.first)},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","","class","ml-0",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"services","hideColumns","disableRouting"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"pageSize","attDef","page","switchView"]],template:function(t,e){1&t&&(u.Sb(0,"div",0),u.Sb(1,"div",1),u.Hc(2,x,18,18,"div",2),u.Hc(3,N,2,2,"div",2),u.Rb(),u.Rb()),2&t&&(u.Ab(2),u.kc("ngIf",!e.showKeys),u.Ab(1),u.kc("ngIf",e.showKeys))},directives:[f.t,n.j,n.c,p.b,b.a,v.c,n.g,y.c,A.b,w.c,w.C,w.r,w.u,_.c,S.a,k.a,E.a,y.b,R.a],pipes:[l.d],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[o.g,o.e,o.f]}}),t}()},"i9P/":function(t,e,i){"use strict";function n(t){setTimeout((function(){throw t}),0)}i.d(e,"a",(function(){return n}))},i9xl:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("IdLP"),r=i("GoAz"),a=i("6Oco");function o(t){return new n.a((function(e){var i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(r.a)(i):Object(a.b)()).subscribe(e)}))}},iAde:function(t,e,i){"use strict";i.d(e,"a",(function(){return C})),i.d(e,"b",(function(){return T}));var n=i("2kYt"),r=i("EM62"),o=i("PBFl"),u=i("R7+U"),l=i("Y2X+"),h=i("5XID"),d=i("ZTXN"),f=i("mFH5"),p=i("29Wa");function b(t,e){if(1&t&&(r.Sb(0,"mat-option",19),r.Jc(1),r.Rb()),2&t){var i=e.$implicit;r.kc("value",i),r.Ab(1),r.Lc(" ",i," ")}}function v(t,e){if(1&t){var i=r.Tb();r.Sb(0,"mat-form-field",16),r.Sb(1,"mat-select",17),r.Zb("selectionChange",(function(t){return r.xc(i),r.dc(2)._changePageSize(t.value)})),r.Hc(2,b,2,2,"mat-option",18),r.Rb(),r.Rb()}if(2&t){var n=r.dc(2);r.kc("color",n.color),r.Ab(1),r.kc("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),r.Ab(1),r.kc("ngForOf",n._displayedPageSizeOptions)}}function y(t,e){if(1&t&&(r.Sb(0,"div",20),r.Jc(1),r.Rb()),2&t){var i=r.dc(2);r.Ab(1),r.Kc(i.pageSize)}}function A(t,e){if(1&t&&(r.Sb(0,"div",12),r.Sb(1,"div",13),r.Jc(2),r.Rb(),r.Hc(3,v,3,5,"mat-form-field",14),r.Hc(4,y,2,1,"div",15),r.Rb()),2&t){var i=r.dc();r.Ab(2),r.Lc(" ",i._intl.itemsPerPageLabel," "),r.Ab(1),r.kc("ngIf",i._displayedPageSizeOptions.length>1),r.Ab(1),r.kc("ngIf",i._displayedPageSizeOptions.length<=1)}}function w(t,e){if(1&t){var i=r.Tb();r.Sb(0,"button",21),r.Zb("click",(function(){return r.xc(i),r.dc().firstPage()})),r.cc(),r.Sb(1,"svg",7),r.Nb(2,"path",22),r.Rb(),r.Rb()}if(2&t){var n=r.dc();r.kc("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),r.Bb("aria-label",n._intl.firstPageLabel)}}function _(t,e){if(1&t){var i=r.Tb();r.cc(),r.bc(),r.Sb(0,"button",23),r.Zb("click",(function(){return r.xc(i),r.dc().lastPage()})),r.cc(),r.Sb(1,"svg",7),r.Nb(2,"path",24),r.Rb(),r.Rb()}if(2&t){var n=r.dc();r.kc("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),r.Bb("aria-label",n._intl.lastPageLabel)}}var S=function(){var t=function t(){g(this,t),this.changes=new d.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,i){if(0==i||0==e)return"0 of "+i;var n=t*e;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+e,i):n+e," of ").concat(i)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),k={provide:S,deps:[[new r.B,new r.K,S]],useFactory:function(t){return t||new S}},E=new r.r("MAT_PAGINATOR_DEFAULT_OPTIONS"),R=Object(f.A)(Object(f.C)((function t(){g(this,t)}))),C=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,a){var o;if(g(this,i),(o=e.call(this))._intl=t,o._changeDetectorRef=n,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new r.o,o._intlChanges=t.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),a){var s=a.pageSize,u=a.pageSizeOptions,l=a.hidePageSize,h=a.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=u&&(o._pageSizeOptions=u),null!=l&&(o._hidePageSize=l),null!=h&&(o._showFirstLastButtons=h)}return c(o)}return m(i,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex0?"sync_problem":(null!==u&&u.trim(),"sync")}if(a){var l=Object(r.l)(t.attributes,n.a.GROUP_LAST_STRUCTURE_SYNC_STATE),h=Object(r.l)(t.attributes,n.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"sync_problem":(null!==f&&f.trim(),"sync")}return"sync_disabled"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Lb({name:"groupSyncIcon",type:t,pure:!0}),t}()},iT3j:function(t,e,i){"use strict";i.d(e,"a",(function(){return I}));var n=i("EM62"),r=i("cePI"),a=i("cqs0"),o=i("FlRo"),s=i("iAde"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("FcRk"),p=i("s2Ay");function b(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",17),n.Sb(1,"mat-checkbox",18),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function v(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",19),n.Sb(1,"mat-checkbox",20),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function y(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")))}function A(t,e){if(1&t&&(n.Sb(0,"td",19),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function w(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")))}function _(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.name)}}function S(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")))}function k(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.description)}}function E(t,e){1&t&&n.Nb(0,"tr",23)}function R(t,e){1&t&&n.Nb(0,"tr",24)}function C(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function T(t,e){1&t&&(n.Sb(0,"app-alert",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}var I=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.securityTeams=[],this.selection=new a.c(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","description"],this.page=new n.o,this.pageSizeOptions=c.a}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new o.o(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"description":return t.description;default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-security-teams-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Dc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,b,2,3,"th",6),n.Hc(7,v,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,y,3,3,"th",9),n.Hc(10,A,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,w,3,3,"th",9),n.Hc(13,_,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,S,3,3,"th",9),n.Hc(16,k,2,1,"td",11),n.Pb(),n.Hc(17,E,1,0,"tr",13),n.Hc(18,R,1,0,"tr",14),n.Rb(),n.Rb(),n.Sb(19,"mat-paginator",15),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(20,C,3,3,"app-alert",16),n.Hc(21,T,3,3,"app-alert",16)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.securityTeams.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(13),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.securityTeams.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.securityTeams.length),n.Ab(1),n.kc("ngIf",0===e.securityTeams.length))},directives:[l.a,o.n,r.a,o.c,o.i,o.b,o.k,o.m,s.a,h.t,o.h,d.a,o.a,r.b,o.j,o.l,f.a],pipes:[p.d],styles:[""]}),t}()},"ipn+":function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("OZ4H"),r=i("X2Q7"),a=i("Ssnw"),o=i("EM62"),s=i("s2Ay"),c=i("2kYt"),u=i("YRqw"),l=i("ABWF"),h=i("PBFl"),d=i("csyo");function f(t,e){1&t&&o.Nb(0,"mat-spinner",9)}var p=function(){var t=function(){function t(e,i,n,r,a,o,s,c){var u=this;g(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=r,this.registrarManager=a,this.notificatorService=o,this.apiRequest=s,this.data=c,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name},r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe((function(t){return u.successMessage=t})),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe((function(t){return u.privilegeMessage=t})),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe((function(t){return u.noFormMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe((function(e){t.voService.getMyVos().subscribe((function(e){t.vos=e.sort((function(t,e){return t.name>e.name?1:t.name0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new o(t))}}var o=function(){function t(e){g(this,t),this.defaultValue=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.defaultValue))}}]),t}(),c=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).defaultValue=n,r.isEmpty=!0,r}return m(i,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(n.a)},is9t:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("OZ4H"),r=i("TkCa"),a=i("X2Q7"),o=i("EM62"),s=i("s2Ay"),c=i("2kYt"),u=i("YRqw"),l=i("ABWF"),h=i("PBFl"),d=i("csyo");function f(t,e){1&t&&o.Nb(0,"mat-spinner",9)}var p=function(){var t=function(){function t(e,i,n,r,a,o){g(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=r,this.registrarService=a,this.data=o,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name}}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe((function(e){t.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},t.selectedGroup=t.fakeGroup,t.voService.getAllVos().subscribe((function(e){t.vos=e,t.vos=e.sort((function(t,e){return t.name>e.name?1:t.name0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==u&&u.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(a){var l=Object(n.l)(t.attributes,r.a.GROUP_LAST_STRUCTURE_SYNC_STATE),h=Object(n.l)(t.attributes,r.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==f&&f.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Lb({name:"groupSyncToolTip",type:t,pure:!0}),t}()},jIqt:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("qZtG"),r=i("gBlb");function a(){for(var t=arguments.length,e=new Array(t),i=0;i+()\[\]\\.,;:\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]{2,3}))$/,this.namespaceOptions=[],this.namespaceRules=[],this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new h.c(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=p.jb,this.groupAttrNames=[f.a.GROUP_SYNC_ENABLED,f.a.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",s.F.required],sponsoredMembers:["",[s.F.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:function(e){t.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe((function(e){t.manualMemberAddingBlocked=t.hasAttributeEnabled(e,"blockManualMemberAdding"),!0!==t.manualMemberAddingBlocked?t.groupsService.getAllRichGroupsWithAttributesByNames(t.data.voId,t.groupAttrNames).subscribe((function(e){t.allVoGroups=e.filter((function(t){return"members"!==t.name})),t.assignableGroups=t.filterAssignableGroups(e),t.membersService.getAllNamespacesRules().subscribe((function(e){t.store.get("allow_empty_sponsor_namespace")&&t.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"}),t.namespaceRules=t.namespaceRules.concat(e),t.namespaceRules.forEach((function(e){return t.namespaceOptions.push(e.namespaceName)})),0===t.namespaceOptions.length?t.functionalityNotSupported=!0:t.usersInfoFormGroup.setValue({namespace:t.namespaceOptions[0],sponsoredMembers:""}),t.loading=!1}))}),(function(){return t.loading=!1})):t.loading=!1}),(function(){return t.loading=!1}))}},{key:"filterAssignableGroups",value:function(t){var e,i=[],n=d(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.hasAttributeEnabled(r.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(r.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[r])||i.push(r)}}catch(a){n.e(a)}finally{n.f()}return i}},{key:"hasAttributeEnabled",value:function(t,e){return t.some((function(t){return t.friendlyName===e&&null!==t.value&&"true"===t.value.toString()}))}},{key:"createOutputObjects",value:function(t){for(var e="",i="",n="",r="",a=[],o=0,s=Object.keys(t);o=2;return function(u){return u.pipe(t?Object(r.a)((function(e,i){return t(e,i,u)})):c.a,Object(a.a)(1),i?Object(o.a)(e):Object(s.a)((function(){return new n.a})))}}},jjFd:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("OZ4H"),r=i("EM62"),a=i("2kYt"),o=i("s2Ay"),s=function(){var t=function(){function t(e,i){g(this,t),this.data=e,this.location=i}return m(t,[{key:"ngOnInit",value:function(){}},{key:"redirect",value:function(){this.location.go("/"),location.reload()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(n.a),r.Mb(a.n))},t.\u0275cmp=r.Gb({type:t,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(r.Sb(0,"h2"),r.Jc(1),r.ec(2,"translate"),r.Rb(),r.Sb(3,"p"),r.Jc(4),r.ec(5,"translate"),r.Rb(),r.Sb(6,"div"),r.Sb(7,"button",0),r.Zb("click",(function(){return e.redirect()})),r.Jc(8),r.ec(9,"translate"),r.Rb(),r.Rb()),2&t&&(r.Ab(1),r.Lc(" ",r.fc(2,3,e.data.title),"\n"),r.Ab(3),r.Lc(" ",r.fc(5,5,e.data.message),"\n"),r.Ab(4),r.Lc(" ",r.fc(9,7,e.data.action)," "))},pipes:[o.d],styles:[""]}),t}()},jk8c:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("FlRo"),a=i("Ssnw"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"th",14)}function f(t,e){if(1&t&&(s.Sb(0,"td",15),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Mc(" ",i.firstName," ",i.lastName,"")}}function p(t,e){1&t&&s.Nb(0,"tr",16)}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){if(1&t&&(s.Sb(0,"div",6),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",7),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",8),s.Qb(8,9),s.Hc(9,d,1,0,"th",10),s.Hc(10,f,2,2,"td",11),s.Pb(),s.Hc(11,p,1,0,"tr",12),s.Hc(12,b,1,0,"tr",13),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_MANAGERS.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}function y(t,e){1&t&&s.Nb(0,"mat-spinner",18)}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.authzService=a,this.displayedColumns=["name"]}return m(t,[{key:"ngOnInit",value:function(){this.dataSource=new r.o(this.data.managers),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map((function(t){return t.id})),complementaryObject:this.data.complementaryObject}).subscribe((function(){t.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(c.e),s.Mb(o.d))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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",""],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,v,13,9,"div",1),s.Hc(5,y,1,0,"mat-spinner",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),s.Ab(2),s.kc("ngIf",!e.loading),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[n.j,u.t,n.c,l.b,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l,h.c],pipes:[c.d],styles:[""]}),t}()},jqZM:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("EM62"),r=i("8clQ"),a=i("LAw4"),o=i("s2Ay"),s=function(){var t=function t(){g(this,t),this.disableAutoSelect=!1,this.userSelected=new n.o,this.userFullNameFunction=r.w};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,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(t,e){1&t&&(n.Sb(0,"perun-web-apps-entity-search-select",0),n.Zb("entitySelected",(function(t){return e.userSelected.emit(t)})),n.ec(1,"translate"),n.ec(2,"translate"),n.ec(3,"translate"),n.Rb()),2&t&&n.kc("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.fc(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.fc(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.fc(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[a.a],pipes:[o.d],styles:[""]}),t}()},k8N0:function(t,e,i){"use strict";i.d(e,"a",(function(){return E})),i.d(e,"b",(function(){return O})),i.d(e,"c",(function(){return C}));var n=i("TKFd"),r=i("EM62"),o=i("mFH5"),c=i("5XID"),u=i("nIj0"),l=i("5lCh"),h=i("sg/T"),d=i("E5oP"),f=["thumbContainer"],p=["toggleBar"],b=["input"],v=function(){return{enterDuration:150}},y=["*"],A=new r.r("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),w=0,_={provide:u.p,useExisting:Object(r.U)((function(){return E})),multi:!0},S=function t(e,i){g(this,t),this.source=e,this.checked=i},k=Object(o.D)(Object(o.y)(Object(o.z)(Object(o.A)((function t(e){g(this,t),this._elementRef=e}))),"accent")),E=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,a,o,s,c,u,l){var h;return g(this,i),(h=e.call(this,t))._focusMonitor=n,h._changeDetectorRef=a,h.defaults=c,h._animationMode=u,h._onChange=function(t){},h._onTouched=function(){},h._uniqueId="mat-slide-toggle-"+ ++w,h._required=!1,h._checked=!1,h.name=null,h.id=h._uniqueId,h.labelPosition="after",h.ariaLabel=null,h.ariaLabelledby=null,h.change=new r.o,h.toggleChange=new r.o,h.dragChange=new r.o,h.tabIndex=parseInt(o)||0,h}return m(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then((function(){return t._onTouched()}))}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new S(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=Object(c.c)(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=Object(c.c)(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return(this.id||this._uniqueId)+"-input"}}]),i}(k);return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(h.h),r.Mb(r.h),r.Xb("tabindex"),r.Mb(r.A),r.Mb(A),r.Mb(l.a,8),r.Mb(d.c,8))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(r.Qc(f,!0),r.Qc(p,!0),r.Qc(b,!0)),2&t&&(r.sc(i=r.ac())&&(e._thumbEl=i.first),r.sc(i=r.ac())&&(e._thumbBarEl=i.first),r.sc(i=r.ac())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Vb("id",e.id),r.Bb("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.Eb("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[r.zb([_]),r.xb],ngContentSelectors:y,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.jc(),r.Sb(0,"label",0,1),r.Sb(2,"div",2,3),r.Sb(4,"input",4,5),r.Zb("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),r.Rb(),r.Sb(6,"div",6,7),r.Nb(8,"div",8),r.Sb(9,"div",9),r.Nb(10,"div",10),r.Rb(),r.Rb(),r.Rb(),r.Sb(11,"span",11,12),r.Zb("cdkObserveContent",(function(){return e._onLabelTextChange()})),r.Sb(13,"span",13),r.Jc(14,"\xa0"),r.Rb(),r.ic(15),r.Rb(),r.Rb()),2&t){var i=r.tc(1),n=r.tc(12);r.Bb("for",e.inputId),r.Ab(2),r.Eb("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),r.Ab(2),r.kc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.Bb("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.Ab(5),r.kc("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.oc(17,v))}},directives:[o.s,n.a],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),R={provide:u.o,useExisting:Object(r.U)((function(){return C})),multi:!0},C=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(u.b);return t.\u0275fac=function(e){return T(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[r.zb([R]),r.xb]}),t}(),T=r.Ub(C),I=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t}(),O=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[I,o.t,o.i,n.c],I,o.i]}),t}()},kLAD:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("FlRo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&s.Nb(0,"th",15)}function p(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.friendlyName," ")}}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){1&t&&s.Nb(0,"tr",18)}function y(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,1,0,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Hc(11,b,1,0,"tr",13),s.Hc(12,v,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Kc(s.fc(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.serviceManager=n,this.notificator=r,this.translate=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new o.o(this.data.attrDefinitions)}},{key:"onConfirm",value:function(){var t=this;this.loading=!0;var e=this.dataSource.data.map((function(t){return t.id}));this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe((function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),t.dialogRef.close(!0),t.loading=!1}),(function(e){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(n.n),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"div"),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onConfirm()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),s.Ab(2),s.Cb(e.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL"),""),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE"),""))},directives:[r.j,u.t,r.c,l.b,h.c,r.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l],pipes:[c.d],styles:[""]}),t}()},kdIE:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("EM62"),r=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){if(null===t)return null;var i=t;return i.substring(i.lastIndexOf(".")+1,i.length)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Lb({name:"attributeTypeClean",type:t,pure:!0}),t}()},kuMc:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("pBDD"),r=i("mW0F");function o(t){return function(e){return e.lift(new c(t))}}var c=function(){function t(e){g(this,t),this.notifier=e}return m(t,[{key:"call",value:function(t,e){var i=new u(t),n=Object(r.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}]),t}(),u=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this,t)).seenValue=!1,n}return m(i,[{key:"notifyNext",value:function(t,e,i,n,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),i}(n.a)},l18O:function(t,e,i){"use strict";i.d(e,"a",(function(){return et}));var n=i("EM62"),r=i("cePI"),a=i("iAde"),o=i("8clQ"),s=i("+0js"),c=i("Ssnw"),u=i("g6G6"),l=i("8j5Y"),h=i("OZ4H"),d=i("2kYt"),f=i("FlRo"),p=i("csyo"),b=i("+Tre"),v=i("Y2X+"),y=i("sEIs"),A=i("TQS+"),w=i("FcRk"),_=i("s2Ay"),S=i("j+u3"),k=i("C5kn"),E=i("yAs8"),R=i("RK/0"),C=i("IBaA"),T=i("NZNE"),I=i("Log1");function O(t,e){1&t&&(n.Sb(0,"div",23),n.Nb(1,"mat-spinner",24),n.Rb())}function D(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",25),n.Sb(1,"mat-checkbox",26),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function M(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",27),n.Sb(1,"mat-checkbox",28),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function P(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.ID")))}function x(t,e){if(1&t&&(n.Sb(0,"td",27),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function N(t,e){1&t&&(n.Sb(0,"th",29),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.NAME")))}function L(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.user))}}function F(t,e){1&t&&n.Nb(0,"div")}function z(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function H(t,e){1&t&&n.Hc(0,z,3,3,"th",6)}function B(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.STATUS")))}function j(t,e){1&t&&n.Hc(0,B,3,3,"th",6)}function G(t,e){if(1&t&&(n.Sb(0,"span"),n.Jc(1),n.ec(2,"memberStatusIcon"),n.Rb()),2&t){var i=n.dc().$implicit;n.Ab(1),n.Lc(" ",n.fc(2,1,i.status)," ")}}function U(t,e){if(1&t&&(n.Sb(0,"span"),n.Jc(1),n.ec(2,"memberStatusIcon"),n.Rb()),2&t){var i=n.dc().$implicit;n.Ab(1),n.Lc(" ",n.fc(2,1,i.groupStatus)," ")}}function K(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",30),n.Sb(1,"i",31),n.Zb("click",(function(t){n.xc(i);var r=e.$implicit;return n.dc().changeStatus(t,r)})),n.ec(2,"memberStatusIconColor"),n.ec(3,"memberStatusIconColor"),n.ec(4,"memberStatusTooltip"),n.Hc(5,G,3,3,"span",32),n.Hc(6,U,3,3,"span",32),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.Db("material-icons ",a.showGroupStatuses?n.fc(2,6,r.groupStatus):n.fc(3,8,r.status),""),n.lc("matTooltip",n.gc(4,10,r,a.showGroupStatuses)),n.Ab(4),n.kc("ngIf",!a.showGroupStatuses),n.Ab(1),n.kc("ngIf",a.showGroupStatuses)}}function V(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.ORGANIZATION")))}function q(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberOrganization"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i))}}function J(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.EMAIL")))}function W(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberEmail"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i))}}function Z(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"MEMBERS_LIST.LOGINS")))}function Y(t,e){if(1&t&&(n.Sb(0,"td",30),n.Jc(1),n.ec(2,"memberLogins"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i))}}function X(t,e){1&t&&n.Nb(0,"tr",33)}var Q=function(t,e){return["/organizations",t,"members",e]};function $(t,e){if(1&t&&n.Nb(0,"tr",34),2&t){var i=e.$implicit,r=n.dc();n.Eb("disable-outline",!r.dataSource.routeAuth)("cursor-pointer",r.dataSource.routeAuth),n.kc("routerLink",r.dataSource.routeAuth?n.qc(6,Q,i.voId,i.id):null)("perunWebAppsMiddleClickRouterLink",r.dataSource.routeAuth?n.qc(9,Q,i.voId,i.id):null)}}function tt(t,e){1&t&&(n.Sb(0,"app-alert",35),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.kc("alert_type","warn"),n.Ab(1),n.Lc(" ",n.fc(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var et=function(){var t=function(){function t(e,i,r,a){g(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=r,this.dynamicPaginatingService=a,this.hideColumns=[],this.pageSize=10,this.page=new n.o,this.updateTable=new n.o,this.exporting=!1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.pageSizeOptions=o.a}return m(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe((function(){return t.paginator.pageIndex=0})),Object(u.a)(this.sort.sortChange,this.paginator.page).pipe(Object(l.a)((function(){return t.loadMembersPage()}))).subscribe()}},{key:"ngOnInit",value:function(){var t=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.displayedColumns=this.displayedColumns.filter((function(e){return!t.hideColumns.includes(e)})),this.dataSource=new c.j(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.pageSize,"NAME")}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.pageSize}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach((function(e){return t.selection.select(e)}))}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e){var i=this;if(t.stopPropagation(),"INVALID"===e.status){var n=Object(o.o)();n.width="500px",n.data={member:e},this.dialog.open(s.e,n).afterClosed().subscribe((function(t){t&&i.updateTable.emit(!0)}))}}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"loadMembersPage",value:function(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.paginator.pageIndex,this.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(h.b),n.Mb(c.h),n.Mb(c.n),n.Mb(c.f))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){var i;1&t&&(n.Qc(a.a,!0),n.Qc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.paginator=i.first),n.sc(i=n.ac())&&(e.sort=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",voId:"voId",attrNames:"attrNames"},outputs:{page:"page",updateTable:"updateTable"},decls:37,vars:18,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","position-relative"],["class","spinner-container",4,"ngIf"],[1,"overflow-auto","table-container"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fullName"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],[4,"ngIf","ngIfThen","ngIfElse"],["thenHeader",""],["elseHeader",""],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],[4,"ngIf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(t,e){if(1&t&&(n.Sb(0,"div",0),n.ec(1,"async"),n.Sb(2,"div",1),n.Hc(3,O,2,0,"div",2),n.ec(4,"async"),n.Sb(5,"div",3),n.Sb(6,"table",4),n.Qb(7,5),n.Hc(8,D,2,3,"th",6),n.Hc(9,M,2,2,"td",7),n.Pb(),n.Qb(10,8),n.Hc(11,P,3,3,"th",9),n.Hc(12,x,2,1,"td",7),n.Pb(),n.Qb(13,10),n.Hc(14,N,3,3,"th",9),n.Hc(15,L,3,3,"td",11),n.Pb(),n.Qb(16,12),n.Hc(17,F,1,0,"div",13),n.Hc(18,H,1,0,"ng-template",null,14,n.Ic),n.Hc(20,j,1,0,"ng-template",null,15,n.Ic),n.Hc(22,K,7,13,"td",11),n.Pb(),n.Qb(23,16),n.Hc(24,V,3,3,"th",6),n.Hc(25,q,3,3,"td",11),n.Pb(),n.Qb(26,17),n.Hc(27,J,3,3,"th",6),n.Hc(28,W,3,3,"td",11),n.Pb(),n.Qb(29,18),n.Hc(30,Z,3,3,"th",6),n.Hc(31,Y,3,3,"td",11),n.Pb(),n.Hc(32,X,1,0,"tr",19),n.Hc(33,$,1,12,"tr",20),n.Rb(),n.Rb(),n.Sb(34,"mat-paginator",21),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(35,tt,3,4,"app-alert",22),n.ec(36,"async")),2&t){var i=n.tc(19),r=n.tc(21);n.kc("hidden",0===e.dataSource.allMemberCount&&!1===n.fc(1,12,e.dataSource.loading$)),n.Ab(3),n.kc("ngIf",n.fc(4,14,e.dataSource.loading$)),n.Ab(3),n.kc("dataSource",e.dataSource),n.Ab(11),n.kc("ngIf",e.showGroupStatuses)("ngIfThen",i)("ngIfElse",r),n.Ab(15),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.dataSource.allMemberCount)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.allMemberCount&&!1===n.fc(36,16,e.dataSource.loading$))}},directives:[d.t,f.n,r.a,f.c,f.i,f.b,f.k,f.m,a.a,p.c,f.h,b.a,f.a,r.b,v.a,f.j,f.l,y.g,A.c,w.a],pipes:[d.b,_.d,S.a,k.a,E.a,R.a,C.a,T.a,I.a],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.table-container[_ngcontent-%COMP%]{position:relative;overflow:auto}"]}),t}()},lQ7A:function(t,e,i){"use strict";i.d(e,"a",(function(){return U})),i.d(e,"b",(function(){return K})),i.d(e,"c",(function(){return G})),i.d(e,"d",(function(){return q})),i.d(e,"e",(function(){return W})),i.d(e,"f",(function(){return V})),i.d(e,"g",(function(){return Y}));var n=i("cZZj"),r=i("qvOF"),o=i("2kYt"),c=i("EM62"),u=i("mFH5"),l=i("5XID"),h=i("fAiE"),d=i("ZTXN"),f=i("KTx3"),p=i("g6G6"),b=i("xVbo"),v=i("kuMc"),y=i("Ohay"),A=i("YtkY"),w=i("J+dc"),_=i("jIqt"),S=i("mWib"),k=i("f7+R"),E=i("5lCh"),R=i("sg/T"),C=i("E5oP"),T=["*"];function I(t,e){if(1&t){var i=c.Tb();c.Sb(0,"div",2),c.Zb("click",(function(){return c.xc(i),c.dc()._onBackdropClicked()})),c.Rb()}if(2&t){var n=c.dc();c.Eb("mat-drawer-shown",n._isShowingBackdrop())}}function O(t,e){1&t&&(c.Sb(0,"mat-drawer-content"),c.ic(1,2),c.Rb())}var D=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],M=["mat-drawer","mat-drawer-content","*"];function P(t,e){if(1&t){var i=c.Tb();c.Sb(0,"div",2),c.Zb("click",(function(){return c.xc(i),c.dc()._onBackdropClicked()})),c.Rb()}if(2&t){var n=c.dc();c.Eb("mat-drawer-shown",n._isShowingBackdrop())}}function x(t,e){1&t&&(c.Sb(0,"mat-sidenav-content",3),c.ic(1,2),c.Rb())}var N=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],L=["mat-sidenav","mat-sidenav-content","*"],F=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",z={transformDrawer:Object(k.n)("transform",[Object(k.k)("open, open-instant",Object(k.l)({transform:"none",visibility:"visible"})),Object(k.k)("void",Object(k.l)({"box-shadow":"none",visibility:"hidden"})),Object(k.m)("void => open-instant",Object(k.e)("0ms")),Object(k.m)("void <=> open, open-instant => void",Object(k.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function H(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var B=new c.r("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),j=new c.r("MAT_DRAWER_CONTAINER"),G=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o){var s;return g(this,i),(s=e.call(this,r,a,o))._changeDetectorRef=t,s._container=n,s}return m(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),i}(r.b);return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.h),c.Mb(Object(c.U)((function(){return K}))),c.Mb(c.l),c.Mb(r.f),c.Mb(c.A))},t.\u0275cmp=c.Gb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&c.Ec("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[c.xb],ngContentSelectors:T,decls:1,vars:0,template:function(t,e){1&t&&(c.jc(),c.ic(0))},encapsulation:2,changeDetection:0}),t}(),U=function(){var t=function(){function t(e,i,n,r,a,o,s){var u=this;g(this,t),this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=a,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 d.a,this._animationEnd=new d.a,this._animationState="void",this.openedChange=new c.o(!0),this._destroyed=new d.a,this.onPositionChanged=new c.o,this._modeChanged=new d.a,this.openedChange.subscribe((function(t){t?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Object(f.a)(u._elementRef.nativeElement,"keydown").pipe(Object(b.a)((function(t){return t.keyCode===h.h&&!u.disableClose&&!Object(h.t)(t)})),Object(v.a)(u._destroyed)).subscribe((function(t){return u._ngZone.run((function(){u.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(Object(y.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,i=t.toState;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&u.openedChange.emit(u._opened)}))}return m(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(e){t.openedChange.pipe(Object(w.a)(1)).subscribe((function(t){return e(t?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=Object(l.c)(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=Object(l.c)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(Object(l.c)(t))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(Object(b.a)((function(t){return t})),Object(A.a)((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(Object(b.a)((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),Object(A.a)((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(Object(b.a)((function(t){return!t})),Object(A.a)((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(Object(b.a)((function(t){return t.fromState!==t.toState&&"void"===t.toState})),Object(A.a)((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(R.i),c.Mb(R.h),c.Mb(n.a),c.Mb(c.A),c.Mb(o.e,8),c.Mb(j,8))},t.\u0275cmp=c.Gb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&c.Fc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(c.Bb("align",null),c.Gc("@transform",e._animationState),c.Eb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:T,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(c.jc(),c.Sb(0,"div",0),c.ic(1),c.Rb())},encapsulation:2,data:{animation:[z.transformDrawer]},changeDetection:0}),t}(),K=function(){var t=function(){function t(e,i,n,r,a){var o=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;g(this,t),this._dir=e,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new c.E,this.backdropClick=new c.o,this._destroyed=new d.a,this._doCheckSubject=new d.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.a,e&&e.change.pipe(Object(v.a)(this._destroyed)).subscribe((function(){o._validateDrawers(),o.updateContentMargins()})),a.change().pipe(Object(v.a)(this._destroyed)).subscribe((function(){return o.updateContentMargins()})),this._autosize=s}return m(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Object(_.a)(this._allDrawers),Object(v.a)(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Object(_.a)(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Object(S.a)(10),Object(v.a)(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(t){return t.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(t){return t.close()}))}},{key:"updateContentMargins",value:function(){var t=this,e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var n=this._left._width;e+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._width;else if("push"==this._right.mode){var r=this._right._width;i+=r,e-=r}i=i||null,(e=e||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:e,right:i},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(Object(b.a)((function(t){return t.fromState!==t.toState})),Object(v.a)(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(Object(v.a)(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(Object(v.a)(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(w.a)(1)).subscribe((function(){e._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(Object(v.a)(Object(p.a)(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&H("end"),t._end=e):(null!=t._start&&H("start"),t._start=e)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=Object(l.c)(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:Object(l.c)(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(C.c,8),c.Mb(c.l),c.Mb(c.A),c.Mb(c.h),c.Mb(r.h),c.Mb(B),c.Mb(E.a,8))},t.\u0275cmp=c.Gb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(c.Fb(i,G,!0),c.Fb(i,U,!0)),2&t&&(c.sc(n=c.ac())&&(e._content=n.first),c.sc(n=c.ac())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&c.Qc(G,!0),2&t&&c.sc(i=c.ac())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[c.zb([{provide:j,useExisting:t}])],ngContentSelectors:M,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(c.jc(D),c.Hc(0,I,1,2,"div",0),c.ic(1),c.ic(2,1),c.Hc(3,O,2,0,"mat-drawer-content",1)),2&t&&(c.kc("ngIf",e.hasBackdrop),c.Ab(3),c.kc("ngIf",!e._content))},directives:[o.t,G],styles:[F],encapsulation:2,changeDetection:0}),t}(),V=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o){return g(this,i),e.call(this,t,n,r,a,o)}return i}(G);return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.h),c.Mb(Object(c.U)((function(){return W}))),c.Mb(c.l),c.Mb(r.f),c.Mb(c.A))},t.\u0275cmp=c.Gb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&c.Ec("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[c.xb],ngContentSelectors:T,decls:1,vars:0,template:function(t,e){1&t&&(c.jc(),c.ic(0))},encapsulation:2,changeDetection:0}),t}(),q=function(){var t=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return m(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=Object(l.c)(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=Object(l.f)(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=Object(l.f)(t)}}]),i}(U);return t.\u0275fac=function(e){return J(e||t)},t.\u0275cmp=c.Gb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(c.Bb("align",null),c.Ec("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),c.Eb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[c.xb],ngContentSelectors:T,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(c.jc(),c.Sb(0,"div",0),c.ic(1),c.Rb())},encapsulation:2,data:{animation:[z.transformDrawer]},changeDetection:0}),t}(),J=c.Ub(q),W=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(K);return t.\u0275fac=function(e){return Z(e||t)},t.\u0275cmp=c.Gb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(c.Fb(i,V,!0),c.Fb(i,q,!0)),2&t&&(c.sc(n=c.ac())&&(e._content=n.first),c.sc(n=c.ac())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&c.Eb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[c.zb([{provide:j,useExisting:t}]),c.xb],ngContentSelectors:L,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(c.jc(N),c.Hc(0,P,1,2,"div",0),c.ic(1),c.ic(2,1),c.Hc(3,x,2,0,"mat-sidenav-content",1)),2&t&&(c.kc("ngIf",e.hasBackdrop),c.Ab(3),c.kc("ngIf",!e._content))},directives:[o.t,V,r.b],styles:[F],encapsulation:2,changeDetection:0}),t}(),Z=c.Ub(W),Y=function(){var t=function t(){g(this,t)};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[o.c,u.i,n.b,r.c],r.c,u.i]}),t}()},mEf3:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("FlRo"),a=i("Ssnw"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function f(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&s.Nb(0,"th",15)}function b(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.displayName," ")}}function v(t,e){1&t&&s.Nb(0,"tr",17)}function y(t,e){1&t&&s.Nb(0,"tr",18)}function A(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"div"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,p,1,0,"th",11),s.Hc(10,b,2,1,"td",12),s.Pb(),s.Hc(11,v,1,0,"tr",13),s.Hc(12,y,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var w=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.attributesManager=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.dataSource=new r.o(this.data.attributes),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t,e=this,i=[],n=d(this.data.attributes);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.push(r.id)}}catch(o){n.e(o)}finally{n.f()}var a={};switch(a[this.data.entity]=this.data.entityId,a.attributes=i,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,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}));break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}));break;default:this.attributesManager.removeGroupAttributes(this.data.entityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}))}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}));break;default:this.attributesManager.removeUserAttributes(this.data.entityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}))}break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}));break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}));break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}))}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}));break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,i).subscribe((function(){e.onSuccess()}),(function(){return e.loading=!1}));break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,i).subscribe((function(){e.onSuccess()}));break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,i).subscribe((function(){return e.onSuccess()}))}}},{key:"onSuccess",value:function(){var t=this;this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(c.e),s.Mb(o.c))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,f,1,0,"mat-spinner",1),s.Hc(5,A,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t}()},mFH5:function(t,e,i){"use strict";i.d(e,"a",(function(){return C})),i.d(e,"b",(function(){return T})),i.d(e,"c",(function(){return B})),i.d(e,"d",(function(){return it})),i.d(e,"e",(function(){return j})),i.d(e,"f",(function(){return Ft})),i.d(e,"g",(function(){return Dt})),i.d(e,"h",(function(){return At})),i.d(e,"i",(function(){return D})),i.d(e,"j",(function(){return nt})),i.d(e,"k",(function(){return ft})),i.d(e,"l",(function(){return et})),i.d(e,"m",(function(){return Ct})),i.d(e,"n",(function(){return Mt})),i.d(e,"o",(function(){return Lt})),i.d(e,"p",(function(){return Ot})),i.d(e,"q",(function(){return St})),i.d(e,"r",(function(){return kt})),i.d(e,"s",(function(){return wt})),i.d(e,"t",(function(){return _t})),i.d(e,"u",(function(){return Q})),i.d(e,"v",(function(){return yt})),i.d(e,"w",(function(){return Pt})),i.d(e,"x",(function(){return xt})),i.d(e,"y",(function(){return P})),i.d(e,"z",(function(){return x})),i.d(e,"A",(function(){return M})),i.d(e,"B",(function(){return L})),i.d(e,"C",(function(){return F})),i.d(e,"D",(function(){return N})),i.d(e,"E",(function(){return rt}));var r=i("EM62"),o=i("sg/T"),c=i("E5oP"),l=new r.P("9.2.4"),d=i("2kYt"),f=i("5XID"),p=i("ZTXN"),b=i("IdLP"),v=i("cZZj"),y=(i("e4iD"),i("jIqt")),A=i("5lCh"),w=i("fAiE"),_=["*",[["mat-option"],["ng-container"]]],S=["*","mat-option, ng-container"];function k(t,e){if(1&t&&r.Nb(0,"mat-pseudo-checkbox",3),2&t){var i=r.dc();r.kc("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var E,R=["*"],C=function(){var t=function t(){g(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),T=function(){var t=function t(){g(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),I=new r.P("9.2.4"),O=new r.r("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),D=((E=function(){function t(e,i,n){g(this,t),this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return m(t,[{key:"_getDocument",value:function(){var t=this._document||document;return"object"==typeof t&&t?t:null}},{key:"_getWindow",value:function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Object(r.W)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);var n=getComputedStyle(i);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&I.full!==l.full&&console.warn("The Angular Material version ("+I.full+") does not match the Angular CDK version ("+l.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}()).\u0275mod=r.Kb({type:E}),E.\u0275inj=r.Jb({factory:function(t){return new(t||E)(r.Wb(o.j),r.Wb(O,8),r.Wb(d.e,8))},imports:[[c.a],c.a]}),E);function M(t){return function(t){a(i,t);var e=s(i);function i(){var t;g(this,i);for(var n=arguments.length,r=new Array(n),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return function(t){a(n,t);var i=s(n);function n(){var t;g(this,n);for(var r=arguments.length,a=new Array(r),o=0;o0?i:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),j=new r.r("mat-date-formats");try{z="undefined"!=typeof Intl}catch(zt){z=!1}var G={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},U=q(31,(function(t){return String(t+1)})),K={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},V=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function q(t,e){for(var i=Array(t),n=0;n11)throw Error('Invalid month index "'.concat(e,'". Month index has to be between 0 and 11.'));if(i<1)throw Error('Invalid date "'.concat(i,'". Date has to be greater than 0.'));var n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error('Invalid date "'.concat(i,'" for month with index "').concat(e,'".'));return n}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}},{key:"format",value:function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(z){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(V.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return n(h(i.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,i){var n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}]),i}(B)).\u0275fac=function(t){return new(t||W)(r.Wb(H,8),r.Wb(v.a))},W.\u0275prov=r.Ib({token:W,factory:W.\u0275fac}),W),$=((J=function t(){g(this,t)}).\u0275mod=r.Kb({type:J}),J.\u0275inj=r.Jb({factory:function(t){return new(t||J)},providers:[{provide:B,useClass:Q}],imports:[[v.b]]}),J),tt={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"}}},et=((X=function t(){g(this,t)}).\u0275mod=r.Kb({type:X}),X.\u0275inj=r.Jb({factory:function(t){return new(t||X)},providers:[{provide:j,useValue:tt}],imports:[[$]]}),X),it=((Y=function(){function t(){g(this,t)}return m(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}()).\u0275fac=function(t){return new(t||Y)},Y.\u0275prov=Object(r.Ib)({factory:function(){return new Y},token:Y,providedIn:"root"}),Y),nt=((Z=function t(){g(this,t)}).\u0275fac=function(t){return new(t||Z)},Z.\u0275dir=r.Hb({type:Z,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Z);function rt(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(Object(y.a)(t)).subscribe((function(t){var n=t.length;at(e,i+"-2-line",!1),at(e,i+"-3-line",!1),at(e,i+"-multi-line",!1),2===n||3===n?at(e,"".concat(i,"-").concat(n,"-line"),!0):n>3&&at(e,i+"-multi-line",!0)}))}function at(t,e,i){var n=t.nativeElement.classList;i?n.add(e):n.remove(e)}var ot,st,ct,ut,lt,ht,dt,ft=((ot=function t(){g(this,t)}).\u0275mod=r.Kb({type:ot}),ot.\u0275inj=r.Jb({factory:function(t){return new(t||ot)},imports:[[D],D]}),ot),pt=function(){function t(e,i,n){g(this,t),this._renderer=e,this.element=i,this.config=n,this.state=3}return m(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),gt={enterDuration:450,exitDuration:400},bt=Object(v.f)({passive:!0}),mt=["mousedown","touchstart"],vt=["mouseup","mouseleave","touchend","touchcancel"],yt=function(){function t(e,i,n,r){g(this,t),this._target=e,this._ngZone=i,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Object(f.e)(n))}return m(t,[{key:"fadeInRipple",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},gt),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var o=n.radius||function(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),s=t-r.left,c=e-r.top,u=a.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-o+"px",l.style.top=c-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=u+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new pt(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===i._mostRecentTransientRipple;h.state=1,n.persistent||t&&i._isPointerDown||h.fadeOut()}),u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var i=t.element,n=Object.assign(Object.assign({},gt),t.config.animation);i.style.transitionDuration=n.exitDuration+"ms",i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,i.parentNode.removeChild(i)}),n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))}},{key:"setupTriggerEvents",value:function(t){var e=Object(f.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(mt))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vt),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=Object(o.l)(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){t.forEach((function(t){e._triggerElement.addEventListener(t,e,bt)}))}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(mt.forEach((function(e){t._triggerElement.removeEventListener(e,t,bt)})),this._pointerUpEventsRegistered&&vt.forEach((function(e){t._triggerElement.removeEventListener(e,t,bt)})))}}]),t}(),At=new r.r("mat-ripple-global-options"),wt=((lt=function(){function t(e,i,n,r,a){g(this,t),this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new yt(this,i,e,n)}return m(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||lt)(r.Mb(r.l),r.Mb(r.A),r.Mb(v.a),r.Mb(At,8),r.Mb(A.a,8))},lt.\u0275dir=r.Hb({type:lt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&r.Eb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),lt),_t=((ut=function t(){g(this,t)}).\u0275mod=r.Kb({type:ut}),ut.\u0275inj=r.Jb({factory:function(t){return new(t||ut)},imports:[[D,v.b],D]}),ut),St=((ct=function t(e){g(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||ct)(r.Mb(A.a,8))},ct.\u0275cmp=r.Gb({type:ct,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&r.Eb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),ct),kt=((st=function t(){g(this,t)}).\u0275mod=r.Kb({type:st}),st.\u0275inj=r.Jb({factory:function(t){return new(t||st)}}),st),Et=M((function t(){g(this,t)})),Rt=0,Ct=((ht=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-"+Rt++,t}return i}(Et)).\u0275fac=function(t){return Tt(t||ht)},ht.\u0275cmp=r.Gb({type:ht,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(r.Bb("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),r.Eb("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[r.xb],ngContentSelectors:S,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(r.jc(_),r.Sb(0,"label",0),r.Jc(1),r.ic(2),r.Rb(),r.ic(3,1)),2&t&&(r.kc("id",e._labelId),r.Ab(1),r.Lc("",e.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ht),Tt=r.Ub(Ct),It=0,Ot=function t(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,t),this.source=e,this.isUserInput=i},Dt=new r.r("MAT_OPTION_PARENT_COMPONENT"),Mt=((dt=function(){function t(e,i,n,a){g(this,t),this._element=e,this._changeDetectorRef=i,this._parent=n,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+It++,this.onSelectionChange=new r.o,this._stateChanges=new p.a}return m(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==w.g&&t.keyCode!==w.o||Object(w.t)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Ot(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=Object(f.c)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}()).\u0275fac=function(t){return new(t||dt)(r.Mb(r.l),r.Mb(r.h),r.Mb(Dt,8),r.Mb(Ct,8))},dt.\u0275cmp=r.Gb({type:dt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&r.Zb("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(r.Vb("id",e.id),r.Bb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),r.Eb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:R,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(r.jc(),r.Hc(0,k,1,2,"mat-pseudo-checkbox",0),r.Sb(1,"span",1),r.ic(2),r.Rb(),r.Nb(3,"div",2)),2&t&&(r.kc("ngIf",e.multiple),r.Ab(3),r.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[d.t,wt,St],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),dt);function Pt(t,e,i){if(i.length){for(var n=e.toArray(),r=i.toArray(),a=0,o=0;oi+n?Math.max(0,r-n+e):i}var Nt,Lt=((Nt=function t(){g(this,t)}).\u0275mod=r.Kb({type:Nt}),Nt.\u0275inj=r.Jb({factory:function(t){return new(t||Nt)},imports:[[_t,d.c,kt]]}),Nt),Ft=new r.r("mat-label-global-options")},mPlY:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("FlRo"),a=i("X2Q7"),o=i("EM62"),s=i("2kYt"),c=i("PBFl"),u=i("csyo"),l=i("s2Ay");function h(t,e){1&t&&o.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&o.Nb(0,"th",15)}function p(t,e){if(1&t&&(o.Sb(0,"td",16),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.Ab(1),o.Lc(" ",i.tagName," ")}}function b(t,e){1&t&&o.Nb(0,"tr",17)}function v(t,e){1&t&&o.Nb(0,"tr",18)}function y(t,e){if(1&t&&(o.Sb(0,"div",7),o.Sb(1,"p"),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Sb(4,"div",8),o.Jc(5),o.ec(6,"translate"),o.Rb(),o.Sb(7,"table",9),o.Qb(8,10),o.Hc(9,f,1,0,"th",11),o.Hc(10,p,2,1,"td",12),o.Pb(),o.Hc(11,b,1,0,"tr",13),o.Hc(12,v,1,0,"tr",14),o.Rb(),o.Rb()),2&t){var i=o.dc();o.Ab(2),o.Lc(" ",o.fc(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),o.Ab(3),o.Lc(" ",o.fc(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),o.Ab(2),o.kc("dataSource",i.dataSource),o.Ab(4),o.kc("matHeaderRowDef",i.displayedColumns),o.Ab(1),o.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n){g(this,t),this.dialogRef=e,this.data=i,this.resourceManager=n,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.o(this.data.tagsForDelete)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e,i=d(this.data.tagsForDelete);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.resourceManager.deleteResourceTag({resourceTag:n}).subscribe((function(){t.dialogRef.close(!0)}),(function(e){return t.dialogRef.close(!0)}))}}catch(r){i.e(r)}finally{i.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.i),o.Mb(n.a),o.Mb(a.m))},t.\u0275cmp=o.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(o.Sb(0,"div"),o.Sb(1,"h1",0),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Hc(4,h,1,0,"mat-spinner",1),o.Hc(5,y,13,9,"div",2),o.Sb(6,"div",3),o.Sb(7,"button",4),o.Zb("click",(function(){return e.onCancel()})),o.Jc(8),o.ec(9,"translate"),o.Rb(),o.Sb(10,"button",5),o.Zb("click",(function(){return e.onSubmit()})),o.Jc(11),o.ec(12,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Cb(e.theme),o.Ab(2),o.Kc(o.fc(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),o.Ab(2),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading),o.Ab(3),o.Lc(" ",o.fc(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),o.Ab(2),o.kc("disabled",e.loading),o.Ab(1),o.Lc(" ",o.fc(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[n.j,s.t,n.c,c.b,u.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[l.d],styles:[""]}),t}()},mSaU:function(t,e,i){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,(function(e){return t[e]}).bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:a.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(r.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(r.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(e){return r.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e}))):(r.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then((function(i){if(r.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void r.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw r.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]}))},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(r.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then((function(e){return r.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then((function(e){if(r.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw r.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys}))}))},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),r=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global;"string"!=typeof t&&(t=i.location.href);var a=t.lastIndexOf(e);a>=0&&(t=t.substr(a+1)),"?"===e&&(a=t.indexOf("#"))>=0&&(t=t.substr(0,a));for(var o,s={},c=/([^&=]+)=([^&]*)/g,u=0;o=c.exec(t);)if(s[decodeURIComponent(o[1])]=decodeURIComponent(o[2]),u++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in s)return s;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),r=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,r.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,r=e.metadataUrl,a=e.metadata,h=e.signingKeys,d=e.client_id,f=e.client_secret,p=e.response_type,g=void 0===p?u:p,b=e.scope,m=void 0===b?l:b,v=e.redirect_uri,y=e.post_logout_redirect_uri,A=e.prompt,w=e.display,_=e.max_age,S=e.ui_locales,k=e.acr_values,E=e.resource,R=e.response_mode,C=e.filterProtocolClaims,T=void 0===C||C,I=e.loadUserInfo,O=void 0===I||I,D=e.staleStateAge,M=void 0===D?900:D,P=e.clockSkew,x=void 0===P?300:P,N=e.userInfoJwtIssuer,L=void 0===N?"OP":N,F=e.stateStore,z=void 0===F?new o.WebStorageStateStore:F,H=e.ResponseValidatorCtor,B=void 0===H?s.ResponseValidator:H,j=e.MetadataServiceCtor,G=void 0===j?c.MetadataService:j,U=e.extraQueryParams,K=void 0===U?{}:U,V=e.extraTokenParams,q=void 0===V?{}:V;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=r,this._metadata=a,this._signingKeys=h,this._client_id=d,this._client_secret=f,this._response_type=g,this._scope=m,this._redirect_uri=v,this._post_logout_redirect_uri=y,this._prompt=A,this._display=w,this._max_age=_,this._ui_locales=S,this._acr_values=k,this._resource=E,this._response_mode=R,this._filterProtocolClaims=!!T,this._loadUserInfo=!!O,this._staleStateAge=M,this._clockSkew=x,this._userInfoJwtIssuer=L,this._stateStore=z,this._validator=new B(this),this._metadataService=new G(this),this._extraQueryParams="object"===(void 0===K?"undefined":n(K))?K:{},this._extraTokenParams="object"===(void 0===q?"undefined":n(q))?q:{}}return r(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw a.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw a.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),r=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,a=e.store,o=void 0===a?r.Global.localStorage:a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=o,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise((function(r,a){var o=new i._XMLHttpRequest;o.open("GET",t);var s=i._contentTypes,c=i._jwtHandler;o.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",o.status),200===o.status){var e=o.getResponseHeader("Content-Type");if(e){var i=s.find((function(t){if(e.startsWith(t))return!0}));if("application/jwt"==i)return void c(o).then(r,a);if(i)try{return void r(JSON.parse(o.responseText))}catch(r){return n.Log.error("JsonService.getJson: Error parsing JSON response",r.message),void a(r)}}a(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else a(Error(o.statusText+" ("+o.status+")"))},o.onerror=function(){n.Log.error("JsonService.getJson: network error"),a(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),o.setRequestHeader("Authorization","Bearer "+e)),o.send()}))},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise((function(r,a){var o=new i._XMLHttpRequest;o.open("POST",t);var s=i._contentTypes;o.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",o.status),200!==o.status){if(400===o.status&&(i=o.getResponseHeader("Content-Type"))&&s.find((function(t){if(i.startsWith(t))return!0})))try{var e=JSON.parse(o.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void a(new Error(e.error))}catch(r){return n.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void a(r)}a(Error(o.statusText+" ("+o.status+")"))}else{var i;if((i=o.getResponseHeader("Content-Type"))&&s.find((function(t){if(i.startsWith(t))return!0})))try{return void r(JSON.parse(o.responseText))}catch(r){return n.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void a(r)}a(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},o.onerror=function(){n.Log.error("JsonService.postForm: network error"),a(Error("Network Error"))};var c="";for(var u in e){var l=e[u];l&&(c.length>0&&(c+="&"),c+=encodeURIComponent(u),c+="=",c+=encodeURIComponent(l))}o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(c)}))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,r=e.created,o=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,a.default)(),this._data=n,this._created="number"==typeof r&&r>0?r:parseInt(Date.now()/1e3),this._request_type=o}return t.prototype.toStorageString=function(){return r.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return r.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then((function(i){r.Log.debug("State.clearStaleState: got keys",i);for(var a=[],o=function(o){var s=i[o];c=e.get(s).then((function(i){var a=!1;if(i)try{var o=t.fromStorageString(i);r.Log.debug("State.clearStaleState: got item from key: ",s,o.created),o.created<=n&&(a=!0)}catch(t){r.Log.error("State.clearStaleState: Error parsing state for key",s,t.message),a=!0}else r.Log.debug("State.clearStaleState: no item in storage for key: ",s),a=!0;if(a)return r.Log.debug("State.clearStaleState: removed item for key: ",s),e.remove(s)})),a.push(c)},s=0;s0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof a.OidcClientSettings?e:new a.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,a=e.redirect_uri,o=e.data,c=e.state,u=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,f=e.id_token_hint,p=e.login_hint,g=e.acr_values,b=e.resource,m=e.request,v=e.request_uri,y=e.response_mode,A=e.extraQueryParams,w=e.extraTokenParams,_=e.request_type,S=e.skipUserInfo,k=arguments[1];r.Log.debug("OidcClient.createSigninRequest");var E=this._settings.client_id;n=n||this._settings.scope,a=a||this._settings.redirect_uri,u=u||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,b=b||this._settings.resource,y=y||this._settings.response_mode,A=A||this._settings.extraQueryParams,w=w||this._settings.extraTokenParams;var R=this._settings.authority;return s.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then((function(e){r.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var C=new s.SigninRequest({url:e,client_id:E,redirect_uri:a,response_type:i,scope:n,data:o||c,authority:R,prompt:u,display:l,max_age:h,ui_locales:d,id_token_hint:f,login_hint:p,acr_values:g,resource:b,request:m,request_uri:v,extraQueryParams:A,extraTokenParams:w,request_type:_,response_mode:y,client_secret:t._settings.client_secret,skipUserInfo:S}),T=C.state;return(k=k||t._stateStore).set(T.id,T.toStorageString()).then((function(){return C}))}))},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",a=new c.SigninResponse(t,n);return a.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(a.state).then((function(t){if(!t)throw r.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:a}}))):(r.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return r.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then((function(t){var e=t.state,n=t.response;return r.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)}))},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,a=e.state,o=e.post_logout_redirect_uri,s=e.extraQueryParams,c=e.request_type,l=arguments[1];return r.Log.debug("OidcClient.createSignoutRequest"),o=o||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(e){if(!e)throw r.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");r.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new u.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:o,data:n||a,extraQueryParams:s,request_type:c}),d=h.state;return d&&(r.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h}))},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return r.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(r.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new o.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var a=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(a).then((function(t){if(!t)throw r.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}}))},t.prototype.processSignoutResponse=function(t,e){var i=this;return r.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then((function(t){var e=t.state,n=t.response;return e?(r.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(r.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)}))},t.prototype.clearStaleState=function(t){return r.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),r=i(2),a=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw a.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new o(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then((function(i){return a.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then((function(t){return a.Log.debug("TokenClient.exchangeCode: response received"),t}))})):(a.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(a.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(a.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(a.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then((function(i){return a.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then((function(t){return a.Log.debug("TokenClient.exchangeRefreshToken: response received"),t}))})):(a.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(a.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.error,a=i.error_description,o=i.error_uri,s=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!r)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,a||r));return u.name="ErrorResponse",u.error=r,u.error_description=a,u.error_uri=o,u.state=s,u.session_state=c,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),r=i(3),a=i(13);e.SigninRequest=function(){function t(e){var i=e.url,o=e.client_id,s=e.redirect_uri,c=e.response_type,u=e.scope,l=e.authority,h=e.data,d=e.prompt,f=e.display,p=e.max_age,g=e.ui_locales,b=e.id_token_hint,m=e.login_hint,v=e.acr_values,y=e.resource,A=e.response_mode,w=e.request,_=e.request_uri,S=e.extraQueryParams,k=e.request_type,E=e.client_secret,R=e.extraTokenParams,C=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!o)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!u)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var T=t.isOidc(c),I=t.isCode(c);A||(A=t.isCode(c)?"query":null),this.state=new a.SigninState({nonce:T,data:h,client_id:o,authority:l,redirect_uri:s,code_verifier:I,request_type:k,response_mode:A,client_secret:E,scope:u,extraTokenParams:R,skipUserInfo:C}),i=r.UrlUtility.addQueryParam(i,"client_id",o),i=r.UrlUtility.addQueryParam(i,"redirect_uri",s),i=r.UrlUtility.addQueryParam(i,"response_type",c),i=r.UrlUtility.addQueryParam(i,"scope",u),i=r.UrlUtility.addQueryParam(i,"state",this.state.id),T&&(i=r.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),I&&(i=r.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=r.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var O={prompt:d,display:f,max_age:p,ui_locales:g,id_token_hint:b,login_hint:m,acr_values:v,resource:y,request:w,request_uri:_,response_mode:A};for(var D in O)O[D]&&(i=r.UrlUtility.addQueryParam(i,D,O[D]));for(var M in S)i=r.UrlUtility.addQueryParam(i,M,S[M]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter((function(t){return"id_token"===t}))[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter((function(t){return"token"===t}))[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter((function(t){return"code"===t}))[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,r=i.authority,a=i.client_id,c=i.redirect_uri,u=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,f=i.extraTokenParams,p=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,s.default)():n&&(g._nonce=n),!0===u?g._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():u&&(g._code_verifier=u),g.code_verifier){var b=o.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=o.JoseUtil.hexToBase64Url(b)}return g._redirect_uri=c,g._authority=r,g._client_id=a,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=f,g._skipUserInfo=p,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return r.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return r.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(a.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),r=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,a=e.accessTokenExpiringTimer,o=void 0===a?new r.Timer("Access token expiring"):a,s=e.accessTokenExpiredTimer,c=void 0===s?new r.Timer("Access token expired"):s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=o,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var r=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",r),this._accessTokenExpired.init(r)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex((function(e){return e===t}));e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:a.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then((function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then((function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)})).catch((function(t){r.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)}))})).catch((function(t){r.Log.error("SessionMonitor ctor: error from getUser:",t.message)}))}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,r.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,r.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then((function(t){if(t){r.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,a=e._checkSessionInterval,o=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,a,o),e._checkSessionIFrame.load().then((function(){e._checkSessionIFrame.start(i)}))}else r.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")})).catch((function(t){r.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)})))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(r.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval((function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then((function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)})).catch((function(t){r.Log.error("SessionMonitor: error from querySessionStatus:",t.message)}))}),1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then((function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):r.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):r.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))})).catch((function(e){t._sub&&(r.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())}))},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,r){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=r||2e3,this._stopOnError=a;var o=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,o),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise((function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)}))},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),r=i(2),a=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Global.XMLHttpRequest,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new o(this._settings)}return t.prototype.revoke=function(t,e){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==r&&"refresh_token"!=r)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then((function(a){if(a)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+r),i._revoke(a,i._settings.client_id,i._settings.client_secret,t,r);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")}))},t.prototype._revoke=function(t,e,i,r,a){var o=this;return new Promise((function(s,c){var u=new o._XMLHttpRequestCtor;u.open("POST",t),u.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",u.status),200===u.status?s():c(Error(u.statusText+" ("+u.status+")"))},u.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(a),l+="&token="+encodeURIComponent(r),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(l)}))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:a.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return r.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then((function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then((function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then((function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t}))}))}))},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(r.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(r.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(r.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return r.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return r.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return r.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return r.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return r.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return r.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(r.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(r.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(r.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(r.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(r.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(r.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return r.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then((function(t){return r.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(r.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),r.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)}));r.Log.debug("ResponseValidator._processClaims: not loading user info")}else r.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var r in e){var a=e[r];Array.isArray(a)||(a=[a]);for(var o=0;o1)return r.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=s[0]}if(!c)return r.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=t.client_id,l=i._settings.clockSkew;return r.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,c,o,u,l).then((function(){return r.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(r.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))}))},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return r.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return r.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter((function(t){return t.kty===i})),r.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return r.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return r.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return r.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return r.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var a="sha"+n,o=this._joseUtil.hashString(t.access_token,a);if(!o)return r.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",a),Promise.reject(new Error("Failed to validate at_hash"));var s=o.substr(0,o.length/2),c=this._joseUtil.hexToBase64Url(s);return c!==t.profile.at_hash?(r.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(r.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),r=i(2),a=i(0),o=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw a.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then((function(i){return a.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then((function(t){return a.Log.debug("UserInfoService.getClaims: claims received",t),t}))})):(a.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return a.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var r=n.header.kid,o=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":o=this._metadataService.getIssuer();break;case"ANY":o=Promise.resolve(n.payload.iss);break;default:o=Promise.resolve(this._settings.userInfoJwtIssuer)}return o.then((function(t){return a.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then((function(o){if(!o)return a.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));a.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(r)s=o.filter((function(t){return t.kid===r}))[0];else{if((o=i._filterByAlg(o,n.header.alg)).length>1)return a.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=o[0]}if(!s)return a.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,u=i._settings.clockSkew;return a.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.responseText,s,t,c,u,void 0,!0).then((function(){return a.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload}))}))}))}catch(t){return a.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return a.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return a.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter((function(t){return t.kty===i})),a.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},r={};if(void 0===a)var a={};a.lang={extend:function(e,i,r){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=i.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),r){var o;for(o in r)e.prototype[o]=r[o];var s=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(s=function(t,e){for(o=0;o>>2]|=(i[a>>>2]>>>24-a%4*8&255)<<24-(n+a)%4*8;else for(a=0;a>>2]=i[a>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-r%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},p=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,r=this.blockSize,a=n/(4*r),s=(a=t?o.ceil(a):o.max((0|a)-this._minBufferSize,0))*r,c=o.min(4*s,n);if(s){for(var u=0;u>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,o=0;4>o&&r+.75*o>>6*(3-o)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(r=n.charAt(64))&&-1!=(r=e.indexOf(r))&&(i=r);for(var r=[],a=0,o=0;o>>6-o%4*2;r[a>>>2]|=(s|c)<<24-a%4*8,a++}return t.create(r,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=m,i=(r=e.lib).WordArray,n=r.Hasher,r=e.algo,a=[],o=[],s=function(t){return 4294967296*(t-(0|t))|0},c=2,u=0;64>u;){var l;t:{for(var h=t.sqrt(l=c),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>u&&(a[u]=s(t.pow(c,.5))),o[u]=s(t.pow(c,1/3)),u++),c++}var f=[];r=r.SHA256=n.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],a=i[2],s=i[3],c=i[4],u=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)f[d]=0|t[e+d];else{var p=f[d-15],g=f[d-2];f[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[d-16]}p=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+o[d]+f[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&r^n&a^r&a),h=l,l=u,u=c,c=s+p|0,s=a,a=r,r=n,n=p+g|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+a|0,i[3]=i[3]+s|0,i[4]=i[4]+c|0,i[5]=i[5]+u|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=t.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(r),e.HmacSHA256=n._createHmacHelper(r)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=m,i=e.lib.Hasher,n=(a=e.x64).Word,r=a.WordArray,a=e.algo,o=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],s=[],c=0;80>c;c++)s[c]=t();a=a.SHA512=i.extend({_doReset:function(){this._hash=new r.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],r=h[2],a=h[3],c=h[4],u=h[5],l=h[6],h=h[7],d=i.high,f=i.low,p=n.high,g=n.low,b=r.high,m=r.low,v=a.high,y=a.low,A=c.high,w=c.low,_=u.high,S=u.low,k=l.high,E=l.low,R=h.high,C=h.low,T=d,I=f,O=p,D=g,M=b,P=m,x=v,N=y,L=A,F=w,z=_,H=S,B=k,j=E,G=R,U=C,K=0;80>K;K++){var V=s[K];if(16>K)var q=V.high=0|t[e+2*K],J=V.low=0|t[e+2*K+1];else{q=((J=(q=s[K-15]).high)>>>1|(W=q.low)<<31)^(J>>>8|W<<24)^J>>>7;var W=(W>>>1|J<<31)^(W>>>8|J<<24)^(W>>>7|J<<25),Z=((J=(Z=s[K-2]).high)>>>19|(Y=Z.low)<<13)^(J<<3|Y>>>29)^J>>>6,Y=(Y>>>19|J<<13)^(Y<<3|J>>>29)^(Y>>>6|J<<26),X=(J=s[K-7]).high,Q=($=s[K-16]).high,$=$.low;q=(q=(q=q+X+((J=W+J.low)>>>0>>0?1:0))+Z+((J+=Y)>>>0>>0?1:0))+Q+((J+=$)>>>0<$>>>0?1:0),V.high=q,V.low=J}V=T&O^T&M^O&M;var tt=I&D^I&P^D&P,et=(W=(T>>>28|I<<4)^(T<<30|I>>>2)^(T<<25|I>>>7),Z=(I>>>28|T<<4)^(I<<30|T>>>2)^(I<<25|T>>>7),(Y=o[K]).high),it=Y.low;Q=(Q=(Q=(Q=G+((L>>>14|F<<18)^(L>>>18|F<<14)^(L<<23|F>>>9))+((Y=U+((F>>>14|L<<18)^(F>>>18|L<<14)^(F<<23|L>>>9)))>>>0>>0?1:0))+(X=L&z^~L&B)+((Y+=$=F&H^~F&j)>>>0<$>>>0?1:0))+et+((Y+=it)>>>0>>0?1:0))+q+((Y+=J)>>>0>>0?1:0),G=B,U=j,B=z,j=H,z=L,H=F,L=x+Q+((F=N+Y|0)>>>0>>0?1:0)|0,x=M,N=P,M=O,P=D,O=T,D=I,T=Q+(V=W+V+((J=Z+tt)>>>0>>0?1:0))+((I=Y+J|0)>>>0>>0?1:0)|0}f=i.low=f+I,i.high=d+T+(f>>>0>>0?1:0),g=n.low=g+D,n.high=p+O+(g>>>0>>0?1:0),m=r.low=m+P,r.high=b+M+(m>>>0

>>0?1:0),y=a.low=y+N,a.high=v+x+(y>>>0>>0?1:0),w=c.low=w+F,c.high=A+L+(w>>>0>>0?1:0),S=u.low=S+H,u.high=_+z+(S>>>0>>0?1:0),E=l.low=E+j,l.high=k+B+(E>>>0>>0?1:0),C=h.low=C+U,h.high=R+G+(C>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(a),e.HmacSHA512=i._createHmacHelper(a)}(),function(){var t=m,e=(r=t.x64).Word,i=r.WordArray,n=(r=t.algo).SHA512,r=r.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(r),t.HmacSHA384=n._createHmacHelper(r)}();var v,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function A(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=y.charAt(i>>6)+y.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=y.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=y.charAt(i>>2)+y.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function w(t){var e,i,n,r="",a=0;for(e=0;e>2),i=3&n,a=1):1==a?(r+=T(i<<2|n>>4),i=15&n,a=2):2==a?(r+=T(i),r+=T(n>>2),i=3&n,a=3):(r+=T(i<<2|n>>4),r+=T(15&n),a=0));return 1==a&&(r+=T(i<<2)),r}function _(t){var e,i=w(t),n=new Array;for(e=0;2*e>15;--a>=0;){var c=32767&this[t],u=this[t++]>>15,l=s*c+u*o;r=((c=o*c+((32767&l)<<15)+i[n]+(1073741823&r))>>>30)+(l>>>15)+s*u+(r>>>30),i[n++]=1073741823&c}return r},v=30):"Netscape"!=n.appName?(S.prototype.am=function(t,e,i,n,r,a){for(;--a>=0;){var o=e*this[t++]+i[n]+r;r=Math.floor(o/67108864),i[n++]=67108863&o}return r},v=26):(S.prototype.am=function(t,e,i,n,r,a){for(var o=16383&e,s=e>>14;--a>=0;){var c=16383&this[t],u=this[t++]>>14,l=s*c+u*o;r=((c=o*c+((16383&l)<<14)+i[n]+r)>>28)+(l>>14)+s*u,i[n++]=268435455&c}return r},v=28),S.prototype.DB=v,S.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function M(t){this.m=t}function P(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function H(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function B(){}function j(t){return t}function G(t){this.r2=k(),this.q3=k(),S.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}M.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},M.prototype.revert=function(t){return t},M.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},M.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},M.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},P.prototype.convert=function(t){var e=k();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(S.ZERO)>0&&this.m.subTo(e,e),e},P.prototype.revert=function(t){var e=k();return t.copyTo(e),this.reduce(e),e},P.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},P.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},P.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},S.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},S.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},S.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,r=!1,a=0;--n>=0;){var o=8==i?255&t[n]:I(t,n);o<0?"-"==t.charAt(n)&&(r=!0):(r=!1,0==a?this[this.t++]=o:a+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-a):this[this.t-1]|=o<=this.DB&&(a-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},S.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},S.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+o+1]=this[i]>>r|s,s=(this[i]&a)<=0;--i)e[i]=0;e[o]=s,e.t=this.t+o+1,e.s=this.s,e.clamp()},S.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,r=this.DB-n,a=(1<>n;for(var o=i+1;o>n;n>0&&(e[this.t-i-1]|=(this.s&a)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},S.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),r=i.t;for(e.t=r+n.t;--r>=0;)e[r]=0;for(r=0;r=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},S.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var r=this.abs();if(r.t0?(n.lShiftTo(c,a),r.lShiftTo(c,i)):(n.copyTo(a),r.copyTo(i));var u=a.t,l=a[u-1];if(0!=l){var h=l*(1<1?a[u-2]>>this.F2:0),d=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(m,i)),S.ONE.dlShiftTo(u,m),m.subTo(a,a);a.t=0;){var v=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*f);if((i[g]+=a.am(0,v,i,b,0,u))0&&i.rShiftTo(c,i),o<0&&S.ZERO.subTo(i,i)}}},S.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},S.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},S.prototype.exp=function(t,e){if(t>4294967295||t<1)return S.ONE;var i=k(),n=k(),r=e.convert(this),a=D(t)-1;for(r.copyTo(i);--a>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,r,i);else{var o=i;i=n,n=o}return e.revert(i)},S.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(s>s)>0&&(r=!0,a=T(i));o>=0;)s>(s+=this.DB-e)):(i=this[o]>>(s-=e)&n,s<=0&&(s+=this.DB,--o)),i>0&&(r=!0),r&&(a+=T(i));return r?a:"0"},S.prototype.negate=function(){var t=k();return S.ZERO.subTo(this,t),t},S.prototype.abs=function(){return this.s<0?this.negate():this},S.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},S.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)},S.prototype.mod=function(t){var e=k();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(S.ZERO)>0&&t.subTo(e,e),e},S.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new M(e):new P(e),this.exp(t,i)},S.ZERO=O(0),S.ONE=O(1),B.prototype.convert=j,B.prototype.revert=j,B.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},B.prototype.sqrTo=function(t,e){t.squareTo(e)},G.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=k();return t.copyTo(e),this.reduce(e),e},G.prototype.revert=function(t){return t},G.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},G.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},G.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var U,K,V,q=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],J=(1<<26)/q[q.length-1];function W(){this.i=0,this.j=0,this.S=new Array}function Z(){!function(t){K[V++]^=255&t,K[V++]^=t>>8&255,K[V++]^=t>>16&255,K[V++]^=t>>24&255,V>=256&&(V-=256)}((new Date).getTime())}if(S.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},S.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=O(i),r=k(),a=k(),o="";for(this.divRemTo(n,r,a);r.signum()>0;)o=(i+a.intValue()).toString(t).substr(1)+o,r.divRemTo(n,r,a);return a.intValue().toString(t)+o},S.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),r=!1,a=0,o=0,s=0;s=i&&(this.dMultiply(n),this.dAddOffset(o,0),a=0,o=0))}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(o,0)),r&&S.ZERO.subTo(this,this)},S.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(S.ONE.shiftLeft(t-1),N,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(S.ONE.shiftLeft(t-1),this);else{var n=new Array,r=7&t;n.length=1+(t>>3),e.nextBytes(n),r>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},S.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},S.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},S.prototype.multiplyLowerTo=function(t,e,i){var n,r=Math.min(this.t+t.t,e);for(i.s=0,i.t=r;r>0;)i[--r]=0;for(n=i.t-this.t;r=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},S.prototype.millerRabin=function(t){var e=this.subtract(S.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>q.length&&(t=q.length);for(var r=k(),a=0;a>24},S.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},S.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},S.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,r=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[r++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==r&&(128&this.s)!=(128&i)&&++r,(r>0||i!=this.s)&&(e[r++]=i);return e},S.prototype.equals=function(t){return 0==this.compareTo(t)},S.prototype.min=function(t){return this.compareTo(t)<0?this:t},S.prototype.max=function(t){return this.compareTo(t)>0?this:t},S.prototype.and=function(t){var e=k();return this.bitwiseTo(t,x,e),e},S.prototype.or=function(t){var e=k();return this.bitwiseTo(t,N,e),e},S.prototype.xor=function(t){var e=k();return this.bitwiseTo(t,L,e),e},S.prototype.andNot=function(t){var e=k();return this.bitwiseTo(t,F,e),e},S.prototype.not=function(){for(var t=k(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=k();for(n.sqrTo(o[1],l);s<=u;)o[s]=k(),n.mulTo(l,o[s-2],o[s]),s+=2}var h,d,f=t.t-1,p=!0,g=k();for(r=D(t[f])-1;f>=0;){for(r>=c?h=t[f]>>r-c&u:(h=(t[f]&(1<0&&(h|=t[f-1]>>this.DB+r-c)),s=i;0==(1&h);)h>>=1,--s;if((r-=s)<0&&(r+=this.DB,--f),p)o[h].copyTo(a),p=!1;else{for(;s>1;)n.sqrTo(a,g),n.sqrTo(g,a),s-=2;s>0?n.sqrTo(a,g):(d=a,a=g,g=d),n.mulTo(g,o[h],a)}for(;f>=0&&0==(t[f]&1<=0?(i.subTo(n,i),e&&r.subTo(o,r),a.subTo(s,a)):(n.subTo(i,n),e&&o.subTo(r,o),s.subTo(a,s))}return 0!=n.compareTo(S.ONE)?S.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},S.prototype.pow=function(t){return this.exp(t,new B)},S.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var r=e.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)return e;for(r0&&(e.rShiftTo(a,e),i.rShiftTo(a,i));e.signum()>0;)(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),(r=i.getLowestSetBit())>0&&i.rShiftTo(r,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return a>0&&i.lShiftTo(a,i),i},S.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=q[q.length-1]){for(e=0;e>>8,K[V++]=255&Y;V=0,Z()}function tt(){if(null==U){for(Z(),(U=new W).init(K),V=0;V>24,(16711680&r)>>16,(65280&r)>>8,255&r]))),r+=1;return n}function rt(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function at(t,e){this.x=e,this.q=t}function ot(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?S.ONE:n,this.zinv=null}function st(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new ot(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},rt.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var r=t.charCodeAt(n--);r<128?i[--e]=r:r>127&&r<2048?(i[--e]=63&r|128,i[--e]=r>>6|192):(i[--e]=63&r|128,i[--e]=r>>6&63|128,i[--e]=r>>12|224)}i[--e]=0;for(var a=new et,o=new Array;e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new S(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},rt.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var r=ut.crypto.MessageDigest,a=ut.crypto.Util,o=null;if(i||(i="sha1"),"string"==typeof i&&(o=r.getCanonicalAlgName(i),n=r.getHashLength(o),i=function(t){return St(a.hashHex(kt(t),o))}),t.length+2*n+2>e)throw"Message too long for RSA";var s,c="";for(s=0;s>3,e,i);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;var a=r.toString(16);return 0==(1&a.length)?a:"0"+a},rt.prototype.type="RSA",at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},at.prototype.toBigInteger=function(){return this.x},at.prototype.negate=function(){return new at(this.q,this.x.negate().mod(this.q))},at.prototype.add=function(t){return new at(this.q,this.x.add(t.toBigInteger()).mod(this.q))},at.prototype.subtract=function(t){return new at(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},at.prototype.multiply=function(t){return new at(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},at.prototype.square=function(){return new at(this.q,this.x.square().mod(this.q))},at.prototype.divide=function(t){return new at(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ot.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(S.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(S.ZERO))},ot.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(S.ZERO)&&!this.y.toBigInteger().equals(S.ZERO)},ot.prototype.negate=function(){return new ot(this.curve,this.x,this.y.negate(),this.z)},ot.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(S.ZERO.equals(i))return S.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new S("3"),r=this.x.toBigInteger(),a=this.y.toBigInteger(),o=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),s=o.multiply(i),c=r.multiply(o),u=e.square().multiply(this.z),l=u.subtract(c.shiftLeft(1)).multiply(t.z).subtract(s).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(a.multiply(s)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ot.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new S("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),r=n.multiply(i).mod(this.curve.q),a=this.curve.a.toBigInteger(),o=e.square().multiply(t);S.ZERO.equals(a)||(o=o.add(this.z.square().multiply(a)));var s=(o=o.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(n).mod(this.curve.q),c=o.multiply(t).multiply(e).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(o.square().multiply(o)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(c),u)},ot.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new S("3")),r=this.negate(),a=this;for(e=n.bitLength()-2;e>0;--e){a=a.twice();var o=n.testBit(e);o!=i.testBit(e)&&(a=a.add(o?this:r))}return a},ot.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var r=this.curve.getInfinity(),a=this.add(e);n>=0;)r=r.twice(),t.testBit(n)?r=i.testBit(n)?r.add(a):r.add(this):i.testBit(n)&&(r=r.add(e)),--n;return r},st.prototype.getQ=function(){return this.q},st.prototype.getA=function(){return this.a},st.prototype.getB=function(){return this.b},st.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},st.prototype.getInfinity=function(){return this.infinity},st.prototype.fromBigInteger=function(t){return new at(this.q,t)},st.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new ot(this,this.fromBigInteger(new S(i,16)),this.fromBigInteger(new S(n,16)));default:return null}},at.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ot.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),r=e(i,32);return t?n.isEven()?r.unshift(2):r.unshift(3):(r.unshift(4),r=r.concat(e(n,32))),r},ot.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),r=e.slice(1+i/2,1+i);n.unshift(0),r.unshift(0);var a=new S(n),o=new S(r);return new ot(t,t.fromBigInteger(a),t.fromBigInteger(o))},ot.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),r=e.substr(2+i/2,i/2),a=new S(n,16),o=new S(r,16);return new ot(t,t.fromBigInteger(a),t.fromBigInteger(o))},ot.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),r=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,r)},ot.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(S.valueOf(2)),e=this.curve.fromBigInteger(S.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),r=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,r)},ot.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new S("3")),r=this.negate(),a=this;for(e=n.bitLength()-2;e>0;--e){a=a.twice();var o=n.testBit(e);o!=i.testBit(e)&&(a=a.add2D(o?this:r))}return a},ot.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),r=this.curve.getQ(),a=e.multiply(e).mod(r),o=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(r);return a.equals(o)},ot.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ot.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(S.ONE)<0||e.compareTo(t.subtract(S.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(S.ONE)<0||i.compareTo(t.subtract(S.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function r(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var a=new String(""),o=Object.hasOwnProperty;return function(n,s){var c,u,l=n.match(t),h=l[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var f=[c],p=1-d,g=l.length;p=0;)delete r[a[l]]}return s.call(e,n,r)}({"":c},"")),c}}();void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.asn1&&ut.asn1||(ut.asn1={}),ut.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",r=0;r15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ut.asn1.DERAbstractString=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=wt(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},a.lang.extend(ut.asn1.DERAbstractString,ut.asn1.ASN1Object),ut.asn1.DERAbstractTime=function(t){ut.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,r=this.localDateToUTC(t),a=String(r.getFullYear());"utc"==e&&(a=a.substr(2,2));var o=a+n(String(r.getMonth()+1),2)+n(String(r.getDate()),2)+n(String(r.getHours()),2)+n(String(r.getMinutes()),2)+n(String(r.getSeconds()),2);if(!0===i){var s=r.getMilliseconds();if(0!=s){var c=n(String(s),3);o=o+"."+(c=c.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=bt(t)},this.setByDateValue=function(t,e,i,n,r,a){var o=new Date(Date.UTC(t,e-1,i,n,r,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},a.lang.extend(ut.asn1.DERAbstractTime,ut.asn1.ASN1Object),ut.asn1.DERAbstractStructured=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},a.lang.extend(ut.asn1.DERAbstractStructured,ut.asn1.ASN1Object),ut.asn1.DERBoolean=function(){ut.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},a.lang.extend(ut.asn1.DERBoolean,ut.asn1.ASN1Object),ut.asn1.DERInteger=function(t){ut.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ut.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new S(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},a.lang.extend(ut.asn1.DERInteger,ut.asn1.ASN1Object),ut.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ut.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ut.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7r.length&&(r=n[i]);return(t=t.replace(r,"::")).slice(1,-1)}function Lt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Nt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function Ft(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*a)break;if(s>=200)break;n.push(c),o=c,s++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var r,a,o=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return r=i.shift(),a=o.getChildIdx(t,e),o.getIdxbyList(t,a[r],i,n)},dt.getTLVbyList=function(t,e,i,n){var r=dt,a=r.getIdxbyList(t,e,i);if(void 0===a)throw"can't find nthList object";if(void 0!==n&&t.substr(a,2)!=n)throw"checking tag doesn't match: "+t.substr(a,2)+"!="+n;return r.getTLV(t,a)},dt.getVbyList=function(t,e,i,n,r){var a,o,s=dt;if(void 0===(a=s.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return o=s.getV(t,a),!0===r&&(o=o.substr(2)),o},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),r=parseInt(n,16);i[0]=new String(Math.floor(r/40)),i[1]=new String(r%40);for(var a=t.substr(2),o=[],s=0;s0&&(l=l+"."+c.join(".")),l},dt.dump=function(t,e,i,n){var r=dt,a=r.getV,o=r.dump,s=r.getChildIdx,c=t;t instanceof ut.asn1.ASN1Object&&(c=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=a(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+u(h=a(c,i),l)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+u(h=a(c,i),l)+"\n";if("04"==c.substr(i,2)){var h=a(c,i);return r.isASN1HEX(h)?(_=n+"OCTETSTRING, encapsulates\n")+o(h,e,0,n+" "):n+"OCTETSTRING "+u(h,l)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=a(c,i),f=ut.asn1.ASN1Util.oidHexToInt(d),p=ut.asn1.x509.OID.oid2name(f),g=f.replace(/\./g," ");return""!=p?n+"ObjectIdentifier "+p+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+_t(a(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+_t(a(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+_t(a(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+_t(a(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+_t(a(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+_t(a(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";_=n+"SEQUENCE\n";var b=e;if((2==(y=s(c,i)).length||3==y.length)&&"06"==c.substr(y[0],2)&&"04"==c.substr(y[y.length-1],2)){p=r.oidname(a(c,y[0]));var m=JSON.parse(JSON.stringify(e));m.x509ExtName=p,b=m}for(var v=0;vr)throw"key is too short for SigAlg: keylen="+i+","+e;for(var a="0001",o="00"+n,s="",c=r-a.length-o.length,u=0;u=0)return!1;if(i.compareTo(S.ONE)<0||i.compareTo(r)>=0)return!1;var o=i.modInverse(r),s=t.multiply(o).mod(r),c=e.multiply(o).mod(r);return a.multiply(s).add(n.multiply(c)).getX().toBigInteger().mod(r).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),r=[];return r.push(2),r.push(i.length),(r=r.concat(i)).push(2),r.push(n.length),(r=r.concat(n)).unshift(r.length),r.unshift(48),r},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:S.fromByteArrayUnsigned(i),s:S.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:S.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:S.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,r=ut.crypto.ECDSA.getName,a=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=a(t,0,[2,0],"06"),i=a(t,0,[1],"04");try{n=a(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=r(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,r=ut.crypto.ECDSA.getName,a=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{a(t,0,[1,0],"06"),e=a(t,0,[1,1],"06"),i=a(t,0,[2,0,1],"04");try{n=a(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=r(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[0,0],"06"),e=r(t,0,[0,1],"06"),i=r(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,r=ut.crypto.ECDSA.getName,a=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=a(t,0,[0,e,0,1],"06"),n=a(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=r(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ut.crypto.ECDSA.parseSigHex=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new S(e.r,16),s:new S(e.s,16)}},ut.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var r=n[0],a=n[1];if("02"!=t.substr(r,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(a,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,r),s:i(t,a)}},ut.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ut.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ut.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ut.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new S(t,16),n=new S(e,16);return ut.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ut.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ut.asn1,n=new i.DERInteger({bigint:t}),r=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,r]}).getEncodedHex()},ut.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new S(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,r,a,o,s,c,u,l,h,d,f,p){t[n]={};var g=i(a),b=i(o),m=i(s),v=i(c),y=i(u),A=new st(g,b,m),w=A.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=r,t[n].curve=A,t[n].G=w,t[n].n=v,t[n].h=y,t[n].oid=f,t[n].info=p;for(var _=0;_=2*s)break}var h={};return h.keyhex=c.substr(0,2*r[t].keylen),h.ivhex=c.substr(2*r[t].keylen,2*r[t].ivlen),h},s=function(t,e,i,n){var a=m.enc.Base64.parse(t),o=m.enc.Hex.stringify(a);return(0,r[e].proc)(o,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return a(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return o(t,e,i)},decryptKeyB64:function(t,e,i,n){return s(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=a(t),n=i.cipher,r=i.ivsalt,c=i.data,u=o(n,e,r).keyhex;return s(c,n,u,r)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,a){var s="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===r[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==a&&null!=a||(a=function(t){var e=m.lib.WordArray.random(t);return m.enc.Hex.stringify(e)}(r[n].ivlen).toUpperCase()),s="-----BEGIN "+t+" PRIVATE KEY-----\r\n",s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+n+","+a+"\r\n",s+="\r\n",(s+=function(t,e,i,n){return(0,r[e].eproc)(t,i,n)}(e,n,o(n,i,a).keyhex,a).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,r={},a=i(e,0);if(2!=a.length)throw"malformed format: SEQUENCE(0).items != 2: "+a.length;r.ciphertext=n(e,a[1]);var o=i(e,a[0]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+o.length;if("2a864886f70d01050d"!=n(e,o[0]))throw"this only supports pkcs5PBES2";var s=i(e,o[1]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+s.length;var c=i(e,s[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";r.encryptionSchemeAlg="TripleDES",r.encryptionSchemeIV=n(e,c[1]);var u=i(e,s[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=n(e,u[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,u[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;r.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{r.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return r},getPBKDF2KeyHexFromParam:function(t,e){var i=m.enc.Hex.parse(t.pbkdf2Salt),n=m.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return m.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=It(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),r=Ht.getPBKDF2KeyHexFromParam(n,e),a={};a.ciphertext=m.enc.Hex.parse(n.ciphertext);var o=m.enc.Hex.parse(r),s=m.enc.Hex.parse(n.encryptionSchemeIV),c=m.TripleDES.decrypt(a,o,{iv:s});return m.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,r={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var a=i(t,0);if(3!=a.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(a[1],2))throw"malformed PKCS8 private key(code:003)";var o=i(t,a[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(r.algoid=n(t,o[0]),"06"==t.substr(o[1],2)&&(r.algparam=n(t,o[1])),"04"!=t.substr(a[2],2))throw"malformed PKCS8 private key(code:006)";return r.keyidx=e.getVidx(t,a[2]),r},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=It(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new rt;else if("2a8648ce380401"==i.algoid)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ut.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new rt;else if("2a8648ce380401"===i)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ut.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var r=e(t,0);if(2!=r.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(r[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,r[0]),"02"!=t.substr(r[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,r[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,r={algparam:null},a=i(t,0);if(2!=a.length)throw"outer DERSequence shall have 2 elements: "+a.length;var o=a[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var s=i(t,o);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(r.algoid=n(t,s[0]),"06"==t.substr(s[1],2)?r.algparam=n(t,s[1]):"30"==t.substr(s[1],2)&&(r.algparam={},r.algparam.p=e.getVbyList(t,s[1],[0],"02"),r.algparam.q=e.getVbyList(t,s[1],[1],"02"),r.algparam.g=e.getVbyList(t,s[1],[2],"02")),"03"!=t.substr(a[1],2))throw"malformed PKCS8 public key(code:004)";return r.key=n(t,a[1]).substr(2),r}}}();Ht.getKey=function(t,e,i){var n,r=(m=dt).getChildIdx,a=m.getVbyList,o=ut.crypto,s=o.ECDSA,c=o.DSA,u=rt,l=It,h=Ht;if(void 0!==u&&t instanceof u)return t;if(void 0!==s&&t instanceof s)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new s({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new s({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(I=new u).setPublic(t.n,t.e),I;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(I=new u).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),I;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(I=new u).setPrivate(t.n,t.e,t.d),I;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(I=new c).setPublic(t.p,t.q,t.g,t.y),I;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(I=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(I=new u).setPublic(At(t.n),At(t.e)),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(I=new u).setPrivateEx(At(t.n),At(t.e),At(t.d),At(t.p),At(t.q),At(t.dp),At(t.dq),At(t.qi)),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(I=new u).setPrivate(At(t.n),At(t.e),At(t.d)),I;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(T=new s({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+At(t.x)).slice(-d)+("0000000000"+At(t.y)).slice(-d);return T.setPublicKeyHex(f),T}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(T=new s({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+At(t.x)).slice(-d)+("0000000000"+At(t.y)).slice(-d);var p=("0000000000"+At(t.d)).slice(-d);return T.setPublicKeyHex(f),T.setPrivateKeyHex(p),T}if("pkcs5prv"===i){var g,b=t,m=dt;if(9===(g=r(b,0)).length)(I=new u).readPKCS5PrvKeyHex(b);else if(6===g.length)(I=new c).readPKCS5PrvKeyHex(b);else{if(!(g.length>2&&"04"===b.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(I=new s).readPKCS5PrvKeyHex(b)}return I}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return Kt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Kt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var v=It(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(v)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var y=l(t,"RSA PRIVATE KEY");return h.getKey(y,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var A=a(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),w=a(n,0,[2],"02"),_=a(n,0,[3],"02"),k=a(n,0,[4],"02"),E=a(n,0,[5],"02");return(I=new c).setPrivate(new S(A,16),new S(w,16),new S(_,16),new S(k,16),new S(E,16)),I}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var R=h.getDecryptedKeyHex(t,e),C=new rt;return C.readPKCS5PrvKeyHex(R),C}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var T,I=a(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),O=a(n,0,[2,0],"06"),D=a(n,0,[3,0],"03").substr(2);if(void 0===ut.crypto.OID.oidhex2name[O])throw"undefined OID(hex) in KJUR.crypto.OID: "+O;return(T=new s({curve:ut.crypto.OID.oidhex2name[O]})).setPublicKeyHex(D),T.setPrivateKeyHex(I),T.isPublic=!1,T}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return A=a(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),w=a(n,0,[2],"02"),_=a(n,0,[3],"02"),k=a(n,0,[4],"02"),E=a(n,0,[5],"02"),(I=new c).setPrivate(new S(A,16),new S(w,16),new S(_,16),new S(k,16),new S(E,16)),I;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Ht.generateKeypair=function(t,e){if("RSA"==t){var i=e;(o=new rt).generate(i,"10001"),o.isPrivate=!0,o.isPublic=!0;var n=new rt,r=o.n.toString(16),a=o.e.toString(16);return n.setPublic(r,a),n.isPrivate=!1,n.isPublic=!0,(s={}).prvKeyObj=o,s.pubKeyObj=n,s}if("EC"==t){var o,s,c=e,u=new ut.crypto.ECDSA({curve:c}).generateKeyPairHex();return(o=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),o.setPrivateKeyHex(u.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(n=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(s={}).prvKeyObj=o,s.pubKeyObj=n,s}throw"unknown algorithm: "+t},Ht.getPEM=function(t,e,i,n,r,a){var o=ut.asn1,s=o.DERObjectIdentifier,c=o.DERInteger,u=o.ASN1Util.newObject,l=ut.crypto,h=l.DSA,d=l.ECDSA,f=rt;function p(t){return u({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function b(t){return u({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==f&&t instanceof f||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return Tt(w=new(0,o.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==f&&t instanceof f&&(void 0===i||null==i)&&1==t.isPrivate)return Tt(w=p(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var v=new s({name:t.curveName}).getEncodedHex(),y=g(t).getEncodedHex(),A="";return(A+=Tt(v,"EC PARAMETERS"))+Tt(y,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return Tt(w=b(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==f&&t instanceof f&&void 0!==i&&null!=i&&1==t.isPrivate){var w=p(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,i,n,a)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return w=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,i,n,a);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return w=b(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,i,n,a);var _=function(t,e){var i=S(t,e);return new u({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},S=function(t,e){var i=m.lib.WordArray.random(8),n=m.lib.WordArray.random(8),r=m.PBKDF2(e,i,{keySize:6,iterations:100}),a=m.enc.Hex.parse(t),o=m.TripleDES.encrypt(a,r,{iv:n})+"",s={};return s.ciphertext=o,s.pbkdf2Salt=m.enc.Hex.stringify(i),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=m.enc.Hex.stringify(n),s};if("PKCS8PRV"==e&&null!=f&&t instanceof f&&1==t.isPrivate){var k=p(t).getEncodedHex();return w=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===i||null==i?Tt(w,"PRIVATE KEY"):Tt(y=_(w,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return k=new u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),w=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===i||null==i?Tt(w,"PRIVATE KEY"):Tt(y=_(w,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return k=new c({bigint:t.x}).getEncodedHex(),w=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===i||null==i?Tt(w,"PRIVATE KEY"):Tt(y=_(w,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Ht.getKeyFromCSRPEM=function(t){var e=It(t,"CERTIFICATE REQUEST");return Ht.getKeyFromCSRHex(e)},Ht.getKeyFromCSRHex=function(t){var e=Ht.parseCSRHex(t);return Ht.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Ht.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},r=t;if("30"!=r.substr(0,2))throw"malformed CSR(code:001)";var a=e(r,0);if(a.length<1)throw"malformed CSR(code:002)";if("30"!=r.substr(a[0],2))throw"malformed CSR(code:003)";var o=e(r,a[0]);if(o.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(r,o[2]),n},Ht.getJWKFromKey=function(t){var e={};if(t instanceof rt&&t.isPrivate)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e.d=yt(t.d.toString(16)),e.p=yt(t.p.toString(16)),e.q=yt(t.q.toString(16)),e.dp=yt(t.dmp1.toString(16)),e.dq=yt(t.dmq1.toString(16)),e.qi=yt(t.coeff.toString(16)),e;if(t instanceof rt&&t.isPublic)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e;if(t instanceof ut.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e.d=yt(t.prvKeyHex),e}if(t instanceof ut.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e}throw"not supported key object"},rt.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},rt.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=rt.getPosArrayOfChildrenFromHex(t))[0]),r=i(t,e[1]),a=i(t,e[2]),o=i(t,e[3]),s=i(t,e[4]),c=i(t,e[5]),u=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,r,a,o,s,c,u,l,h),e},rt.prototype.readPrivateKeyFromPEMString=function(t){var e=It(t),i=rt.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},rt.prototype.readPKCS5PrvKeyHex=function(t){var e=rt.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},rt.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,r,a,o,s,c,u=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=u(t,0,[2,0,1],"02"),i=u(t,0,[2,0,2],"02"),n=u(t,0,[2,0,3],"02"),r=u(t,0,[2,0,4],"02"),a=u(t,0,[2,0,5],"02"),o=u(t,0,[2,0,6],"02"),s=u(t,0,[2,0,7],"02"),c=u(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,r,a,o,s,c)},rt.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var r=i(t,n[0]),a=i(t,n[1]);this.setPublic(r,a)},rt.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},rt.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new Kt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Bt=new RegExp("");function jt(t,e){for(var i="",n=e/4-t.length,r=0;r>24,(16711680&r)>>16,(65280&r)>>8,255&r])))),r+=1;return n}function Ut(t){for(var e in ut.crypto.Util.DIGESTINFOHEAD){var i=ut.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function Kt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,r=t.getVbyList,a=t.getTLVbyList,o=t.getIdxbyList,s=t.getVidx,c=t.oidname,u=Kt,l=It;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==a(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return r(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(r(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return a(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return u.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return a(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return u.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=r(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=r(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return o(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return o(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Ht.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(r(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return r(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=a(this.hex,0,[0],"30"),r=new ut.crypto.Signature({alg:e});return r.init(t),r.updateHex(n),r.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=o(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var a=0;a0&&(u=new Array(i),(new et).nextBytes(u),u=String.fromCharCode.apply(String,u));var l=St(c(kt("\0\0\0\0\0\0\0\0"+r+u))),h=[];for(n=0;n>8*s-o&255),n=0;nthis.n.bitLength())return 0;var n=Ut(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var r=n[0];return n[1]==function(t){return ut.crypto.Util.hashString(t,r)}(t)},rt.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Bt,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Ut(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},rt.prototype.verifyPSS=function(t,e,i,n){var r=function(t){return ut.crypto.Util.hashHex(t,i)}(kt(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(r,e,i,n)},rt.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var r=new S(e,16);if(r.bitLength()>this.n.bitLength())return!1;var a,o=function(t){return ut.crypto.Util.hashHex(t,i)},s=St(t),c=s.length,u=this.n.bitLength()-1,l=Math.ceil(u/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=l-c-2;else if(n<-2)throw"invalid salt length";if(l>8*l-u&255;if(0!=(d.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=Gt(f,d.length,o),b=[];for(a=0;a0&&-1==(":"+n.join(":")+":").indexOf(":"+b+":"))throw"algorithm '"+b+"' not accepted in the list";if("none"!=b&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Ht.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var m=null;if(void 0===a.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+b;if("none"==(m=a.jwsalg2sigalg[b]))throw"not supported";if("Hmac"==m.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var v=new u({alg:m,pass:e});return v.updateString(f),p==v.doFinal()}if(-1!=m.indexOf("withECDSA")){var y,A=null;try{A=c.concatSigToASN1Sig(p)}catch(t){return!1}return(y=new l({alg:m})).init(e),y.updateString(f),y.verify(A)}return(y=new l({alg:m})).init(e),y.updateString(f),y.verify(p)},ut.jws.JWS.parse=function(t){var e,i,n=t.split("."),r={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),r.headerObj=ut.jws.JWS.readSafeJSONString(ht(n[0])),r.payloadObj=ut.jws.JWS.readSafeJSONString(ht(e)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadPP=null==r.payloadObj?ht(e):JSON.stringify(r.payloadObj,null," "),void 0!==i&&(r.sigHex=At(i)),r},ut.jws.JWS.verifyJWT=function(t,e,n){var r=ut.jws,a=r.JWS,o=a.readSafeJSONString,s=a.inArray,c=a.includedArray,u=t.split("."),l=u[0],h=u[1],d=(At(u[2]),o(ht(l))),f=o(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!s(d.alg,n.alg))return!1;if(void 0!==f.iss&&"object"===i(n.iss)&&!s(f.iss,n.iss))return!1;if(void 0!==f.sub&&"object"===i(n.sub)&&!s(f.sub,n.sub))return!1;if(void 0!==f.aud&&"object"===i(n.aud))if("string"==typeof f.aud){if(!s(f.aud,n.aud))return!1}else if("object"==i(f.aud)&&!c(f.aud,n.aud))return!1;var p=r.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return j(t).length;default:if(n)return B(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function b(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:m(t,e,i,n,r);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):m(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,i,n,r){var a,o=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var l=-1;for(a=i;as&&(i=s-c),a=i;a>=0;a--){for(var h=!0,d=0;dr&&(n=r):n=r;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,r.push(i%256),r.push(n);return r}(e,t.length-i),t,i,n)}function k(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function E(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r239?4:u>223?3:u>191?2:1;if(r+h<=i)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(a=t[r+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:o=t[r+2],128==(192&(a=t[r+1]))&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[r+2],s=t[r+3],128==(192&(a=t[r+1]))&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),r+=h}return function(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,i);case"utf8":case"utf-8":return E(this,e,i);case"ascii":return C(this,e,i);case"latin1":case"binary":return T(this,e,i);case"base64":return k(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(n>>>=0),o=(i>>>=0)-(e>>>=0),s=Math.min(a,o),u=this.slice(n,r),l=t.slice(e,i),h=0;hr)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return v(this,t,e,i);case"utf8":case"utf-8":return y(this,t,e,i);case"ascii":return A(this,t,e,i);case"latin1":case"binary":return w(this,t,e,i);case"base64":return _(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function C(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;rn)&&(i=n);for(var r="",a=e;ai)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,i,n,r,a){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function P(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-i,2);r>>8*(n?r:1-r)}function x(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-i,4);r>>8*(n?r:3-r)&255}function N(t,e,i,n,r,a){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function L(t,e,i,n,a){return a||N(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function F(t,e,i,n,a){return a||N(t,0,i,8),r.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(r*=256);)n+=this[t+--e]*r;return n},c.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=this[t],r=1,a=0;++a=(r*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=e,r=1,a=this[t+--n];n>0&&(r*=256);)a+=this[t+--n]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*e)),a},c.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||M(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,a=0;for(this[e]=255&t;++a=0&&(a*=256);)this[e+r]=t/a&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):x(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):x(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);M(this,t,e,i,r-1,-r)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);M(this,t,e,i,r-1,-r)}var a=i-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):x(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):x(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return L(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return L(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return F(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return F(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(a=e;a55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&a.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;a.push(i)}else if(i<2048){if((e-=2)<0)break;a.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;a.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return a}function j(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=u(t),n=i[0],o=i[1],s=new a(function(t,e,i){return 3*(e+i)/4-i}(0,n,o)),c=0,l=o>0?n-4:n,h=0;h>16&255,s[c++]=e>>8&255,s[c++]=255&e;return 2===o&&(e=r[t.charCodeAt(h)]<<2|r[t.charCodeAt(h+1)]>>4,s[c++]=255&e),1===o&&(e=r[t.charCodeAt(h)]<<10|r[t.charCodeAt(h+1)]<<4|r[t.charCodeAt(h+2)]>>2,s[c++]=e>>8&255,s[c++]=255&e),s},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,a=[],o=0,s=i-r;os?s:o+16383));return 1===r?a.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===r&&a.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),a.join("")};for(var n=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var r,a=[],o=e;o>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,r){var a,o,s=8*r-n-1,c=(1<>1,l=-7,h=i?r-1:0,d=i?-1:1,f=t[e+h];for(h+=d,a=f&(1<<-l)-1,f>>=-l,l+=s;l>0;a=256*a+t[e+h],h+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+t[e+h],h+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=u}return(f?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,i,n,r,a){var o,s,c,u=8*a-r-1,l=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=l?(s=0,o=l):o+h>=1?(s=(e*c-1)*Math.pow(2,r),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[i+f]=255&s,f+=p,s/=256,r-=8);for(o=o<0;t[i+f]=255&o,f+=p,o/=256,u-=8);t[i+f-p]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,r=t.X509,a=t.crypto,o=t.hextob64u,s=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var r=e.JWS.parse(i);return{header:r.headerObj,payload:r.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,a,o,c,u,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===a.kty)if(a.e&&a.n)a=i.getKey(a);else{if(!a.x5c||!a.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",a),Promise.reject(new Error("RSA key missing key material"));var d=s(a.x5c[0]);a=r.getPublicKeyFromCertHex(d)}else{if("EC"!==a.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",a&&a.kty),Promise.reject(new Error(a.kty));if(!(a.crv&&a.x&&a.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",a),Promise.reject(new Error("EC key missing key material"));a=i.getKey(a)}return t._validateJwt(e,a,o,c,u,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,r,a,o,s){a||(a=0),o||(o=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===r||Array.isArray(c.aud)&&c.aud.indexOf(r)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==r)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!s){var u=o+a,l=o-a;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(u>>((3&e)<<3)&255;return r}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=r.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),r=i(3),a=i(8);e.SignoutRequest=function t(e){var i=e.url,o=e.id_token_hint,s=e.post_logout_redirect_uri,c=e.data,u=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in o&&(i=r.UrlUtility.addQueryParam(i,"id_token_hint",o)),s&&(i=r.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",s),c&&(this.state=new a.State({data:c,request_type:l}),i=r.UrlUtility.addQueryParam(i,"state",this.state.id))),u)i=r.UrlUtility.addQueryParam(i,h,u[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.SilentRenewService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof o.UserManagerSettings||(i=new o.UserManagerSettings(i));var b=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return b._events=new c.UserManagerEvents(i),b._silentRenewService=new n(b),b.settings.automaticSilentRenew&&(r.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),b.startSilentRenew()),b.settings.monitorSession&&(r.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),b._sessionMonitor=new a(b)),b._tokenRevocationClient=new s(b._settings),b._tokenClient=new p(b._settings),b._joseUtil=g,b}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then((function(e){return e?(r.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(r.Log.info("UserManager.getUser: user not found in storage"),null)}))},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then((function(){r.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()}))},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then((function(){r.Log.info("UserManager.signinRedirect: successful")}))},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then((function(t){return t.profile&&t.profile.sub?r.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinRedirectCallback: no sub"),t}))},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then((function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinPopup: no sub")),t}))):(r.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then((function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinPopupCallback: no sub")),t})).catch((function(t){r.Log.error(t.message)}))},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then((function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(r.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))}))},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then((function(e){return e?e.access_token?t._loadUser().then((function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then((function(){return r.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then((function(){return t._events.load(i),i}))}))}return null})):(r.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(r.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))}))},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then((function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then((function(e){return e?e.sub!==t.sub?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))}))}))},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinSilent: no sub")),t}))):(r.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then((function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinSilentCallback: no sub")),t}))},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then((function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))}))},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then((function(n){var r=n.state,a=n.response;return r?"so:r"===r.request_type?i.signoutRedirectCallback(t):"so:p"===r.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):a}))},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(e){return t.processSigninResponse(e.url).then((function(t){if(r.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};r.Log.info("querySessionStatus successful, user not authenticated")})).catch((function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e}))}))):(r.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then((function(e){return i._signinEnd(e.url,t)}))},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then((function(e){return r.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then((function(t){return r.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)})).catch((function(t){throw e.close&&(r.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t}))}))},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then((function(t){r.Log.debug("UserManager._signinEnd: got signin response");var n=new s.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return r.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));r.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then((function(){return r.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n}))}))},e.prototype._signinCallback=function(t,e){return r.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then((function(){r.Log.info("UserManager.signoutRedirect: successful")}))},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then((function(t){return r.Log.info("UserManager.signoutRedirectCallback: successful"),t}))},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){r.Log.info("UserManager.signoutPopup: successful")}))},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then((function(){r.Log.info("UserManager.signoutPopupCallback: successful")}))},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then((function(t){return i._signoutEnd(t.url)}))},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then((function(i){return r.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then((function(a){return r.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(a):Promise.resolve()).then((function(){var o=t.id_token_hint||a&&a.id_token;return o&&(r.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=o),e.removeUser().then((function(){return r.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then((function(t){return r.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)}))}))}))})).catch((function(t){throw i.close&&(r.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t}))}))},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then((function(t){return r.Log.debug("UserManager._signoutEnd: got signout response"),t}))},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then((function(e){return t._revokeInternal(e,!0).then((function(i){if(i)return r.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then((function(){r.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)}))}))})).then((function(){r.Log.info("UserManager.revokeAccessToken: access token revoked successfully")}))},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then((function(t){return i._revokeRefreshTokenInternal(n,e).then((function(e){return t||e||r.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e}))}))}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then((function(){return!0}))},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then((function(){return!0})):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(t){return t?(r.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(t)):(r.Log.debug("UserManager._loadUser: no user storageString"),null)}))},e.prototype.storeUser=function(t){if(t){r.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return r.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(a.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,r=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,f=i.silent_redirect_uri,p=i.silentRequestTimeout,g=i.automaticSilentRenew,b=void 0!==g&&g,m=i.validateSubOnSilentRenew,v=void 0!==m&&m,y=i.includeIdTokenInSilentRenew,A=void 0===y||y,w=i.monitorSession,_=void 0===w||w,S=i.monitorAnonymousSession,k=void 0!==S&&S,E=i.checkSessionInterval,R=void 0===E?2e3:E,C=i.stopCheckSessionOnError,T=void 0===C||C,I=i.query_status_response_type,O=i.revokeAccessTokenOnSignout,D=void 0!==O&&O,M=i.accessTokenExpiringNotificationTime,P=void 0===M?60:M,x=i.redirectNavigator,N=void 0===x?new a.RedirectNavigator:x,L=i.popupNavigator,F=void 0===L?new o.PopupNavigator:L,z=i.iframeNavigator,H=void 0===z?new s.IFrameNavigator:z,B=i.userStore,j=void 0===B?new c.WebStorageStateStore({store:u.Global.sessionStorage}):B;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var G=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return G._popup_redirect_uri=n,G._popup_post_logout_redirect_uri=r,G._popupWindowFeatures=h,G._popupWindowTarget=d,G._silent_redirect_uri=f,G._silentRequestTimeout=p,G._automaticSilentRenew=b,G._validateSubOnSilentRenew=v,G._includeIdTokenInSilentRenew=A,G._accessTokenExpiringNotificationTime=P,G._monitorSession=_,G._monitorAnonymousSession=k,G._checkSessionInterval=R,G._stopCheckSessionOnError=T,G._query_status_response_type=I||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),G._revokeAccessTokenOnSignout=D,G._redirectNavigator=N,G._popupNavigator=F,G._iframeNavigator=H,G._userStore=j,G}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(r.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(r.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:a.Global.timer,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return o._timer=n,o._nowFunc=r||function(){return Date.now()/1e3},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)r.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),r.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t4&&void 0!==arguments[4]?arguments[4]:new n.a(t,i,o);if(!s.closed)return e instanceof a.a?e.subscribe(s):Object(r.a)(e)(s)}},mWib:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("5uGe"),r=i("Efrr");function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return function(i){return i.lift(new c(t,e))}}var c=function(){function t(e,i){g(this,t),this.dueTime=e,this.scheduler=i}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))}}]),t}(),u=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t)).dueTime=n,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return m(i,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),i}(n.a);function l(t){t.debouncedNext()}},ma6z:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("TkCa"),r=i("EM62"),a=i("sEIs"),o=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"ngOnInit",value:function(){}},{key:"prepareRoute",value:function(t){return t&&t.activatedRouteData&&t.activatedRouteData.animation}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(t,e){1&t&&(r.Sb(0,"div"),r.Nb(1,"router-outlet",null,0),r.Rb())},directives:[a.k],styles:[""],data:{animation:[n.a]}}),t}()},mawV:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("3lSR");function r(){return Object(n.a)(1)}},mjJC:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("X2Q7"),a=i("Ssnw"),o=i("EM62"),s=i("s2Ay"),c=i("2kYt"),u=i("PBFl"),l=i("csyo"),h=i("29Wa"),d=i("R7+U"),f=i("mFH5");function p(t,e){1&t&&o.Nb(0,"mat-spinner",7)}function b(t,e){if(1&t&&(o.Sb(0,"mat-option",13),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.kc("value",i),o.Ab(1),o.Lc(" ",i.friendlyNameParameter," ")}}function v(t,e){if(1&t&&(o.Sb(0,"mat-option",13),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.kc("value",i),o.Ab(1),o.Lc(" ",i," ")}}function y(t,e){if(1&t&&(o.Sb(0,"mat-option",13),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.kc("value",i),o.Ab(1),o.Lc(" ",i," ")}}function A(t,e){if(1&t){var i=o.Tb();o.Sb(0,"div",8),o.Sb(1,"mat-form-field"),o.Sb(2,"mat-label"),o.Jc(3),o.ec(4,"translate"),o.Rb(),o.Sb(5,"mat-select",9),o.Zb("valueChange",(function(t){return o.xc(i),o.dc().selectedLogin=t})),o.Hc(6,b,2,2,"mat-option",10),o.Rb(),o.Rb(),o.Sb(7,"mat-form-field"),o.Sb(8,"mat-label"),o.Jc(9),o.ec(10,"translate"),o.Rb(),o.Sb(11,"mat-select",9),o.Zb("valueChange",(function(t){return o.xc(i),o.dc().selectedLang=t})),o.Hc(12,v,2,2,"mat-option",10),o.Rb(),o.Rb(),o.Sb(13,"mat-form-field"),o.Sb(14,"mat-label"),o.Jc(15),o.ec(16,"translate"),o.Rb(),o.Sb(17,"mat-select",9),o.Zb("valueChange",(function(t){return o.xc(i),o.dc().selectedMail=t})),o.Hc(18,y,2,2,"mat-option",10),o.Rb(),o.Rb(),o.Sb(19,"div",11),o.Sb(20,"p",12),o.Jc(21),o.ec(22,"translate"),o.Rb(),o.Sb(23,"p"),o.Jc(24),o.Rb(),o.Rb(),o.Rb()}if(2&t){var n=o.dc();o.Ab(3),o.Kc(o.fc(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),o.Ab(2),o.kc("value",n.selectedLogin),o.Ab(1),o.kc("ngForOf",n.logins),o.Ab(3),o.Kc(o.fc(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),o.Ab(2),o.kc("value",n.selectedLang),o.Ab(1),o.kc("ngForOf",n.languages),o.Ab(3),o.Kc(o.fc(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),o.Ab(2),o.kc("value",n.selectedMail),o.Ab(1),o.kc("ngForOf",n.mails),o.Ab(3),o.Kc(o.fc(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),o.Ab(3),o.Kc(n.selectedLogin.value)}}var w=function(){var t=function(){function t(e,i,n,r,a,o,s){var c=this;g(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.attributesManagerService=r,this.store=a,this.translate=o,this.notificator=s,this.languages=["en","cz"],this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],o.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe((function(t){return c.successMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}},{key:"getMailAttributes",value:function(){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"}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,this.selectedLogin.friendlyNameParameter,this.pwdMails.get(this.selectedMail),this.selectedLang).subscribe((function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close()}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.i),o.Mb(n.a),o.Mb(r.i),o.Mb(r.c),o.Mb(a.m),o.Mb(s.e),o.Mb(a.l))},t.\u0275cmp=o.Gb({type:t,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"],["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(t,e){1&t&&(o.Sb(0,"h1",0),o.Jc(1),o.ec(2,"translate"),o.Rb(),o.Sb(3,"div",1),o.Hc(4,p,1,0,"mat-spinner",2),o.Rb(),o.Hc(5,A,25,19,"div",3),o.Sb(6,"div",4),o.Sb(7,"button",5),o.Zb("click",(function(){return e.onCancel()})),o.Jc(8),o.ec(9,"translate"),o.Rb(),o.Sb(10,"button",6),o.Zb("click",(function(){return e.onSubmit()})),o.Jc(11),o.ec(12,"translate"),o.Rb(),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),o.Ab(3),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading),o.Ab(3),o.Lc(" ",o.fc(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),o.Ab(2),o.kc("disabled",e.loading),o.Ab(1),o.Lc(" ",o.fc(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.j,c.t,n.c,u.b,l.c,n.g,h.c,h.g,d.a,c.s,f.n],pipes:[s.d],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t}()},nIj0:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return qt})),n.d(e,"c",(function(){return y})),n.d(e,"d",(function(){return Zt})),n.d(e,"e",(function(){return Ht})),n.d(e,"f",(function(){return ne})),n.d(e,"g",(function(){return mt})),n.d(e,"h",(function(){return Pt})),n.d(e,"i",(function(){return Gt})),n.d(e,"j",(function(){return Nt})),n.d(e,"k",(function(){return Ft})),n.d(e,"l",(function(){return re})),n.d(e,"m",(function(){return $t})),n.d(e,"n",(function(){return Xt})),n.d(e,"o",(function(){return I})),n.d(e,"p",(function(){return h})),n.d(e,"q",(function(){return S})),n.d(e,"r",(function(){return E})),n.d(e,"s",(function(){return R})),n.d(e,"t",(function(){return _t})),n.d(e,"u",(function(){return It})),n.d(e,"v",(function(){return Rt})),n.d(e,"w",(function(){return W})),n.d(e,"x",(function(){return H})),n.d(e,"y",(function(){return ee})),n.d(e,"z",(function(){return G})),n.d(e,"A",(function(){return K})),n.d(e,"B",(function(){return ae})),n.d(e,"C",(function(){return Vt})),n.d(e,"D",(function(){return J})),n.d(e,"E",(function(){return X})),n.d(e,"F",(function(){return M})),n.d(e,"G",(function(){return Q})),n.d(e,"H",(function(){return Ot}));var r=n("EM62"),o=n("2kYt"),c=n("P4Xx"),u=n("GoAz"),l=n("YtkY"),h=new r.r("NgValueAccessor"),f={provide:h,useExisting:Object(r.U)((function(){return p})),multi:!0},p=function(){var t=function(){function t(e,i){g(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return m(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.Zb("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[r.zb([f])]}),t}(),b={provide:h,useExisting:Object(r.U)((function(){return y})),multi:!0},v=new r.r("CompositionEventMode"),y=function(){var t=function(){function t(e,i,n){var r;g(this,t),this._renderer=e,this._elementRef=i,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(o.M)()?Object(o.M)().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return m(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.l),r.Mb(v,8))},t.\u0275dir=r.Hb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r.Zb("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[r.zb([b])]}),t}(),A=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t}),t}(),w=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),i}(A);return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.xb]}),t}(),_=r.Ub(w),S=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return m(i,[{key:"validator",get:function(){}},{key:"asyncValidator",get:function(){}}]),i}(A),k=function(){function t(e){g(this,t),this._cd=e}return m(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),E=function(){var t=function(t){a(i,t);var e=s(i);function i(t){return g(this,i),e.call(this,t)}return i}(k);return t.\u0275fac=function(e){return new(e||t)(r.Mb(S,2))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.xb]}),t}(),R=function(){var t=function(t){a(i,t);var e=s(i);function i(t){return g(this,i),e.call(this,t)}return i}(k);return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,2))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.xb]}),t}();function C(t){return null==t||0===t.length}function T(t){return null!=t&&"number"==typeof t.length}var I=new r.r("NgValidators"),O=new r.r("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])?)*$/,M=function(){function t(){g(this,t)}return m(t,null,[{key:"min",value:function(t){return function(e){if(C(e.value)||C(t))return null;var i=parseFloat(e.value);return!isNaN(i)&&it?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return C(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return C(t.value)||D.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return C(e.value)||!T(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),i=new RegExp(n)):(n=e.toString(),i=e),function(t){if(C(t.value))return null;var e=t.value;return i.test(e)?null:{pattern:{requiredPattern:n,actualValue:e}}}):t.nullValidator;var i,n}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(P);return 0==e.length?null:function(t){return N(L(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(P);return 0==e.length?null:function(t){var i=L(t,e).map(x);return Object(c.a)(i).pipe(Object(l.a)(N))}}}]),t}();function P(t){return null!=t}function x(t){var e=Object(r.sb)(t)?Object(u.a)(t):t;return Object(r.rb)(e),e}function N(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function L(t,e){return e.map((function(e){return e(t)}))}function F(t){return t.map((function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}}))}var z={provide:h,useExisting:Object(r.U)((function(){return H})),multi:!0},H=function(){var t=function(){function t(e,i){g(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return m(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.Zb("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.zb([z])]}),t}(),B={provide:h,useExisting:Object(r.U)((function(){return G})),multi:!0},j=function(){var t=function(){function t(){g(this,t),this._accessors=[]}return m(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(i){e._isSameGroup(i,t)&&i[1]!==t&&i[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t}(),G=function(){var t=function(){function t(e,i,n,r){g(this,t),this._renderer=e,this._elementRef=i,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return m(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(S),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.l),r.Mb(j),r.Mb(r.s))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r.Zb("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.zb([B])]}),t}(),U={provide:h,useExisting:Object(r.U)((function(){return K})),multi:!0},K=function(){var t=function(){function t(e,i){g(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return m(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r.Zb("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.zb([U])]}),t}(),V={provide:h,useExisting:Object(r.U)((function(){return J})),multi:!0};function q(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var J=function(){var t=function(){function t(e,i){g(this,t),this._renderer=e,this._elementRef=i,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return m(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var i=q(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){e.value=e._getOptionValue(i),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,i=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){var n=[];if(void 0!==i.selectedOptions)for(var r=i.selectedOptions,a=0;a-1&&t.splice(i,1)}function lt(t,e,i,n){Object(r.W)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function ht(t){return(gt(t)?t.validators:t)||null}function dt(t){return Array.isArray(t)?nt(t):t||null}function ft(t,e){return(gt(e)?e.asyncValidators:t)||null}function pt(t){return Array.isArray(t)?rt(t):t||null}function gt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var bt=function(){function t(e,i){g(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=i,this._composedValidatorFn=dt(this._rawValidators),this._composedAsyncValidatorFn=pt(this._rawAsyncValidators)}return m(t,[{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=dt(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=pt(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var i=x(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe((function(i){e._hasOwnPendingAsyncValidator=!1,e.setErrors(i,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var n=t;return e.forEach((function(t){n=n instanceof vt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof yt&&n.at(t)||null})),n}(this,t)}},{key:"getError",value:function(t,e){var i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new r.o,this.statusChanges=new r.o}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){gt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),mt=function(t){a(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return g(this,i),(t=e.call(this,ht(r),ft(a,r)))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(r),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return m(i,[{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==i.emitViewToModelChange)})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),i}(bt),vt=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,ht(n),ft(r,n))).controls=t,a._initObservables(),a._setUpdateStrategy(n),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return m(i,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(n){e._throwIfControlMissing(n),e.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){e.controls[n]&&e.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,i){return t[i]=e instanceof mt?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(i){return t(e.controls[i],i)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,i=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))}))}}]),i}(bt),yt=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,ht(n),ft(r,n))).controls=t,a._initObservables(),a._setUpdateStrategy(n),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return m(i,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,n){e._throwIfControlMissing(n),e.at(n).setValue(t,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,n){e.at(n)&&e.at(n).patchValue(t,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof mt?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,i){t(e,i)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=d(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(i){e.e(i)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),i}(bt),At={provide:w,useExisting:Object(r.U)((function(){return _t}))},wt=Promise.resolve(null),_t=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n){var a;return g(this,i),(a=e.call(this)).submitted=!1,a._directives=[],a.ngSubmit=new r.o,a.form=new vt({},nt(t),rt(n)),a}return m(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;wt.then((function(){var i=e._findContainer(t.path);t.control=i.registerControl(t.name,t.control),tt(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;wt.then((function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name),ut(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;wt.then((function(){var i=e._findContainer(t.path),n=new vt({});it(n,t),i.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;wt.then((function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var i=this;wt.then((function(){i.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,st(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(r.Mb(I,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r.Zb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.zb([At]),r.xb]}),t}(),St=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return $(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return nt(this._validators)}},{key:"asyncValidator",get:function(){return rt(this._asyncValidators)}}]),i}(w);return t.\u0275fac=function(e){return kt(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.xb]}),t}(),kt=r.Ub(St),Et={provide:w,useExisting:Object(r.U)((function(){return Rt}))},Rt=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this))._parent=t,a._validators=n,a._asyncValidators=r,a}return m(i,[{key:"_checkParentType",value:function(){}}]),i}(St);return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,5),r.Mb(I,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.zb([Et]),r.xb]}),t}(),Ct={provide:S,useExisting:Object(r.U)((function(){return It}))},Tt=Promise.resolve(null),It=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,a,o){var s;return g(this,i),(s=e.call(this)).control=new mt,s._registered=!1,s.update=new r.o,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=a||[],s.valueAccessor=ct(0,o),s}return m(i,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),at(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){tt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;Tt.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,i=t.isDisabled.currentValue,n=""===i||i&&"false"!==i;Tt.then((function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?$(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return nt(this._rawValidators)}},{key:"asyncValidator",get:function(){return rt(this._rawAsyncValidators)}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,9),r.Mb(I,10),r.Mb(O,10),r.Mb(h,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.zb([Ct]),r.xb,r.yb]}),t}(),Ot=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),Dt=new r.r("NgModelWithFormControlWarning"),Mt={provide:S,useExisting:Object(r.U)((function(){return Pt}))},Pt=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,a,o){var s;return g(this,i),(s=e.call(this))._ngModelWarningConfig=o,s.update=new r.o,s._ngModelWarningSent=!1,s._rawValidators=t||[],s._rawAsyncValidators=n||[],s.valueAccessor=ct(0,a),s}return m(i,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(tt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),at(t,this.viewModel)&&(lt(0,i,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return nt(this._rawValidators)}},{key:"asyncValidator",get:function(){return rt(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(r.Mb(I,10),r.Mb(O,10),r.Mb(h,10),r.Mb(Dt,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r.zb([Mt]),r.xb,r.yb]}),t._ngModelWarningSentOnce=!1,t}(),xt={provide:w,useExisting:Object(r.U)((function(){return Nt}))},Nt=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n){var a;return g(this,i),(a=e.call(this))._validators=t,a._asyncValidators=n,a.submitted=!1,a.directives=[],a.form=null,a.ngSubmit=new r.o,a}return m(i,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return tt(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){ut(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);it(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);it(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,st(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var i=t.form.get(e.path);e.control!==i&&(function(t,e){var i=function(){};e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),i&&tt(i,e),e.control=i)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=nt(this._validators);this.form.validator=M.compose([this.form.validator,t]);var e=rt(this._asyncValidators);this.form.asyncValidator=M.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(r.Mb(I,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.Zb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.zb([xt]),r.xb,r.yb]}),t}(),Lt={provide:w,useExisting:Object(r.U)((function(){return Ft}))},Ft=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this))._parent=t,a._validators=n,a._asyncValidators=r,a}return m(i,[{key:"_checkParentType",value:function(){Bt(this._parent)}}]),i}(St);return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,13),r.Mb(I,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r.zb([Lt]),r.xb]}),t}(),zt={provide:w,useExisting:Object(r.U)((function(){return Ht}))},Ht=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this))._parent=t,a._validators=n,a._asyncValidators=r,a}return m(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){Bt(this._parent)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return $(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return nt(this._validators)}},{key:"asyncValidator",get:function(){return rt(this._asyncValidators)}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,13),r.Mb(I,10),r.Mb(O,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r.zb([zt]),r.xb]}),t}();function Bt(t){return!(t instanceof Ft||t instanceof Nt||t instanceof Ht)}var jt={provide:S,useExisting:Object(r.U)((function(){return Gt}))},Gt=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,a,o,s){var c;return g(this,i),(c=e.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new r.o,c._ngModelWarningSent=!1,c._parent=t,c._rawValidators=n||[],c._rawAsyncValidators=a||[],c.valueAccessor=ct(0,o),c}return m(i,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),at(t,this.viewModel)&&(lt(0,i,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){}},{key:"path",get:function(){return $(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return nt(this._rawValidators)}},{key:"asyncValidator",get:function(){return rt(this._rawAsyncValidators)}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,13),r.Mb(I,10),r.Mb(O,10),r.Mb(h,10),r.Mb(Dt,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.zb([jt]),r.xb,r.yb]}),t._ngModelWarningSentOnce=!1,t}(),Ut={provide:I,useExisting:Object(r.U)((function(){return Vt})),multi:!0},Kt={provide:I,useExisting:Object(r.U)((function(){return qt})),multi:!0},Vt=function(){var t=function(){function t(){g(this,t),this._required=!1}return m(t,[{key:"validate",value:function(t){return this.required?M.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&r.Bb("required",e.required?"":null)},inputs:{required:"required"},features:[r.zb([Ut])]}),t}(),qt=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"validate",value:function(t){return this.required?M.requiredTrue(t):null}}]),i}(Vt);return t.\u0275fac=function(e){return Jt(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Bb("required",e.required?"":null)},features:[r.zb([Kt]),r.xb]}),t}(),Jt=r.Ub(qt),Wt={provide:I,useExisting:Object(r.U)((function(){return Zt})),multi:!0},Zt=function(){var t=function(){function t(){g(this,t),this._enabled=!1}return m(t,[{key:"validate",value:function(t){return this._enabled?M.email(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"email",set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r.zb([Wt])]}),t}(),Yt={provide:I,useExisting:Object(r.U)((function(){return Xt})),multi:!0},Xt=function(){var t=function(){function t(){g(this,t),this._validator=M.nullValidator}return m(t,[{key:"ngOnChanges",value:function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null==this.minlength?null:this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=M.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Bb("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[r.zb([Yt]),r.yb]}),t}(),Qt={provide:I,useExisting:Object(r.U)((function(){return $t})),multi:!0},$t=function(){var t=function(){function t(){g(this,t),this._validator=M.nullValidator}return m(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=M.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Bb("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r.zb([Qt]),r.yb]}),t}(),te={provide:I,useExisting:Object(r.U)((function(){return ee})),multi:!0},ee=function(){var t=function(){function t(){g(this,t),this._validator=M.nullValidator}return m(t,[{key:"ngOnChanges",value:function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=M.pattern(this.pattern)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Bb("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[r.zb([te]),r.yb]}),t}(),ie=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t}(),ne=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(t),n=null,r=null,a=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new vt(i,{asyncValidators:r,updateOn:a,validators:n})}},{key:"control",value:function(t,e,i){return new mt(t,e,i)}},{key:"array",value:function(t,e,i){var n=this,r=t.map((function(t){return n._createControl(t)}));return new yt(r,e,i)}},{key:"_reduceControls",value:function(t){var e=this,i={};return Object.keys(t).forEach((function(n){i[n]=e._createControl(t[n])})),i}},{key:"_createControl",value:function(t){return t instanceof mt||t instanceof vt||t instanceof yt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t}(),re=function(){var t=function t(){g(this,t)};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[j],imports:[ie]}),t}(),ae=function(){var t=function(){function t(){g(this,t)}return m(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:Dt,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[ne,j],imports:[ie]}),t}()},nKqi:function(t,e,i){"use strict";i.d(e,"a",(function(){return M})),i.d(e,"b",(function(){return P})),i.d(e,"c",(function(){return x})),i.d(e,"d",(function(){return L})),i.d(e,"e",(function(){return U})),i.d(e,"f",(function(){return j})),i.d(e,"g",(function(){return N})),i.d(e,"h",(function(){return O})),i.d(e,"i",(function(){return G}));var n=i("2kYt"),r=i("EM62"),o=i("mFH5"),c=i("5XID"),u=i("ZTXN"),l=i("kuMc"),h=i("jIqt"),f=i("sg/T"),p=i("cqs0"),b=i("fAiE"),v=i("nIj0"),y=i("zmEM"),A=["*"],w='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',_=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],S=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],k=["text"];function E(t,e){if(1&t&&r.Nb(0,"mat-pseudo-checkbox",5),2&t){var i=r.dc();r.kc("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var R=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],C=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],T=Object(o.A)(Object(o.z)((function t(){g(this,t)}))),I=Object(o.z)((function t(){g(this,t)})),O=function(){var t=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments))._stateChanges=new u.a,t}return m(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(T);return t.\u0275fac=function(e){return D(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[r.xb,r.yb],ngContentSelectors:A,decls:1,vars:0,template:function(t,e){1&t&&(r.jc(),r.ic(0))},styles:[w],encapsulation:2,changeDetection:0}),t}(),D=r.Ub(O),M=function(){var t=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this))._elementRef=t,n._stateChanges=new u.a,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return m(i,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(T);return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r.xb,r.yb],ngContentSelectors:A,decls:1,vars:0,template:function(t,e){1&t&&(r.jc(),r.ic(0))},styles:[w],encapsulation:2,changeDetection:0}),t}(),P=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t}(),x=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t}(),N=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t}(),L=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;g(this,i),(o=e.call(this))._element=t,o._isInteractiveList=!1,o._destroyed=new u.a,o._disabled=!1,o._isInteractiveList=!!(r||a&&"action-list"===a._getListType()),o._list=r||a;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Object(l.a)(o._destroyed)).subscribe((function(){n.markForCheck()})),o}return m(i,[{key:"ngAfterContentInit",value:function(){Object(o.E)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=Object(c.c)(t)}}]),i}(I);return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(r.h),r.Mb(O,8),r.Mb(M,8))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(r.Fb(i,P,!0),r.Fb(i,x,!0),r.Fb(i,o.j,!0)),2&t&&(r.sc(n=r.ac())&&(e._avatar=n.first),r.sc(n=r.ac())&&(e._icon=n.first),r.sc(n=r.ac())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.Eb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.xb],ngContentSelectors:S,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(r.jc(_),r.Sb(0,"div",0),r.Nb(1,"div",1),r.ic(2),r.Sb(3,"div",2),r.ic(4,1),r.Rb(),r.ic(5,2),r.Rb()),2&t&&(r.Ab(1),r.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.s],encapsulation:2,changeDetection:0}),t}(),F=Object(o.z)((function t(){g(this,t)})),z=Object(o.z)((function t(){g(this,t)})),H={provide:v.p,useExisting:Object(r.U)((function(){return G})),multi:!0},B=function t(e,i){g(this,t),this.source=e,this.option=i},j=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this))._element=t,a._changeDetector=n,a.selectionList=r,a._selected=!1,a._disabled=!1,a._hasFocus=!1,a.checkboxPosition="after",a._inputsInitialized=!1,a}return m(i,[{key:"ngOnInit",value:function(){var t=this,e=this.selectionList;e._value&&e._value.some((function(i){return e.compareWith(i,t._value)}))&&this._setSelected(!0);var i=this._selected;Promise.resolve().then((function(){(t._selected||i)&&(t.selected=!0,t._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){Object(o.E)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var t=this;this.selected&&Promise.resolve().then((function(){t.selected=!1}));var e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(t){this._color=t}},{key:"value",get:function(){return this._value},set:function(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(t){var e=Object(c.c)(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=Object(c.c)(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}}]),i}(z);return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(r.h),r.Mb(Object(r.U)((function(){return G}))))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(r.Fb(i,P,!0),r.Fb(i,x,!0),r.Fb(i,o.j,!0)),2&t&&(r.sc(n=r.ac())&&(e._avatar=n.first),r.sc(n=r.ac())&&(e._icon=n.first),r.sc(n=r.ac())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&r.Qc(k,!0),2&t&&r.sc(i=r.ac())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&r.Zb("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(r.Bb("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),r.Eb("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[r.xb],ngContentSelectors:C,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(r.jc(R),r.Sb(0,"div",0),r.Nb(1,"div",1),r.Hc(2,E,1,2,"mat-pseudo-checkbox",2),r.Sb(3,"div",3,4),r.ic(5),r.Rb(),r.ic(6,1),r.Rb()),2&t&&(r.Eb("mat-list-item-content-reverse","after"==e.checkboxPosition),r.Ab(1),r.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),r.Ab(1),r.kc("ngIf",e.selectionList.multiple))},directives:[o.s,n.t,o.q],encapsulation:2,changeDetection:0}),t}(),G=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,a){var o;return g(this,i),(o=e.call(this))._element=t,o._changeDetector=a,o._multiple=!0,o._contentInitialized=!1,o.selectionChange=new r.o,o.tabIndex=0,o.color="accent",o.compareWith=function(t,e){return t===e},o._disabled=!1,o.selectedOptions=new p.c(o._multiple),o._tabIndex=-1,o._onChange=function(t){},o._destroyed=new u.a,o._onTouched=function(){},o}return m(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._contentInitialized=!0,this._keyManager=new f.g(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Object(l.a)(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(Object(h.a)(null),Object(l.a)(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(Object(l.a)(this._destroyed)).subscribe((function(t){if(t.added){var e,i=d(t.added);try{for(i.s();!(e=i.n()).done;){e.value.selected=!0}}catch(a){i.e(a)}finally{i.f()}}if(t.removed){var n,r=d(t.removed);try{for(r.s();!(n=r.n()).done;){n.value.selected=!1}}catch(a){r.e(a)}finally{r.f()}}}))}},{key:"ngOnChanges",value:function(t){var e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(t){this._element.nativeElement.focus(t)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"_removeOptionFromList",value:function(t){var e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(t){var e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,r=Object(b.t)(t);switch(e){case b.o:case b.g:r||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case b.i:case b.f:r||(e===b.i?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:if(e===b.a&&this.multiple&&Object(b.t)(t,"ctrlKey")&&!i.isTyping()){var a=this.options.some((function(t){return!t.disabled&&!t.selected}));this._setAllOptionsSelected(a,!0),t.preventDefault()}else i.onKeydown(t)}this.multiple&&(e===b.q||e===b.e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}},{key:"_emitChangeEvent",value:function(t){this.selectionChange.emit(new B(this,t))}},{key:"_onFocus",value:function(){var t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"_setOptionsFromValues",value:function(t){var e=this;this.options.forEach((function(t){return t._setSelected(!1)})),t.forEach((function(t){var i=e.options.find((function(i){return!i.selected&&e.compareWith(i.value,t)}));i&&i._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(t){return t.selected})).map((function(t){return t.value}))}},{key:"_toggleFocusedOption",value:function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}},{key:"_setAllOptionsSelected",value:function(t,e){var i=!1;this.options.forEach((function(n){e&&n.disabled||!n._setSelected(t)||(i=!0)})),i&&this._reportValueChange()}},{key:"_isValidIndex",value:function(t){return t>=0&&t-1?1:1e3;return parseFloat(t)*e}function T(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}function I(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function O(t,e,i){var n=t.top,r=t.bottom,a=t.left,o=t.right;return i>=n&&i<=r&&e>=a&&e<=o}function D(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function M(t,e,i,n){var r=t.top,a=t.right,o=t.bottom,s=t.left,c=t.width*e,u=t.height*e;return n>r-u&&ns-c&&i=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(t)))return void s._endDragSequence(t);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(t)})))}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e),this._parentPositions=new P(n,a),o.registerDragItem(this)}return m(t,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){return this._handles=t.map((function(t){return Object(u.e)(t)})),this._handles.forEach((function(t){return R(t,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=this,i=Object(u.e)(t);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular((function(){i.addEventListener("mousedown",e._pointerDown,N),i.addEventListener("touchstart",e._pointerDown,x)})),this._initialTransform=void 0,this._rootElement=i),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?Object(u.e)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return e._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&B(this._rootElement),B(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}},{key:"enableHandle",value:function(t){this._disabledHandles.delete(t)}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t))}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&B(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&B(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(t){this.started.next({source:this}),j(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var e,i=this._dropContainer;if(i){var n=this._rootElement,r=n.parentNode,a=this._preview=this._createPreviewElement(),o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");r.insertBefore(s,n),n.style.display="none",this._document.body.appendChild(r.replaceChild(o,n)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(a),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,e){var i=this;e.stopPropagation();var n=this.isDragging(),r=j(e),a=!r&&0!==e.button,o=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(n||a||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe((function(t){i._updateOnScroll(t)})),this._boundaryElement&&(this._boundaryRect=I(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var u=this._pickupPositionOnPage=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)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var i=e._dropContainer,n=i.getItemIndex(e),r=e._getPointerPositionOnPage(t),a=e._getDragDistance(e._getPointerPositionOnPage(t)),o=i._isOverContainer(r.x,r.y);e.ended.next({source:e,distance:a}),e.dropped.next({item:e,currentIndex:n,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:o,distance:a}),i.drop(e,n,e._initialContainer,o,a,e._initialIndex),e._dropContainer=e._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(t){var e=this,i=t.x,n=t.y,r=this._initialContainer._getSiblingContainerFromPosition(this,i,n);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,n)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run((function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=r,e._dropContainer.enter(e,i,n,r===e._initialContainer&&r.sortingDisabled?e._initialIndex:void 0),e.entered.next({item:e,container:r,currentIndex:r.getItemIndex(e)})})),this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,i,n,this._pointerDirectionDelta),this._preview.style.transform=F(i-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,i=this.previewClass,n=e?e.template:null;if(n&&e){var r=e.matchSize?this._rootElement.getBoundingClientRect():null,a=e.viewContainer.createEmbeddedView(n,e.context);a.detectChanges(),t=G(a,this._document),this._previewRef=a,e.matchSize?U(t,r):t.style.transform=F(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var o=this._rootElement;U(t=z(o),o.getBoundingClientRect())}return E(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),R(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach((function(e){return t.classList.add(e)})):t.classList.add(i)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=F(e.left,e.top);var i=function(t){var e=getComputedStyle(t),i=T(e,"transition-property"),n=i.find((function(t){return"transform"===t||"all"===t}));if(!n)return 0;var r=i.indexOf(n),a=T(e,"transition-duration"),o=T(e,"transition-delay");return C(a[r])+C(o[r])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(e){var n=function i(n){(!n||n.target===t._preview&&"transform"===n.propertyName)&&(t._preview.removeEventListener("transitionend",i),e(),clearTimeout(r))},r=setTimeout(n,1.5*i);t._preview.addEventListener("transitionend",n)}))}))}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),t=G(this._placeholderRef,this._document)):t=z(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,r=n?n.getBoundingClientRect():i,a=j(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:r.left-i.left+(a.pageX-r.left-o.left),y:r.top-i.top+(a.pageY-r.top-o.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=j(t)?t.touches[0]||t.changedTouches[0]:t,i=this._getViewportScrollPosition();return{x:e.pageX-i.left,y:e.pageY-i.top}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this.constrainPosition?this.constrainPosition(t,this):t,i=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===i?e.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==i||(e.x=this._pickupPositionOnPage.x),this._boundaryRect){var n=this._pickupPositionInElement,r=n.x,a=n.y,o=this._boundaryRect,s=this._previewRect,c=o.top+a,u=o.bottom-(s.height-a);e.x=H(e.x,o.left+r,o.right-(s.width-r)),e.y=H(e.y,c,u)}return e}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,i=t.y,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),o=Math.abs(i-r.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>r.x?1:-1,r.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,R(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,N),t.removeEventListener("touchstart",this._pointerDown,x)}},{key:"_applyRootElementTransform",value:function(t,e){var i=F(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===r.width&&0===r.height)){var a=n.left-r.left,o=r.right-n.right,s=n.top-r.top,c=r.bottom-n.bottom;n.width>r.width?(a>0&&(e+=a),o>0&&(e-=o)):e=0,n.height>r.height?(s>0&&(i+=s),c>0&&(i-=c)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:j(t)?e.touch:e?e.mouse:0}},{key:"_updateOnScroll",value:function(t){var e=this._parentPositions.handleScroll(t);this._boundaryRect&&e&&D(this._boundaryRect,e.top,e.left)}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=Object(u.c)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}}]),t}();function F(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function z(t){var e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(var r=0;r-1&&a.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(s,l),a.splice(r,0,t)}else{var h=Object(u.e)(this.element);this._shouldEnterAsFirstChild(e,i)?(h.insertBefore(s,a[0].getRootElement()),a.unshift(t)):(h.appendChild(s),a.push(t))}s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,i,n,r,a){this._reset(),null==a&&(a=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:a,container:this,previousContainer:i,isPointerOverContainer:n,distance:r})}},{key:"withItems",value:function(t){var e=this,i=this._draggables;return this._draggables=t,t.forEach((function(t){return t._withDropContainer(e)})),this.isDragging()&&(i.filter((function(t){return t.isDragging()})).every((function(e){return-1===t.indexOf(e)}))?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=Object(u.e)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(i(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?J("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(e){return e.drag===t})):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,i,n){if(!this.sortingDisabled&&M(this._clientRect,.05,e,i)){var r=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,n);if(!(-1===a&&r.length>0)){var o="horizontal"===this._orientation,s=J(r,(function(e){return e.drag===t})),c=r[a],u=r[s].clientRect,l=c.clientRect,h=s>a?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y;var d=this._getItemOffsetPx(u,l,h),f=this._getSiblingOffsetPx(s,r,h),p=r.slice();K(r,s,a),this.sorted.next({previousIndex:s,currentIndex:a,container:this,item:t}),r.forEach((function(e,i){if(p[i]!==e){var n=e.drag===t,r=n?d:f,a=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=r,o?(a.style.transform="translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),D(e.clientRect,0,r)):(a.style.transform="translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),D(e.clientRect,r,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var i=this;if(!this.autoScrollDisabled){var n,a=0,o=0;if(this._parentPositions.positions.forEach((function(s,c){var u;c!==i._document&&s.clientRect&&!n&&M(s.clientRect,.05,t,e)&&(u=r(function(t,e,i,n){var r=Y(e,n),a=X(e,i),o=0,s=0;if(r){var c=t.scrollTop;1===r?c>0&&(o=1):t.scrollHeight-c>t.clientHeight&&(o=2)}if(a){var u=t.scrollLeft;1===a?u>0&&(s=1):t.scrollWidth-u>t.clientWidth&&(s=2)}return[o,s]}(c,s.clientRect,t,e),2),a=u[0],o=u[1],(a||o)&&(n=c))})),!a&&!o){var s=this._viewportRuler.getViewportSize(),c=s.width,u=s.height,l={width:c,height:u,top:0,right:c,bottom:u,left:0};a=Y(l,e),o=X(l,t),n=window}!n||a===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=o,this._scrollNode=n,(a||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var t=Object(u.e)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(t){var e=t.getVisibleElement();return{drag:t,offset:0,clientRect:I(e)}})).sort((function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top}))}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=Object(u.e)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(t){var e=t.getRootElement();e&&(e.style.transform="")})),this._siblings.forEach((function(e){return e._stopReceiving(t)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=e[t].clientRect,a=e[t+-1*i],o=r[n?"width":"height"]*i;if(a){var s=n?"left":"top",c=n?"right":"bottom";-1===i?o-=a.clientRect[s]-r[c]:o+=r[s]-a.clientRect[c]}return o}},{key:"_getItemOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=n?e.left-t.left:e.top-t.top;return-1===i&&(r+=n?e.width-t.width:e.height-t.height),r}},{key:"_shouldEnterAsFirstChild",value:function(t,e){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var r=i[i.length-1].clientRect;return n?t>=r.right:e>=r.bottom}var a=i[0].clientRect;return n?t<=a.left:e<=a.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,i,n){var r=this,a="horizontal"===this._orientation;return J(this._itemPositions,(function(o,s,c){var u=o.drag,l=o.clientRect;if(u===t)return c.length<2;if(n){var h=a?n.x:n.y;if(u===r._previousSwap.drag&&h===r._previousSwap.delta)return!1}return a?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function X(t,e){var i=t.left,n=t.right,r=.05*t.width;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}var Q=Object(c.f)({passive:!1,capture:!0}),$=function(){var t=function(){function t(e,i){var n=this;g(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new l.a,this.pointerUp=new l.a,this.scroll=new l.a,this._preventDefaultWhileDragging=function(t){n._activeDragInstances.size&&t.preventDefault()},this._document=i}return m(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,Q)}))}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,Q)}},{key:"startDragging",value:function(t,e){var i=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var n=e.type.startsWith("touch"),r=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:function(t){return i.pointerMove.next(t)},options:Q}).set(r,{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Q}),this._ngZone.runOutsideAngular((function(){i._globalListeners.forEach((function(t,e){i._document.addEventListener(e,t.handler,t.options)}))}))}}},{key:"stopDragging",value:function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(t){return this._activeDragInstances.has(t)}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach((function(e){return t.removeDragItem(e)})),this._dropInstances.forEach((function(e){return t.removeDropContainer(e)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach((function(e,i){t._document.removeEventListener(i,e.handler,e.options)})),this._globalListeners.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Wb(a.A),a.Wb(o.e))},t.\u0275prov=Object(a.Ib)({factory:function(){return new t(Object(a.Wb)(a.A),Object(a.Wb)(o.e))},token:t,providedIn:"root"}),t}(),tt={dragStartThreshold:5,pointerDirectionChangeThreshold:5},et=function(){var t=function(){function t(e,i,n,r){g(this,t),this._document=e,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=r}return m(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return new L(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new q(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Wb(o.e),a.Wb(a.A),a.Wb(s.h),a.Wb($))},t.\u0275prov=Object(a.Ib)({factory:function(){return new t(Object(a.Wb)(o.e),Object(a.Wb)(a.A),Object(a.Wb)(s.h),Object(a.Wb)($))},token:t,providedIn:"root"}),t}(),it=new a.r("CDK_DRAG_PARENT"),nt=function(){var t=function(){function t(e,i){g(this,t),this.element=e,this._stateChanges=new l.a,this._disabled=!1,this._parentDrag=i,R(e.nativeElement,!1)}return m(t,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(u.c)(t),this._stateChanges.next(this)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(it,8))},t.\u0275dir=a.Hb({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t}(),rt=function(){var t=function t(e){g(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.M))},t.\u0275dir=a.Hb({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),t}(),at=function(){var t=function(){function t(e){g(this,t),this.templateRef=e,this._matchSize=!1}return m(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(t){this._matchSize=Object(u.c)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.M))},t.\u0275dir=a.Hb({type:t,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),t}(),ot=new a.r("CDK_DRAG_CONFIG"),st=new a.r("CDK_DROP_LIST"),ct=function(){var t=function(){function t(e,i,n,r,o,s,c,u,h){var d=this;g(this,t),this.element=e,this.dropContainer=i,this._document=n,this._ngZone=r,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=h,this._destroyed=new l.a,this.started=new a.o,this.released=new a.o,this.ended=new a.o,this.entered=new a.o,this.exited=new a.o,this.dropped=new a.o,this.moved=new p.a((function(t){var e=d._dragRef.moved.pipe(Object(y.a)((function(t){return{source:d,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}}))).subscribe(t);return function(){e.unsubscribe()}})),this._dragRef=u.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return m(t,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(Object(A.a)(1),Object(v.a)(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(Object(w.a)(t._handles),Object(_.a)((function(e){var i=e.filter((function(e){return e._parentDrag===t})).map((function(t){return t.element}));t._dragRef.withHandles(i)})),Object(S.a)((function(t){return Object(b.a).apply(void 0,i(t.map((function(t){return t._stateChanges.pipe(Object(w.a)(t))}))))})),Object(v.a)(t._destroyed)).subscribe((function(e){var i=t._dragRef,n=e.element.nativeElement;e.disabled?i.disableHandle(n):i.enableHandle(n)})),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)}))}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?ut(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error('cdkDrag must be attached to an element node. Currently attached to "'.concat(e.nodeName,'".'));this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return ut(this.element.nativeElement,t);var e=Object(u.e)(t);if(Object(a.W)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}},{key:"_syncInputs",value:function(t){var e=this;t.beforeStarted.subscribe((function(){if(!t.isDragging()){var i=e._dir,n=e.dragStartDelay,r=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,a=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,matchSize:e._previewTemplate.matchSize,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:Object(u.f)(n),t.constrainPosition=e.constrainPosition,t.previewClass=e.previewClass,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a),i&&t.withDirection(i.value)}}))}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe((function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()})),t.released.subscribe((function(){e.released.emit({source:e})})),t.ended.subscribe((function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:t.container.data,item:e})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.dragStartDelay,n=t.constrainPosition,r=t.previewClass,a=t.boundaryElement,o=t.draggingDisabled,s=t.rootElementSelector;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),r&&(this.previewClass=r),a&&(this.boundaryElement=a),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=Object(u.c)(t),this._dragRef.disabled=this._disabled}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(st,12),a.Mb(o.e),a.Mb(a.A),a.Mb(a.Q),a.Mb(ot,8),a.Mb(k.c,8),a.Mb(et),a.Mb(a.h))},t.\u0275dir=a.Hb({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(a.Fb(i,at,!0),a.Fb(i,rt,!0),a.Fb(i,nt,!0)),2&t&&(a.sc(n=a.ac())&&(e._previewTemplate=n.first),a.sc(n=a.ac())&&(e._placeholderTemplate=n.first),a.sc(n=a.ac())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&a.Eb("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a.zb([{provide:it,useExisting:t}]),a.yb]}),t}();function ut(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}var lt=function(){var t=function(){function t(){g(this,t),this._items=new Set,this._disabled=!1}return m(t,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(u.c)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),t}(),ht=0,dt=function(){var t=function(){function t(e,i,n,r,o,s,c){var u=this;g(this,t),this.element=e,this._changeDetectorRef=n,this._dir=r,this._group=o,this._scrollDispatcher=s,this._destroyed=new l.a,this.connectedTo=[],this.id="cdk-drop-list-"+ht++,this.enterPredicate=function(){return!0},this.dropped=new a.o,this.entered=new a.o,this.exited=new a.o,this.sorted=new a.o,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=function(t,e){return u.enterPredicate(t.data,e.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}return m(t,[{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}},{key:"enter",value:function(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}},{key:"exit",value:function(t){this._dropListRef.exit(t._dragRef)}},{key:"getItemIndex",value:function(t){return this._dropListRef.getItemIndex(t._dragRef)}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe(Object(w.a)(this._dir.value),Object(v.a)(this._destroyed)).subscribe((function(t){return e.withDirection(t)})),e.beforeStarted.subscribe((function(){var n=Object(u.b)(i.connectedTo).map((function(e){return"string"==typeof e?t._dropLists.find((function(t){return t.id===e})):e}));if(i._group&&i._group._items.forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),!i._scrollableParentsResolved&&i._scrollDispatcher){var r=i._scrollDispatcher.getAncestorScrollContainers(i.element).map((function(t){return t.getElementRef().nativeElement}));i._dropListRef.withScrollableParents(r),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=Object(u.c)(i.sortingDisabled),e.autoScrollDisabled=Object(u.c)(i.autoScrollDisabled),e.connectedTo(n.filter((function(t){return t&&t!==i})).map((function(t){return t._dropListRef}))).withOrientation(i.orientation)}))}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe((function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()})),t.sorted.subscribe((function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})})),t.dropped.subscribe((function(t){e.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}),e._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.draggingDisabled,n=t.sortingDisabled,r=t.listAutoScrollDisabled,a=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=r&&r,this.orientation=a||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(t){return t._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=Object(u.c)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(et),a.Mb(a.h),a.Mb(k.c,8),a.Mb(lt,12),a.Mb(s.f),a.Mb(ot,8))},t.\u0275dir=a.Hb({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Vb("id",e.id),a.Eb("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a.zb([{provide:lt,useValue:void 0},{provide:st,useExisting:t}])]}),t._dropLists=[],t}(),ft=function(){var t=function t(){g(this,t)};return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},providers:[et],imports:[s.c]}),t}()},"ozd/":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("nIj0"),s=i("EM62"),c=i("s2Ay"),u=i("29Wa"),l=i("Cd2c"),h=i("2kYt"),d=i("PBFl");function f(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function p(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function b(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function v(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function y(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.userService=n,this.notificator=r,this.translateService=a,this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.titleBefore=new o.g(this.data.user.titleBefore,[o.F.pattern(".*[\\S]+.*"),o.F.maxLength(129)]),this.titleAfter=new o.g(this.data.user.titleAfter,[o.F.pattern(".*[\\S]+.*"),o.F.maxLength(129)]),this.firstName=new o.g(this.data.user.firstName,[o.F.required,o.F.pattern(".*[\\S]+.*"),o.F.maxLength(129)]),this.middleName=new o.g(this.data.user.middleName,[o.F.pattern(".*[\\S]+.*"),o.F.maxLength(129)]),this.lastName=new o.g(this.data.user.lastName,[o.F.required,o.F.pattern(".*[\\S]+.*"),o.F.maxLength(129)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSave",value:function(){var t=this;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((function(){t.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(n.p),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({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","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",1),s.Sb(5,"mat-form-field"),s.Nb(6,"input",2),s.ec(7,"translate"),s.Hc(8,f,3,3,"mat-error",3),s.Rb(),s.Sb(9,"mat-form-field"),s.Nb(10,"input",2),s.ec(11,"translate"),s.Hc(12,p,3,3,"mat-error",3),s.Rb(),s.Sb(13,"mat-form-field"),s.Nb(14,"input",4),s.ec(15,"translate"),s.Hc(16,b,3,3,"mat-error",3),s.Rb(),s.Sb(17,"mat-form-field"),s.Nb(18,"input",2),s.ec(19,"translate"),s.Hc(20,v,3,3,"mat-error",3),s.Rb(),s.Sb(21,"mat-form-field"),s.Nb(22,"input",4),s.ec(23,"translate"),s.Hc(24,y,3,3,"mat-error",3),s.Rb(),s.Rb(),s.Sb(25,"div",5),s.Sb(26,"button",6),s.Zb("click",(function(){return e.onCancel()})),s.Jc(27),s.ec(28,"translate"),s.Rb(),s.Sb(29,"button",7),s.Zb("click",(function(){return e.onSave()})),s.Jc(30),s.ec(31,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),s.Ab(4),s.lc("placeholder",s.fc(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),s.kc("formControl",e.titleBefore),s.Ab(2),s.kc("ngIf",e.titleBefore.invalid),s.Ab(2),s.lc("placeholder",s.fc(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),s.kc("formControl",e.titleAfter),s.Ab(2),s.kc("ngIf",e.titleAfter.invalid),s.Ab(2),s.lc("placeholder",s.fc(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),s.kc("formControl",e.firstName),s.Ab(2),s.kc("ngIf",e.firstName.invalid),s.Ab(2),s.lc("placeholder",s.fc(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),s.kc("formControl",e.middleName),s.Ab(2),s.kc("ngIf",e.middleName.invalid),s.Ab(2),s.lc("placeholder",s.fc(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),s.kc("formControl",e.lastName),s.Ab(2),s.kc("ngIf",e.lastName.invalid),s.Ab(3),s.Lc(" ",s.fc(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading||e.firstName.invalid||e.lastName.invalid||e.titleBefore.invalid||e.titleAfter.invalid||e.middleName.invalid),s.Ab(1),s.Lc(" ",s.fc(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[r.g,u.c,l.b,o.c,o.r,o.h,h.t,o.C,r.c,d.b,u.b],pipes:[c.d],styles:[""]}),t}()},"p/8k":function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("FlRo"),a=i("Ssnw"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&s.Nb(0,"th",15)}function p(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name,"")}}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){1&t&&s.Nb(0,"tr",18)}function y(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,1,0,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Hc(11,b,1,0,"tr",13),s.Hc(12,v,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.authzService=a,this.displayedColumns=["name"]}return m(t,[{key:"ngOnInit",value:function(){this.dataSource=new r.o(this.data.groups),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map((function(t){return t.id})),complementaryObject:this.data.complementaryObject}).subscribe((function(){t.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(c.e),s.Mb(o.d))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t}()},p3Ob:function(t,e,i){"use strict";i.d(e,"a",(function(){return P}));var n=i("OZ4H"),r=i("Ssnw"),a=i("cqs0"),o=i("X2Q7"),s=i("nyAh"),c=i("8clQ"),u=i("iyZ4"),l=i("ZWQq"),h=i("nIj0"),d=i("EM62"),f=i("s2Ay"),p=i("sEIs"),b=i("2kYt"),v=i("29Wa"),y=i("Cd2c"),A=i("PBFl"),w=i("csyo"),_=i("FcRk"),S=i("Y2X+"),k=["list"];function E(t,e){1&t&&d.Nb(0,"mat-spinner",10)}function R(t,e){1&t&&(d.Sb(0,"app-alert",14),d.Jc(1),d.ec(2,"translate"),d.Rb()),2&t&&(d.Ab(1),d.Lc(" ",d.fc(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND")," "))}function C(t,e){if(1&t){var i=d.Tb();d.Sb(0,"app-members-candidates-list",15,16),d.Zb("page",(function(t){return d.xc(i),d.dc(3).pageChanged(t)})),d.Rb()}if(2&t){var n=d.dc(3);d.kc("group",n.data.group)("pageSize",n.pageSize)("selection",n.selection)("members",n.members)("type",n.data.type)}}function T(t,e){if(1&t&&(d.Sb(0,"div",11),d.Hc(1,R,3,3,"app-alert",12),d.Hc(2,C,2,5,"app-members-candidates-list",13),d.Rb()),2&t){var i=d.dc(2);d.Ab(1),d.kc("ngIf",0===i.members.length&&i.firstSearchDone),d.Ab(1),d.kc("ngIf",0!==i.members.length)}}function I(t,e){if(1&t){var i=d.Tb();d.Sb(0,"div",4),d.Sb(1,"mat-form-field",5),d.Sb(2,"label"),d.Sb(3,"input",6),d.Zb("keyup.enter",(function(){return d.xc(i),d.dc().onSearchByString()})),d.ec(4,"translate"),d.Rb(),d.Rb(),d.Sb(5,"mat-error"),d.Jc(6),d.ec(7,"translate"),d.Rb(),d.Rb(),d.Sb(8,"button",7),d.Zb("click",(function(){return d.xc(i),d.dc().onSearchByString()})),d.Jc(9),d.ec(10,"translate"),d.Rb(),d.Sb(11,"div",8),d.Hc(12,E,1,0,"mat-spinner",2),d.Rb(),d.Hc(13,T,3,2,"div",9),d.Rb()}if(2&t){var n=d.dc();d.Ab(3),d.lc("placeholder",d.fc(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),d.kc("formControl",n.searchCtrl),d.Ab(3),d.Lc(" ",d.fc(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),d.Ab(2),d.kc("disabled",n.loading),d.Ab(1),d.Lc(" ",d.fc(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),d.Ab(3),d.kc("ngIf",n.loading),d.Ab(1),d.kc("ngIf",!!n.members&&!n.loading)}}function O(t,e){1&t&&d.Nb(0,"mat-spinner",10)}function D(t,e){if(1&t){var i=d.Tb();d.Sb(0,"button",21),d.Zb("click",(function(){return d.xc(i),d.dc(2).onInvite()})),d.Jc(1),d.ec(2,"translate"),d.Rb()}if(2&t){var n=d.dc(2);d.kc("disabled",0===n.selection.selected.length||n.loading),d.Ab(1),d.Lc(" ",d.fc(2,2,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function M(t,e){if(1&t){var i=d.Tb();d.Sb(0,"div",17),d.Sb(1,"button",18),d.Zb("click",(function(){return d.xc(i),d.dc().onCancel()})),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Sb(4,"span",19),d.ec(5,"translate"),d.Hc(6,D,3,4,"button",20),d.Rb(),d.Sb(7,"button",21),d.Zb("click",(function(){return d.xc(i),d.dc().onAdd()})),d.Jc(8),d.ec(9,"translate"),d.Rb(),d.Rb()}if(2&t){var n=d.dc();d.Ab(2),d.Lc(" ",d.fc(3,6,"DIALOGS.ADD_MEMBERS.CANCEL")," "),d.Ab(2),d.lc("matTooltip",d.fc(5,8,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),d.kc("matTooltipDisabled",0===n.selection.selected.length||"group"!==n.data.type||void 0!==n.list&&n.list.addAuth),d.Ab(2),d.kc("ngIf","group"!==n.data.type||"group"===n.data.type&&n.inviteAuth),d.Ab(1),d.kc("disabled",0===n.selection.selected.length||n.loading||"group"===n.data.type&&void 0!==n.list&&!n.list.addAuth),d.Ab(1),d.Lc(" ",d.fc(9,10,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}var P=function(){var t=function(){function t(e,i,n,r,o,s,c,l,h,d,f,p){var b=this;g(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.groupService=r,this.voService=o,this.registrarManager=s,this.translate=c,this.notificator=l,this.route=h,this.tableConfigService=d,this.router=f,this.guiAuthResolver=p,this.selection=new a.c(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=u.g,this.inviteAuth=!1,c.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe((function(t){return b.title=t}))}return m(t,[{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){this.processing=!0;var t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}},{key:"onInvite",value:function(){var t=this;this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe((function(){t.onInviteSuccess()}),(function(){return t.onError()})):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe((function(){t.onInviteSuccess()}),(function(){return t.onError()})):"vo"===this.data.type?this.registrarManager.sendInvitation(Object(c.m)(this.selection.selected[0].candidate),"en",this.data.voId).subscribe((function(){t.onInviteSuccess()}),(function(){return t.onError()})):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup(Object(c.m)(this.selection.selected[0].candidate),"en",this.data.voId,this.data.group.id).subscribe((function(){t.onInviteSuccess()}),(function(){return t.onError()}))}},{key:"onSearchByString",value:function(){var t=this;this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[s.a.USER_DEF_ORGANIZATION,s.a.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe((function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0}),(function(){return t.loading=!1})):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[s.a.USER_DEF_ORGANIZATION,s.a.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe((function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0}),(function(){return t.loading=!1})))}},{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new h.g("",[h.F.required,h.F.pattern(".*[\\S]+.*")])}},{key:"addUserToVo",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe((function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe((function(){e.onValidateSuccess()}),(function(){return e.onCancel()}))}),(function(){return e.onError()}))}},{key:"addCandidateToVo",value:function(t){var e=this;this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe((function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe((function(){e.onValidateSuccess()}),(function(){return e.onCancel()}))}),(function(){return e.onError()}))}},{key:"addUserToGroup",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe((function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe((function(){e.onValidateSuccess()}),(function(){return e.onCancel()}))}),(function(){return e.onError()}))}},{key:"addMemberToGroup",value:function(t){var e=this;this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe((function(){e.onAddSuccess()}),(function(){return e.onError()}))}},{key:"addCandidateToGroup",value:function(t){var e=this,i={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[i]}).subscribe((function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe((function(){e.onValidateSuccess()}),(function(){return e.onCancel()}))}),(function(){return e.onError()}))}},{key:"onAddSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}},{key:"onError",value:function(){this.selection.clear(),this.processing=!1}},{key:"onInviteSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}},{key:"onValidateSuccess",value:function(){this.dialogRef.close(!0)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"createCandidate",value:function(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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Mb(n.i),d.Mb(n.a),d.Mb(o.i),d.Mb(o.h),d.Mb(o.q),d.Mb(o.l),d.Mb(f.e),d.Mb(r.l),d.Mb(p.a),d.Mb(u.pb),d.Mb(p.f),d.Mb(r.h))},t.\u0275cmp=d.Gb({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){var i;1&t&&d.Qc(k,!0),2&t&&d.sc(i=d.ac())&&(e.list=i.first)},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,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"group","pageSize","selection","members","type","page",4,"ngIf"],["alert_type","warn"],[3,"group","pageSize","selection","members","type","page"],["list",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(d.Sb(0,"div"),d.Sb(1,"h1",0),d.Jc(2),d.ec(3,"translate"),d.Rb(),d.Hc(4,I,14,13,"div",1),d.Hc(5,O,1,0,"mat-spinner",2),d.Hc(6,M,10,12,"div",3),d.Rb()),2&t&&(d.Cb(e.theme),d.Ab(2),d.Kc(d.fc(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),d.Ab(2),d.kc("ngIf",!e.processing),d.Ab(1),d.kc("ngIf",e.processing),d.Ab(1),d.kc("ngIf",!e.processing))},directives:[n.j,b.t,n.g,v.c,y.b,h.c,h.r,h.h,v.b,A.b,w.c,_.a,l.a,n.c,S.a],pipes:[f.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t}()},pBDD:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"notifyNext",value:function(t,e,i,n,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),i}(i("5uGe").a)},pU19:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("Ssnw"),a=i("nIj0"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("csyo"),h=i("29Wa"),d=i("Cd2c"),f=i("+Tre"),p=i("PBFl");function b(t,e){1&t&&s.Nb(0,"mat-spinner",4)}function v(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",5),s.Sb(1,"mat-form-field"),s.Sb(2,"input",6),s.Zb("change",(function(){return s.xc(i),s.dc().makePath()})),s.ec(3,"translate"),s.Rb(),s.Sb(4,"mat-error"),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Rb(),s.Sb(7,"mat-form-field"),s.Sb(8,"input",7),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().description=t})),s.ec(9,"translate"),s.Rb(),s.Rb(),s.Sb(10,"mat-form-field"),s.Nb(11,"input",8),s.ec(12,"translate"),s.Sb(13,"mat-error"),s.Jc(14),s.ec(15,"translate"),s.Rb(),s.Rb(),s.Sb(16,"mat-form-field"),s.Nb(17,"input",8),s.ec(18,"translate"),s.Sb(19,"mat-error"),s.Jc(20),s.ec(21,"translate"),s.Rb(),s.Rb(),s.Sb(22,"mat-form-field"),s.Nb(23,"input",8),s.ec(24,"translate"),s.Sb(25,"mat-error"),s.Jc(26),s.ec(27,"translate"),s.Rb(),s.Rb(),s.Sb(28,"span"),s.Jc(29),s.ec(30,"translate"),s.Rb(),s.Sb(31,"mat-checkbox",9),s.Zb("ngModelChange",(function(t){return s.xc(i),s.dc().status=t})),s.Jc(32),s.ec(33,"translate"),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.lc("placeholder",s.fc(3,17,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),s.kc("formControl",n.nameControl),s.Ab(3),s.Kc(s.fc(6,19,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_NAME")),s.Ab(3),s.lc("placeholder",s.fc(9,21,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),s.kc("ngModel",n.description),s.Ab(3),s.lc("placeholder",s.fc(12,23,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),s.kc("formControl",n.delayControl),s.Ab(3),s.Kc(s.fc(15,25,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),s.Ab(3),s.lc("placeholder",s.fc(18,27,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),s.kc("formControl",n.recurrenceControl),s.Ab(3),s.Kc(s.fc(21,29,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),s.Ab(3),s.lc("placeholder",s.fc(24,31,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),s.kc("formControl",n.pathControl),s.Ab(3),s.Kc(s.fc(27,33,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),s.Ab(3),s.Kc(s.fc(30,35,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")),s.Ab(2),s.kc("ngModel",n.status),s.Ab(1),s.Kc(s.fc(33,37,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT"))}}function y(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",10),s.Sb(1,"button",11),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"button",12),s.Zb("click",(function(){s.xc(i);var t=s.dc();return t.asEdit?t.onEdit():t.onCreate()})),s.Jc(5),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),s.Ab(2),s.kc("disabled",n.nameControl.invalid||n.delayControl.invalid||n.recurrenceControl.invalid||n.pathControl.invalid),s.Ab(1),s.Lc(" ",n.buttonText," ")}}var A=function(){var t=function(){function t(e,i,n,r,o){g(this,t),this.dialogRef=e,this.data=i,this.serviceManager=n,this.notificator=r,this.translate=o,this.loading=!1,this.status=!0,this.nameControl=new a.g("",[a.F.required]),this.delayControl=new a.g(10,[a.F.pattern("^[0-9]*$")]),this.recurrenceControl=new a.g(2,[a.F.pattern("^[0-9]*$")]),this.pathControl=new a.g("",[a.F.required]),this.asEdit=!1}return m(t,[{key:"ngOnInit",value:function(){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.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"))}},{key:"onCreate",value:function(){var t=this;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,id:0,beanName:""}}).subscribe((function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),t.dialogRef.close(!0),t.loading=!1}))}},{key:"onEdit",value:function(){var t=this;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,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe((function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),t.dialogRef.close(!0),t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"makePath",value:function(){var t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(o.n),s.Mb(r.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-create-service-dialog"]],decls:6,vars:7,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"],["matInput","","required","",3,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"ml-5",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.Rb(),s.Sb(2,"div"),s.Hc(3,b,1,0,"mat-spinner",1),s.Hc(4,v,34,39,"div",2),s.Hc(5,y,6,5,"div",3),s.Rb()),2&t&&(s.Ab(1),s.Kc(e.title),s.Ab(1),s.Cb(e.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(1),s.kc("ngIf",!e.loading))},directives:[n.j,u.t,l.c,n.g,h.c,d.b,a.c,a.C,a.r,a.h,h.b,a.u,f.a,n.c,p.b],pipes:[c.d],styles:[""]}),t}()},pgvo:function(t,e,i){"use strict";i.d(e,"a",(function(){return j}));var n=i("EM62"),r=i("cePI"),a=i("cqs0"),o=i("iAde"),s=i("FlRo"),c=i("8clQ"),u=i("Ssnw"),l=i("9wx0"),h=i("2kYt"),d=i("+Tre"),f=i("bFHC"),p=i("Y2X+"),b=i("FcRk"),v=i("s2Ay");function y(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",21),n.Sb(1,"mat-checkbox",22),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function A(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",23),n.Sb(1,"mat-checkbox",24),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function w(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")))}function _(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.id)}}function S(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")))}function k(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.service.name)}}function E(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")))}function R(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.facility.name)}}function C(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")))}function T(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.destination)}}function I(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")))}function O(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.type.toUpperCase())}}function D(t,e){1&t&&n.Nb(0,"th",21)}function M(t,e){1&t&&(n.Sb(0,"mat-icon",28),n.ec(1,"translate"),n.Jc(2," check_circle_outline "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function P(t,e){1&t&&(n.Sb(0,"mat-icon",28),n.ec(1,"translate"),n.Jc(2," block "),n.Rb()),2&t&&n.lc("matTooltip",n.fc(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function x(t,e){if(1&t&&(n.Sb(0,"td",26),n.Hc(1,M,3,3,"mat-icon",27),n.Hc(2,P,3,3,"mat-icon",27),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngIf",!i.blocked),n.Ab(1),n.kc("ngIf",i.blocked)}}function N(t,e){1&t&&(n.Sb(0,"th",25),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")))}function L(t,e){if(1&t&&(n.Sb(0,"td",26),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.propagationType)}}function F(t,e){1&t&&n.Nb(0,"tr",29)}function z(t,e){1&t&&n.Nb(0,"tr",30)}function H(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function B(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}var j=function(){var t=function(){function t(e,i){g(this,t),this.authResolver=e,this.tableCheckbox=i,this.destinations=[],this.selection=new a.c(!0,[]),this.filterValue="",this.pageSize=10,this.page=new n.o,this.pageSizeOptions=c.a}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"destinationId"!==t}))),this.dataSource=new s.o(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"destinationId":return t.id.toString();case"service":return t.service.name;case"facility":return t.facility.name;case"destination":return t.destination;case"type":return t.type;case"status":return t.blocked?"blocked":"allowed";case"propagationType":return t.propagationType;default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(u.h),n.Mb(u.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(r.a,!0),n.Dc(o.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[n.yb],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["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(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,y,2,3,"th",6),n.Hc(7,A,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,w,3,3,"th",9),n.Hc(10,_,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,S,3,3,"th",9),n.Hc(13,k,2,1,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,E,3,3,"th",9),n.Hc(16,R,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,C,3,3,"th",9),n.Hc(19,T,2,1,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,I,3,3,"th",9),n.Hc(22,O,2,1,"td",11),n.Pb(),n.Qb(23,15),n.Hc(24,D,1,0,"th",6),n.Hc(25,x,3,2,"td",11),n.Pb(),n.Qb(26,16),n.Hc(27,N,3,3,"th",9),n.Hc(28,L,2,1,"td",11),n.Pb(),n.Hc(29,F,1,0,"tr",17),n.Hc(30,z,1,0,"tr",18),n.Rb(),n.Rb(),n.Sb(31,"mat-paginator",19),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(32,H,3,3,"app-alert",20),n.Hc(33,B,3,3,"app-alert",20)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.destinations.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(25),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.destinations.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.destinations.length),n.Ab(1),n.kc("ngIf",0===e.destinations.length))},directives:[l.a,s.n,r.a,s.c,s.i,s.b,s.k,s.m,o.a,h.t,s.h,d.a,s.a,r.b,f.a,p.a,s.j,s.l,b.a],pipes:[v.d],styles:[""]}),t}()},pnmw:function(t,e,i){"use strict";i.d(e,"a",(function(){return U}));var n=i("EM62"),r=i("X2Q7"),a=i("cePI"),o=i("FlRo"),s=i("iAde"),c=i("8clQ"),u=i("OL2r"),l=i("Ssnw"),h=i("mjJC"),d=i("OZ4H"),f=i("9wx0"),p=i("2kYt"),b=i("+Tre"),v=i("PBFl"),y=i("bFHC"),A=i("Y2X+"),w=i("sEIs"),_=i("TQS+"),S=i("FcRk"),k=i("s2Ay"),E=i("j+u3");function R(t,e){if(1&t){var i=n.Tb();n.Sb(0,"th",18),n.Sb(1,"mat-checkbox",19),n.Zb("change",(function(t){n.xc(i);var e=n.dc();return t?e.masterToggle():null})),n.Rb(),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function C(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",20),n.Sb(1,"mat-checkbox",21),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function T(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")))}function I(t,e){if(1&t&&(n.Sb(0,"td",20),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.member.id)}}function O(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")))}function D(t,e){if(1&t&&(n.Sb(0,"td",23),n.Jc(1),n.ec(2,"userFullName"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.member.user))}}function M(t,e){1&t&&(n.Sb(0,"th",22),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")))}function P(t,e){if(1&t&&(n.Sb(0,"span"),n.Jc(1),n.ec(2,"userFullName"),n.Nb(3,"br"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Lc(" ",n.fc(2,1,i.user),"")}}function x(t,e){if(1&t&&(n.Sb(0,"td",23),n.Hc(1,P,4,3,"span",24),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.kc("ngForOf",i.sponsors)}}function N(t,e){1&t&&n.Nb(0,"th",22)}function L(t,e){if(1&t){var i=n.Tb();n.Sb(0,"span",27),n.ec(1,"translate"),n.Sb(2,"button",28),n.Zb("mouseenter",(function(){return n.xc(i),n.dc(2).disableRouting=!0}))("mouseleave",(function(){n.xc(i);var t=n.dc(2);return t.disableRouting=t.routingStrategy}))("click",(function(){n.xc(i);var t=n.dc().$implicit;return n.dc().resetPassword(t)})),n.Sb(3,"mat-icon"),n.Jc(4,"vpn_key"),n.Rb(),n.Rb(),n.Rb()}if(2&t){var r=n.dc(2);n.kc("matTooltip",n.fc(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET"))("matTooltipPosition","above"),n.Ab(2),n.kc("disabled",r.loading)}}function F(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",23),n.Sb(1,"button",25),n.Zb("mouseenter",(function(){return n.xc(i),n.dc().disableRouting=!0}))("mouseleave",(function(){n.xc(i);var t=n.dc();return t.disableRouting=t.routingStrategy}))("click",(function(){n.xc(i);var t=e.$implicit;return n.dc().showSponsors(t)})),n.Sb(2,"mat-icon"),n.Jc(3,"edit"),n.Rb(),n.Rb(),n.Hc(4,L,5,5,"span",26),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(4),n.kc("ngIf",a.passwdResetAuth(r))}}function z(t,e){1&t&&n.Nb(0,"tr",29)}var H=function(t,e){return["/organizations",t,"members",e]};function B(t,e){if(1&t&&n.Nb(0,"tr",30),2&t){var i=e.$implicit,r=n.dc();n.Eb("disable-outline",r.disableRouting)("cursor-pointer",!r.disableRouting),n.kc("routerLink",r.disableRouting?null:n.qc(6,H,i.member.voId,i.member.id))("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.qc(9,H,i.member.voId,i.member.id))}}function j(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G(t,e){1&t&&(n.Sb(0,"app-alert",31),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}var U=function(){var t=function(){function t(e,i,r,a,o){g(this,t),this.dialog=e,this.authResolver=i,this.storeService=r,this.attributesManager=a,this.tableCheckbox=o,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","sponsors","menu"],this.disableRouting=!1,this.pageSize=10,this.page=new n.o,this.refreshTable=new n.o,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=c.a}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.dataSource=new o.o(this.sponsoredMembers),this.setDataSource(),this.dataSource.filter=this.filterValue,this.routingStrategy=this.disableRouting}},{key:"getDataForColumn",value:function(t,e){var i;switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?t.member.user.lastName?t.member.user.lastName:null!==(i=t.member.user.firstName)&&void 0!==i?i:"":"";case"sponsors":return t.sponsors.map((function(t){return Object(c.w)(t.user)})).join();default:return""}}},{key:"exportData",value:function(t){Object(c.i)(Object(c.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,i){return Object(c.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(c.g)(e,i,t.getDataForColumn,t)},this.dataSource.filter=this.filterValue,this.dataSource.paginator=this.paginator)}},{key:"showSponsors",value:function(t){var e=this,i=Object(c.o)();i.width="650px",i.data={sponsors:t.sponsors,member:t.member,theme:"vo-theme"},this.dialog.open(u.a,i).afterClosed().subscribe((function(){e.refreshTable.emit()}))}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.member.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"resetPassword",value:function(t){var e=this;this.loading=!0;var i=this.storeService.get("password_namespace_attributes").map((function(t){return(t=t.split(":"))[t.length-1]}));this.attributesManager.getLogins(t.member.userId).subscribe((function(n){var r=n.filter((function(t){return i.includes(t.friendlyNameParameter)})),a=Object(c.o)();a.width="400px",a.data={userId:t.member.userId,memberId:t.member.id,logins:r},e.dialog.open(h.a,a).afterClosed().subscribe((function(){e.loading=!1}))}),(function(){return e.loading=!1}))}},{key:"passwdResetAuth",value:function(t){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:t.member.voId,beanName:"Vo"},t.member])}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(d.b),n.Mb(l.h),n.Mb(l.m),n.Mb(r.c),n.Mb(l.n))},t.\u0275cmp=n.Gb({type:t,selectors:[["app-sponsored-members-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Qc(s.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first))},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSize:"pageSize"},outputs:{page:"page",refreshTable:"refreshTable"},features:[n.yb],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"routerLink","perunWebAppsMiddleClickRouterLink","disable-outline","cursor-pointer",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"mouseenter","mouseleave","click"],[3,"matTooltip","matTooltipPosition",4,"ngIf"],[3,"matTooltip","matTooltipPosition"],["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,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,R,2,3,"th",6),n.Hc(7,C,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,T,3,3,"th",9),n.Hc(10,I,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,O,3,3,"th",9),n.Hc(13,D,3,3,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,M,3,3,"th",9),n.Hc(16,x,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,N,1,0,"th",9),n.Hc(19,F,5,1,"td",11),n.Pb(),n.Hc(20,z,1,0,"tr",14),n.Hc(21,B,1,12,"tr",15),n.Rb(),n.Rb(),n.Sb(22,"mat-paginator",16),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(23,j,3,3,"app-alert",17),n.Hc(24,G,3,3,"app-alert",17)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.sponsoredMembers.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(16),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.sponsoredMembers.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.sponsoredMembers.length),n.Ab(1),n.kc("ngIf",0===e.sponsoredMembers.length))},directives:[f.a,o.n,a.a,o.c,o.i,o.b,o.k,o.m,s.a,p.t,o.h,b.a,o.a,a.b,p.s,v.b,y.a,A.a,o.j,o.l,w.g,_.c,S.a],pipes:[k.d,E.a],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},prE9:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("Efrr"),r=i("pBDD"),o=i("mW0F"),c=function(){function t(e){g(this,t),this.durationSelector=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.durationSelector))}}]),t}(),u=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).durationSelector=n,r.hasValue=!1,r}return m(i,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(n){return this.destination.error(n)}var i=Object(o.a)(this,e);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,i=this.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,i,n){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),i}(r.a),l=i("8lHc");function h(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.a;return e=function(){return Object(l.a)(t,i)},function(t){return t.lift(new c(e))}}},py76:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("8clQ"),r=i("nyAh"),a=i("EM62"),o=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var e=Object(n.l)(t.attributes,r.a.GROUP_SYNC_ENABLED),i=Object(n.l)(t.attributes,r.a.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var a=i.value;if("true"===e.value){var o=Object(n.l)(t.attributes,r.a.GROUP_LAST_SYNC_STATE),s=Object(n.l)(t.attributes,r.a.GROUP_LAST_SYNC_TIMESTAMP),c=o.value,u=s.value;return null!=c&&c.trim().length>0?"red":null!==u&&u.trim().length>0?"green":""}if(a){var l=Object(n.l)(t.attributes,r.a.GROUP_LAST_STRUCTURE_SYNC_STATE),h=Object(n.l)(t.attributes,r.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"red":null!==f&&f.trim().length>0?"green":""}return""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Lb({name:"groupSyncIconColor",type:t,pure:!0}),t}()},pynj:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("EM62"),r=i("KTx3"),a=i("YtkY"),o=i("mWib"),s=i("Ohay"),c=i("29Wa"),u=i("Cd2c"),l=i("s2Ay"),h=["groupFilterInput"],d=function(){var t=function(){function t(){g(this,t),this.filter=new n.o}return m(t,[{key:"ngOnInit",value:function(){var t=this;Object(r.a)(this.groupFilterInput.nativeElement,"keyup").pipe(Object(a.a)((function(t){return t.target.value})),Object(o.a)(500),Object(s.a)()).subscribe((function(e){t.filter.emit(e)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){var i;1&t&&n.Dc(h,!0),2&t&&n.sc(i=n.ac())&&(e.groupFilterInput=i.first)},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.Sb(0,"mat-form-field",0),n.Nb(1,"input",1,2),n.ec(3,"translate"),n.Rb()),2&t&&(n.Ab(1),n.lc("placeholder",n.fc(3,1,e.placeholder)))},directives:[c.c,u.b],pipes:[l.d],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t}()},qEfY:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},qZtG:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("ROBh"),r=i("mawV");function a(){return Object(r.a)()(Object(n.a).apply(void 0,arguments))}},qvOF:function(t,e,i){"use strict";i.d(e,"a",(function(){return J})),i.d(e,"b",(function(){return Z})),i.d(e,"c",(function(){return rt})),i.d(e,"d",(function(){return nt})),i.d(e,"e",(function(){return Q})),i.d(e,"f",(function(){return W})),i.d(e,"g",(function(){return at})),i.d(e,"h",(function(){return Y}));var o=i("5XID"),u=i("EM62"),l=i("ZTXN"),f=i("ROBh"),p=i("IdLP"),b=i("KTx3"),v=i("g6G6"),y=i("VvXq"),A=i("vT4p"),w=i("bwdy"),_=i("9bRT"),S=i("Ohay"),k=i("prE9"),E=i("xVbo"),R=i("kuMc"),C=i("jIqt"),T=i("5uGe"),I=function(){function t(){g(this,t)}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new O(t))}}]),t}(),O=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this,t)).hasPrev=!1,n}return m(i,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),i}(T.a),D=i("TLy2"),M=i("wqq/"),P=i("cZZj"),x=i("2kYt"),N=i("E5oP"),L=i("cqs0"),F=["contentWrapper"],z=["*"],H=new u.r("VIRTUAL_SCROLL_STRATEGY"),B=function(){function t(e,i,n){g(this,t),this._scrolledIndexChange=new l.a,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Object(S.a)()),this._viewport=null,this._itemSize=e,this._minBufferPx=i,this._maxBufferPx=n}return m(t,[{key:"attach",value:function(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(t,e,i){if(i0&&(n.end=Math.min(a,n.end+u),n.start=Math.max(0,Math.floor(e-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(this._itemSize*n.start),this._scrolledIndexChange.next(Math.floor(e))}}}]),t}();function j(t){return t._scrollStrategy}var G,U,K,V,q,J=((V=function(){function t(){g(this,t),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new B(this.itemSize,this.minBufferPx,this.maxBufferPx)}return m(t,[{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}},{key:"itemSize",get:function(){return this._itemSize},set:function(t){this._itemSize=Object(o.f)(t)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(t){this._minBufferPx=Object(o.f)(t)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(t){this._maxBufferPx=Object(o.f)(t)}}]),t}()).\u0275fac=function(t){return new(t||V)},V.\u0275dir=u.Hb({type:V,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[u.zb([{provide:H,useFactory:j,deps:[Object(u.U)((function(){return V}))]}]),u.yb]}),V),W=((K=function(){function t(e,i,n){g(this,t),this._ngZone=e,this._platform=i,this._scrolled=new l.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return m(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new p.a((function(i){t._globalSubscription||t._addGlobalListener();var n=e>0?t._scrolled.pipe(Object(k.a)(e)).subscribe(i):t._scrolled.subscribe(i);return t._scrolledCount++,function(){n.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Object(f.a)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,i){return t.deregister(i)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(E.a)((function(t){return!t||i.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,i=[];return this.scrollContainers.forEach((function(n,r){e._scrollableContainsElement(r,t)&&i.push(r)})),i}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){var e=t._getWindow();return Object(b.a)(e.document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||K)(u.Wb(u.A),u.Wb(P.a),u.Wb(x.e,8))},K.\u0275prov=Object(u.Ib)({factory:function(){return new K(Object(u.Wb)(u.A),Object(u.Wb)(P.a),Object(u.Wb)(x.e,8))},token:K,providedIn:"root"}),K),Z=((U=function(){function t(e,i,n,r){var a=this;g(this,t),this.elementRef=e,this.scrollDispatcher=i,this.ngZone=n,this.dir=r,this._destroyed=new l.a,this._elementScrolled=new p.a((function(t){return a.ngZone.runOutsideAngular((function(){return Object(b.a)(a.elementRef.nativeElement,"scroll").pipe(Object(R.a)(a._destroyed)).subscribe(t)}))}))}return m(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Object(P.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(P.d)()?t.left=t.right:1==Object(P.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;Object(P.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Object(P.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Object(P.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||U)(u.Mb(u.l),u.Mb(W),u.Mb(u.A),u.Mb(N.c,8))},U.\u0275dir=u.Hb({type:U,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),U),Y=((G=function(){function t(e,i,n){var r=this;g(this,t),this._platform=e,this._document=n,i.runOutsideAngular((function(){var t=r._getWindow();r._change=e.isBrowser?Object(v.a)(Object(b.a)(t,"resize"),Object(b.a)(t,"orientationchange")):Object(f.a)(),r._invalidateCache=r.change().subscribe((function(){return r._updateViewportSize()}))}))}return m(t,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),i=e.width,n=e.height;return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Object(k.a)(t)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||G)(u.Wb(P.a),u.Wb(u.A),u.Wb(x.e,8))},G.\u0275prov=Object(u.Ib)({factory:function(){return new G(Object(u.Wb)(P.a),Object(u.Wb)(u.A),Object(u.Wb)(x.e,8))},token:G,providedIn:"root"}),G),X="undefined"!=typeof requestAnimationFrame?y.a:A.a,Q=((q=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o,s,u){var h;if(g(this,i),(h=e.call(this,t,s,r,o)).elementRef=t,h._changeDetectorRef=n,h._scrollStrategy=a,h._detachedSubject=new l.a,h._renderedRangeSubject=new l.a,h._orientation="vertical",h.scrolledIndexChange=new p.a((function(t){return h._scrollStrategy.scrolledIndexChange.subscribe((function(e){return Promise.resolve().then((function(){return h.ngZone.run((function(){return t.next(e)}))}))}))})),h.renderedRangeStream=h._renderedRangeSubject.asObservable(),h._totalContentSize=0,h._totalContentWidth="",h._totalContentHeight="",h._renderedRange={start:0,end:0},h._dataLength=0,h._viewportSize=0,h._renderedContentOffset=0,h._renderedContentOffsetNeedsRewrite=!1,h._isChangeDetectionPending=!1,h._runAfterChangeDetection=[],h._viewportChanges=w.a.EMPTY,!a)throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');return u&&(h._viewportChanges=u.change().subscribe((function(){h.checkViewportSize()}))),c(h)}return m(i,[{key:"ngOnInit",value:function(){var t=this;n(h(i.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular((function(){return Promise.resolve().then((function(){t._measureViewportSize(),t._scrollStrategy.attach(t),t.elementScrolled().pipe(Object(C.a)(null),Object(k.a)(0,X)).subscribe((function(){return t._scrollStrategy.onContentScrolled()})),t._markChangeDetectionNeeded()}))}))}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),n(h(i.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(t){var e=this;if(this._forOf)throw Error("CdkVirtualScrollViewport is already attached.");this.ngZone.runOutsideAngular((function(){e._forOf=t,e._forOf.dataStream.pipe(Object(R.a)(e._detachedSubject)).subscribe((function(t){var i=t.length;i!==e._dataLength&&(e._dataLength=i,e._scrollStrategy.onDataLengthChanged()),e._doChangeDetection()}))}))}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"setTotalContentSize",value:function(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(t){var e,i,n=this;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded((function(){return n._scrollStrategy.onContentRendered()})))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start",n="horizontal"==this.orientation,r=n?"X":"Y",a="translate".concat(r,"(").concat(Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*t),"px)");this._renderedContentOffset=t,"to-end"===i&&(a+=" translate".concat(r,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=a&&(this._renderedContentTransform=a,this._markChangeDetectionNeeded((function(){e._renderedContentOffsetNeedsRewrite?(e._renderedContentOffset-=e.measureRenderedContentSize(),e._renderedContentOffsetNeedsRewrite=!1,e.setRenderedContentOffset(e._renderedContentOffset)):e._scrollStrategy.onRenderedOffsetChanged()})))}},{key:"scrollToOffset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}},{key:"scrollToIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(t,e)}},{key:"measureScrollOffset",value:function(t){return n(h(i.prototype),"measureScrollOffset",this).call(this,t||("horizontal"===this.orientation?"start":"top"))}},{key:"measureRenderedContentSize",value:function(){var t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}},{key:"measureRangeSize",value:function(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){var t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}},{key:"_markChangeDetectionNeeded",value:function(t){var e=this;t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular((function(){return Promise.resolve().then((function(){e._doChangeDetection()}))})))}},{key:"_doChangeDetection",value:function(){var t=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run((function(){return t._changeDetectorRef.markForCheck()}));var e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var i,n=d(e);try{for(n.s();!(i=n.n()).done;)(0,i.value)()}catch(r){n.e(r)}finally{n.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":this._totalContentSize+"px",this._totalContentWidth="horizontal"===this.orientation?this._totalContentSize+"px":""}},{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}}]),i}(Z)).\u0275fac=function(t){return new(t||q)(u.Mb(u.l),u.Mb(u.h),u.Mb(u.A),u.Mb(H,8),u.Mb(N.c,8),u.Mb(W),u.Mb(Y,8))},q.\u0275cmp=u.Gb({type:q,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){var i;1&t&&u.Dc(F,!0),2&t&&u.sc(i=u.ac())&&(e._contentWrapper=i.first)},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&u.Eb("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[u.zb([{provide:Z,useExisting:q}]),u.xb],ngContentSelectors:z,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(u.jc(),u.Sb(0,"div",0,1),u.ic(2),u.Rb(),u.Nb(3,"div",2)),2&t&&(u.Ab(3),u.Ec("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),q);function $(t,e){if(!e.getBoundingClientRect)return 0;var i=e.getBoundingClientRect();return"horizontal"==t?i.width:i.height}var tt,et,it,nt=((it=function(){function t(e,i,n,a,o){var s=this;g(this,t),this._viewContainerRef=e,this._template=i,this._differs=n,this._viewport=a,this.viewChange=new l.a,this._dataSourceChanges=new l.a,this.cdkVirtualForTemplateCacheSize=20,this.dataStream=this._dataSourceChanges.pipe(Object(C.a)(null),(function(t){return t.lift(new I)}),Object(D.a)((function(t){var e=r(t,2),i=e[0],n=e[1];return s._changeDataSource(i,n)})),Object(M.a)(1)),this._differ=null,this._templateCache=[],this._needsUpdate=!1,this._destroyed=new l.a,this.dataStream.subscribe((function(t){s._data=t,s._onRenderedDataChange()})),this._viewport.renderedRangeStream.pipe(Object(R.a)(this._destroyed)).subscribe((function(t){s._renderedRange=t,o.run((function(){return s.viewChange.next(s._renderedRange)})),s._onRenderedDataChange()})),this._viewport.attach(this)}return m(t,[{key:"measureRangeSize",value:function(t,e){if(t.start>=t.end)return 0;if(t.startthis._renderedRange.end)throw Error("Error: attempted to measure an item that isn't rendered.");for(var i=t.start-this._renderedRange.start,n=0,r=t.end-t.start;r--;)for(var a=this._viewContainerRef.get(r+i),o=a?a.rootNodes.length:0;o--;)n+=$(e,a.rootNodes[o]);return n}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete();var t,e=d(this._templateCache);try{for(e.s();!(t=e.n()).done;)t.value.destroy()}catch(i){e.e(i)}finally{e.f()}}},{key:"_onRenderedDataChange",value:function(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(this.cdkVirtualForTrackBy)),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):Object(f.a)()}},{key:"_updateContext",value:function(){for(var t=this._data.length,e=this._viewContainerRef.length;e--;){var i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}},{key:"_applyChanges",value:function(t){var e=this;t.forEachOperation((function(t,i,n){if(null==t.previousIndex)e._insertViewForNewItem(n).context.$implicit=t.item;else if(null==n)e._cacheView(e._detachView(i));else{var r=e._viewContainerRef.get(i);e._viewContainerRef.move(r,n),r.context.$implicit=t.item}})),t.forEachIdentityChange((function(t){e._viewContainerRef.get(t.currentIndex).context.$implicit=t.item}));for(var i=this._data.length,n=this._viewContainerRef.length;n--;){var r=this._viewContainerRef.get(n);r.context.index=this._renderedRange.start+n,r.context.count=i,this._updateComputedContextProperties(r.context)}}},{key:"_cacheView",value:function(t){if(this._templateCache.length-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}},{key:"exportData",value:function(t){Object(s.i)(Object(s.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return Object(s.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(s.g)(e,i,t.getDataForColumn,t)},this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.h))},t.\u0275cmp=n.Gb({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Qc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.paginator=i.first))},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.yb],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,y,1,0,"th",6),n.Hc(7,A,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,w,3,3,"th",9),n.Hc(10,_,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,S,1,0,"th",6),n.Hc(13,k,2,2,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,E,3,3,"th",9),n.Hc(16,R,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,C,3,3,"th",9),n.Hc(19,T,2,1,"td",11),n.Pb(),n.Hc(20,I,1,0,"tr",14),n.Hc(21,D,1,8,"tr",15),n.Rb(),n.Rb(),n.Sb(22,"mat-paginator",16),n.Zb("page",(function(t){return e.page.emit(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(23,M,3,3,"app-alert",17),n.Hc(24,P,3,3,"app-alert",17)),2&t&&(n.kc("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(16),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.vos.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),n.Ab(1),n.kc("ngIf",0===e.vos.length))},directives:[u.a,o.n,a.a,o.c,o.i,o.b,o.k,o.m,r.a,l.t,o.h,o.a,h.a,a.b,d.a,o.j,o.l,f.g,p.c,b.a],pipes:[v.d],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},r3xl:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("FlRo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&s.Nb(0,"th",15)}function p(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){1&t&&s.Nb(0,"tr",18)}function y(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,1,0,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Hc(11,b,1,0,"tr",13),s.Hc(12,v,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Kc(s.fc(3,5,"DIALOGS.DELETE_SERVICE.DESCRIPTION")),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.DELETE_SERVICE.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.serviceManager=n,this.notificator=r,this.translate=a,this.displayedColumns=["name"],this.dataSource=new o.o(this.data.services),this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.services=this.data.services}},{key:"recDelete",value:function(){var t=this;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).subscribe((function(){t.recDelete(),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"onDelete",value:function(){this.recDelete()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(n.n),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-delete-service-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"div"),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onDelete()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,9,"DIALOGS.DELETE_SERVICE.TITLE")),s.Ab(2),s.Cb(e.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.DELETE_SERVICE.CANCEL"),""),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.DELETE_SERVICE.DELETE"),""))},directives:[r.j,u.t,r.c,l.b,h.c,r.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l],pipes:[c.d],styles:[""]}),t}()},r9RI:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this)).parent=t,a.outerValue=n,a.outerIndex=r,a.index=0,a}return m(i,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),i}(i("5uGe").a)},rWo0:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("HgnN"),r=i("i9P/"),a={closed:!0,next:function(t){},error:function(t){if(n.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete:function(){}}},rmDM:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("EM62"),r=i("s2Ay"),a=function(){var t=function(){function t(e){g(this,t),this.translateService=e}return m(t,[{key:"transform",value:function(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+t);default:return t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(r.e))},t.\u0275pipe=n.Lb({name:"applicationFormItemDisabled",type:t,pure:!0}),t}()},ruxD:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("5uGe"),r=i("bwdy");function o(t){return function(e){return e.lift(new c(t))}}var c=function(){function t(e){g(this,t),this.callback=e}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.callback))}}]),t}(),u=function(t){a(i,t);var e=s(i);function i(t,n){var a;return g(this,i),(a=e.call(this,t)).add(new r.a(n)),a}return i}(n.a)},ryP2:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("6Oco"),r=i("ROBh"),a=i("47ST"),o=function(){var t=function(){function t(e,i,n){g(this,t),this.kind=e,this.value=i,this.error=n,this.hasValue="N"===e}return m(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}},{key:"accept",value:function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(n.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},s2Ay:function(e,i,n){"use strict";n.d(i,"a",(function(){return B})),n.d(i,"b",(function(){return A})),n.d(i,"c",(function(){return G})),n.d(i,"d",(function(){return j})),n.d(i,"e",(function(){return H}));var r=n("EM62"),o=n("ROBh"),c=n("9bRT"),u=n("P4Xx"),l=n("qZtG"),h=n("i9xl"),f=n("J+dc"),p=n("wqq/"),b=n("YtkY"),v=n("5uDM"),y=n("TLy2"),A=function t(){g(this,t)},w=function(){var t=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"getTranslation",value:function(t){return Object(o.a)({})}}]),i}(A);return t.\u0275fac=function(e){return _(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t}(),_=r.Ub(w),S=function t(){g(this,t)},k=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"handle",value:function(t){return t.key}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t}();function E(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var i,n,r,a=typeof t;if(a==typeof e&&"object"==a){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in r=Object.create(null),t){if(!E(t[n],e[n]))return!1;r[n]=!0}for(n in e)if(!(n in r)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n5&&void 0!==arguments[5])||arguments[5],c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;g(this,e),this.store=t,this.currentLoader=i,this.compiler=n,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=c,this.extend=u,this.pending=!1,this._onTranslationChange=new r.o,this._onLangChange=new r.o,this._onDefaultLangChange=new r.o,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return m(e,[{key:"setDefaultLang",value:function(t){var e=this;if(t!==this.defaultLang){var i=this.retrieveTranslations(t);void 0!==i?(null==this.defaultLang&&(this.defaultLang=t),i.pipe(Object(f.a)(1)).subscribe((function(i){e.changeDefaultLang(t)}))):this.changeDefaultLang(t)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(t){var e=this;if(t===this.currentLang)return Object(o.a)(this.translations[t]);var i=this.retrieveTranslations(t);return void 0!==i?(this.currentLang||(this.currentLang=t),i.pipe(Object(f.a)(1)).subscribe((function(i){e.changeLang(t)})),i):(this.changeLang(t),Object(o.a)(this.translations[t]))}},{key:"retrieveTranslations",value:function(t){var e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}},{key:"getTranslation",value:function(t){var e=this;this.pending=!0;var i=this.currentLoader.getTranslation(t).pipe(Object(p.a)(1),Object(f.a)(1));return this.loadingTranslations=i.pipe(Object(b.a)((function(i){return e.compiler.compileTranslations(i,t)})),Object(p.a)(1),Object(f.a)(1)),this.loadingTranslations.subscribe({next:function(i){e.translations[t]=e.extend&&e.translations[t]?Object.assign(Object.assign({},i),e.translations[t]):i,e.updateLangs(),e.pending=!1},error:function(t){e.pending=!1}}),i}},{key:"setTranslation",value:function(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i=this.compiler.compileTranslations(i,e),this.translations[e]=(n||this.extend)&&this.translations[e]?function e(i,n){var r=Object.assign({},i);return C(i)&&C(n)&&Object.keys(n).forEach((function(a){C(n[a])&&a in i?r[a]=e(i[a],n[a]):Object.assign(r,t({},a,n[a]))})),r}(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(t){var e=this;t.forEach((function(t){-1===e.langs.indexOf(t)&&e.langs.push(t)}))}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(t,e,i){var n;if(e instanceof Array){var r,a={},s=!1,l=d(e);try{for(l.s();!(r=l.n()).done;){var h=r.value;a[h]=this.getParsedResult(t,h,i),Object(c.a)(a[h])&&(s=!0)}}catch(g){l.e(g)}finally{l.f()}if(s){var f=e.map((function(t){return Object(c.a)(a[t])?a[t]:Object(o.a)(a[t])}));return Object(u.a)(f).pipe(Object(b.a)((function(t){var i={};return t.forEach((function(t,n){i[e[n]]=t})),i})))}return a}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){var p={key:e,translateService:this};void 0!==i&&(p.interpolateParams=i),n=this.missingTranslationHandler.handle(p)}return void 0!==n?n:e}},{key:"get",value:function(t,e){var i=this;if(!R(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(v.a)((function(n){return n=i.getParsedResult(n,t,e),Object(c.a)(n)?n:Object(o.a)(n)})));var n=this.getParsedResult(this.translations[this.currentLang],t,e);return Object(c.a)(n)?n:Object(o.a)(n)}},{key:"getStreamOnTranslationChange",value:function(t,e){var i=this;if(!R(t)||!t.length)throw new Error('Parameter "key" required');return Object(l.a)(Object(h.a)((function(){return i.get(t,e)})),this.onTranslationChange.pipe(Object(y.a)((function(n){var r=i.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:Object(o.a)(r)}))))}},{key:"stream",value:function(t,e){var i=this;if(!R(t)||!t.length)throw new Error('Parameter "key" required');return Object(l.a)(Object(h.a)((function(){return i.get(t,e)})),this.onLangChange.pipe(Object(y.a)((function(n){var r=i.getParsedResult(n.translations,t,e);return Object(c.a)(r)?r:Object(o.a)(r)}))))}},{key:"instant",value:function(t,e){if(!R(t)||!t.length)throw new Error('Parameter "key" required');var i=this.getParsedResult(this.translations[this.currentLang],t,e);if(Object(c.a)(i)){if(t instanceof Array){var n={};return t.forEach((function(e,i){n[t[i]]=t[i]})),n}return t}return i}},{key:"set",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}},{key:"changeLang",value:function(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}},{key:"changeDefaultLang",value:function(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}},{key:"reloadLang",value:function(t){return this.resetLang(t),this.getTranslation(t)}},{key:"resetLang",value:function(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}},{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(t){this.isolate?this._currentLang=t:this.store.currentLang=t}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(t){this.isolate?this._langs=t:this.store.langs=t}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(t){this.isolate?this._translations=t:this.store.translations=t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Wb(x),r.Wb(A),r.Wb(D),r.Wb(T),r.Wb(S),r.Wb(L),r.Wb(N),r.Wb(z),r.Wb(F))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e}(),B=function(){var t=function(){function t(e,i,n){var r=this;g(this,t),this.translateService=e,this.element=i,this._ref=n,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe((function(t){t.lang===r.translateService.currentLang&&r.checkNodes(!0,t.translations)}))),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe((function(t){r.checkNodes(!0,t.translations)}))),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe((function(t){r.checkNodes(!0)})))}return m(t,[{key:"ngAfterViewChecked",value:function(){this.checkNodes()}},{key:"checkNodes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0,i=this.element.nativeElement.childNodes;i.length||(this.setContent(this.element.nativeElement,this.key),i=this.element.nativeElement.childNodes);for(var n=0;n1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:A,useClass:w},e.compiler||{provide:D,useClass:M},e.parser||{provide:T,useClass:I},e.missingTranslationHandler||{provide:S,useClass:k},x,{provide:N,useValue:e.isolate},{provide:L,useValue:e.useDefaultLang},{provide:z,useValue:e.extend},{provide:F,useValue:e.defaultLanguage},H]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:A,useClass:w},e.compiler||{provide:D,useClass:M},e.parser||{provide:T,useClass:I},e.missingTranslationHandler||{provide:S,useClass:k},{provide:N,useValue:e.isolate},{provide:L,useValue:e.useDefaultLang},{provide:z,useValue:e.extend},{provide:F,useValue:e.defaultLanguage},H]}}}]),t}();return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t}()},s8L6:function(t,e,i){"use strict";i.d(e,"a",(function(){return R}));var n=i("cqs0"),r=i("V78E"),a=i("X2Q7"),o=i("snnp"),s=i("iyZ4"),c=i("8clQ"),u=i("Ssnw"),l=i("EM62"),h=i("OZ4H"),d=i("sEIs"),f=i("0XDM"),p=i("2kYt"),b=i("A8Ay"),v=i("PBFl"),y=i("csyo"),A=i("23RZ"),w=i("s2Ay");function _(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",7),l.Zb("click",(function(){return l.xc(i),l.dc().createResource()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}2&t&&(l.Ab(1),l.Lc(" ",l.fc(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function S(t,e){if(1&t){var i=l.Tb();l.Sb(0,"button",8),l.Zb("click",(function(){return l.xc(i),l.dc().removeResource()})),l.Jc(1),l.ec(2,"translate"),l.Rb()}if(2&t){var n=l.dc();l.kc("disabled",0===n.selected.selected.length),l.Ab(1),l.Lc(" ",l.fc(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function k(t,e){1&t&&l.Nb(0,"mat-spinner",9)}function E(t,e){if(1&t){var i=l.Tb();l.Sb(0,"perun-web-apps-resources-list",10),l.Zb("page",(function(t){return l.xc(i),l.dc().pageChanged(t)})),l.Rb()}if(2&t){var n=l.dc();l.kc("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("selection",n.selected)("disableRouting",!n.routeAuth)("displayedColumns",n.displayedColumns)}}var R=function(){var t=function(){function t(e,i,r,a,o){g(this,t),this.dialog=e,this.facilitiesManager=i,this.tableConfigService=r,this.route=a,this.authResolver=o,this.resources=[],this.selected=new n.c(!0,[]),this.filterValue="",this.tableId=s.z,this.displayedColumns=["id","vo","facility","description"]}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe((function(e){t.facilitiesManager.getFacilityById(e.facilityId).subscribe((function(e){t.facility=e,t.refreshTable()}))}))}},{key:"removeResource",value:function(){var t=this,e=Object(c.o)();e.width="450px",e.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(r.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe((function(e){t.resources=e,t.selected.clear(),t.setAuthRights(),t.loading=!1}))}},{key:"setAuthRights",value:function(){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]]))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"createResource",value:function(){var t=this,e=Object(c.o)();e.width="1350px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(o.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="FacilityResourcesComponent",t.\u0275fac=function(e){return new(e||t)(l.Mb(h.b),l.Mb(a.g),l.Mb(s.pb),l.Mb(d.a),l.Mb(u.h))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("router-component",!0)},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page"]],template:function(t,e){1&t&&(l.Sb(0,"div"),l.Sb(1,"h1",0),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"perun-web-apps-refresh-button",1),l.Zb("refresh",(function(){return e.refreshTable()})),l.Rb(),l.Hc(5,_,3,3,"button",2),l.Hc(6,S,3,4,"button",3),l.Sb(7,"perun-web-apps-immediate-filter",4),l.Zb("filter",(function(t){return e.applyFilter(t)})),l.Rb(),l.Hc(8,k,1,0,"mat-spinner",5),l.Hc(9,E,1,6,"perun-web-apps-resources-list",6),l.Rb()),2&t&&(l.Ab(2),l.Kc(l.fc(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),l.Ab(3),l.kc("ngIf",!e.loading&&e.addAuth),l.Ab(1),l.kc("ngIf",!e.loading&&e.removeAuth),l.Ab(1),l.kc("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(1),l.kc("ngIf",!e.loading))},directives:[f.a,p.t,b.a,v.b,y.c,A.a],pipes:[w.d],styles:[""]}),t}()},sEIs:function(t,e,n){"use strict";n.d(e,"a",(function(){return Kt})),n.d(e,"b",(function(){return V})),n.d(e,"c",(function(){return K})),n.d(e,"d",(function(){return wi})),n.d(e,"e",(function(){return Ve})),n.d(e,"f",(function(){return ui})),n.d(e,"g",(function(){return li})),n.d(e,"h",(function(){return mi})),n.d(e,"i",(function(){return hi})),n.d(e,"j",(function(){return Ii})),n.d(e,"k",(function(){return vi})),n.d(e,"l",(function(){return Je}));var r=n("2kYt"),o=n("EM62"),c=n("ROBh"),l=n("GoAz"),h=n("C05f"),f=n("HM3f"),p=n("IdLP"),b=n("VxHp"),v=n("i9xl"),y=n("6Oco"),A=n("ZTXN"),w=n("YtkY"),_=n("mawV"),S=n("xVbo"),k=n("5uGe"),E=n("PNff");function R(t){return function(e){return 0===t?Object(y.b)():e.lift(new C(t))}}var C=function(){function t(e){if(g(this,t),this.total=e,this.total<0)throw new E.a}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new T(t,this.total))}}]),t}(),T=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).total=n,r.ring=new Array,r.count=0,r}return m(i,[{key:"_next",value:function(t){var e=this.ring,i=this.total,n=this.count++;e.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(this,i),(r=e.call(this,t,n)).navigationTrigger=a,r.restoredState=o,r}return m(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(U),V=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a}return m(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(U),q=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t,n)).reason=r,a}return m(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(U),J=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t,n)).error=r,a}return m(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(U),W=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o.state=a,o}return m(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(U),Z=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o.state=a,o}return m(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(U),Y=function(t){a(i,t);var e=s(i);function i(t,n,r,a,o){var s;return g(this,i),(s=e.call(this,t,n)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return m(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(U),X=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o.state=a,o}return m(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(U),Q=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o.state=a,o}return m(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(U),$=function(){function t(e){g(this,t),this.route=e}return m(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),tt=function(){function t(e){g(this,t),this.route=e}return m(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),et=function(){function t(e){g(this,t),this.snapshot=e}return m(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),it=function(){function t(e){g(this,t),this.snapshot=e}return m(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),nt=function(){function t(e){g(this,t),this.snapshot=e}return m(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),rt=function(){function t(e){g(this,t),this.snapshot=e}return m(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),at=function(){function t(e,i,n){g(this,t),this.routerEvent=e,this.position=i,this.anchor=n}return m(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),ot=function(){function t(e){g(this,t),this.params=e||{}}return m(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function st(t){return new ot(t)}function ct(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ut(t,e,i){var n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length0?t[t.length-1]:null}function pt(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function gt(t){return Object(o.rb)(t)?t:Object(o.sb)(t)?Object(l.a)(Promise.resolve(t)):Object(c.a)(t)}function bt(t,e,i){return i?function(t,e){return lt(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!At(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(var n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(i){return ht(t[i],e[i])}))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,r){if(i.segments.length>r.length)return!!At(i.segments.slice(0,r.length),r)&&!n.hasChildren();if(i.segments.length===r.length){if(!At(i.segments,r))return!1;for(var a in n.children){if(!i.children[a])return!1;if(!t(i.children[a],n.children[a]))return!1}return!0}var o=r.slice(0,i.segments.length),s=r.slice(i.segments.length);return!!At(i.segments,o)&&!!i.children.primary&&e(i.children.primary,n,s)}(e,i,i.segments)}(t.root,e.root)}var mt=function(){function t(e,i,n){g(this,t),this.root=e,this.queryParams=i,this.fragment=n}return m(t,[{key:"toString",value:function(){return kt.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}}]),t}(),vt=function(){function t(e,i){var n=this;g(this,t),this.segments=e,this.children=i,this.parent=null,pt(i,(function(t,e){return t.parent=n}))}return m(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Et(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),yt=function(){function t(e,i){g(this,t),this.path=e,this.parameters=i}return m(t,[{key:"toString",value:function(){return Dt(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=st(this.parameters)),this._parameterMap}}]),t}();function At(t,e){return t.length===e.length&&t.every((function(t,i){return t.path===e[i].path}))}function wt(t,e){var i=[];return pt(t.children,(function(t,n){"primary"===n&&(i=i.concat(e(t,n)))})),pt(t.children,(function(t,n){"primary"!==n&&(i=i.concat(e(t,n)))})),i}var _t=function t(){g(this,t)},St=function(){function t(){g(this,t)}return m(t,[{key:"parse",value:function(t){var e=new Lt(t);return new mt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){return"".concat("/"+function t(e,i){if(!e.hasChildren())return Et(e);if(i){var n=e.children.primary?t(e.children.primary,!1):"",r=[];return pt(e.children,(function(e,i){"primary"!==i&&r.push("".concat(i,":").concat(t(e,!1)))})),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var a=wt(e,(function(i,n){return"primary"===n?[t(e.children.primary,!1)]:["".concat(n,":").concat(t(i,!1))]}));return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Et(e),"/").concat(a[0]):"".concat(Et(e),"/(").concat(a.join("//"),")")}(t.root,!0)).concat((e=t.queryParams,i=Object.keys(e).map((function(t){var i=e[t];return Array.isArray(i)?i.map((function(e){return"".concat(Ct(t),"=").concat(Ct(e))})).join("&"):"".concat(Ct(t),"=").concat(Ct(i))})),i.length?"?"+i.join("&"):"")).concat("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"");var e,i}}]),t}(),kt=new St;function Et(t){return t.segments.map((function(t){return Dt(t)})).join("/")}function Rt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ct(t){return Rt(t).replace(/%3B/gi,";")}function Tt(t){return Rt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function It(t){return decodeURIComponent(t)}function Ot(t){return It(t.replace(/\+/g,"%20"))}function Dt(t){return"".concat(Tt(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(Tt(t),"=").concat(Tt(e[t]))})).join("")));var e}var Mt=/^[^\/()?;=#]+/;function Pt(t){var e=t.match(Mt);return e?e[0]:""}var xt=/^[^=?&#]+/,Nt=/^[^?&#]+/,Lt=function(){function t(e){g(this,t),this.url=e,this.remaining=e}return m(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vt([],{}):new vt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new vt(t,e)),i}},{key:"parseSegment",value:function(){var t=Pt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new yt(It(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Pt(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=Pt(this.remaining);n&&(i=n,this.capture(i))}t[It(e)]=It(i)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(xt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=function(t){var e=t.match(Nt);return e?e[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var r=Ot(e),a=Ot(i);if(t.hasOwnProperty(r)){var o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(a)}else t[r]=a}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=Pt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var a=this.parseChildren();e[r]=1===Object.keys(a).length?a.primary:new vt([],a),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Ft=function(){function t(e){g(this,t),this._root=e}return m(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=zt(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=zt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Ht(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return Ht(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function zt(t,e){if(t===e.value)return e;var i,n=d(e.children);try{for(n.s();!(i=n.n()).done;){var r=zt(t,i.value);if(r)return r}}catch(a){n.e(a)}finally{n.f()}return null}function Ht(t,e){if(t===e.value)return[e];var i,n=d(e.children);try{for(n.s();!(i=n.n()).done;){var r=Ht(t,i.value);if(r.length)return r.unshift(e),r}}catch(a){n.e(a)}finally{n.f()}return[]}var Bt=function(){function t(e,i){g(this,t),this.value=e,this.children=i}return m(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function jt(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Gt=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t)).snapshot=n,Wt(u(r),t),r}return m(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(Ft);function Ut(t,e){var i=function(t,e){var i=new qt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Jt("",new Bt(i,[]))}(t,e),n=new h.a([new yt("",{})]),r=new h.a({}),a=new h.a({}),o=new h.a({}),s=new h.a(""),c=new Kt(n,r,o,s,a,"primary",e,i.root);return c.snapshot=i.root,new Gt(new Bt(c,[]),i)}var Kt=function(){function t(e,i,n,r,a,o,s,c){g(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=c}return m(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(w.a)((function(t){return st(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(w.a)((function(t){return st(t)})))),this._queryParamMap}}]),t}();function Vt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=t.pathFromRoot,n=0;if("always"!==e)for(n=i.length-1;n>=1;){var r=i[n],a=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(a.component)break;n--}}return function(t){return t.reduce((function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(i.slice(n))}var qt=function(){function t(e,i,n,r,a,o,s,c,u,l,h){g(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=l,this._resolve=h}return m(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=st(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}}]),t}(),Jt=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,n)).url=t,Wt(u(r),n),r}return m(i,[{key:"toString",value:function(){return Zt(this._root)}}]),i}(Ft);function Wt(t,e){e.value._routerState=t,e.children.forEach((function(e){return Wt(t,e)}))}function Zt(t){var e=t.children.length>0?" { ".concat(t.children.map(Zt).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Yt(t){if(t.snapshot){var e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,lt(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),lt(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(var i=0;i0&&Qt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==ft(n))throw new Error("{outlets:{}} has to be the last command")}return m(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),ee=function t(e,i,n){g(this,t),this.segmentGroup=e,this.processChildren=i,this.index=n};function ie(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function ne(t,e,i){if(t||(t=new vt([],{})),0===t.segments.length&&t.hasChildren())return re(t,e,i);var n=function(t,e,i){for(var n=0,r=e,a={match:!1,pathIndex:0,commandIndex:0};r=i.length)return a;var o=t.segments[r],s=ie(i[n]),c=n0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!ce(s,c,o))return a;n+=2}else{if(!ce(s,{},o))return a;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex0?new vt([],{primary:t}):t;return new mt(n,e,i)}},{key:"expandSegmentGroup",value:function(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(w.a)((function(t){return new vt([],t)}))):this.expandSegment(t,i,e,i.segments,n,!0)}},{key:"expandChildren",value:function(t,e,i){var n=this;return function(i,r){if(0===Object.keys(i).length)return Object(c.a)({});var a=[],o=[],s={};return pt(i,(function(i,r){var c,u,l=(c=r,u=i,n.expandSegmentGroup(t,e,u,c)).pipe(Object(w.a)((function(t){return s[r]=t})));"primary"===r?a.push(l):o.push(l)})),c.a.apply(null,a.concat(o)).pipe(Object(_.a)(),function(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?Object(S.a)((function(e,i){return t(e,i,n)})):D.a,R(1),i?Object(O.a)(e):Object(I.a)((function(){return new b.a})))}}(),Object(w.a)((function(){return s})))}(i.children)}},{key:"expandSegment",value:function(t,e,n,r,a,o){var s=this;return Object(c.a).apply(void 0,i(n)).pipe(Object(F.a)((function(i){return s.expandSegmentAgainstRoute(t,e,n,i,r,a,o).pipe(Object(L.a)((function(t){if(t instanceof be)return Object(c.a)(null);throw t})))})),Object(z.a)((function(t){return!!t})),Object(L.a)((function(t,i){if(t instanceof b.a||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,a))return Object(c.a)(new vt([],{}));throw new be(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,i){return 0===e.length&&!t.children[i]}},{key:"expandSegmentAgainstRoute",value:function(t,e,i,n,r,a,o){return Ee(n)!==a?ve(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,a):ve(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,a){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,i,n){var r=this,a=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ye(a):this.lineralizeSegments(i,a).pipe(Object(H.a)((function(i){var a=new vt(i,{});return r.expandSegment(t,a,e,i,n,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,a){var o=this,s=_e(e,n,r),c=s.matched,u=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!c)return ve(e);var d=this.applyRedirectCommands(u,n.redirectTo,h);return n.redirectTo.startsWith("/")?ye(d):this.lineralizeSegments(n,d).pipe(Object(H.a)((function(n){return o.expandSegment(t,e,i,n.concat(r.slice(l)),a,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,i,n){var r=this;if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(w.a)((function(t){return i._loadedConfig=t,new vt(n,{})}))):Object(c.a)(new vt(n,{}));var a=_e(e,i,n),o=a.matched,s=a.consumedSegments,u=a.lastChild;if(!o)return ve(e);var l=n.slice(u);return this.getChildConfig(t,i,n).pipe(Object(H.a)((function(t){var i=t.module,n=t.routes,a=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some((function(i){return ke(t,e,i)&&"primary"!==Ee(i)}))}(t,i,n)?{segmentGroup:Se(new vt(e,function(t,e){var i={};i.primary=e;var n,r=d(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;""===a.path&&"primary"!==Ee(a)&&(i[Ee(a)]=new vt([],{}))}}catch(o){r.e(o)}finally{r.f()}return i}(n,new vt(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some((function(i){return ke(t,e,i)}))}(t,i,n)?{segmentGroup:Se(new vt(t.segments,function(t,e,i,n){var r,a={},o=d(i);try{for(o.s();!(r=o.n()).done;){var s=r.value;ke(t,e,s)&&!n[Ee(s)]&&(a[Ee(s)]=new vt([],{}))}}catch(c){o.e(c)}finally{o.f()}return Object.assign(Object.assign({},n),a)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,s,l,n),o=a.segmentGroup,u=a.slicedSegments;return 0===u.length&&o.hasChildren()?r.expandChildren(i,n,o).pipe(Object(w.a)((function(t){return new vt(s,t)}))):0===n.length&&0===u.length?Object(c.a)(new vt(s,{})):r.expandSegment(i,o,n,u,"primary",!0).pipe(Object(w.a)((function(t){return new vt(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,i){var n=this;return e.children?Object(c.a)(new he(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(c.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Object(H.a)((function(i){return i?n.configLoader.load(t.injector,e).pipe(Object(w.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new p.a((function(e){return e.error(ct("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Object(c.a)(new he([],t))}},{key:"runCanLoadGuards",value:function(t,e,i){var n=this,r=e.canLoad;if(!r||0===r.length)return Object(c.a)(!0);var a=r.map((function(n){var r,a=t.get(n);if(function(t){return t&&de(t.canLoad)}(a))r=a.canLoad(e,i);else{if(!de(a))throw new Error("Invalid CanLoad guard");r=a(e,i)}return gt(r)}));return Object(c.a)(a).pipe(ge(),Object(B.a)((function(t){if(fe(t)){var e=ct('Redirecting to "'.concat(n.urlSerializer.serialize(t),'"'));throw e.url=t,e}})),Object(w.a)((function(t){return!0===t})))}},{key:"lineralizeSegments",value:function(t,e){for(var i=[],n=e.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Object(c.a)(i);if(n.numberOfChildren>1||!n.children.primary)return Ae(t.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,i,n){var r=this.createSegmentGroup(t,e.root,i,n);return new mt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var i={};return pt(t,(function(t,n){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);i[n]=e[r]}else i[n]=t})),i}},{key:"createSegmentGroup",value:function(t,e,i,n){var r=this,a=this.createSegments(t,e.segments,i,n),o={};return pt(e.children,(function(e,a){o[a]=r.createSegmentGroup(t,e,i,n)})),new vt(a,o)}},{key:"createSegments",value:function(t,e,i,n){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,n):r.findOrReturn(e,i)}))}},{key:"findPosParam",value:function(t,e,i){var n=i[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return n}},{key:"findOrReturn",value:function(t,e){var i,n=0,r=d(e);try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a.path===t.path)return e.splice(n),a;n++}}catch(o){r.e(o)}finally{r.f()}return t}}]),t}();function _e(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||ut)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Se(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new vt(t.segments.concat(e.segments),e.children)}return t}function ke(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function Ee(t){return t.outlet||"primary"}var Re=function t(e){g(this,t),this.path=e,this.route=this.path[this.path.length-1]},Ce=function t(e,i){g(this,t),this.component=e,this.route=i};function Te(t,e,i){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Ie(t,e,i){var n=jt(t),r=t.value;pt(n,(function(t,n){Ie(t,r.component?e?e.children.getContext(n):null:e,i)})),i.canDeactivateChecks.push(new Ce(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Oe(t,e){return null!==t&&e&&e(new nt(t)),Object(c.a)(!0)}function De(t,e){return null!==t&&e&&e(new et(t)),Object(c.a)(!0)}function Me(t,e,i){var n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return Object(c.a)(!0);var r=n.map((function(n){return Object(v.a)((function(){var r,a=Te(n,e,i);if(function(t){return t&&de(t.canActivate)}(a))r=gt(a.canActivate(e,t));else{if(!de(a))throw new Error("Invalid CanActivate guard");r=gt(a(e,t))}return r.pipe(Object(z.a)())}))}));return Object(c.a)(r).pipe(ge())}function Pe(t,e,i){var n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return Object(v.a)((function(){var r=e.guards.map((function(r){var a,o=Te(r,e.node,i);if(function(t){return t&&de(t.canActivateChild)}(o))a=gt(o.canActivateChild(n,t));else{if(!de(o))throw new Error("Invalid CanActivateChild guard");a=gt(o(n,t))}return a.pipe(Object(z.a)())}));return Object(c.a)(r).pipe(ge())}))}));return Object(c.a)(r).pipe(ge())}var xe=function t(){g(this,t)},Ne=function(){function t(e,i,n,r,a,o){g(this,t),this.rootComponentType=e,this.config=i,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return m(t,[{key:"recognize",value:function(){try{var t=ze(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new qt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Bt(i,e),r=new Jt(this.url,n);return this.inheritParamsAndData(r._root),Object(c.a)(r)}catch(a){return new p.a((function(t){return t.error(a)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,i=t.value,n=Vt(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}},{key:"processChildren",value:function(t,e){var i,n=this,r=wt(e,(function(e,i){return n.processSegmentGroup(t,e,i)}));return i={},r.forEach((function(t){var e=i[t.value.outlet];if(e){var n=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(n,"' and '").concat(r,"'."))}i[t.value.outlet]=t.value})),r.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),r}},{key:"processSegment",value:function(t,e,i,n){var r,a=d(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;try{return this.processSegmentAgainstRoute(o,e,i,n)}catch(s){if(!(s instanceof xe))throw s}}}catch(c){a.e(c)}finally{a.f()}if(this.noLeftoversInUrl(e,i,n))return[];throw new xe}},{key:"noLeftoversInUrl",value:function(t,e,i){return 0===e.length&&!t.children[i]}},{key:"processSegmentAgainstRoute",value:function(t,e,i,n){if(t.redirectTo)throw new xe;if((t.outlet||"primary")!==n)throw new xe;var r,a=[],o=[];if("**"===t.path){var s=i.length>0?ft(i).parameters:{};r=new qt(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,je(t),n,t.component,t,Le(e),Fe(e)+i.length,Ge(t))}else{var c=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new xe;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||ut)(i,t,e);if(!n)throw new xe;var r={};pt(n.posParams,(function(t,e){r[e]=t.path}));var a=n.consumed.length>0?Object.assign(Object.assign({},r),n.consumed[n.consumed.length-1].parameters):r;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:a}}(e,t,i);a=c.consumedSegments,o=i.slice(c.lastChild),r=new qt(a,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,je(t),n,t.component,t,Le(e),Fe(e)+a.length,Ge(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=ze(e,a,o,u,this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return[new Bt(r,f)]}if(0===u.length&&0===d.length)return[new Bt(r,[])];var p=this.processSegment(u,h,d,"primary");return[new Bt(r,p)]}}]),t}();function Le(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Fe(t){for(var e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)i+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return i-1}function ze(t,e,i,n,r){if(i.length>0&&function(t,e,i){return i.some((function(i){return He(t,e,i)&&"primary"!==Be(i)}))}(t,i,n)){var a=new vt(e,function(t,e,i,n){var r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;var a,o=d(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Be(s)){var c=new vt([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,r[Be(s)]=c}}}catch(u){o.e(u)}finally{o.f()}return r}(t,e,n,new vt(i,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some((function(i){return He(t,e,i)}))}(t,i,n)){var o=new vt(t.segments,function(t,e,i,n,r,a){var o,s={},c=d(n);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(He(t,i,u)&&!r[Be(u)]){var l=new vt([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[Be(u)]=l}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},r),s)}(t,e,i,n,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}var s=new vt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function He(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function Be(t){return t.outlet||"primary"}function je(t){return t.data||{}}function Ge(t){return t.resolve||{}}function Ue(t){return function(e){return e.pipe(Object(M.a)((function(e){var i=t(e);return i?Object(l.a)(i).pipe(Object(w.a)((function(){return e}))):Object(l.a)([e])})))}}var Ke,Ve=function t(){g(this,t)},qe=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(function(){function t(){g(this,t)}return m(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),Je=((Ke=function t(){g(this,t)}).\u0275fac=function(t){return new(t||Ke)},Ke.\u0275cmp=o.Gb({type:Ke,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&o.Nb(0,"router-outlet")},directives:function(){return[vi]},encapsulation:2}),Ke);function We(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=0;i4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Ne(t,e,i,n,r,a).recognize()}(t,i,n.urlAfterRedirects,(o=n.urlAfterRedirects,e.serializeUrl(o)),r,a).pipe(Object(w.a)((function(t){return Object.assign(Object.assign({},n),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(B.a)((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Object(B.a)((function(t){var n=new W(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);i.next(n)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,h=t.source,d=t.restoredState,f=t.extras,p=new K(u,e.serializeUrl(l),h,d);i.next(p);var g=Ut(l,e.rootComponentType).snapshot;return Object(c.a)(Object.assign(Object.assign({},t),{targetSnapshot:g,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),y.a})),Ue((function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,a=t.rawUrl,o=t.extras,s=o.skipLocationChange,c=o.replaceUrl;return e.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!c})})),Object(B.a)((function(t){var i=new Z(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})),Object(w.a)((function(t){return Object.assign(Object.assign({},t),{guards:(i=t.targetSnapshot,n=t.currentSnapshot,r=e.rootContexts,a=i._root,function t(e,i,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=jt(i);return e.children.forEach((function(e){!function(e,i,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,s=i?i.value:null,c=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var u=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!At(t.url,e.url);case"pathParamsOrQueryParamsChange":return!At(t.url,e.url)||!lt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!lt(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?a.canActivateChecks.push(new Re(r)):(o.data=s.data,o._resolvedData=s._resolvedData),t(e,i,o.component?c?c.children:null:n,r,a),u&&c&&c.outlet&&c.outlet.isActivated&&a.canDeactivateChecks.push(new Ce(c.outlet.component,s))}else s&&Ie(i,c,a),a.canActivateChecks.push(new Re(r)),t(e,null,o.component?c?c.children:null:n,r,a)}(e,o[e.value.outlet],n,r.concat([e.value]),a),delete o[e.value.outlet]})),pt(o,(function(t,e){return Ie(t,n.getContext(e),a)})),a}(a,n?n._root:null,r,[a.value]))});var i,n,r,a})),function(t,e){return function(i){return i.pipe(Object(H.a)((function(i){var n=i.targetSnapshot,r=i.currentSnapshot,a=i.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Object(c.a)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(l.a)(t).pipe(Object(H.a)((function(t){return function(t,e,i,n,r){var a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object(c.a)(!0);var o=a.map((function(a){var o,s=Te(a,e,r);if(function(t){return t&&de(t.canDeactivate)}(s))o=gt(s.canDeactivate(t,e,i,n));else{if(!de(s))throw new Error("Invalid CanDeactivate guard");o=gt(s(t,e,i,n))}return o.pipe(Object(z.a)())}));return Object(c.a)(o).pipe(ge())}(t.component,t.route,i,e,n)})),Object(z.a)((function(t){return!0!==t}),!0))}(s,n,r,t).pipe(Object(H.a)((function(i){return i&&"boolean"==typeof i?function(t,e,i,n){return Object(l.a)(e).pipe(Object(F.a)((function(e){return Object(l.a)([De(e.route.parent,n),Oe(e.route,n),Pe(t,e.path,i),Me(t,e.route,i)]).pipe(Object(_.a)(),Object(z.a)((function(t){return!0!==t}),!0))})),Object(z.a)((function(t){return!0!==t}),!0))}(n,o,t,e):Object(c.a)(i)})),Object(w.a)((function(t){return Object.assign(Object.assign({},i),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Object(B.a)((function(t){if(fe(t.guardsResult)){var i=ct('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw i.url=t.guardsResult,i}})),Object(B.a)((function(t){var i=new Y(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)})),Object(S.a)((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var n=new q(t.id,e.serializeUrl(t.extractedUrl),"");return i.next(n),t.resolve(!1),!1}return!0})),Ue((function(t){if(t.guards.canActivateChecks.length)return Object(c.a)(t).pipe(Object(B.a)((function(t){var i=new X(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})),Object(M.a)((function(t){var n,r,a=!1;return Object(c.a)(t).pipe((n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(Object(H.a)((function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;if(!i.length)return Object(c.a)(t);var a=0;return Object(l.a)(i).pipe(Object(F.a)((function(t){return function(t,e,i,n){return function(t,e,i,n){var r=Object.keys(t);if(0===r.length)return Object(c.a)({});var a={};return Object(l.a)(r).pipe(Object(H.a)((function(r){return function(t,e,i,n){var r=Te(t,e,n);return gt(r.resolve?r.resolve(e,i):r(e,i))}(t[r],e,i,n).pipe(Object(B.a)((function(t){a[r]=t})))})),R(1),Object(H.a)((function(){return Object.keys(a).length===r.length?Object(c.a)(a):y.a})))}(t._resolve,t,e,n).pipe(Object(w.a)((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Vt(t,i).resolve),null})))}(t.route,e,n,r)})),Object(B.a)((function(){return a++})),R(1),Object(H.a)((function(e){return a===i.length?Object(c.a)(t):y.a})))})))}),Object(B.a)({next:function(){return a=!0},complete:function(){if(!a){var n=new q(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");i.next(n),t.resolve(!1)}}}))})),Object(B.a)((function(t){var i=new Q(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})))})),Ue((function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,a=t.rawUrl,o=t.extras,s=o.skipLocationChange,c=o.replaceUrl;return e.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!c})})),Object(w.a)((function(t){var i=function(t,e,i){var n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=i.value;var a=function(e,i,n){return i.children.map((function(i){var r,a=d(n.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(e.shouldReuseRoute(o.value.snapshot,i.value))return t(e,i,o)}}catch(s){a.e(s)}finally{a.f()}return t(e,i)}))}(e,i,n);return new Bt(r,a)}var o=e.retrieve(i.value);if(o){var s=o.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,r=e.queryParams,a=e.fragment,s=e.preserveQueryParams,c=e.queryParamsHandling,u=e.preserveFragment;Object(o.W)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,h=u?this.currentUrlTree.fragment:a,d=null;if(c)switch(c){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}else d=s?this.currentUrlTree.queryParams:r||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,a){if(0===n.length)return $t(e.root,e.root,e,r,a);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new te(!0,0,t);var e=0,n=!1,r=t.reduce((function(t,r,a){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return pt(r.outlets,(function(t,e){o[e]="string"==typeof t?t.split("/"):t})),[].concat(i(t),[{outlets:o}])}if(r.segmentPath)return[].concat(i(t),[r.segmentPath])}return"string"!=typeof r?[].concat(i(t),[r]):0===a?(r.split("/").forEach((function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):[].concat(i(t),[r])}),[]);return new te(n,e,r)}(n);if(o.toRoot())return $t(e.root,new vt([],{}),e,r,a);var s=function(t,e,i){if(t.isAbsolute)return new ee(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){var n=i.snapshot._urlSegment;return new ee(n,n===e.root,0)}var r=Qt(t.commands[0])?0:1;return function(t,e,i){for(var n=t,r=e,a=i;a>r;){if(a-=r,!(n=n.parent))throw new Error("Invalid number of '../'");r=n.segments.length}return new ee(n,!1,r-a)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),c=s.processChildren?re(s.segmentGroup,s.index,o.commands):ne(s.segmentGroup,s.index,o.commands);return $t(s.segmentGroup,c,e,r,a)}(l,this.currentUrlTree,t,d,h)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(o.W)()&&this.isNgZoneEnabled&&!o.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var i=fe(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};g(this,t),this.router=e,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return m(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof K?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof V&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof at&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new at(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||gi)(o.Wb(ui),o.Wb(r.H),o.Wb(void 0))},gi.\u0275prov=o.Ib({token:gi,factory:gi.\u0275fac}),gi),ki=new o.r("ROUTER_CONFIGURATION"),Ei=new o.r("ROUTER_FORROOT_GUARD"),Ri=[r.n,{provide:_t,useClass:St},{provide:ui,useFactory:function(t,e,i,n,a,o,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,h=new ui(null,t,e,i,n,a,o,dt(s));if(u&&(h.urlHandlingStrategy=u),l&&(h.routeReuseStrategy=l),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){var d=Object(r.M)();h.events.subscribe((function(t){d.logGroup("Router Event: "+t.constructor.name),d.log(t.toString()),d.log(t),d.logGroupEnd()}))}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[_t,ei,r.n,o.s,o.x,o.i,Qe,ki,[function(){return function t(){g(this,t)}}(),new o.B],[Ve,new o.B]]},ei,{provide:Kt,useFactory:function(t){return t.routerState.root},deps:[ui]},{provide:o.x,useClass:o.L},_i,wi,function(){function t(){g(this,t)}return m(t,[{key:"preload",value:function(t,e){return e().pipe(Object(L.a)((function(){return Object(c.a)(null)})))}}]),t}(),{provide:ki,useValue:{enableTracing:!1}}];function Ci(){return new o.z("Router",ui)}var Ti,Ii=((Ti=function(){function t(e,i){g(this,t)}return m(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[Ri,Pi(e),{provide:Ei,useFactory:Mi,deps:[[ui,new o.B,new o.K]]},{provide:ki,useValue:i||{}},{provide:r.o,useFactory:Di,deps:[r.D,[new o.q(r.a),new o.B],ki]},{provide:Si,useFactory:Oi,deps:[ui,r.H,ki]},{provide:Ai,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:wi},{provide:o.z,multi:!0,useFactory:Ci},[Ni,{provide:o.d,multi:!0,useFactory:Li,deps:[Ni]},{provide:zi,useFactory:Fi,deps:[Ni]},{provide:o.b,multi:!0,useExisting:zi}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Pi(e)]}}}]),t}()).\u0275mod=o.Kb({type:Ti}),Ti.\u0275inj=o.Jb({factory:function(t){return new(t||Ti)(o.Wb(Ei,8),o.Wb(ui,8))}}),Ti);function Oi(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Si(t,e,i)}function Di(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new r.h(t,e):new r.B(t,e)}function Mi(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Pi(t){return[{provide:o.a,multi:!0,useValue:t},{provide:Qe,multi:!0,useValue:t}]}var xi,Ni=((xi=function(){function t(e){g(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new A.a}return m(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(r.m,Promise.resolve(null)).then((function(){var e=null,i=new Promise((function(t){return e=t})),n=t.injector.get(ui),r=t.injector.get(ki);if(t.isLegacyDisabled(r)||t.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));n.hooks.afterPreactivation=function(){return t.initNavigation?Object(c.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return i}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(ki),i=this.injector.get(_i),n=this.injector.get(Si),r=this.injector.get(ui),a=this.injector.get(o.g);t===a.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}()).\u0275fac=function(t){return new(t||xi)(o.Wb(o.s))},xi.\u0275prov=o.Ib({token:xi,factory:xi.\u0275fac}),xi);function Li(t){return t.appInitializer.bind(t)}function Fi(t){return t.bootstrapListener.bind(t)}var zi=new o.r("Router Initializer")},sWLk:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},seVz:function(t,e,r){"use strict";r.d(e,"a",(function(){return w})),r.d(e,"b",(function(){return T})),r.d(e,"c",(function(){return R})),r.d(e,"d",(function(){return M})),r.d(e,"e",(function(){return C})),r.d(e,"f",(function(){return k})),r.d(e,"g",(function(){return _})),r.d(e,"h",(function(){return O})),r.d(e,"i",(function(){return D})),r.d(e,"j",(function(){return A}));var o=r("cqs0"),c=r("9bRT"),u=r("ZTXN"),l=r("C05f"),d=r("ROBh"),f=(r("J+dc"),r("xVbo"),r("kuMc")),p=r("EM62"),b=r("5XID"),v=r("sg/T"),y=r("E5oP"),A=function(t){a(n,t);var e=s(n);function n(t,i){var r;return g(this,n),(r=e.call(this)).getLevel=t,r.isExpandable=i,r}return m(n,[{key:"getDescendants",value:function(t){for(var e=[],i=this.dataNodes.indexOf(t)+1;i1)throw Error("There can only be one default row without a when predicate function.");this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var t,e=this;if(Object(o.e)(this._dataSource)?t=this._dataSource.connect(this):Object(c.a)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Object(d.a)(this._dataSource)),!t)throw Error("A valid data source must be provided.");this._dataSubscription=t.pipe(Object(f.a)(this._onDestroy)).subscribe((function(t){return e.renderNodeChanges(t)}))}},{key:"renderNodeChanges",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,a=i.diff(t);a&&(a.forEachOperation((function(i,a,o){if(null==i.previousIndex)e.insertNode(t[o],o,n,r);else if(null==o)n.remove(a),e._levels.delete(i.item);else{var s=n.get(a);n.move(s,o)}})),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(t,e){if(1===this._nodeDefs.length)return this._nodeDefs.first;var i=this._nodeDefs.find((function(i){return i.when&&i.when(e,t)}))||this._defaultNodeDef;if(!i)throw Error("Could not find a matching node definition for the provided node data.");return i}},{key:"insertNode",value:function(t,e,i,n){var r=this._getNodeDef(t,e),a=new S(t);a.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,a.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,a,e),C.mostRecentTreeNode&&(C.mostRecentTreeNode.data=t)}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Mb(p.t),p.Mb(p.h))},t.\u0275cmp=p.Gb({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){var n;1&t&&p.Fb(i,k,!0),2&t&&p.sc(n=p.ac())&&(e._nodeDefs=n)},viewQuery:function(t,e){var i;1&t&&p.Dc(_,!0),2&t&&p.sc(i=p.ac())&&(e._nodeOutlet=i.first)},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&p.Ob(0,0)},directives:[_],encapsulation:2}),t}(),C=function(){var t=function(){function t(e,i){g(this,t),this._elementRef=e,this._tree=i,this._destroyed=new u.a,this._dataChanges=new u.a,this.role="treeitem",t.mostRecentTreeNode=this}return m(t,[{key:"ngOnDestroy",value:function(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){var t=this;if(this._tree.treeControl.isExpandable)this.role=this._tree.treeControl.isExpandable(this._data)?"group":"treeitem";else{if(!this._tree.treeControl.getChildren)throw E();var e=this._tree.treeControl.getChildren(this._data);Array.isArray(e)?this._setRoleFromChildren(e):Object(c.a)(e)&&e.pipe(Object(f.a)(this._destroyed)).subscribe((function(e){return t._setRoleFromChildren(e)}))}}},{key:"_setRoleFromChildren",value:function(t){this.role=t&&t.length?"group":"treeitem"}},{key:"data",get:function(){return this._data},set:function(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Mb(p.l),p.Mb(R))},t.\u0275dir=p.Hb({type:t,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:3,hostBindings:function(t,e){2&t&&p.Bb("aria-expanded",e.isExpanded)("aria-level","treeitem"===e.role?e.level:null)("role",e.role)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t}(),T=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t,n))._elementRef=t,a._tree=n,a._differs=r,a}return m(i,[{key:"ngAfterContentInit",value:function(){var t=this;if(this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),!this._tree.treeControl.getChildren)throw E();var e=this._tree.treeControl.getChildren(this.data);Array.isArray(e)?this.updateChildrenNodes(e):Object(c.a)(e)&&e.pipe(Object(f.a)(this._destroyed)).subscribe((function(e){return t.updateChildrenNodes(e)})),this.nodeOutlet.changes.pipe(Object(f.a)(this._destroyed)).subscribe((function(){return t.updateChildrenNodes()}))}},{key:"ngOnDestroy",value:function(){this._clear(),n(h(i.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(t){var e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}},{key:"_clear",value:function(){var t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var t=this,e=this.nodeOutlet;return e&&e.find((function(e){return!e._node||e._node===t}))}}]),i}(C);return t.\u0275fac=function(e){return new(e||t)(p.Mb(p.l),p.Mb(R),p.Mb(p.t))},t.\u0275dir=p.Hb({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){var n;1&t&&p.Fb(i,_,!0),2&t&&p.sc(n=p.ac())&&(e.nodeOutlet=n)},hostAttrs:[1,"cdk-tree-node","cdk-nested-tree-node"],hostVars:2,hostBindings:function(t,e){2&t&&p.Bb("aria-expanded",e.isExpanded)("role",e.role)},exportAs:["cdkNestedTreeNode"],features:[p.zb([{provide:C,useExisting:t},{provide:w,useExisting:t}]),p.xb]}),t}(),I=/([A-Za-z%]+)$/,O=function(){var t=function(){function t(e,i,n,r,a){var o=this;g(this,t),this._treeNode=e,this._tree=i,this._element=r,this._dir=a,this._destroyed=new u.a,this.indentUnits="px",this._indent=40,this._setPadding(),a&&a.change.pipe(Object(f.a)(this._destroyed)).subscribe((function(){return o._setPadding(!0)})),e._dataChanges.subscribe((function(){return o._setPadding()}))}return m(t,[{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?"".concat(e*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._paddingIndent();if(e!==this._currentPadding||t){var i=this._element.nativeElement,n=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===n?"paddingRight":"paddingLeft";i.style[n]=e||"",i.style[r]="",this._currentPadding=e}}},{key:"level",get:function(){return this._level},set:function(t){this._level=Object(b.f)(t,null),this._setPadding()}},{key:"indent",get:function(){return this._indent},set:function(t){var e=t,i="px";if("string"==typeof t){var n=t.split(I);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=Object(b.f)(e),this._setPadding()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Mb(C),p.Mb(R),p.Mb(p.F),p.Mb(p.l),p.Mb(y.c,8))},t.\u0275dir=p.Hb({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t}(),D=function(){var t=function(){function t(e,i){g(this,t),this._tree=e,this._treeNode=i,this._recursive=!1}return m(t,[{key:"_toggle",value:function(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}},{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=Object(b.c)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Mb(R),p.Mb(C))},t.\u0275dir=p.Hb({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&p.Zb("click",(function(t){return e._toggle(t)}))},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t}(),M=function(){var t=function t(){g(this,t)};return t.\u0275mod=p.Kb({type:t}),t.\u0275inj=p.Jb({factory:function(e){return new(e||t)},providers:[v.h,k]}),t}()},"sg/T":function(t,e,i){"use strict";i.d(e,"a",(function(){return Z})),i.d(e,"b",(function(){return O})),i.d(e,"c",(function(){return T})),i.d(e,"d",(function(){return j})),i.d(e,"e",(function(){return J})),i.d(e,"f",(function(){return F})),i.d(e,"g",(function(){return D})),i.d(e,"h",(function(){return V})),i.d(e,"i",(function(){return L})),i.d(e,"j",(function(){return W})),i.d(e,"k",(function(){return B})),i.d(e,"l",(function(){return G}));var o=i("2kYt"),c=i("EM62"),u=i("ZTXN"),l=i("bwdy"),d=i("ROBh"),f=i("fAiE"),p=i("8j5Y"),b=i("mWib"),v=i("xVbo"),y=i("YtkY"),A=i("J+dc"),w=i("5XID"),_=i("cZZj"),S=i("TKFd");function k(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var E=0,R=new Map,C=null,T=function(){var t=function(){function t(e){g(this,t),this._document=e}return m(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),R.set(e,{messageElement:e,referenceCount:0})):R.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var i=R.get(e);i&&0===i.referenceCount&&this._deleteMessageElement(e)}C&&0===C.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==i._activeItemIndex&&(i._activeItemIndex=e)}}))}return m(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(p.a)((function(e){return t._pressedLetters.push(e)})),Object(b.a)(e),Object(v.a)((function(){return t._pressedLetters.length>0})),Object(y.a)((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var i=t._getItemsArray(),n=1;n-1}));switch(i){case f.p:return void this.tabOut.next();case f.e:if(this._vertical&&n){this.setNextItemActive();break}return;case f.q:if(this._vertical&&n){this.setPreviousItemActive();break}return;case f.n:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.j:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Object(f.t)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=f.a&&i<=f.r||i>=f.s&&i<=f.k)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),i=1;i<=e.length;i++){var n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof c.E?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),O=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),n(h(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}(I),D=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments))._origin="program",t}return m(i,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){n(h(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}(I),M=function(){var t=function(){function t(e){g(this,t),this._platform=e}return m(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,i=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(i){var n=i&&i.nodeName.toLowerCase();if(-1===x(i))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(i))return!1}var r=t.nodeName.toLowerCase(),a=x(t);if(t.hasAttribute("contenteditable"))return-1!==a;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}},{key:"isFocusable",value:function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||P(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Wb(_.a))},t.\u0275prov=Object(c.Ib)({factory:function(){return new t(Object(c.Wb)(_.a))},token:t,providedIn:"root"}),t}();function P(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function x(t){if(!P(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var N=function(){function t(e,i,n,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];g(this,t),this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return m(t,[{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),i=0;i=0;i--){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(A.a)(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),L=function(){var t=function(){function t(e,i,n){g(this,t),this._checker=e,this._ngZone=i,this._document=n}return m(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new N(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Wb(M),c.Wb(c.A),c.Wb(o.e))},t.\u0275prov=Object(c.Ib)({factory:function(){return new t(Object(c.Wb)(M),Object(c.Wb)(c.A),Object(c.Wb)(o.e))},token:t,providedIn:"root"}),t}(),F=function(){var t=function(){function t(e,i,n){g(this,t),this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return m(t,[{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=Object(w.c)(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=Object(w.c)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(L),c.Mb(o.e))},t.\u0275dir=c.Hb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),t}();"undefined"!=typeof Element&∈var z=new c.r("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),H=new c.r("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),B=function(){var t=function(){function t(e,i,n,r){g(this,t),this._ngZone=i,this._defaultOptions=r,this._document=n,this._liveElement=e||this._createLiveElement()}return m(t,[{key:"announce",value:function(t){for(var e,i,n,a=this,o=this._defaultOptions,s=arguments.length,c=new Array(s>1?s-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Object(d.a)(null);var i=Object(w.e)(t),n=Object(_.c)(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return e&&(r.checkChildren=!0),r.subject.asObservable();var a={checkChildren:e,subject:new u.a,rootNode:n};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=Object(w.e)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}},{key:"focusVia",value:function(t,e,i){var n=Object(w.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,i){return t.stopMonitoring(i)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,i){i?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(t){var e=q(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var i=this._elementInfo.get(e);if(i&&(i.checkChildren||e===q(t))){var n=this._getFocusOrigin(t);this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}}},{key:"_onBlur",value:function(t,e){var i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var i=t.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular((function(){i.addEventListener("focus",e._rootNodeFocusAndBlurListener,K),i.addEventListener("blur",e._rootNodeFocusAndBlurListener,K)})),this._rootNodeFocusListenerCount.set(i,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,K),t.addEventListener("mousedown",e._documentMousedownListener,K),t.addEventListener("touchstart",e._documentTouchstartListener,K),i.addEventListener("focus",e._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var i=this._rootNodeFocusListenerCount.get(e);i>1?this._rootNodeFocusListenerCount.set(e,i-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,K),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,K),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var n=this._getDocument(),r=this._getWindow();n.removeEventListener("keydown",this._documentKeydownListener,K),n.removeEventListener("mousedown",this._documentMousedownListener,K),n.removeEventListener("touchstart",this._documentTouchstartListener,K),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Wb(c.A),c.Wb(_.a),c.Wb(o.e,8),c.Wb(U,8))},t.\u0275prov=Object(c.Ib)({factory:function(){return new t(Object(c.Wb)(c.A),Object(c.Wb)(_.a),Object(c.Wb)(o.e,8),Object(c.Wb)(U,8))},token:t,providedIn:"root"}),t}();function q(t){return t.composedPath?t.composedPath()[0]:t.target}var J=function(){var t=function(){function t(e,i){var n=this;g(this,t),this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new c.o,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return n.cdkFocusChange.emit(t)}))}return m(t,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(V))},t.\u0275dir=c.Hb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),W=function(){var t=function(){function t(e,i){g(this,t),this._platform=e,this._document=i}return m(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Wb(_.a),c.Wb(o.e))},t.\u0275prov=Object(c.Ib)({factory:function(){return new t(Object(c.Wb)(_.a),Object(c.Wb)(o.e))},token:t,providedIn:"root"}),t}(),Z=function(){var t=function t(e){g(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)(c.Wb(W))},imports:[[_.b,S.c]]}),t}()},snnp:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("nIj0"),r=i("OZ4H"),a=i("X2Q7"),o=i("Ssnw"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo"),d=i("YRqw"),f=i("29Wa"),p=i("Cd2c");function b(t,e){1&t&&s.Nb(0,"mat-spinner",5)}function v(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div",6),s.Sb(1,"perun-web-apps-vo-search-select",7),s.Zb("voSelected",(function(t){return s.xc(i),s.dc().selectedVo=t})),s.Rb(),s.Sb(2,"mat-form-field"),s.Nb(3,"input",8),s.ec(4,"translate"),s.Sb(5,"mat-error"),s.Jc(6),s.ec(7,"translate"),s.Rb(),s.Rb(),s.Sb(8,"mat-form-field"),s.Nb(9,"input",8),s.ec(10,"translate"),s.Sb(11,"mat-error"),s.Jc(12),s.ec(13,"translate"),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(1),s.kc("vos",n.vos),s.Ab(2),s.lc("placeholder",s.fc(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),s.kc("formControl",n.nameCtrl),s.Ab(3),s.Lc(" ",s.fc(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),s.Ab(3),s.lc("placeholder",s.fc(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),s.kc("formControl",n.descriptionCtrl),s.Ab(3),s.Lc(" ",s.fc(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}var y=function(){var t=function(){function t(e,i,n,r,a,o){var s=this;g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=a,this.resourcesManager=o,this.vos=[],this.selectedVo=null,a.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe((function(t){return s.successMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe((function(e){t.vos=e,t.loading=!1}),(function(){return t.loading=!1})),this.nameCtrl=new n.g(null,[n.F.required,n.F.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new n.g(null,[n.F.required,n.F.pattern(".*[\\S]+.*")]),this.nameCtrl.markAllAsTouched(),this.descriptionCtrl.markAllAsTouched()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe((function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(o.l),s.Mb(a.q),s.Mb(c.e),s.Mb(a.m))},t.\u0275cmp=s.Gb({type:t,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"long-input",3,"vos","voSelected"],["matInput","","required","",3,"placeholder","formControl"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Hc(1,b,1,0,"mat-spinner",0),s.Hc(2,v,14,15,"div",1),s.Sb(3,"div",2),s.Sb(4,"button",3),s.Zb("click",(function(){return e.onCancel()})),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Kc(s.fc(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")),s.Ab(2),s.kc("disabled",e.nameCtrl.invalid||e.descriptionCtrl.invalid||null===e.selectedVo||e.loading),s.Ab(1),s.Kc(s.fc(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")))},directives:[u.t,r.c,l.b,h.c,r.g,d.a,f.c,p.b,n.c,n.C,n.r,n.h,f.b],pipes:[c.d],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),t}()},st5j:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("OZ4H"),r=i("X2Q7"),a=i("Ssnw"),o=i("iyZ4"),s=i("cqs0"),c=i("EM62"),u=i("s2Ay"),l=i("2kYt"),h=i("csyo"),d=i("A8Ay"),f=i("5kIe"),p=i("PBFl");function b(t,e){1&t&&c.Nb(0,"mat-spinner",3)}function v(t,e){if(1&t){var i=c.Tb();c.Sb(0,"div"),c.Sb(1,"perun-web-apps-immediate-filter",4),c.Zb("filter",(function(t){return c.xc(i),c.dc().applyFilter(t)})),c.Rb(),c.Sb(2,"div",5),c.Sb(3,"app-owners-list",6),c.Zb("page",(function(t){return c.xc(i),c.dc().pageChanged(t)})),c.Rb(),c.Rb(),c.Sb(4,"div",7),c.Sb(5,"button",8),c.Zb("click",(function(){return c.xc(i),c.dc().onCancel()})),c.Jc(6),c.ec(7,"translate"),c.Rb(),c.Sb(8,"button",9),c.Zb("click",(function(){return c.xc(i),c.dc().onAdd()})),c.Jc(9),c.ec(10,"translate"),c.Rb(),c.Rb(),c.Rb()}if(2&t){var n=c.dc();c.Ab(1),c.kc("placeholder","DIALOGS.ADD_OWNERS.FILTER"),c.Ab(2),c.kc("filterValue",n.filterValue)("pageSize",n.pageSize)("owners",n.owners)("selection",n.selection),c.Ab(3),c.Lc(" ",c.fc(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),c.Ab(2),c.kc("disabled",0===n.selection.selected.length||n.loading),c.Ab(1),c.Lc(" ",c.fc(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}var y=function(){var t=function(){function t(e,i,n,r,a,c,u){var l=this;g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.tableConfigService=r,this.translate=a,this.ownersManagerService=c,this.facilitiesManagerService=u,this.extSources=[],this.selection=new s.c(!0,[]),this.filterValue="",this.tableId=o.d,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe((function(t){return l.successMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe((function(e){t.owners=e.filter((function(e){return!t.data.forbiddenOwners.includes(e.id)})),t.loading=!1}),(function(){return t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onAdd",value:function(){var t=this;this.loading=!0,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe((function(){return t.onAdd()}),(function(){return t.loading=!1})):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(n.i),c.Mb(n.a),c.Mb(a.l),c.Mb(o.pb),c.Mb(u.e),c.Mb(r.j),c.Mb(r.g))},t.\u0275cmp=c.Gb({type:t,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","pageSize","owners","selection","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.Sb(0,"h1",0),c.Jc(1),c.ec(2,"translate"),c.Rb(),c.Sb(3,"div"),c.Hc(4,b,1,0,"mat-spinner",1),c.Hc(5,v,11,12,"div",2),c.Rb()),2&t&&(c.Ab(1),c.Kc(c.fc(2,6,"DIALOGS.ADD_OWNERS.TITLE")),c.Ab(2),c.Cb(e.theme),c.Ab(1),c.kc("ngIf",e.loading),c.Ab(1),c.kc("ngIf",!e.loading))},directives:[n.j,l.t,h.c,d.a,n.g,f.a,n.c,p.b],pipes:[u.d],styles:[""]}),t}()},t47Z:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return s.a})),i.d(e,"a",(function(){return c.a}));var n,r=i("2kYt"),a=i("EM62"),o=((n=function t(){g(this,t)}).\u0275mod=a.Kb({type:n}),n.\u0275inj=a.Jb({factory:function(t){return new(t||n)},imports:[[r.c]]}),n);i("YEcy");var s=i("j+u3"),c=(i("W5/Z"),i("aea8"));i("Y7Yh"),i("C5kn"),i("RK/0"),i("yAs8"),i("NZNE"),i("Log1"),i("SAuR"),i("EFHi"),i("H2Dp")},tDou:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("Ssnw"),a=i("nIj0"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("sEIs"),l=i("2kYt"),h=i("csyo"),d=i("29Wa"),f=i("Cd2c"),p=i("PBFl"),b=i("Y2X+");function v(t,e){1&t&&s.Nb(0,"mat-spinner",3)}function y(t,e){if(1&t){var i=s.Tb();s.Sb(0,"div"),s.Sb(1,"div",4),s.Sb(2,"mat-form-field"),s.Nb(3,"input",5),s.ec(4,"translate"),s.Sb(5,"mat-error"),s.Jc(6),s.ec(7,"translate"),s.Rb(),s.Rb(),s.Sb(8,"mat-form-field"),s.Nb(9,"input",5),s.ec(10,"translate"),s.Sb(11,"mat-error"),s.Jc(12),s.ec(13,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Sb(14,"div",6),s.Sb(15,"button",7),s.Zb("click",(function(){return s.xc(i),s.dc().onCancel()})),s.Jc(16),s.ec(17,"translate"),s.Rb(),s.Sb(18,"div",8),s.ec(19,"translate"),s.Sb(20,"button",9),s.Zb("click",(function(){return s.xc(i),s.dc().onSubmit()})),s.Jc(21),s.ec(22,"translate"),s.Rb(),s.Rb(),s.Rb(),s.Rb()}if(2&t){var n=s.dc();s.Ab(3),s.lc("placeholder",s.fc(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),s.kc("formControl",n.fullNameCtrl),s.Ab(3),s.Lc(" ",s.fc(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),s.Ab(3),s.lc("placeholder",s.fc(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),s.kc("formControl",n.shortNameCtrl),s.Ab(3),s.Lc(" ",s.fc(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),s.Ab(4),s.Lc(" ",s.fc(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),s.Ab(2),s.lc("matTooltip",s.fc(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),s.kc("matTooltipDisabled",n.shortNameCtrl.valid&&n.fullNameCtrl.valid),s.Ab(2),s.kc("disabled",n.shortNameCtrl.invalid||n.fullNameCtrl.invalid),s.Ab(1),s.Lc(" ",s.fc(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}var A=function(){var t=function(){function t(e,i,n,r,a,o){var s=this;g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=a,this.router=o,a.get("DIALOGS.CREATE_VO.SUCCESS").subscribe((function(t){return s.successMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.shortNameCtrl=new a.g(null,[a.F.required,a.F.pattern("^[\\w.-]+$"),a.F.maxLength(33)]),this.fullNameCtrl=new a.g(null,[a.F.required,a.F.pattern(".*[\\S]+.*"),a.F.maxLength(129)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe((function(e){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0),t.router.navigate(["/organizations",e.id])}),(function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(r.l),s.Mb(o.q),s.Mb(c.e),s.Mb(u.f))},t.\u0275cmp=s.Gb({type:t,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","","required","",3,"placeholder","formControl"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,v,1,0,"mat-spinner",1),s.Hc(5,y,23,25,"div",2),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,6,"DIALOGS.CREATE_VO.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading))},directives:[n.j,l.t,h.c,n.g,d.c,f.b,a.c,a.C,a.r,a.h,d.b,n.c,p.b,b.a],pipes:[c.d],styles:[""]}),t}()},tT6Y:function(t,e,i){"use strict";i.d(e,"a",(function(){return G}));var n=i("OF3q"),r=i("4sdY"),a=i("RUSO"),o=i("cqs0"),s=i("yaDT"),c=i("8clQ"),u=i("X2Q7"),l=i("iyZ4"),h=i("nyAh"),d=i("Ssnw"),f=(i("HHEo"),i("EM62")),p=i("OZ4H"),b=i("sEIs"),v=i("0XDM"),y=i("2kYt"),A=i("pynj"),w=i("k8N0"),_=i("nIj0"),S=i("PBFl"),k=i("Y2X+"),E=i("csyo"),R=i("XAvq"),C=i("K9kF"),T=i("FcRk"),I=i("s2Ay"),O=["toggle"],D=["tree"],M=["list"];function P(t,e){if(1&t){var i=f.Tb();f.Sb(0,"button",10),f.Zb("click",(function(){return f.xc(i),f.dc().onCreateGroup()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function x(t,e){if(1&t){var i=f.Tb();f.Sb(0,"button",13),f.Zb("click",(function(){return f.xc(i),f.dc(2).deleteGroup()})),f.Jc(1),f.ec(2,"translate"),f.Rb()}if(2&t){var n=f.dc(2);f.kc("disabled",0===n.selected.selected.length||n.disableRemove()),f.Ab(1),f.Lc(" ",f.fc(2,2,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function N(t,e){if(1&t&&(f.Sb(0,"span",11),f.ec(1,"translate"),f.Hc(2,x,3,4,"button",12),f.Rb()),2&t){var i=f.dc();f.lc("matTooltip",f.fc(1,3,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),f.kc("matTooltipDisabled",void 0===i.tree&&void 0===i.list||i.disableTooltip()),f.Ab(2),f.kc("ngIf",!i.loading)}}function L(t,e){1&t&&f.Nb(0,"mat-spinner",14)}function F(t,e){if(1&t){var i=f.Tb();f.Sb(0,"perun-web-apps-groups-tree",18,19),f.Zb("moveGroup",(function(t){return f.xc(i),f.dc(2).onMoveGroup(t)}))("refreshTable",(function(){return f.xc(i),f.dc(2).loadAllGroups()})),f.Rb()}if(2&t){var n=f.dc(2);f.kc("groups",n.groups)("expandAll",n.filtering)("vo",n.vo)("selection",n.selected)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)}}var z=function(){return["expiration","vo","recent"]};function H(t,e){if(1&t){var i=f.Tb();f.Sb(0,"perun-web-apps-groups-list",20,21),f.Zb("page",(function(t){return f.xc(i),f.dc(2).pageChanged(t)}))("moveGroup",(function(t){return f.xc(i),f.dc(2).onMoveGroup(t)}))("refreshTable",(function(){return f.xc(i),f.dc(2).loadAllGroups()})),f.Rb()}if(2&t){var n=f.dc(2);f.kc("pageSize",n.pageSize)("groups",n.groups)("selection",n.selected)("disableMembers",!0)("hideColumns",f.oc(8,z))("disableRouting",!n.routeAuth)("authType","vo-groups")("filter",n.filterValue)}}function B(t,e){if(1&t&&(f.Sb(0,"div",15),f.Hc(1,F,2,6,"perun-web-apps-groups-tree",16),f.Hc(2,H,2,9,"perun-web-apps-groups-list",17),f.Rb()),2&t){var i=f.dc();f.Ab(1),f.kc("ngIf",!i.showGroupList),f.Ab(1),f.kc("ngIf",i.showGroupList)}}function j(t,e){1&t&&(f.Sb(0,"app-alert",22),f.Jc(1),f.ec(2,"translate"),f.Rb()),2&t&&(f.Ab(1),f.Lc(" ",f.fc(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}var G=function(){var t=function(){function t(e,i,n,r,a,s,c,u){g(this,t),this.dialog=e,this.groupService=i,this.sideMenuService=n,this.voService=r,this.route=a,this.tableConfigService=s,this.authResolver=c,this.initAuthService=u,this.groups=[],this.showGroupList=!1,this.selected=new o.c(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=l.jb}return m(t,[{key:"onCreateGroup",value:function(){var t=this,e=Object(c.o)();e.width="450px",e.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.a,e).afterClosed().subscribe((function(e){e&&(t.loading=!0,t.loadAllGroups())}))}},{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe((function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree"),t.loadAllGroups()})),this.route.parent.params.subscribe((function(e){t.voService.getVoById(e.voId).subscribe((function(e){t.vo=e,t.loadAllGroups()}))}))}},{key:"setAuthRights",value:function(){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]]))}},{key:"disableRemove",value:function(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}},{key:"disableTooltip",value:function(){return void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}},{key:"deleteGroup",value:function(){var t=this,e=Object(c.o)();e.width="450px",e.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(a.a,e).afterClosed().subscribe((function(e){e&&t.loadAllGroups()}))}},{key:"removeAllGroups",value:function(){this.selected.clear()}},{key:"onMoveGroup",value:function(t){var e=this,i=Object(c.o)();i.width="550px",i.data={group:t,theme:"vo-theme"},this.dialog.open(s.a,i).afterClosed().subscribe((function(t){t&&e.loadAllGroups()}))}},{key:"loadAllGroups",value:function(){var t=this;this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[h.a.GROUP_SYNC_ENABLED,h.a.GROUP_LAST_SYNC_STATE,h.a.GROUP_LAST_SYNC_TIMESTAMP,h.a.GROUP_STRUCTURE_SYNC_ENABLED,h.a.GROUP_LAST_STRUCTURE_SYNC_STATE,h.a.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe((function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1}))}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(f.Mb(p.b),f.Mb(u.h),f.Mb(r.a),f.Mb(u.q),f.Mb(b.a),f.Mb(l.pb),f.Mb(d.h),f.Mb(d.i))},t.\u0275cmp=f.Gb({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){var i;1&t&&(f.Dc(O,!0),f.Qc(D,!0),f.Qc(M,!0)),2&t&&(f.sc(i=f.ac())&&(e.toggle=i.first),f.sc(i=f.ac())&&(e.tree=i.first),f.sc(i=f.ac())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&f.Eb("router-component",!0)},decls:18,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","hideColumns","disableRouting","authType","filter","page","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","hideColumns","disableRouting","authType","filter","page","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(f.Sb(0,"div"),f.Sb(1,"h1",0),f.Jc(2),f.ec(3,"translate"),f.Rb(),f.Sb(4,"perun-web-apps-refresh-button",1),f.Zb("refresh",(function(){return e.loadAllGroups()})),f.Rb(),f.Hc(5,P,3,3,"button",2),f.Hc(6,N,3,5,"span",3),f.Sb(7,"perun-web-apps-debounce-filter",4),f.Zb("filter",(function(t){return e.applyFilter(t)})),f.Rb(),f.Sb(8,"mat-slide-toggle",5,6),f.Zb("change",(function(){return e.removeAllGroups()}))("ngModelChange",(function(t){return e.showGroupList=t})),f.Jc(10),f.ec(11,"translate"),f.Rb(),f.Sb(12,"label"),f.Jc(13),f.ec(14,"translate"),f.Rb(),f.Hc(15,L,1,0,"mat-spinner",7),f.Hc(16,B,3,2,"div",8),f.Hc(17,j,3,3,"app-alert",9),f.Rb()),2&t){var i=f.tc(9);f.Ab(2),f.Kc(f.fc(3,11,"VO_DETAIL.GROUPS.TITLE")),f.Ab(3),f.kc("ngIf",!e.loading&&e.createAuth),f.Ab(1),f.kc("ngIf",!e.loading),f.Ab(1),f.kc("placeholder","VO_DETAIL.GROUPS.FILTER"),f.Ab(1),f.kc("ngModel",e.showGroupList),f.Ab(2),f.Kc(f.fc(11,13,"VO_DETAIL.GROUPS.TREE_VIEW")),f.Ab(2),f.Bb("for",i.inputId),f.Ab(1),f.Kc(f.fc(14,15,"VO_DETAIL.GROUPS.LIST_VIEW")),f.Ab(2),f.kc("ngIf",e.loading),f.Ab(1),f.kc("ngIf",!e.loading&&0!==e.groups.length),f.Ab(1),f.kc("ngIf",0===e.groups.length&&!e.loading)}},directives:[v.a,y.t,A.a,w.a,_.r,_.u,S.b,k.a,E.c,R.a,C.a,T.a],pipes:[I.d],styles:[""]}),t}()},tmvS:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("EM62"),a=i("Ssnw"),o=i("8clQ"),s=i("+0js"),c=i("OZ4H"),u=i("2kYt"),l=i("bFHC"),h=i("s2Ay");function d(t,e){if(1&t&&(n.Sb(0,"div",5),n.Sb(1,"mat-icon"),n.Jc(2),n.Rb(),n.Rb()),2&t){var i=n.dc();n.Ab(2),n.Kc(i.data.icon)}}function f(t,e){if(1&t&&(n.Sb(0,"div",6),n.Jc(1),n.Rb()),2&t){var i=n.dc();n.Ab(1),n.Lc(" ",i.showTimestamp()," ")}}var p=function(){var t=function(){function t(e,i){g(this,t),this.dialog=e,this.notificationStorageService=i,this.newNotification=!1,this.closeNotification=new n.o,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return m(t,[{key:"doAction",value:function(){var t=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var e=Object(o.o)();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(s.j,e).afterClosed().subscribe((function(){t.closeSelf()}))}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var t=this;Object(o.h)(this.data.delay,(function(){t.alreadyClosed||t.waiting||t.closeSelf()}))}},{key:"showTimestamp",value:function(){var t=r(this.data.timeStamp.split(":"),2),e=t[0],i=t[1];return i.length<2?e+":0"+i:this.data.timeStamp}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Mb(c.b),n.Mb(a.k))},t.\u0275cmp=n.Gb({type:t,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"],[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(t,e){1&t&&(n.Sb(0,"div"),n.Sb(1,"div",0),n.Zb("click",(function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()})),n.Hc(2,d,3,1,"div",1),n.Sb(3,"div",2),n.Jc(4),n.ec(5,"translate"),n.Rb(),n.Hc(6,f,2,1,"div",3),n.Sb(7,"div",4),n.Zb("click",(function(){return e.waiting=!0,e.doAction()})),n.Jc(8),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Db("notification ",e.inDialog?"":"mat-elevation-z7",""),n.Eb("error","error"===e.data.type)("success","success"===e.data.type),n.Ab(2),n.kc("ngIf",null!==e.data.icon),n.Ab(2),n.Lc(" ",n.fc(5,12,e.data.title)," "),n.Ab(2),n.kc("ngIf",e.inDialog),n.Ab(1),n.kc("hidden",e.alreadyPressed),n.Ab(1),n.Lc(" ",e.data.actionText," "))},directives:[u.t,l.a],pipes:[h.d],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}"]}),t}()},ulve:function(t,e,n){"use strict";n.d(e,"a",(function(){return B})),n.d(e,"b",(function(){return q})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return V}));var r=n("sg/T"),o=n("5XID"),c=n("EM62"),u=n("mFH5"),l=n("bwdy"),h=n("ZTXN"),d=n("i9xl"),f=n("g6G6"),p=n("ROBh"),b=n("KTx3"),v=n("2kYt"),y=n("HYj3"),A=n("qvOF"),w=n("fAiE"),_=n("cZZj"),S=n("Sv/w"),k=n("nIj0"),E=n("29Wa"),R=n("J+dc"),C=n("TLy2"),T=n("xVbo"),I=n("YtkY"),O=n("8j5Y"),D=n("BwBJ"),M=n("E5oP"),P=["panel"];function x(t,e){if(1&t&&(c.Sb(0,"div",0,1),c.ic(2),c.Rb()),2&t){var i=c.dc();c.kc("id",i.id)("ngClass",i._classList)}}var N=["*"],L=0,F=function t(e,i){g(this,t),this.source=e,this.option=i},z=Object(u.z)((function t(){g(this,t)})),H=new c.r("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),B=function(){var t=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this))._changeDetectorRef=t,a._elementRef=n,a._activeOptionChanges=l.a.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new c.o,a.opened=new c.o,a.closed=new c.o,a.optionActivated=new c.o,a._classList={},a.id="mat-autocomplete-"+L++,a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return m(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new r.b(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})})),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new F(this,t);this.optionSelected.emit(e)}},{key:"_setVisibilityClasses",value:function(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=Object(o.c)(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?t.split(" ").reduce((function(t,e){return t[e.trim()]=!0,t}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),i}(z);return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.h),c.Mb(c.l),c.Mb(H))},t.\u0275cmp=c.Gb({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(c.Fb(i,u.n,!0),c.Fb(i,u.m,!0)),2&t&&(c.sc(n=c.ac())&&(e.options=n),c.sc(n=c.ac())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(c.Dc(c.M,!0),c.Qc(P,!0)),2&t&&(c.sc(i=c.ac())&&(e.template=i.first),c.sc(i=c.ac())&&(e.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[c.zb([{provide:u.g,useExisting:t}]),c.xb],ngContentSelectors:N,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(c.jc(),c.Hc(0,x,3,2,"ng-template"))},directives:[v.q],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}\n"],encapsulation:2,changeDetection:0}),t}(),j=function(){var t=function t(e){g(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l))},t.\u0275dir=c.Hb({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t}(),G=new c.r("mat-autocomplete-scroll-strategy"),U={provide:G,deps:[y.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},K={provide:k.p,useExisting:Object(c.U)((function(){return V})),multi:!0},V=function(){var t=function(){function t(e,n,r,a,o,s,c,u,p,b){var m=this;g(this,t),this._element=e,this._overlay=n,this._viewContainerRef=r,this._zone=a,this._changeDetectorRef=o,this._dir=c,this._formField=u,this._document=p,this._viewportRuler=b,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=l.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new h.a,this._windowBlurHandler=function(){m._canOpenOnNextFocus=m._document.activeElement!==m._element.nativeElement||m.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Object(d.a)((function(){return m.autocomplete&&m.autocomplete.options?Object(f.a).apply(void 0,i(m.autocomplete.options.map((function(t){return t.onSelectionChange})))):m._zone.onStable.asObservable().pipe(Object(R.a)(1),Object(C.a)((function(){return m.optionSelections})))})),this._scrollStrategy=s}return m(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular((function(){return e.addEventListener("blur",t._windowBlurHandler)}))}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var t=this;return Object(f.a)(Object(b.a)(this._document,"click"),Object(b.a)(this._document,"touchend")).pipe(Object(T.a)((function(e){var i=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,n=t._formField?t._formField._elementRef.nativeElement:null;return t._overlayAttached&&i!==t._element.nativeElement&&(!n||!n.contains(i))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(i)})))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then((function(){return e._setTriggerValue(t)}))}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e===w.h&&t.preventDefault(),this.activeOption&&e===w.g&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=e===w.q||e===w.e;this.panelOpen||e===w.p?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}},{key:"_handleInput",value:function(t){var e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=Object(u.w)(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var i=Object(u.x)(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.asObservable().pipe(Object(R.a)(1)),i=this.autocomplete.options.changes.pipe(Object(O.a)((function(){return t._positionStrategy.reapplyLastPosition()})),Object(D.a)(0));return Object(f.a)(e,i).pipe(Object(C.a)((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),Object(R.a)(1)).subscribe((function(e){return t._setValueAndClose(e)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))}},{key:"_attachOverlay",value:function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Object(_.c)(this._element.nativeElement));var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new S.j(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(e.keyCode===w.h||e.keyCode===w.q&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})})))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new y.d({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];e="above"===this.position?n:"below"===this.position?i:[].concat(i,n),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=Object(o.c)(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return Object(f.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(T.a)((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(T.a)((function(){return t._overlayAttached}))):Object(p.a)()).pipe(Object(I.a)((function(t){return t instanceof u.p?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Mb(c.l),c.Mb(y.c),c.Mb(c.Q),c.Mb(c.A),c.Mb(c.h),c.Mb(G),c.Mb(M.c,8),c.Mb(E.a,9),c.Mb(v.e,8),c.Mb(A.h))},t.\u0275dir=c.Hb({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&c.Zb("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&c.Bb("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[c.zb([K]),c.yb]}),t}(),q=function(){var t=function t(){g(this,t)};return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},providers:[U],imports:[[u.o,y.f,u.i,v.c],A.c,u.o,u.i]}),t}()},v0MX:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("FlRo"),a=i("Ssnw"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&s.Nb(0,"th",15)}function p(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.name," ")}}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){1&t&&s.Nb(0,"tr",18)}function y(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,1,0,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Hc(11,b,1,0,"tr",13),s.Hc(12,v,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n,r,a){var o=this;g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.groupService=r,this.translate=a,this.displayedColumns=["name"],a.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe((function(t){return o.successMessage=t}))}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.o(this.data.groups)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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((function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)}),(function(){return t.loading=!1}));else{var e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,i=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,i).subscribe((function(){t.onSubmit(),t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(o.h),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t}()},vNdQ:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("X2Q7"),r=i("OZ4H"),a=i("Ssnw"),o=i("nIj0"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo"),d=i("29Wa"),f=i("Cd2c");function p(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function b(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function v(t,e){if(1&t&&(s.Sb(0,"mat-form-field"),s.Sb(1,"label"),s.Nb(2,"input",9),s.Rb(),s.Hc(3,b,3,3,"mat-error",8),s.Rb()),2&t){var i=s.dc(2);s.Ab(2),s.kc("formControl",i.emailControl),s.Ab(1),s.kc("ngIf",i.emailControl.invalid)}}function y(t,e){1&t&&(s.Sb(0,"mat-error"),s.Jc(1),s.ec(2,"translate"),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function A(t,e){if(1&t&&(s.Sb(0,"mat-form-field"),s.Nb(1,"input",10),s.Hc(2,y,3,3,"mat-error",8),s.Rb()),2&t){var i=s.dc(2);s.Ab(1),s.kc("formControl",i.inputControl),s.Ab(1),s.kc("ngIf",i.inputControl.invalid)}}function w(t,e){if(1&t&&(s.Sb(0,"div",7),s.Hc(1,v,4,2,"mat-form-field",8),s.Hc(2,A,3,2,"mat-form-field",8),s.Rb()),2&t){var i=s.dc();s.Ab(1),s.kc("ngIf",null!==i.emailControl),s.Ab(1),s.kc("ngIf",null!==i.inputControl)}}var _=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=r,this.registrarService=a,this.loading=!1,this.inputControl=null,this.emailControl=null}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new o.g(this.formItemData.value,[o.F.required,o.F.email]):this.inputControl=new o.g(this.formItemData.value,[o.F.required])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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((function(){t.notificator.showSuccess(t.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(r.i),s.Mb(r.a),s.Mb(a.l),s.Mb(c.e),s.Mb(n.l))},t.\u0275cmp=s.Gb({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,p,1,0,"mat-spinner",1),s.Hc(5,w,3,2,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Mc("",s.fc(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName,""),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),s.Ab(1),s.Lc(" ",s.fc(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[r.j,u.t,r.c,l.b,h.c,r.g,d.c,f.b,o.c,o.C,o.r,o.h,d.b],pipes:[c.d],styles:[""]}),t}()},vT4p:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var r=1,o=Promise.resolve(),c={};function u(t){return t in c&&(delete c[t],!0)}var l=function(t){var e=r++;return c[e]=!0,o.then((function(){return u(e)&&t()})),e},d=function(t){u(t)},f=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r}return m(i,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?n(h(i.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=l(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return n(h(i.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(d(e),t.scheduled=void 0)}}]),i}(i("EWqr").a),p=new(function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return m(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.routeAuth=this.guiAuthResolver.isAuthorized("getMemberById_int_policy",[this.group]),this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group]),this.hideColumns=this.removeAuth?["sponsored"]:["checkbox","sponsored"]}},{key:"onSearchByString",value:function(){this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.data="search",this.firstSearchDone=!0,this.refreshTable())}},{key:"onListAll",value:function(){this.data="all",this.firstSearchDone=!0,this.refreshTable()}},{key:"onAddMember",value:function(){var t=this,e=Object(l.o)();e.width="1000px",e.data={voId:this.group.voId,group:this.group,entityId:this.group.id,theme:"group-theme",type:"group"},this.dialog.open(o.a,e).afterClosed().subscribe((function(){t.firstSearchDone&&t.refreshTable()}))}},{key:"onKeyInput",value:function(t){"Enter"===t.key&&this.onSearchByString()}},{key:"onRemoveMembers",value:function(){var t=this,e=Object(l.o)();e.width="450px",e.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(s.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"onInviteMember",value:function(){var t=this,e=Object(l.o)();e.width="650px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.a,e).afterClosed().subscribe((function(e){e&&t.refreshTable()}))}},{key:"refreshTable",value:function(){var t=this;switch(this.loading=!0,this.selection.clear(),this.data){case"all":this.membersManager.getCompleteRichMembersForGroup(this.group.id,!1,this.selectedStatuses,this.selectedGroupStatuses,this.memberAttrNames).subscribe((function(e){t.members=e,t.setAuthRights(),t.loading=!1}),(function(){return t.loading=!1}));break;case"search":this.membersManager.findCompleteRichMembersForGroup(this.group.id,this.memberAttrNames,this.searchControl.value,!1,this.selectedStatuses,this.selectedGroupStatuses).subscribe((function(e){t.members=e,t.setAuthRights(),t.loading=!1}),(function(){return t.loading=!1}));break;default:this.loading=!1}}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"displaySelectedGroupStatuses",value:function(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":""+this.groupStatuses.value[0]}},{key:"isManualAddingBlocked",value:function(t,e){var i=this;return new Promise((function(n,r){i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe((function(t){i.blockManualMemberAdding=null!==t.value,!0!==i.blockManualMemberAdding?(i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe((function(t){i.blockManualMemberAdding=null!==t.value,n()}),(function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()}))):n()}),(function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()}))}))}}]),t}();return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Mb(c.h),f.Mb(p.a),f.Mb(p.f),f.Mb(u.pb),f.Mb(b.b),f.Mb(r.h),f.Mb(r.m),f.Mb(c.i),f.Mb(c.c),f.Mb(r.b),f.Mb(r.l))},t.\u0275cmp=f.Gb({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.Eb("router-component",!0)},decls:49,vars:54,consts:[[3,"keyup"],[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["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-stroked-button","",1,"mr-2",3,"click"],[1,"mr-2","fix-select"],["multiple","",3,"value","formControl","valueChange"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"mt-3"],[3,"disableRouting","hideColumns","pageSize","selection","members","showGroupStatuses","page","updateTable",4,"ngIf"],[3,"disableRouting","hideColumns","pageSize","selection","members","showGroupStatuses","page","updateTable"]],template:function(t,e){1&t&&(f.Sb(0,"div",0),f.Zb("keyup",(function(t){return e.onKeyInput(t)})),f.Sb(1,"h1",1),f.Jc(2),f.ec(3,"translate"),f.Rb(),f.Hc(4,O,3,3,"app-alert",2),f.Sb(5,"div",3),f.Sb(6,"span",4),f.ec(7,"translate"),f.Sb(8,"div",5),f.ec(9,"translate"),f.Hc(10,D,3,4,"button",6),f.Rb(),f.Rb(),f.Sb(11,"span",4),f.ec(12,"translate"),f.Hc(13,M,3,4,"button",6),f.Rb(),f.Sb(14,"span",4),f.ec(15,"translate"),f.Hc(16,P,3,4,"button",7),f.Rb(),f.Sb(17,"button",8),f.Zb("click",(function(){return e.onListAll()})),f.Jc(18),f.ec(19,"translate"),f.Rb(),f.Sb(20,"mat-form-field",9),f.Sb(21,"mat-label"),f.Jc(22),f.ec(23,"translate"),f.Rb(),f.Sb(24,"mat-select",10),f.Zb("valueChange",(function(t){return e.selectedStatuses=t})),f.Sb(25,"mat-select-trigger"),f.Jc(26),f.Rb(),f.Hc(27,x,2,2,"mat-option",11),f.Rb(),f.Rb(),f.Sb(28,"mat-form-field",9),f.Sb(29,"mat-label"),f.Jc(30),f.ec(31,"translate"),f.Rb(),f.Sb(32,"mat-select",10),f.Zb("valueChange",(function(t){return e.selectedGroupStatuses=t})),f.Sb(33,"mat-select-trigger"),f.Jc(34),f.Rb(),f.Hc(35,N,2,2,"mat-option",11),f.Rb(),f.Rb(),f.Sb(36,"mat-form-field",12),f.Sb(37,"label"),f.Nb(38,"input",13),f.ec(39,"translate"),f.Rb(),f.Sb(40,"mat-error"),f.Jc(41),f.ec(42,"translate"),f.Rb(),f.Rb(),f.Sb(43,"button",14),f.Zb("click",(function(){return e.onSearchByString()})),f.Sb(44,"mat-icon"),f.Jc(45,"search"),f.Rb(),f.Rb(),f.Rb(),f.Hc(46,L,1,0,"mat-spinner",15),f.Hc(47,F,3,3,"app-alert",16),f.Hc(48,B,3,2,"div",17),f.Rb()),2&t&&(f.Ab(2),f.Kc(f.fc(3,34,"GROUP_DETAIL.MEMBERS.TITLE")),f.Ab(2),f.kc("ngIf",e.synchEnabled),f.Ab(2),f.lc("matTooltip",f.fc(7,36,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.kc("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.Ab(2),f.lc("matTooltip",f.fc(9,38,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.kc("matTooltipDisabled",!e.blockManualMemberAdding),f.Ab(2),f.kc("ngIf",e.addAuth),f.Ab(1),f.lc("matTooltip",f.fc(12,40,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.kc("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.Ab(2),f.kc("ngIf",e.inviteAuth),f.Ab(1),f.lc("matTooltip",f.fc(15,42,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.kc("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.Ab(2),f.kc("ngIf",e.removeAuth),f.Ab(2),f.Lc(" ",f.fc(19,44,"GROUP_DETAIL.MEMBERS.LIST_ALL")," "),f.Ab(4),f.Kc(f.fc(23,46,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),f.Ab(2),f.kc("value",e.selectedStatuses)("formControl",e.statuses),f.Ab(2),f.Lc(" ",e.displaySelectedStatuses()," "),f.Ab(1),f.kc("ngForOf",e.statusList),f.Ab(3),f.Kc(f.fc(31,48,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),f.Ab(2),f.kc("value",e.selectedGroupStatuses)("formControl",e.groupStatuses),f.Ab(2),f.Lc(" ",e.displaySelectedGroupStatuses()," "),f.Ab(1),f.kc("ngForOf",e.groupStatusList),f.Ab(3),f.lc("placeholder",f.fc(39,50,"GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION")),f.kc("formControl",e.searchControl),f.Ab(3),f.Lc(" ",f.fc(42,52,"GROUP_DETAIL.MEMBERS.EMPTY_SEARCH")," "),f.Ab(2),f.kc("disabled",e.loading),f.Ab(3),f.kc("ngIf",e.loading),f.Ab(1),f.kc("ngIf",!e.firstSearchDone&&!e.loading),f.Ab(1),f.kc("ngIf",null!==e.members&&!e.loading))},directives:[v.t,y.a,A.b,w.c,w.g,_.a,d.r,d.h,_.c,v.s,S.b,d.c,w.b,k.a,E.a,R.n,C.c,T.a],pipes:[I.d],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),t}()},vUrr:function(t,e,i){"use strict";i.d(e,"a",(function(){return A}));var n=i("OZ4H"),r=i("X2Q7"),a=i("Ssnw"),o=i("FlRo"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function d(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function f(t,e){1&t&&s.Nb(0,"th",15)}function p(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit;s.Ab(1),s.Lc(" ",i.hostname," ")}}function b(t,e){1&t&&s.Nb(0,"tr",17)}function v(t,e){1&t&&s.Nb(0,"tr",18)}function y(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,f,1,0,"th",11),s.Hc(10,p,2,1,"td",12),s.Pb(),s.Hc(11,b,1,0,"tr",13),s.Hc(12,v,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Kc(s.fc(3,5,"DIALOGS.REMOVE_HOST.DESCRIPTION")),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.REMOVE_HOST.ASK")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var A=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.facilitiesManager=n,this.notificator=r,this.translate=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new o.o(this.data.hosts)}},{key:"onConfirm",value:function(){var t=this;this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map((function(t){return t.id}))).subscribe((function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(r.g),s.Mb(a.l),s.Mb(c.e))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"h1",0),s.Jc(1),s.ec(2,"translate"),s.Rb(),s.Sb(3,"div"),s.Hc(4,d,1,0,"mat-spinner",1),s.Hc(5,y,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onConfirm()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Ab(1),s.Kc(s.fc(2,9,"DIALOGS.REMOVE_HOST.TITLE")),s.Ab(2),s.Cb(e.theme),s.Ab(1),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.REMOVE_HOST.CANCEL"),""),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.REMOVE_HOST.CONFIRM"),""))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,o.n,o.c,o.i,o.b,o.k,o.m,o.h,o.a,o.j,o.l],pipes:[c.d],styles:[""]}),t}()},vhVt:function(t,e,i){"use strict";i.d(e,"a",(function(){return P}));var n=i("OZ4H"),r=i("Ssnw"),a=i("cqs0"),o=i("nIj0"),s=i("jIqt"),c=i("YtkY"),u=i("X2Q7"),l=i("iyZ4"),h=i("EM62"),d=i("s2Ay"),f=i("sEIs"),p=i("29Wa"),b=i("R7+U"),v=i("2kYt"),y=i("Cd2c"),A=i("ulve"),w=i("PBFl"),_=i("mFH5"),S=i("pynj"),k=i("csyo"),E=i("K9kF"),R=i("L4Ow");function C(t,e){if(1&t&&(h.Sb(0,"mat-option",17),h.Jc(1),h.ec(2,"displayedRole"),h.Rb()),2&t){var i=e.$implicit;h.kc("value",i),h.Ab(1),h.Kc(h.fc(2,2,i))}}function T(t,e){if(1&t&&(h.Sb(0,"mat-option",17),h.Jc(1),h.Rb()),2&t){var i=e.$implicit;h.kc("value",i),h.Ab(1),h.Lc(" ",i.name," ")}}function I(t,e){if(1&t){var i=h.Tb();h.Sb(0,"perun-web-apps-debounce-filter",18),h.Zb("filter",(function(t){return h.xc(i),h.dc().applyFilter(t)})),h.ec(1,"translate"),h.Rb()}2&t&&h.lc("placeholder",h.fc(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function O(t,e){1&t&&h.Nb(0,"mat-spinner",19)}var D=function(){return["menu","recent","expiration","vo"]};function M(t,e){if(1&t){var i=h.Tb();h.Sb(0,"div",20),h.Sb(1,"perun-web-apps-groups-list",21),h.Zb("page",(function(t){return h.xc(i),h.dc().pageChanged(t)})),h.Rb(),h.Rb()}if(2&t){var n=h.dc();h.Ab(1),h.kc("pageSize",n.pageSize)("disableRouting",!0)("hideColumns",h.oc(7,D))("selection",n.selection)("filter",n.filterValue)("groups",n.groups)("disableMembers",!1)}}var P=function(){var t=function(){function t(e,i,n,r,s,c,u,h,d,f){var p=this;g(this,t),this.dialogRef=e,this.data=i,this.authzService=n,this.voService=r,this.groupService=s,this.translate=c,this.notificator=u,this.route=h,this.tableConfigService=d,this.router=f,this.searchString="",this.selection=new a.c(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new o.g,this.firstSearchDone=!1,this.tableId=l.W,c.get("DIALOGS.ADD_GROUPS.TITLE").subscribe((function(t){return p.title=t})),c.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe((function(t){return p.successMessage=t}))}return m(t,[{key:"displayFn",value:function(t){return t?t.name:null}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map((function(t){return t.id})),complementaryObject:this.data.complementaryObject}).subscribe((function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close()}),(function(){return t.loading=!1}))}},{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe((function(e){t.filteredOptions=t.myControl.valueChanges.pipe(Object(s.a)(""),Object(c.a)((function(e){return t._filter(e)}))),t.vos=e,t.loading=!1}),(function(){return t.loading=!1}))}},{key:"_filter",value:function(t){var e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.vos.filter((function(t){return t.name.toLowerCase().includes(e)}))}},{key:"showVoGroups",value:function(t){var e=this;this.loading=!0,this.groupService.getAllGroups(t.option.value.id).subscribe((function(t){e.groups=t,e.loading=!1,e.firstSearchDone=!0}),(function(){return e.loading=!1}))}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Mb(n.i),h.Mb(n.a),h.Mb(u.d),h.Mb(u.q),h.Mb(u.h),h.Mb(d.e),h.Mb(r.l),h.Mb(f.a),h.Mb(l.pb),h.Mb(f.f))},t.\u0275cmp=h.Gb({type:t,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"pageSize","disableRouting","hideColumns","selection","filter","groups","disableMembers","page"]],template:function(t,e){if(1&t&&(h.Sb(0,"div"),h.Sb(1,"h1",0),h.Jc(2),h.ec(3,"translate"),h.Rb(),h.Sb(4,"div",1),h.Sb(5,"div",2),h.Sb(6,"mat-form-field",3),h.Sb(7,"mat-label"),h.Jc(8),h.ec(9,"translate"),h.Rb(),h.Sb(10,"mat-select",4),h.Zb("valueChange",(function(t){return e.selectedRole=t})),h.Hc(11,C,3,4,"mat-option",5),h.Rb(),h.Rb(),h.Sb(12,"mat-form-field",6),h.Sb(13,"mat-label"),h.Jc(14),h.ec(15,"translate"),h.Rb(),h.Nb(16,"input",7),h.ec(17,"translate"),h.Sb(18,"mat-autocomplete",8,9),h.Zb("optionSelected",(function(t){return e.showVoGroups(t)})),h.Hc(20,T,2,2,"mat-option",5),h.ec(21,"async"),h.Rb(),h.Rb(),h.Rb(),h.Hc(22,I,2,3,"perun-web-apps-debounce-filter",10),h.Sb(23,"div",11),h.Hc(24,O,1,0,"mat-spinner",12),h.Rb(),h.Hc(25,M,2,8,"div",13),h.Rb(),h.Sb(26,"div",14),h.Sb(27,"button",15),h.Zb("click",(function(){return e.onCancel()})),h.Jc(28),h.ec(29,"translate"),h.Rb(),h.Sb(30,"button",16),h.Zb("click",(function(){return e.onSubmit()})),h.Jc(31),h.ec(32,"translate"),h.Rb(),h.Rb(),h.Rb()),2&t){var i=h.tc(19);h.Cb(e.theme),h.Ab(2),h.Kc(h.fc(3,19,"DIALOGS.ADD_GROUPS.TITLE")),h.Ab(6),h.Kc(h.fc(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),h.Ab(2),h.kc("value",e.selectedRole),h.Ab(1),h.kc("ngForOf",e.availableRoles),h.Ab(3),h.Kc(h.fc(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),h.Ab(2),h.lc("placeholder",h.fc(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),h.kc("formControl",e.myControl)("matAutocomplete",i),h.Ab(2),h.kc("displayWith",e.displayFn),h.Ab(2),h.kc("ngForOf",h.fc(21,27,e.filteredOptions)),h.Ab(2),h.kc("ngIf",null!==e.groups&&e.groups.length>0&&!e.loading),h.Ab(2),h.kc("ngIf",e.loading),h.Ab(1),h.kc("ngIf",null!==e.groups&&!e.loading),h.Ab(3),h.Lc(" ",h.fc(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),h.Ab(2),h.kc("disabled",0===e.selection.selected.length||e.loading),h.Ab(1),h.Lc(" ",h.fc(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[n.j,n.g,p.c,p.g,b.a,v.s,y.b,o.c,A.d,o.r,o.h,A.a,v.t,n.c,w.b,_.n,S.a,k.c,E.a],pipes:[d.d,v.b,R.a],styles:[""]}),t}()},vobO:function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return J})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return w})),n.d(e,"f",(function(){return I}));var o=n("EM62"),c=n("ROBh"),u=n("IdLP"),l=n("5uDM"),h=n("xVbo"),d=n("YtkY"),f=n("2kYt"),p=function t(){g(this,t)},b=function t(){g(this,t)},v=function(){function t(e){var i=this;g(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){i.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),r=n.toLowerCase(),a=t.slice(e+1).trim();i.maybeSetNormalizedName(n,r),i.headers.has(r)?i.headers.get(r).push(a):i.headers.set(r,[a])}}))}:function(){i.headers=new Map,Object.keys(e).forEach((function(t){var n=e[t],r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(r,n),i.maybeSetNormalizedName(t,r))}))}:this.headers=new Map}return m(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(i){e.headers.set(i,t.headers.get(i)),e.normalizedNames.set(i,t.normalizedNames.get(i))}))}},{key:"clone",value:function(e){var i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,i(n)),this.headers.set(e,r);break;case"d":var a=t.value;if(a){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===a.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(i){return t(e.normalizedNames.get(i),e.headers.get(i))}))}}]),t}(),y=function(){function t(){g(this,t)}return m(t,[{key:"encodeKey",value:function(t){return A(t)}},{key:"encodeValue",value:function(t){return A(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function A(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var w=function(){function t(){var e,i,n,a=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(g(this,t),this.updates=null,this.cloneFrom=null,this.encoder=o.encoder||new y,o.fromString){if(o.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=o.fromString,i=this.encoder,n=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),a=r(-1==e?[i.decodeKey(t),""]:[i.decodeKey(t.slice(0,e)),i.decodeValue(t.slice(e+1))],2),o=a[0],s=a[1],c=n.get(o)||[];c.push(s),n.set(o,c)})),n)}else o.fromObject?(this.map=new Map,Object.keys(o.fromObject).forEach((function(t){var e=o.fromObject[t];a.map.set(t,Array.isArray(e)?e:[e])}))):this.map=null}return m(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var i=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return i+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat([e]),i}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var i=("a"===e.op?t.map.get(e.param):void 0)||[];i.push(e.value),t.map.set(e.param,i);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var n=t.map.get(e.param)||[],r=n.indexOf(e.value);-1!==r&&n.splice(r,1),n.length>0?t.map.set(e.param,n):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function _(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function S(t){return"undefined"!=typeof Blob&&t instanceof Blob}function k(t){return"undefined"!=typeof FormData&&t instanceof FormData}var E=function(){function t(e,i,n,r){var a;if(g(this,t),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,a=r):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new v),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,a=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((function(t,i){return t.set(i,e.setHeaders[i])}),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((function(t,i){return t.set(i,e.setParams[i])}),u)),new t(i,n,a,{params:u,headers:c,reportProgress:s,responseType:r,withCredentials:o})}}]),t}(),R=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),C=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";g(this,t),this.headers=e.headers||new v,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},T=function(t){a(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,i),(t=e.call(this,n)).type=R.ResponseHeader,t}return m(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(C),I=function(t){a(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,i),(t=e.call(this,n)).type=R.Response,t.body=void 0!==n.body?n.body:null,t}return m(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(C),O=function(t){a(i,t);var e=s(i);function i(t){var n;return g(this,i),(n=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return i}(C);function D(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var M=function(){var t=function(){function t(e){g(this,t),this.handler=e}return m(t,[{key:"request",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof E)i=t;else{var a=void 0;a=r.headers instanceof v?r.headers:new v(r.headers);var o=void 0;r.params&&(o=r.params instanceof w?r.params:new w({fromObject:r.params})),i=new E(t,e,void 0!==r.body?r.body:null,{headers:a,params:o,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Object(c.a)(i).pipe(Object(l.a)((function(t){return n.handler.handle(t)})));if(t instanceof E||"events"===r.observe)return s;var u=s.pipe(Object(h.a)((function(t){return t instanceof I})));switch(r.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return u.pipe(Object(d.a)((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(Object(d.a)((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(Object(d.a)((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return u.pipe(Object(d.a)((function(t){return t.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new w).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,D(i,e))}},{key:"post",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,D(i,e))}},{key:"put",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,D(i,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Wb(p))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t}(),P=function(){function t(e,i){g(this,t),this.next=e,this.interceptor=i}return m(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),x=new o.r("HTTP_INTERCEPTORS"),N=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t}(),L=/^\)\]\}',?\n/,F=function t(){g(this,t)},z=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t}(),H=function(){var t=function(){function t(e){g(this,t),this.xhrFactory=e}return m(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new u.a((function(i){var n=e.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((function(t,e){return n.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&n.setRequestHeader("Content-Type",r)}if(t.responseType){var a=t.responseType.toLowerCase();n.responseType="json"!==a?a:"text"}var o=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new v(n.getAllResponseHeaders()),a=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new T({headers:r,status:e,statusText:i,url:a})},u=function(){var e=c(),r=e.headers,a=e.status,o=e.statusText,s=e.url,u=null;204!==a&&(u=void 0===n.response?n.responseText:n.response),0===a&&(a=u?200:0);var l=a>=200&&a<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(L,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,l&&(l=!1,u={error:d,text:u})}}l?(i.next(new I({body:u,headers:r,status:a,statusText:o,url:s||void 0})),i.complete()):i.error(new O({error:u,headers:r,status:a,statusText:o,url:s||void 0}))},l=function(t){var e=c().url,r=new O({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:e||void 0});i.error(r)},h=!1,d=function(e){h||(i.next(c()),h=!0);var r={type:R.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),i.next(r)},f=function(t){var e={type:R.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),i.next(e)};return n.addEventListener("load",u),n.addEventListener("error",l),t.reportProgress&&(n.addEventListener("progress",d),null!==o&&n.upload&&n.upload.addEventListener("progress",f)),n.send(o),i.next({type:R.Sent}),function(){n.removeEventListener("error",l),n.removeEventListener("load",u),t.reportProgress&&(n.removeEventListener("progress",d),null!==o&&n.upload&&n.upload.removeEventListener("progress",f)),n.readyState!==n.DONE&&n.abort()}}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Wb(F))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t}(),B=new o.r("XSRF_COOKIE_NAME"),j=new o.r("XSRF_HEADER_NAME"),G=function t(){g(this,t)},U=function(){var t=function(){function t(e,i,n){g(this,t),this.doc=e,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return m(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(f.N)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Wb(f.e),o.Wb(o.C),o.Wb(B))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t}(),K=function(){var t=function(){function t(e,i){g(this,t),this.tokenService=e,this.headerName=i}return m(t,[{key:"intercept",value:function(t,e){var i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);var n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Wb(G),o.Wb(j))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t}(),V=function(){var t=function(){function t(e,i){g(this,t),this.backend=e,this.injector=i,this.chain=null}return m(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(x,[]);this.chain=e.reduceRight((function(t,e){return new P(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Wb(b),o.Wb(o.s))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t}(),q=function(){var t=function(){function t(){g(this,t)}return m(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:K,useClass:N}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:B,useValue:e.cookieName}:[],e.headerName?{provide:j,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[K,{provide:x,useExisting:K,multi:!0},{provide:G,useClass:U},{provide:B,useValue:"XSRF-TOKEN"},{provide:j,useValue:"X-XSRF-TOKEN"}]}),t}(),J=function(){var t=function t(){g(this,t)};return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[M,{provide:p,useClass:V},H,{provide:b,useExisting:H},z,{provide:F,useExisting:z}],imports:[[q.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},"w+DT":function(t,e,i){"use strict";i.d(e,"a",(function(){return tt}));var n=i("EM62"),r=i("iAde"),a=i("cePI"),o=i("FlRo"),s=i("8clQ"),c=i("Ssnw"),u=i("9wx0"),l=i("2kYt"),h=i("+Tre"),d=i("Ds80"),f=i("nIj0"),p=i("Y2X+"),b=i("PBFl"),v=i("bFHC");function y(t,e){if(1&t&&(n.Sb(0,"div",6),n.Jc(1),n.Rb()),2&t){var i=e.$implicit,r=n.dc();n.Ab(1),n.Lc(" ",i[r.paramName]," ")}}function A(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"more_horiz"),n.Rb())}function w(t,e){1&t&&(n.Sb(0,"mat-icon"),n.Jc(1,"keyboard_arrow_up"),n.Rb())}function _(t,e){if(1&t){var i=n.Tb();n.Sb(0,"button",7),n.Zb("click",(function(){return n.xc(i),n.dc().onShowChange()})),n.Hc(1,A,2,0,"mat-icon",8),n.Hc(2,w,2,0,"mat-icon",8),n.Rb()}if(2&t){var r=n.dc();n.Ab(1),n.kc("ngIf",!r.showMore),n.Ab(1),n.kc("ngIf",r.showMore)}}var S,k=((S=function(){function t(){g(this,t),this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}return m(t,[{key:"ngOnInit",value:function(){this.itemsShown=this.defaultItemsShown}},{key:"ngOnChanges",value:function(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}]),t}()).\u0275fac=function(t){return new(t||S)},S.\u0275cmp=n.Gb({type:S,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[n.yb],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(t,e){1&t&&(n.Sb(0,"form",0),n.Sb(1,"div",1),n.Sb(2,"div",2),n.Hc(3,y,2,1,"div",3),n.Rb(),n.Sb(4,"div"),n.Sb(5,"span",4),n.Hc(6,_,3,2,"button",5),n.Rb(),n.Rb(),n.Rb(),n.Rb()),2&t&&(n.Ab(3),n.kc("ngForOf",e.objects.slice(0,e.itemsShown)),n.Ab(2),n.kc("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.Ab(1),n.kc("ngIf",e.objects.length>e.defaultItemsShown))},directives:[f.H,f.s,f.t,l.s,p.a,l.t,b.b,v.a],styles:[""]}),S),E=i("sEIs"),R=i("TQS+"),C=i("FcRk"),T=i("s2Ay"),I=i("EFHi"),O=i("H2Dp");function D(t,e){1&t&&n.Nb(0,"th",21)}function M(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",22),n.Sb(1,"mat-checkbox",23),n.Zb("change",(function(t){n.xc(i);var r=e.$implicit,a=n.dc();return t?a.selection.toggle(r):null}))("click",(function(t){return n.xc(i),t.stopPropagation()})),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("aria-label",a.checkboxLabel(r))("checked",a.selection.isSelected(r))}}function P(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function x(t,e){if(1&t&&(n.Sb(0,"td",22),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.facility.id)}}function N(t,e){1&t&&n.Nb(0,"th",21)}function L(t,e){if(1&t&&(n.Sb(0,"td",25),n.Nb(1,"perun-web-apps-recently-viewed-icon",26),n.Rb()),2&t){var i=e.$implicit,r=n.dc();n.Ab(1),n.kc("recentIds",r.recentIds)("id",i.facility.id)}}function F(t,e){1&t&&(n.Sb(0,"th",24),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function z(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.facility.name)}}function H(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function B(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(i.facility.description)}}function j(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function G(t,e){if(1&t&&(n.Sb(0,"td",25),n.Jc(1),n.ec(2,"technicalOwners"),n.Rb()),2&t){var i=e.$implicit;n.Ab(1),n.Kc(n.fc(2,1,i.owners))}}function U(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function K(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",25),n.Sb(1,"perun-web-apps-object-list-values",27),n.Zb("mouseenter",(function(){return n.xc(i),n.dc().disableRouting=!0}))("mouseleave",(function(){return n.xc(i),n.dc().disableRouting=!1})),n.ec(2,"filterUniqueObjects"),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("paramName","destination")("objects",n.hc(2,2,r.destinations,a.filterValue,"destination"))}}function V(t,e){1&t&&(n.Sb(0,"th",21),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Kc(n.fc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function q(t,e){if(1&t){var i=n.Tb();n.Sb(0,"td",25),n.Sb(1,"perun-web-apps-object-list-values",27),n.Zb("mouseenter",(function(){return n.xc(i),n.dc().disableRouting=!0}))("mouseleave",(function(){return n.xc(i),n.dc().disableRouting=!1})),n.ec(2,"filterUniqueObjects"),n.Rb(),n.Rb()}if(2&t){var r=e.$implicit,a=n.dc();n.Ab(1),n.kc("paramName","hostname")("objects",n.hc(2,2,r.hosts,a.filterValue,"hostname"))}}function J(t,e){1&t&&n.Nb(0,"tr",28)}var W=function(){return[]},Z=function(t){return["/facilities",t]};function Y(t,e){if(1&t&&n.Nb(0,"tr",29),2&t){var i=e.$implicit,r=n.dc();n.kc("routerLink",r.disableRouting?n.oc(2,W):n.pc(3,Z,i.facility.id))("perunWebAppsMiddleClickRouterLink",n.pc(5,Z,i.facility.id))}}function X(t,e){1&t&&(n.Sb(0,"app-alert",30),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Q(t,e){1&t&&(n.Sb(0,"app-alert",30),n.Jc(1),n.ec(2,"translate"),n.Rb()),2&t&&(n.Ab(1),n.Lc(" ",n.fc(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}var $,tt=(($=function(){function t(e,i){g(this,t),this.authResolver=e,this.cd=i,this.pageSize=10,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=s.a,this.page=new n.o}return m(t,[{key:"ngOnChanges",value:function(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(t){return"id"!==t}))),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return Object(s.D)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map((function(t){return t.destination})).join(" ; ");case"hosts":return t.hosts.map((function(t){return t.hostname})).join(" ; ");default:return t[e]}}},{key:"exportData",value:function(t){Object(s.i)(Object(s.n)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.paginator&&(this.dataSource||(this.dataSource=new o.o,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filterPredicate=function(e,i){return Object(s.f)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return Object(s.g)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities)}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach((function(e){return t.selection.select(e)}))}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.facility.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"pageChanged",value:function(t){this.page.emit(t)}},{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"matPaginator",set:function(t){this.paginator=t,this.setDataSource(),this.cd.detectChanges()}}]),t}()).\u0275fac=function(t){return new(t||$)(n.Mb(c.h),n.Mb(n.h))},$.\u0275cmp=n.Gb({type:$,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){var i;1&t&&(n.Dc(a.a,!0),n.Qc(r.a,!0)),2&t&&(n.sc(i=n.ac())&&(e.matSort=i.first),n.sc(i=n.ac())&&(e.matPaginator=i.first))},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.yb],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["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,"routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[3,"paramName","objects","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.Sb(0,"div",0),n.Sb(1,"div",1),n.Sb(2,"perun-web-apps-table-options",2),n.Zb("exportData",(function(t){return e.exportData(t)})),n.Rb(),n.Sb(3,"div",3),n.Sb(4,"table",4),n.Qb(5,5),n.Hc(6,D,1,0,"th",6),n.Hc(7,M,2,2,"td",7),n.Pb(),n.Qb(8,8),n.Hc(9,P,3,3,"th",9),n.Hc(10,x,2,1,"td",7),n.Pb(),n.Qb(11,10),n.Hc(12,N,1,0,"th",6),n.Hc(13,L,2,2,"td",11),n.Pb(),n.Qb(14,12),n.Hc(15,F,3,3,"th",9),n.Hc(16,z,2,1,"td",11),n.Pb(),n.Qb(17,13),n.Hc(18,H,3,3,"th",6),n.Hc(19,B,2,1,"td",11),n.Pb(),n.Qb(20,14),n.Hc(21,j,3,3,"th",6),n.Hc(22,G,3,3,"td",11),n.Pb(),n.Qb(23,15),n.Hc(24,U,3,3,"th",6),n.Hc(25,K,3,6,"td",11),n.Pb(),n.Qb(26,16),n.Hc(27,V,3,3,"th",6),n.Hc(28,q,3,6,"td",11),n.Pb(),n.Hc(29,J,1,0,"tr",17),n.Hc(30,Y,1,7,"tr",18),n.Rb(),n.Rb(),n.Sb(31,"mat-paginator",19),n.Zb("page",(function(t){return e.pageChanged(t)})),n.Rb(),n.Rb(),n.Rb(),n.Hc(32,X,3,3,"app-alert",20),n.Hc(33,Q,3,3,"app-alert",20)),2&t&&(n.kc("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),n.Ab(4),n.kc("dataSource",e.dataSource),n.Ab(25),n.kc("matHeaderRowDef",e.displayedColumns),n.Ab(1),n.kc("matRowDefColumns",e.displayedColumns),n.Ab(1),n.kc("length",e.facilities.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),n.Ab(1),n.kc("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.facilities.length),n.Ab(1),n.kc("ngIf",0===e.facilities.length))},directives:[u.a,o.n,a.a,o.c,o.i,o.b,o.k,o.m,r.a,l.t,o.h,o.a,h.a,a.b,d.a,k,o.j,o.l,E.g,R.c,C.a],pipes:[T.d,I.a,O.a],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),$)},wBUr:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("EM62"),r=i("2kYt"),a=i("PBFl"),o=i("s2Ay");function s(t,e){if(1&t){var i=n.Tb();n.Sb(0,"div"),n.Sb(1,"button",1),n.Zb("click",(function(){n.xc(i);var t=e.$implicit;return n.dc().addTag("{"+t[0]+"}")})),n.Jc(2),n.Rb(),n.Jc(3),n.ec(4,"translate"),n.Rb()}if(2&t){var r=e.$implicit;n.Ab(2),n.Lc("",r[0]," "),n.Ab(1),n.Lc(" - ",n.fc(4,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+r[1]),"\n")}}var c=function(){var t=function(){function t(){g(this,t),this.tags=[],this.addedTag=new n.o}return m(t,[{key:"ngOnChanges",value:function(t){}},{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Gb({type:t,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},features:[n.yb],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"]],template:function(t,e){1&t&&n.Hc(0,s,5,4,"div",0),2&t&&n.kc("ngForOf",e.tags)},directives:[r.s,a.b],pipes:[o.d],styles:[""]}),t}()},wOqL:function(t,e,i){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,i,r){i=i||"=";var a={};if("string"!=typeof t||0===t.length)return a;var o=/\+/g;t=t.split(e=e||"&");var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=t.length;s>0&&c>s&&(c=s);for(var u=0;u=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),n(a,d)?Array.isArray(a[d])?a[d].push(f):a[d]=[a[d],f]:a[d]=f}return a}},"wqq/":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("QQZH");function r(t,e,i){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},function(t){return t.lift(function(t){var e,i,r=t.bufferSize,a=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,c=t.refCount,u=t.scheduler,l=0,h=!1,d=!1;return function(t){l++,e&&!h||(h=!1,e=new n.a(a,s,u),i=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){d=!0,i=void 0,e.complete()}}));var r=e.subscribe(this);this.add((function(){l--,r.unsubscribe(),i&&!d&&c&&0===l&&(i.unsubscribe(),i=void 0,e=void 0)}))}}(r))}}},x9Az:function(t,e,i){"use strict";i.d(e,"a",(function(){return St})),i.d(e,"b",(function(){return At})),i.d(e,"c",(function(){return mt})),i.d(e,"d",(function(){return ft})),i.d(e,"e",(function(){return wt})),i.d(e,"f",(function(){return yt})),i.d(e,"g",(function(){return Ot})),i.d(e,"h",(function(){return Rt})),i.d(e,"i",(function(){return Tt})),i.d(e,"j",(function(){return Et}));var n=i("Sv/w"),r=i("sg/T"),o=i("E5oP"),c=i("5XID"),u=i("fAiE"),l=i("2kYt"),h=i("EM62"),d=i("ZTXN"),f=i("ROBh"),p=i("jIqt"),b=i("kuMc");function v(t,e){1&t&&h.ic(0)}var y,A,w,_,S,k,E,R=["*"],C=((A=function(){function t(e){g(this,t),this._elementRef=e}return m(t,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),t}()).\u0275fac=function(t){return new(t||A)(h.Mb(h.l))},A.\u0275dir=h.Hb({type:A,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),A),T=((y=function t(e){g(this,t),this.template=e}).\u0275fac=function(t){return new(t||y)(h.Mb(h.M))},y.\u0275dir=h.Hb({type:y,selectors:[["","cdkStepLabel",""]]}),y),I=0,O=new h.r("STEPPER_GLOBAL_OPTIONS"),D=((E=function(){function t(e,i){g(this,t),this._stepper=e,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}return m(t,[{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"editable",get:function(){return this._editable},set:function(t){this._editable=Object(c.c)(t)}},{key:"optional",get:function(){return this._optional},set:function(t){this._optional=Object(c.c)(t)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(t){this._completedOverride=Object(c.c)(t)}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(t){this._customError=Object(c.c)(t)}}]),t}()).\u0275fac=function(t){return new(t||E)(h.Mb(Object(h.U)((function(){return M}))),h.Mb(O,8))},E.\u0275cmp=h.Gb({type:E,selectors:[["cdk-step"]],contentQueries:function(t,e,i){var n;1&t&&h.Fb(i,T,!0),2&t&&h.sc(n=h.ac())&&(e.stepLabel=n.first)},viewQuery:function(t,e){var i;1&t&&h.Dc(h.M,!0),2&t&&h.sc(i=h.ac())&&(e.content=i.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[h.yb],ngContentSelectors:R,decls:1,vars:0,template:function(t,e){1&t&&(h.jc(),h.Hc(0,v,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),E),M=((k=function(){function t(e,i,n,r){g(this,t),this._dir=e,this._changeDetectorRef=i,this._elementRef=n,this._destroyed=new d.a,this._linear=!1,this._selectedIndex=0,this.selectionChange=new h.o,this._orientation="horizontal",this._groupId=I++,this._document=r}return m(t,[{key:"ngAfterViewInit",value:function(){var t=this;this._keyManager=new r.g(this._stepHeader).withWrap().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(f.a)()).pipe(Object(p.a)(this._layoutDirection()),Object(b.a)(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.pipe(Object(b.a)(this._destroyed)).subscribe((function(){t.selected||(t._selectedIndex=Math.max(t._selectedIndex-1,0))}))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach((function(t){return t.reset()})),this._stateChanged()}},{key:"_getStepLabelId",value:function(t){return"cdk-step-label-".concat(this._groupId,"-").concat(t)}},{key:"_getStepContentId",value:function(t){return"cdk-step-content-".concat(this._groupId,"-").concat(t)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(t){var e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}},{key:"_getDefaultIndicatorLogic",value:function(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}},{key:"_isCurrentStep",value:function(t){return this._selectedIndex===t}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(t){var e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}},{key:"_onKeydown",value:function(t){var e=Object(u.t)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==u.o&&i!==u.g?i===u.i?(n.setFirstItemActive(),t.preventDefault()):i===u.f?(n.setLastItemActive(),t.preventDefault()):n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(t){var e=this.steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some((function(t){var e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}))}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){if(!this._document||!this._elementRef)return!1;var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"steps",get:function(){return this._steps}},{key:"linear",get:function(){return this._linear},set:function(t){this._linear=Object(c.c)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){var e=Object(c.f)(t);if(this.steps){if(e<0||e>this.steps.length-1)throw Error("cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.");this._selectedIndex!=e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)}else this._selectedIndex=e}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}}]),t}()).\u0275fac=function(t){return new(t||k)(h.Mb(o.c,8),h.Mb(h.h),h.Mb(h.l),h.Mb(l.e))},k.\u0275dir=h.Hb({type:k,selectors:[["","cdkStepper",""]],contentQueries:function(t,e,i){var n;1&t&&(h.Fb(i,D,!0),h.Fb(i,C,!0)),2&t&&(h.sc(n=h.ac())&&(e._steps=n),h.sc(n=h.ac())&&(e._stepHeader=n))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),k),P=((S=function(){function t(e){g(this,t),this._stepper=e,this.type="submit"}return m(t,[{key:"_handleClick",value:function(){this._stepper.next()}}]),t}()).\u0275fac=function(t){return new(t||S)(h.Mb(M))},S.\u0275dir=h.Hb({type:S,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&h.Zb("click",(function(){return e._handleClick()})),2&t&&h.Vb("type",e.type)},inputs:{type:"type"}}),S),x=((_=function(){function t(e){g(this,t),this._stepper=e,this.type="button"}return m(t,[{key:"_handleClick",value:function(){this._stepper.previous()}}]),t}()).\u0275fac=function(t){return new(t||_)(h.Mb(M))},_.\u0275dir=h.Hb({type:_,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&h.Zb("click",(function(){return e._handleClick()})),2&t&&h.Vb("type",e.type)},inputs:{type:"type"}}),_),N=((w=function t(){g(this,t)}).\u0275mod=h.Kb({type:w}),w.\u0275inj=h.Jb({factory:function(t){return new(t||w)},imports:[[o.a]]}),w),L=i("PBFl"),F=i("mFH5"),z=i("bFHC"),H=i("Ohay"),B=i("f7+R");function j(t,e){if(1&t&&h.Ob(0,9),2&t){var i=h.dc();h.kc("ngTemplateOutlet",i.iconOverrides[i.state])("ngTemplateOutletContext",i._getIconContext())}}function G(t,e){if(1&t&&(h.Sb(0,"span"),h.Jc(1),h.Rb()),2&t){var i=h.dc(2);h.Ab(1),h.Kc(i._getDefaultTextForState(i.state))}}function U(t,e){if(1&t&&(h.Sb(0,"mat-icon"),h.Jc(1),h.Rb()),2&t){var i=h.dc(2);h.Ab(1),h.Kc(i._getDefaultTextForState(i.state))}}function K(t,e){if(1&t&&(h.Qb(0,10),h.Hc(1,G,2,1,"span",11),h.Hc(2,U,2,1,"mat-icon",12),h.Pb()),2&t){var i=h.dc();h.kc("ngSwitch",i.state),h.Ab(1),h.kc("ngSwitchCase","number")}}function V(t,e){if(1&t&&h.Ob(0,13),2&t){var i=h.dc();h.kc("ngTemplateOutlet",i._templateLabel().template)}}function q(t,e){if(1&t&&(h.Sb(0,"div",14),h.Jc(1),h.Rb()),2&t){var i=h.dc();h.Ab(1),h.Kc(i.label)}}function J(t,e){if(1&t&&(h.Sb(0,"div",15),h.Jc(1),h.Rb()),2&t){var i=h.dc();h.Ab(1),h.Kc(i._intl.optionalLabel)}}function W(t,e){if(1&t&&(h.Sb(0,"div",16),h.Jc(1),h.Rb()),2&t){var i=h.dc();h.Ab(1),h.Kc(i.errorMessage)}}function Z(t,e){1&t&&h.ic(0)}var Y=["*"];function X(t,e){1&t&&h.Nb(0,"div",6)}function Q(t,e){if(1&t){var i=h.Tb();h.Qb(0),h.Sb(1,"mat-step-header",4),h.Zb("click",(function(){return e.$implicit.select()}))("keydown",(function(t){return h.xc(i),h.dc()._onKeydown(t)})),h.Rb(),h.Hc(2,X,1,0,"div",5),h.Pb()}if(2&t){var n=e.$implicit,r=e.index,a=e.last,o=h.dc();h.Ab(1),h.kc("tabIndex",o._getFocusIndex()===r?0:-1)("id",o._getStepLabelId(r))("index",r)("state",o._getIndicatorType(r,n.state))("label",n.stepLabel||n.label)("selected",o.selectedIndex===r)("active",n.completed||o.selectedIndex===r||!o.linear)("optional",n.optional)("errorMessage",n.errorMessage)("iconOverrides",o._iconOverrides)("disableRipple",o.disableRipple),h.Bb("aria-posinset",r+1)("aria-setsize",o.steps.length)("aria-controls",o._getStepContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),h.Ab(1),h.kc("ngIf",!a)}}function $(t,e){if(1&t){var i=h.Tb();h.Sb(0,"div",7),h.Zb("@stepTransition.done",(function(t){return h.xc(i),h.dc()._animationDone.next(t)})),h.Ob(1,8),h.Rb()}if(2&t){var n=e.$implicit,r=e.index,a=h.dc();h.kc("@stepTransition",a._getAnimationDirection(r))("id",a._getStepContentId(r)),h.Bb("tabindex",a.selectedIndex===r?0:null)("aria-labelledby",a._getStepLabelId(r))("aria-expanded",a.selectedIndex===r),h.Ab(1),h.kc("ngTemplateOutlet",n.content)}}function tt(t,e){if(1&t){var i=h.Tb();h.Sb(0,"div",1),h.Sb(1,"mat-step-header",2),h.Zb("click",(function(){return e.$implicit.select()}))("keydown",(function(t){return h.xc(i),h.dc()._onKeydown(t)})),h.Rb(),h.Sb(2,"div",3),h.Sb(3,"div",4),h.Zb("@stepTransition.done",(function(t){return h.xc(i),h.dc()._animationDone.next(t)})),h.Sb(4,"div",5),h.Ob(5,6),h.Rb(),h.Rb(),h.Rb(),h.Rb()}if(2&t){var n=e.$implicit,r=e.index,a=e.last,o=h.dc();h.Ab(1),h.kc("tabIndex",o._getFocusIndex()==r?0:-1)("id",o._getStepLabelId(r))("index",r)("state",o._getIndicatorType(r,n.state))("label",n.stepLabel||n.label)("selected",o.selectedIndex===r)("active",n.completed||o.selectedIndex===r||!o.linear)("optional",n.optional)("errorMessage",n.errorMessage)("iconOverrides",o._iconOverrides)("disableRipple",o.disableRipple),h.Bb("aria-posinset",r+1)("aria-setsize",o.steps.length)("aria-controls",o._getStepContentId(r))("aria-selected",o.selectedIndex===r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),h.Ab(1),h.Eb("mat-stepper-vertical-line",!a),h.Ab(1),h.kc("@stepTransition",o._getAnimationDirection(r))("id",o._getStepContentId(r)),h.Bb("tabindex",o.selectedIndex===r?0:null)("aria-labelledby",o._getStepLabelId(r))("aria-expanded",o.selectedIndex===r),h.Ab(2),h.kc("ngTemplateOutlet",n.content)}}var et,it,nt,rt,at,ot,st,ct,ut,lt,ht,dt='.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:36px}.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;top:36px;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;padding:24px}.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;padding:24px;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n',ft=((et=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(T)).\u0275fac=function(t){return pt(t||et)},et.\u0275dir=h.Hb({type:et,selectors:[["","matStepLabel",""]],features:[h.xb]}),et),pt=h.Ub(ft),gt=((it=function t(){g(this,t),this.changes=new d.a,this.optionalLabel="Optional"}).\u0275fac=function(t){return new(t||it)},it.\u0275prov=Object(h.Ib)({factory:function(){return new it},token:it,providedIn:"root"}),it),bt={provide:gt,deps:[[new h.B,new h.K,gt]],useFactory:function(t){return t||new gt}},mt=((nt=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,r))._intl=t,o._focusMonitor=n,n.monitor(r,!0),o._intlSubscription=t.changes.subscribe((function(){return a.markForCheck()})),o}return m(i,[{key:"ngOnDestroy",value:function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){this._focusMonitor.focusVia(this._elementRef,"program")}},{key:"_stringLabel",value:function(){return this.label instanceof ft?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof ft?this.label:null}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_getIconContext",value:function(){return{index:this.index,active:this.active,optional:this.optional}}},{key:"_getDefaultTextForState",value:function(t){return"number"==t?""+(this.index+1):"edit"==t?"create":"error"==t?"warning":t}}]),i}(C)).\u0275fac=function(t){return new(t||nt)(h.Mb(gt),h.Mb(r.h),h.Mb(h.l),h.Mb(h.h))},nt.\u0275cmp=h.Gb({type:nt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[h.xb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],[3,"ngTemplateOutlet",4,"ngIf"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(h.Nb(0,"div",0),h.Sb(1,"div"),h.Sb(2,"div",1),h.Hc(3,j,1,2,"ng-container",2),h.Hc(4,K,3,2,"ng-container",3),h.Rb(),h.Rb(),h.Sb(5,"div",4),h.Hc(6,V,1,1,"ng-container",5),h.Hc(7,q,2,1,"div",6),h.Hc(8,J,2,1,"div",7),h.Hc(9,W,2,1,"div",8),h.Rb()),2&t&&(h.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),h.Ab(1),h.Db("mat-step-icon-state-",e.state," mat-step-icon"),h.Eb("mat-step-icon-selected",e.selected),h.Ab(1),h.kc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),h.Ab(1),h.kc("ngSwitchCase",!0),h.Ab(2),h.Eb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),h.Ab(1),h.kc("ngIf",e._templateLabel()),h.Ab(1),h.kc("ngIf",e._stringLabel()),h.Ab(1),h.kc("ngIf",e.optional&&"error"!=e.state),h.Ab(1),h.kc("ngIf","error"==e.state))},directives:[F.s,l.x,l.y,l.z,l.t,l.A,z.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),nt),vt={horizontalStepTransition:Object(B.n)("stepTransition",[Object(B.k)("previous",Object(B.l)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(B.k)("current",Object(B.l)({transform:"none",visibility:"visible"})),Object(B.k)("next",Object(B.l)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(B.m)("* => *",Object(B.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(B.n)("stepTransition",[Object(B.k)("previous",Object(B.l)({height:"0px",visibility:"hidden"})),Object(B.k)("next",Object(B.l)({height:"0px",visibility:"hidden"})),Object(B.k)("current",Object(B.l)({height:"*",visibility:"visible"})),Object(B.m)("* <=> current",Object(B.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},yt=((ot=function t(e){g(this,t),this.templateRef=e}).\u0275fac=function(t){return new(t||ot)(h.Mb(h.M))},ot.\u0275dir=h.Hb({type:ot,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ot),At=((at=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t,r))._errorStateMatcher=n,a}return m(i,[{key:"isErrorState",value:function(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}]),i}(D)).\u0275fac=function(t){return new(t||at)(h.Mb(Object(h.U)((function(){return wt}))),h.Mb(F.d,4),h.Mb(O,8))},at.\u0275cmp=h.Gb({type:at,selectors:[["mat-step"]],contentQueries:function(t,e,i){var n;1&t&&h.Fb(i,ft,!0),2&t&&h.sc(n=h.ac())&&(e.stepLabel=n.first)},exportAs:["matStep"],features:[h.zb([{provide:F.d,useExisting:at},{provide:D,useExisting:at}]),h.xb],ngContentSelectors:Y,decls:1,vars:0,template:function(t,e){1&t&&(h.jc(),h.Hc(0,Z,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),at),wt=((rt=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments)).animationDone=new h.o,t._iconOverrides={},t._animationDone=new d.a,t}return m(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._icons.forEach((function(e){var i=e.name,n=e.templateRef;return t._iconOverrides[i]=n})),this._steps.changes.pipe(Object(b.a)(this._destroyed)).subscribe((function(){t._stateChanged()})),this._animationDone.pipe(Object(H.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})),Object(b.a)(this._destroyed)).subscribe((function(e){"current"===e.toState&&t.animationDone.emit()}))}}]),i}(M)).\u0275fac=function(t){return _t(t||rt)},rt.\u0275dir=h.Hb({type:rt,selectors:[["","matStepper",""]],contentQueries:function(t,e,i){var n;1&t&&(h.Fb(i,At,!0),h.Fb(i,yt,!0)),2&t&&(h.sc(n=h.ac())&&(e._steps=n),h.sc(n=h.ac())&&(e._icons=n))},viewQuery:function(t,e){var i;1&t&&h.Qc(mt,!0),2&t&&h.sc(i=h.ac())&&(e._stepHeader=i)},inputs:{disableRipple:"disableRipple"},outputs:{animationDone:"animationDone"},features:[h.zb([{provide:M,useExisting:rt}]),h.xb]}),rt),_t=h.Ub(wt),St=((st=function(t){a(i,t);var e=s(i);function i(){var t;return g(this,i),(t=e.apply(this,arguments)).labelPosition="end",t}return i}(wt)).\u0275fac=function(t){return kt(t||st)},st.\u0275cmp=h.Gb({type:st,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(t,e){2&t&&h.Eb("mat-stepper-label-position-end","end"==e.labelPosition)("mat-stepper-label-position-bottom","bottom"==e.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[h.zb([{provide:wt,useExisting:st},{provide:M,useExisting:st}]),h.xb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(h.Sb(0,"div",0),h.Hc(1,Q,3,18,"ng-container",1),h.Rb(),h.Sb(2,"div",2),h.Hc(3,$,2,6,"div",3),h.Rb()),2&t&&(h.Ab(1),h.kc("ngForOf",e.steps),h.Ab(2),h.kc("ngForOf",e.steps))},directives:[l.s,mt,l.t,l.A],styles:[dt],encapsulation:2,data:{animation:[vt.horizontalStepTransition]},changeDetection:0}),st),kt=h.Ub(St),Et=((ut=function(t){a(i,t);var e=s(i);function i(t,n,r,a){var o;return g(this,i),(o=e.call(this,t,n,r,a))._orientation="vertical",o}return i}(wt)).\u0275fac=function(t){return new(t||ut)(h.Mb(o.c,8),h.Mb(h.h),h.Mb(h.l),h.Mb(l.e))},ut.\u0275cmp=h.Gb({type:ut,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[h.zb([{provide:wt,useExisting:ut},{provide:M,useExisting:ut}]),h.xb],decls:1,vars:1,consts:[["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&h.Hc(0,tt,6,25,"div",0),2&t&&h.kc("ngForOf",e.steps)},directives:[l.s,mt,l.A],styles:[dt],encapsulation:2,data:{animation:[vt.verticalStepTransition]},changeDetection:0}),ut),Rt=((ct=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(P)).\u0275fac=function(t){return Ct(t||ct)},ct.\u0275dir=h.Hb({type:ct,selectors:[["button","matStepperNext",""]],hostVars:1,hostBindings:function(t,e){2&t&&h.Vb("type",e.type)},inputs:{type:"type"},features:[h.xb]}),ct),Ct=h.Ub(Rt),Tt=((lt=function(t){a(i,t);var e=s(i);function i(){return g(this,i),e.apply(this,arguments)}return i}(x)).\u0275fac=function(t){return It(t||lt)},lt.\u0275dir=h.Hb({type:lt,selectors:[["button","matStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){2&t&&h.Vb("type",e.type)},inputs:{type:"type"},features:[h.xb]}),lt),It=h.Ub(Tt),Ot=((ht=function t(){g(this,t)}).\u0275mod=h.Kb({type:ht}),ht.\u0275inj=h.Jb({factory:function(t){return new(t||ht)},providers:[bt,F.d],imports:[[F.i,l.c,n.i,L.c,N,z.b,F.t],F.i]}),ht)},xVbo:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("5uGe");function r(t,e){return function(i){return i.lift(new o(t,e))}}var o=function(){function t(e,i){g(this,t),this.predicate=e,this.thisArg=i}return m(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.predicate,this.thisArg))}}]),t}(),c=function(t){a(i,t);var e=s(i);function i(t,n,r){var a;return g(this,i),(a=e.call(this,t)).predicate=n,a.thisArg=r,a.count=0,a}return m(i,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}]),i}(n.a)},yAs8:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("8clQ"),r=i("EM62"),a=function(){var t=function(){function t(){g(this,t)}return m(t,[{key:"transform",value:function(t,e){var i=null,r=null;null!==t.memberAttributes&&(i=t.memberAttributes.find((function(t){return"membershipExpiration"===t.friendlyName})),r=t.memberAttributes.find((function(t){return"groupMembershipExpiration"===t.friendlyName})));return e?"\n Group status: ".concat(Object(n.y)(t.groupStatus),", Expiration: ").concat(r&&r.value?r.value:"never"):"Status: ".concat(Object(n.y)(t.status,t.groupStatus),"\n Vo status: ").concat(Object(n.y)(t.status),", Expiration: ").concat(i&&i.value?i.value:"never")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"memberStatusTooltip",type:t,pure:!0}),t}()},yLXW:function(t,e,i){"use strict";i.d(e,"a",(function(){return b}));var n=i("OZ4H"),r=i("X2Q7"),a=i("EM62"),o=i("2kYt"),s=i("PBFl"),c=i("csyo"),u=i("29Wa"),l=i("Cd2c"),h=i("nIj0"),d=i("s2Ay");function f(t,e){1&t&&a.Nb(0,"mat-spinner",6)}function p(t,e){if(1&t){var i=a.Tb();a.Sb(0,"div",7),a.Sb(1,"mat-form-field"),a.Sb(2,"input",8),a.Zb("ngModelChange",(function(t){return a.xc(i),a.dc().name=t})),a.ec(3,"translate"),a.Rb(),a.Sb(4,"mat-error"),a.Jc(5),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb()}if(2&t){var n=a.dc();a.Ab(2),a.lc("placeholder",a.fc(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),a.kc("ngModel",n.name),a.Ab(3),a.Kc(a.fc(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}var b=function(){var t=function(){function t(e,i,n){g(this,t),this.dialogRef=e,this.data=i,this.resourceManager=n,this.name="",this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Mb(n.i),a.Mb(n.a),a.Mb(r.m))},t.\u0275cmp=a.Gb({type:t,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(t,e){1&t&&(a.Sb(0,"div"),a.Sb(1,"h1",0),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Hc(4,f,1,0,"mat-spinner",1),a.Hc(5,p,7,7,"div",2),a.Sb(6,"div",3),a.Sb(7,"button",4),a.Zb("click",(function(){return e.onCancel()})),a.Jc(8),a.ec(9,"translate"),a.Rb(),a.Sb(10,"button",5),a.Zb("click",(function(){return e.onSubmit()})),a.Jc(11),a.ec(12,"translate"),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Cb(e.theme),a.Ab(2),a.Kc(a.fc(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),a.Ab(2),a.kc("ngIf",e.loading),a.Ab(1),a.kc("ngIf",!e.loading),a.Ab(3),a.Lc(" ",a.fc(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),a.Ab(2),a.kc("disabled",e.loading),a.Ab(1),a.Lc(" ",a.fc(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[n.j,o.t,n.c,s.b,c.c,n.g,u.c,l.b,h.c,h.C,h.r,h.u,u.b],pipes:[d.d],styles:[""]}),t}()},yNE8:function(t,e,i){"use strict";i.d(e,"a",(function(){return R}));var n=i("sEIs"),r=i("TkCa"),a=i("Ssnw"),o=i("EM62"),s=i("mFH5"),c=i("2kYt"),u=i("TQS+"),l=i("bFHC"),h=i("s2Ay"),d=["collapse"],f=function(){return{color:"linkTextColor"}};function p(t,e){1&t&&(o.Sb(0,"mat-icon",12),o.Jc(1,"keyboard_arrow_right"),o.Rb()),2&t&&o.kc("ngStyle",o.oc(1,f))}function b(t,e){1&t&&(o.Sb(0,"mat-icon",12),o.Jc(1,"keyboard_arrow_down"),o.Rb()),2&t&&o.kc("ngStyle",o.oc(1,f))}function v(t,e){if(1&t&&(o.Sb(0,"span",10),o.Hc(1,p,2,2,"mat-icon",11),o.Hc(2,b,2,2,"mat-icon",11),o.Rb()),2&t){var i=o.dc().$implicit,n=o.dc();o.Ab(1),o.kc("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),o.Ab(1),o.kc("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var y=function(t,e){return{color:t,"border-color":e}};function A(t,e){if(1&t){var i=o.Tb();o.Sb(0,"a",14),o.Zb("click",(function(){o.xc(i);var t=e.$implicit;return o.dc(3).navigate(t.url)})),o.Jc(1),o.ec(2,"translate"),o.Rb()}if(2&t){var n=e.$implicit,r=o.dc(3);o.Eb("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),o.kc("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",o.qc(9,y,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),o.Ab(1),o.Lc(" ",o.fc(2,7,n.label)," ")}}function w(t,e){if(1&t&&(o.Sb(0,"div"),o.Hc(1,A,3,12,"a",13),o.Rb()),2&t){var i=o.dc().$implicit;o.kc("@rollInOut",void 0),o.Ab(1),o.kc("ngForOf",null==i?null:i.children)}}function _(t,e){if(1&t){var i=o.Tb();o.Sb(0,"div"),o.Sb(1,"a",7),o.Zb("click",(function(){o.xc(i);var t=e.$implicit;return o.dc().navigate(t.url)})),o.Jc(2),o.ec(3,"translate"),o.Hc(4,v,3,2,"span",8),o.Rb(),o.Hc(5,w,2,2,"div",9),o.Rb()}if(2&t){var n=e.$implicit,r=o.dc();o.Ab(1),o.Eb("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),o.kc("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",o.qc(11,y,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),o.Ab(1),o.Lc(" ",o.fc(3,9,n.label)," "),o.Ab(2),o.kc("ngIf",n.children),o.Ab(1),o.kc("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}var S=function(t){return{background:t}},k=function(t){return{color:t}},E=function(){return{color:"currentColor"}},R=function(){var t=function(){function t(e,i){var r=this;g(this,t),this.router=e,this.store=i,this.expanded=!1,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.currentUrl=e.url,e.events.subscribe((function(t){t instanceof n.b&&(r.currentUrl=t.url)}))}return m(t,[{key:"ngOnInit",value:function(){this.expanded=this.showOpen}},{key:"ngOnChanges",value:function(t){this.expanded=this.showOpen}},{key:"toggle",value:function(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"getBgClass",value:function(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then((function(){return e.router.navigate(t)})):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(n.f),o.Mb(a.m))},t.\u0275cmp=o.Gb({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){var i;1&t&&o.Qc(d,!0),2&t&&o.sc(i=o.ac())&&(e.collapseDiv=i.first)},inputs:{item:"item",index:"index",showOpen:"showOpen",sideNav:"sideNav"},features:[o.yb],decls:12,vars:27,consts:[[1,"entity-menu-item"],["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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(o.Sb(0,"div",0),o.Sb(1,"div",1),o.Zb("click",(function(){return e.toggle()})),o.Sb(2,"div"),o.Sb(3,"a",2),o.Sb(4,"div"),o.Nb(5,"mat-icon",3),o.Rb(),o.Sb(6,"div",4),o.Jc(7),o.ec(8,"translate"),o.Rb(),o.Rb(),o.Rb(),o.Rb(),o.Sb(9,"div"),o.Sb(10,"div",5),o.Hc(11,_,6,14,"div",6),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Ab(1),o.Eb("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),o.kc("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",o.pc(20,S,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),o.Ab(1),o.Db("entity-menu-item-link ",e.item.labelClass,""),o.Ab(1),o.kc("ngStyle",o.pc(22,k,e.item.textColorCss)),o.Ab(2),o.kc("ngStyle",o.oc(24,E))("svgIcon",e.item.icon),o.Ab(2),o.Kc(o.fc(8,18,e.item.label)),o.Ab(2),o.kc("@openClose",e.expanded?"open":"closed"),o.Ab(1),o.Db("side-entity-menu ",e.item.linksClass,""),o.kc("ngStyle",o.pc(25,S,e.linkBgColor)),o.Ab(1),o.kc("ngForOf",e.item.links))},directives:[s.s,c.w,u.c,l.a,c.s,c.q,c.t],pipes:[h.d],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}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-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}.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:[r.c,r.d]}}),t}()},yTkW:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(t){a(i,t);var e=s(i);function i(t,n){var r;return g(this,i),(r=e.call(this)).subject=t,r.subscriber=n,r.closed=!1,r}return m(i,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}}}]),i}(i("bwdy").a)},yWI2:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("X2Q7"),r=i("Ssnw"),a=i("EM62"),o=i("OZ4H"),s=i("s2Ay"),c=i("2kYt"),u=i("PBFl"),l=i("csyo"),h=i("FcRk"),d=i("29Wa"),f=i("Cd2c"),p=i("nIj0");function b(t,e){1&t&&a.Nb(0,"mat-spinner",7)}function v(t,e){if(1&t){var i=a.Tb();a.Sb(0,"div",8),a.Sb(1,"app-alert",9),a.Jc(2),a.ec(3,"translate"),a.Rb(),a.Sb(4,"mat-form-field",10),a.Sb(5,"input",11),a.Zb("ngModelChange",(function(t){return a.xc(i),a.dc().value=t})),a.ec(6,"translate"),a.Rb(),a.Rb(),a.Rb()}if(2&t){var n=a.dc();a.Ab(2),a.Lc(" ",a.fc(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),a.Ab(3),a.kc("ngModel",n.value)("placeholder",a.fc(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}var y=function(){var t=function(){function t(e,i,n,r){g(this,t),this.dialogRef=e,this.notificator=i,this.translate=n,this.attributesManager=r,this.value="",this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){}},{key:"create",value:function(){var t=this;try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe((function(e){for(var i=0;i-1})):this.otherGroups}},{key:"canMove",value:function(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}},{key:"close",value:function(){this.dialogRef.close()}},{key:"confirm",value:function(){var t=this;this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe((function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close(!0)}),(function(e){t.notificator.showRPCError(e,t.errorMessage),t.dialogRef.close(!1)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(n.i),l.Mb(n.a),l.Mb(u.h),l.Mb(c.l),l.Mb(h.e),l.Mb(c.b),l.Mb(c.h))},t.\u0275cmp=l.Gb({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(l.Sb(0,"div"),l.Sb(1,"h1",0),l.Jc(2),l.ec(3,"translate"),l.Rb(),l.Sb(4,"div",1),l.Sb(5,"p"),l.Jc(6),l.ec(7,"translate"),l.Rb(),l.Sb(8,"mat-radio-group",2),l.Zb("ngModelChange",(function(t){return e.moveOption=t})),l.Hc(9,k,3,3,"mat-radio-button",3),l.Hc(10,E,3,3,"mat-radio-button",4),l.Rb(),l.Hc(11,R,3,3,"app-alert",5),l.Hc(12,T,7,10,"mat-form-field",6),l.Rb(),l.Hc(13,I,1,0,"mat-spinner",7),l.Sb(14,"div",8),l.Sb(15,"button",9),l.Zb("click",(function(){return e.close()})),l.Jc(16),l.ec(17,"translate"),l.Rb(),l.Sb(18,"span",10),l.ec(19,"translate"),l.Sb(20,"button",11),l.Zb("click",(function(){return e.confirm()})),l.Jc(21),l.ec(22,"translate"),l.Rb(),l.Rb(),l.Rb(),l.Rb()),2&t&&(l.Cb(e.data.theme),l.Ab(2),l.Mc("",l.fc(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),l.Ab(4),l.Lc(" ",l.fc(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),l.Ab(2),l.kc("ngModel",e.moveOption),l.Ab(1),l.kc("ngIf",!e.toRootOptionDisabled),l.Ab(1),l.kc("ngIf",!e.toGroupOptionDisabled),l.Ab(1),l.kc("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),l.Ab(1),l.kc("ngIf",!e.toGroupOptionDisabled),l.Ab(1),l.kc("ngIf",e.loading),l.Ab(3),l.Lc(" ",l.fc(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),l.Ab(2),l.lc("matTooltip",l.fc(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),l.kc("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),l.Ab(2),l.kc("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),l.Ab(1),l.Lc(" ",l.fc(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.j,n.g,d.b,r.r,r.u,f.t,n.c,p.b,b.a,d.a,v.a,y.c,A.b,w.d,r.c,r.C,r.h,w.a,f.s,_.n,S.c],pipes:[h.d,f.b],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[s.c]}}),t}()},yv0D:function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"c",(function(){return l.a})),i.d(e,"d",(function(){return h.a})),i.d(e,"b",(function(){return d.a}));var n,r=i("2kYt"),a=i("OZ4H"),o=i("PBFl"),s=i("s2Ay"),c=i("EM62"),u=((n=function t(){g(this,t)}).\u0275mod=c.Kb({type:n}),n.\u0275inj=c.Jb({factory:function(t){return new(t||n)},imports:[[r.c,a.h,o.c,s.c]]}),n),l=i("j610"),h=i("VBdk"),d=i("jjFd")},zSH9:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("OZ4H"),r=i("FlRo"),a=i("Ssnw"),o=i("X2Q7"),s=i("EM62"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("csyo");function f(t,e){1&t&&s.Nb(0,"mat-spinner",6)}function p(t,e){1&t&&s.Nb(0,"th",15)}function b(t,e){if(1&t&&(s.Sb(0,"td",16),s.Jc(1),s.Rb()),2&t){var i=e.$implicit,n=s.dc(2);s.Ab(1),s.Lc(" ",n.getMailType(i)," ")}}function v(t,e){1&t&&s.Nb(0,"tr",17)}function y(t,e){1&t&&s.Nb(0,"tr",18)}function A(t,e){if(1&t&&(s.Sb(0,"div",7),s.Sb(1,"p"),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Sb(4,"div",8),s.Jc(5),s.ec(6,"translate"),s.Rb(),s.Sb(7,"table",9),s.Qb(8,10),s.Hc(9,p,1,0,"th",11),s.Hc(10,b,2,1,"td",12),s.Pb(),s.Hc(11,v,1,0,"tr",13),s.Hc(12,y,1,0,"tr",14),s.Rb(),s.Rb()),2&t){var i=s.dc();s.Ab(2),s.Lc(" ",s.fc(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),s.Ab(3),s.Lc(" ",s.fc(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),s.Ab(2),s.kc("dataSource",i.dataSource),s.Ab(4),s.kc("matHeaderRowDef",i.displayedColumns),s.Ab(1),s.kc("matRowDefColumns",i.displayedColumns)}}var w=function(){var t=function(){function t(e,i,n,r,a){g(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.registrarService=a,this.displayedColumns=["name"],this.loading=!1}return m(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.o(this.data.mails)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;if(this.loading=!0,this.data.groupId){var e,i=d(this.data.mails);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.registrarService.deleteApplicationMailForGroup(this.data.groupId,n.id).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}}catch(s){i.e(s)}finally{i.f()}}else{var r,a=d(this.data.mails);try{for(a.s();!(r=a.n()).done;){var o=r.value;this.registrarService.deleteApplicationMailForVo(this.data.voId,o.id).subscribe((function(){t.dialogRef.close(!0)}),(function(){return t.loading=!1}))}}catch(s){a.e(s)}finally{a.f()}}}},{key:"getMailType",value:function(t){var e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe((function(t){e=t})),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Mb(n.i),s.Mb(n.a),s.Mb(a.l),s.Mb(c.e),s.Mb(o.l))},t.\u0275cmp=s.Gb({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.Sb(0,"div"),s.Sb(1,"h1",0),s.Jc(2),s.ec(3,"translate"),s.Rb(),s.Hc(4,f,1,0,"mat-spinner",1),s.Hc(5,A,13,9,"div",2),s.Sb(6,"div",3),s.Sb(7,"button",4),s.Zb("click",(function(){return e.onCancel()})),s.Jc(8),s.ec(9,"translate"),s.Rb(),s.Sb(10,"button",5),s.Zb("click",(function(){return e.onSubmit()})),s.Jc(11),s.ec(12,"translate"),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Cb(e.theme),s.Ab(2),s.Kc(s.fc(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),s.Ab(2),s.kc("ngIf",e.loading),s.Ab(1),s.kc("ngIf",!e.loading),s.Ab(3),s.Lc(" ",s.fc(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),s.Ab(2),s.kc("disabled",e.loading),s.Ab(1),s.Lc(" ",s.fc(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[n.j,u.t,n.c,l.b,h.c,n.g,r.n,r.c,r.i,r.b,r.k,r.m,r.h,r.a,r.j,r.l],pipes:[c.d],styles:[""]}),t}()},zUnb:function(t,e,i){"use strict";i.r(e);var n,r=i("EM62"),o=i("AytR"),c=i("e4iD"),u=i("sEIs"),l=((n=function(){function t(){g(this,t)}return m(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||n)},n.\u0275cmp=r.Gb({type:n,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),n),h=i("X2Q7"),f=i("Ssnw"),p=i("4sdY"),b=i("lQ7A"),v=i("+Tre"),y=i("nIj0"),A=i("2kYt"),w=i("bFHC"),_=i("PBFl"),S=i("8clQ"),k=i("FcRk"),E=i("mFH5"),R=i("s2Ay");function C(t,e){1&t&&(r.Sb(0,"app-alert",2),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function T(t,e){if(1&t&&(r.Sb(0,"div",5),r.Sb(1,"a",6),r.Sb(2,"span",7),r.Jc(3),r.Rb(),r.Nb(4,"mat-icon",8),r.Jc(5),r.Rb(),r.Rb()),2&t){var i=e.$implicit;r.Ab(1),r.Db("",i.style," item-itself"),r.kc("routerLink",i.url),r.Ab(2),r.Kc(i.type),r.Ab(1),r.kc("svgIcon",i.cssIcon),r.Ab(1),r.Lc(" ",i.label," ")}}function I(t,e){if(1&t&&(r.Sb(0,"div",3),r.Hc(1,T,6,7,"div",4),r.Rb()),2&t){var i=r.dc();r.Ab(1),r.kc("ngForOf",i.items)}}var O,D=((O=function(){function t(){g(this,t),this.items=[]}return m(t,[{key:"ngOnInit",value:function(){var t,e=d(Object(S.r)("recent"));try{for(e.s();!(t=e.n()).done;){var i=t.value;switch(i.type){case"Vo":this.items.push({cssIcon:"perun-vo",url:"/organizations/"+i.id,label:i.name,style:"vo-btn",type:"Organization"});break;case"Group":this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(i.voId,"/groups/").concat(i.id),label:i.name,style:"group-btn",type:"Group"});break;case"Facility":this.items.push({cssIcon:"perun-facility-white",url:"/facilities/"+i.id,label:i.name,style:"facility-btn",type:"Facility"})}}}catch(n){e.e(n)}finally{e.f()}}}]),t}()).\u0275fac=function(t){return new(t||O)},O.\u0275cmp=r.Gb({type:O,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:2,vars:2,consts:[["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"routerLink"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(r.Hc(0,C,3,3,"app-alert",0),r.Hc(1,I,2,1,"div",1)),2&t&&(r.kc("ngIf",0===e.items.length),r.Ab(1),r.kc("ngIf",e.items.length>0))},directives:[A.t,k.a,A.s,E.s,u.i,w.a],pipes:[R.d],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;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}"]}),O),M=i("Y2X+"),P=i("csyo"),x=i("qySP"),N=i("K9kF"),L=i("23RZ"),F=i("w+DT");function z(t,e){1&t&&r.Nb(0,"mat-spinner",7)}var H=function(){return["id","recent","shortName","name"]};function B(t,e){if(1&t&&(r.Sb(0,"span"),r.Nb(1,"perun-web-apps-vos-list",8),r.Rb()),2&t){var i=r.dc(2);r.Ab(1),r.kc("pageSizeOptions",null)("pageSize",5)("displayedColumns",r.oc(5,H))("recentIds",i.recentIds)("vos",i.objects)}}var j=function(){return["select","expiration","menu"]};function G(t,e){if(1&t&&(r.Sb(0,"span"),r.Nb(1,"perun-web-apps-groups-list",9),r.Rb()),2&t){var i=r.dc(2);r.Ab(1),r.kc("pageSizeOptions",null)("pageSize",5)("groups",i.objects)("recentIds",i.recentIds)("hideColumns",r.oc(5,j))}}var U=function(){return["id","recent","name","vo","facility"]};function K(t,e){if(1&t&&(r.Sb(0,"span"),r.Nb(1,"perun-web-apps-resources-list",10),r.Rb()),2&t){var i=r.dc(2);r.Ab(1),r.kc("pageSizeOptions",null)("pageSize",5)("resources",i.objects)("displayedColumns",r.oc(6,U))("recentIds",i.recentIds)("routingVo",!0)}}var V=function(){return["id","recent","name","description"]};function q(t,e){if(1&t&&(r.Sb(0,"span"),r.Nb(1,"perun-web-apps-facilities-list",11),r.Rb()),2&t){var i=r.dc(2);r.Ab(1),r.kc("pageSizeOptions",null)("pageSize",5)("facilities",i.objects)("recentIds",i.recentIds)("displayedColumns",r.oc(5,V))}}function J(t,e){if(1&t&&(r.Sb(0,"div"),r.Hc(1,B,2,6,"span",6),r.Hc(2,G,2,6,"span",6),r.Hc(3,K,2,7,"span",6),r.Hc(4,q,2,6,"span",6),r.Rb()),2&t){var i=r.dc();r.Ab(1),r.kc("ngIf","Vo"==i.primaryObject),r.Ab(1),r.kc("ngIf","Group"==i.primaryObject),r.Ab(1),r.kc("ngIf","Resource"==i.primaryObject),r.Ab(1),r.kc("ngIf","Facility"==i.primaryObject)}}var W,Z=((W=function(){function t(e,i,n){g(this,t),this.authzResolver=e,this.guiAuthResolver=i,this.resourceService=n,this.loading=!1,this.recentIds=[]}return m(t,[{key:"ngOnInit",value:function(){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()}},{key:"getObjects",value:function(){var t=this;switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe((function(e){t.objects=e,t.recentIds=Object(S.r)("vos"),t.loading=!1}));break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe((function(e){t.objects=e,t.recentIds=Object(S.r)("groups"),t.loading=!1}));break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe((function(e){t.objects=e,t.recentIds=Object(S.r)("resources"),t.loading=!1}));break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe((function(e){t.objects=e.map((function(t){return{facility:t}})),t.recentIds=Object(S.r)("facilities"),t.loading=!1}));break;default:this.objects=[],this.loading=!1}}}]),t}()).\u0275fac=function(t){return new(t||W)(r.Mb(h.d),r.Mb(f.h),r.Mb(h.m))},W.\u0275cmp=r.Gb({type:W,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","pageSize","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","pageSize","groups","recentIds","hideColumns"],[3,"pageSizeOptions","pageSize","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","pageSize","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(r.Sb(0,"div",0),r.Sb(1,"div",1),r.Nb(2,"mat-icon",2),r.Jc(3),r.ec(4,"translate"),r.Sb(5,"span",3),r.ec(6,"translate"),r.Sb(7,"mat-icon",4),r.Jc(8,"info_outline"),r.Rb(),r.Rb(),r.Rb(),r.Hc(9,z,1,0,"mat-spinner",5),r.Hc(10,J,5,4,"div",6),r.Rb()),2&t&&(r.Ab(2),r.kc("svgIcon",e.svgIcon),r.Ab(1),r.Lc(" ",r.fc(4,5,e.title)," "),r.Ab(2),r.lc("matTooltip",r.fc(6,7,e.roleTooltipInfo)),r.Ab(4),r.kc("ngIf",e.loading),r.Ab(1),r.kc("ngIf",!e.loading))},directives:[w.a,M.a,A.t,P.c,x.a,N.a,L.a,F.a],pipes:[R.d],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}"]}),W),Y=i("j+u3");function X(t,e){if(1&t){var i=r.Tb();r.Sb(0,"div"),r.Sb(1,"mat-checkbox",8),r.Zb("change",(function(t){r.xc(i);var n=e.$implicit,a=r.dc();return t?a.changeRoleView(n):null})),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Rb()}if(2&t){var n=e.$implicit,a=r.dc();r.Ab(1),r.kc("checked",a.isRoleShowed(n)),r.Ab(1),r.Kc(r.fc(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+n))}}function Q(t,e){if(1&t){var i=r.Tb();r.Sb(0,"button",15),r.Zb("click",(function(){return r.xc(i),r.dc(2).rightSettingOpened=!0})),r.Sb(1,"mat-icon"),r.Jc(2,"settings"),r.Rb(),r.Rb()}}function $(t,e){1&t&&(r.Sb(0,"span"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function tt(t,e){1&t&&(r.Sb(0,"span"),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Kc(r.fc(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function et(t,e){if(1&t){var i=r.Tb();r.Sb(0,"button",23),r.Zb("click",(function(){return r.xc(i),r.dc(3).goToUserProfile()})),r.Sb(1,"mat-icon",24),r.Jc(2,"exit_to_app"),r.Rb(),r.Jc(3),r.ec(4,"translate"),r.Rb()}2&t&&(r.Ab(3),r.Lc("",r.fc(4,1,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," "))}var it=function(){return["/myProfile"]};function nt(t,e){if(1&t&&(r.Sb(0,"div"),r.Sb(1,"div",16),r.Sb(2,"div",17),r.Jc(3),r.ec(4,"translate"),r.Rb(),r.Sb(5,"div",18),r.Hc(6,$,3,3,"span",14),r.Hc(7,tt,3,3,"span",14),r.Rb(),r.Sb(8,"div",19),r.Sb(9,"button",20),r.Nb(10,"mat-icon",21),r.Jc(11),r.ec(12,"translate"),r.Rb(),r.Hc(13,et,5,3,"button",22),r.Rb(),r.Rb(),r.Rb()),2&t){var i=r.dc(2);r.Ab(3),r.Lc(" ",r.fc(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),r.Ab(3),r.kc("ngIf",!i.userProfileUrl),r.Ab(1),r.kc("ngIf",i.userProfileUrl),r.Ab(2),r.kc("routerLink",r.oc(10,it)),r.Ab(2),r.Lc(" ",r.fc(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),r.Ab(2),r.kc("ngIf",i.userProfileUrl)}}function rt(t,e){1&t&&(r.Sb(0,"span"),r.Sb(1,"div",3),r.Jc(2),r.ec(3,"translate"),r.Rb(),r.Nb(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),r.Rb()),2&t&&(r.Ab(2),r.Lc(" ",r.fc(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function at(t,e){1&t&&(r.Sb(0,"div",27),r.Jc(1),r.ec(2,"translate"),r.Rb()),2&t&&(r.Ab(1),r.Lc(" ",r.fc(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function ot(t,e){if(1&t&&r.Nb(0,"app-perun-web-apps-dashboard-card",30),2&t){var i=r.dc().$implicit,n=r.dc(3);r.kc("roleName",i)("role",n.roles[i])}}function st(t,e){if(1&t&&(r.Sb(0,"div",28),r.Hc(1,ot,1,2,"app-perun-web-apps-dashboard-card",29),r.Rb()),2&t){var i=e.$implicit,n=r.dc(3);r.Ab(1),r.kc("ngIf",n.isRoleShowed(i))}}function ct(t,e){if(1&t&&(r.Sb(0,"div"),r.Hc(1,rt,5,3,"span",14),r.Hc(2,at,3,3,"div",25),r.Sb(3,"div"),r.Hc(4,st,2,1,"div",26),r.Rb(),r.Rb()),2&t){var i=r.dc(2);r.Ab(1),r.kc("ngIf",i.recentlyViewedShow),r.Ab(1),r.kc("ngIf",i.rolesToHide.toString()!==i.roleNames.toString()),r.Ab(2),r.kc("ngForOf",i.roleNames)}}function ut(t,e){if(1&t&&(r.Sb(0,"div",9),r.Sb(1,"h1",10),r.Nb(2,"mat-icon",11),r.Sb(3,"span",12),r.Jc(4),r.ec(5,"translate"),r.ec(6,"userFullName"),r.Rb(),r.Hc(7,Q,3,0,"button",13),r.Rb(),r.Hc(8,nt,14,11,"div",14),r.Hc(9,ct,5,3,"div",14),r.Rb()),2&t){var i=r.dc();r.Ab(4),r.Mc("",r.fc(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",r.fc(6,7,i.user),""),r.Ab(3),r.kc("ngIf",!i.isOnlySelfRole),r.Ab(1),r.kc("ngIf",i.isOnlySelfRole),r.Ab(1),r.kc("ngIf",!i.isOnlySelfRole)}}var lt,ht,dt=((lt=function(){function t(e,i,n,r,a,o){g(this,t),this.userManager=e,this.storeService=i,this.guiAuthResolver=n,this.facilitiesService=r,this.resourcesService=a,this.sideMenuService=o,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","FACILITYOBSERVER","RESOURCEOBSERVER"]}return m(t,[{key:"ngOnInit",value:function(){this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.userProfileUrl=this.storeService.get("user_profile_url");var t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter((function(e){return t.includes(e)})),this.getDashboardSettings(),this.sideMenuService.setHomeItems([])}},{key:"goToUserProfile",value:function(){window.open(this.userProfileUrl)}},{key:"recentlyViewedChanged",value:function(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}},{key:"getDashboardSettings",value:function(){var t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;var e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}},{key:"changeRoleView",value:function(t){if(this.isRoleShowed(t)){var e,i=[],n=d(this.roleNames);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.isRoleShowed(r)||i.push(r),r===t&&i.push(r)}}catch(a){n.e(a)}finally{n.f()}this.rolesToHide=i}else this.rolesToHide=this.rolesToHide.filter((function(e){return e!==t}));localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}},{key:"isRoleShowed",value:function(t){var e,i=d(this.rolesToHide);try{for(i.s();!(e=i.n()).done;)if(e.value===t)return!1}catch(n){i.e(n)}finally{i.f()}return!0}}]),t}()).\u0275fac=function(t){return new(t||lt)(r.Mb(h.p),r.Mb(f.m),r.Mb(f.h),r.Mb(h.g),r.Mb(h.m),r.Mb(p.a))},lt.\u0275cmp=r.Gb({type:lt,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&r.Eb("router-component",!0)},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"],[1,"pt-1"],["mat-stroked-button","","class","ml-auto text-bigger",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,"d-flex","pt-3"],["mat-stroked-button","",1,"ml-auto","mr-auto","text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon"],["mat-stroked-button","","class","ml-auto mr-auto text-bigger",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","mr-auto","text-bigger",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(t,e){1&t&&(r.Sb(0,"mat-sidenav-container",0),r.Sb(1,"mat-sidenav",1),r.Zb("openedChange",(function(t){return e.rightSettingOpened=t})),r.Sb(2,"div",2),r.Sb(3,"div",3),r.Jc(4),r.ec(5,"translate"),r.Rb(),r.Sb(6,"div"),r.Sb(7,"mat-checkbox",4),r.Zb("ngModelChange",(function(t){return e.recentlyViewedShow=t}))("change",(function(t){return t?e.recentlyViewedChanged():null})),r.Jc(8),r.ec(9,"translate"),r.Rb(),r.Rb(),r.Sb(10,"div",5),r.Jc(11),r.ec(12,"translate"),r.Rb(),r.Hc(13,X,4,4,"div",6),r.Rb(),r.Rb(),r.Sb(14,"mat-sidenav-content"),r.Hc(15,ut,10,9,"div",7),r.Rb(),r.Rb()),2&t&&(r.Ab(1),r.kc("opened",e.rightSettingOpened),r.Ab(3),r.Kc(r.fc(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),r.Ab(3),r.kc("ngModel",e.recentlyViewedShow),r.Ab(1),r.Kc(r.fc(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),r.Ab(3),r.Kc(r.fc(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),r.Ab(2),r.kc("ngForOf",e.roleNames),r.Ab(2),r.kc("ngIf",void 0!==e.user))},directives:[b.e,b.d,v.a,y.r,y.u,A.s,b.f,A.t,w.a,_.b,u.g,D,Z],pipes:[R.d,Y.a],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 - 64px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),lt),ft=i("h39k"),pt=i("HHEo"),gt=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"redirect",component:pt.e},{path:"api-callback",component:l},{path:"organizations",loadChildren:function(){return Promise.all([i.e(2),i.e(9)]).then(i.bind(null,"B2++")).then((function(t){return t.VosModule}))}},{path:"admin",loadChildren:function(){return Promise.all([i.e(1),i.e(7)]).then(i.bind(null,"jkDv")).then((function(t){return t.AdminModule}))}},{path:"facilities",loadChildren:function(){return Promise.all([i.e(1),i.e(2),i.e(8)]).then(i.bind(null,"pjY/")).then((function(t){return t.FacilitiesModule}))}},{path:"myProfile",loadChildren:function(){return i.e(1).then(i.bind(null,"zrcO")).then((function(t){return t.UsersModule}))}},{path:"home",component:dt},{path:"**",component:ft.a}],bt=((ht=function t(){g(this,t)}).\u0275mod=r.Kb({type:ht}),ht.\u0275inj=r.Jb({factory:function(t){return new(t||ht)},imports:[[u.j.forRoot(gt,{preloadingStrategy:u.d,scrollPositionRestoration:"enabled"})],u.j]}),ht),mt=i("Sy1n"),vt=i("PCNd"),yt=function(){return["organizations"]};function At(t,e){1&t&&(r.Sb(0,"a",6),r.Nb(1,"mat-icon",2),r.Sb(2,"h1"),r.Jc(3),r.ec(4,"translate"),r.Rb(),r.Sb(5,"p"),r.Jc(6),r.ec(7,"translate"),r.Rb(),r.Rb()),2&t&&(r.kc("routerLink",r.oc(8,yt)),r.Ab(1),r.kc("svgIcon","perun-vo"),r.Ab(2),r.Kc(r.fc(4,4,"MAIN_MENU.ACCESS")),r.Ab(3),r.Kc(r.fc(7,6,"MAIN_MENU.ACCESS_DESC")))}var wt=function(){return["facilities"]};function _t(t,e){1&t&&(r.Sb(0,"a",7),r.Nb(1,"mat-icon",2),r.Sb(2,"h1"),r.Jc(3),r.ec(4,"translate"),r.Rb(),r.Sb(5,"p"),r.Jc(6),r.ec(7,"translate"),r.Rb(),r.Rb()),2&t&&(r.kc("routerLink",r.oc(8,wt)),r.Ab(1),r.kc("svgIcon","perun-manage-facility"),r.Ab(2),r.Kc(r.fc(4,4,"MAIN_MENU.FACILITIES")),r.Ab(3),r.Kc(r.fc(7,6,"MAIN_MENU.FACILITIES_DESC")))}var St=function(){return["admin"]};function kt(t,e){1&t&&(r.Sb(0,"a",8),r.Nb(1,"mat-icon",2),r.Sb(2,"h1"),r.Jc(3),r.ec(4,"translate"),r.Rb(),r.Sb(5,"p"),r.Jc(6),r.ec(7,"translate"),r.Rb(),r.Rb()),2&t&&(r.kc("routerLink",r.oc(8,St)),r.Ab(1),r.kc("svgIcon","perun-perun-admin"),r.Ab(2),r.Kc(r.fc(4,4,"MAIN_MENU.ADMIN")),r.Ab(3),r.Kc(r.fc(7,6,"MAIN_MENU.ADMIN_DESC")))}var Et,Rt,Ct,Tt,It=function(){return["profile"]},Ot=((Et=function(){function t(e,i){g(this,t),this.sideMenuService=e,this.authResolver=i}return m(t,[{key:"ngOnInit",value:function(){this.sideMenuService.reset()}}]),t}()).\u0275fac=function(t){return new(t||Et)(r.Mb(p.a),r.Mb(f.h))},Et.\u0275cmp=r.Gb({type:Et,selectors:[["app-main-menu-page"]],decls:12,vars:12,consts:[[1,"buttons-container","pl-2","pr-2","pl-xl-5","pr-xl-5"],["mat-ripple","",1,"main-menu-button","user-btn",3,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"],["class","main-menu-button vo-btn","mat-ripple","",3,"routerLink",4,"ngIf"],["class","main-menu-button facility-btn","mat-ripple","",3,"routerLink",4,"ngIf"],["class","main-menu-button admin-btn","mat-ripple","",3,"routerLink",4,"ngIf"],["mat-ripple","",1,"main-menu-button","vo-btn",3,"routerLink"],["mat-ripple","",1,"main-menu-button","facility-btn",3,"routerLink"],["mat-ripple","",1,"main-menu-button","admin-btn",3,"routerLink"]],template:function(t,e){1&t&&(r.Sb(0,"div",0),r.Sb(1,"a",1),r.Nb(2,"mat-icon",2),r.Sb(3,"h1"),r.Jc(4),r.ec(5,"translate"),r.Rb(),r.Sb(6,"p"),r.Jc(7),r.ec(8,"translate"),r.Rb(),r.Rb(),r.Hc(9,At,8,9,"a",3),r.Hc(10,_t,8,9,"a",4),r.Hc(11,kt,8,9,"a",5),r.Rb()),2&t&&(r.Ab(1),r.kc("routerLink",r.oc(11,It)),r.Ab(1),r.kc("svgIcon","perun-user"),r.Ab(2),r.Kc(r.fc(5,7,"MAIN_MENU.PROFILE")),r.Ab(3),r.Kc(r.fc(8,9,"MAIN_MENU.PROFILE_DESC")),r.Ab(2),r.kc("ngIf",e.authResolver.isVoAdmin()||e.authResolver.isVoObserver()),r.Ab(1),r.kc("ngIf",e.authResolver.canManageFacilities()),r.Ab(1),r.kc("ngIf",e.authResolver.isPerunAdmin()))},directives:[u.i,E.s,w.a,A.t],pipes:[R.d],styles:[".buttons-container[_ngcontent-%COMP%]{display:grid;padding-top:24px;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-column-gap:24px;grid-row-gap:24px}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:60px;margin-bottom:22px}.main-menu-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;min-width:230px;min-height:230px;padding:30px}.main-menu-button[_ngcontent-%COMP%]:hover{text-decoration:none}.main-menu-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px}.main-menu-button[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:500;font-size:1.25rem;text-align:center;margin-bottom:1rem}.main-menu-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin-bottom:0!important}"]}),Et),Dt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";g(this,t),this.http=e,this.prefix=i,this.suffix=n}return m(t,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),t}(),Mt=i("vobO"),Pt=i("5lCh"),xt=((Rt=function t(){g(this,t)}).\u0275mod=r.Kb({type:Rt}),Rt.\u0275inj=r.Jb({factory:function(t){return new(t||Rt)},providers:[f.d],imports:[[A.c]]}),Rt),Nt=i("M7la"),Lt=i("tT6Y"),Ft=i("Sv31"),zt=i("dWQl"),Ht=i("got8"),Bt=i("HdwC"),jt=i("vUMc"),Gt=i("Wq+4"),Ut=i("s8L6"),Kt=i("hQLc"),Vt=i("5bHy"),qt=i("KSio"),Jt=i("D+oT"),Wt=i("IgBI"),Zt=i("JKyc"),Yt=i("7TQF"),Xt=i("VFai"),Qt=i("+Jyz"),$t=((Ct=function(){function t(){g(this,t),this.allowCachePages=[{type:"vo",components:[Nt.a.id,Lt.a.id,Ft.a.id,Vt.a.id,qt.a.id,Wt.a.id,Qt.a.id]},{type:"group",components:[jt.a.id,Bt.a.id,Ht.a.id,zt.a.id,Zt.a.id]},{type:"facility",components:[Gt.a.id,Ut.a.id]},{type:"member",components:[Kt.a.id]},{type:"admin",components:[Jt.a.id]},{type:"entitySelect",components:[Yt.a.id,Xt.a.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;var e,i=d(this.allowCachePages);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.typeToComponentToHandlers.set(n.type,new Map)}}catch(r){i.e(r)}finally{i.f()}}return m(t,[{key:"setLastNavigationType",value:function(t){this.isUserNavigatingBack="back"===t}},{key:"checkResets",value:function(t){var e,i=this.getPath(t),n=d(this.resets);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.resetPath===i){var a=t.params[r.param];null!==r.lastValue&&r.lastValue!==a&&this.typeToComponentToHandlers.get(r.resetType).clear(),r.lastValue=a}}}catch(o){n.e(o)}finally{n.f()}}},{key:"shouldReuseRoute",value:function(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}},{key:"retrieve",value:function(t){if(t.component){var e,i=this.getComponentName(t.component),n=d(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i)){var a=this.typeToComponentToHandlers.get(r.type).get(i);return void 0===a?null:a.routeHandle}}}catch(o){n.e(o)}finally{n.f()}}return null}},{key:"shouldAttach",value:function(t){if(!this.isUserNavigatingBack)return!1;if(t.component){var e,i=this.getComponentName(t.component),n=d(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value,a=this.typeToComponentToHandlers.get(r.type).get(i);if(void 0!==a&&this.getCurrentTimestamp()-a.saveTimeStampt[a]-t[o]-1&&(t.reach[c]="end"),e&&(h.dispatchEvent(xe("ps-scroll-"+c)),e<0?h.dispatchEvent(xe("ps-scroll-"+u)):e>0&&h.dispatchEvent(xe("ps-scroll-"+l)),n&&function(t,e){Ie(t,e),Oe(t,e)}(t,c)),t.reach[c]&&(e||r)&&h.dispatchEvent(xe("ps-"+c+"-reach-"+t.reach[c]))}(t,i,a,n,r)}function Le(t){return parseInt(t,10)||0}Pe.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new De(t),this.eventElements.push(e)),e},Pe.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},Pe.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},Pe.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},Pe.prototype.once=function(t,e,i){var n=this.eventElement(t);n.bind(e,(function t(r){n.unbind(e,t),i(r)}))};var Fe={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function ze(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(Se(e,Ee("x")).forEach((function(t){return _e(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(Se(e,Ee("y")).forEach((function(t){return _e(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,ve(e.scrollbarXRail,i);var r={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,ve(e.scrollbarYRail,r),ve(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),ve(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(Re("x")):(e.classList.remove(Re("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(Re("y")):(e.classList.remove(Re("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function He(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Be(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],s=e[5],c=e[6],u=e[7],l=e[8],h=t.element,d=null,f=null,p=null;function g(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),h[c]=d+p*(e[r]-f),Ie(t,u),ze(t),e.stopPropagation(),e.preventDefault()}function b(){Oe(t,u),t[l].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",g)}function m(e,o){d=h[c],o&&e.touches&&(e[r]=e.touches[0].pageY),f=e[r],p=(t[n]-t[i])/(t[a]-t[s]),o?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",b),e.preventDefault()),t[l].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[o],"mousedown",(function(t){m(t)})),t.event.bind(t[o],"touchstart",(function(t){m(t,!0)}))}var je={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,ze(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,ze(t),e.stopPropagation()}))},"drag-thumb":function(t){Be(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Be(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(we(e,":hover")||we(t.scrollbarX,":focus")||we(t.scrollbarY,":focus"))){var n,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(we(n=r,"input,[contenteditable]")||we(n,"select,[contenteditable]")||we(n,"textarea,[contenteditable]")||we(n,"button,[contenteditable]"))return}var a=0,o=0;switch(i.which){case 37:a=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:o=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:a=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:o=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:o=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:o=t.containerHeight;break;case 34:o=-t.containerHeight;break;case 36:o=t.contentHeight;break;case 35:o=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==a||t.settings.suppressScrollY&&0!==o||(e.scrollTop-=o,e.scrollLeft+=a,ze(t),function(i,n){var r=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&n>0||r>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var a=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===a&&i<0||a>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(a,o)&&i.preventDefault())}}))},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),r=n[0],a=n[1];if(!function(t,i,n){if(!Fe.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var a=me(r);if(n&&a.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&a.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,r,a)){var o=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(a?e.scrollTop-=a*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,o=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=a*t.settings.wheelSpeed,o=!0):(e.scrollTop-=a*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),ze(t),(o=o||function(i,n){var r=Math.floor(e.scrollTop),a=0===e.scrollTop,o=r+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?a||o:s||c)||!t.settings.wheelPropagation}(r,a))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(Fe.supportsTouch||Fe.supportsIePointer){var e=t.element,i={},n=0,r={},a=null;Fe.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",l),t.event.bind(e,"touchend",h)):Fe.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",l),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",l),t.event.bind(e,"MSPointerUp",h)))}function o(i,n){e.scrollTop-=n,e.scrollLeft-=i,ze(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(c(t)){var e=s(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==a&&clearInterval(a)}}function l(a){if(c(a)){var u=s(a),l={pageX:u.pageX,pageY:u.pageY},h=l.pageX-i.pageX,d=l.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var a=me(r);if(n&&a.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&a.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(a.target,h,d))return;o(h,d),i=l;var f=(new Date).getTime(),p=f-n;p>0&&(r.x=h/p,r.y=d/p,n=f),function(i,n){var r=Math.floor(e.scrollTop),a=e.scrollLeft,o=Math.abs(i),s=Math.abs(n);if(s>o){if(n<0&&r===t.contentHeight-t.containerHeight||n>0&&0===r)return 0===window.scrollY&&n>0&&Fe.isChrome}else if(o>s&&(i<0&&a===t.contentWidth-t.containerWidth||i>0&&0===a))return!0;return!0}(h,d)&&a.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(a),a=setInterval((function(){t.isInitialized?clearInterval(a):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(a):(o(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(a)}),10))}}},Ge=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,a,o=function(){return t.classList.add("ps--focus")},s=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===me(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(a=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=a,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Pe,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=ye(Ee("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=ye(ke("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=me(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Le(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Le(c.borderLeftWidth)+Le(c.borderRightWidth),ve(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Le(c.marginLeft)+Le(c.marginRight),ve(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=ye(Ee("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=ye(ke("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=me(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Le(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=me(t);return Le(e.width)+Le(e.paddingLeft)+Le(e.paddingRight)+Le(e.borderLeftWidth)+Le(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Le(u.borderTopWidth)+Le(u.borderBottomWidth),ve(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Le(u.marginTop)+Le(u.marginBottom),ve(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return je[t](i)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return i.onScroll(t)})),ze(this)};Ge.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ve(this.scrollbarXRail,{display:"block"}),ve(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Le(me(this.scrollbarXRail).marginLeft)+Le(me(this.scrollbarXRail).marginRight),this.railYMarginHeight=Le(me(this.scrollbarYRail).marginTop)+Le(me(this.scrollbarYRail).marginBottom),ve(this.scrollbarXRail,{display:"none"}),ve(this.scrollbarYRail,{display:"none"}),ze(this),Ne(this,"top",0,!1,!0),Ne(this,"left",0,!1,!0),ve(this.scrollbarXRail,{display:""}),ve(this.scrollbarYRail,{display:""}))},Ge.prototype.onScroll=function(t){this.isAlive&&(ze(this),Ne(this,"top",this.element.scrollTop-this.lastScrollTop),Ne(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ge.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),_e(this.scrollbarX),_e(this.scrollbarY),_e(this.scrollbarXRail),_e(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ge.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var Ue=Ge,Ke=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some((function(t,n){return t[0]===e&&(i=n,!0)})),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Ve&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ze?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Ve&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;We.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Xe=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),si="undefined"!=typeof WeakMap?new WeakMap:new Ke,ci=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ye.getInstance(),n=new oi(e,i,this);si.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){ci.prototype[t]=function(){var e;return(e=si.get(this))[t].apply(e,arguments)}}));var ui=void 0!==qe.ResizeObserver?qe.ResizeObserver:ci;function li(t,e){if(1&t&&(r.Sb(0,"div",3),r.Nb(1,"div",4),r.Nb(2,"div",5),r.Nb(3,"div",6),r.Nb(4,"div",7),r.Rb()),2&t){var i=r.dc();r.Eb("ps-at-top",i.states.top)("ps-at-left",i.states.left)("ps-at-right",i.states.right)("ps-at-bottom",i.states.bottom),r.Ab(1),r.Eb("ps-indicator-show",i.indicatorY&&i.interaction),r.Ab(1),r.Eb("ps-indicator-show",i.indicatorX&&i.interaction),r.Ab(1),r.Eb("ps-indicator-show",i.indicatorX&&i.interaction),r.Ab(1),r.Eb("ps-indicator-show",i.indicatorY&&i.interaction)}}var hi,di,fi,pi=["*"],gi=new r.r("PERFECT_SCROLLBAR_CONFIG"),bi=function t(e,i,n,r){g(this,t),this.x=e,this.y=i,this.w=n,this.h=r},mi=function t(e,i){g(this,t),this.x=e,this.y=i},vi=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"],yi=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g(this,t),this.assign(e)}return m(t,[{key:"assign",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this[e]=t[e]}}]),t}(),Ai=((fi=function(){function t(e,i,n,a,o){g(this,t),this.zone=e,this.differs=i,this.elementRef=n,this.platformId=a,this.defaults=o,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new se.a,this.disabled=!1,this.psScrollY=new r.o,this.psScrollX=new r.o,this.psScrollUp=new r.o,this.psScrollDown=new r.o,this.psScrollLeft=new r.o,this.psScrollRight=new r.o,this.psYReachEnd=new r.o,this.psYReachStart=new r.o,this.psXReachEnd=new r.o,this.psXReachStart=new r.o}return m(t,[{key:"ngOnInit",value:function(){var t=this;if(!this.disabled&&Object(A.J)(this.platformId)){var e=new yi(this.defaults);e.assign(this.config),this.zone.runOutsideAngular((function(){t.instance=new Ue(t.elementRef.nativeElement,e)})),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular((function(){t.ro=new ui((function(){t.update()})),t.elementRef.nativeElement.children[0]&&t.ro.observe(t.elementRef.nativeElement.children[0]),t.ro.observe(t.elementRef.nativeElement)})),this.zone.runOutsideAngular((function(){vi.forEach((function(e){var i=e.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}));Object(ce.a)(t.elementRef.nativeElement,i).pipe(Object(le.a)(20),Object(he.a)(t.ngDestroy)).subscribe((function(i){t[e].emit(i)}))}))}))}}},{key:"ngOnDestroy",value:function(){var t=this;Object(A.J)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular((function(){t.instance&&t.instance.destroy()})),this.instance=null)}},{key:"ngDoCheck",value:function(){!this.disabled&&this.configDiff&&Object(A.J)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}},{key:"ngOnChanges",value:function(t){t.disabled&&!t.disabled.isFirstChange()&&Object(A.J)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}},{key:"ps",value:function(){return this.instance}},{key:"update",value:function(){var t=this;"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){if(!t.disabled&&t.configDiff)try{t.zone.runOutsideAngular((function(){t.instance&&t.instance.update()}))}catch(e){}}),0))}},{key:"geometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return new bi(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}},{key:"position",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!t&&this.instance?new mi(this.instance.reach.x||0,this.instance.reach.y||0):new mi(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}},{key:"scrollable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any",e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}},{key:"scrollTo",value:function(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}},{key:"scrollToX",value:function(t,e){this.animateScrolling("scrollLeft",t,e)}},{key:"scrollToY",value:function(t,e){this.animateScrolling("scrollTop",t,e)}},{key:"scrollToTop",value:function(t,e){this.animateScrolling("scrollTop",t||0,e)}},{key:"scrollToLeft",value:function(t,e){this.animateScrolling("scrollLeft",t||0,e)}},{key:"scrollToRight",value:function(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}},{key:"scrollToBottom",value:function(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}},{key:"scrollToElement",value:function(t,e,i){var n=this.elementRef.nativeElement.querySelector(t);if(n){var r=n.getBoundingClientRect(),a=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",r.left-a.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",r.top-a.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}},{key:"animateScrolling",value:function(t,e,i){var n=this;if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){var r=0,a=0,o=performance.now(),s=this.elementRef.nativeElement[t],c=(s-e)/2;window.requestAnimationFrame((function u(l){a+=Math.PI/(i/(l-o)),r=Math.round(e+c+c*Math.cos(a)),n.elementRef.nativeElement[t]===s&&(a>=Math.PI?n.animateScrolling(t,e,0):(n.elementRef.nativeElement[t]=r,s=n.elementRef.nativeElement[t],o=l,n.animation=window.requestAnimationFrame(u)))}))}}else this.elementRef.nativeElement[t]=e}}]),t}()).\u0275fac=function(t){return new(t||fi)(r.Mb(r.A),r.Mb(r.u),r.Mb(r.l),r.Mb(r.C),r.Mb(gi,8))},fi.\u0275dir=r.Hb({type:fi,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[r.yb]}),fi),wi=((di=function(){function t(e,i,n){g(this,t),this.zone=e,this.cdRef=i,this.platformId=n,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new se.a,this.stateUpdate=new se.a,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new r.o,this.psScrollX=new r.o,this.psScrollUp=new r.o,this.psScrollDown=new r.o,this.psScrollLeft=new r.o,this.psScrollRight=new r.o,this.psYReachEnd=new r.o,this.psYReachStart=new r.o,this.psXReachEnd=new r.o,this.psXReachStart=new r.o}return m(t,[{key:"ngOnInit",value:function(){var t=this;Object(A.J)(this.platformId)&&(this.stateUpdate.pipe(Object(he.a)(this.ngDestroy),Object(de.a)((function(e,i){return e===i&&!t.stateTimeout}))).subscribe((function(e){t.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(t.stateTimeout),t.stateTimeout=null),"x"===e||"y"===e?(t.interaction=!1,"x"===e?(t.indicatorX=!1,t.states.left=!1,t.states.right=!1,t.autoPropagation&&t.usePropagationX&&(t.allowPropagationX=!1)):"y"===e&&(t.indicatorY=!1,t.states.top=!1,t.states.bottom=!1,t.autoPropagation&&t.usePropagationY&&(t.allowPropagationY=!1))):("left"===e||"right"===e?(t.states.left=!1,t.states.right=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationX&&(t.indicatorX=!0)):"top"!==e&&"bottom"!==e||(t.states.top=!1,t.states.bottom=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationY&&(t.indicatorY=!0)),t.autoPropagation&&"undefined"!=typeof window&&(t.stateTimeout=window.setTimeout((function(){t.indicatorX=!1,t.indicatorY=!1,t.stateTimeout=null,t.interaction&&(t.states.left||t.states.right)&&(t.allowPropagationX=!0),t.interaction&&(t.states.top||t.states.bottom)&&(t.allowPropagationY=!0),t.cdRef.markForCheck()}),500))),t.cdRef.markForCheck(),t.cdRef.detectChanges()})),this.zone.runOutsideAngular((function(){if(t.directiveRef){var e=t.directiveRef.elementRef.nativeElement;Object(ce.a)(e,"wheel").pipe(Object(he.a)(t.ngDestroy)).subscribe((function(e){!t.disabled&&t.autoPropagation&&t.checkPropagation(e,e.deltaX,e.deltaY)})),Object(ce.a)(e,"touchmove").pipe(Object(he.a)(t.ngDestroy)).subscribe((function(e){if(!t.disabled&&t.autoPropagation){var i=e.touches[0].clientX,n=e.touches[0].clientY;t.checkPropagation(e,i-t.scrollPositionX,n-t.scrollPositionY),t.scrollPositionX=i,t.scrollPositionY=n}})),Object(ue.a)(Object(ce.a)(e,"ps-scroll-x").pipe(pe("x")),Object(ce.a)(e,"ps-scroll-y").pipe(pe("y")),Object(ce.a)(e,"ps-x-reach-end").pipe(pe("right")),Object(ce.a)(e,"ps-y-reach-end").pipe(pe("bottom")),Object(ce.a)(e,"ps-x-reach-start").pipe(pe("left")),Object(ce.a)(e,"ps-y-reach-start").pipe(pe("top"))).pipe(Object(he.a)(t.ngDestroy)).subscribe((function(e){t.disabled||!t.autoPropagation&&!t.scrollIndicators||t.stateUpdate.next(e)}))}})),window.setTimeout((function(){vi.forEach((function(e){t.directiveRef&&(t.directiveRef[e]=t[e])}))}),0))}},{key:"ngOnDestroy",value:function(){Object(A.J)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}},{key:"ngDoCheck",value:function(){if(Object(A.J)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){var t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}},{key:"checkPropagation",value:function(t,e,i){this.interaction=!0;var n=e<0?-1:1,r=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==r))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=r),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}]),t}()).\u0275fac=function(t){return new(t||di)(r.Mb(r.A),r.Mb(r.h),r.Mb(r.C))},di.\u0275cmp=r.Gb({type:di,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){var i;1&t&&r.Dc(Ai,!0),2&t&&r.sc(i=r.ac())&&(e.directiveRef=i.first)},hostVars:4,hostBindings:function(t,e){2&t&&r.Eb("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:pi,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(r.jc(),r.Sb(0,"div",0),r.Sb(1,"div",1),r.ic(2),r.Rb(),r.Hc(3,li,5,16,"div",2),r.Rb()),2&t&&(r.Eb("ps",e.usePSClass),r.kc("perfectScrollbar",e.config)("disabled",e.disabled),r.Ab(3),r.kc("ngIf",e.scrollIndicators))},directives:[Ai,A.t],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),di),_i=((hi=function t(){g(this,t)}).\u0275mod=r.Kb({type:hi}),hi.\u0275inj=r.Jb({factory:function(t){return new(t||hi)},imports:[[A.c],A.c]}),hi),Si=i("BYpP"),ki=i("gpj7"),Ei=i("qvOF"),Ri=i("ulve"),Ci=i("E5oP"),Ti=i("H0K4"),Ii=i("29Wa"),Oi=i("Cd2c"),Di=i("A1vf"),Mi=i("cePI"),Pi=i("FlRo"),xi=i("KZIX"),Ni=i("QcI7"),Li=i("R7+U"),Fi=i("W1gw"),zi=i("66mq"),Hi=i("k8N0"),Bi=i("gcUQ"),ji=i("F1o0"),Gi=i("zmEM"),Ui=i("Meci"),Ki=i("x9Az"),Vi=i("alep"),qi=i("iAde"),Ji=i("PY7g"),Wi=i("oqI+"),Zi=i("jk8c"),Yi=i("WimW"),Xi=i("vhVt"),Qi=i("p/8k"),$i=i("p3Ob"),tn=i("ZWQq"),en=i("S17y"),nn=i("3Uyd"),rn=i("Jb3d"),an=i("NU+N"),on=i("ma6z"),sn=i("Rbfv"),cn=i("snnp"),un=i("ZWyU"),ln=i("yNE8"),hn=i("pgvo"),dn=i("bdug"),fn=i("gdiH"),pn=i("77So"),gn=i("iT3j"),bn=i("5kIe"),mn=i("gcZR"),vn=i("eakH"),yn=i("NC8S"),An=i("pnmw"),wn=i("OL2r"),_n=i("IDQ9"),Sn=i("KF6X"),kn=i("j610"),En=i("VBdk"),Rn=i("jjFd"),Cn=i("9wx0"),Tn=i("XpU2"),In=i("0XDM"),On=i("EtYo"),Dn=i("A8Ay"),Mn=i("LKLE"),Pn=i("nhAq"),xn=i("b7Yx"),Nn=i("8cyV"),Ln=i("U3ra"),Fn=i("UX+r"),zn=i("ZG5M"),Hn=i("tmvS"),Bn=i("TQS+"),jn=i("YFHD"),Gn=i("3jrC"),Un=i("XAvq"),Kn=i("WLDY"),Vn=i("B/Qt"),qn=i("YRqw"),Jn=i("nz2m"),Wn=i("COMt"),Zn=i("ABWF"),Yn=i("eXxK"),Xn=i("22FB"),Qn=i("KQGD"),$n=i("jqZM"),tr=i("HMTk"),er=i("Ds80"),ir=i("LAw4"),nr=i("BnyX"),rr=i("2Zb0"),ar=i("ajPJ"),or=i("oYGW"),sr=i("pynj"),cr=i("l18O"),ur=i("6Xhx"),lr=i("e+sS"),hr=i("kdIE"),dr=i("XhvO"),fr=i("g3Wv"),pr=i("1Gb8"),gr=i("+TsY"),br=i("hLiN"),mr=i("L4Ow"),vr=i("7fDV"),yr=i("7o/y"),Ar=i("yAs8"),wr=i("O/Vf"),_r=i("bwko"),Sr=i("A6H7"),kr={provide:Mt.a,useExisting:Object(r.U)((function(){return f.a})),multi:!0};function Er(t){return new Dt(t,"./assets/i18n/",".json")}function Rr(t){var e={basePath:t.get("api_url")};return new h.e(e)}var Cr,Tr=function(t){return function(){return t.loadConfigs()}},Ir={suppressScrollX:!0},Or=((Cr=function t(e,i){g(this,t),this.customIconService=e,this.translate=i,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}).\u0275mod=r.Kb({type:Cr,bootstrap:[mt.a]}),Cr.\u0275inj=r.Jb({factory:function(t){return new(t||Cr)(r.Wb(f.e),r.Wb(R.e))},providers:[oe,{provide:r.d,useFactory:Tr,multi:!0,deps:[oe]},{provide:h.e,useFactory:Rr,deps:[f.m]},{provide:u.e,useClass:$t},f.e,{provide:te,useClass:f.c},f.a,kr,{provide:gi,useValue:Ir}],imports:[[Pt.b,c.a,Mt.c,vt.a,xt,bt,w.b,re.a,R.c.forRoot({loader:{provide:R.b,useFactory:Er,deps:[Mt.b]}}),h.b,_i,pt.d]]}),Cr);r.Ac(mt.a,[A.q,A.r,A.s,A.t,A.A,A.w,A.x,A.y,A.z,A.u,A.v,Si.a,Si.c,ki.a,Ei.b,Ri.a,E.n,E.m,Ri.d,Ri.c,Ci.b,Ti.b,Ti.c,Ii.b,Ii.c,Ii.f,Ii.g,Ii.h,Ii.i,Ii.j,Oi.b,Oi.d,u.k,u.g,u.i,u.h,u.l,y.H,y.w,y.G,y.c,y.x,y.A,y.a,y.D,y.E,y.z,y.r,y.s,y.C,y.n,y.m,y.y,y.b,y.d,y.h,y.j,y.i,y.k,y.e,y.u,y.v,y.t,w.a,Di.a,b.a,b.b,b.c,b.d,b.e,b.f,R.a,Mi.a,Mi.b,Pi.n,Pi.i,Pi.k,Pi.c,Pi.b,Pi.m,Pi.e,Pi.g,Pi.h,Pi.a,Pi.d,Pi.j,Pi.l,Pi.f,Pi.q,xi.c,xi.d,xi.a,xi.f,xi.e,xi.b,Ni.a,Ni.g,Ni.i,Ni.j,Ni.b,Ni.f,Ni.h,_.b,_.a,v.a,v.c,ae.f,ae.d,ae.j,ae.g,ae.c,Li.a,Li.c,Fi.a,P.a,P.c,zi.a,M.a,M.c,Hi.c,Hi.a,Bi.a,Bi.b,Bi.d,Bi.e,Bi.f,Bi.h,Bi.i,Bi.j,Bi.l,Bi.k,Bi.c,ji.b,ji.a,Gi.a,Ui.a,Ui.f,Ui.n,Ui.d,Ui.m,Ui.l,Ui.b,Ui.e,Ui.k,Ui.i,Ui.h,Ui.g,Ui.o,Ui.c,Ki.a,Ki.j,Ki.b,Ki.d,Ki.e,Ki.h,Ki.i,Ki.c,Ki.f,Vi.a,E.s,qi.a,Ji.a,Wi.e,Wi.f,Wi.a,Wi.b,Wi.d,Wi.c,Zi.a,Yi.a,Xi.a,Qi.a,$i.a,tn.a,en.d,en.a,en.c,en.e,en.b,en.f,nn.a,nn.c,nn.d,nn.g,nn.h,nn.f,nn.e,rn.e,rn.b,rn.d,rn.a,Ei.a,Ei.d,Ei.e,an.a,on.a,sn.a,cn.a,un.a,ln.a,hn.a,dn.a,fn.a,pn.a,gn.a,bn.a,mn.a,vn.a,yn.a,An.a,wn.a,_n.a,Sn.a,l,kn.a,En.a,Rn.a,wi,Ai,x.a,N.a,Cn.a,Tn.a,In.a,On.a,Dn.a,Mn.a,Pn.a,xn.a,Nn.a,Ln.a,Fn.a,L.a,zn.a,Hn.a,Bn.a,jn.a,Gn.a,Un.a,Kn.a,Bn.b,Vn.a,qn.a,Jn.a,Wn.a,Zn.a,Bn.c,Yn.a,Xn.a,Qn.a,$n.a,tr.a,er.a,F.a,ir.a,nr.a,rr.a,ar.a,or.a,sr.a,cr.a,ur.a,mt.a,Ot],[A.b,A.G,A.p,A.k,A.E,A.g,A.C,A.F,A.d,A.f,A.i,A.j,A.l,R.d,lr.a,hr.a,dr.a,fr.a,pr.a,gr.a,br.a,mr.a,vr.a,yr.a,Ar.a,wr.a,_r.a,Sr.a]),o.a.production&&Object(r.T)(),c.e().bootstrapModule(Or).catch((function(t){return console.error(t)}))},zldI:function(t,e,i){"use strict";i.d(e,"a",(function(){return x}));var n=i("Ssnw"),r=i("X2Q7"),a=i("Iydx"),o=i("EM62"),s=i("OZ4H"),c=i("s2Ay"),u=i("2kYt"),l=i("PBFl"),h=i("Y2X+"),d=i("csyo"),f=i("29Wa"),p=i("Cd2c"),b=i("nIj0"),v=i("H0K4"),y=i("R7+U"),A=i("k8N0"),w=i("+Tre"),_=i("mFH5");function S(t,e){1&t&&o.Nb(0,"mat-spinner",7)}function k(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function E(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function R(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function C(t,e){if(1&t&&(o.Sb(0,"mat-option",29),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.kc("value",i),o.Ab(1),o.Kc(i)}}function T(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function I(t,e){if(1&t&&(o.Sb(0,"mat-option",29),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.kc("value",i),o.Ab(1),o.Kc(i)}}function O(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function D(t,e){if(1&t&&(o.Sb(0,"mat-option",29),o.Jc(1),o.Rb()),2&t){var i=e.$implicit;o.kc("value",i),o.Ab(1),o.Kc(i)}}function M(t,e){1&t&&(o.Sb(0,"mat-error"),o.Jc(1),o.ec(2,"translate"),o.Rb()),2&t&&(o.Ab(1),o.Kc(o.fc(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function P(t,e){if(1&t){var i=o.Tb();o.Sb(0,"div",8),o.Sb(1,"mat-form-field",9),o.Sb(2,"label"),o.Sb(3,"input",10),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().attDef.friendlyName=t})),o.ec(4,"translate"),o.Rb(),o.Rb(),o.Hc(5,k,3,3,"mat-error",11),o.Rb(),o.Nb(6,"br"),o.Sb(7,"mat-form-field",9),o.Sb(8,"label"),o.Sb(9,"input",10),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().attDef.displayName=t})),o.ec(10,"translate"),o.Rb(),o.Rb(),o.Hc(11,E,3,3,"mat-error",11),o.Rb(),o.Nb(12,"br"),o.Sb(13,"mat-form-field",9),o.Sb(14,"label"),o.Sb(15,"textarea",12),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().attDef.description=t})),o.ec(16,"translate"),o.Jc(17," "),o.Rb(),o.Rb(),o.Hc(18,R,3,3,"mat-error",11),o.Rb(),o.Nb(19,"br"),o.Sb(20,"mat-form-field",9),o.Sb(21,"mat-placeholder"),o.Jc(22),o.ec(23,"translate"),o.Rb(),o.Sb(24,"mat-select",13),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().entity=t})),o.Hc(25,C,2,2,"mat-option",14),o.Rb(),o.Hc(26,T,3,3,"mat-error",11),o.Rb(),o.Nb(27,"br"),o.Sb(28,"mat-form-field",9),o.Sb(29,"mat-placeholder"),o.Jc(30),o.ec(31,"translate"),o.Rb(),o.Sb(32,"mat-select",13),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().definitionType=t})),o.Hc(33,I,2,2,"mat-option",14),o.Rb(),o.Hc(34,O,3,3,"mat-error",11),o.Rb(),o.Nb(35,"br"),o.Sb(36,"mat-form-field",9),o.Sb(37,"mat-placeholder"),o.Jc(38),o.ec(39,"translate"),o.Rb(),o.Sb(40,"mat-select",13),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().valueType=t})),o.Hc(41,D,2,2,"mat-option",14),o.Rb(),o.Hc(42,M,3,3,"mat-error",11),o.Rb(),o.Nb(43,"br"),o.Sb(44,"div",15),o.Sb(45,"p"),o.Jc(46),o.ec(47,"translate"),o.Rb(),o.Sb(48,"p",16),o.Zb("click",(function(){return o.xc(i),o.dc().attDef.unique=!1})),o.Jc(49,"OFF"),o.Rb(),o.Sb(50,"mat-slide-toggle",17),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().attDef.unique=t})),o.ec(51,"translate"),o.Jc(52," ON "),o.Rb(),o.Rb(),o.Sb(53,"div",18),o.Sb(54,"p",19),o.Jc(55),o.ec(56,"translate"),o.Rb(),o.Sb(57,"p",20),o.Jc(58),o.ec(59,"translate"),o.Rb(),o.Rb(),o.Sb(60,"div",21),o.Sb(61,"p",22),o.Jc(62),o.ec(63,"translate"),o.Rb(),o.Sb(64,"mat-checkbox",23),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().readSelf=t})),o.Rb(),o.Sb(65,"mat-checkbox",24),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().writeSelf=t})),o.Rb(),o.Rb(),o.Sb(66,"div",21),o.Sb(67,"p",22),o.Jc(68),o.ec(69,"translate"),o.Rb(),o.Sb(70,"mat-checkbox",25),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().readSelfPublic=t})),o.Rb(),o.Sb(71,"mat-checkbox",24),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().writeSelfPublic=t})),o.Rb(),o.Rb(),o.Sb(72,"div",21),o.Sb(73,"p",22),o.Jc(74),o.ec(75,"translate"),o.Rb(),o.Sb(76,"mat-checkbox",26),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().readSelfVo=t})),o.Rb(),o.Sb(77,"mat-checkbox",24),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().writeSelfVo=t})),o.Rb(),o.Rb(),o.Sb(78,"div",21),o.Sb(79,"p",22),o.Jc(80),o.ec(81,"translate"),o.Rb(),o.Sb(82,"mat-checkbox",27),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().readVo=t})),o.Rb(),o.Sb(83,"mat-checkbox",24),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().writeVo=t})),o.Rb(),o.Rb(),o.Sb(84,"div",21),o.Sb(85,"p",22),o.Jc(86),o.ec(87,"translate"),o.Rb(),o.Sb(88,"mat-checkbox",28),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().readGroup=t})),o.Rb(),o.Sb(89,"mat-checkbox",24),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().writeGroup=t})),o.Rb(),o.Rb(),o.Sb(90,"div",21),o.Sb(91,"p",22),o.Jc(92),o.ec(93,"translate"),o.Rb(),o.Sb(94,"mat-checkbox",26),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().readFacility=t})),o.Rb(),o.Sb(95,"mat-checkbox",24),o.Zb("ngModelChange",(function(t){return o.xc(i),o.dc().writeFacility=t})),o.Rb(),o.Rb(),o.Rb()}if(2&t){var n=o.dc();o.Ab(3),o.lc("placeholder",o.fc(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),o.kc("ngModel",n.attDef.friendlyName),o.Ab(2),o.kc("ngIf",""===n.attDef.friendlyName),o.Ab(4),o.lc("placeholder",o.fc(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),o.kc("ngModel",n.attDef.displayName),o.Ab(2),o.kc("ngIf",""===n.attDef.displayName),o.Ab(4),o.lc("placeholder",o.fc(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),o.kc("ngModel",n.attDef.description),o.Ab(3),o.kc("ngIf",""===n.attDef.description),o.Ab(4),o.Kc(o.fc(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),o.Ab(2),o.kc("ngModel",n.entity),o.Ab(1),o.kc("ngForOf",n.entities),o.Ab(1),o.kc("ngIf",""===n.attDef.entity),o.Ab(4),o.Kc(o.fc(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),o.Ab(2),o.kc("ngModel",n.definitionType),o.Ab(1),o.kc("ngForOf",n.definitionTypes),o.Ab(1),o.kc("ngIf",""===n.definitionType),o.Ab(4),o.Kc(o.fc(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),o.Ab(2),o.kc("ngModel",n.valueType),o.Ab(1),o.kc("ngForOf",n.valueTypes),o.Ab(1),o.kc("ngIf",""===n.valueType),o.Ab(4),o.Kc(o.fc(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),o.Ab(4),o.lc("matTooltip",o.fc(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),o.kc("matTooltipDisabled",!n.disableUniqueToggle())("disabled",n.disableUniqueToggle())("ngModel",n.attDef.unique),o.Ab(5),o.Kc(o.fc(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),o.Ab(3),o.Kc(o.fc(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),o.Ab(4),o.Kc(o.fc(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),o.Ab(2),o.kc("ngModel",n.readSelf),o.Ab(1),o.kc("ngModel",n.writeSelf),o.Ab(3),o.Kc(o.fc(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),o.Ab(2),o.kc("ngModel",n.readSelfPublic),o.Ab(1),o.kc("ngModel",n.writeSelfPublic),o.Ab(3),o.Kc(o.fc(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),o.Ab(2),o.kc("ngModel",n.readSelfVo),o.Ab(1),o.kc("ngModel",n.writeSelfVo),o.Ab(3),o.Kc(o.fc(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),o.Ab(2),o.kc("ngModel",n.readVo),o.Ab(1),o.kc("ngModel",n.writeVo),o.Ab(3),o.Kc(o.fc(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),o.Ab(2),o.kc("ngModel",n.readGroup),o.Ab(1),o.kc("ngModel",n.writeGroup),o.Ab(3),o.Kc(o.fc(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),o.Ab(2),o.kc("ngModel",n.readFacility),o.Ab(1),o.kc("ngModel",n.writeFacility)}}var x=function(){var t=function(){function t(e,i,n,r){g(this,t),this.dialogRef=e,this.notificator=i,this.translate=n,this.attributesManager=r,this.loading=!1,this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","user_ext_source","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}return m(t,[{key:"ngOnInit",value:function(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe((function(e){t.attDef=e,t.attributesManager.setAttributeRights({rights:t.readRights()}).subscribe((function(){t.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe((function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)}))}),(function(){return t.loading=!1}))}),(function(){return t.loading=!1}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"readRights",value:function(){var t=[],e={};e.attributeId=this.attDef.id,e.role=a.a.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);var i={};i.attributeId=this.attDef.id,i.role=a.a.VOADMIN,i.rights=[],this.readVo&&i.rights.push(r.a.READ),this.writeVo&&i.rights.push(r.a.WRITE),t.push(i);var n={};n.attributeId=this.attDef.id,n.role=a.a.GROUPADMIN,n.rights=[],this.readGroup&&n.rights.push(r.a.READ),this.writeGroup&&n.rights.push(r.a.WRITE),t.push(n);var o={};return o.attributeId=this.attDef.id,o.role=a.a.FACILITYADMIN,o.rights=[],this.readFacility&&o.rights.push(r.a.READ),this.writeFacility&&o.rights.push(r.a.WRITE),t.push(o),t}},{key:"readValueType",value:function(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}},{key:"disableConfirmButton",value:function(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}},{key:"disableUniqueToggle",value:function(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Mb(s.i),o.Mb(n.l),o.Mb(c.e),o.Mb(r.c))},t.\u0275cmp=o.Gb({type:t,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,e){1&t&&(o.Sb(0,"div",0),o.Sb(1,"h1",1),o.Jc(2),o.ec(3,"translate"),o.Rb(),o.Hc(4,S,1,0,"mat-spinner",2),o.Hc(5,P,96,78,"div",3),o.Sb(6,"div",4),o.Sb(7,"button",5),o.Zb("click",(function(){return e.onCancel()})),o.Jc(8),o.ec(9,"translate"),o.Rb(),o.Sb(10,"button",6),o.Zb("click",(function(){return e.onSubmit()})),o.ec(11,"translate"),o.Jc(12),o.ec(13,"translate"),o.Rb(),o.Rb(),o.Rb()),2&t&&(o.Ab(2),o.Kc(o.fc(3,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),o.Ab(2),o.kc("ngIf",e.loading),o.Ab(1),o.kc("ngIf",!e.loading),o.Ab(3),o.Lc(" ",o.fc(9,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),o.Ab(2),o.lc("matTooltip",o.fc(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),o.kc("disabled",e.disableConfirmButton())("matTooltipDisabled",!e.disableConfirmButton()),o.Ab(2),o.Lc(" ",o.fc(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[s.j,u.t,s.c,l.b,h.a,d.c,s.g,f.c,p.b,b.c,b.C,b.r,b.u,v.c,f.h,y.a,u.s,A.a,w.a,f.b,_.n],pipes:[c.d],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),t}()},zmEM:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return s}));var n=i("5XID"),r=i("mFH5"),a=i("EM62"),o=function(){var t=function(){function t(){g(this,t),this._vertical=!1,this._inset=!1}return m(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=Object(n.c)(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=Object(n.c)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Bb("aria-orientation",e.vertical?"vertical":"horizontal"),a.Eb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),s=function(){var t=function t(){g(this,t)};return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t}()},zn8P:function(t,e){function i(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/polyfills-es2015.059c81add3ca5d21bfa2.js b/dist/apps/admin-gui/polyfills-es2015.059c81add3ca5d21bfa2.js new file mode 100644 index 000000000..3876cfdbf --- /dev/null +++ b/dist/apps/admin-gui/polyfills-es2015.059c81add3ca5d21bfa2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{2:function(e,t,n){e.exports=n("hN/g")},"hN/g":function(e,t,n){"use strict";n.r(t),n("nf2o")},nf2o:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return r+e}const a=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class i{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==C.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=i.current;for(;e.parent;)e=e.parent;return e}static get current(){return z.zone}static get currentTask(){return j}static __load_patch(t,r){if(C.hasOwnProperty(t)){if(a)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const s="Zone:"+t;n(s),C[t]=r(e,i,O),o(s,s)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{z=z.parent}}runGuarded(e,t=null,n,o){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{z=z.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state===v&&(e.type===P||e.type===D))return;const o=e.state!=E;o&&e._transitionTo(E,T),e.runCount++;const r=j;j=e,z={parent:z,zone:this};try{e.type==D&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==v&&e.state!==Z&&(e.type==P||e.data&&e.data.isPeriodic?o&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(v,E,v))),z=z.parent,j=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(b,v);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(Z,b,v),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==b&&e._transitionTo(T,b),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(S,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(D,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(P,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(Z,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(v,w),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;oe.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,s)=>e.invokeTask(n,o,r,s),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class l{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:c,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");k(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,s,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=a,!o)throw new Error("callback is not defined");this.callback=o;const i=this;this.invoke=t===P&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,i,this,arguments)}}static invokeTask(e,t,n){e||(e=this),I++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==I&&m(),I--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(v,b)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==v&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=s("setTimeout"),p=s("Promise"),f=s("then");let d,g=[],_=!1;function k(t){if(0===I&&0===g.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,m)}else e[h](m,0);t&&g.push(t)}function m(){if(!_){for(_=!0;g.length;){const t=g;g=[];for(let n=0;nz,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:k,showUncaughtError:()=>!i[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(d=e.resolve(0))},patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R};let z={parent:null,zone:new i(null,null)},j=null,I=0;function R(){}o("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,a=[],i=!0===e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=s("Promise"),l=s("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}};const u=s("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return D.reject(e)}const g=s("state"),_=s("value"),k=s("finally"),m=s("parentPromiseValue"),y=s("parentPromiseState");function v(e,t){return n=>{try{T(e,t,n)}catch(o){T(e,!1,o)}}}const b=s("currentTaskTrace");function T(e,o,s){const c=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===s)throw new TypeError("Promise resolved with itself");if(null===e[g]){let h=null;try{"object"!=typeof s&&"function"!=typeof s||(h=s&&s.then)}catch(u){return c(()=>{T(e,!1,u)})(),e}if(!1!==o&&s instanceof D&&s.hasOwnProperty(g)&&s.hasOwnProperty(_)&&null!==s[g])w(s),T(e,s[g],s[_]);else if(!1!==o&&"function"==typeof h)try{h.call(s,c(v(e,o)),c(v(e,!1)))}catch(u){c(()=>{T(e,!1,u)})()}else{e[g]=o;const c=e[_];if(e[_]=s,e[k]===k&&!0===o&&(e[g]=e[y],e[_]=e[m]),!1===o&&s instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(s,b,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t{try{const o=e[_],r=!!n&&k===n[k];r&&(n[m]=o,n[y]=s);const i=t.run(a,void 0,r&&a!==d&&a!==f?[]:[o]);T(n,!0,i)}catch(o){T(n,!1,o)}},n)}const S=function(){};class D{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return T(new this(null),!0,e)}static reject(e){return T(new this(null),!1,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function s(e){n(e)}for(let a of e)p(a)||(a=this.resolve(a)),a.then(r,s);return o}static all(e){return D.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof D?this:D).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),s=2,a=0;const i=[];for(let l of e){p(l)||(l=this.resolve(l));const e=a;try{l.then(o=>{i[e]=t?t.thenCallback(o):o,s--,0===s&&n(i)},r=>{t?(i[e]=t.errorCallback(r),s--,0===s&&n(i)):o(r)})}catch(c){o(c)}s++,a++}return s-=2,0===s&&n(i),r}constructor(e){const t=this;if(!(t instanceof D))throw new Error("Must be an instanceof Promise.");t[g]=null,t[_]=[];try{e&&e(v(t,!0),v(t,!1))}catch(n){T(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||D);const r=new o(S),s=t.current;return null==this[g]?this[_].push(s,r,e,n):Z(this,s,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=D);const o=new n(S);o[k]=k;const r=t.current;return null==this[g]?this[_].push(r,o,e,e):Z(this,r,o,e,e),o}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;const P=e[c]=e.Promise,C=t.__symbol__("ZoneAwarePromise");let O=o(e,"Promise");O&&!O.configurable||(O&&delete O.writable,O&&delete O.value,O||(O={configurable:!0,enumerable:!0}),O.get=function(){return e[C]?e[C]:e[c]},O.set=function(t){t===D?e[C]=t:(e[c]=t,t.prototype[l]||j(t),n.setNativePromise(t))},r(e,"Promise",O)),e.Promise=D;const z=s("thenPatched");function j(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[l]=r,e.prototype.then=function(e,t){return new D((e,t)=>{r.call(this,e,t)}).then(e,t)},e[z]=!0}if(n.patchThen=j,P){j(P);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(I=t,function(){let e=I.apply(this,arguments);if(e instanceof D)return e;let t=e.constructor;return t[z]||j(t),e}))}var I;return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,D});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,s=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),i=Zone.__symbol__("");function c(e,t){return Zone.current.wrap(e,t)}function l(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const u=Zone.__symbol__,h="undefined"!=typeof window,p=h?window:void 0,f=h&&p||"object"==typeof self&&self||global,d=[null];function g(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=c(e[n],t+"_"+n));return e}function _(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!("nw"in f)&&void 0!==f.process&&"[object process]"==={}.toString.call(f.process),y=!m&&!k&&!(!h||!p.HTMLElement),v=void 0!==f.process&&"[object process]"==={}.toString.call(f.process)&&!k&&!(!h||!p.HTMLElement),b={},T=function(e){if(!(e=e||f.event))return;let t=b[e.type];t||(t=b[e.type]=u("ON_PROPERTY"+e.type));const n=this||e.target||f,o=n[t];let r;if(y&&n===p&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function E(n,o,r){let s=e(n,o);if(!s&&r&&e(r,o)&&(s={enumerable:!0,configurable:!0}),!s||!s.configurable)return;const a=u("on"+o+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete s.writable,delete s.value;const i=s.get,c=s.set,l=o.substr(2);let h=b[l];h||(h=b[l]=u("ON_PROPERTY"+l)),s.set=function(e){let t=this;t||n!==f||(t=f),t&&(t[h]&&t.removeEventListener(l,T),c&&c.apply(t,d),"function"==typeof e?(t[h]=e,t.addEventListener(l,T,!1)):t[h]=null)},s.get=function(){let e=this;if(e||n!==f||(e=f),!e)return null;const t=e[h];if(t)return t;if(i){let t=i&&i.call(this);if(t)return s.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(o),t}return null},t(n,o,s),n[a]=!0}function w(e,t,n){if(t)for(let o=0;ofunction(t,o){const s=n(t,o);return s.cbIdx>=0&&"function"==typeof o[s.cbIdx]?l(s.name,o[s.cbIdx],s,r):e.apply(t,o)})}function C(e,t){e[u("OriginalDelegate")]=t}let O=!1,z=!1;function j(){try{const e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function I(){if(O)return z;O=!0;try{const e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(z=!0)}catch(e){}return z}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=u("OriginalDelegate"),o=u("Promise"),r=u("Error"),s=function(){if("function"==typeof this){const s=this[n];if(s)return"function"==typeof s?t.call(s):Object.prototype.toString.call(s);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};s[n]=t,Function.prototype.toString=s;const a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});let R=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ie){R=!1}const N={useG:!0},x={},L={},M=new RegExp("^"+i+"(\\w+)(true|false)$"),A=u("propagationStopped");function H(e,t){const n=(t?t(e):e)+"false",o=(t?t(e):e)+"true",r=i+n,s=i+o;x[e]={},x[e].false=r,x[e].true=s}function F(e,t,o){const r=o&&o.add||"addEventListener",s=o&&o.rm||"removeEventListener",a=o&&o.listeners||"eventListeners",c=o&&o.rmAll||"removeAllListeners",l=u(r),h="."+r+":",p=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[s].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},f=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[x[t.type].false];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;ofunction(t,n){t[A]=!0,e&&e.apply(t,n)})}function q(e,t,n,o,r){const s=Zone.__symbol__(o);if(t[s])return;const a=t[s]=t[o];t[o]=function(s,i,c){return i&&i.prototype&&r.forEach((function(t){const r=`${n}.${o}::`+t,s=i.prototype;if(s.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(s,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(i.prototype,t,n)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))})),a.call(t,s,i,c)},e.attachOriginToPatched(t[o],a)}const W=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],U=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],V=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],X=["bounce","finish","start"],J=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Y=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],K=["close","error","open","message"],Q=["error","message"],ee=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],W,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function te(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ne(e,t,n,o){e&&w(e,te(e,t,n),o)}function oe(e,t){if(m&&!v)return;if(Zone[e.symbol("patchEvents")])return;const o="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(y){const e=window,t=j?[{target:e,ignoreProperties:["error"]}]:[];ne(e,ee.concat(["messageerror"]),r?r.concat(t):r,n(e)),ne(Document.prototype,ee,r),void 0!==e.SVGElement&&ne(e.SVGElement.prototype,ee,r),ne(Element.prototype,ee,r),ne(HTMLElement.prototype,ee,r),ne(HTMLMediaElement.prototype,U,r),ne(HTMLFrameSetElement.prototype,W.concat($),r),ne(HTMLBodyElement.prototype,W.concat($),r),ne(HTMLFrameElement.prototype,V,r),ne(HTMLIFrameElement.prototype,V,r);const o=e.HTMLMarqueeElement;o&&ne(o.prototype,X,r);const s=e.Worker;s&&ne(s.prototype,Q,r)}const s=t.XMLHttpRequest;s&&ne(s.prototype,J,r);const a=t.XMLHttpRequestEventTarget;a&&ne(a&&a.prototype,J,r),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,Y,r),ne(IDBRequest.prototype,Y,r),ne(IDBOpenDBRequest.prototype,Y,r),ne(IDBDatabase.prototype,Y,r),ne(IDBTransaction.prototype,Y,r),ne(IDBCursor.prototype,Y,r)),o&&ne(WebSocket.prototype,K,r)}Zone.__load_patch("util",(n,s,a)=>{a.patchOnProperties=w,a.patchMethod=D,a.bindArguments=g,a.patchMacroTask=P;const l=s.__symbol__("BLACK_LISTED_EVENTS"),u=s.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[l]=n[u]),n[l]&&(s[l]=s[u]=n[l]),a.patchEventPrototype=B,a.patchEventTarget=F,a.isIEOrEdge=I,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=o,a.ArraySlice=r,a.patchClass=S,a.wrapWithCurrentZone=c,a.filterProperties=te,a.attachOriginToPatched=C,a._redefineProperty=Object.defineProperty,a.patchCallbacks=q,a.getGlobalObjects=()=>({globalSources:L,zoneSymbolEventNames:x,eventNames:ee,isBrowser:y,isMix:v,isNode:m,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:i,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const re=u("zoneTask");function se(e,t,n,o){let r=null,s=null;n+=o;const a={};function i(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[re]=null))}},n.handleId=r.apply(e,n.args),t}function c(e){return s(e.data.handleId)}r=D(e,t+=o,n=>function(r,s){if("function"==typeof s[0]){const e=l(t,s[0],{isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?s[1]||0:void 0,args:s},i,c);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?a[n]=e:n&&(n[re]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,s)}),s=D(e,n,t=>function(n,o){const r=o[0];let s;"number"==typeof r?s=a[r]:(s=r&&r[re],s||(s=r)),s&&"string"==typeof s.type?"notScheduled"!==s.state&&(s.cancelFn&&s.data.isPeriodic||0===s.runCount)&&("number"==typeof r?delete a[r]:r&&(r[re]=null),s.zone.cancelTask(s)):t.apply(e,o)})}function ae(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:s,ZONE_SYMBOL_PREFIX:a}=t.getGlobalObjects();for(let c=0;c{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{se(e,"set","clear","Timeout"),se(e,"set","clear","Interval"),se(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{se(e,"request","cancel","AnimationFrame"),se(e,"mozRequest","mozCancel","AnimationFrame"),se(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;ofunction(o,s){return t.current.run(n,e,s,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{(function(e,t){t.patchEventPrototype(e,t)})(e,n),ae(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),S("MutationObserver"),S("WebKitMutationObserver"),S("IntersectionObserver"),S("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{oe(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const p=e.XMLHttpRequest;if(!p)return;const f=p.prototype;let d=f[s],g=f[a];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[s],g=e[a]}}function _(e){const o=e.data,c=o.target;c[i]=!1,c[h]=!1;const l=c[r];d||(d=c[s],g=c[a]),l&&g.call(c,"readystatechange",l);const u=c[r]=()=>{if(c.readyState===c.DONE)if(!o.aborted&&c[i]&&"scheduled"===e.state){const n=c[t.__symbol__("loadfalse")];if(n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=c[t.__symbol__("loadfalse")];for(let t=0;tfunction(e,t){return e[o]=0==t[2],e[c]=t[1],y.apply(e,t)}),v=u("fetchTaskAborting"),b=u("fetchTaskScheduling"),T=D(f,"send",()=>function(e,n){if(!0===t.current[b])return T.apply(e,n);if(e[o])return T.apply(e,n);{const t={target:e,url:e[c],isPeriodic:!1,args:n,aborted:!1},o=l("XMLHttpRequest.send",k,t,_,m);e&&!0===e[h]&&!t.aborted&&"scheduled"===o.state&&o.invoke()}}),E=D(f,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[v])return E.apply(e,o)})}(e);const n=u("xhrTask"),o=u("xhrSync"),r=u("xhrListener"),i=u("xhrScheduled"),c=u("xhrURL"),h=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const o=t.constructor.name;for(let r=0;r{const t=function(){return e.apply(this,g(arguments,o+"."+s))};return C(t,e),t})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){G(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?o.call(t,n,t,e):o)||(e.exports=r)}},[[2,0]]]); \ No newline at end of file diff --git a/dist/apps/admin-gui/polyfills-es5.3b0e1b8948aed1b11ec7.js b/dist/apps/admin-gui/polyfills-es5.3b0e1b8948aed1b11ec7.js new file mode 100644 index 000000000..d8905f919 --- /dev/null +++ b/dist/apps/admin-gui/polyfills-es5.3b0e1b8948aed1b11ec7.js @@ -0,0 +1 @@ +!function(){function t(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)}}),i("findIndex")},"+NaH":function(t,e,n){var r=n("ThF5"),o=n("qpFR"),i=n("c8b2");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"+q1H":function(t,e,n){"use strict";var r,o,i,a=n("yosQ"),c=n("+NaH"),u=n("+C+w"),s=n("G9lz"),f=n("p2x6"),l=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),f||u(r,l)||c(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},"/K78":function(t,e,n){var r=n("0vT8"),o=n("TQiC");r({global:!0,forced:parseFloat!=o},{parseFloat:o})},"/Wjk":function(t,e,n){"use strict";var r=n("lYWO"),o=n("L0mP");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},"/ZgM":function(t,e,n){"use strict";var r=n("pNVf"),o=n("NneG");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},"00I2":function(t,e,n){var r=n("ThF5"),o=n("qpFR"),i=n("QxQN"),a=n("SF8I").UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},"03IN":function(t,e,n){var r=n("4eii"),o=n("VfW/").trim,i=n("ZKm/"),a=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");t.exports=u?function(t,e){var n=o(String(t));return a(n,e>>>0||(c.test(n)?16:10))}:a},"0BIM":function(t,e,n){"use strict";var r=n("Zm5N"),o=n("UET0"),i=n("L0mP"),a=n("TC5Z"),c=n("6pHA");r("search",1,(function(t,e,n){return[function(e){var n=i(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=o(t),u=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var f=c(i,u);return a(i.lastIndex,s)||(i.lastIndex=s),null===f?-1:f.index}]}))},"0Eps":function(t,e,n){n("0vT8")({target:"Number",stat:!0},{isInteger:n("O1uG")})},"0O2A":function(t,e,n){var r=n("4eii"),o=n("rP2c"),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},"0PBP":function(t,e,n){"use strict";var r=n("s7Qr").forEach,o=n("9rSH"),i=n("X4rX"),a=o("forEach"),c=i("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"0Yxs":function(t,e,n){n("0vT8")({target:"Object",stat:!0,sham:!n("ThF5")},{create:n("dYyi")})},"0dFo":function(t,e,n){var r=n("G9lz")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(c){}return n}},"0u0I":function(t,e,n){var r=n("0vT8"),o=n("03IN");r({global:!0,forced:parseInt!=o},{parseInt:o})},"0vT8":function(t,e,n){var r=n("4eii"),o=n("5tsF").f,i=n("+NaH"),a=n("gGei"),c=n("d1gM"),u=n("QA9J"),s=n("2L9N");t.exports=function(t,e){var n,f,l,p,h,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(h=o(n,f))&&h.value:n[f],!s(d?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(n,f,p,t)}}},1:function(t,e,n){n("l/Py"),n("xVoO"),t.exports=n("hN/g")},"19jd":function(t,e,n){var r=n("UET0"),o=n("rP2c"),i=n("Pj9/");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},"1BS+":function(t,e,n){var r=n("lcFv");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"1Yxx":function(t,e,n){"use strict";var r=n("0vT8"),o=n("VfW/").trim;r({target:"String",proto:!0,forced:n("J+mE")("trim")},{trim:function(){return o(this)}})},"1dlD":function(t,e,n){"use strict";var r=n("0vT8"),o=n("XtQF"),i=n("VUDt"),a=n("x42P");r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},"1geW":function(t,e,n){var r=n("0vT8"),o=n("Hshb");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},"1ul8":function(t,e,n){"use strict";var r=n("xbsk").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"2L9N":function(t,e,n){var r=n("XtQF"),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},"2VXe":function(t,e,n){var r=n("8ZjQ"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"2g3X":function(t,e,n){"use strict";var r=n("XtQF"),o=n("W3Kz").start,i=Math.abs,a=Date.prototype,c=a.getTime,u=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))}))||!r((function(){u.call(new Date(NaN))}))?function(){if(!isFinite(c.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+o(i(t),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:u},"2imT":function(t,e,n){var r=n("0vT8"),o=n("vSAT"),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+u:o(t-1+c(t-1)*c(t+1))}})},"3QRp":function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("sub")},{sub:function(){return o(this,"sub","","")}})},"3dqU":function(t,e,n){"use strict";var r=n("0vT8"),o=n("tH9H"),i=n("V3ap"),a=n("9rSH"),c=[].join,u=o!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:u||!s},{join:function(t){return c.call(i(this),void 0===t?",":t)}})},"3yYM":function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(_){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new E(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=k(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),o}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(_){return{type:"throw",arg:_}}}t.wrap=u;var f={};function l(){}function p(){}function h(){}var v={};v[o]=function(){return this};var d=Object.getPrototypeOf,g=d&&d(d(S([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=h.prototype=l.prototype=Object.create(v);function m(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var r;this._invoke=function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function k(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=s(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function S(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},"4ZNk":function(t,e,n){n("0vT8")({target:"Function",proto:!0},{bind:n("dmrs")})},"4eii":function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"4xiE":function(t,e,n){var r=n("0vT8"),o=n("VUDt"),i=n("VQs6");r({target:"Object",stat:!0,forced:n("XtQF")((function(){i(1)}))},{keys:function(t){return i(o(t))}})},"51+R":function(t,e,n){"use strict";var r=n("x42P"),o=n("qpFR"),i=n("c8b2");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},"564C":function(t,e,n){n("79XA")("isConcatSpreadable")},"5QPa":function(t,e,n){"use strict";var r=n("9rgZ"),o=n("92yR");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},"5b4b":function(t,e,n){n("0vT8")({target:"Number",stat:!0},{isFinite:n("Uure")})},"5tsF":function(t,e,n){var r=n("ThF5"),o=n("WHJo"),i=n("c8b2"),a=n("V3ap"),c=n("x42P"),u=n("+C+w"),s=n("uQC4"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(n){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},"62Jg":function(t,e,n){var r=n("mwKY"),o=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),u=i(2,127)*(2-c),s=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=o(t),f=r(t);return iu||n!=n?f*(1/0):f*n}},"6HJc":function(t,e,n){var r=n("0vT8"),o=n("XtQF"),i=n("rP2c"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},"6pHA":function(t,e,n){var r=n("ArQy"),o=n("Skmt");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"79XA":function(t,e,n){var r=n("g6B6"),o=n("+C+w"),i=n("kbF1"),a=n("qpFR").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"7FRj":function(t,e,n){"use strict";var r=n("rP2c"),o=n("qpFR"),i=n("yosQ"),a=n("G9lz")("hasInstance"),c=Function.prototype;a in c||o.f(c,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},"7PoR":function(t,e,n){n("0vT8")({target:"Object",stat:!0},{setPrototypeOf:n("nWyh")})},"7oHr":function(t,e,n){"use strict";var r,o=n("0vT8"),i=n("5tsF").f,a=n("eXo2"),c=n("qlPw"),u=n("L0mP"),s=n("hDjE"),f=n("p2x6"),l="".endsWith,p=Math.min,h=s("endsWith");o({target:"String",proto:!0,forced:!(!f&&!h&&(r=i(String.prototype,"endsWith"),r&&!r.writable)||h)},{endsWith:function(t){var e=String(u(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),o=void 0===n?r:p(a(n),r),i=String(t);return l?l.call(e,i,o):e.slice(o-i.length,o)===i}})},"7pK/":function(t,e,n){var r=n("DoB2"),o=n("UkEg"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"8WdQ":function(t,e,n){var r=n("0vT8"),o=n("O1uG"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},"8ZjQ":function(t,e,n){var r=n("4eii"),o=n("d1gM"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},"8uRZ":function(t,e,n){var r=n("4eii"),o=n("2VXe"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},"92yR":function(t,e,n){var r=n("9rgZ"),o=n("ArQy"),i=n("G9lz")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},"9D1u":function(t,e,n){var r=n("rP2c"),o=n("ArQy"),i=n("G9lz")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},"9rSH":function(t,e,n){"use strict";var r=n("XtQF");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},"9rgZ":function(t,e,n){var r={};r[n("G9lz")("toStringTag")]="z",t.exports="[object z]"===String(r)},"9ypw":function(t,e,n){var r=n("4eii"),o=n("Z6qe"),i=n("jMNW"),a=n("+NaH"),c=n("G9lz"),u=c("iterator"),s=c("toStringTag"),f=i.values;for(var l in o){var p=r[l],h=p&&p.prototype;if(h){if(h[u]!==f)try{a(h,u,f)}catch(d){h[u]=f}if(h[s]||a(h,s,l),o[l])for(var v in i)if(h[v]!==i[v])try{a(h,v,i[v])}catch(d){h[v]=i[v]}}}},"A//Y":function(t,e,n){"use strict";var r=n("y5Hs"),o=n("qpFR"),i=n("G9lz"),a=n("ThF5"),c=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&(0,o.f)(e,c,{configurable:!0,get:function(){return this}})}},ABD5:function(t,e,n){n("79XA")("split")},"ANI/":function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},AV8a:function(t,e,n){"use strict";var r=n("0vT8"),o=n("oxl1"),i=n("yosQ"),a=n("nWyh"),c=n("utQb"),u=n("+NaH"),s=n("gGei"),f=n("G9lz"),l=n("p2x6"),p=n("qv8c"),h=n("+q1H"),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=f("iterator"),y=function(){return this};t.exports=function(t,e,n,f,h,m,b){o(n,e,f);var k,T,x,E=function(t){if(t===h&&P)return P;if(!d&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",w=!1,_=t.prototype,O=_[g]||_["@@iterator"]||h&&_[h],P=!d&&O||E(h),j="Array"==e&&_.entries||O;if(j&&(k=i(j.call(new t)),v!==Object.prototype&&k.next&&(l||i(k)===v||(a?a(k,v):"function"!=typeof k[g]&&u(k,g,y)),c(k,S,!0,!0),l&&(p[S]=y))),"values"==h&&O&&"values"!==O.name&&(w=!0,P=function(){return O.call(this)}),l&&!b||_[g]===P||u(_,g,P),p[e]=P,h)if(T={values:E("values"),keys:m?P:E("keys"),entries:E("entries")},b)for(x in T)(d||w||!(x in _))&&s(_,x,T[x]);else r({target:e,proto:!0,forced:d||w},T);return T}},AVL7:function(t,e,n){var r=n("0vT8"),o=n("XtQF"),i=n("VUDt"),a=n("yosQ"),c=n("craJ");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},Ap7B:function(t,e,n){"use strict";var r=n("0vT8"),o=n("XNJA"),i=n("VUDt"),a=n("XtQF"),c=n("9rSH"),u=[],s=u.sort,f=a((function(){u.sort(void 0)})),l=a((function(){u.sort(null)})),p=c("sort");r({target:"Array",proto:!0,forced:f||!l||!p},{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},ArQy:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},BehZ:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},Btv7:function(t,e,n){n("79XA")("asyncIterator")},C8vK:function(t,e,n){"use strict";var r=n("0vT8"),o=n("Skmt");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},CAbf:function(t,e,n){var r=n("4eii");t.exports=r.Promise},DoB2:function(t,e,n){var r=n("p2x6"),o=n("8ZjQ");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},"EI+E":function(t,e,n){var r=n("rP2c"),o=n("tx09"),i=n("G9lz")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},EoF4:function(t,e,n){var r=n("0vT8"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},Ezqs:function(t,e,n){n("0vT8")({target:"Math",stat:!0},{log1p:n("vSAT")})},F1iM:function(t,e,n){n("Hd1F"),n("R7u8"),n("qWhD"),n("Btv7"),n("r+2N"),n("vExu"),n("564C"),n("VBUz"),n("ps+b"),n("vItB"),n("uLb4"),n("s7qu"),n("Pgr3"),n("ABD5"),n("Y/en"),n("urZ2"),n("ZFHZ"),n("zLr9"),n("nr/g");var r=n("g6B6");t.exports=r.Symbol},F6ip:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},FIoU:function(t,e,n){"use strict";var r,o=n("4eii"),i=n("RBcf"),a=n("q75f"),c=n("pNVf"),u=n("rBtS"),s=n("rP2c"),f=n("pCF3").enforce,l=n("8uRZ"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},d=t.exports=c("WeakMap",v,u);if(l&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,m=g.has,b=g.get,k=g.set;i(g,{delete:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.delete(t)}return y.call(this,t)},has:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.has(t)}return m.call(this,t)},get:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),m.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(s(t)&&!h(t)){var n=f(this);n.frozen||(n.frozen=new r),m.call(this,t)?k.call(this,t,e):n.frozen.set(t,e)}else k.call(this,t,e);return this}})}},Fcgu:function(t,e,n){"use strict";var r=n("0vT8"),o=n("s7Qr").map,i=n("LQxa"),a=n("X4rX"),c=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!c||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},G9lz:function(t,e,n){var r=n("4eii"),o=n("DoB2"),i=n("+C+w"),a=n("UkEg"),c=n("lcFv"),u=n("1BS+"),s=o("wks"),f=r.Symbol,l=u?f:f&&f.withoutSetter||a;t.exports=function(t){return i(s,t)||(s[t]=c&&i(f,t)?f[t]:l("Symbol."+t)),s[t]}},GZNO:function(t,e,n){n("0vT8")({target:"Object",stat:!0},{is:n("TC5Z")})},Hd1F:function(t,e,n){"use strict";var r=n("0vT8"),o=n("XtQF"),i=n("tx09"),a=n("rP2c"),c=n("VUDt"),u=n("eXo2"),s=n("51+R"),f=n("EI+E"),l=n("LQxa"),p=n("G9lz"),h=n("lANf"),v=p("isConcatSpreadable"),d=h>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=l("concat"),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!d||!g},{concat:function(t){var e,n,r,o,i,a=c(this),l=f(a,0),p=0;for(e=-1,r=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,p++,i)}return l.length=p,l}})},Hshb:function(t,e,n){"use strict";var r=n("ThF5"),o=n("XtQF"),i=n("VQs6"),a=n("X1th"),c=n("WHJo"),u=n("VUDt"),s=n("tH9H"),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,f=1,l=a.f,p=c.f;o>f;)for(var h,v=s(arguments[f++]),d=l?i(v).concat(l(v)):i(v),g=d.length,y=0;g>y;)h=d[y++],r&&!p.call(v,h)||(n[h]=v[h]);return n}:f},I0iV:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("sup")},{sup:function(){return o(this,"sup","","")}})},IgI0:function(t,e){t.exports={}},"J+mE":function(t,e,n){var r=n("XtQF"),o=n("ZKm/");t.exports=function(t){return r((function(){return!!o[t]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[t]()||o[t].name!==t}))}},JBtQ:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("italics")},{italics:function(){return o(this,"i","","")}})},JMzg:function(t,e,n){"use strict";var r,o=n("0vT8"),i=n("5tsF").f,a=n("eXo2"),c=n("qlPw"),u=n("L0mP"),s=n("hDjE"),f=n("p2x6"),l="".startsWith,p=Math.min,h=s("startsWith");o({target:"String",proto:!0,forced:!(!f&&!h&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||h)},{startsWith:function(t){var e=String(u(this));c(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},JZ5z:function(t,e,n){var r=n("UET0");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t.return;throw void 0!==i&&r(i.call(t)),a}}},JvUV:function(t,e,n){var r=n("0vT8"),o=n("oTBo"),i=n("YxED");r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},JwcT:function(t,e,n){"use strict";var r=n("0vT8"),o=n("s7Qr").filter,i=n("LQxa"),a=n("X4rX"),c=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!c||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},KSpI:function(t,e,n){var r=n("UET0"),o=n("tTCw"),i=n("eXo2"),a=n("xwki"),c=n("YtfA"),u=n("JZ5z"),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var p,h,v,d,g,y,m,b=a(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(t.length);d>v;v++)if((g=f?b(r(m=t[v])[0],m[1]):b(t[v]))&&g instanceof s)return g;return new s(!1)}p=h.call(t)}for(y=p.next;!(m=y.call(p)).done;)if("object"==typeof(g=u(p,b,m.value,f))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(t){return new s(!0,t)}},Kdyt:function(t,e,n){var r=n("UET0"),o=n("XNJA"),i=n("G9lz")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},Kg1r:function(t,e,n){var r=n("XtQF");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},L0mP:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"LJ+p":function(t,e){var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n},LQxa:function(t,e,n){var r=n("XtQF"),o=n("G9lz"),i=n("lANf"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},LjPG:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("big")},{big:function(){return o(this,"big","","")}})},Lyq5:function(t,e,n){var r=n("0vT8"),o=n("TQiC");r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},MKQa:function(t,e,n){var r=n("0vT8"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},"Nf+e":function(t,e,n){var r=n("ArQy");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},NneG:function(t,e,n){"use strict";var r=n("qpFR").f,o=n("dYyi"),i=n("RBcf"),a=n("xwki"),c=n("BehZ"),u=n("KSpI"),s=n("AV8a"),f=n("A//Y"),l=n("ThF5"),p=n("q75f").fastKey,h=n("pCF3"),v=h.set,d=h.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){c(t,f,e),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&u(r,t[s],t,n)})),h=d(e),g=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=h(this),n=y(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return h(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=d(e),i=d(r);s(t,e,(function(t,e){v(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},NyaS:function(t,e,n){var r=n("yMQa");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},O1uG:function(t,e,n){var r=n("rP2c"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},OE6s:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("bold")},{bold:function(){return o(this,"b","","")}})},Ofvt:function(t,e,n){"use strict";var r=n("0vT8"),o=n("rP2c"),i=n("tx09"),a=n("eFwx"),c=n("eXo2"),u=n("V3ap"),s=n("51+R"),f=n("G9lz"),l=n("LQxa"),p=n("X4rX"),h=l("slice"),v=p("slice",{ACCESSORS:!0,0:0,1:2}),d=f("species"),g=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!h||!v},{slice:function(t,e){var n,r,f,l=u(this),p=c(l.length),h=a(t,p),v=a(void 0===e?p:e,p);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(l,h,v);for(r=new(void 0===n?Array:n)(y(v-h,0)),f=0;hc;)a.push(String(e[c++])),c0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(v="(?: "+v+")",g=" "+g,d++),n=new RegExp("^(?:"+v+")",h)),p&&(n=new RegExp("^"+v+"$(?!\\s)",h)),f&&(e=a.lastIndex),r=c.call(s?n:a,g),s?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:f&&r&&(a.lastIndex=a.global?r.index+r[0].length:e),p&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o=0;)p[e]=s((n+=p[e])/t),n=n%t*1e7},y=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==p[t]){var n=String(p[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e};if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(h="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*f(2,69,1))-69)<0?u*f(2,-e,1):u/f(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=l;r>=7;)d(1e7,0),r-=7;for(d(f(10,r,1),0),r=e-1;r>=23;)g(1<<23),r-=23;g(1<0?h+((c=v.length)<=l?"0."+a.call("0",l-c)+v:v.slice(0,c-l)+"."+v.slice(c-l)):h+v}})},UkEg:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},Uure:function(t,e,n){var r=n("4eii").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},V3ap:function(t,e,n){var r=n("tH9H"),o=n("L0mP");t.exports=function(t){return r(o(t))}},V7Uj:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("fontcolor")},{fontcolor:function(t){return o(this,"font","color",t)}})},VBUz:function(t,e,n){n("79XA")("iterator")},VCHe:function(t,e,n){var r=n("XtQF");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},VQs6:function(t,e,n){var r=n("gQA2"),o=n("dKk4");t.exports=Object.keys||function(t){return r(t,o)}},VUDt:function(t,e,n){var r=n("L0mP");t.exports=function(t){return Object(r(t))}},"VfW/":function(t,e,n){var r=n("L0mP"),o="["+n("ZKm/")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},Vx7H:function(t,e,n){var r=n("ThF5"),o=n("qpFR"),i=n("UET0"),a=n("VQs6");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},W3Kz:function(t,e,n){var r=n("eXo2"),o=n("/Wjk"),i=n("L0mP"),a=Math.ceil,c=function(t){return function(e,n,c){var u,s,f=String(i(e)),l=f.length,p=void 0===c?" ":String(c),h=r(n);return h<=l||""==p?f:((s=o.call(p,a((u=h-l)/p.length))).length>u&&(s=s.slice(0,u)),t?f+s:s+f)}};t.exports={start:c(!1),end:c(!0)}},WHJo:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},Ww1t:function(t,e,n){"use strict";var r=n("V3ap"),o=n("lYWO"),i=n("eXo2"),a=n("9rSH"),c=n("X4rX"),u=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0});t.exports=!f&&l&&p?s:function(t){if(f)return s.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}},X1th:function(t,e){e.f=Object.getOwnPropertySymbols},X4rX:function(t,e,n){var r=n("ThF5"),o=n("XtQF"),i=n("+C+w"),a=Object.defineProperty,c={},u=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var n=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,f=i(e,0)?e[0]:u,l=i(e,1)?e[1]:void 0;return c[t]=!!n&&!o((function(){if(s&&!r)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,f,l)}))}},XNJA:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},XtQF:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"Y/en":function(t,e,n){n("79XA")("toPrimitive")},Y8n2:function(t,e,n){var r=n("0vT8"),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return o(t)/i}})},Yr4I:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("small")},{small:function(){return o(this,"small","","")}})},YtfA:function(t,e,n){var r=n("92yR"),o=n("qv8c"),i=n("G9lz")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},YxED:function(t,e,n){var r=n("G9lz"),o=n("dYyi"),i=n("qpFR"),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},Z5iX:function(t,e,n){"use strict";var r=n("0vT8"),o=n("mXzy").right,i=n("9rSH"),a=n("X4rX"),c=i("reduceRight"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduceRight:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},Z6qe:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},ZFHZ:function(t,e,n){n("79XA")("unscopables")},"ZKm/":function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},Zm5N:function(t,e,n){"use strict";n("C8vK");var r=n("gGei"),o=n("XtQF"),i=n("G9lz"),a=n("Skmt"),c=n("+NaH"),u=i("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),h=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,l){var v=i(t),d=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[v]=/./[v]),n.exec=function(){return e=!0,null},n[v](""),!e}));if(!d||!g||"replace"===t&&(!s||!f||p)||"split"===t&&!h){var y=/./[v],m=n(v,""[t],(function(t,e,n,r,o){return e.exec===a?d&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=m[1];r(String.prototype,t,m[0]),r(RegExp.prototype,v,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}l&&c(RegExp.prototype[v],"sham",!0)}},a9aE:function(t,e,n){"use strict";var r=n("Zm5N"),o=n("UET0"),i=n("eXo2"),a=n("L0mP"),c=n("1ul8"),u=n("6pHA");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;for(var l,p=[],h=0;null!==(l=u(a,s));){var v=String(l[0]);p[h]=v,""===v&&(a.lastIndex=c(s,i(a.lastIndex),f)),h++}return 0===h?null:p}]}))},aLkt:function(t,e,n){var r=n("0vT8"),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?i:o)(t)}})},bFNe:function(t,e,n){"use strict";var r=n("pNVf"),o=n("NneG");t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},bVE6:function(t,e,n){var r=n("0vT8"),o=n("XtQF"),i=n("LJ+p"),a=Math.abs,c=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(c(t-1)-c(-t-1))*(u/2)}})},bxYA:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("fixed")},{fixed:function(){return o(this,"tt","","")}})},c8b2:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},chez:function(t,e,n){"use strict";var r=n("UET0"),o=n("x42P");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},craJ:function(t,e,n){var r=n("XtQF");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},d1VG:function(t,e,n){n("0vT8")({target:"Math",stat:!0},{fround:n("62Jg")})},d1Z5:function(t,e,n){n("rEpP"),n("PMJG"),n("5b4b"),n("0Eps"),n("kjjh"),n("8WdQ"),n("iEbv"),n("sPQT"),n("Lyq5"),n("ff4A"),n("Ujke"),n("mqXI");var r=n("g6B6");t.exports=r.Number},d1gM:function(t,e,n){var r=n("4eii"),o=n("+NaH");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},d8kk:function(t,e,n){"use strict";var r=n("xwki"),o=n("VUDt"),i=n("JZ5z"),a=n("tTCw"),c=n("eXo2"),u=n("51+R"),s=n("YtfA");t.exports=function(t){var e,n,f,l,p,h,v=o(t),d="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=s(v),k=0;if(m&&(y=r(y,g>2?arguments[2]:void 0,2)),null==b||d==Array&&a(b))for(n=new d(e=c(v.length));e>k;k++)h=m?y(v[k],k):v[k],u(n,k,h);else for(p=(l=b.call(v)).next,n=new d;!(f=p.call(l)).done;k++)h=m?i(l,y,[f.value,k],!0):f.value,u(n,k,h);return n.length=k,n}},dKk4:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},dRGF:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("strike")},{strike:function(){return o(this,"strike","","")}})},dYyi:function(t,e,n){var r,o=n("UET0"),i=n("Vx7H"),a=n("dKk4"),c=n("IgI0"),u=n("yjCV"),s=n("0O2A"),f=n("7pK/")("IE_PROTO"),l=function(){},p=function(t){return" + diff --git a/dist/apps/user-profile/main-es2015.621aaa3f9442ab429b18.js b/dist/apps/user-profile/main-es2015.621aaa3f9442ab429b18.js new file mode 100644 index 000000000..5b2899e6f --- /dev/null +++ b/dist/apps/user-profile/main-es2015.621aaa3f9442ab429b18.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+h6j":function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i("wgY5"))},"+n5x":function(t,e,i){!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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i("wgY5"))},"/hi0":function(t,e,i){!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:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},0:function(t,e,i){t.exports=i("zUnb")},"0yow":function(t,e,i){!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(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i("wgY5"))},"1KVU":function(t,e,i){!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}})}(i("wgY5"))},"1ors":function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i("wgY5"))},"2B8G":function(t,e,i){!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(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i("wgY5"))},"2JSI":function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i("wgY5"))},"3WqV":function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i("wgY5"))},"3y2C":function(t){t.exports=JSON.parse('{"version":"2020a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|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 WAT|-d.A -10|01|-22y0d.A|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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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|01212121212121212121212121212121213|-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|","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/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","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/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","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/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","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 BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v 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 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-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 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","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/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","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/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-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 1zb0 5Ip0 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 -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|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/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 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|24e4","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/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","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/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 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 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","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","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/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","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 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|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|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|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|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-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 3Co0 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|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-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 3Co0 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 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/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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 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||","Pacific/Port_Moresby|+10|-a0|0||25e4","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 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 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|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|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-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 3Co0 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|-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 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|-2nco8.l cNb8.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|012323232323232321212121212121212121212121212121212121212121212|-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|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|-2yO3F.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|01232345454545454545454545454545454545454545454545454545454|-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 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|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|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-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 20o0 s00 20o0 pc0 20o0 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|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|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|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu 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|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 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/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/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","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/Los_Angeles|US/Pacific-New","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/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|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|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|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/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/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|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/Currie 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/Vancouver America/Whitehorse America/Dawson","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/Astrakhan Europe/Volgograd 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"]}')},"4MAb":function(t,e,i){!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(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i("wgY5"))},"4VvY":function(t,e,i){!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",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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i("wgY5"))},"4bvN":function(t,e,i){!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_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i("wgY5"))},"5Mza":function(t,e,i){!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}})}(i("wgY5"))},"5j0y":function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i("wgY5"))},"6Olw":function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\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(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i("wgY5"))},"6PD3":function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function r(t,e,r,o){var a=t+" ";return 1===t?a+i(0,e,r[0],o):e?a+(n(t)?s(r)[1]:s(r)[0]):o?a+s(r)[1]:a+(n(t)?s(r)[1]:s(r)[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(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i("wgY5"))},"6cYq":function(t,e,i){!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}})}(i("wgY5"))},"8Bez":function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},"8Cju":function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\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(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,(function(t){return i[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i("wgY5"))},"8GSH":function(t,e,i){!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(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i("wgY5"))},"8Ygf":function(t,e,i){!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}})}(i("wgY5"))},"9RND":function(t){t.exports=JSON.parse('{"a":"0.21.0"}')},ACAV:function(t,e,i){!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(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i("wgY5"))},"BAN/":function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i("wgY5"))},"BKZ+":function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},CPJk:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i("wgY5"))},CZRU:function(t,e,i){!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}})}(i("wgY5"))},DDip:function(t,e,i){!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",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}})}(i("wgY5"))},EL7g:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},EQmw:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[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("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i("wgY5"))},EnIJ:function(t,e,i){!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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i("wgY5"))},EqYs:function(t,e,i){!function(t){"use strict";var e={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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i("wgY5"))},FyS8:function(t,e,i){var n,s,r;!function(o,a){"use strict";t.exports?t.exports=a(i("wgY5")):(s=[i("wgY5")],void 0===(r="function"==typeof(n=a)?n.apply(e,s):n)||(t.exports=r))}(0,(function(t){"use strict";void 0===t.version&&t.default&&(t=t.default);var e,i={},n={},s={},r={},o={};t&&"string"==typeof t.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),c=+a[0],u=+a[1];function l(t){return t>96?t-87:t>64?t-29:t-48}function h(t){var e=0,i=t.split("."),n=i[0],s=i[1]||"",r=1,o=0,a=1;for(45===t.charCodeAt(0)&&(e=1,a=-1);e= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),g.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,i=+t,n=this.untils;for(e=0;en&&x.moveInvalidForward&&(e=n),r3){var e=r[M(t)];if(e)return e;E("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(l){}var i,n,s,o=function(){var t,e,i,n=(new Date).getFullYear()-2,s=new _(new Date(n,0,1)),r=[s];for(i=1;i<48;i++)(e=new _(new Date(n,i,1))).offset!==s.offset&&(t=y(s,e),r.push(t),r.push(new _(new Date(t.at+6e4)))),s=e;for(i=0;i<4;i++)r.push(new _(new Date(n+i,0,1))),r.push(new _(new Date(n+i,6,1)));return r}(),a=o.length,c=v(o),u=[];for(n=0;n0?u[0].zone.name:void 0}()),e},x.names=function(){var t,e=[];for(t in r)r.hasOwnProperty(t)&&(i[t]||i[n[t]])&&r[t]&&e.push(r[t]);return e.sort()},x.Zone=g,x.unpack=f,x.unpackBase60=h,x.needsOffset=k,x.moveInvalidForward=!0,x.moveAmbiguousForward=!1,x.countries=function(){return Object.keys(s)},x.zonesForCountry=function(t,e){var i;if(i=(i=t).toUpperCase(),!(t=s[i]||null))return null;var n=t.zones.sort();return e?n.map((function(t){return{name:t,offset:S(t).utcOffset(new Date)}})):n};var L,z=t.fn;function D(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function R(t){return function(){return this._z=null,t.apply(this,arguments)}}t.tz=x,t.defaultZone=null,t.updateOffset=function(e,i){var n,s=t.defaultZone;if(void 0===e._z&&(s&&k(e)&&!e._isUTC&&(e._d=t.utc(e._a)._d,e.utc().add(s.parse(e),"minutes")),e._z=s),e._z)if(n=e._z.utcOffset(e),Math.abs(n)<16&&(n/=60),void 0!==e.utcOffset){var r=e._z;e.utcOffset(-n,i),e._z=r}else e.zone(n,i)},z.tz=function(e,i){if(e){if("string"!=typeof e)throw new Error("Time zone name must be a string, got "+e+" ["+typeof e+"]");return this._z=S(e),this._z?t.updateOffset(this,i):E("Moment Timezone has no data for "+e+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},z.zoneName=D(z.zoneName),z.zoneAbbr=D(z.zoneAbbr),z.utc=R(z.utc),z.local=R(z.local),z.utcOffset=(L=z.utcOffset,function(){return arguments.length>0&&(this._z=null),L.apply(this,arguments)}),t.tz.setDefault=function(e){return(c<2||2===c&&u<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=e?S(e):null,t};var O=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(O)?(O.push("_z"),O.push("_a")):O&&(O._z=null),t}))},GJYX:function(t,e,i){!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(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i("wgY5"))},GNPT:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i("wgY5"))},GzvP:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,r,o){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},r=["\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:r,monthsShort:r,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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i("wgY5"))},HgyJ:function(t,e,i){!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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},"J+SV":function(t,e,i){!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(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i("wgY5"))},JFCg:function(t,e,i){!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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i("wgY5"))},"JO+T":function(t,e,i){!function(t){"use strict";var e={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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i("wgY5"))},Jt3X:function(t,e,i){!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(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i("wgY5"))},"K+3W":function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 r(t){return t>1&&t<5&&1!=~~(t/10)}function o(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(r(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(r(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(r(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(r(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(r(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(r(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},"K+Lk":function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var r=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?r+(n(t)?"sekundy":"sek\xfand"):r+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?r+(n(t)?"min\xfaty":"min\xfat"):r+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?r+(n(t)?"hodiny":"hod\xedn"):r+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?r+(n(t)?"dni":"dn\xed"):r+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?r+(n(t)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?r+(n(t)?"roky":"rokov"):r+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(i("wgY5"))},KqOT:function(t,e,i){!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}})}(i("wgY5"))},LsNb:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\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(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(i("wgY5"))},MNf7:function(t,e,i){!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(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i("wgY5"))},MROq:function(t,e,i){var n={"./af":"8GSH","./af.js":"8GSH","./ar":"NcOb","./ar-dz":"1ors","./ar-dz.js":"1ors","./ar-kw":"Sc1Y","./ar-kw.js":"Sc1Y","./ar-ly":"GzvP","./ar-ly.js":"GzvP","./ar-ma":"hH25","./ar-ma.js":"hH25","./ar-sa":"u2jB","./ar-sa.js":"u2jB","./ar-tn":"5Mza","./ar-tn.js":"5Mza","./ar.js":"NcOb","./az":"ZVVJ","./az.js":"ZVVJ","./be":"kQaN","./be.js":"kQaN","./bg":"+n5x","./bg.js":"+n5x","./bm":"TTiN","./bm.js":"TTiN","./bn":"aIF2","./bn.js":"aIF2","./bo":"QWb5","./bo.js":"QWb5","./br":"iQoZ","./br.js":"iQoZ","./bs":"EL7g","./bs.js":"EL7g","./ca":"vd/2","./ca.js":"vd/2","./cs":"K+3W","./cs.js":"K+3W","./cv":"Jt3X","./cv.js":"Jt3X","./cy":"sWi3","./cy.js":"sWi3","./da":"YcFX","./da.js":"YcFX","./de":"BKZ+","./de-at":"Oq9h","./de-at.js":"Oq9h","./de-ch":"hHY4","./de-ch.js":"hHY4","./de.js":"BKZ+","./dv":"w8Ej","./dv.js":"w8Ej","./el":"tSbB","./el.js":"tSbB","./en-SG":"cGzb","./en-SG.js":"cGzb","./en-au":"HgyJ","./en-au.js":"HgyJ","./en-ca":"ZyTy","./en-ca.js":"ZyTy","./en-gb":"exaB","./en-gb.js":"exaB","./en-ie":"yKzn","./en-ie.js":"yKzn","./en-il":"TB59","./en-il.js":"TB59","./en-nz":"iDxo","./en-nz.js":"iDxo","./eo":"4bvN","./eo.js":"4bvN","./es":"GNPT","./es-do":"R7mU","./es-do.js":"R7mU","./es-us":"Nstw","./es-us.js":"Nstw","./es.js":"GNPT","./et":"ZOjb","./et.js":"ZOjb","./eu":"kFC9","./eu.js":"kFC9","./fa":"8Cju","./fa.js":"8Cju","./fi":"vcN1","./fi.js":"vcN1","./fo":"8Ygf","./fo.js":"8Ygf","./fr":"Y8Ij","./fr-ca":"t+Zl","./fr-ca.js":"t+Zl","./fr-ch":"SPXN","./fr-ch.js":"SPXN","./fr.js":"Y8Ij","./fy":"T3MF","./fy.js":"T3MF","./ga":"NowM","./ga.js":"NowM","./gd":"GJYX","./gd.js":"GJYX","./gl":"MdC8","./gl.js":"MdC8","./gom-latn":"5j0y","./gom-latn.js":"5j0y","./gu":"fY0S","./gu.js":"fY0S","./he":"ACAV","./he.js":"ACAV","./hi":"3WqV","./hi.js":"3WqV","./hr":"OnNk","./hr.js":"OnNk","./hu":"EQmw","./hu.js":"EQmw","./hy-am":"MNf7","./hy-am.js":"MNf7","./id":"0yow","./id.js":"0yow","./is":"TmOJ","./is.js":"TmOJ","./it":"xD/0","./it-ch":"foQf","./it-ch.js":"foQf","./it.js":"xD/0","./ja":"jOnb","./ja.js":"jOnb","./jv":"lOtj","./jv.js":"lOtj","./ka":"BAN/","./ka.js":"BAN/","./kk":"iNiw","./kk.js":"iNiw","./km":"TUxt","./km.js":"TUxt","./kn":"hQzt","./kn.js":"hQzt","./ko":"ZNZT","./ko.js":"ZNZT","./ku":"S0Tg","./ku.js":"S0Tg","./ky":"JO+T","./ky.js":"JO+T","./lb":"vn/h","./lb.js":"vn/h","./lo":"gnIm","./lo.js":"gnIm","./lt":"6PD3","./lt.js":"6PD3","./lv":"YKe2","./lv.js":"YKe2","./me":"d3TR","./me.js":"d3TR","./mi":"hTlv","./mi.js":"hTlv","./mk":"ffVN","./mk.js":"ffVN","./ml":"ejL1","./ml.js":"ejL1","./mn":"RIsM","./mn.js":"RIsM","./mr":"CPJk","./mr.js":"CPJk","./ms":"d5Hy","./ms-my":"t4T9","./ms-my.js":"t4T9","./ms.js":"d5Hy","./mt":"1KVU","./mt.js":"1KVU","./my":"LsNb","./my.js":"LsNb","./nb":"h+U8","./nb.js":"h+U8","./ne":"2JSI","./ne.js":"2JSI","./nl":"jsZ8","./nl-be":"+h6j","./nl-be.js":"+h6j","./nl.js":"jsZ8","./nn":"mh29","./nn.js":"mh29","./pa-in":"O6bP","./pa-in.js":"O6bP","./pl":"8Bez","./pl.js":"8Bez","./pt":"DDip","./pt-br":"uHm5","./pt-br.js":"uHm5","./pt.js":"DDip","./ro":"baBi","./ro.js":"baBi","./ru":"ecsu","./ru.js":"ecsu","./sd":"e9KM","./sd.js":"e9KM","./se":"CZRU","./se.js":"CZRU","./si":"TO58","./si.js":"TO58","./sk":"K+Lk","./sk.js":"K+Lk","./sl":"QK6v","./sl.js":"QK6v","./sq":"v3Qg","./sq.js":"v3Qg","./sr":"Ndyf","./sr-cyrl":"PGvg","./sr-cyrl.js":"PGvg","./sr.js":"Ndyf","./ss":"2B8G","./ss.js":"2B8G","./sv":"WF5B","./sv.js":"WF5B","./sw":"4VvY","./sw.js":"4VvY","./ta":"dw3T","./ta.js":"dw3T","./te":"4MAb","./te.js":"4MAb","./tet":"/hi0","./tet.js":"/hi0","./tg":"PoVJ","./tg.js":"PoVJ","./th":"OY2w","./th.js":"OY2w","./tl-ph":"UC+K","./tl-ph.js":"UC+K","./tlh":"cWLW","./tlh.js":"cWLW","./tr":"EqYs","./tr.js":"EqYs","./tzl":"fN8o","./tzl.js":"fN8o","./tzm":"6cYq","./tzm-latn":"pdAN","./tzm-latn.js":"pdAN","./tzm.js":"6cYq","./ug-cn":"J+SV","./ug-cn.js":"J+SV","./uk":"6Olw","./uk.js":"6Olw","./ur":"QNGR","./ur.js":"QNGR","./uz":"hLzJ","./uz-latn":"KqOT","./uz-latn.js":"KqOT","./uz.js":"hLzJ","./vi":"EnIJ","./vi.js":"EnIJ","./x-pseudo":"W7dU","./x-pseudo.js":"W7dU","./yo":"QDhB","./yo.js":"QDhB","./zh-cn":"bjMe","./zh-cn.js":"bjMe","./zh-hk":"JFCg","./zh-hk.js":"JFCg","./zh-tw":"xBDH","./zh-tw.js":"xBDH"};function s(t){var e=r(t);return i(e)}function r(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=r,t.exports=s,s.id="MROq"},MdC8:function(t,e,i){!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(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i("wgY5"))},NcOb:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},r=function(t){return function(e,i,r,o){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},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",{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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return i[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i("wgY5"))},Ndyf:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};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:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},NowM:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i("wgY5"))},Nstw:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i("wgY5"))},O6bP:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\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(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i("wgY5"))},OIgT:function(t,e,i){"use strict";e.decode=e.parse=i("wOqL"),e.encode=e.stringify=i("f8+N")},OY2w:function(t,e,i){!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(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i("wgY5"))},OnNk:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"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:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},Oq9h:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},PGvg:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};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:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},PoVJ:function(t,e,i){!function(t){"use strict";var e={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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i("wgY5"))},QDhB:function(t,e,i){!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}})}(i("wgY5"))},QK6v:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"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: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:7}})}(i("wgY5"))},QNGR:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i("wgY5"))},QWb5:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\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\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i("wgY5"))},R7mU:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i("wgY5"))},RIsM:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\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 t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}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(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<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: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i("wgY5"))},S0Tg:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\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:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return i[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i("wgY5"))},SPXN:function(t,e,i){!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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i("wgY5"))},Sc1Y:function(t,e,i){!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}})}(i("wgY5"))},T3MF:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="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(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i("wgY5"))},TB59:function(t,e,i){!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",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i("wgY5"))},TO58:function(t,e,i){!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(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i("wgY5"))},TTiN:function(t,e,i){!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}})}(i("wgY5"))},TUxt:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\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(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(i("wgY5"))},TmOJ:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var r=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?r+(i||s?"sek\xfandur":"sek\xfandum"):r+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?r+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?r+"m\xedn\xfata":r+"m\xedn\xfatu";case"hh":return e(t)?r+(i||s?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?r+"dagar":r+(s?"daga":"d\xf6gum"):i?r+"dagur":r+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?r+"m\xe1nu\xf0ir":r+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?r+"m\xe1nu\xf0ur":r+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?r+(i||s?"\xe1r":"\xe1rum"):r+(i||s?"\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:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},"UC+K":function(t,e,i){!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(t){return t},week:{dow:1,doy:4}})}(i("wgY5"))},W7dU:function(t,e,i){!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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},WF5B:function(t,e,i){!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(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i("wgY5"))},Y8Ij:function(t,e,i){!function(t){"use strict";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("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i("wgY5"))},YKe2:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}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(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},YcFX:function(t,e,i){!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}})}(i("wgY5"))},ZNZT:function(t,e,i){!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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i("wgY5"))},ZOjb:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},ZVVJ:function(t,e,i){!function(t){"use strict";var e={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:"birne\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(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i("wgY5"))},ZyTy:function(t,e,i){!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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i("wgY5"))},aIF2:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\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\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i("wgY5"))},aYSr:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},baBi:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i("wgY5"))},bjMe:function(t,e,i){!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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i("wgY5"))},cGzb:function(t,e,i){!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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},cWLW:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var r=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,r="";return i>0&&(r+=e[i]+"vatlh"),n>0&&(r+=(""!==r?" ":"")+e[n]+"maH"),s>0&&(r+=(""!==r?" ":"")+e[s]),""===r?"pagh":r}(t);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" 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(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},d3TR:function(t,e,i){!function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},d5Hy:function(t,e,i){!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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i("wgY5"))},dw3T:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\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(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i("wgY5"))},e9KM:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i("wgY5"))},ecsu:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\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:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i("wgY5"))},ejL1:function(t,e,i){!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(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i("wgY5"))},etrl:function(t,e,i){var n,s;void 0===(s="function"==typeof(n=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){o(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(t,r,o){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=r=r||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,r,o):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(c.href)}),4e4),setTimeout((function(){n(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,r){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,r),s);else if(i(t))e(t,s,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){n(o)}))}}:function(t,i,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||r)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});s.saveAs=o.saveAs=o,t.exports=o})?n.apply(e,[]):n)||(t.exports=s)},exaB:function(t,e,i){!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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},"f8+N":function(t,e,i){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,i,s){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(s){var r=encodeURIComponent(n(s))+i;return Array.isArray(t[s])?t[s].map((function(t){return r+encodeURIComponent(n(t))})).join(e):r+encodeURIComponent(n(t[s]))})).join(e):s?encodeURIComponent(n(s))+i+encodeURIComponent(n(t)):""}},fN8o:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][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(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>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: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}})}(i("wgY5"))},fY0S:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\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\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i("wgY5"))},ffVN:function(t,e,i){!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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i("wgY5"))},foQf:function(t,e,i){!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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i("wgY5"))},gnIm:function(t,e,i){!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(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i("wgY5"))},"h+U8":function(t,e,i){!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_april_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",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}})}(i("wgY5"))},hH25:function(t,e,i){!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\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:6,doy:12}})}(i("wgY5"))},hHY4:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},hLzJ:function(t,e,i){!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}})}(i("wgY5"))},hQzt:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\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(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i("wgY5"))},hTlv:function(t,e,i){!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}})}(i("wgY5"))},iDxo:function(t,e,i){!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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},iNiw:function(t,e,i){!function(t){"use strict";var e={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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i("wgY5"))},iQoZ:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(function t(e){return e>9?t(e%10):e}(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i("wgY5"))},jOnb:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=20?"ste":"de")},week:{dow:1,doy:4}})}(i("wgY5"))},kFC9:function(t,e,i){!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}})}(i("wgY5"))},kQaN:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}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: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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i("wgY5"))},lOtj:function(t,e,i){!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(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i("wgY5"))},mSaU:function(t,e,i){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,(function(e){return t[e]}).bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:r.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(e){return s.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e}))):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then((function(i){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]}))},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then((function(e){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then((function(e){if(s.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys}))}))},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),s=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global;"string"!=typeof t&&(t=i.location.href);var r=t.lastIndexOf(e);r>=0&&(t=t.substr(r+1)),"?"===e&&(r=t.indexOf("#"))>=0&&(t=t.substr(0,r));for(var o,a={},c=/([^&=]+)=([^&]*)/g,u=0;o=c.exec(t);)if(a[decodeURIComponent(o[1])]=decodeURIComponent(o[2]),u++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in a)return a;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),s=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,s.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,s=e.metadataUrl,r=e.metadata,h=e.signingKeys,d=e.client_id,p=e.client_secret,f=e.response_type,g=void 0===f?u:f,m=e.scope,_=void 0===m?l:m,b=e.redirect_uri,y=e.post_logout_redirect_uri,w=e.prompt,A=e.display,v=e.max_age,M=e.ui_locales,C=e.acr_values,S=e.resource,T=e.response_mode,k=e.filterProtocolClaims,E=void 0===k||k,x=e.loadUserInfo,L=void 0===x||x,z=e.staleStateAge,D=void 0===z?900:z,R=e.clockSkew,O=void 0===R?300:R,P=e.userInfoJwtIssuer,I=void 0===P?"OP":P,N=e.stateStore,F=void 0===N?new o.WebStorageStateStore:N,B=e.ResponseValidatorCtor,H=void 0===B?a.ResponseValidator:B,q=e.MetadataServiceCtor,j=void 0===q?c.MetadataService:q,Y=e.extraQueryParams,W=void 0===Y?{}:Y,U=e.extraTokenParams,K=void 0===U?{}:U;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=s,this._metadata=r,this._signingKeys=h,this._client_id=d,this._client_secret=p,this._response_type=g,this._scope=_,this._redirect_uri=b,this._post_logout_redirect_uri=y,this._prompt=w,this._display=A,this._max_age=v,this._ui_locales=M,this._acr_values=C,this._resource=S,this._response_mode=T,this._filterProtocolClaims=!!E,this._loadUserInfo=!!L,this._staleStateAge=D,this._clockSkew=O,this._userInfoJwtIssuer=I,this._stateStore=F,this._validator=new H(this),this._metadataService=new j(this),this._extraQueryParams="object"===(void 0===W?"undefined":n(W))?W:{},this._extraTokenParams="object"===(void 0===K?"undefined":n(K))?K:{}}return s(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw r.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw r.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),s=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,r=e.store,o=void 0===r?s.Global.localStorage:r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=o,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise((function(s,r){var o=new i._XMLHttpRequest;o.open("GET",t);var a=i._contentTypes,c=i._jwtHandler;o.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",o.status),200===o.status){var e=o.getResponseHeader("Content-Type");if(e){var i=a.find((function(t){if(e.startsWith(t))return!0}));if("application/jwt"==i)return void c(o).then(s,r);if(i)try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.getJson: Error parsing JSON response",s.message),void r(s)}}r(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else r(Error(o.statusText+" ("+o.status+")"))},o.onerror=function(){n.Log.error("JsonService.getJson: network error"),r(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),o.setRequestHeader("Authorization","Bearer "+e)),o.send()}))},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise((function(s,r){var o=new i._XMLHttpRequest;o.open("POST",t);var a=i._contentTypes;o.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",o.status),200!==o.status){if(400===o.status&&(i=o.getResponseHeader("Content-Type"))&&a.find((function(t){if(i.startsWith(t))return!0})))try{var e=JSON.parse(o.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void r(new Error(e.error))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error(o.statusText+" ("+o.status+")"))}else{var i;if((i=o.getResponseHeader("Content-Type"))&&a.find((function(t){if(i.startsWith(t))return!0})))try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},o.onerror=function(){n.Log.error("JsonService.postForm: network error"),r(Error("Network Error"))};var c="";for(var u in e){var l=e[u];l&&(c.length>0&&(c+="&"),c+=encodeURIComponent(u),c+="=",c+=encodeURIComponent(l))}o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(c)}))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,s=e.created,o=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,r.default)(),this._data=n,this._created="number"==typeof s&&s>0?s:parseInt(Date.now()/1e3),this._request_type=o}return t.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return s.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then((function(i){s.Log.debug("State.clearStaleState: got keys",i);for(var r=[],o=function(o){var a=i[o];c=e.get(a).then((function(i){var r=!1;if(i)try{var o=t.fromStorageString(i);s.Log.debug("State.clearStaleState: got item from key: ",a,o.created),o.created<=n&&(r=!0)}catch(t){s.Log.error("State.clearStaleState: Error parsing state for key",a,t.message),r=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",a),r=!0;if(r)return s.Log.debug("State.clearStaleState: removed item for key: ",a),e.remove(a)})),r.push(c)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof r.OidcClientSettings?e:new r.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,r=e.redirect_uri,o=e.data,c=e.state,u=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,p=e.id_token_hint,f=e.login_hint,g=e.acr_values,m=e.resource,_=e.request,b=e.request_uri,y=e.response_mode,w=e.extraQueryParams,A=e.extraTokenParams,v=e.request_type,M=e.skipUserInfo,C=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var S=this._settings.client_id;n=n||this._settings.scope,r=r||this._settings.redirect_uri,u=u||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,m=m||this._settings.resource,y=y||this._settings.response_mode,w=w||this._settings.extraQueryParams,A=A||this._settings.extraTokenParams;var T=this._settings.authority;return a.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then((function(e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var k=new a.SigninRequest({url:e,client_id:S,redirect_uri:r,response_type:i,scope:n,data:o||c,authority:T,prompt:u,display:l,max_age:h,ui_locales:d,id_token_hint:p,login_hint:f,acr_values:g,resource:m,request:_,request_uri:b,extraQueryParams:w,extraTokenParams:A,request_type:v,response_mode:y,client_secret:t._settings.client_secret,skipUserInfo:M}),E=k.state;return(C=C||t._stateStore).set(E.id,E.toStorageString()).then((function(){return k}))}))},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?"?":"#",r=new c.SigninResponse(t,n);return r.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r.state).then((function(t){if(!t)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:r}}))):(s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then((function(t){var e=t.state,n=t.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)}))},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,r=e.state,o=e.post_logout_redirect_uri,a=e.extraQueryParams,c=e.request_type,l=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),o=o||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(e){if(!e)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new u.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:o,data:n||r,extraQueryParams:a,request_type:c}),d=h.state;return d&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h}))},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new o.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var r=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r).then((function(t){if(!t)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}}))},t.prototype.processSignoutResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then((function(t){var e=t.state,n=t.response;return e?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)}))},t.prototype.clearStaleState=function(t){return s.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),s=i(2),r=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new o(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then((function(i){return r.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then((function(t){return r.Log.debug("TokenClient.exchangeCode: response received"),t}))})):(r.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(r.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(r.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then((function(i){return r.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then((function(t){return r.Log.debug("TokenClient.exchangeRefreshToken: response received"),t}))})):(r.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.error,r=i.error_description,o=i.error_uri,a=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!s)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,r||s));return u.name="ErrorResponse",u.error=s,u.error_description=r,u.error_uri=o,u.state=a,u.session_state=c,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),s=i(3),r=i(13);e.SigninRequest=function(){function t(e){var i=e.url,o=e.client_id,a=e.redirect_uri,c=e.response_type,u=e.scope,l=e.authority,h=e.data,d=e.prompt,p=e.display,f=e.max_age,g=e.ui_locales,m=e.id_token_hint,_=e.login_hint,b=e.acr_values,y=e.resource,w=e.response_mode,A=e.request,v=e.request_uri,M=e.extraQueryParams,C=e.request_type,S=e.client_secret,T=e.extraTokenParams,k=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!o)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!u)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var E=t.isOidc(c),x=t.isCode(c);w||(w=t.isCode(c)?"query":null),this.state=new r.SigninState({nonce:E,data:h,client_id:o,authority:l,redirect_uri:a,code_verifier:x,request_type:C,response_mode:w,client_secret:S,scope:u,extraTokenParams:T,skipUserInfo:k}),i=s.UrlUtility.addQueryParam(i,"client_id",o),i=s.UrlUtility.addQueryParam(i,"redirect_uri",a),i=s.UrlUtility.addQueryParam(i,"response_type",c),i=s.UrlUtility.addQueryParam(i,"scope",u),i=s.UrlUtility.addQueryParam(i,"state",this.state.id),E&&(i=s.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),x&&(i=s.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=s.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var L={prompt:d,display:p,max_age:f,ui_locales:g,id_token_hint:m,login_hint:_,acr_values:b,resource:y,request:A,request_uri:v,response_mode:w};for(var z in L)L[z]&&(i=s.UrlUtility.addQueryParam(i,z,L[z]));for(var D in M)i=s.UrlUtility.addQueryParam(i,D,M[D]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter((function(t){return"id_token"===t}))[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter((function(t){return"token"===t}))[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter((function(t){return"code"===t}))[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,s=i.authority,r=i.client_id,c=i.redirect_uri,u=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,p=i.extraTokenParams,f=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,a.default)():n&&(g._nonce=n),!0===u?g._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():u&&(g._code_verifier=u),g.code_verifier){var m=o.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=o.JoseUtil.hexToBase64Url(m)}return g._redirect_uri=c,g._authority=s,g._client_id=r,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=p,g._skipUserInfo=f,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return s.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(r.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),s=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,r=e.accessTokenExpiringTimer,o=void 0===r?new s.Timer("Access token expiring"):r,a=e.accessTokenExpiredTimer,c=void 0===a?new s.Timer("Access token expired"):a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=o,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var s=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",s),this._accessTokenExpired.init(s)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex((function(e){return e===t}));e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:r.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then((function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then((function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)})).catch((function(t){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)}))})).catch((function(t){s.Log.error("SessionMonitor ctor: error from getUser:",t.message)}))}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then((function(t){if(t){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,r=e._checkSessionInterval,o=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,r,o),e._checkSessionIFrame.load().then((function(){e._checkSessionIFrame.start(i)}))}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")})).catch((function(t){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)})))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval((function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then((function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)})).catch((function(t){s.Log.error("SessionMonitor: error from querySessionStatus:",t.message)}))}),1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then((function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))})).catch((function(e){t._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())}))},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,s){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=s||2e3,this._stopOnError=r;var o=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,o),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise((function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)}))},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),s=i(2),r=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new o(this._settings)}return t.prototype.revoke=function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==s&&"refresh_token"!=s)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then((function(r){if(r)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+s),i._revoke(r,i._settings.client_id,i._settings.client_secret,t,s);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")}))},t.prototype._revoke=function(t,e,i,s,r){var o=this;return new Promise((function(a,c){var u=new o._XMLHttpRequestCtor;u.open("POST",t),u.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",u.status),200===u.status?a():c(Error(u.statusText+" ("+u.status+")"))},u.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(r),l+="&token="+encodeURIComponent(s),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(l)}))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then((function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then((function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then((function(t){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t}))}))}))},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then((function(t){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)}));s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var s in e){var r=e[s];Array.isArray(r)||(r=[r]);for(var o=0;o1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=a[0]}if(!c)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=t.client_id,l=i._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,c,o,u,l).then((function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))}))},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter((function(t){return t.kty===i})),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var r="sha"+n,o=this._joseUtil.hashString(t.access_token,r);if(!o)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",r),Promise.reject(new Error("Failed to validate at_hash"));var a=o.substr(0,o.length/2),c=this._joseUtil.hexToBase64Url(a);return c!==t.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),s=i(2),r=i(0),o=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then((function(i){return r.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then((function(t){return r.Log.debug("UserInfoService.getClaims: claims received",t),t}))})):(r.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return r.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var s=n.header.kid,o=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":o=this._metadataService.getIssuer();break;case"ANY":o=Promise.resolve(n.payload.iss);break;default:o=Promise.resolve(this._settings.userInfoJwtIssuer)}return o.then((function(t){return r.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then((function(o){if(!o)return r.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));r.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(s)a=o.filter((function(t){return t.kid===s}))[0];else{if((o=i._filterByAlg(o,n.header.alg)).length>1)return r.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=o[0]}if(!a)return r.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,u=i._settings.clockSkew;return r.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.responseText,a,t,c,u,void 0,!0).then((function(){return r.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload}))}))}))}catch(t){return r.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return r.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return r.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter((function(t){return t.kty===i})),r.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},s={};if(void 0===r)var r={};r.lang={extend:function(e,i,s){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=i.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),s){var o;for(o in s)e.prototype[o]=s[o];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(o=0;o>>2]|=(i[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else for(r=0;r>>2]=i[r>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-s%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},p=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},f=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,r=n/(4*s),a=(r=t?o.ceil(r):o.max((0|r)-this._minBufferSize,0))*s,c=o.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;4>o&&s+.75*o>>6*(3-o)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(s=n.charAt(64))&&-1!=(s=e.indexOf(s))&&(i=s);for(var s=[],r=0,o=0;o>>6-o%4*2;s[r>>>2]|=(a|c)<<24-r%4*8,r++}return t.create(s,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=_,i=(s=e.lib).WordArray,n=s.Hasher,s=e.algo,r=[],o=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,u=0;64>u;){var l;t:{for(var h=t.sqrt(l=c),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>u&&(r[u]=a(t.pow(c,.5))),o[u]=a(t.pow(c,1/3)),u++),c++}var p=[];s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],s=i[1],r=i[2],a=i[3],c=i[4],u=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)p[d]=0|t[e+d];else{var f=p[d-15],g=p[d-2];p[d]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+p[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[d-16]}f=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+o[d]+p[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&s^n&r^s&r),h=l,l=u,u=c,c=a+f|0,a=r,r=s,s=n,n=f+g|0}i[0]=i[0]+n|0,i[1]=i[1]+s|0,i[2]=i[2]+r|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0,i[5]=i[5]+u|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,s=8*e.sigBytes;return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t.floor(n/4294967296),i[15+(s+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(s),e.HmacSHA256=n._createHmacHelper(s)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=_,i=e.lib.Hasher,n=(r=e.x64).Word,s=r.WordArray,r=e.algo,o=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();r=r.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],s=h[2],r=h[3],c=h[4],u=h[5],l=h[6],h=h[7],d=i.high,p=i.low,f=n.high,g=n.low,m=s.high,_=s.low,b=r.high,y=r.low,w=c.high,A=c.low,v=u.high,M=u.low,C=l.high,S=l.low,T=h.high,k=h.low,E=d,x=p,L=f,z=g,D=m,R=_,O=b,P=y,I=w,N=A,F=v,B=M,H=C,q=S,j=T,Y=k,W=0;80>W;W++){var U=a[W];if(16>W)var K=U.high=0|t[e+2*W],V=U.low=0|t[e+2*W+1];else{K=((V=(K=a[W-15]).high)>>>1|(G=K.low)<<31)^(V>>>8|G<<24)^V>>>7;var G=(G>>>1|V<<31)^(G>>>8|V<<24)^(G>>>7|V<<25),X=((V=(X=a[W-2]).high)>>>19|($=X.low)<<13)^(V<<3|$>>>29)^V>>>6,$=($>>>19|V<<13)^($<<3|V>>>29)^($>>>6|V<<26),J=(V=a[W-7]).high,Q=(Z=a[W-16]).high,Z=Z.low;K=(K=(K=K+J+((V=G+V.low)>>>0>>0?1:0))+X+((V+=$)>>>0<$>>>0?1:0))+Q+((V+=Z)>>>0>>0?1:0),U.high=K,U.low=V}U=E&L^E&D^L&D;var tt=x&z^x&R^z&R,et=(G=(E>>>28|x<<4)^(E<<30|x>>>2)^(E<<25|x>>>7),X=(x>>>28|E<<4)^(x<<30|E>>>2)^(x<<25|E>>>7),($=o[W]).high),it=$.low;Q=(Q=(Q=(Q=j+((I>>>14|N<<18)^(I>>>18|N<<14)^(I<<23|N>>>9))+(($=Y+((N>>>14|I<<18)^(N>>>18|I<<14)^(N<<23|I>>>9)))>>>0>>0?1:0))+(J=I&F^~I&H)+(($+=Z=N&B^~N&q)>>>0>>0?1:0))+et+(($+=it)>>>0>>0?1:0))+K+(($+=V)>>>0>>0?1:0),j=H,Y=q,H=F,q=B,F=I,B=N,I=O+Q+((N=P+$|0)>>>0

>>0?1:0)|0,O=D,P=R,D=L,R=z,L=E,z=x,E=Q+(U=G+U+((V=X+tt)>>>0>>0?1:0))+((x=$+V|0)>>>0<$>>>0?1:0)|0}p=i.low=p+x,i.high=d+E+(p>>>0>>0?1:0),g=n.low=g+z,n.high=f+L+(g>>>0>>0?1:0),_=s.low=_+R,s.high=m+D+(_>>>0>>0?1:0),y=r.low=y+P,r.high=b+O+(y>>>0

>>0?1:0),A=c.low=A+N,c.high=w+I+(A>>>0>>0?1:0),M=u.low=M+B,u.high=v+F+(M>>>0>>0?1:0),S=l.low=S+q,l.high=C+H+(S>>>0>>0?1:0),k=h.low=k+Y,h.high=T+j+(k>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(r),e.HmacSHA512=i._createHmacHelper(r)}(),function(){var t=_,e=(s=t.x64).Word,i=s.WordArray,n=(s=t.algo).SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(s),t.HmacSHA384=n._createHmacHelper(s)}();var b,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=y.charAt(i>>6)+y.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=y.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=y.charAt(i>>2)+y.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function A(t){var e,i,n,s="",r=0;for(e=0;e>2),i=3&n,r=1):1==r?(s+=E(i<<2|n>>4),i=15&n,r=2):2==r?(s+=E(i),s+=E(n>>2),i=3&n,r=3):(s+=E(i<<2|n>>4),s+=E(15&n),r=0));return 1==r&&(s+=E(i<<2)),s}function v(t){var e,i=A(t),n=new Array;for(e=0;2*e>15;--r>=0;){var c=32767&this[t],u=this[t++]>>15,l=a*c+u*o;s=((c=o*c+((32767&l)<<15)+i[n]+(1073741823&s))>>>30)+(l>>>15)+a*u+(s>>>30),i[n++]=1073741823&c}return s},b=30):"Netscape"!=n.appName?(M.prototype.am=function(t,e,i,n,s,r){for(;--r>=0;){var o=e*this[t++]+i[n]+s;s=Math.floor(o/67108864),i[n++]=67108863&o}return s},b=26):(M.prototype.am=function(t,e,i,n,s,r){for(var o=16383&e,a=e>>14;--r>=0;){var c=16383&this[t],u=this[t++]>>14,l=a*c+u*o;s=((c=o*c+((16383&l)<<14)+i[n]+s)>>28)+(l>>14)+a*u,i[n++]=268435455&c}return s},b=28),M.prototype.DB=b,M.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function D(t){this.m=t}function R(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function B(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function H(){}function q(t){return t}function j(t){this.r2=C(),this.q3=C(),M.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}D.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},D.prototype.revert=function(t){return t},D.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},D.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},D.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},R.prototype.convert=function(t){var e=C();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(M.ZERO)>0&&this.m.subTo(e,e),e},R.prototype.revert=function(t){var e=C();return t.copyTo(e),this.reduce(e),e},R.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},R.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},R.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},M.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},M.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},M.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,s=!1,r=0;--n>=0;){var o=8==i?255&t[n]:x(t,n);o<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},M.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},M.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+o+1]=this[i]>>s|a,a=(this[i]&r)<=0;--i)e[i]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},M.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,r=(1<>n;for(var o=i+1;o>n;n>0&&(e[this.t-i-1]|=(this.s&r)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},M.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},M.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,r),s.lShiftTo(c,i)):(n.copyTo(r),s.copyTo(i));var u=r.t,l=r[u-1];if(0!=l){var h=l*(1<1?r[u-2]>>this.F2:0),d=this.FV/h,p=(1<=0&&(i[i.t++]=1,i.subTo(_,i)),M.ONE.dlShiftTo(u,_),_.subTo(r,r);r.t=0;){var b=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+f)*p);if((i[g]+=r.am(0,b,i,m,0,u))0&&i.rShiftTo(c,i),o<0&&M.ZERO.subTo(i,i)}}},M.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},M.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},M.prototype.exp=function(t,e){if(t>4294967295||t<1)return M.ONE;var i=C(),n=C(),s=e.convert(this),r=z(t)-1;for(s.copyTo(i);--r>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,s,i);else{var o=i;i=n,n=o}return e.revert(i)},M.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(a>a)>0&&(s=!0,r=E(i));o>=0;)a>(a+=this.DB-e)):(i=this[o]>>(a-=e)&n,a<=0&&(a+=this.DB,--o)),i>0&&(s=!0),s&&(r+=E(i));return s?r:"0"},M.prototype.negate=function(){var t=C();return M.ZERO.subTo(this,t),t},M.prototype.abs=function(){return this.s<0?this.negate():this},M.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},M.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+z(this[this.t-1]^this.s&this.DM)},M.prototype.mod=function(t){var e=C();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(M.ZERO)>0&&t.subTo(e,e),e},M.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new D(e):new R(e),this.exp(t,i)},M.ZERO=L(0),M.ONE=L(1),H.prototype.convert=q,H.prototype.revert=q,H.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},H.prototype.sqrTo=function(t,e){t.squareTo(e)},j.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=C();return t.copyTo(e),this.reduce(e),e},j.prototype.revert=function(t){return t},j.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},j.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},j.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var Y,W,U,K=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/K[K.length-1];function G(){this.i=0,this.j=0,this.S=new Array}function X(){!function(t){W[U++]^=255&t,W[U++]^=t>>8&255,W[U++]^=t>>16&255,W[U++]^=t>>24&255,U>=256&&(U-=256)}((new Date).getTime())}if(M.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},M.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=L(i),s=C(),r=C(),o="";for(this.divRemTo(n,s,r);s.signum()>0;)o=(i+r.intValue()).toString(t).substr(1)+o,s.divRemTo(n,s,r);return r.intValue().toString(t)+o},M.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,r=0,o=0,a=0;a=i&&(this.dMultiply(n),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(e,r)),this.dAddOffset(o,0)),s&&M.ZERO.subTo(this,this)},M.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(M.ONE.shiftLeft(t-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(M.ONE.shiftLeft(t-1),this);else{var n=new Array,s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},M.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},M.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},M.prototype.multiplyLowerTo=function(t,e,i){var n,s=Math.min(this.t+t.t,e);for(i.s=0,i.t=s;s>0;)i[--s]=0;for(n=i.t-this.t;s=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},M.prototype.millerRabin=function(t){var e=this.subtract(M.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>K.length&&(t=K.length);for(var s=C(),r=0;r>24},M.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},M.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},M.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},M.prototype.equals=function(t){return 0==this.compareTo(t)},M.prototype.min=function(t){return this.compareTo(t)<0?this:t},M.prototype.max=function(t){return this.compareTo(t)>0?this:t},M.prototype.and=function(t){var e=C();return this.bitwiseTo(t,O,e),e},M.prototype.or=function(t){var e=C();return this.bitwiseTo(t,P,e),e},M.prototype.xor=function(t){var e=C();return this.bitwiseTo(t,I,e),e},M.prototype.andNot=function(t){var e=C();return this.bitwiseTo(t,N,e),e},M.prototype.not=function(){for(var t=C(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=C();for(n.sqrTo(o[1],l);a<=u;)o[a]=C(),n.mulTo(l,o[a-2],o[a]),a+=2}var h,d,p=t.t-1,f=!0,g=C();for(s=z(t[p])-1;p>=0;){for(s>=c?h=t[p]>>s-c&u:(h=(t[p]&(1<0&&(h|=t[p-1]>>this.DB+s-c)),a=i;0==(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),f)o[h].copyTo(r),f=!1;else{for(;a>1;)n.sqrTo(r,g),n.sqrTo(g,r),a-=2;a>0?n.sqrTo(r,g):(d=r,r=g,g=d),n.mulTo(g,o[h],r)}for(;p>=0&&0==(t[p]&1<=0?(i.subTo(n,i),e&&s.subTo(o,s),r.subTo(a,r)):(n.subTo(i,n),e&&o.subTo(s,o),a.subTo(r,a))}return 0!=n.compareTo(M.ONE)?M.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},M.prototype.pow=function(t){return this.exp(t,new H)},M.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return e;for(s0&&(e.rShiftTo(r,e),i.rShiftTo(r,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},M.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=K[K.length-1]){for(e=0;e>>8,W[U++]=255&$;U=0,X()}function tt(){if(null==Y){for(X(),(Y=new G).init(W),U=0;U>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return n}function st(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function rt(t,e){this.x=e,this.q=t}function ot(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?M.ONE:n,this.zinv=null}function at(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new ot(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},st.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(n--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;for(var r=new et,o=new Array;e>2;){for(o[0]=0;0==o[0];)r.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new M(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},st.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var s=ut.crypto.MessageDigest,r=ut.crypto.Util,o=null;if(i||(i="sha1"),"string"==typeof i&&(o=s.getCanonicalAlgName(i),n=s.getHashLength(o),i=function(t){return Mt(r.hashHex(Ct(t),o))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,i);if(null==n)return null;var s=this.doPublic(n);if(null==s)return null;var r=s.toString(16);return 0==(1&r.length)?r:"0"+r},st.prototype.type="RSA",rt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},rt.prototype.toBigInteger=function(){return this.x},rt.prototype.negate=function(){return new rt(this.q,this.x.negate().mod(this.q))},rt.prototype.add=function(t){return new rt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},rt.prototype.subtract=function(t){return new rt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},rt.prototype.multiply=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},rt.prototype.square=function(){return new rt(this.q,this.x.square().mod(this.q))},rt.prototype.divide=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ot.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(M.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(M.ZERO))},ot.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(M.ZERO)&&!this.y.toBigInteger().equals(M.ZERO)},ot.prototype.negate=function(){return new ot(this.curve,this.x,this.y.negate(),this.z)},ot.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(M.ZERO.equals(i))return M.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new M("3"),s=this.x.toBigInteger(),r=this.y.toBigInteger(),o=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),a=o.multiply(i),c=s.multiply(o),u=e.square().multiply(this.z),l=u.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(r.multiply(a)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ot.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new M("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),s=n.multiply(i).mod(this.curve.q),r=this.curve.a.toBigInteger(),o=e.square().multiply(t);M.ZERO.equals(r)||(o=o.add(this.z.square().multiply(r)));var a=(o=o.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),c=o.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(o.square().multiply(o)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),u)},ot.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new M("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add(o?this:s))}return r},ot.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var s=this.curve.getInfinity(),r=this.add(e);n>=0;)s=s.twice(),t.testBit(n)?s=i.testBit(n)?s.add(r):s.add(this):i.testBit(n)&&(s=s.add(e)),--n;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new rt(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new ot(this,this.fromBigInteger(new M(i,16)),this.fromBigInteger(new M(n,16)));default:return null}},rt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ot.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=e(i,32);return t?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(n,32))),s},ot.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),s=e.slice(1+i/2,1+i);n.unshift(0),s.unshift(0);var r=new M(n),o=new M(s);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),s=e.substr(2+i/2,i/2),r=new M(n,16),o=new M(s,16);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(M.valueOf(2)),e=this.curve.fromBigInteger(M.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new M("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add2D(o?this:s))}return r},ot.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),r=e.multiply(e).mod(s),o=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(s);return r.equals(o)},ot.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ot.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(M.ONE)<0||e.compareTo(t.subtract(M.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(M.ONE)<0||i.compareTo(t.subtract(M.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var r=new String(""),o=Object.hasOwnProperty;return function(n,a){var c,u,l=n.match(t),h=l[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var p=[c],f=1-d,g=l.length;f=0;)delete s[r[l]]}return a.call(e,n,s)}({"":c},"")),c}}();void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.asn1&&ut.asn1||(ut.asn1={}),ut.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ut.asn1.DERAbstractString=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=At(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},r.lang.extend(ut.asn1.DERAbstractString,ut.asn1.ASN1Object),ut.asn1.DERAbstractTime=function(t){ut.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),r=String(s.getFullYear());"utc"==e&&(r=r.substr(2,2));var o=r+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(!0===i){var a=s.getMilliseconds();if(0!=a){var c=n(String(a),3);o=o+"."+(c=c.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=mt(t)},this.setByDateValue=function(t,e,i,n,s,r){var o=new Date(Date.UTC(t,e-1,i,n,s,r,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},r.lang.extend(ut.asn1.DERAbstractTime,ut.asn1.ASN1Object),ut.asn1.DERAbstractStructured=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},r.lang.extend(ut.asn1.DERAbstractStructured,ut.asn1.ASN1Object),ut.asn1.DERBoolean=function(){ut.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},r.lang.extend(ut.asn1.DERBoolean,ut.asn1.ASN1Object),ut.asn1.DERInteger=function(t){ut.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ut.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new M(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},r.lang.extend(ut.asn1.DERInteger,ut.asn1.ASN1Object),ut.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ut.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ut.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=n[i]);return(t=t.replace(s,"::")).slice(1,-1)}function It(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Pt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function Nt(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*r)break;if(a>=200)break;n.push(c),o=c,a++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var s,r,o=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return s=i.shift(),r=o.getChildIdx(t,e),o.getIdxbyList(t,r[s],i,n)},dt.getTLVbyList=function(t,e,i,n){var s=dt,r=s.getIdxbyList(t,e,i);if(void 0===r)throw"can't find nthList object";if(void 0!==n&&t.substr(r,2)!=n)throw"checking tag doesn't match: "+t.substr(r,2)+"!="+n;return s.getTLV(t,r)},dt.getVbyList=function(t,e,i,n,s){var r,o,a=dt;if(void 0===(r=a.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return o=a.getV(t,r),!0===s&&(o=o.substr(2)),o},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),s=parseInt(n,16);i[0]=new String(Math.floor(s/40)),i[1]=new String(s%40);for(var r=t.substr(2),o=[],a=0;a0&&(l=l+"."+c.join(".")),l},dt.dump=function(t,e,i,n){var s=dt,r=s.getV,o=s.dump,a=s.getChildIdx,c=t;t instanceof ut.asn1.ASN1Object&&(c=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=r(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+u(h=r(c,i),l)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+u(h=r(c,i),l)+"\n";if("04"==c.substr(i,2)){var h=r(c,i);return s.isASN1HEX(h)?(v=n+"OCTETSTRING, encapsulates\n")+o(h,e,0,n+" "):n+"OCTETSTRING "+u(h,l)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=r(c,i),p=ut.asn1.ASN1Util.oidHexToInt(d),f=ut.asn1.x509.OID.oid2name(p),g=p.replace(/\./g," ");return""!=f?n+"ObjectIdentifier "+f+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+vt(r(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+vt(r(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+vt(r(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+vt(r(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+vt(r(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+vt(r(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";v=n+"SEQUENCE\n";var m=e;if((2==(y=a(c,i)).length||3==y.length)&&"06"==c.substr(y[0],2)&&"04"==c.substr(y[y.length-1],2)){f=s.oidname(r(c,y[0]));var _=JSON.parse(JSON.stringify(e));_.x509ExtName=f,m=_}for(var b=0;bs)throw"key is too short for SigAlg: keylen="+i+","+e;for(var r="0001",o="00"+n,a="",c=s-r.length-o.length,u=0;u=0)return!1;if(i.compareTo(M.ONE)<0||i.compareTo(s)>=0)return!1;var o=i.modInverse(s),a=t.multiply(o).mod(s),c=e.multiply(o).mod(s);return r.multiply(a).add(n.multiply(c)).getX().toBigInteger().mod(s).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),s=[];return s.push(2),s.push(i.length),(s=s.concat(i)).push(2),s.push(n.length),(s=s.concat(n)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:M.fromByteArrayUnsigned(i),s:M.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:M.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:M.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=r(t,0,[2,0],"06"),i=r(t,0,[1],"04");try{n=r(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[1,0],"06"),e=r(t,0,[1,1],"06"),i=r(t,0,[2,0,1],"04");try{n=r(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ut.crypto.ECDSA.getName,s=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{s(t,0,[0,0],"06"),e=s(t,0,[0,1],"06"),i=s(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=r(t,0,[0,e,0,1],"06"),n=r(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=s(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ut.crypto.ECDSA.parseSigHex=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new M(e.r,16),s:new M(e.s,16)}},ut.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var s=n[0],r=n[1];if("02"!=t.substr(s,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(r,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,s),s:i(t,r)}},ut.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ut.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ut.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ut.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new M(t,16),n=new M(e,16);return ut.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ut.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ut.asn1,n=new i.DERInteger({bigint:t}),s=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,s]}).getEncodedHex()},ut.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new M(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,s,r,o,a,c,u,l,h,d,p,f){t[n]={};var g=i(r),m=i(o),_=i(a),b=i(c),y=i(u),w=new at(g,m,_),A=w.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=s,t[n].curve=w,t[n].G=A,t[n].n=b,t[n].h=y,t[n].oid=p,t[n].info=f;for(var v=0;v=2*a)break}var h={};return h.keyhex=c.substr(0,2*s[t].keylen),h.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),h},a=function(t,e,i,n){var r=_.enc.Base64.parse(t),o=_.enc.Hex.stringify(r);return(0,s[e].proc)(o,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return r(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return o(t,e,i)},decryptKeyB64:function(t,e,i,n){return a(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=r(t),n=i.cipher,s=i.ivsalt,c=i.data,u=o(n,e,s).keyhex;return a(c,n,u,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,r){var a="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==r&&null!=r||(r=function(t){var e=_.lib.WordArray.random(t);return _.enc.Hex.stringify(e)}(s[n].ivlen).toUpperCase()),a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+n+","+r+"\r\n",a+="\r\n",(a+=function(t,e,i,n){return(0,s[e].eproc)(t,i,n)}(e,n,o(n,i,r).keyhex,r).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,s={},r=i(e,0);if(2!=r.length)throw"malformed format: SEQUENCE(0).items != 2: "+r.length;s.ciphertext=n(e,r[1]);var o=i(e,r[0]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+o.length;if("2a864886f70d01050d"!=n(e,o[0]))throw"this only supports pkcs5PBES2";var a=i(e,o[1]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+a.length;var c=i(e,a[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";s.encryptionSchemeAlg="TripleDES",s.encryptionSchemeIV=n(e,c[1]);var u=i(e,a[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=n(e,u[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,u[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;s.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{s.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return s},getPBKDF2KeyHexFromParam:function(t,e){var i=_.enc.Hex.parse(t.pbkdf2Salt),n=_.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return _.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=xt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),s=Bt.getPBKDF2KeyHexFromParam(n,e),r={};r.ciphertext=_.enc.Hex.parse(n.ciphertext);var o=_.enc.Hex.parse(s),a=_.enc.Hex.parse(n.encryptionSchemeIV),c=_.TripleDES.decrypt(r,o,{iv:a});return _.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var r=i(t,0);if(3!=r.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(r[1],2))throw"malformed PKCS8 private key(code:003)";var o=i(t,r[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=n(t,o[0]),"06"==t.substr(o[1],2)&&(s.algparam=n(t,o[1])),"04"!=t.substr(r[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,r[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=xt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new st;else if("2a8648ce380401"==i.algoid)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ut.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new st;else if("2a8648ce380401"===i)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ut.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,s[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null},r=i(t,0);if(2!=r.length)throw"outer DERSequence shall have 2 elements: "+r.length;var o=r[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var a=i(t,o);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=n(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=n(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(r[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=n(t,r[1]).substr(2),s}}}();Bt.getKey=function(t,e,i){var n,s=(_=dt).getChildIdx,r=_.getVbyList,o=ut.crypto,a=o.ECDSA,c=o.DSA,u=st,l=xt,h=Bt;if(void 0!==u&&t instanceof u)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(x=new u).setPublic(t.n,t.e),x;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(x=new u).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),x;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(x=new u).setPrivate(t.n,t.e,t.d),x;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(x=new c).setPublic(t.p,t.q,t.g,t.y),x;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(x=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(x=new u).setPublic(wt(t.n),wt(t.e)),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(x=new u).setPrivateEx(wt(t.n),wt(t.e),wt(t.d),wt(t.p),wt(t.q),wt(t.dp),wt(t.dq),wt(t.qi)),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(x=new u).setPrivate(wt(t.n),wt(t.e),wt(t.d)),x;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(E=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);return E.setPublicKeyHex(p),E}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(E=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);var f=("0000000000"+wt(t.d)).slice(-d);return E.setPublicKeyHex(p),E.setPrivateKeyHex(f),E}if("pkcs5prv"===i){var g,m=t,_=dt;if(9===(g=s(m,0)).length)(x=new u).readPKCS5PrvKeyHex(m);else if(6===g.length)(x=new c).readPKCS5PrvKeyHex(m);else{if(!(g.length>2&&"04"===m.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(x=new a).readPKCS5PrvKeyHex(m)}return x}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return Wt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Wt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var b=xt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(b)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var y=l(t,"RSA PRIVATE KEY");return h.getKey(y,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=r(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),A=r(n,0,[2],"02"),v=r(n,0,[3],"02"),C=r(n,0,[4],"02"),S=r(n,0,[5],"02");return(x=new c).setPrivate(new M(w,16),new M(A,16),new M(v,16),new M(C,16),new M(S,16)),x}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var T=h.getDecryptedKeyHex(t,e),k=new st;return k.readPKCS5PrvKeyHex(T),k}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var E,x=r(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),L=r(n,0,[2,0],"06"),z=r(n,0,[3,0],"03").substr(2);if(void 0===ut.crypto.OID.oidhex2name[L])throw"undefined OID(hex) in KJUR.crypto.OID: "+L;return(E=new a({curve:ut.crypto.OID.oidhex2name[L]})).setPublicKeyHex(z),E.setPrivateKeyHex(x),E.isPublic=!1,E}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return w=r(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),A=r(n,0,[2],"02"),v=r(n,0,[3],"02"),C=r(n,0,[4],"02"),S=r(n,0,[5],"02"),(x=new c).setPrivate(new M(w,16),new M(A,16),new M(v,16),new M(C,16),new M(S,16)),x;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Bt.generateKeypair=function(t,e){if("RSA"==t){var i=e;(o=new st).generate(i,"10001"),o.isPrivate=!0,o.isPublic=!0;var n=new st,s=o.n.toString(16),r=o.e.toString(16);return n.setPublic(s,r),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}if("EC"==t){var o,a,c=e,u=new ut.crypto.ECDSA({curve:c}).generateKeyPairHex();return(o=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),o.setPrivateKeyHex(u.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(n=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}throw"unknown algorithm: "+t},Bt.getPEM=function(t,e,i,n,s,r){var o=ut.asn1,a=o.DERObjectIdentifier,c=o.DERInteger,u=o.ASN1Util.newObject,l=ut.crypto,h=l.DSA,d=l.ECDSA,p=st;function f(t){return u({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function m(t){return u({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==p&&t instanceof p||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return Et(A=new(0,o.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==p&&t instanceof p&&(void 0===i||null==i)&&1==t.isPrivate)return Et(A=f(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var b=new a({name:t.curveName}).getEncodedHex(),y=g(t).getEncodedHex(),w="";return(w+=Et(b,"EC PARAMETERS"))+Et(y,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return Et(A=m(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==p&&t instanceof p&&void 0!==i&&null!=i&&1==t.isPrivate){var A=f(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",A,i,n,r)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return A=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",A,i,n,r);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return A=m(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",A,i,n,r);var v=function(t,e){var i=M(t,e);return new u({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},M=function(t,e){var i=_.lib.WordArray.random(8),n=_.lib.WordArray.random(8),s=_.PBKDF2(e,i,{keySize:6,iterations:100}),r=_.enc.Hex.parse(t),o=_.TripleDES.encrypt(r,s,{iv:n})+"",a={};return a.ciphertext=o,a.pbkdf2Salt=_.enc.Hex.stringify(i),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=_.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=p&&t instanceof p&&1==t.isPrivate){var C=f(t).getEncodedHex();return A=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?Et(A,"PRIVATE KEY"):Et(y=v(A,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return C=new u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),A=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?Et(A,"PRIVATE KEY"):Et(y=v(A,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return C=new c({bigint:t.x}).getEncodedHex(),A=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?Et(A,"PRIVATE KEY"):Et(y=v(A,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Bt.getKeyFromCSRPEM=function(t){var e=xt(t,"CERTIFICATE REQUEST");return Bt.getKeyFromCSRHex(e)},Bt.getKeyFromCSRHex=function(t){var e=Bt.parseCSRHex(t);return Bt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Bt.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var r=e(s,0);if(r.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(r[0],2))throw"malformed CSR(code:003)";var o=e(s,r[0]);if(o.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(s,o[2]),n},Bt.getJWKFromKey=function(t){var e={};if(t instanceof st&&t.isPrivate)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e.d=yt(t.d.toString(16)),e.p=yt(t.p.toString(16)),e.q=yt(t.q.toString(16)),e.dp=yt(t.dmp1.toString(16)),e.dq=yt(t.dmq1.toString(16)),e.qi=yt(t.coeff.toString(16)),e;if(t instanceof st&&t.isPublic)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e;if(t instanceof ut.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e.d=yt(t.prvKeyHex),e}if(t instanceof ut.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e}throw"not supported key object"},st.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},st.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=st.getPosArrayOfChildrenFromHex(t))[0]),s=i(t,e[1]),r=i(t,e[2]),o=i(t,e[3]),a=i(t,e[4]),c=i(t,e[5]),u=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,s,r,o,a,c,u,l,h),e},st.prototype.readPrivateKeyFromPEMString=function(t){var e=xt(t),i=st.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},st.prototype.readPKCS5PrvKeyHex=function(t){var e=st.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},st.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,s,r,o,a,c,u=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=u(t,0,[2,0,1],"02"),i=u(t,0,[2,0,2],"02"),n=u(t,0,[2,0,3],"02"),s=u(t,0,[2,0,4],"02"),r=u(t,0,[2,0,5],"02"),o=u(t,0,[2,0,6],"02"),a=u(t,0,[2,0,7],"02"),c=u(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,s,r,o,a,c)},st.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var s=i(t,n[0]),r=i(t,n[1]);this.setPublic(s,r)},st.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},st.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new Wt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Ht=new RegExp("");function qt(t,e){for(var i="",n=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return n}function Yt(t){for(var e in ut.crypto.Util.DIGESTINFOHEAD){var i=ut.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function Wt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,s=t.getVbyList,r=t.getTLVbyList,o=t.getIdxbyList,a=t.getVidx,c=t.oidname,u=Wt,l=xt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==r(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(s(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return r(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return u.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return r(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return u.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=s(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=s(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return o(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return o(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Bt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(s(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=r(this.hex,0,[0],"30"),s=new ut.crypto.Signature({alg:e});return s.init(t),s.updateHex(n),s.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=o(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var r=0;r0&&(u=new Array(i),(new et).nextBytes(u),u=String.fromCharCode.apply(String,u));var l=Mt(c(Ct("\0\0\0\0\0\0\0\0"+s+u))),h=[];for(n=0;n>8*a-o&255),n=0;nthis.n.bitLength())return 0;var n=Yt(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var s=n[0];return n[1]==function(t){return ut.crypto.Util.hashString(t,s)}(t)},st.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Ht,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Yt(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},st.prototype.verifyPSS=function(t,e,i,n){var s=function(t){return ut.crypto.Util.hashHex(t,i)}(Ct(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(s,e,i,n)},st.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var s=new M(e,16);if(s.bitLength()>this.n.bitLength())return!1;var r,o=function(t){return ut.crypto.Util.hashHex(t,i)},a=Mt(t),c=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=l-c-2;else if(n<-2)throw"invalid salt length";if(l>8*l-u&255;if(0!=(d.charCodeAt(0)&f))throw"bits beyond keysize not zero";var g=jt(p,d.length,o),m=[];for(r=0;r0&&-1==(":"+n.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Bt.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof s))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var _=null;if(void 0===r.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+m;if("none"==(_=r.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==_.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var b=new u({alg:_,pass:e});return b.updateString(p),f==b.doFinal()}if(-1!=_.indexOf("withECDSA")){var y,w=null;try{w=c.concatSigToASN1Sig(f)}catch(t){return!1}return(y=new l({alg:_})).init(e),y.updateString(p),y.verify(w)}return(y=new l({alg:_})).init(e),y.updateString(p),y.verify(f)},ut.jws.JWS.parse=function(t){var e,i,n=t.split("."),s={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),s.headerObj=ut.jws.JWS.readSafeJSONString(ht(n[0])),s.payloadObj=ut.jws.JWS.readSafeJSONString(ht(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ht(e):JSON.stringify(s.payloadObj,null," "),void 0!==i&&(s.sigHex=wt(i)),s},ut.jws.JWS.verifyJWT=function(t,e,n){var s=ut.jws,r=s.JWS,o=r.readSafeJSONString,a=r.inArray,c=r.includedArray,u=t.split("."),l=u[0],h=u[1],d=(wt(u[2]),o(ht(l))),p=o(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(d.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===i(n.iss)&&!a(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===i(n.sub)&&!a(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===i(n.aud))if("string"==typeof p.aud){if(!a(p.aud,n.aud))return!1}else if("object"==i(p.aud)&&!c(p.aud,n.aud))return!1;var f=s.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(f=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function f(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return H(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,s){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(s)return-1;i=t.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:_(t,e,i,n,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):_(t,[e],i,n,s);throw new TypeError("val must be string, number or Buffer")}function _(t,e,i,n,s){var r,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(s){var l=-1;for(r=i;ra&&(i=a-c),r=i;r>=0;r--){for(var h=!0,d=0;ds&&(n=s):n=s;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var o=0;o>8,s.push(i%256),s.push(n);return s}(e,t.length-i),t,i,n)}function C(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function S(t,e,i){i=Math.min(t.length,i);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+h<=i)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(r=t[s+1]))&&(c=(31&u)<<6|63&r)>127&&(l=c);break;case 3:o=t[s+2],128==(192&(r=t[s+1]))&&128==(192&o)&&(c=(15&u)<<12|(63&r)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[s+2],a=t[s+3],128==(192&(r=t[s+1]))&&128==(192&o)&&128==(192&a)&&(c=(15&u)<<18|(63&r)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),s+=h}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,e,i);case"utf8":case"utf-8":return S(this,e,i);case"ascii":return k(this,e,i);case"latin1":case"binary":return E(this,e,i);case"base64":return C(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||i>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=i)return 0;if(n>=s)return-1;if(e>=i)return 1;if(this===t)return 0;for(var r=(s>>>=0)-(n>>>=0),o=(i>>>=0)-(e>>>=0),a=Math.min(r,o),u=this.slice(n,s),l=t.slice(e,i),h=0;hs)&&(i=s),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return b(this,t,e,i);case"utf8":case"utf-8":return y(this,t,e,i);case"ascii":return w(this,t,e,i);case"latin1":case"binary":return A(this,t,e,i);case"base64":return v(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function k(t,e,i){var n="";i=Math.min(t.length,i);for(var s=e;sn)&&(i=n);for(var s="",r=e;ri)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,i,n,s,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function R(t,e,i,n){e<0&&(e=65535+e+1);for(var s=0,r=Math.min(t.length-i,2);s>>8*(n?s:1-s)}function O(t,e,i,n){e<0&&(e=4294967295+e+1);for(var s=0,r=Math.min(t.length-i,4);s>>8*(n?s:3-s)&255}function P(t,e,i,n,s,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function I(t,e,i,n,r){return r||P(t,0,i,4),s.write(t,e,i,n,23,4),i+4}function N(t,e,i,n,r){return r||P(t,0,i,8),s.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(s*=256);)n+=this[t+--e]*s;return n},c.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||z(t,e,this.length);for(var n=this[t],s=1,r=0;++r=(s*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||z(t,e,this.length);for(var n=e,s=1,r=this[t+--n];n>0&&(s*=256);)r+=this[t+--n]*s;return r>=(s*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||D(this,t,e,i,Math.pow(2,8*i)-1,0);var s=1,r=0;for(this[e]=255&t;++r=0&&(r*=256);)this[e+s]=t/r&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);D(this,t,e,i,s-1,-s)}var r=0,o=1,a=0;for(this[e]=255&t;++r>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);D(this,t,e,i,s-1,-s)}var r=i-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return I(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return I(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return N(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return N(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r55295&&i<57344){if(!s){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&r.push(239,191,189);continue}s=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(e-=3)>-1&&r.push(239,191,189);if(s=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,i,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+i]=t[s];return s}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=u(t),n=i[0],o=i[1],a=new r(function(t,e,i){return 3*(e+i)/4-i}(0,n,o)),c=0,l=o>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,s=i%3,r=[],o=0,a=i-s;oa?a:o+16383));return 1===s?r.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===s&&r.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),r.join("")};for(var n=[],s=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var s,r=[],o=e;o>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return r.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,s){var r,o,a=8*s-n-1,c=(1<>1,l=-7,h=i?s-1:0,d=i?-1:1,p=t[e+h];for(h+=d,r=p&(1<<-l)-1,p>>=-l,l+=a;l>0;r=256*r+t[e+h],h+=d,l-=8);for(o=r&(1<<-l)-1,r>>=-l,l+=n;l>0;o=256*o+t[e+h],h+=d,l-=8);if(0===r)r=1-u;else{if(r===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),r-=u}return(p?-1:1)*o*Math.pow(2,r-n)},e.write=function(t,e,i,n,s,r){var o,a,c,u=8*r-s-1,l=(1<>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:r-1,f=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=l?(a=0,o=l):o+h>=1?(a=(e*c-1)*Math.pow(2,s),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;t[i+p]=255&a,p+=f,a/=256,s-=8);for(o=o<0;t[i+p]=255&o,p+=f,o/=256,u-=8);t[i+p-f]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,s=t.X509,r=t.crypto,o=t.hextob64u,a=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var s=e.JWS.parse(i);return{header:s.headerObj,payload:s.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,r,o,c,u,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===r.kty)if(r.e&&r.n)r=i.getKey(r);else{if(!r.x5c||!r.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",r),Promise.reject(new Error("RSA key missing key material"));var d=a(r.x5c[0]);r=s.getPublicKeyFromCertHex(d)}else{if("EC"!==r.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",r&&r.kty),Promise.reject(new Error(r.kty));if(!(r.crv&&r.x&&r.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",r),Promise.reject(new Error("EC key missing key material"));r=i.getKey(r)}return t._validateJwt(e,r,o,c,u,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,s,r,o,a){r||(r=0),o||(o=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===s||Array.isArray(c.aud)&&c.aud.indexOf(s)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==s)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!a){var u=o+r,l=o-r;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(u>>((3&e)<<3)&255;return s}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=s.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),s=i(3),r=i(8);e.SignoutRequest=function t(e){var i=e.url,o=e.id_token_hint,a=e.post_logout_redirect_uri,c=e.data,u=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in o&&(i=s.UrlUtility.addQueryParam(i,"id_token_hint",o)),a&&(i=s.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",a),c&&(this.state=new r.State({data:c,request_type:l}),i=s.UrlUtility.addQueryParam(i,"state",this.state.id))),u)i=s.UrlUtility.addQueryParam(i,h,u[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.SilentRenewService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof o.UserManagerSettings||(i=new o.UserManagerSettings(i));var m=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return m._events=new c.UserManagerEvents(i),m._silentRenewService=new n(m),m.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new r(m)),m._tokenRevocationClient=new a(m._settings),m._tokenClient=new f(m._settings),m._joseUtil=g,m}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then((function(e){return e?(s.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(s.Log.info("UserManager.getUser: user not found in storage"),null)}))},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then((function(){s.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()}))},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then((function(){s.Log.info("UserManager.signinRedirect: successful")}))},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then((function(t){return t.profile&&t.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),t}))},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then((function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),t}))):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then((function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),t})).catch((function(t){s.Log.error(t.message)}))},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then((function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))}))},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then((function(e){return e?e.access_token?t._loadUser().then((function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then((function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then((function(){return t._events.load(i),i}))}))}return null})):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))}))},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then((function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then((function(e){return e?e.sub!==t.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))}))}))},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),t}))):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then((function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),t}))},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then((function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))}))},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then((function(n){var s=n.state,r=n.response;return s?"so:r"===s.request_type?i.signoutRedirectCallback(t):"so:p"===s.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):r}))},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(e){return t.processSigninResponse(e.url).then((function(t){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")})).catch((function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e}))}))):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then((function(e){return i._signinEnd(e.url,t)}))},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then((function(e){return s.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then((function(t){return s.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)})).catch((function(t){throw e.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t}))}))},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then((function(t){s.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then((function(){return s.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n}))}))},e.prototype._signinCallback=function(t,e){return s.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then((function(){s.Log.info("UserManager.signoutRedirect: successful")}))},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then((function(t){return s.Log.info("UserManager.signoutRedirectCallback: successful"),t}))},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){s.Log.info("UserManager.signoutPopup: successful")}))},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then((function(){s.Log.info("UserManager.signoutPopupCallback: successful")}))},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then((function(t){return i._signoutEnd(t.url)}))},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then((function(i){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then((function(r){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(r):Promise.resolve()).then((function(){var o=t.id_token_hint||r&&r.id_token;return o&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=o),e.removeUser().then((function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then((function(t){return s.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)}))}))}))})).catch((function(t){throw i.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t}))}))},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then((function(t){return s.Log.debug("UserManager._signoutEnd: got signout response"),t}))},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then((function(e){return t._revokeInternal(e,!0).then((function(i){if(i)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then((function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)}))}))})).then((function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")}))},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then((function(t){return i._revokeRefreshTokenInternal(n,e).then((function(e){return t||e||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e}))}))}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then((function(){return!0}))},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then((function(){return!0})):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(t){return t?(s.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)}))},e.prototype.storeUser=function(t){if(t){s.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(r.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,s=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,p=i.silent_redirect_uri,f=i.silentRequestTimeout,g=i.automaticSilentRenew,m=void 0!==g&&g,_=i.validateSubOnSilentRenew,b=void 0!==_&&_,y=i.includeIdTokenInSilentRenew,w=void 0===y||y,A=i.monitorSession,v=void 0===A||A,M=i.monitorAnonymousSession,C=void 0!==M&&M,S=i.checkSessionInterval,T=void 0===S?2e3:S,k=i.stopCheckSessionOnError,E=void 0===k||k,x=i.query_status_response_type,L=i.revokeAccessTokenOnSignout,z=void 0!==L&&L,D=i.accessTokenExpiringNotificationTime,R=void 0===D?60:D,O=i.redirectNavigator,P=void 0===O?new r.RedirectNavigator:O,I=i.popupNavigator,N=void 0===I?new o.PopupNavigator:I,F=i.iframeNavigator,B=void 0===F?new a.IFrameNavigator:F,H=i.userStore,q=void 0===H?new c.WebStorageStateStore({store:u.Global.sessionStorage}):H;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var j=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return j._popup_redirect_uri=n,j._popup_post_logout_redirect_uri=s,j._popupWindowFeatures=h,j._popupWindowTarget=d,j._silent_redirect_uri=p,j._silentRequestTimeout=f,j._automaticSilentRenew=m,j._validateSubOnSilentRenew=b,j._includeIdTokenInSilentRenew=w,j._accessTokenExpiringNotificationTime=R,j._monitorSession=v,j._monitorAnonymousSession=C,j._checkSessionInterval=T,j._stopCheckSessionOnError=E,j._query_status_response_type=x||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),j._revokeAccessTokenOnSignout=z,j._redirectNavigator=P,j._popupNavigator=N,j._iframeNavigator=B,j._userStore=q,j}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(s.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(s.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.Global.timer,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return o._timer=n,o._nowFunc=s||function(){return Date.now()/1e3},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i("wgY5"))},"t+Zl":function(t,e,i){!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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i("wgY5"))},t4T9:function(t,e,i){!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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i("wgY5"))},tSbB:function(t,e,i){!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(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.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(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i("wgY5"))},u2jB:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return i[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i("wgY5"))},uHm5:function(t,e,i){!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"})}(i("wgY5"))},v3Qg:function(t,e,i){!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(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i("wgY5"))},vcN1:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,r){var o="";switch(s){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=r?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,r)+" "+o}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: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:4}})}(i("wgY5"))},"vd/2":function(t,e,i){!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(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i("wgY5"))},"vn/h":function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=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(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},w8Ej:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i("wgY5"))},wOqL:function(t,e,i){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,i,s){i=i||"=";var r={};if("string"!=typeof t||0===t.length)return r;var o=/\+/g;t=t.split(e=e||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(l=f.substr(0,g),h=f.substr(g+1)):(l=f,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),n(r,d)?Array.isArray(r[d])?r[d].push(p):r[d]=[r[d],p]:r[d]=p}return r}},wgY5:function(t,e,i){(function(t){t.exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var y=!1;function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,s.updateOffset(this),y=!1)}function A(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function v(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function M(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=v(e)),i}function C(t,e,i){var n,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},Y={};function W(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(Y[t]=s),e&&(Y[e[0]]=function(){return B(s.apply(this,arguments),e[1],e[2])}),i&&(Y[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=K(e,t.localeData()),j[e]=j[e]||function(t){var e,i,n,s=t.match(H);for(e=0,i=s.length;e=0&&q.test(t);)t=t.replace(q,n),q.lastIndex=0,i-=1;return t}var V=/\d/,G=/\d\d/,X=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=L(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,s){return e||i||n||s}))))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=M(t)}),i=0;i68?1900:2e3)};var yt,wt=At("FullYear",!0);function At(t,e){return function(i){return null!=i?(Mt(this,t,i),s.updateOffset(this,e),this):vt(this,t)}}function vt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Mt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&bt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Ct(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Ct(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?bt(t)?29:28:31-i%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,r,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,r,o),a}function Pt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function It(t,e,i){var n=7+e-i;return-(7+Pt(t,0,n).getUTCDay()-e)%7+n-1}function Nt(t,e,i,n,s){var r,o,a=1+7*(e-1)+(7+i-n)%7+It(t,n,s);return a<=0?o=_t(r=t-1)+a:a>_t(t)?(r=t+1,o=a-_t(t)):(r=t,o=a),{year:r,dayOfYear:o}}function Ft(t,e,i){var n,s,r=It(t.year(),e,i),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?n=o+Bt(s=t.year()-1,e,i):o>Bt(t.year(),e,i)?(n=o-Bt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=o),{week:n,year:s}}function Bt(t,e,i){var n=It(t,e,i),s=It(t+1,e,i);return(_t(t)-n+s)/7}function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),O("week","w"),O("isoWeek","W"),F("week",5),F("isoWeek",5),lt("w",Q),lt("ww",Q,G),lt("W",Q),lt("WW",Q,G),gt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=M(t)})),W("d",0,"do","day"),W("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),W("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),W("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),O("day","d"),O("weekday","e"),O("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),lt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),lt("dddd",(function(t,e){return e.weekdaysRegex(t)})),gt(["dd","ddd","dddd"],(function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:f(i).invalidWeekday=t})),gt(["d","e","E"],(function(t,e,i,n){e[n]=M(t)}));var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Wt(t,e,i){var n,s,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,o))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._shortWeekdaysParse,o))||-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,o))||-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,o))||-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._shortWeekdaysParse,o))?s:null}var Ut=ct,Kt=ct,Vt=ct;function Gt(){function t(t,e){return e.length-t.length}var e,i,n,s,r,o=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=p([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),r=this.weekdays(i,""),o.push(n),a.push(s),c.push(r),u.push(n),u.push(s),u.push(r);for(o.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xt(){return this.hours()%12||12}function $t(t,e){W(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Jt(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Xt),W("k",["kk",2],0,(function(){return this.hours()||24})),W("hmm",0,0,(function(){return""+Xt.apply(this)+B(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+Xt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),$t("a",!0),$t("A",!1),O("hour","h"),F("hour",13),lt("a",Jt),lt("A",Jt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,G),lt("hh",Q,G),lt("kk",Q,G),lt("hmm",Z),lt("hmmss",tt),lt("Hmm",Z),lt("Hmmss",tt),ft(["H","HH"],3),ft(["k","kk"],(function(t,e,i){var n=M(t);e[3]=24===n?0:n})),ft(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),ft(["h","hh"],(function(t,e,i){e[3]=M(t),f(i).bigHour=!0})),ft("hmm",(function(t,e,i){var n=t.length-2;e[3]=M(t.substr(0,n)),e[4]=M(t.substr(n)),f(i).bigHour=!0})),ft("hmmss",(function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=M(t.substr(0,n)),e[4]=M(t.substr(n,2)),e[5]=M(t.substr(s)),f(i).bigHour=!0})),ft("Hmm",(function(t,e,i){var n=t.length-2;e[3]=M(t.substr(0,n)),e[4]=M(t.substr(n))})),ft("Hmmss",(function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=M(t.substr(0,n)),e[4]=M(t.substr(n,2)),e[5]=M(t.substr(s))}));var Qt,Zt=At("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Tt,monthsShort:kt,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:Yt,weekdaysShort:jt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&void 0!==t&&t&&t.exports)try{n=Qt._abbr,i("MROq")("./"+e),re(n)}catch(s){}return ee[e]}function re(t,e){var i;return t&&((i=a(e)?ae(t):oe(t,e))?Qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Qt._abbr}function oe(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new D(z(n,e)),ie[t]&&ie[t].forEach((function(t){oe(t.name,t.config)})),re(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qt;if(!r(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,r=0;r0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&C(s,i,!0)>=e-1)break;e--}r++}return Qt}(t)}function ce(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Ct(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,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,r,o,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,r,o,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,o=4,i=ue(e.GG,t._a[0],Ft(Ce(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{r=t._locale._week.dow,o=t._locale._week.doy;var u=Ft(Ce(),r,o);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(c=!0)):s=r}n<1||n>Bt(i,r,o)?f(t)._overflowWeeks=!0:null!=c?f(t)._overflowWeekday=!0:(a=Nt(i,n,s,r,o),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=ue(t._a[0],n[0]),(t._dayOfYear>_t(o)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Pt(o,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Pt:Ot).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(f(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,r,o,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(f(t).iso=!0,e=0,i=fe.length;e0&&f(t).unusedInput.push(o),a=a.slice(a.indexOf(i)+i.length),u+=i.length),Y[r]?(i?f(t).empty=!1:f(t).unusedTokens.push(r),mt(r,i,t)):t._strict&&!i&&f(t).unusedTokens.push(r);f(t).charsLeftOver=c-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else we(t);else _e(t)}function ve(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new w(ce(e)):(u(e)?t._d=e:r(i)?function(t){var e,i,n,s,r;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()}));function ke(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Ce();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function Ze(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ti(t,e){W(0,[t,t.length],0,e)}function ei(t,e,i,n,s){var r;return null==t?Ft(this,n,s).year:(e>(r=Bt(t,n,s))&&(e=r),ii.call(this,t,e,i,n,s))}function ii(t,e,i,n,s){var r=Nt(t,e,i,n,s),o=Pt(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),O("weekYear","gg"),O("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),lt("G",rt),lt("g",rt),lt("GG",Q,G),lt("gg",Q,G),lt("GGGG",it,$),lt("gggg",it,$),lt("GGGGG",nt,J),lt("ggggg",nt,J),gt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=M(t)})),gt(["gg","GG"],(function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)})),W("Q",0,"Qo","quarter"),O("quarter","Q"),F("quarter",7),lt("Q",V),ft("Q",(function(t,e){e[1]=3*(M(t)-1)})),W("D",["DD",2],"Do","date"),O("date","D"),F("date",9),lt("D",Q),lt("DD",Q,G),lt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ft(["D","DD"],2),ft("Do",(function(t,e){e[2]=M(t.match(Q)[0])}));var ni=At("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),O("dayOfYear","DDD"),F("dayOfYear",4),lt("DDD",et),lt("DDDD",X),ft(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=M(t)})),W("m",["mm",2],0,"minute"),O("minute","m"),F("minute",14),lt("m",Q),lt("mm",Q,G),ft(["m","mm"],4);var si=At("Minutes",!1);W("s",["ss",2],0,"second"),O("second","s"),F("second",15),lt("s",Q),lt("ss",Q,G),ft(["s","ss"],5);var ri,oi=At("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),O("millisecond","ms"),F("millisecond",16),lt("S",et,V),lt("SS",et,G),lt("SSS",et,X),ri="SSSS";ri.length<=9;ri+="S")lt(ri,st);function ai(t,e){e[6]=M(1e3*("0."+t))}for(ri="S";ri.length<=9;ri+="S")ft(ri,ai);var ci=At("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ui=w.prototype;function li(t){return t}ui.add=Ue,ui.calendar=function(t,e){var i=t||Ce(),n=Pe(i,this).startOf("day"),r=s.calendarFormat(this,n)||"sameElse",o=e&&(L(e[r])?e[r].call(this,i):e[r]);return this.format(o||this.localeData().calendar(r,this,Ce(i)))},ui.clone=function(){return new w(this)},ui.diff=function(t,e,i){var n,s,r;if(!this.isValid())return NaN;if(!(n=Pe(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=P(e)){case"year":r=Ve(this,n)/12;break;case"month":r=Ve(this,n);break;case"quarter":r=Ve(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return i?r:v(r)},ui.endOf=function(t){var e;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Ze:Qe;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Je(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Je(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Je(e,1e3)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},ui.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},ui.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Ce(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.fromNow=function(t){return this.from(Ce(),t)},ui.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Ce(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.toNow=function(t){return this.to(Ce(),t)},ui.get=function(t){return L(this[t=P(t)])?this[t]():this},ui.invalidAt=function(){return f(this).overflow},ui.isAfter=function(t,e){var i=A(t)?t:Ce(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ui.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},ui.toJSON=function(){return this.isValid()?this.toISOString():null},ui.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ui.unix=function(){return Math.floor(this.valueOf()/1e3)},ui.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ui.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ui.year=wt,ui.isLeapYear=function(){return bt(this.year())},ui.weekYear=function(t){return ei.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ui.isoWeekYear=function(t){return ei.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ui.quarter=ui.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ui.month=Lt,ui.daysInMonth=function(){return Ct(this.year(),this.month())},ui.week=ui.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ui.isoWeek=ui.isoWeeks=function(t){var e=Ft(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ui.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},ui.isoWeeksInYear=function(){return Bt(this.year(),1,4)},ui.date=ni,ui.day=ui.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ui.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ui.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ui.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ui.hour=ui.hours=Zt,ui.minute=ui.minutes=si,ui.second=ui.seconds=oi,ui.millisecond=ui.milliseconds=ci,ui.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Oe(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ie(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?We(this,He(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ie(this)},ui.utc=function(t){return this.utcOffset(0,t)},ui.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ie(this),"m")),this},ui.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Oe(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ui.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ce(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ui.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ui.isLocal=function(){return!!this.isValid()&&!this._isUTC},ui.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ui.isUtc=Ne,ui.isUTC=Ne,ui.zoneAbbr=function(){return this._isUTC?"UTC":""},ui.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ui.dates=T("dates accessor is deprecated. Use date instead.",ni),ui.months=T("months accessor is deprecated. Use month instead",Lt),ui.years=T("years accessor is deprecated. Use year instead",wt),ui.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),ui.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(b(t,this),(t=ve(t))._a){var e=t._isUTC?p(t._a):Ce(t._a);this._isDSTShifted=this.isValid()&&C(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var hi=D.prototype;function di(t,e,i,n){var s=ae(),r=p().set(n,e);return s[i](r,t)}function pi(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return di(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=di(t,n,i,"month");return s}function fi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,r=ae(),o=t?r._week.dow:0;if(null!=i)return di(e,(i+o)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=di(e,(s+o)%7,n,"day");return a}hi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return L(n)?n.call(e,i):n},hi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},hi.invalidDate=function(){return this._invalidDate},hi.ordinal=function(t){return this._ordinal.replace("%d",t)},hi.preparse=li,hi.postformat=li,hi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return L(s)?s(t,e,i,n):s.replace(/%d/i,t)},hi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return L(i)?i(e):i.replace(/%s/i,e)},hi.set=function(t){var e,i;for(i in t)L(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hi.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||St).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},hi.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[St.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hi.monthsParse=function(t,e,i){var n,s,r;if(this._monthsParseExact)return Et.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},hi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Rt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Dt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Rt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=zt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hi.week=function(t){return Ft(t,this._week.dow,this._week.doy).week},hi.firstDayOfYear=function(){return this._week.doy},hi.firstDayOfWeek=function(){return this._week.dow},hi.weekdays=function(t,e){var i=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ht(i,this._week.dow):t?i[t.day()]:i},hi.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},hi.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},hi.weekdaysParse=function(t,e,i){var n,s,r;if(this._weekdaysParseExact)return Wt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},hi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===M(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=T("moment.lang is deprecated. Use moment.locale instead.",re),s.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ae);var gi=Math.abs;function mi(t,e,i,n){var s=He(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function _i(t){return t<0?Math.floor(t):Math.ceil(t)}function bi(t){return 4800*t/146097}function yi(t){return 146097*t/4800}function wi(t){return function(){return this.as(t)}}var Ai=wi("ms"),vi=wi("s"),Mi=wi("m"),Ci=wi("h"),Si=wi("d"),Ti=wi("w"),ki=wi("M"),Ei=wi("Q"),xi=wi("y");function Li(t){return function(){return this.isValid()?this._data[t]:NaN}}var zi=Li("milliseconds"),Di=Li("seconds"),Ri=Li("minutes"),Oi=Li("hours"),Pi=Li("days"),Ii=Li("months"),Ni=Li("years"),Fi=Math.round,Bi={ss:44,s:45,m:45,h:22,d:26,M:11};function Hi(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var qi=Math.abs;function ji(t){return(t>0)-(t<0)||+t}function Yi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=qi(this._milliseconds)/1e3,n=qi(this._days),s=qi(this._months);t=v(i/60),e=v(t/60),i%=60,t%=60;var r=v(s/12),o=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=ji(this._months)!==ji(h)?"-":"",f=ji(this._days)!==ji(h)?"-":"",g=ji(this._milliseconds)!==ji(h)?"-":"";return d+"P"+(r?p+r+"Y":"")+(o?p+o+"M":"")+(a?f+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Wi=xe.prototype;return Wi.isValid=function(){return this._isValid},Wi.abs=function(){var t=this._data;return this._milliseconds=gi(this._milliseconds),this._days=gi(this._days),this._months=gi(this._months),t.milliseconds=gi(t.milliseconds),t.seconds=gi(t.seconds),t.minutes=gi(t.minutes),t.hours=gi(t.hours),t.months=gi(t.months),t.years=gi(t.years),this},Wi.add=function(t,e){return mi(this,t,e,1)},Wi.subtract=function(t,e){return mi(this,t,e,-1)},Wi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(i=this._months+bi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(yi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Wi.asMilliseconds=Ai,Wi.asSeconds=vi,Wi.asMinutes=Mi,Wi.asHours=Ci,Wi.asDays=Si,Wi.asWeeks=Ti,Wi.asMonths=ki,Wi.asQuarters=Ei,Wi.asYears=xi,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12):NaN},Wi._bubble=function(){var t,e,i,n,s,r=this._milliseconds,o=this._days,a=this._months,c=this._data;return r>=0&&o>=0&&a>=0||r<=0&&o<=0&&a<=0||(r+=864e5*_i(yi(a)+o),o=0,a=0),c.milliseconds=r%1e3,t=v(r/1e3),c.seconds=t%60,e=v(t/60),c.minutes=e%60,i=v(e/60),c.hours=i%24,o+=v(i/24),a+=s=v(bi(o)),o-=_i(yi(s)),n=v(a/12),a%=12,c.days=o,c.months=a,c.years=n,this},Wi.clone=function(){return He(this)},Wi.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},Wi.milliseconds=zi,Wi.seconds=Di,Wi.minutes=Ri,Wi.hours=Oi,Wi.days=Pi,Wi.weeks=function(){return v(this.days()/7)},Wi.months=Ii,Wi.years=Ni,Wi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=He(t).abs(),s=Fi(n.as("s")),r=Fi(n.as("m")),o=Fi(n.as("h")),a=Fi(n.as("d")),c=Fi(n.as("M")),u=Fi(n.as("y")),l=s<=Bi.ss&&["s",s]||s0,l[4]=i,Hi.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Wi.toISOString=Yi,Wi.toString=Yi,Wi.toJSON=Yi,Wi.locale=Ge,Wi.localeData=$e,Wi.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yi),Wi.lang=Xe,W("X",0,0,"unix"),W("x",0,0,"valueOf"),lt("x",rt),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),ft("x",(function(t,e,i){i._d=new Date(M(t))})),s.version="2.24.0",e=Ce,s.fn=ui,s.min=function(){return ke("isBefore",[].slice.call(arguments,0))},s.max=function(){return ke("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Ce(1e3*t)},s.months=function(t,e){return pi(t,e,"months")},s.isDate=u,s.locale=re,s.invalid=m,s.duration=He,s.isMoment=A,s.weekdays=function(t,e,i){return fi(t,e,i,"weekdays")},s.parseZone=function(){return Ce.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=Le,s.monthsShort=function(t,e){return pi(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return fi(t,e,i,"weekdaysMin")},s.defineLocale=oe,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new D(e=z(s,e))).parentLocale=ee[t],ee[t]=i,re(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return k(ee)},s.weekdaysShort=function(t,e,i){return fi(t,e,i,"weekdaysShort")},s.normalizeUnits=P,s.relativeTimeRounding=function(t){return void 0===t?Fi:"function"==typeof t&&(Fi=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Bi[t]&&(void 0===e?Bi[t]:(Bi[t]=e,"s"===t&&(Bi.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=ui,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()}).call(this,i("aYSr")(t))},xBDH:function(t,e,i){!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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i("wgY5"))},"xD/0":function(t,e,i){!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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i("wgY5"))},yKzn:function(t,e,i){!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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},zUnb:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},c=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const l=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof l?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,i)}}[p](){return this}static create(t,e,i){const n=new f(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,i,s){let r;super(),this._parentSubscriber=t;let o=this;n(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==a&&(o=Object.create(e),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=r;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(t,e,i){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,s=function(t,e,i){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||i?new f(t,e,i):new f(a)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof f?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=y(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=y(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function y(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const w=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class A extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class v extends f{constructor(t){super(t),this.destination=t}}let M=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new v(this)}lift(t){const e=new C(this,this);return e.operator=t,e}next(t){if(this.closed)throw new w;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew C(t,e),t})();class C extends M{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function S(t){return t&&"function"==typeof t.schedule}class T extends f{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const k=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function z(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const D=t=>{if(t&&"function"==typeof t[m])return n=t,t=>{const e=n[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(L(t))return k(t);if(z(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[x])return e=t,t=>{const i=e[x]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,n};function R(t,e,i,n,s=new T(t,i,n)){if(!s.closed)return e instanceof b?e.subscribe(s):D(e)(s)}class O extends f{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function P(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new I(t,e))}}class I{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new N(t,this.project,this.thisArg))}}class N extends f{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function F(t,e){return new b(i=>{const n=new h;let s=0;return n.add(e.schedule((function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()}))),n})}function B(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new b(i=>{const n=new h;return n.add(e.schedule(()=>{const s=t[m]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(z(t))return function(t,e){return new b(i=>{const n=new h;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(L(t))return F(t,e);if(function(t){return t&&"function"==typeof t[x]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(i=>{const n=new h;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[x](),n.add(e.schedule((function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())})))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(D(t))}function H(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(H((i,n)=>B(t(i,n)).pipe(P((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new q(t,i)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends O{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Y(t=Number.POSITIVE_INFINITY){return H(_,t)}function W(t,e){return e?F(t,e):new b(k(t))}function U(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return S(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof b?t[0]:Y(e)(W(t,i))}function K(){return function(t){return t.lift(new V(t))}}class V{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new G(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class G extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class X extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return K()(this)}}const $=(()=>{const t=X.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends v{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Q(){return new M}function Z(){return t=>{return K()((e=Q,function(t){let i;i="function"==typeof e?e:function(){return e};const n=Object.create(t,$);return n.source=t,n.subjectFactory=i,n})(t));var e}}function tt(t){return{toString:t}.toString()}function et(t,e,i){return tt(()=>{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=et("Inject",t=>({token:t})),nt=et("Optional"),st=et("Self"),rt=et("SkipSelf");var ot=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function at(t){for(let e in t)if(t[e]===at)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function lt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ht(t){return dt(t,t[ft])||dt(t,t[_t])}function dt(t,e){return e&&e.token===t?e:null}function pt(t){return t&&(t.hasOwnProperty(gt)||t.hasOwnProperty(bt))?t[gt]:null}const ft=at({\u0275prov:at}),gt=at({\u0275inj:at}),mt=at({\u0275provFallback:at}),_t=at({ngInjectableDef:at}),bt=at({ngInjectorDef:at});function yt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(yt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const At=at({__forward_ref__:at});function vt(t){return t.__forward_ref__=vt,t.toString=function(){return yt(this())},t}function Mt(t){return Ct(t)?t():t}function Ct(t){return"function"==typeof t&&t.hasOwnProperty(At)&&t.__forward_ref__===vt}const St="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,xt=St||Et||Tt||kt,Lt=at({\u0275cmp:at}),zt=at({\u0275dir:at}),Dt=at({\u0275pipe:at}),Rt=at({\u0275mod:at}),Ot=at({\u0275loc:at}),Pt=at({\u0275fac:at}),It=at({__NG_ELEMENT_ID__:at});class Nt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Ft=new Nt("INJECTOR",-1),Bt={},Ht=/\n/gm,qt=at({provide:String,useValue:at});let jt,Yt=void 0;function Wt(t){const e=Yt;return Yt=t,e}function Ut(t){const e=jt;return jt=t,e}function Kt(t,e=ot.Default){if(void 0===Yt)throw new Error("inject() must be called from an injection context");return null===Yt?Xt(t,void 0,e):Yt.get(t,e&ot.Optional?null:void 0,e)}function Vt(t,e=ot.Default){return(jt||Kt)(Mt(t),e)}const Gt=Vt;function Xt(t,e,i){const n=ht(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&ot.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${yt(t)}]`)}function $t(t){const e=[];for(let i=0;iArray.isArray(t)?te(t,e):e(t))}function ee(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ie(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ne(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function re(t,e){const i=oe(t,e);if(i>=0)return t[1|i]}function oe(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}var ae=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ce=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const ue={},le=[];let he=0;function de(t){return tt(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===ae.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||le,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||le,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=he++,i.inputs=_e(t.inputs,e),i.outputs=_e(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(pe):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(fe):null,i})}function pe(t){return we(t)||function(t){return t[zt]||null}(t)}function fe(t){return function(t){return t[Dt]||null}(t)}const ge={};function me(t){const e={type:t.type,bootstrap:t.bootstrap||le,declarations:t.declarations||le,imports:t.imports||le,exports:t.exports||le,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{ge[t.id]=t.type}),e}function _e(t,e){if(null==t)return ue;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const be=de;function ye(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Lt]||null}function Ae(t,e){return t.hasOwnProperty(Pt)?t[Pt]:null}function ve(t,e){const i=t[Rt]||null;if(!i&&!0===e)throw new Error(`Type ${yt(t)} does not have '\u0275mod' property.`);return i}function Me(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ce(t){return Array.isArray(t)&&!0===t[1]}function Se(t){return 0!=(8&t.flags)}function Te(t){return 2==(2&t.flags)}function ke(t){return 1==(1&t.flags)}function Ee(t){return null!==t.template}function xe(t){return 0!=(512&t[2])}class Le{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ze(){return De}function De(t){return t.type.prototype.ngOnChanges&&(t.setInput=Oe),Re}function Re(){const t=Pe(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===ue)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Oe(t,e,i,n){const s=Pe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ue,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[i],c=o[a];r[a]=new Le(c&&c.currentValue,e,o===ue),t[n]=e}function Pe(t){return t.__ngSimpleChanges__||null}ze.ngInherit=!0;let Ie=void 0;function Ne(){return void 0!==Ie?Ie:"undefined"!=typeof document?document:void 0}function Fe(t){return!!t.listen}const Be={createRenderer:(t,e)=>Ne()};function He(t){for(;Array.isArray(t);)t=t[0];return t}function qe(t,e){return He(e[t+20])}function je(t,e){return He(e[t.index])}function Ye(t,e){return t.data[e+20]}function We(t,e){return t[e+20]}function Ue(t,e){const i=e[t];return Me(i)?i:i[0]}function Ke(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ve(t){return 4==(4&t[2])}function Ge(t){return 128==(128&t[2])}function Xe(t,e){return null===t||null==e?null:t[e]}function $e(t){t[18]=0}function Je(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Qe={lFrame:Ai(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ze(){return Qe.bindingsEnabled}function ti(){return Qe.lFrame.lView}function ei(){return Qe.lFrame.tView}function ii(t){Qe.lFrame.contextLView=t}function ni(){return Qe.lFrame.currentTNode}function si(t,e){Qe.lFrame.currentTNode=t,Qe.lFrame.isParent=e}function ri(){return Qe.lFrame.isParent}function oi(){Qe.lFrame.isParent=!1}function ai(){return Qe.checkNoChangesMode}function ci(t){Qe.checkNoChangesMode=t}function ui(){const t=Qe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function li(){return Qe.lFrame.bindingIndex}function hi(){return Qe.lFrame.bindingIndex++}function di(t){const e=Qe.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function pi(t,e){const i=Qe.lFrame;i.bindingIndex=i.bindingRootIndex=t,fi(e)}function fi(t){Qe.lFrame.currentDirectiveIndex=t}function gi(t){const e=Qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function mi(){return Qe.lFrame.currentQueryIndex}function _i(t){Qe.lFrame.currentQueryIndex=t}function bi(t,e){const i=wi();Qe.lFrame=i,i.currentTNode=e,i.lView=t}function yi(t){const e=wi(),i=t[1];Qe.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex}function wi(){const t=Qe.lFrame,e=null===t?null:t.child;return null===e?Ai(t):e}function Ai(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function vi(){const t=Qe.lFrame;return Qe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Mi=vi;function Ci(){const t=vi();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Si(){return Qe.lFrame.selectedIndex}function Ti(t){Qe.lFrame.selectedIndex=t}function ki(){const t=Qe.lFrame;return Ye(t.tView,t.selectedIndex)}function Ei(){Qe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function xi(){Qe.lFrame.currentNamespace=null}function Li(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[o]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class Ii{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ni(t,e,i){const n=Fe(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}function Ui(t){return"string"==typeof t?t:null==t?"":""+t}function Ki(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ui(t)}const Vi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(xt))();function Gi(t){return{name:"window",target:t.ownerDocument.defaultView}}function Xi(t){return{name:"body",target:t.ownerDocument.body}}function $i(t){return t instanceof Function?t():t}let Ji=!0;function Qi(t){const e=Ji;return Ji=t,e}let Zi=0;function tn(t,e){const i=nn(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,en(n.data,t),en(e,null),en(n.blueprint,null));const s=sn(t,e),r=t.injectorIndex;if(ji(s)){const t=Yi(s),i=Wi(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function en(t,e){t.push(0,0,0,0,0,0,0,0,e)}function nn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function sn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function rn(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(It)&&(n=i[It]),null==n&&(n=i[It]=Zi++);const s=255&n,r=1<0?255&e:e}(i);if("function"==typeof s){bi(e,t);try{const t=s();if(null!=t||n&ot.Optional)return t;throw new Error(`No provider for ${Ki(i)}!`)}finally{Mi()}}else if("number"==typeof s){if(-1===s)return new pn(t,e);let r=null,o=nn(t,e),a=-1,c=n&ot.Host?e[16][6]:null;for((-1===o||n&ot.SkipSelf)&&(a=-1===o?sn(t,e):e[o+8],-1!==a&&dn(n,!1)?(r=e[1],o=Yi(a),e=Wi(a,e)):o=-1);-1!==o;){const t=e[1];if(hn(s,o,t.data)){const t=cn(o,e,i,r,n,c);if(t!==an)return t}a=e[o+8],-1!==a&&dn(n,e[1].data[o+8]===c)&&hn(s,o,e)?(r=t,o=Yi(a),e=Wi(a,e)):o=-1}}}if(n&ot.Optional&&void 0===s&&(s=null),0==(n&(ot.Self|ot.Host))){const t=e[9],r=Ut(void 0);try{return t?t.get(i,s,n&ot.Optional):Xt(i,s,n&ot.Optional)}finally{Ut(r)}}if(n&ot.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Ki(i)}]`)}const an={};function cn(t,e,i,n,s,r){const o=e[1],a=o.data[t+8],c=un(a,o,i,null==n?Te(a)&&Ji:n!=o&&2===a.type,s&ot.Host&&r===a);return null!==c?ln(e,o,c,a):an}function un(t,e,i,n,s){const r=t.providerIndexes,o=e.data,a=1048575&r,c=t.directiveStart,u=r>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=o[c];if(t&&Ee(t)&&t.type===i)return c}return null}function ln(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof Ii){const o=s;if(o.resolving)throw new Error("Circular dep for "+Ki(r[i]));const a=Qi(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?Ut(o.injectImpl):null;bi(t,n);try{s=t[i]=o.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=De(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==c&&Ut(c),Qi(a),o.resolving=!1,Mi()}}return s}function hn(t,e,i){const n=64&t,s=32&t;let r;return r=128&t?n?s?i[e+7]:i[e+6]:s?i[e+5]:i[e+4]:n?s?i[e+3]:i[e+2]:s?i[e+1]:i[e],!!(r&1<{const t=fn(Mt(e));return t?t():null};let i=Ae(e);if(null===i){const t=pt(e);i=t&&t.factory}return i||null}function gn(t){return tt(()=>{const e=t.prototype.constructor,i=e[Pt]||fn(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[Pt]||fn(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function mn(t){return t.ngDebugContext}function _n(t){return t.ngOriginalError}function bn(t,...e){t.error(...e)}class yn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||bn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?mn(t)?mn(t):this._findContext(_n(t)):null}_findOriginalError(t){let e=_n(t);for(;e&&_n(e);)e=_n(e);return e}}class wn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class An extends wn{getTypeName(){return"HTML"}}class vn extends wn{getTypeName(){return"Style"}}class Mn extends wn{getTypeName(){return"Script"}}class Cn extends wn{getTypeName(){return"URL"}}class Sn extends wn{getTypeName(){return"ResourceURL"}}function Tn(t){return t instanceof wn?t.changingThisBreaksApplicationSecurity:t}function kn(t,e){const i=En(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see http://g.co/ng/security#xss)`)}return i===e}function En(t){return t instanceof wn&&t.getTypeName()||null}let xn=!0,Ln=!1;function zn(){return Ln=!0,xn}class Dn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Rn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const i=this.inertDocument.createElement("body");return i.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0In(t.trim())).join(", ")),this.buf.push(" ",e,'="',Jn(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Yn.hasOwnProperty(e)&&!Bn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Jn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Xn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$n=/([^\#-~ |!])/g;function Jn(t){return t.replace(/&/g,"&").replace(Xn,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace($n,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Qn;function Zn(t,e){let i=null;try{Qn=Qn||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Dn:new Rn(t)}(t);let n=e?String(e):"";i=Qn.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=Qn.getInertBodyElement(n)}while(n!==r);const o=new Gn,a=o.sanitizeChildren(ts(i)||i);return zn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(i){const t=ts(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ts(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var es=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function is(t){const e=ss();return e?e.sanitize(es.HTML,t)||"":kn(t,"HTML")?Tn(t):Zn(Ne(),Ui(t))}function ns(t){const e=ss();return e?e.sanitize(es.URL,t)||"":kn(t,"URL")?Tn(t):In(Ui(t))}function ss(){const t=ti();return t&&t[12]}function rs(t,e){t.__ngContext__=e}function os(t,e,i){let n=t.length;for(;;){const s=t.indexOf(e,i);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const i=e.length;if(s+i===n||t.charCodeAt(s+i)<=32)return s}i=s+1}}function as(t,e,i){let n=0;for(;nr?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==os(e,u,0)||2&n&&u!==t){if(hs(n))return!1;o=!0}}}}else{if(!o&&!hs(n)&&!hs(c))return!1;if(o&&hs(c))continue;o=!1,n=c|1&n}}return hs(n)||o}function hs(t){return 0==(1&t)}function ds(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+o:4&n&&(s+=" "+o);else""===s||hs(o)||(e+=gs(r,s),s=""),n=o,r=r||!hs(n);i++}return""!==s&&(e+=gs(r,s)),e}const _s={};function bs(t){const e=t[3];return Ce(e)?e[3]:e}function ys(t){return As(t[13])}function ws(t){return As(t[4])}function As(t){for(;null!==t&&!Ce(t);)t=t[4];return t}function vs(t){Ms(ei(),ti(),Si()+t,ai())}function Ms(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&zi(e,n,i)}else{const n=t.preOrderHooks;null!==n&&Di(e,n,0,i)}Ti(i)}function Cs(t,e){return t<<17|e<<2}function Ss(t){return t>>17&32767}function Ts(t){return 2|t}function ks(t){return(131068&t)>>2}function Es(t,e){return-131069&t|e<<2}function xs(t){return 1|t}function Ls(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&Ms(t,e,0,ai()),i(n,s)}finally{Ti(r)}}function Fs(t,e,i){if(Se(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0&&function t(e){for(let n=ys(e);null!==n;n=ws(n))for(let e=10;e0&&t(i)}const i=e[1].components;if(null!==i)for(let n=0;n0&&t(s)}}(i)}}function or(t,e){const i=Ue(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function pr(t){return t[7]||(t[7]=[])}function fr(t,e,i){return(null===t||Ee(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function gr(t,e){const i=t[9],n=i?i.get(yn,null):null;n&&n.handleError(e)}function mr(t,e,i,n,s){for(let r=0;r0&&(t[i-1][4]=n[4]);const o=ie(t,10+e);zr(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Ar(t,e){if(!(256&e[2])){const i=e[11];Fe(i)&&i.destroyNode&&zr(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return vr(t[1],t);for(;e;){let i=null;if(Me(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)Me(e)&&vr(e[1],e),e=e[3];null===e&&(e=t),Me(e)&&vr(e[1],e),i=e&&e[4]}e=i}}(e)}}function vr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?t[a]():t[-a].unsubscribe(),n+=2}else i[n].call(t[i[n+1]]);e[7]=null}}(t,e),1===e[1].type&&Fe(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Ce(e[3])){i!==e[3]&&yr(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function Mr(t,e,i){let n=e.parent;for(;null!=n&&(3===n.type||4===n.type);)n=(e=n).parent;if(null===n)return i[0];if(e&&4===e.type&&4&e.flags)return je(e,i).parentNode;if(2&n.flags){const e=t.data,i=e[e[n.index].directiveStart].encapsulation;if(i!==ce.ShadowDom&&i!==ce.Native)return null}return je(n,i)}function Cr(t,e,i,n){Fe(t)?t.insertBefore(e,i,n):e.insertBefore(i,n,!0)}function Sr(t,e,i){Fe(t)?t.appendChild(e,i):e.appendChild(i)}function Tr(t,e,i,n){null!==n?Cr(t,e,i,n):Sr(t,e,i)}function kr(t,e){return Fe(t)?t.parentNode(e):e.parentNode}function Er(t,e){return 3===t.type||4===t.type?je(t,e):null}function xr(t,e,i,n){const s=Mr(t,n,e);if(null!=s){const t=e[11],r=Er(n.parent||e[6],e);if(Array.isArray(i))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ar(this._lView[1],this._lView)}onDestroy(t){Ys(this._lView[1],this._lView,null,t)}markForCheck(){cr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ur(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){ci(!0);try{ur(t,e,i)}finally{ci(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,zr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ir extends Pr{constructor(t){super(t),this._view=t}detectChanges(){lr(this._view)}checkNoChanges(){!function(t){ci(!0);try{lr(t)}finally{ci(!1)}}(this._view)}get context(){return null}}let Nr,Fr,Br;function Hr(t,e,i){return Nr||(Nr=class extends t{}),new Nr(je(e,i))}function qr(t,e,i,n){return Fr||(Fr=class extends t{constructor(t,e,i){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ds(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationView[this._declarationTContainer.index];const n=this._declarationView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Os(e,i,t),new Pr(i)}}),0===i.type?new Fr(n,i,Hr(e,i,n)):null}function jr(t,e,i,n){let s;Br||(Br=class extends t{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostView=i}get element(){return Hr(e,this._hostTNode,this._hostView)}get injector(){return new pn(this._hostTNode,this._hostView)}get parentInjector(){const t=sn(this._hostTNode,this._hostView);if(ji(t)){const e=Wi(t,this._hostView),i=Yi(t);return new pn(e[1].data[i+8],e)}return new pn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Qt,null);t&&(s=t)}const o=t.create(r,n,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ce(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new Br(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=10+n,r=i.length;n>0&&(i[s-1][4]=e),n{class t{}return t.__NG_ELEMENT_ID__=()=>Ur(),t})();const Ur=Yr,Kr=Function,Vr=new Nt("Set Injector scope."),Gr={},Xr={},$r=[];let Jr=void 0;function Qr(){return void 0===Jr&&(Jr=new Jt),Jr}function Zr(t,e=null,i=null,n){return new to(t,i,e||Qr(),n)}class to{constructor(t,e,i,n=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&te(e,i=>this.processProvider(i,t,e)),te([t],t=>this.processInjectorType(t,[],s)),this.records.set(Ft,no(void 0,this));const r=this.records.get(Vr);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:yt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Bt,i=ot.Default){this.assertNotDestroyed();const n=Wt(this);try{if(!(i&ot.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Nt)&&ht(t);e=i&&this.injectableDefInScope(i)?no(eo(t),Gr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&ot.Self?Qr():this.parent).get(t,e=i&ot.Optional&&e===Bt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(yt(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=yt(e);if(Array.isArray(e))s=e.map(yt).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):yt(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(Ht,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Wt(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(yt(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=Mt(t)))return!1;let n=pt(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==i.indexOf(r);if(void 0!==s&&(n=pt(s)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(r);try{te(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||$r))}}this.injectorDefTypes.add(r),this.records.set(r,no(n.factory,Gr));const a=n.providers;if(null!=a&&!o){const e=t;te(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=ro(t=Mt(t))?t:Mt(t&&t.provide);const s=function(t,e,i){return so(t)?no(void 0,t.useValue):no(io(t),Gr)}(t);if(ro(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=no(void 0,Gr,!0),e.factory=()=>$t(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===Gr&&(e.value=Xr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function eo(t){const e=ht(t),i=null!==e?e.factory:Ae(t);if(null!==i)return i;const n=pt(t);if(null!==n)return n.factory;if(t instanceof Nt)throw new Error(`Token ${yt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=ne(e,"?");throw new Error(`Can't resolve all parameters for ${yt(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[ft]||t[_t]||t[mt]&&t[mt]());if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function io(t,e,i){let n=void 0;if(ro(t)){const e=Mt(t);return Ae(e)||eo(e)}if(so(t))n=()=>Mt(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...$t(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Vt(Mt(t.useExisting));else{const e=Mt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ae(e)||eo(e);n=()=>new e(...$t(t.deps))}var s;return n}function no(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function so(t){return null!==t&&"object"==typeof t&&qt in t}function ro(t){return"function"==typeof t}const oo=function(t,e,i){return function(t,e=null,i=null,n){const s=Zr(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let ao=(()=>{class t{static create(t,e){return Array.isArray(t)?oo(t,e,""):oo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Bt,t.NULL=new Jt,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>Vt(Ft)}),t.__NG_ELEMENT_ID__=-1,t})();const co=new Nt("AnalyzeForEntryComponents");function uo(t,e,i){let n=i?t.styles:null,s=i?t.classes:null,r=0;if(null!==e)for(let o=0;o=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Hi(s.hostAttrs,i=Hi(i,s.hostAttrs))}}(n)}function po(t){return t===ue?{}:t===le?[]:t}function fo(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function go(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function mo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let _o=null;function bo(){if(!_o){const t=xt.Symbol;if(t&&t.iterator)_o=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(He(t[n.index])).target:n.index;if(Fe(i)){let o=null;if(!a&&c&&(o=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=Vo(n,e,r,!1);const t=i.listen(p.name||f,s,r);l.push(r,t),u&&u.push(s,m,g,g+1)}}else r=Vo(n,e,r,!0),f.addEventListener(s,r,o),l.push(r),u&&u.push(s,m,g,o)}const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Qe.lFrame.contextLView))[8]}(t)}function Xo(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ra(t){return t.substring(sa.key,sa.keyEnd)}function oa(t,e){const i=sa.textEnd;return i===e?-1:(e=sa.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,sa.key=e,i),aa(t,e,i))}function aa(t,e,i){for(;e=0;i=oa(e,i))se(t,ra(e),!0)}function da(t,e,i,n){const s=ti(),r=ei(),o=di(2);r.firstUpdatePass&&ga(r,t,o,n),e!==_s&&Mo(s,o,e)&&ba(r,r.data[Si()+20],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=yt(Tn(t)))),t}(e,i),n,o)}function pa(t,e,i,n){const s=ei(),r=di(2);s.firstUpdatePass&&ga(s,null,r,n);const o=ti();if(i!==_s&&Mo(o,r,i)){const a=s.data[Si()+20];if(Aa(a,n)&&!fa(s,r)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=wt(t,i||"")),Ro(s,a,o,i,n)}else!function(t,e,i,n,s,r,o,a){s===_s&&(s=ea);let c=0,u=0,l=0=t.expandoStartIndex}function ga(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[Si()+20],o=fa(t,i);Aa(r,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const s=gi(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=_a(i=ma(null,t,e,i,n),e.attrs,n),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(i=ma(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==ks(n))return t[Ss(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=ma(null,t,e,i[1],n),i=_a(i,e.attrs,n),function(t,e,i,n){t[Ss(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=Ss(t[a+1]);t[n+1]=Cs(e,a),0!==e&&(t[e+1]=Es(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=Cs(a,0),0!==a&&(t[a+1]=Es(t[a+1],n)),a=n;else t[n+1]=Cs(c,0),0===a?a=n:t[c+1]=Es(t[c+1],n),c=n;l&&(t[n+1]=Ts(t[n+1])),ia(t,u,n,!0),ia(t,u,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&oe(r,e)>=0&&(i[n+1]=xs(i[n+1]))}(e,u,t,n,r),o=Cs(a,c),r?e.classBindings=o:e.styleBindings=o}(s,r,e,i,o,n)}}function ma(t,e,i,n,s){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),c=r?e[1]:e,u=null===c;let l=i[s+1];l===_s&&(l=u?ea:void 0);let h=u?re(l,n):c===n?l:void 0;if(r&&!wa(h)&&(h=re(e,n)),wa(h)&&(a=h,o))return a;const d=t[s+1];s=o?Ss(d):ks(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=re(t,n))}return a}function wa(t){return void 0!==t}function Aa(t,e){return 0!=(t.flags&(e?16:32))}function va(t,e=""){const i=ti(),n=ei(),s=t+20,r=n.firstCreatePass?Rs(n,t,2,null,null):n.data[s],o=i[s]=function(t,e){return Fe(e)?e.createText(t):e.createTextNode(t)}(e,i[11]);xr(n,i,o,r),si(r,!1)}function Ma(t){return Ca("",t,""),Ma}function Ca(t,e,i){const n=ti(),s=To(n,t,e,i);return s!==_s&&_r(n,Si(),s),Ca}function Sa(t,e,i,n,s){const r=ti(),o=ko(r,t,e,i,n,s);return o!==_s&&_r(r,Si(),o),Sa}function Ta(t,e,i){pa(se,ha,To(ti(),t,e,i),!0)}function ka(t,e,i){const n=ti();return Mo(n,hi(),e)&&Us(ei(),ki(),n,t,e,n[11],i,!0),ka}function Ea(t,e,i){const n=ti();if(Mo(n,hi(),e)){const s=ei(),r=ki();Us(s,r,n,t,e,fr(gi(s.data),r,n),i,!0)}return Ea}function xa(t,e,i,n,s){if(t=Mt(t),Array.isArray(t))for(let r=0;r>20;if(ro(t)||!t.multi){const n=new Ii(c,s,Lo),p=Da(a,e,s?l:l+d,h);-1===p?(rn(tn(u,o),r,a),La(r,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=Da(a,e,l+d,h),f=Da(a,e,l,l+d),g=p>=0&&i[p],m=f>=0&&i[f];if(s&&!m||!s&&!g){rn(tn(u,o),r,a);const l=function(t,e,i,n,s){const r=new Ii(t,i,Lo);return r.multi=[],r.index=e,r.componentProviders=0,za(r,s,n&&!i),r}(s?Oa:Ra,i.length,s,n,c);!s&&m&&(i[f].providerFactory=l),La(r,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),o.push(l)}else La(r,t,p>-1?p:f,za(i[s?f:p],c,!s&&n));!s&&n&&m&&i[f].componentProviders++}}}function La(t,e,i,n){const s=ro(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,r]):o[t+1].push(n,r)}else o.push(i,r)}}}function za(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Da(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=ei();if(n.firstCreatePass){const s=Ee(t);xa(i,n.data,n.blueprint,s,!0),xa(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class Na{}class Fa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${yt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ba=(()=>{class t{}return t.NULL=new Fa,t})(),Ha=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>qa(t),t})();const qa=function(t){return Hr(t,ni(),ti())};class ja{}var Ya=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ua(),t})();const Ua=function(){const t=ti(),e=Ue(ni().index,t);return function(t){const e=t[11];if(Fe(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Me(e)?e:t)};let Ka=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class Va{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ga=new Va("10.1.5");class Xa{constructor(){}supports(t){return wo(t)}create(t){return new Ja(t)}}const $a=(t,e)=>e;class Ja{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||$a}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):t=this._addAfter(new Qa(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new tc),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new tc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Qa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Za{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class tc{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Za,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ec(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new sc(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class sc{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let rc=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,i)},deps:[[t,new rt,new nt]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new Xa])}),t})(),oc=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,i)},deps:[[t,new rt,new nt]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new ic])}),t})();const ac=[new ic],cc=new rc([new Xa]),uc=new oc(ac);let lc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>hc(t,Ha),t})();const hc=function(t,e){return qr(t,e,ni(),ti())};let dc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>pc(t,Ha),t})();const pc=function(t,e){return jr(t,e,ni(),ti())},fc={};class gc extends Ba{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new bc(e,this.ngModule)}}function mc(t){const e=[];for(let i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}const _c=new Nt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Vi});class bc extends Na{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ms).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return mc(this.componentDef.inputs)}get outputs(){return mc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,fc,s);return r!==fc||n===fc?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(ja,Be),o=s.get(Ka,null),a=r.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(Fe(t))return t.selectRootElement(e,i===ce.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):zs(c,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:Vi,clean:dr,playerHandler:null,flags:0},d=js(0,null,null,1,0,null,null,null,null,null),p=Ds(null,d,h,l,null,null,r,a,o,s);let f,g;yi(p);try{const t=function(t,e,i,n,s,r){const o=i[1];i[20]=t;const a=Rs(o,0,2,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(uo(a,c,!0),null!==t&&(Ni(s,t,c),null!==a.classes&&Or(s,t,a.classes),null!==a.styles&&Rr(s,t,a.styles)));const u=n.createRenderer(t,e),l=Ds(i,qs(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return o.firstCreatePass&&(rn(tn(a,i),o,e.type),Js(o,a),Zs(a,i.length,1)),ar(i,l),i[20]=l}(u,this.componentDef,p,r,a);if(u)if(i)Ni(a,u,["ng-version",Ga.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&Or(a,u,e.join(" "))}if(g=Ye(d,0),void 0!==e){const t=g.projection=[];for(let i=0;it(o,e)),e.contentQueries&&e.contentQueries(1,o,i.length-1);const a=ni();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Ti(a.index-20);const t=i[1];Vs(t,e),Gs(t,i,e.hostVars),Xs(e,o)}return o}(t,this.componentDef,p,h,[lo]),Os(d,p,null)}finally{Ci()}return new yc(this.componentType,f,Hr(Ha,g,p),p,g)}}class yc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Ir(n),this.componentType=t}get injector(){return new pn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}var wc=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Ac={};function vc(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Mc(e);if(i)return i;const n=e.split("-")[0];if(i=Mc(n),i)return i;if("en"===n)return wc;throw new Error(`Missing locale data for the locale "${t}".`)}function Mc(t){return t in Ac||(Ac[t]=xt.ng&&xt.ng.common&&xt.ng.common.locales&&xt.ng.common.locales[t]),Ac[t]}var Cc=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let Sc="en-US";function Tc(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Sc=t.toLowerCase().replace(/_/g,"-"))}const kc=new Map;class Ec extends Qt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new gc(this);const i=ve(t),n=t[Ot]||null;n&&Tc(n),this._bootstrapComponents=$i(i.bootstrap),this._r3Injector=Zr(t,e,[{provide:Qt,useValue:this},{provide:Ba,useValue:this.componentFactoryResolver}],yt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ao.THROW_IF_NOT_FOUND,i=ot.Default){return t===ao||t===Qt||t===Ft?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xc extends Zt{constructor(t){super(),this.moduleType=t,null!==ve(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${yt(e)} vs ${yt(e.name)}`)})(t,kc.get(t),e),kc.set(t,e)}let i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach(e=>t(e))}(t)}create(t){return new Ec(this.moduleType,t)}}function Lc(t,e,i){const n=ui()+t,s=ti();return s[n]===_s?vo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function zc(t,e,i,n){return Oc(ti(),ui(),t,e,i,n)}function Dc(t,e,i,n,s){return Pc(ti(),ui(),t,e,i,n,s)}function Rc(t,e){const i=t[e];return i===_s?void 0:i}function Oc(t,e,i,n,s,r){const o=e+i;return Mo(t,o,s)?vo(t,o+1,r?n.call(r,s):n(s)):Rc(t,o+1)}function Pc(t,e,i,n,s,r,o){const a=e+i;return Co(t,a,s,r)?vo(t,a+2,o?n.call(o,s,r):n(s,r)):Rc(t,a+2)}function Ic(t,e){const i=ei();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new Error(`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=Ae(n.type)),o=Ut(Lo);try{const e=Qi(!1),n=r();return Qi(e),function(t,e,i,n){const s=i+20;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=n}(i,ti(),t,n),n}finally{Ut(o)}}function Nc(t,e,i){const n=ti(),s=We(n,t);return qc(n,Hc(n,t)?Oc(n,ui(),e,s.transform,i,s):s.transform(i))}function Fc(t,e,i,n){const s=ti(),r=We(s,t);return qc(s,Hc(s,t)?Pc(s,ui(),e,r.transform,i,n,r):r.transform(i,n))}function Bc(t,e,i,n,s){const r=ti(),o=We(r,t);return qc(r,Hc(r,t)?function(t,e,i,n,s,r,o,a){const c=e+i;return function(t,e,i,n,s){const r=Co(t,e,i,n);return Mo(t,e+2,s)||r}(t,c,s,r,o)?vo(t,c+3,a?n.call(a,s,r,o):n(s,r,o)):Rc(t,c+3)}(r,ui(),e,o.transform,i,n,s,o):o.transform(i,n,s))}function Hc(t,e){return t[1].data[e+20].pure}function qc(t,e){return yo.isWrapped(e)&&(e=yo.unwrap(e),t[li()]=_s),e}const jc=class extends M{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,s=t=>null,r=()=>null;t&&"object"==typeof t?(n=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(r=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,s,r);return t instanceof h&&t.add(o),o}};function Yc(){return this._results[bo()]()}class Wc{constructor(){this.dirty=!0,this._results=[],this.changes=new jc,this.length=0;const t=bo(),e=Wc.prototype;e[t]||(e[t]=Yc)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,i){void 0===i&&(i=e);for(let n=0;n0)s.push(a[e/2]);else{const r=o[e+1],a=i[-n];for(let e=10;e{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Vt(du,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const fu=new Nt("AppId"),gu={provide:fu,useFactory:function(){return`${mu()}${mu()}${mu()}`},deps:[]};function mu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _u=new Nt("Platform Initializer"),bu=new Nt("Platform ID"),yu=new Nt("appBootstrapListener");let wu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Au=new Nt("LocaleId"),vu=new Nt("DefaultCurrencyCode");class Mu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Cu=function(t){return new xc(t)},Su=Cu,Tu=function(t){return Promise.resolve(Cu(t))},ku=function(t){const e=Cu(t),i=$i(ve(t).declarations).reduce((t,e)=>{const i=we(e);return i&&t.push(new bc(i)),t},[]);return new Mu(e,i)},Eu=ku,xu=function(t){return Promise.resolve(ku(t))};let Lu=(()=>{class t{constructor(){this.compileModuleSync=Su,this.compileModuleAsync=Tu,this.compileModuleAndAllComponentsSync=Eu,this.compileModuleAndAllComponentsAsync=xu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const zu=(()=>Promise.resolve(0))();function Du(t){"undefined"==typeof Zone?zu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ru{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jc(!1),this.onMicrotaskEmpty=new jc(!1),this.onStable=new jc(!1),this.onError=new jc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=xt.requestAnimationFrame,e=xt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(xt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Nu(t),Iu(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Nu(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(i,n,s,r,o,a)=>{try{return Fu(t),i.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Bu(t)}},onInvoke:(e,i,n,s,r,o,a)=>{try{return Fu(t),e.invoke(n,s,r,o,a)}finally{Bu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Nu(t),Iu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ru.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ru.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,Pu,Ou,Ou);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}function Ou(){}const Pu={};function Iu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Nu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Fu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Bu(t){t._nesting--,Iu(t)}class Hu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jc,this.onMicrotaskEmpty=new jc,this.onStable=new jc,this.onError=new jc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let qu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ru.assertNotInAngularZone(),Du(()=>{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())Du(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(Vt(Ru))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),ju=(()=>{class t{constructor(){this._applications=new Map,Uu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Uu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Yu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Wu,Uu=new Yu;const Ku=new Nt("AllowMultipleToken");class Vu{constructor(t,e){this.name=t,this.token=e}}function Gu(t,e,i=[]){const n="Platform: "+e,s=new Nt(n);return(e=[])=>{let r=Xu();if(!r||r.injector.get(Ku,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:Vr,useValue:"platform"});!function(t){if(Wu&&!Wu.destroyed&&!Wu.injector.get(Ku,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Wu=t.get($u);const e=t.get(_u,null);e&&e.forEach(t=>t())}(ao.create({providers:t,name:n}))}return function(t){const e=Xu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Xu(){return Wu&&!Wu.destroyed?Wu:null}let $u=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Hu:("zone.js"===t?void 0:t)||new Ru({enableLongStackTrace:zn(),shouldCoalesceEventChangeDetection:e}),i}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),n=[{provide:Ru,useValue:i}];return i.run(()=>{const e=ao.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(yn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Zu(this._modules,s)),i.runOutsideAngular(()=>i.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,i){try{const n=i();return qo(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(pu);return t.runInitializers(),t.donePromise.then(()=>(Tc(s.injector.get(Au,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Ju({},e);return function(t,e,i){const n=new xc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Qu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${yt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Vt(ao))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Ju(t,e){return Array.isArray(e)?e.reduce(Ju,t):Object.assign(Object.assign({},t),e)}let Qu=(()=>{class t{constructor(t,e,i,n,s,r){this._zone=t,this._console=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=zn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ru.assertNotInAngularZone(),Du(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Ru.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=U(o,a.pipe(Z()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof Na?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Qt),s=i.create(ao.NULL,[],e||i.selector,n);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(qu,null);return r&&s.injector.get(ju).registerApplication(s.location.nativeElement,r),this._loadComponent(s),zn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Zu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(yu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Zu(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Vt(Ru),Vt(wu),Vt(ao),Vt(yn),Vt(Ba),Vt(pu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Zu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class tl{}class el{}const il={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let nl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||il}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>sl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>sl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Vt(Lu),Vt(el,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function sl(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const rl=Gu(null,"core",[{provide:bu,useValue:"unknown"},{provide:$u,deps:[ao]},{provide:ju,deps:[]},{provide:wu,deps:[]}]),ol=[{provide:Qu,useClass:Qu,deps:[Ru,wu,ao,yn,Ba,pu]},{provide:_c,deps:[Ru],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:pu,useClass:pu,deps:[[new nt,du]]},{provide:Lu,useClass:Lu,deps:[]},gu,{provide:rc,useFactory:function(){return cc},deps:[]},{provide:oc,useFactory:function(){return uc},deps:[]},{provide:Au,useFactory:function(t){return Tc(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(Au),new nt,new rt]]},{provide:vu,useValue:"USD"}];let al=(()=>{class t{constructor(t){}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Vt(Qu))},providers:ol}),t})(),cl=null;function ul(){return cl}const ll=new Nt("DocumentToken");let hl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:dl,token:t,providedIn:"platform"}),t})();function dl(){return Vt(fl)}const pl=new Nt("Location Initialized");let fl=(()=>{class t extends hl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ul().getLocation(),this._history=ul().getHistory()}getBaseHrefFromDOM(){return ul().getBaseHref(this._doc)}onPopState(t){ul().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ul().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){gl()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){gl()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll))},t.\u0275prov=ut({factory:ml,token:t,providedIn:"platform"}),t})();function gl(){return!!window.history.pushState}function ml(){return new fl(Vt(ll))}function _l(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function bl(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function yl(t){return t&&"?"!==t[0]?"?"+t:t}let wl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Al,token:t,providedIn:"root"}),t})();function Al(t){const e=Vt(ll).location;return new Ml(Vt(hl),e&&e.origin||"")}const vl=new Nt("appBaseHref");let Ml=(()=>{class t extends wl{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return _l(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+yl(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+yl(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+yl(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Vt(hl),Vt(vl,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Cl=(()=>{class t extends wl{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=_l(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+yl(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+yl(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Vt(hl),Vt(vl,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Sl=(()=>{class t{constructor(t,e){this._subject=new jc,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=bl(kl(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+yl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,kl(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+yl(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+yl(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(wl),Vt(hl))},t.normalizeQueryParams=yl,t.joinWithSlash=_l,t.stripTrailingSlash=bl,t.\u0275prov=ut({factory:Tl,token:t,providedIn:"root"}),t})();function Tl(){return new Sl(Vt(wl),Vt(hl))}function kl(t){return t.replace(/\/index.html$/,"")}const El={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var xl=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),Ll=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),zl=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),Dl=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),Rl=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Ol=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Pl(t,e){return ql(vc(t)[Cc.DateFormat],e)}function Il(t,e){return ql(vc(t)[Cc.TimeFormat],e)}function Nl(t,e){return ql(vc(t)[Cc.DateTimeFormat],e)}function Fl(t,e){const i=vc(t),n=i[Cc.NumberSymbols][e];if(void 0===n){if(e===Ol.CurrencyDecimal)return i[Cc.NumberSymbols][Ol.Decimal];if(e===Ol.CurrencyGroup)return i[Cc.NumberSymbols][Ol.Group]}return n}function Bl(t,e){return vc(t)[Cc.NumberFormats][e]}function Hl(t){if(!t[Cc.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Cc.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ql(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function jl(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const Yl=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wl={},Ul=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Kl=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Vl=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Gl=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Xl(t,e,i,n){let s=function(t){if(sh(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,i,n]=t.split("-").map(t=>+t);return new Date(e,i-1,n)}let i;if(i=t.match(Yl))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,c,u),e}(i)}const e=new Date(t);if(!sh(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,i){const n=function(t){return vc(t)[Cc.LocaleId]}(e);if(Wl[n]=Wl[n]||{},Wl[n][i])return Wl[n][i];let s="";switch(i){case"shortDate":s=Pl(e,Rl.Short);break;case"mediumDate":s=Pl(e,Rl.Medium);break;case"longDate":s=Pl(e,Rl.Long);break;case"fullDate":s=Pl(e,Rl.Full);break;case"shortTime":s=Il(e,Rl.Short);break;case"mediumTime":s=Il(e,Rl.Medium);break;case"longTime":s=Il(e,Rl.Long);break;case"fullTime":s=Il(e,Rl.Full);break;case"short":const i=t(e,"shortTime"),n=t(e,"shortDate");s=$l(Nl(e,Rl.Short),[i,n]);break;case"medium":const r=t(e,"mediumTime"),o=t(e,"mediumDate");s=$l(Nl(e,Rl.Medium),[r,o]);break;case"long":const a=t(e,"longTime"),c=t(e,"longDate");s=$l(Nl(e,Rl.Long),[a,c]);break;case"full":const u=t(e,"fullTime"),l=t(e,"fullDate");s=$l(Nl(e,Rl.Full),[u,l])}return s&&(Wl[n][i]=s),s}(i,e)||e;let r,o=[];for(;e;){if(r=Ul.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nh(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nh(e,n)-n))}(s,n));let c="";return o.forEach(t=>{const e=function(t){if(ih[t])return ih[t];let e;switch(t){case"G":case"GG":case"GGG":e=Zl(Gl.Eras,Dl.Abbreviated);break;case"GGGG":e=Zl(Gl.Eras,Dl.Wide);break;case"GGGGG":e=Zl(Gl.Eras,Dl.Narrow);break;case"y":e=Ql(Vl.FullYear,1,0,!1,!0);break;case"yy":e=Ql(Vl.FullYear,2,0,!0,!0);break;case"yyy":e=Ql(Vl.FullYear,3,0,!1,!0);break;case"yyyy":e=Ql(Vl.FullYear,4,0,!1,!0);break;case"M":case"L":e=Ql(Vl.Month,1,1);break;case"MM":case"LL":e=Ql(Vl.Month,2,1);break;case"MMM":e=Zl(Gl.Months,Dl.Abbreviated);break;case"MMMM":e=Zl(Gl.Months,Dl.Wide);break;case"MMMMM":e=Zl(Gl.Months,Dl.Narrow);break;case"LLL":e=Zl(Gl.Months,Dl.Abbreviated,zl.Standalone);break;case"LLLL":e=Zl(Gl.Months,Dl.Wide,zl.Standalone);break;case"LLLLL":e=Zl(Gl.Months,Dl.Narrow,zl.Standalone);break;case"w":e=eh(1);break;case"ww":e=eh(2);break;case"W":e=eh(1,!0);break;case"d":e=Ql(Vl.Date,1);break;case"dd":e=Ql(Vl.Date,2);break;case"E":case"EE":case"EEE":e=Zl(Gl.Days,Dl.Abbreviated);break;case"EEEE":e=Zl(Gl.Days,Dl.Wide);break;case"EEEEE":e=Zl(Gl.Days,Dl.Narrow);break;case"EEEEEE":e=Zl(Gl.Days,Dl.Short);break;case"a":case"aa":case"aaa":e=Zl(Gl.DayPeriods,Dl.Abbreviated);break;case"aaaa":e=Zl(Gl.DayPeriods,Dl.Wide);break;case"aaaaa":e=Zl(Gl.DayPeriods,Dl.Narrow);break;case"b":case"bb":case"bbb":e=Zl(Gl.DayPeriods,Dl.Abbreviated,zl.Standalone,!0);break;case"bbbb":e=Zl(Gl.DayPeriods,Dl.Wide,zl.Standalone,!0);break;case"bbbbb":e=Zl(Gl.DayPeriods,Dl.Narrow,zl.Standalone,!0);break;case"B":case"BB":case"BBB":e=Zl(Gl.DayPeriods,Dl.Abbreviated,zl.Format,!0);break;case"BBBB":e=Zl(Gl.DayPeriods,Dl.Wide,zl.Format,!0);break;case"BBBBB":e=Zl(Gl.DayPeriods,Dl.Narrow,zl.Format,!0);break;case"h":e=Ql(Vl.Hours,1,-12);break;case"hh":e=Ql(Vl.Hours,2,-12);break;case"H":e=Ql(Vl.Hours,1);break;case"HH":e=Ql(Vl.Hours,2);break;case"m":e=Ql(Vl.Minutes,1);break;case"mm":e=Ql(Vl.Minutes,2);break;case"s":e=Ql(Vl.Seconds,1);break;case"ss":e=Ql(Vl.Seconds,2);break;case"S":e=Ql(Vl.FractionalSeconds,1);break;case"SS":e=Ql(Vl.FractionalSeconds,2);break;case"SSS":e=Ql(Vl.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=th(Kl.Short);break;case"ZZZZZ":e=th(Kl.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=th(Kl.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=th(Kl.Long);break;default:return null}return ih[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function $l(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,i){return null!=e&&i in e?e[i]:t}))),t}function Jl(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===Vl.Hours)0===a&&-12===i&&(a=12);else if(t===Vl.FractionalSeconds)return c=e,Jl(a,3).substr(0,c);var c;const u=Fl(o,Ol.MinusSign);return Jl(a,e,u,n,s)}}function Zl(t,e,i=zl.Format,n=!1){return function(s,r){return function(t,e,i,n,s,r){switch(i){case Gl.Months:return function(t,e,i){const n=vc(t),s=ql([n[Cc.MonthsFormat],n[Cc.MonthsStandalone]],e);return ql(s,i)}(e,s,n)[t.getMonth()];case Gl.Days:return function(t,e,i){const n=vc(t),s=ql([n[Cc.DaysFormat],n[Cc.DaysStandalone]],e);return ql(s,i)}(e,s,n)[t.getDay()];case Gl.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=vc(t);return Hl(e),(e[Cc.ExtraData][2]||[]).map(t=>"string"==typeof t?jl(t):[jl(t[0]),jl(t[1])])}(e),i=function(t,e,i){const n=vc(t);Hl(n);const s=ql([n[Cc.ExtraData][0],n[Cc.ExtraData][1]],e)||[];return ql(s,i)||[]}(e,s,n),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Kl.Short:return(s>=0?"+":"")+Jl(o,2,r)+Jl(Math.abs(s%60),2,r);case Kl.ShortGMT:return"GMT"+(s>=0?"+":"")+Jl(o,1,r);case Kl.Long:return"GMT"+(s>=0?"+":"")+Jl(o,2,r)+":"+Jl(Math.abs(s%60),2,r);case Kl.Extended:return 0===n?"Z":(s>=0?"+":"")+Jl(o,2,r)+":"+Jl(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function eh(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=(r=i,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(4-r.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}var r;return Jl(s,t,Fl(n,Ol.MinusSign))}}const ih={};function nh(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function sh(t){return t instanceof Date&&!isNaN(t.valueOf())}const rh=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function oh(t,e,i,n,s,r,o=!1){let a="",c=!1;if(isFinite(t)){let u=function(t){let e,i,n,s,r,o=Math.abs(t)+"",a=0;for((i=o.indexOf("."))>-1&&(o=o.replace(".","")),(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length),n=0;"0"===o.charAt(n);n++);if(n===(r=o.length))e=[0],i=1;else{for(r--;"0"===o.charAt(r);)r--;for(i-=n,e=[],s=0;n<=r;n++,s++)e[s]=Number(o.charAt(n))}return i>22&&(e=e.splice(0,21),a=i-1,i=1),{digits:e,exponent:a,integerLen:i}}(t);o&&(u=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(u));let l=e.minInt,h=e.minFrac,d=e.maxFrac;if(r){const t=r.match(rh);if(null===t)throw new Error(r+" is not a valid digit info");const e=t[1],i=t[3],n=t[5];null!=e&&(l=ch(e)),null!=i&&(h=ch(i)),null!=n?d=ch(n):null!=i&&h>d&&(d=h)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,s=n.length-t.integerLen;const r=Math.min(Math.max(e,s),i);let o=r+t.integerLen,a=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;s=u?n.pop():c=!1),e>=10?1:0}),0);l&&(n.unshift(l),t.integerLen++)}(u,h,d);let p=u.digits,f=u.integerLen;const g=u.exponent;let m=[];for(c=p.every(t=>!t);f0?m=p.splice(f,p.length):(m=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),a=_.join(Fl(i,n)),m.length&&(a+=Fl(i,s)+m.join("")),g&&(a+=Fl(i,Ol.Exponential)+"+"+g)}else a=Fl(i,Ol.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function ah(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let l=0;l-1)return s;if(s=i.getPluralCategory(t,n),e.indexOf(s)>-1)return s;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}let hh=(()=>{class t extends uh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return vc(t)[Cc.PluralCase]}(e||this.locale)(t)){case Ll.Zero:return"zero";case Ll.One:return"one";case Ll.Two:return"two";case Ll.Few:return"few";case Ll.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Vt(Au))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function dh(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ph=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(wo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+yt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Lo(rc),Lo(oc),Lo(Ha),Lo(Wa))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),fh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(Qt);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(Ba)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc))},t.\u0275dir=be({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[ze]}),t})();class gh{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mh=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){zn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new gh(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new _h(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new _h(t,s);e.push(r)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc),Lo(lc),Lo(rc))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class _h{constructor(t,e){this.record=t,this.view=e}}let bh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new yh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){wh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){wh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc),Lo(lc))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class yh{constructor(){this.$implicit=null,this.ngIf=null}}function wh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${yt(e)}'.`)}class Ah{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let vh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new Ah(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc),Lo(lc),Lo(vh,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Ch=(()=>{class t{constructor(t,e,i){i._addDefault(new Ah(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc),Lo(lc),Lo(vh,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Sh=(()=>{class t{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=lh(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}return t.\u0275fac=function(e){return new(e||t)(Lo(uh))},t.\u0275dir=be({type:t,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),t})(),Th=(()=>{class t{constructor(t,e,i,n){this.value=t;const s=!isNaN(Number(t));n.addCase(s?"="+t:t,new Ah(i,e))}}return t.\u0275fac=function(e){return new(e||t)(zo("ngPluralCase"),Lo(lc),Lo(dc),Lo(Sh,1))},t.\u0275dir=be({type:t,selectors:[["","ngPluralCase",""]]}),t})(),kh=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(oc),Lo(Wa))},t.\u0275dir=be({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Eh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){for(let t of i)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc))},t.\u0275dir=be({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ze]}),t})();function xh(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${yt(t)}'`)}class Lh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class zh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Dh=new zh,Rh=new Lh;let Oh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(qo(e))return Dh;if(jo(e))return Rh;throw xh(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(hu())},t.\u0275pipe=ye({name:"async",type:t,pure:!1}),t})(),Ph=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw xh(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"lowercase",type:t,pure:!0}),t})();const Ih=/(?:[A-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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\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-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\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]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Nh=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw xh(t,e);return e.replace(Ih,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"titlecase",type:t,pure:!0}),t})(),Fh=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw xh(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"uppercase",type:t,pure:!0}),t})(),Bh=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return Xl(e,i,s||this.locale,n)}catch(r){throw xh(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Lo(Au))},t.\u0275pipe=ye({name:"date",type:t,pure:!0}),t})();const Hh=/#/g;let qh=(()=>{class t{constructor(t){this._localization=t}transform(e,i,n){if(null==e)return"";if("object"!=typeof i||null===i)throw xh(t,i);return i[lh(e,Object.keys(i),this._localization,n)].replace(Hh,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(Lo(uh))},t.\u0275pipe=ye({name:"i18nPlural",type:t,pure:!0}),t})(),jh=(()=>{class t{transform(e,i){if(null==e)return"";if("object"!=typeof i||"string"!=typeof e)throw xh(t,i);return i.hasOwnProperty(e)?i[e]:i.hasOwnProperty("other")?i.other:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"i18nSelect",type:t,pure:!0}),t})(),Yh=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"json",type:t,pure:!1}),t})(),Wh=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Uh){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(Lo(oc))},t.\u0275pipe=ye({name:"keyvalue",type:t,pure:!1}),t})();function Uh(t,e){const i=t.key,n=e.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i{class t{constructor(t){this._locale=t}transform(e,i,n){if(Xh(e))return null;n=n||this._locale;try{return function(t,e,i){return oh(t,ah(Bl(e,xl.Decimal),Fl(e,Ol.MinusSign)),e,Ol.Group,Ol.Decimal,i)}($h(e),n,i)}catch(s){throw xh(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(Lo(Au))},t.\u0275pipe=ye({name:"number",type:t,pure:!0}),t})(),Vh=(()=>{class t{constructor(t){this._locale=t}transform(e,i,n){if(Xh(e))return null;n=n||this._locale;try{return function(t,e,i){return oh(t,ah(Bl(e,xl.Percent),Fl(e,Ol.MinusSign)),e,Ol.Group,Ol.Decimal,i,!0).replace(new RegExp("%","g"),Fl(e,Ol.PercentSign))}($h(e),n,i)}catch(s){throw xh(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(Lo(Au))},t.\u0275pipe=ye({name:"percent",type:t,pure:!0}),t})(),Gh=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,i,n="symbol",s,r){if(Xh(e))return null;r=r||this._locale,"boolean"==typeof n&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),n=n?"symbol":"code");let o=i||this._defaultCurrencyCode;"code"!==n&&(o="symbol"===n||"symbol-narrow"===n?function(t,e,i="en"){const n=function(t){return vc(t)[Cc.Currencies]}(i)[t]||El[t]||[],s=n[1];return"narrow"===e&&"string"==typeof s?s:n[0]||t}(o,"symbol"===n?"wide":"narrow",r):n);try{return function(t,e,i,n,s){const r=ah(Bl(e,xl.Currency),Fl(e,Ol.MinusSign));return r.minFrac=function(t){let e;const i=El[t];return i&&(e=i[2]),"number"==typeof e?e:2}(n),r.maxFrac=r.minFrac,oh(t,r,e,Ol.CurrencyGroup,Ol.CurrencyDecimal,s).replace("\xa4",i).replace("\xa4","").trim()}($h(e),r,o,i,s)}catch(a){throw xh(t,a.message)}}}return t.\u0275fac=function(e){return new(e||t)(Lo(Au),Lo(vu))},t.\u0275pipe=ye({name:"currency",type:t,pure:!0}),t})();function Xh(t){return null==t||""===t||t!=t}function $h(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}let Jh=(()=>{class t{transform(e,i,n){if(null==e)return e;if(!this.supports(e))throw xh(t,e);return e.slice(i,n)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"slice",type:t,pure:!1}),t})(),Qh=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[{provide:uh,useClass:hh}]}),t})();function Zh(t){return"browser"===t}function td(t){return"server"===t}let ed=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new id(Vt(ll),window,Vt(yn))}),t})();class id{constructor(t,e,i){this.document=t,this.window=e,this.errorHandler=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=nd(this.window.history)||nd(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function nd(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class sd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new sd,cl||(cl=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=od||(od=document.querySelector("base"),od)?od.getAttribute("href"):null;return null==e?null:(i=e,rd||(rd=document.createElement("a")),rd.setAttribute("href",i),"/"===rd.pathname.charAt(0)?rd.pathname:"/"+rd.pathname);var i}resetBaseElement(){od=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return dh(document.cookie,t)}}let rd,od=null;const ad=new Nt("TRANSITION_ID"),cd=[{provide:du,useFactory:function(t,e,i){return()=>{i.get(pu).donePromise.then(()=>{const i=ul();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[ad,ll,ao],multi:!0}];class ud{static init(){var t;t=new ud,Uu=t}addToWindow(t){xt.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},xt.getAllAngularTestabilities=()=>t.getAllTestabilities(),xt.getAllAngularRootElements=()=>t.getAllRootElements(),xt.frameworkStabilizers||(xt.frameworkStabilizers=[]),xt.frameworkStabilizers.push(t=>{const e=xt.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?ul().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const ld=new Nt("EventManagerPlugins");let hd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),fd=(()=>{class t extends pd{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>ul().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const gd={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/"},md=/%COMP%/g;function _d(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let yd=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new wd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new Ad(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case ce.Native:case ce.ShadowDom:return new vd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=_d(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Vt(hd),Vt(fd),Vt(fu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class wd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(gd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=gd[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=gd[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&Ya.DashCase?t.style.setProperty(e,i,n&Ya.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ya.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,bd(i)):this.eventManager.addEventListener(t,e,bd(i))}}class Ad extends wd{constructor(t,e,i,n){super(t),this.component=i;const s=_d(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(md,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(md,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class vd extends wd{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.component=n,this.shadowRoot=n.encapsulation===ce.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=_d(n.id,n.styles,[]);for(let r=0;r{class t extends dd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Cd=["alt","control","meta","shift"],Sd={"\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"},Td={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"},kd={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Ed=(()=>{class t extends dd{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,n){const s=t.parseEventName(i),r=t.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ul().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(Cd.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const o={};return o.domEventName=n,o.fullKey=r,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Td.hasOwnProperty(e)&&(e=Td[e]))}return Sd[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Cd.forEach(n=>{n!=i&&(0,kd[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),xd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return Vt(Ld)},token:t,providedIn:"root"}),t})(),Ld=(()=>{class t extends xd{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case es.NONE:return e;case es.HTML:return kn(e,"HTML")?Tn(e):Zn(this._doc,String(e));case es.STYLE:return kn(e,"Style")?Tn(e):e;case es.SCRIPT:if(kn(e,"Script"))return Tn(e);throw new Error("unsafe value used in a script context");case es.URL:return En(e),kn(e,"URL")?Tn(e):In(String(e));case es.RESOURCE_URL:if(kn(e,"ResourceURL"))return Tn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new An(t)}bypassSecurityTrustStyle(t){return new vn(t)}bypassSecurityTrustScript(t){return new Mn(t)}bypassSecurityTrustUrl(t){return new Cn(t)}bypassSecurityTrustResourceUrl(t){return new Sn(t)}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll))},t.\u0275prov=ut({factory:function(){return t=Vt(Ft),new Ld(t.get(ll));var t},token:t,providedIn:"root"}),t})();const zd=Gu(rl,"browser",[{provide:bu,useValue:"browser"},{provide:_u,useValue:function(){sd.makeCurrent(),ud.init()},multi:!0},{provide:ll,useFactory:function(){return function(t){Ie=t}(document),document},deps:[]}]),Dd=[[],{provide:Vr,useValue:"root"},{provide:yn,useFactory:function(){return new yn},deps:[]},{provide:ld,useClass:Md,multi:!0,deps:[ll,Ru,bu]},{provide:ld,useClass:Ed,multi:!0,deps:[ll]},[],{provide:yd,useClass:yd,deps:[hd,fd,fu]},{provide:ja,useExisting:yd},{provide:pd,useExisting:fd},{provide:fd,useClass:fd,deps:[ll]},{provide:qu,useClass:qu,deps:[Ru]},{provide:hd,useClass:hd,deps:[ld,Ru]},[]];let Rd=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:fu,useValue:e.appId},{provide:ad,useExisting:fu},cd]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Vt(t,12))},providers:Dd,imports:[Qh,al]}),t})();"undefined"!=typeof window&&window;var Od=function(t){return t.PERUNADMIN="PERUNADMIN",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});class Pd{constructor(t){this.id=t.id,this.name=t.name,this.parentGroupId=t.parentGroupId,this.voId=t.voId,this.shortName=t.shortName,this.description=t.description,this.attributes=t.attributes,this.beanName=t.beanName}addChild(t){null==this.children?this.children=[t]:this.children.push(t)}}function Id(...t){let e=t[t.length-1];return S(e)?(t.pop(),F(t,e)):W(t)}function Nd(t,e){return H(t,e,1)}function Fd(t,e){return function(i){return i.lift(new Bd(t,e))}}class Bd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Hd(t,this.predicate,this.thisArg))}}class Hd extends f{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class qd{}class jd{}class Yd{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Yd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Yd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Yd?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Wd{encodeKey(t){return Ud(t)}encodeValue(t){return Ud(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Ud(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Kd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Wd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(r),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Kd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Vd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Gd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Xd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class $d{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Yd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),c)),new $d(e,i,s,{params:c,headers:a,reportProgress:o,responseType:n,withCredentials:r})}}var Jd=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Qd{constructor(t,e=200,i="OK"){this.headers=t.headers||new Yd,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Zd extends Qd{constructor(t={}){super(t),this.type=Jd.ResponseHeader}clone(t={}){return new Zd({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class tp extends Qd{constructor(t={}){super(t),this.type=Jd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new tp({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ep extends Qd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function ip(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let np=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof $d)n=t;else{let s=void 0;s=i.headers instanceof Yd?i.headers:new Yd(i.headers);let r=void 0;i.params&&(r=i.params instanceof Kd?i.params:new Kd({fromObject:i.params})),n=new $d(t,e,void 0!==i.body?i.body:null,{headers:s,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Id(n).pipe(Nd(t=>this.handler.handle(t)));if(t instanceof $d||"events"===i.observe)return s;const r=s.pipe(Fd(t=>t instanceof tp));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(P(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(P(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Kd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,ip(i,e))}post(t,e,i={}){return this.request("POST",t,ip(i,e))}put(t,e,i={}){return this.request("PUT",t,ip(i,e))}}return t.\u0275fac=function(e){return new(e||t)(Vt(qd))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class sp{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const rp=new Nt("HTTP_INTERCEPTORS");let op=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const ap=/^\)\]\}',?\n/;class cp{}let up=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),lp=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Yd(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Zd({headers:r,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:a}=r(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(ap,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new tp({body:c,headers:n,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new ep({error:c,headers:n,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=r(),s=new ep({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(r()),c=!0);let s={type:Jd.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:Jd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:Jd.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("load",o),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Vt(cp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const hp=new Nt("XSRF_COOKIE_NAME"),dp=new Nt("XSRF_HEADER_NAME");class pp{}let fp=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=dh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll),Vt(bu),Vt(hp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),gp=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Vt(pp),Vt(dp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),mp=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(rp,[]);this.chain=t.reduceRight((t,e)=>new sp(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Vt(jd),Vt(ao))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),_p=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:gp,useClass:op}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:hp,useValue:e.cookieName}:[],e.headerName?{provide:dp,useValue:e.headerName}:[]]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[gp,{provide:rp,useExisting:gp,multi:!0},{provide:pp,useClass:fp},{provide:hp,useValue:"XSRF-TOKEN"},{provide:dp,useValue:"X-XSRF-TOKEN"}]}),t})(),bp=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[np,{provide:qd,useClass:mp},lp,{provide:jd,useExisting:lp},up,{provide:cp,useExisting:up}],imports:[[_p.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class yp{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const wp=new Nt("basePath");class Ap{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let vp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/convertAttributeToNonunique",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/convertAttributeToUnique",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/createAttribute",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/deleteAttribute",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/deleteAttributes",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributesDefinition",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,r,o,a,c,u,l,h="body",d=!1){let p=new Kd({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=s&&(p=p.set("vo",s)),null!=r&&(p=p.set("resource",r)),null!=o&&(p=p.set("member",o)),null!=a&&(p=p.set("group",a)),null!=c&&(p=p.set("host",c)),null!=u&&(p=p.set("userExtSource",u)),null!=l&&(p=p.set("key",l));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/any",{params:p,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeDefinitionById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeDefinition",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributesDefinitionByNamespace",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeModulesDependenciesGraphText",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeRights",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,r,o,a,c="body",u=!1){let l=new Kd({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=r&&(l=l.set("facility",r)),null!=o&&(l=l.set("host",o)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights",{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-entityless",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/key",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessAttributesWithKeys",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessKeys",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-facility",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-facility",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-names",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("user",i)),null!=n&&(o=o.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-r-u-m",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-u",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-group",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-group",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/g",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/g-names",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-group-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-group-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/group-resource",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-host",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-host",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/h",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/h-names",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getLogins",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-wu",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-names-wu",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-names",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g-names-wu",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member-group",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member-group",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r-wu",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r-names-wu",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributesDefinition",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/f",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-f",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new Kd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/ss-f",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-g",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-h",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m-g",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new Kd({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-g-m",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-g-m",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m-r",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-m",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/r",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new Kd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/ss-r",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/u",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/u-f",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-v",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-resource",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-resource",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-names",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-wg",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-names-wg",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-m-names",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-user",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-user",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/u",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/u-names",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-ues",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-ues",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/ues",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/ues-names",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-user_facility",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-user_facility",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/user-facility",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-vo",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-vo",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/vo-names",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new Kd({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),r&&r.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m",null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new Kd({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/e",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/f",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/g",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/g-r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g-r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/h",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/h",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m-r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/r",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/r",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/ues",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/u",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/u",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/ues",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/u-f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/u-f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/v",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/v",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributeRights",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/entityless",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/facility",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-r-g-u-m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-r-u-m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/group-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/group-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/host",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/h",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member-group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-g-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-r-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member-resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-r",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-wu",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/resource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r-g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r-g-wg",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/userExtSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/ues",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/facility-user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/facility-user",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/updateAttributeDefinition",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAllPolicies",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAllRolesManagementRules",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAdminGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new Kd({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=r&&(c=c.set("onlyDirectAdmins",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getRichAdmins",{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new Kd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getFacilitiesWhereUserIsInRoles",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getGroupRoleNames",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/getGroupRoles",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new Kd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getGroupsWhereUserIsInRoles",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getLoggedUser",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new Kd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getMembersWhereUserIsInRoles",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getPerunPrincipal",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getPrincipalRoleNames",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new Kd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getResourcesWhereUserIsInRoles",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new Kd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getUserRoleNames",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getUserRoles",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new Kd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getVosWhereUserIsInRoles",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isFacilityAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isGroupAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/isPerunAdmin",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isVoAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/keepAlive",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/loadAuthorizationComponents",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/setRole/g-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/setRole/u-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/unsetRole/g-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/unsetRole/u-co",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/group",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/group/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/user",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/user/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityContact(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddFacilityContact was null or undefined when calling addFacilityContact.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/addFacilityContact",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addFacilityContacts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddFacilityContacts was null or undefined when calling addFacilityContacts.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/addFacilityContacts",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/f-o-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/o-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHost(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHost",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHostByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHost/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHosts",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHosts/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/assignSecurityTeam",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/dest-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/src-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/dest-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/src-dest-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/src-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwners(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/dest-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/src-dest-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/src-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/createFacility",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/deleteFacility",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/deleteFacility/f-name",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllContactGroupNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllContactGroupNames",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedGroupsByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedGroups/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedRichGroupsWithAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("vo",i)),null!=n&&(o=o.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedRichGroupsWithAttributes",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("vo",i)),null!=n&&(o=o.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedUsersOfFacility(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedUsers/v-f-s",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedUsers/v-f-s/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/getAllowedVos",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/getAllowedVos/f-name",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/group",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/member",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/service",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/user",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResourcesByAssignedService",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResources",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResources/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedRichResources/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedSecurityTeams",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedSecurityTeams/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedUsers",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedUsers/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBansForFacility",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBansForUser",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getEnrichedFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getEnrichedHosts",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilitiesByAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByAttribute",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByDestination",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByHostName",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesWhereUserIsAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdminGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdmins",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAdminUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdmins/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBan",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityByName",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityContactGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroup.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getFacilityContactGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroup",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityContactGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupByFacilityName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getFacilityContactGroupByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroup/f-name",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityContactGroupsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupsForFacility.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/facility",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityContactGroupsForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupsForFacilityByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/facility/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityContactGroupsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFacilityContactGroupsForGroup.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/group",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityContactGroupsForOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getFacilityContactGroupsForOwner.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/owner",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityContactGroupsForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityContactGroupsForUser.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/user",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityForHost",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwners",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwners/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHosts",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHosts/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsByHostname",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsCount",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsCount/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwnerFacilities",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getRichFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/group",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/group/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/user",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/user/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeBan/byId",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeFacilityContact(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveFacilityContact was null or undefined when calling removeFacilityContact.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/removeFacilityContact",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeFacilityContacts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveFacilityContacts was null or undefined when calling removeFacilityContacts.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/removeFacilityContacts",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/f-o-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/o-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHost",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHostByHostname",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHosts",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHosts/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeSecurityTeam",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/updateFacility",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/updateBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addGroupsToAutoRegistration",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new Kd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addMember",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addMembers",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroupUnion",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroup/pg-n-d",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroup/v-n-d",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroup",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");let s=new Kd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("forceDelete",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroups",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroupsFromAutoRegistration",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceGroupStructureSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceGroupSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllMemberGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllRichGroupsWithAttributesByNames",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupByName",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCount",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCountsByGroupStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCountsByVoStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupUnions",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupsByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupsToAutoRegistration",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getMemberGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getMemberRichGroupsWithAttributesByNames",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getRichGroupByIdWithAttributesByNames",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/isGroupMember",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new Kd({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/moveGroup/dg-mg",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeGroupUnion",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new Kd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeMember",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeMembers",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/groupsManager/updateGroup",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/c",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/u",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/extSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSpecificMember",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMember/withFullName",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMembers",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMembersFromCSV",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/deleteMember",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/deleteMembers",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new Kd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/attrs",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new Kd({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/g",{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)}),null!=i&&(o=o.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/v",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findMembersInVo",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=i&&(o=o.set("searchString",i)),null!=n&&(o=o.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/v-sponsored",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllNamespacesRules",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllSponsoredMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllSponsoredMembersAndTheirSponsors",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new Kd({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/g",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/g-r",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/v",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberByExtSourceNameAndExtLogin",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberByUser",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembers",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersByUser",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersCount",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/getMembersPage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersCount/status",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMember",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMemberWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new Kd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMembersByIds",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsoredMembers/v",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsoredMembersAndTheirSponsors",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsors/member",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsors/vo",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/moveMembership",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/removeSponsor",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sendAccountActivationLinkEmail",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sendPasswordResetLinkEmail",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/setSponsoredMember",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/setSponsorshipForMember",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/setStatus",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sponsorMember",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/updateSponsorshipValidity",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/validateMemberAsync",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("memberId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/q",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/v",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ep=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/addApplicationMail/g",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/addApplicationMail/v",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/approveApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/consolidateIdentityUsingToken",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/groupToGroup",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/groupToVo",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/voToGroup",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/voToVo",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/groupToGroup",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/groupToVo",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/voToGroup",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/voToVo",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/createApplicationForm/group",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/createApplicationForm/vo",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplicationMail/g",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplicationMail/v",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationDataById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationMails/g",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationMails/v",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForGroup",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForMember",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForVo",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getConsolidatorToken",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/group",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/group-type",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/vo-type",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationForm/group",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationForm/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/rejectApplication",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let o=new Kd({encoder:this.encoder});null!=i&&(o=o.set("voId",i)),null!=n&&(o=o.set("name",n)),null!=t&&(o=o.set("email",t)),null!=e&&(o=o.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendInvitationForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new Kd({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/g",null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/u-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/u",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/sendMessage",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/setSendingEnabled",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/submitApplication",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateApplicationMail",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateForm",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItemData",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItemsData",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItems/group",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItems/vo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/verifyApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addAdmin/r-g",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addAdmin/r-u",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addResourceSelfServiceUser",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignGroupToResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupToResource",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignGroupToResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupToResources",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignGroupsToResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let s=new Kd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupsToResource",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/assignResourceTagToResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignService",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignServices",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignServicesPackage",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/copyResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i)),null!=n&&(o=o.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/createResource",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/createResourceTag/resourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/createResourceTag/tagName",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteAllResources",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteResource",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/deleteResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAdminGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAdmins",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/getAllResourcesByResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllResourcesTagsForResource",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllResourcesTagsForVo",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/all",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedResources",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedGroups",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedResources/g",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedResources/m",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/g",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/m",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/s-m",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedServices",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBansForMember",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBansForResource",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourceById",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourcesForFacility",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourcesForVo",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getFacility",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBan",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourceByName",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResources",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesCount/all",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesCount/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/group",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("specificAttributes",t)}),null!=i&&(o=o.set("allUserAttributes",i)),null!=n&&(o=o.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichAdmins",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getVo",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeBan/member-resource-id",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAdmin/r-g",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupFromResource",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupFromResources",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new Kd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupsFromResource",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeBan/id",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/removeResourceTagFromResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeService",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeServices",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeServicesPackage",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAdmin/r-u",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateResource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateResourceTag",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/addSpecificUserOwner",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/addUserExtSource",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}changeNonAuthzPassword(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter i was null or undefined when calling changeNonAuthzPassword.");if(null==e)throw new Error("Required parameter m was null or undefined when calling changeNonAuthzPassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPassword.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("i",t)),null!=e&&(o=o.set("m",e)),null!=i&&(o=o.set("password",i)),null!=n&&(o=o.set("lang",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/changeNonAuthzPassword",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/changeNonAuthzPassword/token",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordResetRequestIsValid/token",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordResetRequestIsValid(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter i was null or undefined when calling checkPasswordResetRequestIsValid.");if(null==e)throw new Error("Required parameter m was null or undefined when calling checkPasswordResetRequestIsValid.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("i",t)),null!=e&&(s=s.set("m",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordResetRequestIsValid",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordStrength",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("loginNamespace",i)),null!=n&&(o=o.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/createAlternativePassword",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/createServiceUser",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/deleteAlternativePassword",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/deleteUser",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findRichUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findRichUsersWithAttributes",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getAssignedRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsActive/facility",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsActive/resource",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsAdmin/u-v",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsAdmin/u",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getPendingPreferredEmailChanges",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUserExtSources/u",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUserWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersWithAttributesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersWithoutVoWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSpecificUsersByUser",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSponsorsForMember/member",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSponsorsForMember/vo",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserByExtSourceNameAndExtLogin",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSources",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUsersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUsersBySpecificUser",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getVosWhereUserIsAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getVosWhereUserIsMember",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/removeSpecificUserOwner",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/removeUserExtSource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let o=new Kd({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("email",e)),null!=i&&(o=o.set("lang",i)),null!=n&&(o=o.set("linkPath",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/requestPreferredEmailChange",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}reservePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePassword.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/reservePassword",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/updateUser",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePreferredEmailChange(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter i was null or undefined when calling validatePreferredEmailChange.");if(null==e)throw new Error("Required parameter m was null or undefined when calling validatePreferredEmailChange.");if(null==i)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChange.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("i",t)),null!=e&&(r=r.set("m",e)),null!=i&&(r=r.set("u",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/validatePreferredEmailChange",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Ap,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addSponsorRole/group",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addSponsorRole/user",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addAdmin/group",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addAdmin/user",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/createVo/withName",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/createVo/withVo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/deleteVo",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/findCandidates",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/findCandidates/forGroup",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAllVos",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getCompleteCandidates/forGroup",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getCompleteCandidates/forVo",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVos",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new Kd({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getRichAdmins",{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAdminGroups",{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new Kd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAdmins",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBanForMember",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBansForVo",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoById",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoByShortName",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoMembersCountsByStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new Kd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVosByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVosCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeSponsorRole/group",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeSponsorRole/user",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeAdmin/group",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new Kd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeAdmin/user",null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeBan",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new Kd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeBanForMember",null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/setBan",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/updateVo",t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(wp,8),Vt(Ap,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Dp,Rp,Op,Pp;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(Dp||(Dp={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(Rp||(Rp={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(Op||(Op={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(Pp||(Pp={}));let Ip=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const r of i)n=n.concat(r.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeasOne(Od.PERUNADMIN,Od.FACILITYADMIN,Od.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Od.PERUNADMIN)}isVoAdmin(){return this.hasAtLeasOne(Od.PERUNADMIN,Od.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(t)||this.observableVos.includes(t)||this.principalRoles.has(Od.PERUNADMIN)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(Od.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeasOne(Od.PERUNADMIN,Od.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeasOne(Od.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(Od.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeasOne(Od.PERUNADMIN,Od.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(Od.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeasOne(Od.PERUNADMIN,Od.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeasOne(Od.PERUNADMIN,Od.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeasOne(Od.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeasOne(Od.PERUNADMIN,Od.CABINETADMIN)}isVoObserver(){return this.hasAtLeasOne(Od.PERUNADMIN,Od.VOOBSERVER)}isThisVoObserver(t){return this.principalRoles.has(Od.PERUNADMIN)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],r=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))r="User"===t?[t].concat(r):r.concat(t);break}const o=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,o),c=this.resolveAuthorization(s,o);i.set(n,{readAuth:a,manageAuth:c,modes:r})}}voCustomSort(t){for(let e=0;e{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Wp=new b(t=>t.complete());function Up(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Wp}function Kp(t){return new b(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?B(i):Up()).subscribe(e)})}function Vp(){return Y(1)}const Gp=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Xp(t){return function(e){return 0===t?Up():e.lift(new $p(t))}}class $p{constructor(t){if(this.total=t,this.total<0)throw new Gp}call(t,e){return e.subscribe(new Jp(t,this.total))}}class Jp extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Zp(t))}class Zp{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new tf(t,this.errorFactory))}}class tf extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function ef(){return new Yp}function nf(t=null){return e=>e.lift(new sf(t))}class sf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new rf(t,this.defaultValue))}}class rf extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function of(t,e){return"function"==typeof e?i=>i.pipe(of((i,n)=>B(t(i,n)).pipe(P((t,s)=>e(i,t,n,s))))):e=>e.lift(new af(t))}class af{constructor(t){this.project=t}call(t,e){return e.subscribe(new cf(t,this.project))}}class cf extends O{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new T(this,e,i),r=this.destination;r.add(s),this.innerSubscription=R(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}function uf(t){return e=>0===t?Up():e.lift(new lf(t))}class lf{constructor(t){if(this.total=t,this.total<0)throw new Gp}call(t,e){return e.subscribe(new hf(t,this.total))}}class hf extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function df(...t){return Vp()(Id(...t))}function pf(...t){const e=t[t.length-1];return S(e)?(t.pop(),i=>df(t,i,e)):e=>df(t,e)}function ff(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new gf(t,e,i))}}class gf{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new mf(t,this.accumulator,this.seed,this.hasSeed))}}class mf extends f{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}function _f(t){return function(e){const i=new bf(t),n=e.lift(i);return i.caught=n}}class bf{constructor(t){this.selector=t}call(t,e){return e.subscribe(new yf(t,this.selector,this.caught))}}class yf extends O{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new T(this,void 0,void 0);this.add(n);const s=R(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function wf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Fd((e,i)=>t(e,i,n)):_,uf(1),i?nf(e):Qp(()=>new Yp))}function Af(){}function vf(t,e,i){return function(n){return n.lift(new Mf(t,e,i))}}class Mf{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Cf(t,this.nextOrObserver,this.error,this.complete))}}class Cf extends f{constructor(t,e,i,s){super(t),this._tapNext=Af,this._tapError=Af,this._tapComplete=Af,this._tapError=i||Af,this._tapComplete=s||Af,n(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Af,this._tapError=e.error||Af,this._tapComplete=e.complete||Af)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function Sf(t){return e=>e.lift(new Tf(t))}class Tf{constructor(t){this.callback=t}call(t,e){return e.subscribe(new kf(t,this.callback))}}class kf extends f{constructor(t,e){super(t),this.add(new h(e))}}class Ef{constructor(t,e){this.id=t,this.url=e}}class xf extends Ef{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Lf extends Ef{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zf extends Ef{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Df extends Ef{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Rf extends Ef{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Of extends Ef{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pf extends Ef{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class If extends Ef{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nf extends Ef{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ff{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bf{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Hf{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jf{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wf{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Uf{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Kf(t){return new Uf(t)}function Vf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Gf(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function Jf(t){return Array.prototype.concat.apply([],t)}function Qf(t){return t.length>0?t[t.length-1]:null}function Zf(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function tg(t){return jo(t)?t:qo(t)?B(Promise.resolve(t)):Id(t)}function eg(t,e,i){return i?function(t,e){return Xf(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!rg(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>$f(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,s){if(i.segments.length>s.length)return!!rg(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!rg(i.segments,s))return!1;for(const e in n.children){if(!i.children[e])return!1;if(!t(i.children[e],n.children[e]))return!1}return!0}{const t=s.slice(0,i.segments.length),r=s.slice(i.segments.length);return!!rg(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,r)}}(e,i,i.segments)}(t.root,e.root)}class ig{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kf(this.queryParams)),this._queryParamMap}toString(){return ug.serialize(this)}}class ng{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Zf(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lg(this)}}class sg{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Kf(this.parameters)),this._parameterMap}toString(){return mg(this)}}function rg(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function og(t,e){let i=[];return Zf(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),Zf(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class ag{}class cg{parse(t){const e=new Ag(t);return new ig(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,i){if(!e.hasChildren())return lg(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return Zf(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=og(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${lg(e)}/${i[0]}`:`${lg(e)}/(${i.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${dg(e)}=${dg(t)}`).join("&"):`${dg(e)}=${dg(i)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const ug=new cg;function lg(t){return t.segments.map(t=>mg(t)).join("/")}function hg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dg(t){return hg(t).replace(/%3B/gi,";")}function pg(t){return hg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fg(t){return decodeURIComponent(t)}function gg(t){return fg(t.replace(/\+/g,"%20"))}function mg(t){return`${pg(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${pg(t)}=${pg(e[t])}`).join("")}`;var e}const _g=/^[^\/()?;=#]+/;function bg(t){const e=t.match(_g);return e?e[0]:""}const yg=/^[^=?&#]+/,wg=/^[^?&#]+/;class Ag{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ng([],{}):new ng([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new ng(t,e)),i}parseSegment(){const t=bg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new sg(fg(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=bg(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=bg(this.remaining);t&&(i=t,this.capture(i))}t[fg(e)]=fg(i)}parseQueryParam(t){const e=function(t){const e=t.match(yg);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(wg);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=gg(e),s=gg(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=bg(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new ng([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class vg{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Mg(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Mg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Cg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Cg(t,this._root).map(t=>t.value)}}function Mg(t,e){if(t===e.value)return e;for(const i of e.children){const e=Mg(t,i);if(e)return e}return null}function Cg(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Cg(t,i);if(n.length)return n.unshift(e),n}return[]}class Sg{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Tg(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class kg extends vg{constructor(t,e){super(t),this.snapshot=e,Rg(this,t)}toString(){return this.snapshot.toString()}}function Eg(t,e){const i=function(t,e){const i=new zg([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Dg("",new Sg(i,[]))}(t,e),n=new Fp([new sg("",{})]),s=new Fp({}),r=new Fp({}),o=new Fp({}),a=new Fp(""),c=new xg(n,s,o,a,r,"primary",e,i.root);return c.snapshot=i.root,new kg(new Sg(c,[]),i)}class xg{constructor(t,e,i,n,s,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(P(t=>Kf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(P(t=>Kf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Lg(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class zg{constructor(t,e,i,n,s,r,o,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=Kf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Dg extends vg{constructor(t,e){super(e),this.url=t,Rg(this,e)}toString(){return Og(this._root)}}function Rg(t,e){e.value._routerState=t,e.children.forEach(e=>Rg(t,e))}function Og(t){const e=t.children.length>0?` { ${t.children.map(Og).join(", ")} } `:"";return`${t.value}${e}`}function Pg(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Xf(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Xf(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iXf(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Ig(t.parent,e.parent))}function Ng(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Fg(t,e,i,n,s){let r={};return n&&Zf(n,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new ig(i.root===t?e:function t(e,i,n){const s={};return Zf(e.children,(e,r)=>{s[r]=e===i?n:t(e,i,n)}),new ng(e.segments,s)}(i.root,t,e),r,s)}class Bg{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Ng(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==Qf(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Hg{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function qg(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function jg(t,e,i){if(t||(t=new ng([],{})),0===t.segments.length&&t.hasChildren())return Yg(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],o=qg(i[n]),a=n0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Vg(o,a,e))return r;n+=2}else{if(!Vg(o,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{null!==i&&(s[n]=jg(t.children[n],e,i))}),Zf(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new ng(t.segments,s)}}function Wg(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=Wg(new ng([],{}),0,t))}),e}function Kg(t){const e={};return Zf(t,(t,i)=>e[i]=""+t),e}function Vg(t,e,i){return t==i.path&&Xf(e,i.parameters)}class Gg{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Pg(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Tg(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Zf(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=Tg(t),s=t.value.component?i.children:e;Zf(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=Tg(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new Yf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new qf(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Pg(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Xg(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Xg(t){Pg(t.value),t.children.forEach(Xg)}class $g{constructor(t,e){this.routes=t,this.module=e}}function Jg(t){return"function"==typeof t}function Qg(t){return t instanceof ig}const Zg=Symbol("INITIAL_VALUE");function tm(){return of(t=>Hp(...t.map(t=>t.pipe(uf(1),pf(Zg)))).pipe(ff((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Zg)return t;if(n===Zg&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Qg(n))return n}return t},t)},Zg),Fd(t=>t!==Zg),P(t=>Qg(t)?t:!0===t),uf(1)))}class em{constructor(t){this.segmentGroup=t||null}}class im{constructor(t){this.urlTree=t}}function nm(t){return new b(e=>e.error(new em(t)))}function sm(t){return new b(e=>e.error(new im(t)))}function rm(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class om{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Qt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(P(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(_f(t=>{if(t instanceof im)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof em)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(P(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(_f(t=>{if(t instanceof em)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new ng([],{primary:t}):t;return new ig(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(P(t=>new ng([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Id({});const i=[],n=[],s={};return Zf(t,(t,r)=>{const o=e(r,t).pipe(P(t=>s[r]=t));"primary"===r?i.push(o):n.push(o)}),Id.apply(null,i.concat(n)).pipe(Vp(),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Fd((e,i)=>t(e,i,n)):_,Xp(1),i?nf(e):Qp(()=>new Yp))}(),P(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,r){return Id(...i).pipe(Nd(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,r).pipe(_f(t=>{if(t instanceof em)return Id(null);throw t}))),wf(t=>!!t),_f((t,i)=>{if(t instanceof Yp||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Id(new ng([],{}));throw new em(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,r,o){return lm(n)!==r?nm(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):nm(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?sm(s):this.lineralizeSegments(i,s).pipe(H(i=>{const s=new ng(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:u}=am(e,n,s);if(!o)return nm(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?sm(l):this.lineralizeSegments(n,l).pipe(H(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(P(t=>(i._loadedConfig=t,new ng(n,{})))):Id(new ng(n,{}));const{matched:s,consumedSegments:r,lastChild:o}=am(e,i,n);if(!s)return nm(e);const a=n.slice(o);return this.getChildConfig(t,i,n).pipe(H(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>um(t,e,i)&&"primary"!==lm(i))}(t,i,n)?{segmentGroup:cm(new ng(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==lm(n)&&(i[lm(n)]=new ng([],{}));return i}(n,new ng(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>um(t,e,i))}(t,i,n)?{segmentGroup:cm(new ng(t.segments,function(t,e,i,n){const s={};for(const r of i)um(t,e,r)&&!n[lm(r)]&&(s[lm(r)]=new ng([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,r,a,n);return 0===o.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(P(t=>new ng(r,t))):0===n.length&&0===o.length?Id(new ng(r,{})):this.expandSegment(i,s,n,o,"primary",!0).pipe(P(t=>new ng(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Id(new $g(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Id(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(H(i=>i?this.configLoader.load(t.injector,e).pipe(P(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(Vf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Id(new $g([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;return n&&0!==n.length?Id(n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&Jg(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!Jg(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return tg(r)})).pipe(tm(),vf(t=>{if(!Qg(t))return;const e=Vf(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),P(t=>!0===t)):Id(!0)}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Id(i);if(n.numberOfChildren>1||!n.children.primary)return rm(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new ig(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Zf(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let r={};return Zf(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new ng(s,r)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function am(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||Gf)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function cm(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new ng(t.segments.concat(e.segments),e.children)}return t}function um(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function lm(t){return t.outlet||"primary"}class hm{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class dm{constructor(t,e){this.component=t,this.route=e}}function pm(t,e,i){const n=t._root;return function t(e,i,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Tg(i);return e.children.forEach(e=>{!function(e,i,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=i?i.value:null,c=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const u=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!rg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!rg(t.url,e.url)||!Xf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ig(t,e)||!Xf(t.queryParams,e.queryParams);case"paramsChange":default:return!Ig(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new hm(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,i,o.component?c?c.children:null:n,s,r),u&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new dm(c.outlet.component,a))}else a&&gm(i,c,r),r.canActivateChecks.push(new hm(s)),t(e,null,o.component?c?c.children:null:n,s,r)}(e,o[e.value.outlet],n,s.concat([e.value]),r),delete o[e.value.outlet]}),Zf(o,(t,e)=>gm(t,n.getContext(e),r)),r}(n,e?e._root:null,i,[n.value])}function fm(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function gm(t,e,i){const n=Tg(t),s=t.value;Zf(n,(t,n)=>{gm(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new dm(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function mm(t,e){return null!==t&&e&&e(new jf(t)),Id(!0)}function _m(t,e){return null!==t&&e&&e(new Hf(t)),Id(!0)}function bm(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Id(n.map(n=>Kp(()=>{const s=fm(n,e,i);let r;if(function(t){return t&&Jg(t.canActivate)}(s))r=tg(s.canActivate(e,t));else{if(!Jg(s))throw new Error("Invalid CanActivate guard");r=tg(s(e,t))}return r.pipe(wf())}))).pipe(tm()):Id(!0)}function ym(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Kp(()=>Id(e.guards.map(s=>{const r=fm(s,e.node,i);let o;if(function(t){return t&&Jg(t.canActivateChild)}(r))o=tg(r.canActivateChild(n,t));else{if(!Jg(r))throw new Error("Invalid CanActivateChild guard");o=tg(r(n,t))}return o.pipe(wf())})).pipe(tm())));return Id(s).pipe(tm())}class wm{}class Am{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=Cm(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new zg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Sg(i,e),s=new Dg(this.url,n);return this.inheritParamsAndData(s._root),Id(s)}catch(t){return new b(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=Lg(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=og(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,i,n)}catch(s){if(!(s instanceof wm))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new wm}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new wm;if((t.outlet||"primary")!==n)throw new wm;let s,r=[],o=[];if("**"===t.path){const r=i.length>0?Qf(i).parameters:{};s=new zg(i,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,km(t),n,t.component,t,vm(e),Mm(e)+i.length,Em(t))}else{const a=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new wm;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||Gf)(i,t,e);if(!n)throw new wm;const s={};Zf(n.posParams,(t,e)=>{s[e]=t.path});const r=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:r}}(e,t,i);r=a.consumedSegments,o=i.slice(a.lastChild),s=new zg(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,km(t),n,t.component,t,vm(e),Mm(e)+r.length,Em(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Cm(e,r,o,a,this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Sg(s,t)]}if(0===a.length&&0===u.length)return[new Sg(s,[])];const l=this.processSegment(a,c,u,"primary");return[new Sg(s,l)]}}function vm(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Mm(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function Cm(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>Sm(t,e,i)&&"primary"!==Tm(i))}(t,i,n)){const s=new ng(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&"primary"!==Tm(r)){const i=new ng([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Tm(r)]=i}return s}(t,e,n,new ng(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Sm(t,e,i))}(t,i,n)){const r=new ng(t.segments,function(t,e,i,n,s,r){const o={};for(const a of n)if(Sm(t,i,a)&&!s[Tm(a)]){const i=new ng([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Tm(a)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new ng(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function Sm(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function Tm(t){return t.outlet||"primary"}function km(t){return t.data||{}}function Em(t){return t.resolve||{}}function xm(t){return function(e){return e.pipe(of(e=>{const i=t(e);return i?B(i).pipe(P(()=>e)):B([e])}))}}class Lm extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let zm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Io(0,"router-outlet")},directives:function(){return[Xm]},encapsulation:2}),t})();function Dm(t,e=""){for(let i=0;i{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new $g(Jf(n.injector.get(Im)).map(Pm),n)}))}loadModuleFactory(t){return"string"==typeof t?B(this.loader.load(t)):tg(t()).pipe(H(t=>t instanceof Zt?Id(t):B(this.compiler.compileModuleAsync(t))))}}class Fm{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Bm,this.attachRef=null}}class Bm{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Fm,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Hm{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function qm(t){throw t}function jm(t,e,i){return e.parse("/")}function Ym(t,e){return Id(null)}let Wm=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new M,this.errorHandler=qm,this.malformedUriErrorHandler=jm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ym,afterPreactivation:Ym},this.urlHandlingStrategy=new Hm,this.routeReuseStrategy=new Lm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Qt),this.console=s.get(wu);const c=s.get(Ru);this.isNgZoneEnabled=c instanceof Ru,this.resetConfig(a),this.currentUrlTree=new ig(new ng([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Nm(r,o,t=>this.triggerEvent(new Ff(t)),t=>this.triggerEvent(new Bf(t))),this.routerState=Eg(this.currentUrlTree,this.rootComponentType),this.transitions=new Fp({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Fd(t=>0!==t.id),P(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),of(t=>{let i=!1,n=!1;return Id(t).pipe(vf(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),of(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Id(t).pipe(of(t=>{const i=this.transitions.getValue();return e.next(new xf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Wp:[t]}),of(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(of(t=>function(t,e,i,n,s){return new om(t,e,i,n,s).apply()}(n,s,r,t.extractedUrl,o).pipe(P(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),vf(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(r){return r.pipe(H(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){return new Am(t,e,i,n,s,r).recognize()}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(P(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),vf(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),vf(t=>{const i=new Rf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,r,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:o}=t,a=new xf(i,this.serializeUrl(n),s,r);e.next(a);const c=Eg(n,this.rootComponentType).snapshot;return Id(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Wp}),xm(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),vf(t=>{const e=new Of(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),P(t=>Object.assign(Object.assign({},t),{guards:pm(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(H(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Id(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return B(t).pipe(H(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Id(r.map(r=>{const o=fm(r,e,s);let a;if(function(t){return t&&Jg(t.canDeactivate)}(o))a=tg(o.canDeactivate(t,e,i,n));else{if(!Jg(o))throw new Error("Invalid CanDeactivate guard");a=tg(o(t,e,i,n))}return a.pipe(wf())})).pipe(tm()):Id(!0)}(t.component,t.route,i,e,n)),wf(t=>!0!==t,!0))}(o,n,s,t).pipe(H(i=>i&&"boolean"==typeof i?function(t,e,i,n){return B(e).pipe(Nd(e=>B([_m(e.route.parent,n),mm(e.route,n),ym(t,e.path,i),bm(t,e.route,i)]).pipe(Vp(),wf(t=>!0!==t,!0))),wf(t=>!0!==t,!0))}(n,r,t,e):Id(i)),P(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),vf(t=>{if(Qg(t.guardsResult)){const e=Vf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),vf(t=>{const e=new Pf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Fd(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new zf(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),xm(t=>{if(t.guards.canActivateChecks.length)return Id(t).pipe(vf(t=>{const e=new If(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),of(t=>{let i=!1;return Id(t).pipe((n=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(H(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return Id(t);let r=0;return B(i).pipe(Nd(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Id({});const r={};return B(s).pipe(H(s=>function(t,e,i,n){const s=fm(t,e,n);return tg(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(vf(t=>{r[s]=t}))),Xp(1),H(()=>Object.keys(r).length===s.length?Id(r):Wp))}(t._resolve,t,e,n).pipe(P(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Lg(t,i).resolve),null)))}(t.route,e,n,s)),vf(()=>r++),Xp(1),H(e=>r===i.length?Id(t):Wp))}))}),vf({next:()=>i=!0,complete:()=>{if(!i){const i=new zf(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(i),t.resolve(!1)}}}));var n,s}),vf(t=>{const e=new Nf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),xm(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),P(t=>{const e=function(t,e,i){const n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=i.value;const r=function(e,i,n){return i.children.map(i=>{for(const s of n.children)if(e.shouldReuseRoute(s.value.snapshot,i.value))return t(e,i,s);return t(e,i)})}(e,i,n);return new Sg(s,r)}{const n=e.retrieve(i.value);if(n){const t=n.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;nt(e,i));return new Sg(n,r)}}var s}(t,e._root,i?i._root:void 0);return new kg(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),vf(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),P(t=>(new Gg(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),vf({next(){i=!0},complete(){i=!0}}),Sf(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new zf(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),_f(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Qg(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new zf(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new Df(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return Wp}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Dm(t),this.config=t.map(Pm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,preserveQueryParams:r,queryParamsHandling:o,preserveFragment:a}=e;zn()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=i||this.routerState.root,u=a?this.currentUrlTree.fragment:s;let l=null;if(o)switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=n||null}else l=r?this.currentUrlTree.queryParams:n||null;return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,i,n,s){if(0===i.length)return Fg(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Bg(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return Zf(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Bg(i,e,n)}(i);if(r.toRoot())return Fg(e.root,new ng([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new Hg(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new Hg(t,t===e.root,0)}const n=Ng(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Hg(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Yg(o.segmentGroup,o.index,r.commands):jg(o.segmentGroup,o.index,r.commands);return Fg(o.segmentGroup,a,e,n,s)}(c,this.currentUrlTree,t,l,u)}navigateByUrl(t,e={skipLocationChange:!1}){zn()&&this.isNgZoneEnabled&&!Ru.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=Qg(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Lf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(Vt(Kr),Vt(ag),Vt(Bm),Vt(Sl),Vt(ao),Vt(tl),Vt(Lu),Vt(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Um=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new M,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){zn()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Vm(this.skipLocationChange),replaceUrl:Vm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Vm(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Vm(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wm),Lo(xg),zo("tabindex"),Lo(Wa),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Yo("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[ze]}),t})(),Km=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new M,this.subscription=t.events.subscribe(t=>{t instanceof Lf&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){zn()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Vm(this.skipLocationChange),replaceUrl:Vm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Vm(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Vm(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wm),Lo(xg),Lo(wl))},t.\u0275dir=be({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Yo("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(ka("href",e.href,ns),So("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[ze]}),t})();function Vm(t){return""===t||!!t}let Gm=(()=>{class t{constructor(t,e,i,n,s,r){this.router=t,this.element=e,this.renderer=i,this.cdr=n,this.link=s,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof Lf&&this.update()})}ngAfterContentInit(){B([this.links.changes,this.linksWithHrefs.changes,Id(null)]).pipe(Y()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=B(e).pipe(Y()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wm),Lo(Ha),Lo(Wa),Lo(Wr),Lo(Um,8),Lo(Km,8))},t.\u0275dir=be({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,Um,!0),nu(i,Km,!0)),2&t&&(Zc(n=ou())&&(e.links=n),Zc(n=ou())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ze]}),t})(),Xm=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new jc,this.deactivateEvents=new jc,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new $m(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Bm),Lo(dc),Lo(Ba),zo("name"),Lo(Wr))},t.\u0275dir=be({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class $m{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===xg?this.route:t===Bm?this.childContexts:this.parent.get(t,e)}}class Jm{}class Qm{preload(t,e){return e().pipe(_f(()=>Id(null)))}}class Zm{preload(t,e){return Id(null)}}let t_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new Nm(e,i,e=>t.triggerEvent(new Ff(e)),e=>t.triggerEvent(new Bf(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Fd(t=>t instanceof Lf),Nd(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Qt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return B(i).pipe(Y(),P(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(H(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Vt(Wm),Vt(tl),Vt(Lu),Vt(ao),Vt(Jm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),e_=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof xf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Lf&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Wf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Wf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Vt(Wm),Vt(ed),Vt(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const i_=new Nt("ROUTER_CONFIGURATION"),n_=new Nt("ROUTER_FORROOT_GUARD"),s_=[Sl,{provide:ag,useClass:cg},{provide:Wm,useFactory:function(t,e,i,n,s,r,o,a={},c,u){const l=new Wm(null,t,e,i,n,s,r,Jf(o));if(c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),a.errorHandler&&(l.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(l.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=ul();l.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(l.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(l.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(l.relativeLinkResolution=a.relativeLinkResolution),l},deps:[ag,Bm,Sl,ao,tl,Lu,Im,i_,[class{},new nt],[class{},new nt]]},Bm,{provide:xg,useFactory:function(t){return t.routerState.root},deps:[Wm]},{provide:tl,useClass:nl},t_,Zm,Qm,{provide:i_,useValue:{enableTracing:!1}}];function r_(){return new Vu("Router",Wm)}let o_=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[s_,l_(e),{provide:n_,useFactory:u_,deps:[[Wm,new nt,new rt]]},{provide:i_,useValue:i||{}},{provide:wl,useFactory:c_,deps:[hl,[new it(vl),new nt],i_]},{provide:e_,useFactory:a_,deps:[Wm,ed,i_]},{provide:Jm,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Zm},{provide:Vu,multi:!0,useFactory:r_},[h_,{provide:du,multi:!0,useFactory:d_,deps:[h_]},{provide:f_,useFactory:p_,deps:[h_]},{provide:yu,multi:!0,useExisting:f_}]]}}static forChild(e){return{ngModule:t,providers:[l_(e)]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Vt(n_,8),Vt(Wm,8))}}),t})();function a_(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new e_(t,e,i)}function c_(t,e,i={}){return i.useHash?new Cl(t,e):new Ml(t,e)}function u_(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function l_(t){return[{provide:co,multi:!0,useValue:t},{provide:Im,multi:!0,useValue:t}]}let h_=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new M}appInitializer(){return this.injector.get(pl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Wm),n=this.injector.get(i_);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Id(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(i_),i=this.injector.get(t_),n=this.injector.get(e_),s=this.injector.get(Wm),r=this.injector.get(Qu);t===r.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Vt(ao))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function d_(t){return t.appInitializer.bind(t)}function p_(t){return t.bootstrapListener.bind(t)}const f_=new Nt("Router Initializer");let g_=(()=>{class t{constructor(){}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(void 0!==this.instanceConfig)for(let i=0;ic(t)?s(...t):s(t))):new b(n=>{!function t(e,i,n,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,r),o=()=>t.removeEventListener(i,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,n),o=()=>t.off(i,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,n),o=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o1?Array.prototype.slice.call(arguments):t)}),n,i)})}class M_ extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class C_ 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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class S_ extends C_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}let T_=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class k_ extends T_{constructor(t,e=T_.now){super(t,()=>k_.delegate&&k_.delegate!==this?k_.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return k_.delegate&&k_.delegate!==this?k_.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}class E_ extends k_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),D_={};function R_(t){return t in D_&&(delete D_[t],!0)}const O_={setImmediate(t){const e=L_++;return D_[e]=!0,z_.then(()=>R_(e)&&t()),e},clearImmediate(t){R_(t)}};class P_ extends C_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=O_.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(O_.clearImmediate(e),t.scheduled=void 0)}}class I_ extends k_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new H_(t,e))}class H_{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new q_(t,this.compare,this.keySelector))}}class q_ extends f{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}const j_=new k_(C_);class Y_{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new W_(t,this.durationSelector))}}class W_ extends O{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=R(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function U_(t){return!c(t)&&t-parseFloat(t)+1>=0}function K_(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function V_(t,e=j_){return i=()=>function(t=0,e,i){let n=-1;return U_(e)?n=Number(e)<1?1:Number(e):S(e)&&(i=e),S(i)||(i=j_),new b(e=>{const s=U_(t)?t:+t-i.now();return i.schedule(K_,s,{index:0,period:n,subscriber:e})})}(t,e),function(t){return t.lift(new Y_(i))};var i}function G_(t){return e=>e.lift(new X_(t))}class X_{constructor(t){this.notifier=t}call(t,e){const i=new $_(t),n=R(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class $_ extends O{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class J_{call(t,e){return e.subscribe(new Q_(t))}}class Q_ extends f{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}class Z_ extends C_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class tb extends k_{}const eb=new tb(Z_);function ib(t,e){return new b(e?i=>e.schedule(nb,0,{error:t,subscriber:i}):e=>e.error(t))}function nb({error:t,subscriber:e}){e.error(t)}let sb,rb=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Id(this.value);case"E":return ib(this.error);case"C":return Up()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class ob extends f{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(ob.dispatch,this.delay,new ab(t,this.destination)))}_next(t){this.scheduleMessage(rb.createNext(t))}_error(t){this.scheduleMessage(rb.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(rb.createComplete()),this.unsubscribe()}}class ab{constructor(t,e){this.notification=t,this.destination=e}}class cb extends M{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new ub(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let r;if(this.closed)throw new w;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(t),r=new A(this,t)),n&&t.add(t=new ob(t,n)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class ub{constructor(t,e){this.time=t,this.value=e}}function lb(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,r,o=0,a=!1,c=!1;return function(u){o++,s&&!a||(a=!1,s=new cb(t,e,n),r=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,r=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{o--,l.unsubscribe(),r&&!c&&i&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}try{sb="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(TQ){sb=!1}let hb,db=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Zh(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&&!sb)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Vt(bu,8))},t.\u0275prov=ut({factory:function(){return new t(Vt(bu,8))},token:t,providedIn:"root"}),t})(),pb=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})();const fb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function gb(){if(hb)return hb;if("object"!=typeof document||!document)return hb=new Set(fb),hb;let t=document.createElement("input");return hb=new Set(fb.filter(e=>(t.setAttribute("type",e),t.type===e))),hb}let mb,_b,bb;function yb(t){return function(){if(null==mb&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>mb=!0}))}finally{mb=mb||!1}return mb}()?t:!!t.capture}function wb(){if("object"!=typeof document||!document)return 0;if(null==_b){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),_b=0,0===t.scrollLeft&&(t.scrollLeft=1,_b=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return _b}function Ab(t){if(function(){if(null==bb){const t="undefined"!=typeof document?document.head:null;bb=!(!t||!t.createShadowRoot&&!t.attachShadow)}return bb}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}const vb=new Nt("cdk-dir-doc",{providedIn:"root",factory:function(){return Gt(ll)}});let Mb=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new jc,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Vt(vb,8))},t.\u0275prov=ut({factory:function(){return new t(Vt(vb,8))},token:t,providedIn:"root"}),t})(),Cb=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new jc}get dir(){return this._dir}set dir(t){const e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ia([{provide:Mb,useExisting:t}])]}),t})(),Sb=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})();class Tb{}function kb(t){return t&&"function"==typeof t.connect}class Eb extends Tb{constructor(t){super(),this._data=t}connect(){return F_(this._data)?this._data:Id(this._data)}disconnect(){}}class xb{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new M,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let Lb=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const zb=["contentWrapper"],Db=["*"],Rb=new Nt("VIRTUAL_SCROLL_STRATEGY");class Ob{constructor(t,e,i){this._scrolledIndexChange=new M,this.scrolledIndexChange=this._scrolledIndexChange.pipe(B_()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,i){if(i0&&(n.end=Math.min(r,n.end+t),n.start=Math.max(0,Math.floor(e-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(this._itemSize*n.start),this._scrolledIndexChange.next(Math.floor(e))}}function Pb(t){return t._scrollStrategy}let Ib=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Ob(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=__(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=__(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=__(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Ia([{provide:Rb,useFactory:Pb,deps:[vt(()=>t)]}]),ze]}),t})(),Nb=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new M,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new b(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(V_(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Id()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Fd(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>v_(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Vt(Ru),Vt(db),Vt(ll,8))},t.\u0275prov=ut({factory:function(){return new t(Vt(Ru),Vt(db),Vt(ll,8))},token:t,providedIn:"root"}),t})(),Fb=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new M,this._elementScrolled=new b(t=>this.ngZone.runOutsideAngular(()=>v_(this.elementRef.nativeElement,"scroll").pipe(G_(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=wb()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==wb()?t.left=t.right:1==wb()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==wb()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==wb()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Nb),Lo(Ru),Lo(Mb,8))},t.\u0275dir=be({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Bb=(()=>{class t{constructor(t,e,i){this._platform=t,this._document=i,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?U(v_(e,"resize"),v_(e,"orientationchange")):Id(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(V_(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Vt(db),Vt(Ru),Vt(ll,8))},t.\u0275prov=ut({factory:function(){return new t(Vt(db),Vt(Ru),Vt(ll,8))},token:t,providedIn:"root"}),t})();const Hb="undefined"!=typeof requestAnimationFrame?x_:N_;let qb=(()=>{class t extends Fb{constructor(t,e,i,n,s,r,o){if(super(t,r,i,s),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=n,this._detachedSubject=new M,this._renderedRangeSubject=new M,this._orientation="vertical",this.scrolledIndexChange=new b(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(e))))),this.renderedRangeStream=this._renderedRangeSubject.asObservable(),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=h.EMPTY,!n)throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');o&&(this._viewportChanges=o.change().subscribe(()=>{this.checkViewportSize()}))}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(pf(null),V_(0,Hb)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){if(this._forOf)throw Error("CdkVirtualScrollViewport is already attached.");this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(G_(this._detachedSubject)).subscribe(t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,i;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const i="horizontal"==this.orientation,n=i?"X":"Y";let s=`translate${n}(${Number((i&&this.dir&&"rtl"==this.dir.value?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===e&&(s+=` translate${n}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=s&&(this._renderedContentTransform=s,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,e="auto"){const i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return super.measureScrollOffset(t||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),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 t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":this._totalContentSize+"px",this._totalContentWidth="horizontal"===this.orientation?this._totalContentSize+"px":""}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wr),Lo(Ru),Lo(Rb,8),Lo(Mb,8),Lo(Nb),Lo(Bb,8))},t.\u0275cmp=de({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){var i;1&t&&tu(zb,!0),2&t&&Zc(i=ou())&&(e._contentWrapper=i.first)},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&ua("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Ia([{provide:Fb,useExisting:t}]),ho],ngContentSelectors:Db,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&($o(),Oo(0,"div",0,1),Jo(2),Po(),Io(3,"div",2)),2&t&&(vs(3),ca("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function jb(t,e){if(!e.getBoundingClientRect)return 0;const i=e.getBoundingClientRect();return"horizontal"==t?i.width:i.height}let Yb=(()=>{class t{constructor(t,e,i,n,s){this._viewContainerRef=t,this._template=e,this._differs=i,this._viewport=n,this.viewChange=new M,this._dataSourceChanges=new M,this.cdkVirtualForTemplateCacheSize=20,this.dataStream=this._dataSourceChanges.pipe(pf(null),t=>t.lift(new J_),of(([t,e])=>this._changeDataSource(t,e)),lb(1)),this._differ=null,this._templateCache=[],this._needsUpdate=!1,this._destroyed=new M,this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(G_(this._destroyed)).subscribe(t=>{this._renderedRange=t,s.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,kb(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new Eb(F_(t)?t:Array.prototype.slice.call(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,i)=>t(e+(this._renderedRange?this._renderedRange.start:0),i):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;if(t.startthis._renderedRange.end)throw Error("Error: attempted to measure an item that isn't rendered.");const i=t.start-this._renderedRange.start;let n=0,s=t.end-t.start;for(;s--;){const t=this._viewContainerRef.get(s+i);let r=t?t.rootNodes.length:0;for(;r--;)n+=jb(e,t.rootNodes[r])}return n}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete();for(let t of this._templateCache)t.destroy()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(this.cdkVirtualForTrackBy)),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):Id()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){let i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}_applyChanges(t){t.forEachOperation((t,e,i)=>{if(null==t.previousIndex)this._insertViewForNewItem(i).context.$implicit=t.item;else if(null==i)this._cacheView(this._detachView(e));else{const n=this._viewContainerRef.get(e);this._viewContainerRef.move(n,i),n.context.$implicit=t.item}}),t.forEachIdentityChange(t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const t=this._viewContainerRef.get(i);t.context.index=this._renderedRange.start+i,t.context.count=e,this._updateComputedContextProperties(t.context)}}_cacheView(t){if(this._templateCache.length{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})(),Ub=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Sb,pb,Wb],Sb,Wb]}),t})();function Kb(){throw Error("Host already has a portal attached")}class Vb{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&Kb(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Gb extends Vb{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class Xb extends Vb{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class $b extends Vb{constructor(t){super(),this.element=t instanceof Ha?t.nativeElement:t}}class Jb{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Kb(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof Gb?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Xb?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof $b?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Qb extends Jb{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Zb=(()=>{class t extends Jb{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new jc,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ba),Lo(dc),Lo(ll))},t.\u0275dir=be({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ho]}),t})(),ty=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})();function ey(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class iy{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=w_(-this._previousScrollPosition.left),t.style.top=w_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function ny(){return Error("Scroll strategy has already been attached.")}class sy{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw ny();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ry{enable(){}disable(){}attach(){}}function oy(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function ay(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class cy{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw ny();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();oy(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let uy=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new ry,this.close=t=>new sy(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new iy(this._viewportRuler,this._document),this.reposition=t=>new cy(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(Vt(Nb),Vt(Bb),Vt(Ru),Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt(Nb),Vt(Bb),Vt(Ru),Vt(ll))},token:t,providedIn:"root"}),t})();class ly{constructor(t){if(this.scrollStrategy=new ry,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class hy{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class dy{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function py(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "top", "bottom" or "center".`)}function fy(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "start", "end" or "center".`)}let gy=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt(ll))},token:t,providedIn:"root"}),t})();const my=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let _y=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||my){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new M,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(uf(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEvents.asObservable()}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=w_(this._config.width),t.height=w_(this._config.height),t.minWidth=w_(this._config.minWidth),t.minHeight=w_(this._config.minHeight),t.maxWidth=w_(this._config.maxWidth),t.maxHeight=w_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;y_(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(G_(U(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const yy=/([A-Za-z%]+)$/;class wy{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new M,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),c=this._getOverlayFit(a,e,i,r);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ay(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:r}=t,o=this._getOffset(n,"x"),a=this._getOffset(n,"y");o&&(s+=o),a&&(r+=a);let c=0-r,u=r+e.height-i.height,l=this._subtractOverflows(e.width,0-s,s+e.width-i.width),h=this._subtractOverflows(e.height,c,u),d=l*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:l==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=vy(this._overlayRef.getConfig().minHeight),o=vy(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.right,0),r=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-i.top-t.y,0),a=Math.max(n.left-i.left-t.x,0);let c=0,u=0;return c=e.width<=n.width?a||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:r,left:c,bottom:o,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=w_(i.height),n.top=w_(i.top),n.bottom=w_(i.bottom),n.width=w_(i.width),n.left=w_(i.left),n.right=w_(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=w_(t)),s&&(n.maxWidth=w_(s))}this._lastBoundingBoxSize=i,Ay(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Ay(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ay(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Ay(i,this._getExactOverlayY(e,t,n)),Ay(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),i.transform=o.trim(),r.maxHeight&&(n?i.maxHeight=w_(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=w_(r.maxWidth):s&&(i.maxWidth="")),Ay(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=w_(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=w_(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ay(t,i),isOriginOutsideView:oy(t,i),isOverlayClipped:ay(e,i),isOverlayOutsideView:oy(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{fy("originX",t.originX),py("originY",t.originY),fy("overlayX",t.overlayX),py("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&y_(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Ha)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ay(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function vy(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(yy);return i&&"px"!==i?null:parseFloat(e)}return t||null}class My{constructor(t,e,i,n,s,r,o){this._preferredPositions=[],this._positionStrategy=new wy(i,n,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new hy(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class Cy{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Sy=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Cy}connectedTo(t,e,i){return new My(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new wy(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Vt(Bb),Vt(ll),Vt(db),Vt(_y))},t.\u0275prov=ut({factory:function(){return new t(Vt(Bb),Vt(ll),Vt(db),Vt(_y))},token:t,providedIn:"root"}),t})(),Ty=0,ky=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=c,this._location=u}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new ly(t);return s.direction=s.direction||this._directionality.value,new by(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Ty++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Qu)),new Qb(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Vt(uy),Vt(_y),Vt(Ba),Vt(Sy),Vt(gy),Vt(ao),Vt(Ru),Vt(ll),Vt(Mb),Vt(Sl,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Ey=[{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"}],xy=new Nt("cdk-connected-overlay-scroll-strategy");let Ly=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),zy=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new jc,this.positionChange=new jc,this.attach=new jc,this.detach=new jc,this.overlayKeydown=new jc,this._templatePortal=new Xb(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=m_(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=m_(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=m_(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=m_(t)}get push(){return this._push}set push(t){this._push=m_(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Ey),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||ey(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new ly({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Lo(ky),Lo(lc),Lo(dc),Lo(xy),Lo(Mb,8))},t.\u0275dir=be({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[ze]}),t})();const Dy={provide:xy,deps:[ky],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Ry=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[ky,Dy],imports:[[Sb,ty,Ub],Ub]}),t})();function Oy(t,e=j_){return i=>i.lift(new Py(t,e))}class Py{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Iy(t,this.dueTime,this.scheduler))}}class Iy extends f{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ny,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Ny(t){t.debouncedNext()}let Fy=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),By=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=A_(t);return new b(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new M,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(Vt(Fy))},t.\u0275prov=ut({factory:function(){return new t(Vt(Fy))},token:t,providedIn:"root"}),t})(),Hy=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new jc,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=m_(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=__(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Oy(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Lo(By),Lo(Ha),Lo(Ru))},t.\u0275dir=be({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),qy=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[Fy]}),t})();function jy(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Yy=0;const Wy=new Map;let Uy=null,Ky=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Wy.set(e,{messageElement:e,referenceCount:0})):Wy.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Wy.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Uy&&0===Uy.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Wy.get(e);!function(t,e,i){const n=jy(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=Wy.get(e);i.referenceCount--,function(t,e,i){const n=jy(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=jy(t,"aria-describedby"),n=Wy.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":(""+e).trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt(ll))},token:t,providedIn:"root"}),t})();class Vy{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new M,this.change=new M,t instanceof Wc&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(vf(t=>this._pressedLetters.push(t)),Oy(t),Fd(()=>this._pressedLetters.length>0),P(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||ey(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Wc?this._items.toArray():this._items}}class Gy extends Vy{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Xy extends Vy{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let $y=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(TQ){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===Qy(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=Qy(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===n)return!1;if("audio"===n){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===n){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==n||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Jy(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(Vt(db))},t.\u0275prov=ut({factory:function(){return new t(Vt(db))},token:t,providedIn:"root"}),t})();function Jy(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Qy(t){if(!Jy(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Zy{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(uf(1)).subscribe(t)}}let tw=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Zy(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(Vt($y),Vt(Ru),Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt($y),Vt(Ru),Vt(ll))},token:t,providedIn:"root"}),t})(),ew=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=m_(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=m_(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(tw),Lo(ll))},t.\u0275dir=be({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),t})();"undefined"!=typeof Element&∈const iw=new Nt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),nw=new Nt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let sw=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(sw),Lo(By),Lo(Ru))},t.\u0275dir=be({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function ow(t){return 0===t.buttons}const aw=new Nt("cdk-focus-monitor-default-options"),cw=yb({passive:!0,capture:!0});let uw=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=ow(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=lw(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=lw(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Id(null);const i=A_(t),n=Ab(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject.asObservable();const r={checkChildren:e,subject:new M,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject.asObservable()}stopMonitoring(t){const e=A_(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=A_(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=lw(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==lw(t))return;const n=this._getFocusOrigin(t);this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,cw),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,cw)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,cw),t.addEventListener("mousedown",this._documentMousedownListener,cw),t.addEventListener("touchstart",this._documentTouchstartListener,cw),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cw),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cw),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,cw),t.removeEventListener("mousedown",this._documentMousedownListener,cw),t.removeEventListener("touchstart",this._documentTouchstartListener,cw),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Vt(Ru),Vt(db),Vt(ll,8),Vt(aw,8))},t.\u0275prov=ut({factory:function(){return new t(Vt(Ru),Vt(db),Vt(ll,8),Vt(aw,8))},token:t,providedIn:"root"}),t})();function lw(t){return t.composedPath?t.composedPath()[0]:t.target}let hw=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new jc,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(uw))},t.\u0275dir=be({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),dw=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(Vt(db),Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt(db),Vt(ll))},token:t,providedIn:"root"}),t})(),pw=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Vt(dw))},imports:[[pb,qy]]}),t})();const fw=new Va("9.2.4");class gw{}function mw(t,e){return{type:7,name:t,definitions:e,options:{}}}function _w(t,e=null){return{type:4,styles:e,timings:t}}function bw(t,e=null){return{type:3,steps:t,options:e}}function yw(t,e=null){return{type:2,steps:t,options:e}}function ww(t){return{type:6,styles:t,offset:null}}function Aw(t,e,i){return{type:0,name:t,styles:e,options:i}}function vw(t){return{type:5,steps:t}}function Mw(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Cw(t=null){return{type:9,options:t}}function Sw(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Tw(t){Promise.resolve(null).then(t)}class kw{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Tw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ew{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?Tw(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function xw(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Lw(t){switch(t.length){case 0:return new kw;case 1:return t[0];default:return new Ew(t)}}function zw(t,e,i,n,s={},r={}){const o=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),a){case"!":a=s[i];break;case"*":a=r[i];break;default:a=e.normalizeStyleValue(i,n,a,o)}l[n]=a}),n||a.push(l),u=l,c=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Dw(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Rw(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Rw(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Rw(i,"destroy",t)))}}function Rw(t,e,i){const n=i.totalTime,s=Ow(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function Ow(t,e,i,n,s="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function Pw(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function Iw(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Nw=(t,e)=>!1,Fw=(t,e)=>!1,Bw=(t,e,i)=>[];const Hw=xw();(Hw||"undefined"!=typeof Element)&&(Nw=(t,e)=>t.contains(e),Fw=(()=>{if(Hw||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):Fw}})(),Bw=(t,e,i)=>{let n=[];if(i)n.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&n.push(i)}return n});let qw=null,jw=!1;function Yw(t){qw||(qw=("undefined"!=typeof document?document.body:null)||{},jw=!!qw.style&&"WebkitAppearance"in qw.style);let e=!0;return qw.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in qw.style,!e&&jw)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in qw.style),e}const Ww=Fw,Uw=Nw,Kw=Bw;function Vw(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let Gw=(()=>{class t{validateStyleProperty(t){return Yw(t)}matchesElement(t,e){return Ww(t,e)}containsElement(t,e){return Uw(t,e)}query(t,e,i){return Kw(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],o){return new kw(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Xw=(()=>{class t{}return t.NOOP=new Gw,t})();function $w(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Jw(parseFloat(e[1]),e[2])}function Jw(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Qw(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=Jw(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=Jw(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else n=t;if(!i){let i=!1,r=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function Zw(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function tA(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else Zw(t,i);return i}function eA(t,e,i){return i?e+":"+i+";":""}function iA(t){let e="";for(let i=0;i{const s=hA(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),xw()&&iA(t))}function sA(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=hA(e);t.style[i]=""}),xw()&&iA(t))}function rA(t){return Array.isArray(t)?1==t.length?t[0]:yw(t):t}const oA=new RegExp("{{\\s*(.+?)\\s*}}","g");function aA(t){let e=[];if("string"==typeof t){let i;for(;i=oA.exec(t);)e.push(i[1]);oA.lastIndex=0}return e}function cA(t,e,i){const n=t.toString(),s=n.replace(oA,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push("Please provide a value for the animation param "+n),s=""),s.toString()});return s==n?t:s}function uA(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const lA=/-+([a-z0-9])/g;function hA(t){return t.replace(lA,(...t)=>t[1].toUpperCase())}function dA(t,e){return 0===t||0===e}function pA(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],o=[];if(n.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],r=n[2],o=n[3];e.push(yA(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(yA(o,s))}(t,i,e)):i.push(t),i}const _A=new Set(["true","1"]),bA=new Set(["false","0"]);function yA(t,e){const i=_A.has(t)||bA.has(t),n=_A.has(e)||bA.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&i&&"boolean"==typeof s&&(o=s?_A.has(t):bA.has(t)),!a&&n&&"boolean"==typeof r&&(a=r?_A.has(e):bA.has(e)),o&&a}}const wA=new RegExp("s*:selfs*,?","g");function AA(t,e,i){return new vA(t).build(e,i)}class vA{constructor(t){this._driver=t}build(t,e){const i=new MA(e);return this._resetContextStyleTimingState(i),fA(this,rA(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,r=n||{};if(i.styles.forEach(t=>{if(CA(t)){const e=t;Object.keys(e).forEach(t=>{aA(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=uA(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=fA(this,rA(t.animation),e);return{type:1,matchers:mA(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:SA(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>fA(this,t,e)),options:SA(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=fA(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:SA(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return TA(Qw(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=TA(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||Qw(n,e),TA(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:ww({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=ww(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(CA(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=o.startTime),a&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=aA(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let r=!1,o=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(CA(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(CA(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),o=o||u<0||u>1,r=r||u0&&n{const r=l>0?n==h?1:l*n:s[n],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:fA(this,rA(t.animation),e),options:SA(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:SA(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:SA(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(wA,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Pw(e.collectedStyles,e.currentQuerySelector,{});const o=fA(this,rA(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:SA(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Qw(t.timings,e.errors,!0);return{type:12,animation:fA(this,rA(t.animation),e),timings:i,options:null}}}class MA{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function CA(t){return!Array.isArray(t)&&"object"==typeof t}function SA(t){var e;return t?(t=Zw(t)).params&&(t.params=(e=t.params)?Zw(e):null):t={},t}function TA(t,e,i){return{duration:t,delay:e,easing:i}}function kA(t,e,i,n,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class EA{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const xA=new RegExp(":enter","g"),LA=new RegExp(":leave","g");function zA(t,e,i,n,s,r={},o={},a,c,u=[]){return(new DA).buildKeyframes(t,e,i,n,s,r,o,a,c,u)}class DA{buildKeyframes(t,e,i,n,s,r,o,a,c,u=[]){c=c||new EA;const l=new OA(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([r],null,l.errors,a),fA(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[kA(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?$w(i.duration):null,r=null!=i.delay?$w(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),fA(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=RA);const t=$w(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>fA(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?$w(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),fA(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Qw(e.params?cA(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?$w(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=RA);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(a=o.currentTimeline),fA(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;fA(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const RA={};class OA{constructor(t,e,i,n,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=RA,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new PA(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=$w(i.duration)),null!=i.delay&&(n.delay=$w(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=cA(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new OA(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=RA,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new IA(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,r){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(xA,"."+this._enterClassName)).replace(LA,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class PA{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new PA(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):tA(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=cA(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const o=tA(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=r/this.duration),n.push(o)});const s=t.size?uA(t.values()):[],r=e.size?uA(e.values()):[];if(i){const t=n[0],e=Zw(t);t.offset=0,e.offset=1,n=[t,e]}return kA(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class IA extends PA{constructor(t,e,i,n,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,o=e/r,a=tA(t[0],!1);a.offset=0,s.push(a);const c=tA(t[0],!1);c.offset=NA(o),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let o=tA(t[n],!1);o.offset=NA((e+o.offset*i)/r),s.push(o)}i=r,e=0,n="",t=s}return kA(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function NA(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class FA{}class BA extends FA{normalizePropertyName(t,e){return hA(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(HA[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+s}}const HA=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function qA(t,e,i,n,s,r,o,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const jA={};class YA{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,o,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||jA,d=this.buildStyles(i,o&&o.params||jA,l),p=a&&a.params||jA,f=this.buildStyles(n,p,l),g=new Set,m=new Map,_=new Map,b="void"===n,y={params:Object.assign(Object.assign({},h),p)},w=u?[]:zA(t,e,this.ast.animation,s,r,d,f,y,c,l);let A=0;if(w.forEach(t=>{A=Math.max(t.duration+t.delay,A)}),l.length)return qA(e,this._triggerName,i,n,b,d,f,[],[],m,_,A,l);w.forEach(t=>{const i=t.element,n=Pw(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=Pw(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const v=uA(g.values());return qA(e,this._triggerName,i,n,b,d,f,w,v,m,_,A)}}class WA{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=Zw(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=cA(r,n,e)),i[t]=r})}}),i}}class UA{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new WA(t.style,t.options&&t.options.params||{})}),KA(this.states,"true","1"),KA(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new YA(t,e,this.states))}),this.fallbackTransition=new YA(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function KA(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const VA=new EA;class GA{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=AA(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: "+i.join("\n"));this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=zw(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const o=new Map;if(s?(r=zA(this._driver,e,s,"ng-enter","ng-leave",{},{},i,VA,n),r.forEach(t=>{const e=Pw(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error("Unable to create the animation due to the following errors: "+n.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const a=Lw(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,i,n){const s=Ow(e,"","","");return Dw(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const XA=[],$A={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JA={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class QA{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=Zw(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const ZA=new QA("void");class tv{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,av(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const r=Pw(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};r.push(o);const a=Pw(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(av(t,"ng-trigger"),av(t,"ng-trigger-"+e),a[e]=ZA),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),r=new iv(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(av(t,"ng-trigger"),av(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new QA(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=ZA),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{sA(t,i),nA(t,n)})}return}const u=Pw(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:r,isFallbackTransition:h}),h||(av(t,"ng-animate-queued"),r.onStart(()=>{cv(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),u.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Lw(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,r=this._engine.statesByElement.get(t)[n]||ZA,o=new QA("void"),a=new iv(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==$A||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){av(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=Ow(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Dw(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class ev{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new tv(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),av(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),cv(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(nv(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return nv(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Lw(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=$A,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Lw(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const i=new EA,n=[],s=new Map,r=[],o=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+f++;p.set(e,i),t.forEach(t=>av(t,i))});const g=[],m=new Set,_=new Set;for(let L=0;Lm.add(t)):_.add(t))}const b=new Map,y=ov(h,Array.from(m));y.forEach((t,e)=>{const i="ng-leave"+f++;b.set(e,i),t.forEach(t=>av(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>cv(t,i))}),y.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>cv(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],A=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(t,i,d,h,u);if(f.errors&&f.errors.length)A.push(f);else{if(u)return e.onStart(()=>sA(s,f.fromStyles)),e.onDestroy(()=>nA(s,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>sA(s,f.fromStyles)),e.onDestroy(()=>nA(s,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>Pw(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(A.length){const t=[];A.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const v=new Map,M=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(M.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,v))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Pw(v,e,[]).push(t),t.destroy()})});const C=g.filter(t=>lv(t,a,c)),S=new Map;rv(S,this.driver,_,c,"*").forEach(t=>{lv(t,a,c)&&C.push(t)});const T=new Map;d.forEach((t,e)=>{rv(T,this.driver,new Set(t),a,"!")}),C.forEach(t=>{const e=S.get(t),i=T.get(t);S.set(t,Object.assign(Object.assign({},e),i))});const k=[],E=[],x={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(u.has(e))return r.onDestroy(()=>nA(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void n.push(r);let t=x;if(M.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=M.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>M.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,v,s,T,S);if(r.setRealPlayer(i),t===x)k.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Lw(e)),n.push(r)}}else sA(e,o.fromStyles),r.onDestroy(()=>nA(e,o.toStyles)),E.push(r),u.has(e)&&n.push(r)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Lw(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let L=0;L!t.destroyed);n.length?uv(this,t,n):this.processLeaveNode(t)}return g.length=0,k.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),k}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,c=Pw(i,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}sA(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const o=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new kw(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=r.get(h),_=zw(0,this._normalizer,0,e.keyframes,g,m),b=this._buildPlayer(e,_,f);if(e.subTimeline&&n&&l.add(h),p){const e=new iv(t,o,h);e.setRealPlayer(b),c.push(e)}return b});c.forEach(t=>{Pw(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>av(t,"ng-animating"));const d=Lw(h);return d.onDestroy(()=>{u.forEach(t=>cv(t,"ng-animating")),nA(a,e.toStyles)}),l.forEach(t=>{Pw(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new kw(t.duration,t.delay)}}class iv{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new kw,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Dw(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Pw(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function nv(t){return t&&1===t.nodeType}function sv(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function rv(t,e,i,n,s){const r=[];i.forEach(t=>r.push(sv(t)));const o=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=JA,o.push(n))}),t.set(n,r)});let a=0;return i.forEach(t=>sv(t,r[a++])),o}function ov(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=i.has(o)?o:n.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&i.get(e).push(t)}),i}function av(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function cv(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function uv(t,e,i){Lw(i).onDone(()=>t.processLeaveNode(e))}function lv(t,e,i){const n=i.get(t);if(!n)return!1;let s=e.get(t);return s?n.forEach(t=>s.add(t)):e.set(t,n),i.delete(t),!0}class hv{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new ev(t,e,i),this._timelineEngine=new GA(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let o=this._triggerCache[r];if(!o){const t=[],e=AA(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new UA(t,e)}(n,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=Iw(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=Iw(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function dv(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=fv(e[0]),e.length>1&&(n=fv(e[e.length-1]))):e&&(i=fv(e)),i||n?new pv(t,i,n):null}let pv=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&nA(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nA(this._element,this._initialStyles),this._endStyles&&(nA(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sA(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sA(this._element,this._endStyles),this._endStyles=null),nA(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function fv(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=vv(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),wv(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=vv(t,"").split(","),n=yv(i,e);n>=0&&(i.splice(n,1),Av(t,"",i.join(",")))}(this._element,this._name))}}function _v(t,e,i){Av(t,"PlayState",i,bv(t,e))}function bv(t,e){const i=vv(t,"");return i.indexOf(",")>0?yv(i.split(","),e):yv([i],e)}function yv(t,e){for(let i=0;i=0)return i;return-1}function wv(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Av(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function vv(t,e){return t.style["animation"+e]}class Mv{constructor(t,e,i,n,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new mv(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:gA(this.element,i))})}this.currentSnapshot=t}}class Cv extends kw{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Vw(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Sv{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return Yw(t)}matchesElement(t,e){return Ww(t,e)}containsElement(t,e){return Uw(t,e)}query(t,e,i){return Kw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>Vw(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=s+"}\n"}),n+="}\n";const r=document.createElement("style");return r.innerHTML=n,r}animate(t,e,i,n,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof Mv),c={};dA(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=pA(t,e,c));if(0==i)return new Cv(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(h);const d=dv(t,e),p=new Mv(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Tv{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:gA(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class kv{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ev().toString()),this._cssKeyframesDriver=new Sv}validateStyleProperty(t){return Yw(t)}matchesElement(t,e){return Ww(t,e)}containsElement(t,e){return Uw(t,e)}query(t,e,i){return Kw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=r.filter(t=>t instanceof Tv);dA(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=dv(t,e=pA(t,e=e.map(t=>tA(t,!1)),c));return new Tv(t,e,a,l)}}function Ev(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let xv=(()=>{class t extends gw{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?yw(t):t;return Dv(this._renderer,null,e,"register",[i]),new Lv(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Vt(ja),Vt(ll))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Lv extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new zv(this._id,t,e||{},this._renderer)}}class zv{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Dv(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Dv(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let Rv=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Ov("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(r),new Pv(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Vt(ja),Vt(hv),Vt(Ru))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Ov{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Pv extends Ov{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Iv=(()=>{class t extends hv{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll),Vt(Xw),Vt(FA))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Nv=new Nt("AnimationModuleType"),Fv=[{provide:Xw,useFactory:function(){return"function"==typeof Ev()?new kv:new Sv}},{provide:Nv,useValue:"BrowserAnimations"},{provide:gw,useClass:xv},{provide:FA,useFactory:function(){return new BA}},{provide:hv,useClass:Iv},{provide:ja,useFactory:function(t,e,i){return new Rv(t,e,i)},deps:[yd,hv,Ru]}];let Bv=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:Fv,imports:[Rd]}),t})();const Hv=["*",[["mat-option"],["ng-container"]]],qv=["*","mat-option, ng-container"];function jv(t,e){if(1&t&&Io(0,"mat-pseudo-checkbox",3),2&t){const t=Go();Do("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const Yv=["*"];let Wv=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Uv=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const Kv=new Va("9.2.4"),Vv=new Nt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Gv=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return zn()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);const n=getComputedStyle(i);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Kv.full!==fw.full&&console.warn("The Angular Material version ("+Kv.full+") does not match the Angular CDK version ("+fw.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Vt(dw),Vt(Vv,8),Vt(ll,8))},imports:[[Sb],Sb]}),t})();function Xv(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=m_(t)}}}function $v(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),i&&this._elementRef.nativeElement.classList.add("mat-"+i),this._color=i)}}}function Jv(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=m_(t)}}}function Qv(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function Zv(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new M}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function tM(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new b(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const eM=new Nt("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Gt(Au)}});class iM{constructor(){this._localeChanges=new M}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const nM=new Nt("mat-date-formats");let sM;try{sM="undefined"!=typeof Intl}catch(TQ){sM=!1}const rM={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},oM=uM(31,t=>String(t+1)),aM={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},cM=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function uM(t,e){const i=Array(t);for(let n=0;n{class t extends iM{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(sM){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return uM(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return rM[t]}getDateNames(){if(sM){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return uM(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return oM}getDayOfWeekNames(t){if(sM){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return uM(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return aM[t]}getYearName(t){if(sM){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(sM){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(cM.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(Vt(eM,8),Vt(db))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),hM=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),dM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function pM(t,e,i="mat"){t.changes.pipe(pf(t)).subscribe(({length:t})=>{fM(e,i+"-2-line",!1),fM(e,i+"-3-line",!1),fM(e,i+"-multi-line",!1),2===t||3===t?fM(e,`${i}-${t}-line`,!0):t>3&&fM(e,i+"-multi-line",!0)})}function fM(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let gM=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Gv],Gv]}),t})();class mM{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const _M={enterDuration:450,exitDuration:400},bM=yb({passive:!0}),yM=["mousedown","touchstart"],wM=["mouseup","mouseleave","touchend","touchcancel"];class AM{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=A_(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},_M),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-r+"px",u.style.top=a-r+"px",u.style.height=2*r+"px",u.style.width=2*r+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=c+"ms",this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new mM(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},_M),t.config.animation);i.style.transitionDuration=n.exitDuration+"ms",i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=A_(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(yM))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(wM),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=ow(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,bM)})})}_removeTriggerEvents(){this._triggerElement&&(yM.forEach(t=>{this._triggerElement.removeEventListener(t,this,bM)}),this._pointerUpEventsRegistered&&wM.forEach(t=>{this._triggerElement.removeEventListener(t,this,bM)}))}}const vM=new Nt("mat-ripple-global-options");let MM=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new AM(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Ru),Lo(db),Lo(vM,8),Lo(Nv,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),CM=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Gv,pb],Gv]}),t})(),SM=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(Lo(Nv,8))},t.\u0275cmp=de({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ua("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),TM=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})();class kM{}const EM=Xv(kM);let xM=0,LM=(()=>{class t extends EM{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+xM++}}return t.\u0275fac=function(e){return zM(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(So("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),ua("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[ho],ngContentSelectors:qv,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&($o(Hv),Oo(0,"label",0),va(1),Jo(2),Po(),Jo(3,1)),2&t&&(Do("id",e._labelId),vs(1),Ca("",e.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const zM=gn(LM);let DM=0;class RM{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const OM=new Nt("MAT_OPTION_PARENT_COMPONENT");let PM=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+DM++,this.onSelectionChange=new jc,this._stateChanges=new M}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=m_(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||ey(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new RM(this,t))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wr),Lo(OM,8),Lo(LM,8))},t.\u0275cmp=de({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Yo("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(ka("id",e.id),So("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ua("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Yv,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&($o(),Eo(0,jv,1,2,"mat-pseudo-checkbox",0),Oo(1,"span",1),Jo(2),Po(),Io(3,"div",2)),2&t&&(Do("ngIf",e.multiple),vs(3),Do("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[bh,MM,SM],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function IM(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;ei+n?Math.max(0,s-n+e):i}let FM=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[CM,Qh,TM]]}),t})();const BM=new Nt("mat-label-global-options");function HM(t,e){}class qM{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const jM={dialogContainer:mw("dialogContainer",[Aw("void, exit",ww({opacity:0,transform:"scale(0.7)"})),Aw("enter",ww({transform:"none"})),Mw("* => enter",_w("150ms cubic-bezier(0, 0, 0.2, 1)",ww({transform:"none",opacity:1}))),Mw("* => void, * => exit",_w("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ww({opacity:0})))])};function YM(){throw Error("Attempting to attach dialog content after content is already attached")}let WM=(()=>{class t extends Jb{constructor(t,e,i,n,s){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new jc,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&YM(),this._setupFocusTrap(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&YM(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&YM(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||this._focusTrap.focusInitialElement()||this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(tw),Lo(Wr),Lo(ll,8),Lo(qM))},t.\u0275cmp=de({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&tu(Zb,!0),2&t&&Zc(i=ou())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Wo("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(So("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Ea("@dialogContainer",e._state))},features:[ho],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Eo(0,HM,0,0,"ng-template",0)},directives:[Zb],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[jM.dialogContainer]}}),t})(),UM=0;class KM{constructor(t,e,i="mat-dialog-"+UM++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new M,this._afterClosed=new M,this._beforeClosed=new M,this._state=0,e._id=i,e._animationStateChanged.pipe(Fd(t=>"done"===t.phaseName&&"enter"===t.toState),uf(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Fd(t=>"done"===t.phaseName&&"exit"===t.toState),uf(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Fd(t=>27===t.keyCode&&!this.disableClose&&!ey(t))).subscribe(t=>{t.preventDefault(),this.close()}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Fd(t=>"start"===t.phaseName),uf(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const VM=new Nt("MatDialogData"),GM=new Nt("mat-dialog-default-options"),XM=new Nt("mat-dialog-scroll-strategy"),$M={provide:XM,deps:[ky],useFactory:function(t){return()=>t.scrollStrategies.block()}};let JM=(()=>{class t{constructor(t,e,i,n,s,r,o){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=r,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new M,this._afterOpenedAtThisLevel=new M,this._ariaHiddenElements=new Map,this.afterAllClosed=Kp(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(pf(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}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new qM)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ly({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=ao.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:qM,useValue:e}]}),n=new Gb(WM,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const s=new KM(i,e,n.id);if(t instanceof lc)e.attachTemplatePortal(new Xb(t,null,{$implicit:n.data,dialogRef:s}));else{const i=this._createInjector(n,s,e),r=e.attachComponentPortal(new Gb(t,n.viewContainerRef,i));s.componentInstance=r.instance}return s.updateSize(n.width,n.height).updatePosition(n.position),s}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:WM,useValue:i},{provide:VM,useValue:t.data},{provide:KM,useValue:e}];return!t.direction||n&&n.get(Mb,null)||s.push({provide:Mb,useValue:{value:t.direction,change:Id()}}),ao.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(Vt(ky),Vt(ao),Vt(Sl,8),Vt(GM,8),Vt(XM),Vt(t,12),Vt(_y))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),QM=0,ZM=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=nC(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM,8),Lo(Ha),Lo(JM))},t.\u0275dir=be({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&Yo("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&So("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ze]}),t})(),tC=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+QM++}ngOnInit(){this._dialogRef||(this._dialogRef=nC(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM,8),Lo(Ha),Lo(JM))},t.\u0275dir=be({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&ka("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),eC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),iC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function nC(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let sC=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[JM,$M],imports:[[Ry,ty,Gv],Gv]}),t})();var rC=i("etrl");const oC=[5,10,25,100,1e3,1e4];function aC(t){let e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(t=>{"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function cC(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function uC(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function lC(t){let e="";for(const i of t)"technical"===i.type&&(e+=i.name+", ");return e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function hC(t,e){const i=e.find(e=>e.id===t);return i?i.parentGroupId?hC(i.parentGroupId,e).concat(i):[i]:[]}function dC(t,e){for(const i of t)if(i.namespace+":"+i.friendlyName===e)return i;return null}function pC(){const t=new qM;return t.disableClose=!0,t.autoFocus=!1,t}function fC(t){return"virt"===t.namespace.split(":")[4]}function gC(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?"invalid"===t.toLowerCase()||e&&"invalid"===t.toLowerCase()?"INACTIVE":t:"ACTIVE"}function mC(t){let e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(t=>{"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)})),e}function _C(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}function bC(t,e,i,n){const s=e.active,r=e.direction;return s&&""!==r?t.sort((t,e)=>{const o=i(t,s,n),a=i(e,s,n);return new Intl.Collator("cs",{numeric:!0}).compare(o,a)*("asc"===r?1:-1)}):t}function yC(t,e,i,n,s){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),-1!==r.toLowerCase().indexOf(e)}function wC(t,e,i,n){const s=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!r.includes(t)),t.forEach(t=>{const r={};e.forEach(e=>{var s;r[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(r)}),s}function AC(t,e="csv",i="export"){switch(e){case"csv":const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),r=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));r.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const o=r.join("\r\n"),a=new Blob([o],{type:"text/csv"});Object(rC.saveAs)(a,`${i}.${e}`)}}function vC(...t){if(1===t.length){const e=t[0];if(c(e))return MC(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return MC(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return MC(t=1===t.length&&c(t[0])?t[0]:t,null).pipe(P(t=>e(...t)))}return MC(t,null)}function MC(t,e){return new b(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&u||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}class CC{}let SC=(()=>{class t extends CC{getTranslation(t){return Id({})}}return t.\u0275fac=function(e){return TC(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const TC=gn(SC);class kC{}let EC=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function xC(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,r=typeof t;if(r==typeof e&&"object"==r){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!xC(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{class t extends DC{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!LC(t)||!LC(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return LC(n)?n:t}):t}}return t.\u0275fac=function(e){return OC(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const OC=gn(RC);class PC{}let IC=(()=>{class t extends PC{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return NC(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const NC=gn(IC);class FC{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new jc,this.onLangChange=new jc,this.onDefaultLangChange=new jc}}const BC=new Nt("USE_STORE"),HC=new Nt("USE_DEFAULT_LANG"),qC=new Nt("DEFAULT_LANGUAGE"),jC=new Nt("USE_EXTEND");let YC=(()=>{class t{constructor(t,e,i,n,s,r=!0,o=!1,a=!1,c){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=s,this.useDefaultLang=r,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new jc,this._onLangChange=new jc,this._onDefaultLangChange=new jc,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(uf(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Id(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(uf(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Id(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(lb(1),uf(1));return this.loadingTranslations=e.pipe(P(e=>this.compiler.compileTranslations(e,t)),lb(1),uf(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?function t(e,i){let n=Object.assign({},e);return zC(e)&&zC(i)&&Object.keys(i).forEach(s=>{zC(i[s])?s in e?n[s]=t(e[s],i[s]):Object.assign(n,{[s]:i[s]}):Object.assign(n,{[s]:i[s]})}),n}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let r of e)n[r]=this.getParsedResult(t,r,i),F_(n[r])&&(s=!0);return s?vC(e.map(t=>F_(n[t])?n[t]:Id(n[t]))).pipe(P(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!LC(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Nd(i=>F_(i=this.getParsedResult(i,t,e))?i:Id(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return F_(i)?i:Id(i)}}getStreamOnTranslationChange(t,e){if(!LC(t)||!t.length)throw new Error('Parameter "key" required');return df(Kp(()=>this.get(t,e)),this.onTranslationChange.pipe(of(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:Id(n)})))}stream(t,e){if(!LC(t)||!t.length)throw new Error('Parameter "key" required');return df(Kp(()=>this.get(t,e)),this.onLangChange.pipe(of(i=>{const n=this.getParsedResult(i.translations,t,e);return F_(n)?n:Id(n)})))}instant(t,e){if(!LC(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(F_(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(Vt(FC),Vt(CC),Vt(PC),Vt(DC),Vt(kC),Vt(HC),Vt(BC),Vt(jC),Vt(qC))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),WC=(()=>{class t{constructor(t,e,i){this.translateService=t,this.element=e,this._ref=i,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(t=>{t.lang===this.translateService.currentLang&&this.checkNodes(!0,t.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(t=>{this.checkNodes(!0,t.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(t=>{this.checkNodes(!0)}))}set translate(t){t&&(this.key=t,this.checkNodes())}set translateParams(t){xC(this.currentParams,t)||(this.currentParams=t,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(t=!1,e){let i=this.element.nativeElement.childNodes;i.length||(this.setContent(this.element.nativeElement,this.key),i=this.element.nativeElement.childNodes);for(let n=0;n{i!==t&&(e.lastKey=t),e.originalContent||(e.originalContent=this.getContent(e)),e.currentValue=LC(i)?i:e.originalContent||t,this.setContent(e,this.key?e.currentValue:e.originalContent.replace(t,e.currentValue)),this._ref.markForCheck()};if(LC(i)){let e=this.translateService.getParsedResult(i,t,this.currentParams);F_(e)?e.subscribe(n):n(e)}else this.translateService.get(t,this.currentParams).subscribe(n)}}getContent(t){return LC(t.textContent)?t.textContent:t.data}setContent(t,e){LC(t.textContent)?t.textContent=e:t.data=e}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Lo(YC),Lo(Ha),Lo(Wr))},t.\u0275dir=be({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),UC=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);F_(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(xC(t,this.lastKey)&&xC(e,this.lastParams))return this.value;let i;if(LC(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(Lo(YC),hu())},t.\u0275pipe=ye({name:"translate",type:t,pure:!1}),t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),KC=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:CC,useClass:SC},e.compiler||{provide:PC,useClass:IC},e.parser||{provide:DC,useClass:RC},e.missingTranslationHandler||{provide:kC,useClass:EC},FC,{provide:BC,useValue:e.isolate},{provide:HC,useValue:e.useDefaultLang},{provide:jC,useValue:e.extend},{provide:qC,useValue:e.defaultLanguage},YC]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:CC,useClass:SC},e.compiler||{provide:PC,useClass:IC},e.parser||{provide:DC,useClass:RC},e.missingTranslationHandler||{provide:kC,useClass:EC},{provide:BC,useValue:e.isolate},{provide:HC,useValue:e.useDefaultLang},{provide:jC,useValue:e.extend},{provide:qC,useValue:e.defaultLanguage},YC]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})();const VC=["mat-button",""],GC=["*"],XC=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n",$C=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class JC{constructor(t){this._elementRef=t}}const QC=$v(Xv(Jv(JC)));let ZC=(()=>{class t extends QC{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of $C)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(uw),Lo(Nv,8))},t.\u0275cmp=de({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var i;1&t&&eu(MM,!0),2&t&&Zc(i=ou())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(So("disabled",e.disabled||null),ua("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ho],attrs:VC,ngContentSelectors:GC,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&($o(),Oo(0,"span",0),Jo(1),Po(),Io(2,"div",1),Io(3,"div",2)),2&t&&(vs(2),ua("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Do("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[MM],styles:[XC],encapsulation:2,changeDetection:0}),t})(),tS=(()=>{class t extends ZC{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(Lo(uw),Lo(Ha),Lo(Nv,8))},t.\u0275cmp=de({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&Yo("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(So("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),ua("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ho],attrs:VC,ngContentSelectors:GC,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&($o(),Oo(0,"span",0),Jo(1),Po(),Io(2,"div",1),Io(3,"div",2)),2&t&&(vs(2),ua("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Do("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[MM],styles:[XC],encapsulation:2,changeDetection:0}),t})(),eS=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[CM,Gv],Gv]}),t})(),iS=(()=>{class t{constructor(t){this.dialogRef=t}ngOnInit(){}refreshPage(){window.location.reload(),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Po(),Oo(3,"div",1),va(4),Ic(5,"translate"),Po(),Oo(6,"div",2),Oo(7,"div",3),Oo(8,"button",4),Yo("click",(function(){return e.refreshPage()})),va(9),Ic(10,"translate"),Po(),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),vs(3),Ca(" ",Nc(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),vs(5),Ca(" ",Nc(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[tC,eC,iC,ZC],pipes:[UC],styles:[""]}),t})(),nS=(()=>{class t{constructor(t,e,i){this.injector=t,this.store=e,this.dialog=i,this.userSet=new jc,this.user=null,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Wm)})}getUserManager(){return this.manager}getClientSettings(){return{authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri")}}loadConfigData(){this.manager=new Np.UserManager(this.getClientSettings()),this.setUser(),this.manager.events.addUserLoaded(t=>{this.user=t}),this.manager.events.addAccessTokenExpired(()=>{const t=pC();t.width="450px",this.dialog.open(iS,t)})}authenticate(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e)}logout(){this.manager.signoutRedirect().catch((function(t){console.log(t)}))}isLoggedInPromise(){return B(this.manager.getUser()).pipe(P(t=>!!t&&!t.expired))}isLoggedIn(){return null!=this.user&&!this.user.expired}getClaims(){return this.user.profile}getAuthorizationHeaderValue(){return this.user?"Bearer "+this.user.access_token:""}startAuthentication(){return this.manager.signinRedirect()}completeAuthentication(){return this.manager.signinRedirectCallback().then(t=>{this.user=t,this.userSet.emit(this.user)})}startSigninMainWindow(){this.manager.signinRedirect({data:this.redirectUrl}).then((function(){console.log("signinRedirect done")})).catch((function(t){console.log(t)}))}setUser(){this.manager.getUser().then(t=>{this.user=t})}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().toPromise().then(i=>!!i||(this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),console.log("STARTED AUTH"),this.startAuthentication().then(()=>!1)):new Promise((t,e)=>e("Invalid path"))))}handleAuthCallback(){return this.completeAuthentication().then(()=>!0)}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});const e=sessionStorage.getItem("auth:redirect"),i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e?(sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([e],{queryParams:s,replaceUrl:!0})):(sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),this.router.navigate(["/"],{replaceUrl:!0}))}}return t.\u0275fac=function(e){return new(e||t)(Vt(ao),Vt(g_),Vt(JM))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sS=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(Oo(0,"h2",0),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[eC],pipes:[UC],styles:[""]}),t})(),rS=(()=>{class t{constructor(t,e,i,n,s){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s}authenticateUser(){return this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.authenticate()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=pC();this.dialog.open(sS,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}redirectToOriginDestination(){return this.authService.redirectToOriginDestination()}}return t.\u0275fac=function(e){return new(e||t)(Vt(nS),Vt(g_),Vt(Ip),Vt(Mp),Vt(JM))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oS=["*"];function aS(t){return Error(`Unable to find icon with the name "${t}"`)}function cS(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function uS(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class lS{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let hS=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new lS(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const s=this._sanitizer.sanitize(es.HTML,i);if(!s)throw uS(i);const r=this._createSvgElementForSingleIcon(s,n);return this._addSvgIconConfig(t,e,new lS(r,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new lS(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(es.HTML,e);if(!n)throw uS(e);const s=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new lS(s,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(es.RESOURCE_URL,t);if(!e)throw cS(t);const i=this._cachedIconsByUrl.get(e);return i?Id(dS(i)):this._loadSvgIconFromConfig(new lS(t)).pipe(vf(t=>this._cachedIconsByUrl.set(e,t)),P(t=>dS(t)))}getNamedSvgIcon(t,e=""){const i=pS(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):ib(aS(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Id(dS(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(vf(e=>t.svgElement=e),P(t=>dS(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Id(i):vC(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(_f(e=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(es.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i),Id(null)})))).pipe(P(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw aS(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgElement){const e=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(P(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Id(t.svgElement):this._fetchUrl(t.url).pipe(P(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(e)),Z());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(pS(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(Vt(np,8),Vt(xd),Vt(ll,8),Vt(yn,8))},t.\u0275prov=ut({factory:function(){return new t(Vt(np,8),Vt(xd),Vt(ll,8),Vt(yn,8))},token:t,providedIn:"root"}),t})();function dS(t){return t.cloneNode(!0)}function pS(t,e){return t+":"+e}class fS{constructor(t){this._elementRef=t}}const gS=$v(fS),mS=new Nt("mat-icon-location",{providedIn:"root",factory:function(){const t=Gt(ll),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),_S=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],bS=_S.map(t=>`[${t}]`).join(", "),yS=/^url\(['"]?#(.*?)['"]?\)$/;let wS=(()=>{class t extends gS{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=m_(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(uf(1)).subscribe(t=>this._setSvgElement(t),i=>{const n=`Error retrieving icon ${t}:${e}! ${i.message}`;this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(bS),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),o=r?r.match(yS):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(hS),zo("aria-hidden"),Lo(mS,8),Lo(yn,8))},t.\u0275cmp=de({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&ua("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[ho,ze],ngContentSelectors:oS,decls:1,vars:0,template:function(t,e){1&t&&($o(),Jo(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),AS=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Gv],Gv]}),t})(),vS=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(Vt(hS),Vt(xd))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),MS=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new jc}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(Vt(YC))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),CS=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SS=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=r}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){const t=pC();t.width="450px",this.dialog.open(iS,t)}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe(vf(t=>{t instanceof tp&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?ib(e):n?void this.notificator.showRPCError(i):ib(i)}))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(Vt(nS),Vt(CS),Vt(MS),Vt(g_),Vt(JM),Vt(rS))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),TS=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kS=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),ib(s)}getHeaders(){let t=new Yd;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=new Kd,i=!0){const n=`${this.getApiUrl()}${t}`;return this.http.get(n,{headers:this.getHeaders()}).pipe(_f(t=>this.formatErrors(t,n,null,i)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe(_f(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let r=this.getHeaders();return r=r.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:r}).pipe(_f(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe(_f(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(MS),Vt(nS),Vt(g_))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ES=(()=>{class t{constructor(t){this.router=t,this.lastState="forward",this.history=new Set,t.events.subscribe(t=>{t instanceof xf&&("popstate"===t.navigationTrigger?this.history.has(t.restoredState.navigationId)?(this.lastState="back",this.history.delete(t.restoredState.navigationId)):(this.lastState="forward",this.history.add(t.id)):(this.history.add(t.id),this.lastState="forward"))})}forceNavigate(t,e){if(null===t)return;let i="";t.forEach(t=>i+="/"+t),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}getLastState(){return this.lastState}}return t.\u0275fac=function(e){return new(e||t)(Vt(Wm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xS=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,r,o,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?r.data.length:r.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),r.sortData(r.filteredData,o).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t){this.membersService=t}getMembers(t,e,i,n,s,r){return this.membersService.getMembersPage({vo:t,attrNames:e,query:{pageSize:s,offset:n*s,order:i,sortColumn:r}})}}return t.\u0275fac=function(e){return new(e||t)(Vt(Tp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class zS{constructor(t,e){this.dynamicPaginatingService=t,this.authzService=e,this.membersSubject=new Fp([]),this.loadingSubject=new Fp(!1),this.loading$=this.loadingSubject.asObservable(),this.allMemberCount=0,this.routeAuth=!0}loadMembers(t,e,i,n,s,r){this.loadingSubject.next(!0),this.dynamicPaginatingService.getMembers(t,e,i,n,s,r).pipe(_f(()=>Id([])),Sf(()=>this.loadingSubject.next(!1))).subscribe(e=>{const i=e.data;null!==i&&0!==i.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:t},i[0]])),this.allMemberCount=e.totalCount,this.membersSubject.next(e.data)})}connect(t){return this.membersSubject.asObservable()}disconnect(t){this.membersSubject.complete(),this.loadingSubject.complete()}getData(){return this.membersSubject.value}}const DS=function(t){return{background:t}},RS=function(t){return{"min-height":t}};let OS=(()=>{class t{constructor(t,e,i){this.store=t,this.attributesManagerService=e,this.translateService=i,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.footerHeight=180,this.getScreenSize()}ngOnInit(){this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.find(t=>"preferredLanguage"===t.friendlyName);e&&e.value&&this.translateService.use(e.value)})}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}getContentHeight(){return"calc(100vh - 64px - "+this.footerHeight+"px)"}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(vp),Lo(YC))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-root"]],hostBindings:function(t,e){1&t&&Yo("resize",(function(t){return e.getScreenSize(t)}),!1,Gi)},decls:12,vars:12,consts:[[1,"app-min-width"],[3,"sidenavToggle"],["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"]],template:function(t,e){if(1&t){const t=Ho();Oo(0,"div",0),Oo(1,"perun-web-apps-header",1),Yo("sidenavToggle",(function(){return ii(t),xo(5).toggle()})),Po(),Io(2,"perun-web-apps-notificator"),Oo(3,"mat-sidenav-container"),Oo(4,"mat-sidenav",2,3),Io(6,"perun-web-apps-side-menu",4),Po(),Oo(7,"mat-sidenav-content",5),Oo(8,"div",6),Io(9,"perun-web-apps-breadcrumbs"),Io(10,"router-outlet"),Po(),Io(11,"perun-web-apps-footer-user-profile"),Po(),Po(),Po()}if(2&t){const t=xo(5);vs(4),Do("mode",e.sidebarMode)("ngStyle",zc(6,DS,e.sideMenuBgColor))("opened",!e.isMobile()),vs(2),Do("sideNav",t),vs(1),Do("ngStyle",zc(8,DS,e.contentBackgroundColor)),vs(1),Do("ngStyle",zc(10,RS,e.getContentHeight()))}},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;min-height:calc(100vh - 64px)}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:200px;height:auto}.app-min-width[_ngcontent-%COMP%]{min-width:400px}"]}),t})();var PS=i("nVrk");const IS=[[["caption"]]],NS=["caption"];function FS(t,e){if(1&t&&(Oo(0,"th",3),va(1),Po()),2&t){const t=Go();ca("text-align",t.justify),vs(1),Ca(" ",t.headerText," ")}}function BS(t,e){if(1&t&&(Oo(0,"td",4),va(1),Po()),2&t){const t=e.$implicit,i=Go();ca("text-align",i.justify),vs(1),Ca(" ",i.dataAccessor(t,i.name)," ")}}function HS(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=m_(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const qS=new Nt("CDK_TABLE"),jS=new Nt("text-column-options");let YS=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc))},t.\u0275dir=be({type:t,selectors:[["","cdkCellDef",""]]}),t})(),WS=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc))},t.\u0275dir=be({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),US=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc))},t.\u0275dir=be({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class KS{}const VS=HS(KS);let GS=(()=>{class t extends VS{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=m_(t),this._hasStickyChanged=e!==this._stickyEnd}}return t.\u0275fac=function(e){return new(e||t)(Lo(qS,8))},t.\u0275dir=be({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,YS,!0),nu(i,WS,!0),nu(i,US,!0)),2&t&&(Zc(n=ou())&&(e.cell=n.first),Zc(n=ou())&&(e.headerCell=n.first),Zc(n=ou())&&(e.footerCell=n.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ia([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ho]}),t})();class XS{constructor(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}}let $S=(()=>{class t extends XS{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Lo(GS),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ho]}),t})(),JS=(()=>{class t extends XS{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Lo(GS),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[ho]}),t})(),QS=(()=>{class t extends XS{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Lo(GS),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[ho]}),t})(),ZS=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof iT?t.headerCell.template:this instanceof rT?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc),Lo(rc))},t.\u0275dir=be({type:t,features:[ze]}),t})();class tT extends ZS{}const eT=HS(tT);let iT=(()=>{class t extends eT{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc),Lo(rc),Lo(qS,8))},t.\u0275dir=be({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ho,ze]}),t})();class nT extends ZS{}const sT=HS(nT);let rT=(()=>{class t extends sT{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc),Lo(rc),Lo(qS,8))},t.\u0275dir=be({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ho,ze]}),t})(),oT=(()=>{class t extends ZS{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc),Lo(rc),Lo(qS,8))},t.\u0275dir=be({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ho]}),t})(),aT=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc))},t.\u0275dir=be({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),cT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Bo(0,0)},directives:[aT],encapsulation:2}),t})(),uT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Bo(0,0)},directives:[aT],encapsulation:2}),t})(),lT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Bo(0,0)},directives:[aT],encapsulation:2}),t})();const hT=["top","bottom","left","right"];class dT{constructor(t,e,i,n=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._isBrowser=n}clearStickyPositioning(t,e){for(const i of t)if(i.nodeType===i.ELEMENT_NODE){this._removeStickyStyle(i,e);for(let t=0;tt)||i.some(t=>t);if(!t.length||!n||!this._isBrowser)return;const s=t[0],r=s.children.length,o=this._getCellWidths(s),a=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,i),u="rtl"===this.direction;for(const l of t)for(let t=0;t!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)}_removeStickyStyle(t,e){for(const i of e)t.style[i]="";t.style.zIndex=this._getCalculatedZIndex(t),hT.some(e=>!!t.style[e])||(t.style.position="",t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i){t.classList.add(this._stickCellCss),t.style[e]=i+"px",t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of hT)t.style[n]&&(i+=e[n]);return i?""+i:""}_getCellWidths(t){const e=[],i=t.children;for(let n=0;n0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}function pT(t){return Error(`Could not find column with id "${t}".`)}let fT=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","rowOutlet",""]]}),t})(),gT=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),mT=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Lo(dc),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),_T=(()=>{class t{constructor(t,e,i,n,s,r,o){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._onDestroy=new M,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new Fp({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){zn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}.`),this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=m_(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),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._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),kb(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return;const e=this._rowOutlet.viewContainer;t.forEachOperation((t,i,n)=>{if(null==t.previousIndex)this._insertRow(t.item,n);else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this.updateStickyColumnStyles()}setHeaderRowDef(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}setFooterRowDef(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),bT(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{if(this._columnDefsByName.has(t.name))throw Error(`Duplicate column definition name provided: "${t.name}".`);this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=bT(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=bT(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=bT(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff();this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}_switchDataSource(t){this._data=[],kb(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;if(kb(this.dataSource)?t=this.dataSource.connect(this):F_(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Id(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(G_(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>{const e=this._columnDefsByName.get(t);if(!e)throw pT(t);return e}),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}if(!i.length)throw function(t){return Error("Could not find a matching row definition for theprovided row data: "+JSON.stringify(t))}(t);return i}_insertRow(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}_renderRow(t,e,i,n={}){t.viewContainer.createEmbeddedView(e.template,n,i);for(let s of this._getCellTemplates(e))aT.mostRecentCellOutlet&&aT.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);if(!i)throw pT(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup"),e.appendChild(i.outlet.elementRef.nativeElement),t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new dT(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:Id()).pipe(G_(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}}return t.\u0275fac=function(e){return new(e||t)(Lo(rc),Lo(Wr),Lo(Ha),zo("role"),Lo(Mb,8),Lo(ll),Lo(db))},t.\u0275cmp=de({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,GS,!0),nu(i,oT,!0),nu(i,iT,!0),nu(i,rT,!0)),2&t&&(Zc(n=ou())&&(e._contentColumnDefs=n),Zc(n=ou())&&(e._contentRowDefs=n),Zc(n=ou())&&(e._contentHeaderRowDefs=n),Zc(n=ou())&&(e._contentFooterRowDefs=n))},viewQuery:function(t,e){var i;1&t&&(tu(fT,!0),tu(gT,!0),tu(mT,!0)),2&t&&(Zc(i=ou())&&(e._rowOutlet=i.first),Zc(i=ou())&&(e._headerRowOutlet=i.first),Zc(i=ou())&&(e._footerRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[Ia([{provide:qS,useExisting:t}])],ngContentSelectors:NS,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&($o(IS),Jo(0),Bo(1,0),Bo(2,1),Bo(3,2))},directives:[gT,fT,mT],encapsulation:2}),t})();function bT(t,e){return t.concat(Array.from(e))}let yT=(()=>{class t{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),!this._table)throw Error("Text column could not find a parent table for registration.");this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;if(zn()&&!t)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return t.\u0275fac=function(e){return new(e||t)(Lo(_T,8),Lo(jS,8))},t.\u0275cmp=de({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var i;1&t&&(tu(GS,!0),tu(YS,!0),tu(WS,!0)),2&t&&(Zc(i=ou())&&(e.columnDef=i.first),Zc(i=ou())&&(e.cell=i.first),Zc(i=ou())&&(e.headerCell=i.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(No(0,0),Eo(1,FS,2,3,"th",1),Eo(2,BS,2,3,"td",2),Fo())},directives:[GS,WS,YS,$S,QS],encapsulation:2}),t})(),wT=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})();const AT=[[["caption"]]],vT=["caption"];function MT(t,e){if(1&t&&(Oo(0,"th",3),va(1),Po()),2&t){const t=Go();ca("text-align",t.justify),vs(1),Ca(" ",t.headerText," ")}}function CT(t,e){if(1&t&&(Oo(0,"td",4),va(1),Po()),2&t){const t=e.$implicit,i=Go();ca("text-align",i.justify),vs(1),Ca(" ",i.dataAccessor(t,i.name)," ")}}let ST=(()=>{class t extends _T{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky"}}return t.\u0275fac=function(e){return TT(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[Ia([{provide:_T,useExisting:t},{provide:qS,useExisting:t}]),ho],ngContentSelectors:vT,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&($o(AT),Jo(0),Bo(1,0),Bo(2,1),Bo(3,2))},directives:[gT,fT,mT],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-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,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-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,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-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,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),t})();const TT=gn(ST);let kT=(()=>{class t extends YS{}return t.\u0275fac=function(e){return ET(e||t)},t.\u0275dir=be({type:t,selectors:[["","matCellDef",""]],features:[Ia([{provide:YS,useExisting:t}]),ho]}),t})();const ET=gn(kT);let xT=(()=>{class t extends WS{}return t.\u0275fac=function(e){return LT(e||t)},t.\u0275dir=be({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ia([{provide:WS,useExisting:t}]),ho]}),t})();const LT=gn(xT);let zT=(()=>{class t extends US{}return t.\u0275fac=function(e){return DT(e||t)},t.\u0275dir=be({type:t,selectors:[["","matFooterCellDef",""]],features:[Ia([{provide:US,useExisting:t}]),ho]}),t})();const DT=gn(zT);let RT=(()=>{class t extends GS{}return t.\u0275fac=function(e){return OT(e||t)},t.\u0275dir=be({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Ia([{provide:GS,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ho]}),t})();const OT=gn(RT);let PT=(()=>{class t extends $S{constructor(t,e){super(t,e),e.nativeElement.classList.add("mat-column-"+t.cssClassFriendlyName)}}return t.\u0275fac=function(e){return new(e||t)(Lo(GS),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ho]}),t})(),IT=(()=>{class t extends JS{constructor(t,e){super(t,e),e.nativeElement.classList.add("mat-column-"+t.cssClassFriendlyName)}}return t.\u0275fac=function(e){return new(e||t)(Lo(GS),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[ho]}),t})(),NT=(()=>{class t extends QS{constructor(t,e){super(t,e),e.nativeElement.classList.add("mat-column-"+t.cssClassFriendlyName)}}return t.\u0275fac=function(e){return new(e||t)(Lo(GS),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ho]}),t})(),FT=(()=>{class t extends iT{}return t.\u0275fac=function(e){return BT(e||t)},t.\u0275dir=be({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Ia([{provide:iT,useExisting:t}]),ho]}),t})();const BT=gn(FT);let HT=(()=>{class t extends rT{}return t.\u0275fac=function(e){return qT(e||t)},t.\u0275dir=be({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[Ia([{provide:rT,useExisting:t}]),ho]}),t})();const qT=gn(HT);let jT=(()=>{class t extends oT{}return t.\u0275fac=function(e){return YT(e||t)},t.\u0275dir=be({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Ia([{provide:oT,useExisting:t}]),ho]}),t})();const YT=gn(jT);let WT=(()=>{class t extends cT{}return t.\u0275fac=function(e){return UT(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Ia([{provide:cT,useExisting:t}]),ho],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Bo(0,0)},directives:[aT],encapsulation:2}),t})();const UT=gn(WT);let KT=(()=>{class t extends uT{}return t.\u0275fac=function(e){return VT(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[Ia([{provide:uT,useExisting:t}]),ho],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Bo(0,0)},directives:[aT],encapsulation:2}),t})();const VT=gn(KT);let GT=(()=>{class t extends lT{}return t.\u0275fac=function(e){return XT(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Ia([{provide:lT,useExisting:t}]),ho],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Bo(0,0)},directives:[aT],encapsulation:2}),t})();const XT=gn(GT);let $T=(()=>{class t extends yT{}return t.\u0275fac=function(e){return JT(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-text-column"]],features:[ho],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(t,e){1&t&&(No(0,0),Eo(1,MT,2,3,"th",1),Eo(2,CT,2,3,"td",2),Fo())},directives:[RT,xT,kT,PT,NT],encapsulation:2}),t})();const JT=gn($T);let QT=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[wT,Gv],Gv]}),t})();class ZT extends Tb{constructor(t=[]){super(),this._renderData=new Fp([]),this._filter=new Fp(""),this._internalPageChanges=new M,this._renderChangesSubscription=h.EMPTY,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(b_(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),r=this.sortingDataAccessor(e,i),o=0;return null!=s&&null!=r?s>r?o=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new Fp(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?U(this._sort.sortChange,this._sort.initialized):Id(null),e=this._paginator?U(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Id(null),i=Hp([this._data,this._filter]).pipe(P(([t])=>this._filterData(t))),n=Hp([i,t]).pipe(P(([t])=>this._orderData(t))),s=Hp([n,e]).pipe(P(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}const tk=["underline"],ek=["connectionContainer"],ik=["inputContainer"],nk=["label"];function sk(t,e){1&t&&(No(0),Oo(1,"div",14),Io(2,"div",15),Io(3,"div",16),Io(4,"div",17),Po(),Oo(5,"div",18),Io(6,"div",15),Io(7,"div",16),Io(8,"div",17),Po(),Fo())}function rk(t,e){1&t&&(Oo(0,"div",19),Jo(1,1),Po())}function ok(t,e){if(1&t&&(No(0),Jo(1,2),Oo(2,"span"),va(3),Po(),Fo()),2&t){const t=Go(2);vs(3),Ma(t._control.placeholder)}}function ak(t,e){1&t&&Jo(0,3,["*ngSwitchCase","true"])}function ck(t,e){1&t&&(Oo(0,"span",23),va(1," *"),Po())}function uk(t,e){if(1&t){const t=Ho();Oo(0,"label",20,21),Yo("cdkObserveContent",(function(){return ii(t),Go().updateOutlineGap()})),Eo(2,ok,4,1,"ng-container",12),Eo(3,ak,1,0,"ng-content",12),Eo(4,ck,2,0,"span",22),Po()}if(2&t){const t=Go();ua("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),Do("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),So("for",t._control.id)("aria-owns",t._control.id),vs(2),Do("ngSwitchCase",!1),vs(1),Do("ngSwitchCase",!0),vs(1),Do("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function lk(t,e){1&t&&(Oo(0,"div",24),Jo(1,4),Po())}function hk(t,e){if(1&t&&(Oo(0,"div",25,26),Io(2,"span",27),Po()),2&t){const t=Go();vs(2),ua("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function dk(t,e){1&t&&(Oo(0,"div"),Jo(1,5),Po()),2&t&&Do("@transitionMessages",Go()._subscriptAnimationState)}function pk(t,e){if(1&t&&(Oo(0,"div",31),va(1),Po()),2&t){const t=Go(2);Do("id",t._hintLabelId),vs(1),Ma(t.hintLabel)}}function fk(t,e){if(1&t&&(Oo(0,"div",28),Eo(1,pk,2,2,"div",29),Jo(2,6),Io(3,"div",30),Jo(4,7),Po()),2&t){const t=Go();Do("@transitionMessages",t._subscriptAnimationState),vs(1),Do("ngIf",t.hintLabel)}}const gk=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],mk=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let _k=0,bk=(()=>{class t{constructor(){this.id="mat-error-"+_k++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&So("id",e.id)},inputs:{id:"id"}}),t})();const yk={transitionMessages:mw("transitionMessages",[Aw("enter",ww({opacity:1,transform:"translateY(0%)"})),Mw("void => enter",[ww({opacity:0,transform:"translateY(-100%)"}),_w("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let wk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})();function Ak(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let vk=0,Mk=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+vk++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(So("id",e.id)("align",null),ua("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),Ck=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-label"]]}),t})(),Sk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-placeholder"]]}),t})(),Tk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","matPrefix",""]]}),t})(),kk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","matSuffix",""]]}),t})(),Ek=0;class xk{constructor(t){this._elementRef=t}}const Lk=$v(xk,"primary"),zk=new Nt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Dk=new Nt("MatFormField");let Rk=(()=>{class t extends Lk{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new M,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ek++,this._labelId="mat-form-field-label-"+Ek++,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=m_(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(pf(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(G_(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(G_(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),U(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(pf(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(pf(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(G_(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(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,v_(this._label.nativeElement,"transitionend").pipe(uf(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(i=>{if("start"===i.align){if(t||this.hintLabel)throw Ak("start");t=i}else if("end"===i.align){if(e)throw Ak("end");e=i}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=this._getStartEnd(t.children[0].getBoundingClientRect());let a=0;for(const e of t.children)a+=e.offsetWidth;e=Math.abs(o-r)-5,i=a>0?.75*a+10:0}for(let o=0;o{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Qh,Gv,qy],Gv]}),t})();const Pk=new Nt("NgValueAccessor"),Ik={provide:Pk,useExisting:vt(()=>Nk),multi:!0};let Nk=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wa),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Yo("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Ia([Ik])]}),t})();const Fk={provide:Pk,useExisting:vt(()=>Hk),multi:!0},Bk=new Nt("CompositionEventMode");let Hk=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=ul()?ul().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wa),Lo(Ha),Lo(Bk,8))},t.\u0275dir=be({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Yo("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Ia([Fk])]}),t})(),qk=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})(),jk=(()=>{class t extends qk{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Yk(e||t)},t.\u0275dir=be({type:t,features:[ho]}),t})();const Yk=gn(jk);class Wk extends qk{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class Uk{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let Kk=(()=>{class t extends Uk{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wk,2))},t.\u0275dir=be({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ua("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ho]}),t})(),Vk=(()=>{class t extends Uk{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(jk,2))},t.\u0275dir=be({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ua("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ho]}),t})();function Gk(t){return null==t||0===t.length}function Xk(t){return null!=t&&"number"==typeof t.length}const $k=new Nt("NgValidators"),Jk=new Nt("NgAsyncValidators"),Qk=/^(?=.{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 Zk{static min(t){return e=>{if(Gk(e.value)||Gk(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(Gk(e.value)||Gk(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Gk(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Gk(t.value)||Qk.test(t.value)?null:{email:!0}}static minLength(t){return e=>Gk(e.value)||!Xk(e.value)?null:e.value.lengthXk(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return Zk.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(Gk(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(tE);return 0==e.length?null:function(t){return iE(nE(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(tE);return 0==e.length?null:function(t){return vC(nE(t,e).map(eE)).pipe(P(iE))}}}function tE(t){return null!=t}function eE(t){const e=qo(t)?B(t):t;return jo(e),e}function iE(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function nE(t,e){return e.map(e=>e(t))}function sE(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const rE={provide:Pk,useExisting:vt(()=>oE),multi:!0};let oE=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wa),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Yo("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ia([rE])]}),t})();const aE={provide:Pk,useExisting:vt(()=>uE),multi:!0};let cE=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),uE=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Wk),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wa),Lo(Ha),Lo(cE),Lo(ao))},t.\u0275dir=be({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Yo("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ia([aE])]}),t})();const lE={provide:Pk,useExisting:vt(()=>hE),multi:!0};let hE=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wa),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Yo("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ia([lE])]}),t})();const dE={provide:Pk,useExisting:vt(()=>fE),multi:!0};function pE(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let fE=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=pE(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wa),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Yo("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Ia([dE])]}),t})(),gE=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(pE(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wa),Lo(fE,9))},t.\u0275dir=be({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const mE={provide:Pk,useExisting:vt(()=>bE),multi:!0};function _E(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let bE=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(_E(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(_E(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wa),Lo(bE,9))},t.\u0275dir=be({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function wE(t,e){return[...e.path,t]}function AE(t,e){t.validator=Zk.compose([t.validator,e.validator]),t.asyncValidator=Zk.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&vE(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&vE(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function vE(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ME(t,e){t.validator=Zk.compose([t.validator,e.validator]),t.asyncValidator=Zk.composeAsync([t.asyncValidator,e.asyncValidator])}function CE(t){return null!=t?Zk.compose(sE(t)):null}function SE(t){return null!=t?Zk.composeAsync(sE(t)):null}function TE(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}const kE=[Nk,hE,oE,fE,bE,uE];function EE(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function xE(t,e){if(!e)return null;Array.isArray(e);let i=void 0,n=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===Hk?i=t:(e=t,kE.some(t=>e.constructor===t)?n=t:s=t)}),s||n||i||null}function LE(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function zE(t,e,i,n){zn()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function DE(t){return(IE(t)?t.validators:t)||null}function RE(t){return Array.isArray(t)?CE(t):t||null}function OE(t,e){return(IE(e)?e.asyncValidators:t)||null}function PE(t){return Array.isArray(t)?SE(t):t||null}function IE(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class NE{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=RE(this._rawValidators),this._composedAsyncValidatorFn=PE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=RE(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=PE(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=eE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof BE?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof HE&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new jc,this.statusChanges=new jc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){IE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class FE extends NE{constructor(t=null,e,i){super(DE(e),OE(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class BE extends NE{constructor(t,e,i){super(DE(e),OE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof FE?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class HE extends NE{constructor(t,e,i){super(DE(e),OE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof FE?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const qE={provide:jk,useExisting:vt(()=>YE)},jE=(()=>Promise.resolve(null))();let YE=(()=>{class t extends jk{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new jc,this.form=new BE({},CE(t),SE(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){jE.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),AE(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){jE.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),LE(this._directives,t)})}addFormGroup(t){jE.then(()=>{const e=this._findContainer(t.path),i=new BE({});ME(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){jE.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){jE.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,EE(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Lo($k,10),Lo(Jk,10))},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Yo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ia([qE]),ho]}),t})(),WE=(()=>{class t extends jk{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return wE(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return CE(this._validators)}get asyncValidator(){return SE(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return UE(e||t)},t.\u0275dir=be({type:t,features:[ho]}),t})();const UE=gn(WE),KE={provide:jk,useExisting:vt(()=>VE)};let VE=(()=>{class t extends WE{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){}}return t.\u0275fac=function(e){return new(e||t)(Lo(jk,5),Lo($k,10),Lo(Jk,10))},t.\u0275dir=be({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Ia([KE]),ho]}),t})();const GE={provide:Wk,useExisting:vt(()=>$E)},XE=(()=>Promise.resolve(null))();let $E=(()=>{class t extends Wk{constructor(t,e,i,n){super(),this.control=new FE,this._registered=!1,this.update=new jc,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=xE(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),TE(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?wE(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return CE(this._rawValidators)}get asyncValidator(){return SE(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){AE(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){XE.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;XE.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Lo(jk,9),Lo($k,10),Lo(Jk,10),Lo(Pk,10))},t.\u0275dir=be({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ia([GE]),ho,ze]}),t})(),JE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const QE=new Nt("NgModelWithFormControlWarning"),ZE={provide:Wk,useExisting:vt(()=>tx)};let tx=(()=>{class t extends Wk{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new jc,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=xE(0,i)}set isDisabled(t){}ngOnChanges(e){this._isControlChanged(e)&&(AE(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),TE(e,this.viewModel)&&(zE(0,t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return CE(this._rawValidators)}get asyncValidator(){return SE(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Lo($k,10),Lo(Jk,10),Lo(Pk,10),Lo(QE,8))},t.\u0275dir=be({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ia([ZE]),ho,ze]}),t._ngModelWarningSentOnce=!1,t})();const ex={provide:jk,useExisting:vt(()=>ix)};let ix=(()=>{class t extends jk{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new jc}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return AE(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){LE(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ME(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);ME(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,EE(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const i=()=>{};e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&AE(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=CE(this._validators);this.form.validator=Zk.compose([this.form.validator,t]);const e=SE(this._asyncValidators);this.form.asyncValidator=Zk.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Lo($k,10),Lo(Jk,10))},t.\u0275dir=be({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Yo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ia([ex]),ho,ze]}),t})();const nx={provide:jk,useExisting:vt(()=>sx)};let sx=(()=>{class t extends WE{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){ax(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(Lo(jk,13),Lo($k,10),Lo(Jk,10))},t.\u0275dir=be({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Ia([nx]),ho]}),t})();const rx={provide:jk,useExisting:vt(()=>ox)};let ox=(()=>{class t extends jk{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return wE(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return CE(this._validators)}get asyncValidator(){return SE(this._asyncValidators)}_checkParentType(){ax(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(Lo(jk,13),Lo($k,10),Lo(Jk,10))},t.\u0275dir=be({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Ia([rx]),ho]}),t})();function ax(t){return!(t instanceof sx||t instanceof ix||t instanceof ox)}const cx={provide:Wk,useExisting:vt(()=>ux)};let ux=(()=>{class t extends Wk{constructor(t,e,i,n,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new jc,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=xE(0,n)}set isDisabled(t){}ngOnChanges(e){this._added||this._setUpControl(),TE(e,this.viewModel)&&(zE(0,t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return wE(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return CE(this._rawValidators)}get asyncValidator(){return SE(this._rawAsyncValidators)}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Lo(jk,13),Lo($k,10),Lo(Jk,10),Lo(Pk,10),Lo(QE,8))},t.\u0275dir=be({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ia([cx]),ho,ze]}),t._ngModelWarningSentOnce=!1,t})();const lx={provide:$k,useExisting:vt(()=>dx),multi:!0},hx={provide:$k,useExisting:vt(()=>px),multi:!0};let dx=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?Zk.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&So("required",e.required?"":null)},inputs:{required:"required"},features:[Ia([lx])]}),t})(),px=(()=>{class t extends dx{validate(t){return this.required?Zk.requiredTrue(t):null}}return t.\u0275fac=function(e){return fx(e||t)},t.\u0275dir=be({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("required",e.required?"":null)},features:[Ia([hx]),ho]}),t})();const fx=gn(px),gx={provide:$k,useExisting:vt(()=>mx),multi:!0};let mx=(()=>{class t{constructor(){this._enabled=!1}set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?Zk.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ia([gx])]}),t})();const _x={provide:$k,useExisting:vt(()=>bx),multi:!0};let bx=(()=>{class t{constructor(){this._validator=Zk.nullValidator}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Zk.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[Ia([_x]),ze]}),t})();const yx={provide:$k,useExisting:vt(()=>wx),multi:!0};let wx=(()=>{class t{constructor(){this._validator=Zk.nullValidator}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Zk.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ia([yx]),ze]}),t})();const Ax={provide:$k,useExisting:vt(()=>vx),multi:!0};let vx=(()=>{class t{constructor(){this._validator=Zk.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Zk.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[Ia([Ax]),ze]}),t})(),Mx=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})(),Cx=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new BE(i,{asyncValidators:s,updateOn:r,validators:n})}control(t,e,i){return new FE(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new HE(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof FE||t instanceof BE||t instanceof HE?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Sx=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[cE],imports:[Mx]}),t})(),Tx=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:QE,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[Cx,cE],imports:[Mx]}),t})();const kx=yb({passive:!0});let Ex=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Wp;const e=A_(t),i=this._monitoredElements.get(e);if(i)return i.subject.asObservable();const n=new M,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,kx),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",r,kx)}}),n.asObservable()}stopMonitoring(t){const e=A_(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(Vt(db),Vt(Ru))},t.\u0275prov=ut({factory:function(){return new t(Vt(db),Vt(Ru))},token:t,providedIn:"root"}),t})(),xx=(()=>{class t{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new jc}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Ex))},t.\u0275dir=be({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),Lx=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new M,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=__(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=__(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=m_(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{v_(this._getWindow(),"resize").pipe(V_(16),G_(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=e.placeholder;e.classList.add(this._measuringClass),e.placeholder="",e.style.height=e.scrollHeight-4+"px",e.classList.remove(this._measuringClass),e.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(db),Lo(Ru),Lo(ll,8))},t.\u0275dir=be({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&Yo("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),zx=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[pb]]}),t})(),Dx=(()=>{class t extends Lx{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return Rx(e||t)},t.\u0275dir=be({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[ho]}),t})();const Rx=gn(Dx),Ox=new Nt("MAT_INPUT_VALUE_ACCESSOR"),Px=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Ix=0;class Nx{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Fx=Zv(Nx);let Bx=(()=>{class t extends Fx{constructor(t,e,i,n,s,r,o,a,c){super(r,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._uid="mat-input-"+Ix++,this.focused=!1,this.stateChanges=new M,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>gb().has(t));const u=this._elementRef.nativeElement,l=u.nodeName.toLowerCase();this._inputValueAccessor=o||u,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===l,this._isTextarea="textarea"===l,this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=m_(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=m_(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&gb().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=m_(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(Px.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(db),Lo(Wk,10),Lo(YE,8),Lo(ix,8),Lo(hM),Lo(Ox,10),Lo(Ex),Lo(Ru))},t.\u0275dir=be({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&Yo("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(ka("disabled",e.disabled)("required",e.required),So("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ua("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Ia([{provide:wk,useExisting:t}]),ho,ze]}),t})(),Hx=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[hM],imports:[[zx,Ok],zx,Ok]}),t})();function qx(t,e){if(1&t&&(Ei(),Io(0,"circle",3)),2&t){const t=Go();ca("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),So("r",t._circleRadius)}}function jx(t,e){if(1&t&&(Ei(),Io(0,"circle",3)),2&t){const t=Go();ca("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),So("r",t._circleRadius)}}function Yx(t,e){if(1&t&&(Ei(),Io(0,"circle",3)),2&t){const t=Go();ca("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),So("r",t._circleRadius)}}function Wx(t,e){if(1&t&&(Ei(),Io(0,"circle",3)),2&t){const t=Go();ca("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),So("r",t._circleRadius)}}const Ux=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class Kx{constructor(t){this._elementRef=t}}const Vx=$v(Kx,"primary"),Gx=new Nt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let Xx=(()=>{class t extends Vx{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=__(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=__(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,__(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Ab(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}get _strokeCircumference(){return 2*Math.PI*this._circleRadius}get _strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}get _circleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){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*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(db),Lo(ll,8),Lo(Nv,8),Lo(Gx))},t.\u0275cmp=de({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(So("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),ca("width",e.diameter,"px")("height",e.diameter,"px"),ua("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[ho],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Ei(),Oo(0,"svg",0),Eo(1,qx,1,9,"circle",1),Eo(2,jx,1,7,"circle",2),Po()),2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),Do("ngSwitch","indeterminate"===e.mode),So("viewBox",e._viewBox),vs(1),Do("ngSwitchCase",!0),vs(1),Do("ngSwitchCase",!1))},directives:[vh,Mh],styles:[Ux],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),$x=(()=>{class t extends Xx{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(db),Lo(ll,8),Lo(Nv,8),Lo(Gx))},t.\u0275cmp=de({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),ua("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[ho],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Ei(),Oo(0,"svg",0),Eo(1,Yx,1,9,"circle",1),Eo(2,Wx,1,7,"circle",2),Po()),2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),Do("ngSwitch","indeterminate"===e.mode),So("viewBox",e._viewBox),vs(1),Do("ngSwitchCase",!0),vs(1),Do("ngSwitchCase",!1))},directives:[vh,Mh],styles:[Ux],encapsulation:2,changeDetection:0}),t})(),Jx=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Gv,Qh],Gv]}),t})();const Qx=["input"],Zx=function(){return{enterDuration:150}},tL=["*"],eL=new Nt("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let iL=0;const nL={provide:Pk,useExisting:vt(()=>rL),multi:!0};class sL{constructor(t,e){this.source=t,this.value=e}}let rL=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+iL++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new jc}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=m_(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=m_(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 sL(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wr))},t.\u0275dir=be({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&nu(i,uL,!0),2&t&&Zc(n=ou())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ia([nL])]}),t})();class oL{constructor(t){this._elementRef=t}}const aL=Jv(Qv(oL));let cL=(()=>{class t extends aL{constructor(t,e,i,n,s,r,o){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=s,this._animationMode=r,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++iL,this.id=this._uniqueId,this.change=new jc,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=s.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=m_(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(m_(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=m_(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return(this.id||this._uniqueId)+"-input"}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new sL(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Lo(rL,8),Lo(Ha),Lo(Wr),Lo(uw),Lo(Lb),Lo(Nv,8),Lo(eL,8))},t.\u0275dir=be({type:t,viewQuery:function(t,e){var i;1&t&&eu(Qx,!0),2&t&&Zc(i=ou())&&(e._inputElement=i.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[ho]}),t})(),uL=(()=>{class t extends cL{}return t.\u0275fac=function(e){return lL(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&Yo("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(So("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),ua("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[ho],ngContentSelectors:tL,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(t,e){if(1&t&&($o(),Oo(0,"label",0,1),Oo(2,"div",2),Io(3,"div",3),Io(4,"div",4),Oo(5,"input",5,6),Yo("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),Po(),Oo(7,"div",7),Io(8,"div",8),Po(),Po(),Oo(9,"div",9),Oo(10,"span",10),va(11,"\xa0"),Po(),Jo(12),Po(),Po()),2&t){const t=xo(1);So("for",e.inputId),vs(5),Do("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),So("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),vs(2),Do("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Lc(18,Zx)),vs(2),ua("mat-radio-label-before","before"==e.labelPosition)}},directives:[MM],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;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;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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}.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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})();const lL=gn(uL);let hL=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[CM,Gv],Gv]}),t})();const dL=["mat-calendar-body",""];function pL(t,e){if(1&t&&(Oo(0,"tr",2),Oo(1,"td",3),va(2),Po(),Po()),2&t){const t=Go();vs(1),ca("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),So("colspan",t.numCols),vs(1),Ca(" ",t.label," ")}}function fL(t,e){if(1&t&&(Oo(0,"td",7),va(1),Po()),2&t){const t=Go(2);ca("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),So("colspan",t._firstRowOffset),vs(1),Ca(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function gL(t,e){if(1&t){const t=Ho();Oo(0,"td",8),Yo("click",(function(){ii(t);const i=e.$implicit;return Go(2)._cellClicked(i)})),Oo(1,"div",9),va(2),Po(),Po()}if(2&t){const t=e.$implicit,i=e.index,n=Go().index,s=Go();ca("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),ua("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i)),Do("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),So("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s.selectedValue===t.value),vs(1),ua("mat-calendar-body-selected",s.selectedValue===t.value)("mat-calendar-body-today",s.todayValue===t.value),vs(1),Ca(" ",t.displayValue," ")}}function mL(t,e){if(1&t&&(Oo(0,"tr",4),Eo(1,fL,2,6,"td",5),Eo(2,gL,3,20,"td",6),Po()),2&t){const t=e.$implicit,i=e.index,n=Go();vs(1),Do("ngIf",0===i&&n._firstRowOffset),vs(1),Do("ngForOf",t)}}function _L(t,e){if(1&t&&(Oo(0,"th",5),va(1),Po()),2&t){const t=e.$implicit;So("aria-label",t.long),vs(1),Ma(t.narrow)}}const bL=["*"];function yL(t,e){}function wL(t,e){if(1&t){const t=Ho();Oo(0,"mat-month-view",5),Yo("activeDateChange",(function(e){return ii(t),Go().activeDate=e}))("selectedChange",(function(e){return ii(t),Go()._dateSelected(e)}))("_userSelection",(function(){return ii(t),Go()._userSelected()})),Po()}if(2&t){const t=Go();Do("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function AL(t,e){if(1&t){const t=Ho();Oo(0,"mat-year-view",6),Yo("activeDateChange",(function(e){return ii(t),Go().activeDate=e}))("monthSelected",(function(e){return ii(t),Go()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return ii(t),Go()._goToDateInView(e,"month")})),Po()}if(2&t){const t=Go();Do("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}function vL(t,e){if(1&t){const t=Ho();Oo(0,"mat-multi-year-view",7),Yo("activeDateChange",(function(e){return ii(t),Go().activeDate=e}))("yearSelected",(function(e){return ii(t),Go()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return ii(t),Go()._goToDateInView(e,"year")})),Po()}if(2&t){const t=Go();Do("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}const ML=["button"];function CL(t,e){1&t&&(Ei(),Oo(0,"svg",3),Io(1,"path",4),Po())}const SL=[[["","matDatepickerToggleIcon",""]]],TL=["[matDatepickerToggleIcon]"];function kL(t){return Error(`MatDatepicker: No provider found for ${t}. You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.`)}let EL=(()=>{class t{constructor(){this.changes=new M,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();class xL{constructor(t,e,i,n,s={}){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s}}let LL=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new jc}_cellClicked(t){t.enabled&&this.selectedValueChange.emit(t.value)}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(uf(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()})})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Ru))},t.\u0275cmp=de({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[ze],attrs:dL,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell mat-focus-indicator",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell","mat-focus-indicator",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(t,e){1&t&&(Eo(0,pL,3,6,"tr",0),Eo(1,mL,3,2,"tr",1)),2&t&&(Do("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"],encapsulation:2,changeDetection:0}),t})(),zL=(()=>{class t{constructor(t,e,i,n){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=h.EMPTY,this.selectedChange=new jc,this._userSelection=new jc,this.activeDateChange=new jc,!this._dateAdapter)throw kL("DateAdapter");if(!this._dateFormats)throw kL("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pf(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){if(this._selectedDate!=t){const e=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.createDate(e,i,t);this.selectedChange.emit(n)}this._userSelection.emit()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-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=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wr),Lo(nM,8),Lo(iM,8),Lo(Mb,8))},t.\u0275cmp=de({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var i;1&t&&eu(LL,!0),2&t&&Zc(i=ou())&&(e._matCalendarBody=i.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(Oo(0,"table",0),Oo(1,"thead",1),Oo(2,"tr"),Eo(3,_L,2,2,"th",2),Po(),Oo(4,"tr"),Io(5,"th",3),Po(),Po(),Oo(6,"tbody",4),Yo("selectedValueChange",(function(t){return e._dateSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),Po(),Po()),2&t&&(vs(3),Do("ngForOf",e._weekdays),vs(3),Do("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("selectedValue",e._selectedDate)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[mh,LL],encapsulation:2,changeDetection:0}),t})(),DL=(()=>{class t{constructor(t,e,i){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=h.EMPTY,this.selectedChange=new jc,this.yearSelected=new jc,this.activeDateChange=new jc,!this._dateAdapter)throw kL("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),RL(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pf(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-OL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let e=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-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,-OL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-OL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return OL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){let e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new xL(t,e,e,this._shouldEnableYear(t))}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=h.EMPTY,this.selectedChange=new jc,this.monthSelected=new jc,this.activeDateChange=new jc,!this._dateAdapter)throw kL("DateAdapter");if(!this._dateFormats)throw kL("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pf(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(e);const i=this._dateAdapter.getNumDaysInMonth(e);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-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,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){let i=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new xL(t,e.toLocaleUpperCase(),i,this._shouldEnableMonth(t))}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-OL(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):RL(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(Lo(EL),Lo(vt(()=>FL)),Lo(iM,8),Lo(nM,8),Lo(Wr))},t.\u0275cmp=de({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:bL,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&($o(),Oo(0,"div",0),Oo(1,"div",1),Oo(2,"button",2),Yo("click",(function(){return e.currentPeriodClicked()})),va(3),Io(4,"div",3),Po(),Io(5,"div",4),Jo(6),Oo(7,"button",5),Yo("click",(function(){return e.previousClicked()})),Po(),Oo(8,"button",6),Yo("click",(function(){return e.nextClicked()})),Po(),Po(),Po()),2&t&&(vs(2),So("aria-label",e.periodButtonLabel),vs(1),Ca(" ",e.periodButtonText," "),vs(1),ua("mat-calendar-invert","month"!=e.calendar.currentView),vs(3),Do("disabled",!e.previousEnabled()),So("aria-label",e.prevButtonLabel),vs(1),Do("disabled",!e.nextEnabled()),So("aria-label",e.nextButtonLabel))},directives:[ZC,rw],encapsulation:2,changeDetection:0}),t})(),FL=(()=>{class t{constructor(t,e,i,n){if(this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new jc,this.yearSelected=new jc,this.monthSelected=new jc,this._userSelection=new jc,this.stateChanges=new M,!this._dateAdapter)throw kL("DateAdapter");if(!this._dateFormats)throw kL("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new Gb(this.headerComponent||NL),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){t&&!this._dateAdapter.sameDate(t,this.selected)&&this.selectedChange.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_userSelected(){this._userSelection.emit()}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(Lo(EL),Lo(iM,8),Lo(nM,8),Lo(Wr))},t.\u0275cmp=de({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){var i;1&t&&(eu(zL,!0),eu(IL,!0),eu(DL,!0)),2&t&&(Zc(i=ou())&&(e.monthView=i.first),Zc(i=ou())&&(e.yearView=i.first),Zc(i=ou())&&(e.multiYearView=i.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[ze],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(Eo(0,yL,0,0,"ng-template",0),Oo(1,"div",1),Eo(2,wL,1,6,"mat-month-view",2),Eo(3,AL,1,5,"mat-year-view",3),Eo(4,vL,1,5,"mat-multi-year-view",4),Po()),2&t&&(Do("cdkPortalOutlet",e._calendarHeaderPortal),vs(1),Do("ngSwitch",e.currentView),vs(1),Do("ngSwitchCase","month"),vs(1),Do("ngSwitchCase","year"),vs(1),Do("ngSwitchCase","multi-year"))},directives:[Zb,hw,vh,Mh,zL,IL,DL],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const BL={transformPanel:mw("transformPanel",[Aw("void",ww({opacity:0,transform:"scale(1, 0.8)"})),Mw("void => enter",_w("120ms cubic-bezier(0, 0, 0.2, 1)",ww({opacity:1,transform:"scale(1, 1)"}))),Mw("* => void",_w("100ms linear",ww({opacity:0})))]),fadeInCalendar:mw("fadeInCalendar",[Aw("void",ww({opacity:0})),Aw("enter",ww({opacity:1})),Mw("void => *",_w("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let HL=0;const qL=new Nt("mat-datepicker-scroll-strategy"),jL={provide:qL,deps:[ky],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class YL{constructor(t){this._elementRef=t}}const WL=$v(YL);let UL=(()=>{class t extends WL{constructor(t,e){super(t),this._changeDetectorRef=e,this._animationState="enter",this._animationDone=new M}ngAfterViewInit(){this._calendar.focusActiveCell()}ngOnDestroy(){this._animationDone.complete()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wr))},t.\u0275cmp=de({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var i;1&t&&eu(FL,!0),2&t&&Zc(i=ou())&&(e._calendar=i.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&Wo("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(Ea("@transformPanel",e._animationState),ua("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[ho],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(Oo(0,"mat-calendar",0),Yo("selectedChange",(function(t){return e.datepicker.select(t)}))("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(){return e.datepicker.close()})),Po()),2&t&&Do("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._minDate)("maxDate",e.datepicker._maxDate)("dateFilter",e.datepicker._dateFilter)("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e.datepicker._selected)("dateClass",e.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[FL,ew,ph],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[BL.transformPanel,BL.fadeInCalendar]},changeDetection:0}),t})(),KL=(()=>{class t{constructor(t,e,i,n,s,r,o,a){if(this._dialog=t,this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=o,this._document=a,this.startView="month",this._touchUi=!1,this.yearSelected=new jc,this.monthSelected=new jc,this.openedStream=new jc,this.closedStream=new jc,this._opened=!1,this.id="mat-datepicker-"+HL++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=h.EMPTY,this._disabledChange=new M,this._selectedChanged=new M,!this._dateAdapter)throw kL("DateAdapter");this._scrollStrategy=s}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=m_(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=m_(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))}get opened(){return this._opened}set opened(t){t?this.open():this.close()}get _selected(){return this._validSelected}set _selected(t){this._validSelected=t}get _minDate(){return this._datepickerInput&&this._datepickerInput.min}get _maxDate(){return this._datepickerInput&&this._datepickerInput.max}get _dateFilter(){return this._datepickerInput&&this._datepickerInput._dateFilter}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete()}select(t){let e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this._selectedChanged.next(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_registerInput(t){if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe(t=>this._selected=t)}open(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(uf(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(UL,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._dialogRef.componentInstance.color=this.color}_openAsPopup(){const t=new Gb(UL,this._viewContainerRef);this._destroyPopup(),this._createPopup();const e=this._popupComponentRef=this._popupRef.attach(t);e.instance.datepicker=this,e.instance.color=this.color,this._ngZone.onStable.asObservable().pipe(uf(1)).subscribe(()=>{this._popupRef.updatePosition()})}_createPopup(){const t=new ly({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(t),this._popupRef.overlayElement.setAttribute("role","dialog"),U(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Fd(t=>27===t.keyCode||this._datepickerInput&&t.altKey&&38===t.keyCode))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM),Lo(ky),Lo(Ru),Lo(dc),Lo(qL),Lo(iM,8),Lo(Mb,8),Lo(ll,8))},t.\u0275cmp=de({type:t,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const VL={provide:Pk,useExisting:vt(()=>$L),multi:!0},GL={provide:$k,useExisting:vt(()=>$L),multi:!0};class XL{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let $L=(()=>{class t{constructor(t,e,i,n){if(this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this._formField=n,this.dateChange=new jc,this.dateInput=new jc,this._valueChange=new jc,this._disabledChange=new jc,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=h.EMPTY,this._localeSubscription=h.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!this.min||!e||this._dateAdapter.compareDate(this.min,e)<=0?null:{matDatepickerMin:{min:this.min,actual:e}}},this._maxValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!this.max||!e||this._dateAdapter.compareDate(this.max,e)>=0?null:{matDatepickerMax:{max:this.max,actual:e}}},this._filterValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return this._dateFilter&&e&&!this._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=Zk.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw kL("DateAdapter");if(!this._dateFormats)throw kL("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe(()=>{this.value=this.value})}set matDatepicker(t){t&&(this._datepicker=t,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(t=>{this.value=t,this._cvaOnChange(t),this._onTouched(),this.dateInput.emit(new XL(this,this._elementRef.nativeElement)),this.dateChange.emit(new XL(this,this._elementRef.nativeElement))}))}set matDatepickerFilter(t){this._dateFilter=t,this._validatorOnChange()}get value(){return this._value}set value(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);const e=this.value;this._value=t,this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}get min(){return this._min}set min(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get max(){return this._max}set max(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(t){const e=m_(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&this._isInitialized&&i.blur&&i.blur()}ngAfterViewInit(){this._isInitialized=!0}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(t){this.value=t}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){this._datepicker&&t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!i||this._dateAdapter.isValid(i),i=this._getValidDateOrNull(i),this._dateAdapter.sameDate(i,this._value)?e!==this._lastValueValid&&this._validatorOnChange():(this._value=i,this._cvaOnChange(i),this._valueChange.emit(i),this.dateInput.emit(new XL(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new XL(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(iM,8),Lo(nM,8),Lo(Dk,8))},t.\u0275dir=be({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&Yo("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(ka("disabled",e.disabled),So("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{value:"value",matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[Ia([VL,GL,{provide:Ox,useExisting:t}])]}),t})(),JL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),QL=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=h.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=m_(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker._disabledChange:Id(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Id(),i=this.datepicker?U(this.datepicker.openedStream,this.datepicker.closedStream):Id();this._stateChanges.unsubscribe(),this._stateChanges=U(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Lo(EL),Lo(Wr),zo("tabindex"))},t.\u0275cmp=de({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){var n;1&t&&nu(i,JL,!0),2&t&&Zc(n=ou())&&(e._customIcon=n.first)},viewQuery:function(t,e){var i;1&t&&eu(ML,!0),2&t&&Zc(i=ou())&&(e._button=i.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&Yo("focus",(function(){return e._button.focus()})),2&t&&(So("tabindex",e.disabled?null:-1),ua("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[ze],ngContentSelectors:TL,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&($o(SL),Oo(0,"button",0,1),Yo("click",(function(t){return e._open(t)})),Eo(2,CL,2,0,"svg",2),Jo(3),Po()),2&t&&(Do("disabled",e.disabled)("disableRipple",e.disableRipple),So("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),vs(2),Do("ngIf",!e._customIcon))},directives:[ZC,bh],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),ZL=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[EL,jL],imports:[[Qh,eS,sC,Ry,pw,ty],Wb]}),t})();class tz{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.opacity="0",n.position="absolute",n.left=n.top="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(TQ){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let ez=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new tz(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt(ll))},token:t,providedIn:"root"}),t})();const iz=new Nt("CKD_COPY_TO_CLIPBOARD_CONFIG");let nz=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new jc,this._deprecatedCopied=this.copied,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone?this._ngZone.runOutsideAngular(()=>setTimeout(n,1)):setTimeout(n,1)};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(Lo(ez),Lo(Ru),Lo(iz,8))},t.\u0275dir=be({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&Yo("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),t})(),sz=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})(),rz=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Qh]]}),t})(),oz=(()=>{class t{transform(t,e){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"isVirtualAttribute",type:t,pure:!0}),t})(),az=(()=>{class t{transform(t,e){let i="";return null!==t.titleBefore&&(i+=t.titleBefore+" "),null!==t.firstName&&(i+=t.firstName+" "),null!==t.middleName&&(i+=t.middleName+" "),null!==t.lastName&&(i+=t.lastName+" "),null!==t.titleAfter&&(i+=t.titleAfter+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"userFullName",type:t,pure:!0}),t})(),cz=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e){const i=this.storage.get("custom_labels");if(i){const e=Object.keys(i);for(const i of e){const e=this.storage.get("custom_labels",i);if(e.label===t)return"en"===this.translate.currentLang?e.en:e.cz}}return t}}return t.\u0275fac=function(e){return new(e||t)(Lo(YC),Lo(g_))},t.\u0275pipe=ye({name:"customTranslate",type:t,pure:!0}),t})(),uz=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"getResourceRoute",type:t,pure:!0}),t})(),lz=(()=>{class t{transform(t,...e){return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"serviceStateBlockedToString",type:t,pure:!0}),t})(),hz=(()=>{class t{transform(t,e){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"memberStatusIconColor",type:t,pure:!0}),t})(),dz=(()=>{class t{transform(t,e){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"memberStatusIcon",type:t,pure:!0}),t})(),pz=(()=>{class t{transform(t,e){let i=null,n=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName),n=t.memberAttributes.find(t=>"groupMembershipExpiration"===t.friendlyName));let s="";return s=e?`\n Group status: ${gC(t.groupStatus)}, Expiration: ${n&&n.value?n.value:"never"}`:`Status: ${gC(t.status,t.groupStatus)}\n Vo status: ${gC(t.status)}, Expiration: ${i&&i.value?i.value:"never"}`,s}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"memberStatusTooltip",type:t,pure:!0}),t})(),fz=(()=>{class t{transform(t,e){return aC(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"memberEmail",type:t,pure:!0}),t})(),gz=(()=>{class t{transform(t,e){return cC(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"memberLogins",type:t,pure:!0}),t})(),mz=(()=>{class t{transform(t,e){return t&&"never"!==t.toLowerCase()?Xl(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"parseDate",type:t,pure:!0}),t})(),_z=(()=>{class t{transform(t,...e){return lC(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"technicalOwners",type:t,pure:!0}),t})(),bz=(()=>{class t{transform(t,e,i){return t.filter(t=>t[i].includes(e)).filter((t,e,n)=>n.findIndex(e=>e[i]===t[i])===e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"filterUniqueObjects",type:t,pure:!0}),t})(),yz=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[AS,Qh]]}),t})(),wz=(()=>{class t{}return t.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",t.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",t.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",t.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",t.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",t.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",t.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",t.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",t.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",t.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",t.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",t.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",t.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",t.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",t.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",t.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",t.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",t.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",t.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",t.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",t.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",t})();function Az(t,e){1&t&&Io(0,"mat-spinner",4)}function vz(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"div",5),Oo(2,"p"),Oo(3,"strong"),va(4),Ic(5,"translate"),Po(),va(6),Ic(7,"parseDate"),Po(),Oo(8,"p"),Oo(9,"strong"),va(10),Ic(11,"translate"),Po(),va(12),Ic(13,"parseDate"),Po(),Oo(14,"mat-radio-group",6),Yo("ngModelChange",(function(e){return ii(t),Go().newExpiration=e})),Oo(15,"mat-radio-button",7),Oo(16,"mat-form-field",8),Yo("click",(function(){return ii(t),xo(23).open()})),Oo(17,"mat-label"),va(18),Ic(19,"translate"),Po(),Oo(20,"input",9),Yo("dateChange",(function(){return ii(t),Go().setExpiration()})),Po(),Io(21,"mat-datepicker-toggle",10),Io(22,"mat-datepicker",11,12),Po(),Po(),Oo(24,"mat-radio-button",13),va(25),Ic(26,"translate"),Po(),Po(),Po(),Oo(27,"div",14),Oo(28,"button",15),Yo("click",(function(){return ii(t),Go().onCancel()})),va(29),Ic(30,"translate"),Po(),Oo(31,"button",16),Yo("click",(function(){return ii(t),Go().onChange()})),va(32),Ic(33,"translate"),Po(),Po(),Po()}if(2&t){const t=xo(23),e=Go();vs(4),Ma(Nc(5,17,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),vs(2),Ca(" ",Nc(7,19,e.currentExpiration),""),vs(4),Ma(Nc(11,21,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),vs(2),Ca(" ",e.newExpiration?Nc(13,23,e.newExpiration):"never",""),vs(2),Do("ngModel",e.newExpiration),vs(1),Qo("value",e.expirationControl.value),vs(3),Ma(Nc(19,25,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),vs(2),Do("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",t),vs(1),Do("for",t)("disabled",!1),vs(1),Do("disabled",!1),vs(3),Ca(" ",Nc(26,27,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),vs(4),Ca(" ",Nc(30,29,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),vs(2),Do("disabled",e.expirationControl.invalid),vs(1),Ca(" ",Nc(33,31,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}}let Mz=(()=>{class t{constructor(t,e,i,n,s,r){switch(this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.translate=s,this.notificator=r,this.mode="vo",this.title="",s.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t),this.data.mode){case"group":s.get("DIALOGS.CHANGE_EXPIRATION.TITLE_GROUP").subscribe(t=>this.title=t);break;case"vo":s.get("DIALOGS.CHANGE_EXPIRATION.TITLE_VO").subscribe(t=>this.title=t);break;case"sponsor":s.get("DIALOGS.CHANGE_EXPIRATION.TITLE_SPONSORSHIP").subscribe(t=>this.title=t)}}ngOnInit(){this.mode=this.data.mode;const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),"sponsor"!==this.mode?(this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.expirationControl=new FE(this.currentExpiration),this.newExpiration=this.currentExpiration,"never"===this.expirationControl.value&&this.expirationControl.setValue(null)):(this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.expirationControl=new FE(this.data.sponsor.validityTo),this.newExpiration=this.currentExpiration)}onChange(){this.loading=!0,"sponsor"!==this.mode?this.expirationAttr?this.changeExpiration():this.attributesManagerService.getAttributeDefinitionByName("vo"===this.mode?wz.MEMBER_DEF_EXPIRATION:wz.MEMBER_DEF_GROUP_EXPIRATION).subscribe(t=>{this.expirationAttr=t,this.changeExpiration()}):this.changeSponsorshipExpiration()}onCancel(){this.dialogRef.close(!1)}setExpiration(){this.newExpiration=Xl(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue(Xl(this.expirationControl.value,"yyyy-MM-dd","en"))}changeExpiration(){this.expirationAttr.value="never"===this.newExpiration?null:this.newExpiration,"group"===this.mode?this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1):this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}changeSponsorshipExpiration(){this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===this.newExpiration?null:this.newExpiration).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(vp),Lo(Tp),Lo(YC),Lo(MS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-change-expiration-dialog"]],decls:5,vars:3,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["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","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"h1",1),va(2),Po(),Eo(3,Az,1,0,"mat-spinner",2),Eo(4,vz,34,33,"div",3),Po()),2&t&&(vs(2),Ma(e.title),vs(1),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading))},directives:[tC,bh,$x,eC,rL,Kk,$E,uL,Rk,Ck,Bx,Hk,$L,tx,QL,kk,KL,iC,ZC],pipes:[UC,mz],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),t})();function Cz(t,e){1&t&&Io(0,"mat-spinner",6)}function Sz(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"div",8),va(2),Ic(3,"translate"),Po(),Oo(4,"div",9),va(5),Ic(6,"translate"),Po(),Oo(7,"div",8),va(8),Ic(9,"translate"),Po(),Oo(10,"div",10),va(11),Ic(12,"translate"),Po(),Po()),2&t){const t=Go();vs(2),Sa("",Nc(3,5,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," : ",t.data.member.status,""),vs(3),Ma(Nc(6,7,"DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION")),vs(3),Ca("",Nc(9,9,"DIALOGS.CHANGE_STATUS.NEW_STATUS"),": VALID"),vs(3),Ma(Nc(12,11,"DIALOGS.CHANGE_STATUS.CHANGE_VALID"))}}let Tz=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.data=e,this.memberManager=i,this.notificatorService=n,this.translate=s,this.route=r,this.loading=!1}ngOnInit(){this.route.params.subscribe(t=>{this.theme=t.groupId?"group-theme":"vo-theme"})}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.memberManager.setStatus(this.data.member.id,"VALID").subscribe(()=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(t=>{this.notificatorService.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(Tp),Lo(MS),Lo(YC),Lo(xg))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-change-member-status-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"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],[1,"text-muted"]],template:function(t,e){1&t&&(Oo(0,"div"),Oo(1,"h1",0),va(2),Ic(3,"translate"),Po(),Eo(4,Cz,1,0,"mat-spinner",1),Eo(5,Sz,13,13,"div",2),Oo(6,"div",3),Oo(7,"button",4),Yo("click",(function(){return e.cancel()})),va(8),Ic(9,"translate"),Po(),Oo(10,"button",5),Yo("click",(function(){return e.submit()})),va(11),Ic(12,"translate"),Po(),Po(),Po()),2&t&&(la(e.theme),vs(2),Ma(Nc(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),vs(2),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading),vs(3),Ca(" ",Nc(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),vs(2),Do("disabled",e.loading),vs(1),Ca(" ",Nc(12,13,"DIALOGS.CHANGE_STATUS.TITLE")," "))},directives:[tC,bh,iC,ZC,$x,eC],pipes:[UC],styles:[""]}),t})();function kz(t,e){1&t&&(Oo(0,"h1",7),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")))}function Ez(t,e){1&t&&(Oo(0,"h1",7),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")))}function xz(t,e){1&t&&(Oo(0,"h1",7),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")))}function Lz(t,e){1&t&&(Oo(0,"h1",7),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")))}function zz(t,e){1&t&&Io(0,"mat-spinner",8)}function Dz(t,e){if(1&t&&(Oo(0,"mat-form-field"),Io(1,"input",13),Ic(2,"translate"),Po()),2&t){const t=Go(2);vs(1),Zo("placeholder","",Nc(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),Do("value",t.shortName)}}function Rz(t,e){if(1&t&&(Oo(0,"mat-form-field",14),Io(1,"textarea",15),Ic(2,"translate"),Oo(3,"mat-error"),va(4),Ic(5,"translate"),Po(),Po()),2&t){const t=Go(2);vs(1),Zo("placeholder","",Nc(2,3,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),Do("formControl",t.descriptionCtrl),vs(3),Ca(" ",Nc(5,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_DESCRIPTION")," ")}}function Oz(t,e){if(1&t&&(Oo(0,"div",9),Eo(1,Dz,3,4,"mat-form-field",10),Oo(2,"mat-form-field"),Io(3,"input",11),Ic(4,"translate"),Oo(5,"mat-error"),va(6),Ic(7,"translate"),Po(),Po(),Eo(8,Rz,6,7,"mat-form-field",12),Po()),2&t){const t=Go();vs(1),Do("ngIf",2===t.dialogType),vs(2),Zo("placeholder","",Nc(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),Do("formControl",t.nameCtrl),vs(3),Ca(" ",t.invalidNameMessage.length?t.invalidNameMessage:Nc(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),vs(2),Do("ngIf",2!==t.dialogType)}}var Pz=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({});let Iz=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=n,this.facilitiesManager=s,this.resourcesManager=r,this.groupsManager=o,this.vosManager=a,this.store=c,this.invalidNameMessage=this.data.dialogType===Pz.GROUP?this.store.get("groupNameErrorMessage"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===Pz.GROUP?this.store.get("groupNameSecondaryRegex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case Pz.FACILITY:this.nameCtrl=new FE(this.data.facility.name,[Zk.required,Zk.pattern(".*[\\S]+.*"),Zk.maxLength(129)]),this.descriptionCtrl=new FE(this.data.facility.description,[Zk.required,Zk.pattern(".*[\\S]+.*"),Zk.maxLength(129)]);break;case Pz.RESOURCE:this.nameCtrl=new FE(this.data.resource.name,[Zk.required,Zk.pattern(".*[\\S]+.*"),Zk.maxLength(129)]),this.descriptionCtrl=new FE(this.data.resource.description,[Zk.required,Zk.pattern(".*[\\S]+.*"),Zk.maxLength(129)]);break;case Pz.GROUP:const t=this.data.group.name.split(":");this.nameCtrl=new FE(t[t.length-1],[Zk.required,Zk.pattern(".*[\\S]+.*"),Zk.pattern(this.secondaryRegex),Zk.maxLength(129)]),this.descriptionCtrl=new FE(this.data.group.description,[Zk.required,Zk.pattern(".*[\\S]+.*"),Zk.maxLength(129)]);break;case Pz.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new FE(this.data.vo.name,[Zk.required,Zk.pattern(".*[\\S]+.*"),Zk.maxLength(129)]),this.descriptionCtrl=new FE}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case Pz.FACILITY:this.editFacility();break;case Pz.RESOURCE:this.editResource();break;case Pz.GROUP:this.editGroup();break;case Pz.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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(t=>{const e=t;e.name=this.nameCtrl.value,e.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:e}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(MS),Lo(YC),Lo(Cp),Lo(xp),Lo(Sp),Lo(zp),Lo(g_))},t.\u0275cmp=de({type:t,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","","required","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(t,e){1&t&&(Oo(0,"div"),Eo(1,kz,3,3,"h1",0),Eo(2,Ez,3,3,"h1",0),Eo(3,xz,3,3,"h1",0),Eo(4,Lz,3,3,"h1",0),Oo(5,"div",1),Eo(6,zz,1,0,"mat-spinner",2),Eo(7,Oz,9,9,"div",3),Po(),Oo(8,"div",4),Oo(9,"button",5),Yo("click",(function(){return e.cancel()})),va(10),Ic(11,"translate"),Po(),Oo(12,"button",6),Yo("click",(function(){return e.submit()})),va(13),Ic(14,"translate"),Po(),Po(),Po()),2&t&&(la(e.theme),vs(1),Do("ngIf",0===e.dialogType),vs(1),Do("ngIf",1===e.dialogType),vs(1),Do("ngIf",2===e.dialogType),vs(1),Do("ngIf",3===e.dialogType),vs(2),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading),vs(3),Ca(" ",Nc(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),vs(2),Do("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),vs(1),Ca(" ",Nc(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[bh,eC,iC,ZC,tC,$x,Rk,Bx,Hk,dx,Kk,tx,bk,Dx],pipes:[UC],styles:[""]}),t})();function Nz(t,e){1&t&&Io(0,"mat-spinner",8)}function Fz(t,e){if(1&t&&(Oo(0,"div",9),Oo(1,"span"),va(2),Ic(3,"translate"),Oo(4,"b"),va(5),Po(),Po(),Io(6,"br"),Oo(7,"span"),va(8),Ic(9,"translate"),Oo(10,"b"),va(11),Ic(12,"translate"),Po(),Po(),Io(13,"br"),Oo(14,"span"),va(15),Ic(16,"translate"),Oo(17,"b"),va(18),Ic(19,"translate"),Po(),Po(),Io(20,"br"),Oo(21,"span"),va(22),Ic(23,"translate"),Oo(24,"b"),va(25),Ic(26,"translate"),Po(),Po(),Po()),2&t){const t=Go();vs(2),Ca(" ",Nc(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),vs(3),Ma(t.group.name),vs(3),Ca(" ",Nc(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),vs(3),Ma(Nc(12,12,t.getSynchronizationType())),vs(4),Ca(" ",Nc(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),vs(3),Ma(Nc(19,16,t.getLastSyncState())),vs(4),Ca(" ",Nc(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),vs(3),Ma(Nc(26,20,t.getLastSyncTime()))}}function Bz(t,e){if(1&t){const t=Ho();Oo(0,"button",10),Yo("click",(function(){return ii(t),Go().onForceStructure()})),va(1),Ic(2,"translate"),Po()}2&t&&(Do("disabled",Go().loading),vs(1),Ca(" ",Nc(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," "))}function Hz(t,e){if(1&t){const t=Ho();Oo(0,"button",10),Yo("click",(function(){return ii(t),Go().onForce()})),va(1),Ic(2,"translate"),Po()}2&t&&(Do("disabled",Go().loading),vs(1),Ca(" ",Nc(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," "))}let qz=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,this.loading=!0}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onForceStructure(){this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1)}getSynchronizationType(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}isBasic(){return"BASIC"===this.type}isStructured(){return"STRUCTURED"===this.type}getLastSyncState(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}getLastSyncTime(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[wz.GROUP_SYNC_ENABLED,wz.GROUP_LAST_SYNC_STATE,wz.GROUP_LAST_SYNC_TIMESTAMP,wz.GROUP_STRUCTURE_SYNC_ENABLED,wz.GROUP_LAST_STRUCTURE_SYNC_STATE,wz.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.group=t,this.syncEnabled=dC(this.group.attributes,wz.GROUP_SYNC_ENABLED).value,this.lastSyncState=dC(this.group.attributes,wz.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=dC(this.group.attributes,wz.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=dC(this.group.attributes,wz.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=dC(this.group.attributes,wz.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=dC(this.group.attributes,wz.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==this.syncEnabled&&"true"===this.syncEnabled&&(this.type="BASIC"),null!==this.structSyncEnabled&&this.structSyncEnabled&&(this.type="STRUCTURED"),this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(Sp),Lo(MS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-icon-button","",3,"click"],["class","ml-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(Oo(0,"div"),Oo(1,"h1",0),va(2),Ic(3,"translate"),Po(),Eo(4,Nz,1,0,"mat-spinner",1),Eo(5,Fz,27,22,"div",2),Oo(6,"div",3),Oo(7,"div",4),Oo(8,"button",5),Yo("click",(function(){return e.refresh()})),Oo(9,"mat-icon"),va(10,"refresh"),Po(),Po(),Eo(11,Bz,3,4,"button",6),Eo(12,Hz,3,4,"button",6),Oo(13,"button",7),Yo("click",(function(){return e.onCancel()})),va(14),Ic(15,"translate"),Po(),Po(),Po(),Po()),2&t&&(la(e.theme),vs(2),Ma(Nc(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),vs(2),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading),vs(6),Do("ngIf",e.isStructured()),vs(1),Do("ngIf",e.isBasic()||e.isStructured()),vs(2),Ca(" ",Nc(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[tC,bh,iC,ZC,wS,$x,eC],pipes:[UC],styles:[""]}),t})();var jz=i("9RND");function Yz(t,e){1&t&&Io(0,"mat-spinner",7)}function Wz(t,e){1&t&&(Oo(0,"mat-error"),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Uz(t,e){1&t&&(Oo(0,"mat-error"),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Kz(t,e){if(1&t){const t=Ho();Oo(0,"div",8),Oo(1,"mat-form-field"),Oo(2,"mat-label"),va(3),Ic(4,"translate"),Po(),Oo(5,"input",9,10),Yo("ngModelChange",(function(e){return ii(t),Go().subject=e})),Po(),Eo(7,Wz,3,3,"mat-error",11),Po(),Oo(8,"mat-form-field"),Oo(9,"mat-label"),va(10),Ic(11,"translate"),Po(),Oo(12,"textarea",12,13),Yo("ngModelChange",(function(e){return ii(t),Go().message=e})),Ic(14,"translate"),va(15," "),Po(),Eo(16,Uz,3,3,"mat-error",11),Po(),Po()}if(2&t){const t=xo(6),e=xo(13),i=Go();vs(3),Ma(Nc(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),vs(2),Do("ngModel",i.subject),vs(2),Do("ngIf",t.invalid),vs(3),Ma(Nc(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),vs(2),Qo("placeholder",Nc(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),Do("ngModel",i.message),vs(4),Do("ngIf",e.invalid)}}let Vz=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=r,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},t=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;return e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.call+"\n\n"),this.data.error.payload&&(e=e.concat("Payload:\n"+this.data.error.payload+"\n\n")),e=e.concat("Sended from new Perun Gui, version: "+jz.a),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(YC),Lo(MS),Lo(kp),Lo(VM),Lo(g_))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Po(),Eo(3,Yz,1,0,"mat-spinner",1),Eo(4,Kz,17,13,"div",2),Oo(5,"div",3),Oo(6,"div",4),Oo(7,"button",5),Yo("click",(function(){return e.dialogRef.close()})),va(8),Ic(9,"translate"),Po(),Oo(10,"button",6),Yo("click",(function(){return e.sendBugReport()})),va(11),Ic(12,"translate"),Po(),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),vs(2),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading),vs(4),Ca(" ",Nc(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),vs(2),Do("disabled",""===e.message||""===e.subject||e.loading),vs(1),Ca(" ",Nc(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[tC,bh,iC,ZC,$x,eC,Rk,Ck,Bx,Hk,dx,Kk,$E,bk],pipes:[UC],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),Gz=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=pC();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(Vz,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(JM),Lo(VM))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Po(),Oo(2,"div",1),va(3),Po(),Oo(4,"div",2),Oo(5,"div",3),Oo(6,"button",4),Yo("click",(function(){return e.onBugReportClick()})),va(7),Ic(8,"translate"),Po(),Oo(9,"button",5),Yo("click",(function(){return e.onCloseClick()})),va(10),Ic(11,"translate"),Po(),Po(),Po()),2&t&&(vs(1),Ma(e.data.title),vs(2),Ca("\n",e.data.description,"\n"),vs(3),Do("hidden","error"!==e.data.type),vs(1),Ca(" ",Nc(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),vs(3),Ca(" ",Nc(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[tC,eC,iC,ZC],pipes:[UC],styles:[""]}),t})();function Xz(t,e){1&t&&Io(0,"mat-spinner",3)}function $z(t,e){1&t&&Io(0,"th",15)}function Jz(t,e){if(1&t&&(Oo(0,"td",16),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ca(" ",t.userExtSource.extSource.name," ")}}function Qz(t,e){1&t&&Io(0,"tr",17)}function Zz(t,e){1&t&&Io(0,"tr",18)}function tD(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"div",4),Oo(2,"p"),va(3),Ic(4,"translate"),Ic(5,"customTranslate"),Po(),Oo(6,"div",5),va(7),Ic(8,"translate"),Ic(9,"customTranslate"),Po(),Oo(10,"table",6),No(11,7),Eo(12,$z,1,0,"th",8),Eo(13,Jz,2,1,"td",9),Fo(),Eo(14,Qz,1,0,"tr",10),Eo(15,Zz,1,0,"tr",11),Po(),Po(),Oo(16,"div",12),Oo(17,"button",13),Yo("click",(function(){return ii(t),Go().onCancel()})),va(18),Ic(19,"translate"),Ic(20,"customTranslate"),Po(),Oo(21,"button",14),Yo("click",(function(){return ii(t),Go().onSubmit()})),va(22),Ic(23,"translate"),Ic(24,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();vs(3),Ca(" ",Nc(4,7,Nc(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),vs(4),Ca(" ",Nc(8,11,Nc(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),vs(3),Do("dataSource",t.dataSource),vs(4),Do("matHeaderRowDef",t.displayedColumns),vs(1),Do("matRowDefColumns",t.displayedColumns),vs(3),Ca(" ",Nc(19,15,Nc(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),vs(4),Ca(" ",Nc(23,19,Nc(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let eD=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new ZT(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 t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(Lp),Lo(YC),Lo(MS))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div"),Eo(5,Xz,1,0,"mat-spinner",1),Eo(6,tD,25,23,"div",2),Po()),2&t&&(vs(1),Ma(Nc(2,6,Nc(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),vs(3),la(e.theme),vs(1),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading))},directives:[tC,bh,$x,eC,ST,RT,xT,kT,FT,jT,iC,ZC,PT,NT,WT,GT],pipes:[UC,cz],styles:[""]}),t})(),iD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Po(),Oo(2,"div",1),Oo(3,"textarea",2),va(4),Po(),Po(),Oo(5,"div",3),Oo(6,"button",4),Yo("click",(function(){return e.onCancel()})),va(7),Ic(8,"translate"),Po(),Oo(9,"button",5),va(10),Ic(11,"translate"),Po(),Po()),2&t&&(vs(1),Ma(e.title),vs(3),Ma(e.value),vs(3),Ca(" ",Nc(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),vs(2),Do("cdkCopyToClipboard",e.value),vs(1),Ca(" ",Nc(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[tC,eC,Lx,Bx,iC,ZC,nz],pipes:[UC],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})(),nD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h5",0),va(1),Ic(2,"translate"),Po(),Oo(3,"div",1),Oo(4,"mat-form-field"),Oo(5,"textarea",2),Yo("ngModelChange",(function(t){return e.attributeValue=t})),Po(),Po(),Po(),Oo(6,"div",3),Oo(7,"button",4),Yo("click",(function(){return e.cancel()})),va(8),Ic(9,"translate"),Po(),Oo(10,"button",5),Yo("click",(function(){return e.submit()})),va(11),Ic(12,"translate"),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),vs(4),Do("ngModel",e.attributeValue),vs(3),Ca(" ",Nc(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),vs(3),Ca(" ",Nc(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[tC,eC,Rk,Lx,Bx,Hk,Kk,$E,iC,ZC],pipes:[UC],styles:[""]}),t})(),sD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h5",0),va(1),Ic(2,"translate"),Po(),Oo(3,"div",1),Oo(4,"div"),va(5),Ic(6,"translate"),Po(),Oo(7,"div",2),va(8),Po(),Po(),Oo(9,"div",3),Oo(10,"button",4),Yo("click",(function(){return e.cancel()})),va(11),Ic(12,"translate"),Po(),Oo(13,"button",5),Yo("click",(function(){return e.submit()})),va(14),Ic(15,"translate"),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),vs(4),Ca(" ",Nc(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),vs(3),Ca(" ",e.data.name," "),vs(3),Ca(" ",Nc(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),vs(3),Ca(" ",Nc(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[tC,eC,iC,ZC],pipes:[UC],styles:[""]}),t})();function rD(t,e){1&t&&(Oo(0,"mat-icon",2),va(1," error "),Po())}const oD=["*"];let aD=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:oD,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&($o(),Oo(0,"div",0),Eo(1,rD,2,0,"mat-icon",1),Jo(2),Po()),2&t&&(ua("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),vs(1),Do("ngIf","error"!==e.alert_type))},directives:[bh,wS],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t})();function cD(t,e){if(1&t&&(Oo(0,"app-alert",9),va(1),Po()),2&t){const t=Go();vs(1),Ma(t.pendingEmailsMessage)}}function uD(t,e){1&t&&(Oo(0,"mat-error"),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let lD=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new FE(null,[Zk.required,Zk.pattern(/^(([^<>()\[\].,;:\s@"]+(\.[^<>()\[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"").subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(YC),Lo(MS),Lo(Lp))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Eo(5,cD,2,1,"app-alert",2),Oo(6,"mat-form-field",3),Oo(7,"label",3),Io(8,"input",4),Ic(9,"translate"),Ic(10,"customTranslate"),Po(),Eo(11,uD,4,5,"mat-error",5),Po(),Po(),Oo(12,"div",6),Oo(13,"button",7),Yo("click",(function(){return e.onCancel()})),va(14),Ic(15,"translate"),Ic(16,"customTranslate"),Po(),Oo(17,"button",8),Yo("click",(function(){return e.onSubmit()})),va(18),Ic(19,"translate"),Ic(20,"customTranslate"),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,8,Nc(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),vs(4),Do("ngIf",e.pendingMails.length),vs(3),Qo("placeholder",Nc(9,12,Nc(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),Do("formControl",e.emailControl),vs(3),Do("ngIf",e.emailControl.invalid),vs(3),Ca(" ",Nc(15,16,Nc(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),vs(3),Do("disabled",!e.emailControl.valid),vs(1),Ca(" ",Nc(19,20,Nc(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[tC,eC,bh,Rk,Bx,Hk,dx,Kk,tx,iC,ZC,aD,bk],pipes:[UC,cz],styles:[""]}),t})();class hD{constructor(t){this.total=t}call(t,e){return e.subscribe(new dD(t,this.total))}}class dD extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const pD=new Set;let fD,gD=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):mD}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!pD.has(t))try{fD||(fD=document.createElement("style"),fD.setAttribute("type","text/css"),document.head.appendChild(fD)),fD.sheet&&(fD.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),pD.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Vt(db))},t.\u0275prov=ut({factory:function(){return new t(Vt(db))},token:t,providedIn:"root"}),t})();function mD(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let _D=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new M}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return bD(y_(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Hp(bD(y_(t)).map(t=>this._registerQuery(t).observable));return e=df(e.pipe(uf(1)),e.pipe(t=>t.lift(new hD(1)),Oy(0))),e.pipe(P(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new b(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(pf(e),P(e=>({query:t,matches:e.matches})),G_(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(Vt(gD),Vt(Ru))},t.\u0275prov=ut({factory:function(){return new t(Vt(gD),Vt(Ru))},token:t,providedIn:"root"}),t})();function bD(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const yD={tooltipState:mw("state",[Aw("initial, void, hidden",ww({opacity:0,transform:"scale(0)"})),Aw("visible",ww({transform:"scale(1)"})),Mw("* => visible",_w("200ms cubic-bezier(0, 0, 0.2, 1)",vw([ww({opacity:0,transform:"scale(0)",offset:0}),ww({opacity:.5,transform:"scale(0.99)",offset:.5}),ww({opacity:1,transform:"scale(1)",offset:1})]))),Mw("* => hidden",_w("100ms cubic-bezier(0, 0, 0.2, 1)",ww({opacity:0})))])},wD=yb({passive:!0});function AD(t){return Error(`Tooltip position "${t}" is invalid.`)}const vD=new Nt("mat-tooltip-scroll-strategy"),MD={provide:vD,deps:[ky],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},CD=new Nt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let SD=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new M,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!ey(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),a.monitor(e).pipe(G_(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&s.run(()=>this.show()):s.run(()=>this.hide(0))}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=m_(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,i)=>{t.removeEventListener(i,e,wD)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Gb(TD,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(G_(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(G_(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(G_(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw AD(e);i={originX:"end",originY:"center"}}const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw AD(e);i={overlayX:"start",overlayY:"center"}}const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(uf(1),G_(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,wD)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(Lo(ky),Lo(Ha),Lo(Nb),Lo(dc),Lo(Ru),Lo(db),Lo(Ky),Lo(uw),Lo(vD),Lo(Mb,8),Lo(CD,8),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),TD=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new M,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wr),Lo(_D))},t.\u0275cmp=de({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Yo("click",(function(){return e._handleBodyInteraction()}),!1,Xi),2&t&&ca("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var i;1&t&&(Oo(0,"div",0),Yo("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),Ic(1,"async"),va(2),Po()),2&t&&(ua("mat-tooltip-handset",null==(i=Nc(1,5,e._isHandset))?null:i.matches),Do("ngClass",e.tooltipClass)("@state",e._visibility),vs(2),Ma(e.message))},directives:[ph],pipes:[Oh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[yD.tooltipState]},changeDetection:0}),t})(),kD=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[MD],imports:[[pw,Qh,Ry,Gv],Gv,Wb]}),t})();const ED=["trigger"],xD=["panel"];function LD(t,e){if(1&t&&(Oo(0,"span",8),va(1),Po()),2&t){const t=Go();vs(1),Ma(t.placeholder||"\xa0")}}function zD(t,e){if(1&t&&(Oo(0,"span"),va(1),Po()),2&t){const t=Go(2);vs(1),Ma(t.triggerValue||"\xa0")}}function DD(t,e){1&t&&Jo(0,0,["*ngSwitchCase","true"])}function RD(t,e){1&t&&(Oo(0,"span",9),Eo(1,zD,2,1,"span",10),Eo(2,DD,1,0,"ng-content",11),Po()),2&t&&(Do("ngSwitch",!!Go().customTrigger),vs(2),Do("ngSwitchCase",!0))}function OD(t,e){if(1&t){const t=Ho();Oo(0,"div",12),Oo(1,"div",13,14),Yo("@transformPanel.done",(function(e){return ii(t),Go()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return ii(t),Go()._handleKeydown(e)})),Jo(3,1),Po(),Po()}if(2&t){const t=Go();Do("@transformPanelWrap",void 0),vs(1),Ta("mat-select-panel ",t._getPanelTheme(),""),ca("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),Do("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),So("id",t.id+"-panel")}}const PD=[[["mat-select-trigger"]],"*"],ID=["mat-select-trigger","*"],ND={transformPanelWrap:mw("transformPanelWrap",[Mw("* => void",Sw("@transformPanel",[Cw()],{optional:!0}))]),transformPanel:mw("transformPanel",[Aw("void",ww({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Aw("showing",ww({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Aw("showing-multiple",ww({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Mw("void => *",_w("120ms cubic-bezier(0, 0, 0.2, 1)")),Mw("* => void",_w("100ms 25ms linear",ww({opacity:0})))])};let FD=0;const BD=new Nt("mat-select-scroll-strategy"),HD=new Nt("MAT_SELECT_CONFIG"),qD={provide:BD,deps:[ky],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class jD{constructor(t,e){this.source=t,this.value=e}}class YD{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const WD=Jv(Qv(Xv(Zv(YD))));let UD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-select-trigger"]]}),t})(),KD=(()=>{class t extends WD{constructor(t,e,i,n,s,r,o,a,c,u,l,h,d,p){super(s,n,o,a,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=d,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+FD++,this._destroy=new M,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new M,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=Kp(()=>{const t=this.options;return t?t.changes.pipe(pf(t),of(()=>U(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(uf(1),of(()=>this.optionSelectionChanges))}),this.openedChange=new jc,this._openedStream=this.openedChange.pipe(Fd(t=>t),P(()=>{})),this._closedStream=this.openedChange.pipe(Fd(t=>!t),P(()=>{})),this.selectionChange=new jc,this.valueChange=new jc,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(l)||0,this.id=this.id,p&&(null!=p.disableOptionCentering&&(this.disableOptionCentering=p.disableOptionCentering),null!=p.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=p.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=m_(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=m_(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=m_(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=__(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new xb(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(B_(),G_(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(G_(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(G_(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(pf(null),G_(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(uf(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!ey(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;36===e||35===e?(36===e?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const n=this.selected;n&&i!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||ey(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(uf(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return zn()&&console.warn(i),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Gy(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(G_(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(G_(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=U(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(G_(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),U(...this.options.map(t=>t._stateChanges)).pipe(G_(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new jD(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=IM(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=NM(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,i,n)=>void 0!==e?e:t===i?n:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=IM(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,r=Math.floor(256/n);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(Lo(Bb),Lo(Wr),Lo(Ru),Lo(hM),Lo(Ha),Lo(Mb,8),Lo(YE,8),Lo(ix,8),Lo(Dk,8),Lo(Wk,10),zo("tabindex"),Lo(BD),Lo(sw),Lo(HD,8))},t.\u0275cmp=de({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,UD,!0),nu(i,PM,!0),nu(i,LM,!0)),2&t&&(Zc(n=ou())&&(e.customTrigger=n.first),Zc(n=ou())&&(e.options=n),Zc(n=ou())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(eu(ED,!0),eu(xD,!0),eu(zy,!0)),2&t&&(Zc(i=ou())&&(e.trigger=i.first),Zc(i=ou())&&(e.panel=i.first),Zc(i=ou())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&Yo("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(So("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),ua("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ia([{provide:wk,useExisting:t},{provide:OM,useExisting:t}]),ho,ze],ngContentSelectors:ID,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&($o(PD),Oo(0,"div",0,1),Yo("click",(function(){return e.toggle()})),Oo(3,"div",2),Eo(4,LD,2,1,"span",3),Eo(5,RD,3,2,"span",4),Po(),Oo(6,"div",5),Io(7,"div",6),Po(),Po(),Eo(8,OD,4,11,"ng-template",7),Yo("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=xo(1);vs(3),Do("ngSwitch",e.empty),vs(1),Do("ngSwitchCase",!0),vs(1),Do("ngSwitchCase",!1),vs(3),Do("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Ly,vh,Mh,zy,Ch,ph],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[ND.transformPanelWrap,ND.transformPanel]},changeDetection:0}),t})(),VD=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[qD],imports:[[Qh,Ry,FM,Gv],Wb,Ok,FM,Gv]}),t})();function GD(t,e){if(1&t){const t=Ho();Oo(0,"button",15),Yo("click",(function(){ii(t);const e=Go().index;return Go().removeValue(e)})),Oo(1,"mat-icon"),va(2," indeterminate_check_box "),Po(),Po()}}function XD(t,e){if(1&t){const t=Ho();Oo(0,"div",9),Oo(1,"mat-form-field",10),Io(2,"label",11),Oo(3,"input",12),Yo("click",(function(){ii(t);const i=e.index,n=Go();return n.readonly&&n.attribute.displayName&&n.showValue(n.keys[i],n.attribute.displayName)}))("ngModelChange",(function(i){ii(t);const n=e.index;return Go().keys[n]=i})),Po(),Po(),Oo(4,"mat-form-field",10),Io(5,"label",11),Oo(6,"input",13),Yo("click",(function(){ii(t);const i=e.$implicit,n=Go();return n.readonly&&void 0!==n.attribute.displayName&&n.showValue(i,n.attribute.displayName)}))("ngModelChange",(function(i){ii(t);const n=e.index;return Go().values[n]=i})),Po(),Po(),Eo(7,GD,3,0,"button",14),Po()}if(2&t){const t=e.index,i=Go();vs(1),Qo("appearance",i.readonly?"none":"standard"),vs(1),ta("for","",i.attribute.id,"-key-",t,""),vs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),ta("id","",i.attribute.id,"-key-",t,""),Zo("name","key-",t,""),Do("ngModel",i.keys[t])("readonly",i.readonly),vs(1),Qo("appearance",i.readonly?"none":"standard"),vs(1),ta("for","",i.attribute.id,"-value-",t,""),vs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),Zo("name","value-",t,""),ta("id","",i.attribute.id,"-value-",t,""),Do("readonly",i.readonly)("ngModel",i.values[t]),vs(1),Do("ngIf",!i.readonly)}}function $D(t,e){1&t&&(Oo(0,"mat-icon"),va(1,"more_horiz"),Po())}function JD(t,e){1&t&&(Oo(0,"mat-icon"),va(1,"keyboard_arrow_up"),Po())}function QD(t,e){if(1&t){const t=Ho();Oo(0,"button",16),Yo("click",(function(){return ii(t),Go().onShowChange()})),Eo(1,$D,2,0,"mat-icon",17),Eo(2,JD,2,0,"mat-icon",17),Po()}if(2&t){const t=Go();vs(1),Do("ngIf",!t.showMore),vs(1),Do("ngIf",t.showMore)}}function ZD(t,e){if(1&t){const t=Ho();Oo(0,"button",18),Yo("click",(function(){return ii(t),Go().addValue()})),Oo(1,"mat-icon"),va(2," add_box "),Po(),Po()}}let tR=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(void 0!==this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=fC(this.attribute))}customTrackBy(t,e){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 e=0;ee.defaultItemsShown),vs(1),Do("ngIf",!e.readonly))},directives:[JE,Vk,YE,mh,SD,bh,Rk,Bx,Hk,dx,Kk,$E,ZC,wS],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}"]}),t})();const eR=["input"],iR=function(){return{enterDuration:150}},nR=["*"],sR=new Nt("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),rR=new Nt("mat-checkbox-click-action");let oR=0;const aR={provide:Pk,useExisting:vt(()=>hR),multi:!0};class cR{}class uR{constructor(t){this._elementRef=t}}const lR=Qv($v(Jv(Xv(uR))));let hR=(()=>{class t extends lR{constructor(t,e,i,n,s,r,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=r,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++oR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new jc,this.indeterminateChange=new jc,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(s)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=m_(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=m_(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=m_(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new cR;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+i}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wr),Lo(uw),Lo(Ru),zo("tabindex"),Lo(rR,8),Lo(Nv,8),Lo(sR,8))},t.\u0275cmp=de({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(eu(eR,!0),eu(MM,!0)),2&t&&(Zc(i=ou())&&(e._inputElement=i.first),Zc(i=ou())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(ka("id",e.id),So("tabindex",null),ua("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ia([aR]),ho],ngContentSelectors:nR,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&($o(),Oo(0,"label",0,1),Oo(2,"div",2),Oo(3,"input",3,4),Yo("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),Po(),Oo(5,"div",5),Io(6,"div",6),Po(),Io(7,"div",7),Oo(8,"div",8),Ei(),Oo(9,"svg",9),Io(10,"path",10),Po(),xi(),Io(11,"div",11),Po(),Po(),Oo(12,"span",12,13),Yo("cdkObserveContent",(function(){return e._onLabelTextChange()})),Oo(14,"span",14),va(15,"\xa0"),Po(),Jo(16),Po(),Po()),2&t){const t=xo(1),i=xo(13);So("for",e.inputId),vs(2),ua("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),vs(1),Do("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),So("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),vs(2),Do("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Lc(18,iR))}},directives:[MM,Hy],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{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const dR={provide:$k,useExisting:vt(()=>pR),multi:!0};let pR=(()=>{class t extends px{}return t.\u0275fac=function(e){return fR(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[Ia([dR]),ho]}),t})();const fR=gn(pR);let gR=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})(),mR=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[CM,Gv,qy,gR],Gv,gR]}),t})();function _R(t,e){if(1&t){const t=Ho();Oo(0,"mat-checkbox",2),Yo("change",(function(){return ii(t),Go()._sendEventToParent()}))("ngModelChange",(function(e){return ii(t),Go().attribute.value=e})),Po()}2&t&&Do("ngModel",Go().attribute.value)}function bR(t,e){if(1&t&&(Oo(0,"mat-label"),va(1),Po()),2&t){const t=Go();vs(1),Ma(t.attribute.value)}}let yR=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new jc}ngOnInit(){this.readonly||(this.readonly=fC(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"div"),Eo(1,_R,1,1,"mat-checkbox",0),Eo(2,bR,2,1,"mat-label",1),Po()),2&t&&(vs(1),Do("ngIf",!e.readonly),vs(1),Do("ngIf",e.readonly))},directives:[bh,hR,Kk,$E,Ck],styles:[""]}),t})();function wR(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function AR(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function vR(t,e){const i=e?"":"none";AR(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function MR(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function CR(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function SR(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function TR(t,e,i){const{top:n,bottom:s,left:r,right:o}=t;return i>=n&&i<=s&&e>=r&&e<=o}function kR(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function ER(t,e,i,n){const{top:s,right:r,bottom:o,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:SR(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,c=s.left-o;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&kR(t.clientRect,a,c)}),s.top=r,s.left=o,{top:a,left:c}}}const LR=yb({passive:!0}),zR=yb({passive:!1});class DR{constructor(t,e,i,n,s,r){this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=s,this._dragDropRegistry=r,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new M,this._pointerMoveSubscription=h.EMPTY,this._pointerUpSubscription=h.EMPTY,this._scrollSubscription=h.EMPTY,this._resizeSubscription=h.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new M,this.started=new M,this.released=new M,this.ended=new M,this.entered=new M,this.exited=new M,this.dropped=new M,this.moved=this._moveEvents.asObservable(),this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{t.preventDefault();const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),this._parentPositions=new xR(i,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=m_(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>A_(t)),this._handles.forEach(t=>vR(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=A_(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,zR),e.addEventListener("touchstart",this._pointerDown,LR)}),this._initialTransform=void 0,this._rootElement=e),this}withBoundaryElement(t){return this._boundaryElement=t?A_(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&IR(this._rootElement),IR(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t))}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&IR(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&IR(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){this.started.next({source:this}),NR(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,n=t.parentNode,s=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(o,t),t.style.display="none",this._document.body.appendChild(n.replaceChild(r,t)),(i=this._document,i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body).appendChild(s),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var i;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=NR(e),s=!n&&0!==e.button,r=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor,r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=SR(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s}),e.drop(this,i,this._initialContainer,r,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,e,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(t,e),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=RR(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=FR(s,this._document),this._previewRef=s,t.matchSize?BR(n,e):n.style.transform=RR(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=OR(t),BR(n,t.getBoundingClientRect())}return AR(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),vR(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=RR(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=CR(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),r=CR(e,"transition-duration"),o=CR(e,"transition-delay");return MR(r[s])+MR(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=FR(this._placeholderRef,this._document)):i=OR(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,r=NR(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-i.left+(r.pageX-s.left-o.left),y:s.top-i.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=NR(t)?t.touches[0]||t.changedTouches[0]:t,i=this._getViewportScrollPosition();return{x:e.pageX-i.left,y:e.pageY-i.top}}_getConstrainedPointerPosition(t){const e=this.constrainPosition?this.constrainPosition(t,this):t,i=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===i?e.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==i||(e.x=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:i}=this._pickupPositionInElement,n=this._boundaryRect,s=this._previewRect,r=n.top+i,o=n.bottom-(s.height-i);e.x=PR(e.x,n.left+t,n.right-(s.width-t)),e.y=PR(e.y,r,o)}return e}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(i-s.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,vR(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,zR),t.removeEventListener("touchstart",this._pointerDown,LR)}_applyRootElementTransform(t,e){const i=RR(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,r=n.right-i.right,o=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,i.height>n.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:NR(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);this._boundaryRect&&e&&kR(this._boundaryRect,e.top,e.left)}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}}function RR(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function OR(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(let s=0;sn.appendChild(t)),n}function BR(t,e){t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.transform=RR(e.left,e.top)}function HR(t,e,i){const n=qR(e,t.length-1),s=qR(i,t.length-1);if(n===s)return;const r=t[n],o=s!0,this.beforeStarted=new M,this.entered=new M,this.exited=new M,this.dropped=new M,this.sorted=new M,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new M,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=j_){return(!U_(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=j_),new b(i=>(i.add(e.schedule(wR,t,{subscriber:i,counter:0,period:t})),i))}(0,x_).pipe(G_(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?WR(t,-2):2===this._verticalScrollDirection&&WR(t,2),1===this._horizontalScrollDirection?UR(t,-2):2===this._horizontalScrollDirection&&UR(t,2)})},this.element=A_(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new xR(i,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=A_(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let c=r[s];if(c===t&&(c=r[s+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else{const n=A_(this.element);this._shouldEnterAsFirstChild(e,i)?(n.insertBefore(a,r[0].getRootElement()),r.unshift(t)):(n.appendChild(a),r.push(t))}a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,r){this._reset(),null==r&&(r=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:i,isPointerOverContainer:n,distance:s})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=A_(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?YR("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!ER(this._clientRect,.05,e,i))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=YR(s,e=>e.drag===t),c=s[r],u=s[a].clientRect,l=c.clientRect,h=a>r?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y;const d=this._getItemOffsetPx(u,l,h),p=this._getSiblingOffsetPx(a,s,h),f=s.slice();HR(s,a,r),this.sorted.next({previousIndex:a,currentIndex:r,container:this,item:t}),s.forEach((e,i)=>{if(f[i]===e)return;const n=e.drag===t,s=n?d:p,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,kR(e.clientRect,0,s)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,kR(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!i&&ER(r.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=KR(e,n),r=VR(e,i);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};n=KR(a,e),s=VR(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){const t=A_(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:SR(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=A_(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{const e=t.getRootElement();e&&(e.style.transform="")}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*i];let o=s[n?"width":"height"]*i;if(r){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation;return YR(this._itemPositions,({drag:r,clientRect:o},a,c)=>{if(r===t)return c.length<2;if(n){const t=s?n.x:n.y;if(r===this._previousSwap.drag&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!TR(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=A_(this.element);return n===s||s.contains(n)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{kR(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Ab(A_(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function YR(t,e){for(let i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function VR(t,e){const{left:i,right:n,width:s}=t,r=.05*s;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}const GR=yb({passive:!1,capture:!0});let XR=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new M,this.pointerUp=new M,this.scroll=new M,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,GR)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,GR)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch"),i=t?"touchend":"mouseup";this._globalListeners.set(t?"touchmove":"mousemove",{handler:t=>this.pointerMove.next(t),options:GR}).set(i,{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:GR}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(Vt(Ru),Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt(Ru),Vt(ll))},token:t,providedIn:"root"}),t})();const $R={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let JR=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=$R){return new DR(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new jR(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(Vt(ll),Vt(Ru),Vt(Bb),Vt(XR))},t.\u0275prov=ut({factory:function(){return new t(Vt(ll),Vt(Ru),Vt(Bb),Vt(XR))},token:t,providedIn:"root"}),t})();const QR=new Nt("CDK_DRAG_PARENT");let ZR=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new M,this._disabled=!1,this._parentDrag=e,vR(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=m_(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(QR,8))},t.\u0275dir=be({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),tO=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc))},t.\u0275dir=be({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),t})(),eO=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=m_(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc))},t.\u0275dir=be({type:t,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),t})();const iO=new Nt("CDK_DRAG_CONFIG"),nO=new Nt("CDK_DROP_LIST");let sO=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=n,this._viewContainerRef=s,this._dir=o,this._changeDetectorRef=c,this._destroyed=new M,this.started=new jc,this.released=new jc,this.ended=new jc,this.entered=new jc,this.exited=new jc,this.dropped=new jc,this.moved=new b(t=>{const e=this._dragRef.moved.pipe(P(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=a.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,r&&this._assignDefaults(r),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=m_(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.asObservable().pipe(uf(1),G_(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(pf(this._handles),vf(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),of(t=>U(...t.map(t=>t._stateChanges.pipe(pf(t))))),G_(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?rO(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error(`cdkDrag must be attached to an element node. Currently attached to "${e.nodeName}".`);this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return rO(this.element.nativeElement,t);const e=A_(t);if(zn()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:__(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.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})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:r,draggingDisabled:o,rootElementSelector:a}=t;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),r&&(this.boundaryElement=r),a&&(this.rootElementSelector=a)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(nO,12),Lo(ll),Lo(Ru),Lo(dc),Lo(iO,8),Lo(Mb,8),Lo(JR),Lo(Wr))},t.\u0275dir=be({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,eO,!0),nu(i,tO,!0),nu(i,ZR,!0)),2&t&&(Zc(n=ou())&&(e._previewTemplate=n.first),Zc(n=ou())&&(e._placeholderTemplate=n.first),Zc(n=ou())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&ua("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Ia([{provide:QR,useExisting:t}]),ze]}),t})();function rO(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let oO=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=m_(t)}ngOnDestroy(){this._items.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),t})(),aO=0,cO=(()=>{class t{constructor(e,i,n,s,r,o,a){this.element=e,this._changeDetectorRef=n,this._dir=s,this._group=r,this._scrollDispatcher=o,this._destroyed=new M,this.connectedTo=[],this.id="cdk-drop-list-"+aO++,this.enterPredicate=()=>!0,this.dropped=new jc,this.entered=new jc,this.exited=new jc,this.sorted=new jc,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,a&&this._assignDefaults(a),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),r&&r._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=m_(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}start(){this._dropListRef.start()}drop(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}enter(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}exit(t){this._dropListRef.exit(t._dragRef)}getItemIndex(t){return this._dropListRef.getItemIndex(t._dragRef)}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(pf(this._dir.value),G_(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=y_(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved&&this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=m_(this.sortingDisabled),e.autoScrollDisabled=m_(this.autoScrollDisabled),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.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}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:r}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=r||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(JR),Lo(Wr),Lo(Mb,8),Lo(oO,12),Lo(Nb),Lo(iO,8))},t.\u0275dir=be({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(ka("id",e.id),ua("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Ia([{provide:oO,useValue:void 0},{provide:nO,useExisting:t}])]}),t._dropLists=[],t})(),uO=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[JR],imports:[Wb]}),t})();const lO=["*"];class hO{constructor(t){this._elementRef=t}}const dO=Qv($v(Jv(hO),"primary"),-1);let pO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t})(),fO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t})(),gO=(()=>{class t extends dO{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=r,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new M,this._onBlur=new M,this.selectionChange=new jc,this.destroyed=new jc,this.removed=new jc,this._addHostClassName(),this._chipRippleTarget=(a||document).createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new AM(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===s,this.tabIndex=null!=o&&parseInt(o)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=m_(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=m_(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=m_(t)}get removable(){return this._removable}set removable(t){this._removable=m_(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.asObservable().pipe(uf(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}_markForCheck(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Ru),Lo(db),Lo(vM,8),Lo(Nv,8),Lo(Wr),zo("tabindex"),Lo(ll,8))},t.\u0275dir=be({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,pO,!0),nu(i,fO,!0),nu(i,mO,!0)),2&t&&(Zc(n=ou())&&(e.avatar=n.first),Zc(n=ou())&&(e.trailingIcon=n.first),Zc(n=ou())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&Yo("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(So("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),ua("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[ho]}),t})(),mO=(()=>{class t{constructor(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(Lo(gO),Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&Yo("click",(function(t){return e._handleClick(t)}))}}),t})();const _O=new Nt("mat-chips-default-options");class bO{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const yO=Zv(bO);let wO=0;class AO{constructor(t,e){this.source=t,this.value=e}}let vO=(()=>{class t extends yO{constructor(t,e,i,n,s,r,o){super(r,n,s,o),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new M,this._uid="mat-chip-list-"+wO++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new jc,this.valueChange=new jc,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=m_(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=m_(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=m_(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=m_(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return U(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return U(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return U(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return U(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new Xy(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(G_(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(G_(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(pf(null),G_(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 xb(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new AO(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wr),Lo(Mb,8),Lo(YE,8),Lo(ix,8),Lo(hM),Lo(Wk,10))},t.\u0275cmp=de({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;1&t&&nu(i,gO,!0),2&t&&Zc(n=ou())&&(e.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&Yo("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(ka("id",e._uid),So("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),ua("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Ia([{provide:wk,useExisting:t}]),ho],ngContentSelectors:lO,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&($o(),Oo(0,"div",0),Jo(1),Po())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),MO=0,CO=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new jc,this.placeholder="",this.id="mat-chip-list-input-"+MO++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=m_(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=m_(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&9===t.keyCode&&!ey(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){if(ey(t))return!1;const e=this.separatorKeyCodes,i=t.keyCode;return Array.isArray(e)?e.indexOf(i)>-1:e.has(i)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(_O))},t.\u0275dir=be({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&Yo("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(ka("id",e.id),So("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[ze]}),t})();const SO={separatorKeyCodes:[13]};let TO=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[hM,{provide:_O,useValue:SO}]}),t})();function kO(t,e){if(1&t){const t=Ho();Oo(0,"mat-icon",9),Yo("mousedown",(function(){return ii(t),Go(2).dragDisabled=!1})),va(1,"drag_indicator"),Po()}}function EO(t,e){if(1&t){const t=Ho();Oo(0,"mat-icon",10),Yo("click",(function(){ii(t);const e=Go().$implicit;return Go().edit(e)})),va(1,"edit"),Po()}}function xO(t,e){if(1&t){const t=Ho();Oo(0,"mat-icon",11),Yo("click",(function(){ii(t);const e=Go().$implicit;return Go().remove(e)})),va(1,"cancel"),Po()}}function LO(t,e){if(1&t){const t=Ho();Oo(0,"mat-chip",4),Yo("removed",(function(){ii(t);const i=e.$implicit,n=Go();return n.remove(i),n._sendEventToParent()})),Eo(1,kO,2,0,"mat-icon",5),Oo(2,"div",6),Yo("click",(function(){ii(t);const i=e.$implicit,n=Go();return n.readonly&&void 0!==n.attribute.displayName&&n.showValue(i,n.attribute.displayName)})),va(3),Po(),Eo(4,EO,2,0,"mat-icon",7),Eo(5,xO,2,0,"mat-icon",8),Po()}if(2&t){const t=e.$implicit,i=Go();Do("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),vs(1),Do("ngIf",i.removable),vs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),vs(1),Ma(t),vs(1),Do("ngIf",i.removable),vs(1),Do("ngIf",i.removable)}}function zO(t,e){1&t&&(Oo(0,"mat-icon"),va(1,"more_horiz"),Po())}function DO(t,e){1&t&&(Oo(0,"mat-icon"),va(1,"keyboard_arrow_up"),Po())}function RO(t,e){if(1&t){const t=Ho();Oo(0,"div",12),Oo(1,"span",13),Oo(2,"button",14),Yo("click",(function(){return ii(t),Go().onShowChange()})),Eo(3,zO,2,0,"mat-icon",15),Eo(4,DO,2,0,"mat-icon",15),Po(),Po(),Po()}if(2&t){const t=Go();vs(1),Do("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),vs(2),Do("ngIf",!t.showMore),vs(1),Do("ngIf",t.showMore)}}function OO(t,e){if(1&t){const t=Ho();Oo(0,"mat-form-field",12),Oo(1,"input",16),Yo("matChipInputTokenEnd",(function(e){return ii(t),Go().add(e)}))("change",(function(){return ii(t),Go()._sendEventToParent()})),Po(),Po()}if(2&t){const t=Go(),e=xo(2);vs(1),Do("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let PO=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new jc,this.readonly=!1}ngOnInit(){this.removable=!fC(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=fC(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=pC();e.width="400px",e.data={name:t},this.dialog.open(sD,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,HR(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=pC();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(nD,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=pC();i.width="350px",i.data={value:t,title:e},this.dialog.open(iD,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM))},t.\u0275cmp=de({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(Oo(0,"div"),Oo(1,"mat-chip-list",0,1),Yo("cdkDropListDropped",(function(t){return e.drop(t),e._sendEventToParent()})),Eo(3,LO,6,9,"mat-chip",2),Eo(4,RO,5,4,"div",3),Eo(5,OO,2,3,"mat-form-field",3),Po(),Po()),2&t&&(vs(1),Do("cdkDropListDisabled",e.dragDisabled),vs(2),Do("ngForOf",e.values.slice(0,e.itemsShown)),vs(1),Do("ngIf",e.values.length>e.defaultItemsShown),vs(1),Do("ngIf",!e.readonly))},directives:[vO,cO,mh,bh,gO,sO,wS,SD,ZC,Rk,Bx,CO],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),IO=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new jc}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=fC(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=pC();i.width="350px",i.data={value:t,title:e},this.dialog.open(iD,i)}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(Oo(0,"mat-form-field",0),Oo(1,"input",1),Yo("click",(function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)}))("ngModelChange",(function(t){return e.attribute.value=t}))("keydown",(function(){return e._sendEventToParent()})),Po(),Po()),2&t&&(Qo("appearance",e.readonly?"none":"standard"),vs(1),ua("cursor-pointer",e.readonly&&void 0!==e.value),Do("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[Rk,Bx,Hk,Kk,$E],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),NO=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new jc}ngOnInit(){this.readonly||(this.readonly=fC(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=pC();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(iD,e)}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM))},t.\u0275cmp=de({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(t,e){1&t&&(Oo(0,"mat-form-field",0),Oo(1,"input",1),Yo("click",(function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)}))("ngModelChange",(function(t){return e.attribute.value=t}))("keydown",(function(){return e._sendEventToParent()})),Po(),Po()),2&t&&(Qo("appearance",e.readonly?"none":"standard"),vs(1),ua("cursor-pointer",e.readonly&&void 0!==e.attribute.value),Do("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[Rk,Bx,oE,Hk,Kk,$E],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const FO=["map"];function BO(t,e){if(1&t){const t=Ho();Oo(0,"perun-web-apps-attribute-value-boolean",3),Yo("sendEventToParent",(function(){return ii(t),Go()._sendEventToParent2()})),Po()}if(2&t){const t=Go();Do("attribute",t.attribute)("readonly",t.readonly)}}function HO(t,e){if(1&t){const t=Ho();Oo(0,"perun-web-apps-attribute-value-list",3),Yo("sendEventToParent",(function(){return ii(t),Go()._sendEventToParent2()})),Po()}if(2&t){const t=Go();Do("attribute",t.attribute)("readonly",t.readonly)}}function qO(t,e){if(1&t&&Io(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=Go();Do("attribute",t.attribute)("readonly",t.readonly)}}function jO(t,e){if(1&t){const t=Ho();Oo(0,"perun-web-apps-attribute-value-string",3),Yo("sendEventToParent",(function(){return ii(t),Go()._sendEventToParent2()})),Po()}if(2&t){const t=Go();Do("attribute",t.attribute)("readonly",t.readonly)}}function YO(t,e){if(1&t){const t=Ho();Oo(0,"perun-web-apps-attribute-value-integer",3),Yo("sendEventToParent",(function(){return ii(t),Go()._sendEventToParent2()})),Po()}if(2&t){const t=Go();Do("attribute",t.attribute)("readonly",t.readonly)}}let WO=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new jc}ngOnInit(){}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){var i;1&t&&eu(FO,!0),2&t&&Zc(i=ou())&&(e.mapComponent=i.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(t,e){1&t&&(Oo(0,"div"),Eo(1,BO,1,2,"perun-web-apps-attribute-value-boolean",0),Eo(2,HO,1,2,"perun-web-apps-attribute-value-list",0),Oo(3,"div",1),Yo("click",(function(){return e._sendEventToParent2()})),Eo(4,qO,2,2,"perun-web-apps-attribute-value-map",2),Po(),Eo(5,jO,1,2,"perun-web-apps-attribute-value-string",0),Eo(6,YO,1,2,"perun-web-apps-attribute-value-integer",0),Po()),2&t&&(vs(1),Do("ngIf","java.lang.Boolean"===e.attribute.type),vs(1),Do("ngIf","java.util.ArrayList"===e.attribute.type),vs(2),Do("ngIf","java.util.LinkedHashMap"===e.attribute.type),vs(1),Do("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),vs(1),Do("ngIf","java.lang.Integer"===e.attribute.type))},directives:[bh,yR,PO,tR,IO,NO],styles:[""]}),t})();function UO(t,e){1&t&&Io(0,"mat-spinner",3)}function KO(t,e){if(1&t){const t=Ho();Oo(0,"mat-option",17),Yo("click",(function(){ii(t);const i=e.$implicit;return Go(4).changeLanguage(i)})),va(1),Po()}if(2&t){const t=e.$implicit;Do("value",t),vs(1),Ca(" ",t," ")}}function VO(t,e){if(1&t){const t=Ho();Oo(0,"mat-form-field",14),Oo(1,"mat-select",15),Yo("valueChange",(function(e){return ii(t),Go(3).currentLang=e})),Eo(2,KO,2,2,"mat-option",16),Po(),Po()}if(2&t){const t=Go(3);vs(1),Do("value",t.currentLang),vs(1),Do("ngForOf",t.languages)}}function GO(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"a",18),va(2),Po(),Oo(3,"button",19),Yo("click",(function(){return ii(t),Go(3).changeEmail()})),va(4),Ic(5,"translate"),Ic(6,"customTranslate"),Po(),Po()}if(2&t){const t=Go(3);vs(1),Zo("href","mailto:",t.email,"",ns),vs(1),Ma(t.email),vs(2),Ma(Nc(5,3,Nc(6,5,"PROFILE_PAGE.CHANGE_EMAIL")))}}function XO(t,e){if(1&t){const t=Ho();Oo(0,"mat-option",17),Yo("click",(function(){ii(t);const i=e.$implicit;return Go(4).changeTimeZone(i)})),va(1),Po()}if(2&t){const t=e.$implicit;Do("value",t),vs(1),Ca(" ",t," ")}}function $O(t,e){if(1&t){const t=Ho();Oo(0,"mat-form-field",20),Oo(1,"mat-select",21),Yo("valueChange",(function(e){return ii(t),Go(3).currentTimezone=e})),Eo(2,XO,2,2,"mat-option",16),Po(),Po()}if(2&t){const t=Go(3);vs(1),Do("value",t.currentTimezone),vs(1),Do("ngForOf",t.timeZones)}}function JO(t,e){1&t&&(Oo(0,"p"),va(1,"-"),Po())}function QO(t,e){1&t&&Io(0,"perun-web-apps-attribute-value",24),2&t&&Do("attribute",Go(2).$implicit.attribute)("readonly",!0)}function ZO(t,e){if(1&t&&(Oo(0,"div"),Eo(1,JO,2,0,"p",22),Eo(2,QO,1,2,"perun-web-apps-attribute-value",23),Po()),2&t){const t=Go().$implicit;vs(1),Do("ngIf",!t.attribute.value),vs(1),Do("ngIf",t.attribute.value)}}function tP(t,e){if(1&t&&(Oo(0,"tr"),Oo(1,"td",7),Oo(2,"div",8),va(3),Po(),Po(),Oo(4,"td",9),Eo(5,VO,3,2,"mat-form-field",10),Eo(6,GO,7,7,"div",11),Eo(7,$O,3,2,"mat-form-field",12),Eo(8,ZO,3,2,"div",13),Po(),Po()),2&t){const t=e.$implicit,i=Go(2);vs(2),Do("matTooltip","en"===i.translateService.currentLang?t.tooltip_en:t.tooltip_cz),vs(1),Ma("en"===i.translateService.currentLang?t.displayName_en:t.displayName_cz),vs(1),Do("ngSwitch",t.attribute.friendlyName),vs(1),Do("ngSwitchCase","preferredLanguage"),vs(1),Do("ngSwitchCase","preferredMail"),vs(1),Do("ngSwitchCase","timezone")}}function eP(t,e){if(1&t&&(Oo(0,"table",4),Oo(1,"tbody"),Oo(2,"tr"),Oo(3,"td",5),va(4),Ic(5,"translate"),Ic(6,"customTranslate"),Po(),Oo(7,"td"),va(8),Po(),Po(),Eo(9,tP,9,6,"tr",6),Po(),Po()),2&t){const t=Go();vs(4),Ma(Nc(5,3,Nc(6,5,"PROFILE_PAGE.NAME"))),vs(4),Ma(t.fullName),vs(1),Do("ngForOf",t.additionalAttributes)}}let iP=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this.translateService=t,this.dialog=e,this.authzResolverService=i,this.attributesManagerService=n,this.usersManagerService=s,this.route=r,this.router=o,this.notificator=a,this.storeService=c,this.currentLang="en",this.languages=["en","cs"],this.timeZones=PS.tz.names().filter(t=>!t.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){const t=this.route.snapshot.queryParamMap,e=t.get("i"),i=t.get("m"),n=t.get("u");this.loading=!0,e&&i&&n?this.usersManagerService.validatePreferredEmailChange(e,i,Number.parseInt(n,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()}):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(t=>{this.userId=t.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new az).transform(t);const e=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.email=e.value,this.languageAttribute=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName),this.currentLang=this.languageAttribute&&this.languageAttribute.value?this.languageAttribute.value:"en",this.timezoneAttribute=t.userAttributes.find(t=>"timezone"===t.friendlyName),this.currentTimezone=this.timezoneAttribute&&this.timezoneAttribute.value?this.timezoneAttribute.value:"-";const i=this.storeService.get("profile_page_attributes");let n=0;i.forEach(e=>{var s,r;const o=t.userAttributes.find(t=>t.friendlyName===e.friendly_name);o?(n++,this.additionalAttributes.push({attribute:o,displayName_en:e.display_name_en&&e.display_name_en.length?e.display_name_en:o.displayName,displayName_cz:e.display_name_cz&&e.display_name_cz.length?e.display_name_cz:o.displayName,tooltip_en:null!==(s=e.tooltip_en)&&void 0!==s?s:"",tooltip_cz:null!==(r=e.tooltip_cz)&&void 0!==r?r:""})):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${e.is_virtual?"virt":"def"}:${e.friendly_name}`).subscribe(t=>{var s,r;this.additionalAttributes.push({attribute:t,displayName_en:e.display_name_en&&e.display_name_en.length?e.display_name_en:t.displayName,displayName_cz:e.display_name_cz&&e.display_name_cz.length?e.display_name_cz:t.displayName,tooltip_en:null!==(s=e.tooltip_en)&&void 0!==s?s:"",tooltip_cz:null!==(r=e.tooltip_cz)&&void 0!==r?r:""}),n++,this.loading=n!==i.length}),this.loading=n!==i.length})})})}changeLanguage(t){this.currentLang=t,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(()=>{})}changeTimeZone(t){this.currentTimezone=t,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 t=pC();t.width="350px",t.data={userId:this.userId},this.dialog.open(lD,t).afterClosed().subscribe(t=>{t&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(t=>{this.email=t.value})}}return t.\u0275fac=function(e){return new(e||t)(Lo(YC),Lo(JM),Lo(Mp),Lo(vp),Lo(Lp),Lo(xg),Lo(Wm),Lo(MS),Lo(g_))},t.\u0275cmp=de({type:t,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","lang-field-width center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"lang-field-width","center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-stroked-button","",1,"ml-2",3,"click"],[1,"center-self"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(t,e){1&t&&(Oo(0,"div",0),Eo(1,UO,1,0,"mat-spinner",1),Eo(2,eP,10,7,"table",2),Po()),2&t&&(vs(1),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading))},directives:[bh,$x,mh,SD,vh,Mh,Ch,Rk,KD,PM,ZC,WO],pipes:[UC,cz],styles:[".lang-field-width[_ngcontent-%COMP%]{width:50px}.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}"]}),t})();function nP(t,e){if(1&t&&(Oo(0,"mat-option",19),va(1),Po()),2&t){const t=e.$implicit;Do("value",t),vs(1),Ca(" ",t," ")}}function sP(t,e){if(1&t){const t=Ho();Oo(0,"mat-form-field",16),Oo(1,"mat-select",17),Yo("selectionChange",(function(e){return ii(t),Go(2)._changePageSize(e.value)})),Eo(2,nP,2,2,"mat-option",18),Po(),Po()}if(2&t){const t=Go(2);Do("color",t.color),vs(1),Do("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),vs(1),Do("ngForOf",t._displayedPageSizeOptions)}}function rP(t,e){if(1&t&&(Oo(0,"div",20),va(1),Po()),2&t){const t=Go(2);vs(1),Ma(t.pageSize)}}function oP(t,e){if(1&t&&(Oo(0,"div",12),Oo(1,"div",13),va(2),Po(),Eo(3,sP,3,5,"mat-form-field",14),Eo(4,rP,2,1,"div",15),Po()),2&t){const t=Go();vs(2),Ca(" ",t._intl.itemsPerPageLabel," "),vs(1),Do("ngIf",t._displayedPageSizeOptions.length>1),vs(1),Do("ngIf",t._displayedPageSizeOptions.length<=1)}}function aP(t,e){if(1&t){const t=Ho();Oo(0,"button",21),Yo("click",(function(){return ii(t),Go().firstPage()})),Ei(),Oo(1,"svg",7),Io(2,"path",22),Po(),Po()}if(2&t){const t=Go();Do("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),So("aria-label",t._intl.firstPageLabel)}}function cP(t,e){if(1&t){const t=Ho();Ei(),xi(),Oo(0,"button",23),Yo("click",(function(){return ii(t),Go().lastPage()})),Ei(),Oo(1,"svg",7),Io(2,"path",24),Po(),Po()}if(2&t){const t=Go();Do("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),So("aria-label",t._intl.lastPageLabel)}}let uP=(()=>{class t{constructor(){this.changes=new M,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return"0 of "+i;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const lP={provide:uP,deps:[[new nt,new rt,uP]],useFactory:function(t){return t||new uP}},hP=new Nt("MAT_PAGINATOR_DEFAULT_OPTIONS");class dP{}const pP=Xv(tM(dP));let fP=(()=>{class t extends pP{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new jc,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(__(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=__(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(__(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>__(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=m_(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=m_(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(Lo(uP),Lo(Wr),Lo(hP,8))},t.\u0275cmp=de({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[ho],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,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Eo(2,oP,5,3,"div",2),Oo(3,"div",3),Oo(4,"div",4),va(5),Po(),Eo(6,aP,3,5,"button",5),Oo(7,"button",6),Yo("click",(function(){return e.previousPage()})),Ei(),Oo(8,"svg",7),Io(9,"path",8),Po(),Po(),xi(),Oo(10,"button",9),Yo("click",(function(){return e.nextPage()})),Ei(),Oo(11,"svg",7),Io(12,"path",10),Po(),Po(),Eo(13,cP,3,5,"button",11),Po(),Po(),Po()),2&t&&(vs(2),Do("ngIf",!e.hidePageSize),vs(3),Ca(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),vs(1),Do("ngIf",e.showFirstLastButtons),vs(1),Do("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),So("aria-label",e._intl.previousPageLabel),vs(3),Do("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),So("aria-label",e._intl.nextPageLabel),vs(3),Do("ngIf",e.showFirstLastButtons))},directives:[bh,ZC,SD,Rk,KD,mh,PM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),gP=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[lP],imports:[[Qh,eS,VD,kD]]}),t})();const mP=["mat-sort-header",""];function _P(t,e){if(1&t){const t=Ho();Oo(0,"div",3),Yo("@arrowPosition.start",(function(){return ii(t),Go()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return ii(t),Go()._disableViewStateAnimation=!1})),Io(1,"div",4),Oo(2,"div",5),Io(3,"div",6),Io(4,"div",7),Io(5,"div",8),Po(),Po()}if(2&t){const t=Go();Do("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),vs(2),Do("@indicator",t._getArrowDirectionState()),vs(1),Do("@leftPointer",t._getArrowDirectionState()),vs(1),Do("@rightPointer",t._getArrowDirectionState())}}const bP=["*"];class yP{}const wP=tM(Xv(yP));let AP=(()=>{class t extends wP{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new M,this.start="asc",this._direction="",this.sortChange=new jc}get direction(){return this._direction}set direction(t){if(zn()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(t+" is not a valid sort direction ('asc' or 'desc').")}(t);this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=m_(t)}register(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error(`Cannot have two MatSortables with the same id (${t.id}).`);this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),i=e.indexOf(this.direction)+1;return i>=e.length&&(i=0),e[i]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return vP(e||t)},t.\u0275dir=be({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ho,ze]}),t})();const vP=gn(AP),MP=Uv.ENTERING+" "+Wv.STANDARD_CURVE,CP={indicator:mw("indicator",[Aw("active-asc, asc",ww({transform:"translateY(0px)"})),Aw("active-desc, desc",ww({transform:"translateY(10px)"})),Mw("active-asc <=> active-desc",_w(MP))]),leftPointer:mw("leftPointer",[Aw("active-asc, asc",ww({transform:"rotate(-45deg)"})),Aw("active-desc, desc",ww({transform:"rotate(45deg)"})),Mw("active-asc <=> active-desc",_w(MP))]),rightPointer:mw("rightPointer",[Aw("active-asc, asc",ww({transform:"rotate(45deg)"})),Aw("active-desc, desc",ww({transform:"rotate(-45deg)"})),Mw("active-asc <=> active-desc",_w(MP))]),arrowOpacity:mw("arrowOpacity",[Aw("desc-to-active, asc-to-active, active",ww({opacity:1})),Aw("desc-to-hint, asc-to-hint, hint",ww({opacity:.54})),Aw("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ww({opacity:0})),Mw("* => asc, * => desc, * => active, * => hint, * => void",_w("0ms")),Mw("* <=> *",_w(MP))]),arrowPosition:mw("arrowPosition",[Mw("* => desc-to-hint, * => desc-to-active",_w(MP,vw([ww({transform:"translateY(-25%)"}),ww({transform:"translateY(0)"})]))),Mw("* => hint-to-desc, * => active-to-desc",_w(MP,vw([ww({transform:"translateY(0)"}),ww({transform:"translateY(25%)"})]))),Mw("* => asc-to-hint, * => asc-to-active",_w(MP,vw([ww({transform:"translateY(25%)"}),ww({transform:"translateY(0)"})]))),Mw("* => hint-to-asc, * => active-to-asc",_w(MP,vw([ww({transform:"translateY(0)"}),ww({transform:"translateY(-25%)"})]))),Aw("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ww({transform:"translateY(0)"})),Aw("hint-to-desc, active-to-desc, desc",ww({transform:"translateY(-25%)"})),Aw("hint-to-asc, active-to-asc, asc",ww({transform:"translateY(25%)"}))]),allowChildren:mw("allowChildren",[Mw("* <=> *",[Sw("@*",Cw(),{optional:!0})])])};let SP=(()=>{class t{constructor(){this.changes=new M,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TP={provide:SP,deps:[[new nt,new rt,SP]],useFactory:function(t){return t||new SP}};class kP{}const EP=Xv(kP);let xP=(()=>{class t extends EP{constructor(t,e,i,n,s,r){if(super(),this._intl=t,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",!i)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");this._rerenderSubscription=U(i.sortChange,i._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()}),s&&r&&s.monitor(r,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=m_(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngOnDestroy(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_handleClick(){if(this._isDisabled())return;this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(Lo(SP),Lo(Wr),Lo(AP,8),Lo("MAT_SORT_HEADER_COLUMN_DEF",8),Lo(uw),Lo(Ha))},t.\u0275cmp=de({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&Yo("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(So("aria-sort",e._getAriaSortAttribute()),ua("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[ho],attrs:mP,ngContentSelectors:bP,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&($o(),Oo(0,"div",0),Oo(1,"button",1),Jo(2),Po(),Eo(3,_P,6,6,"div",2),Po()),2&t&&(ua("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),vs(1),So("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),vs(2),Do("ngIf",e._renderArrow()))},directives:[bh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[CP.indicator,CP.leftPointer,CP.rightPointer,CP.arrowOpacity,CP.arrowPosition,CP.allowChildren]},changeDetection:0}),t})(),LP=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[TP],imports:[[Qh]]}),t})();function zP(t,e=j_){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new DP(n,e))}class DP{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new RP(t,this.delay,this.scheduler))}}class RP extends f{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(RP.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new OP(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(rb.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(rb.createComplete()),this.unsubscribe()}}class OP{constructor(t,e){this.time=t,this.notification=e}}const PP=["mat-menu-item",""],IP=["*"];function NP(t,e){if(1&t){const t=Ho();Oo(0,"div",0),Yo("keydown",(function(e){return ii(t),Go()._handleKeydown(e)}))("click",(function(){return ii(t),Go().closed.emit("click")}))("@transformMenu.start",(function(e){return ii(t),Go()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return ii(t),Go()._onAnimationDone(e)})),Oo(1,"div",1),Jo(2),Po(),Po()}if(2&t){const t=Go();Do("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),So("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const FP={transformMenu:mw("transformMenu",[Aw("void",ww({opacity:0,transform:"scale(0.8)"})),Mw("void => enter",bw([Sw(".mat-menu-content, .mat-mdc-menu-content",_w("100ms linear",ww({opacity:1}))),_w("120ms cubic-bezier(0, 0, 0.2, 1)",ww({transform:"scale(1)"}))])),Mw("* => void",_w("100ms 25ms linear",ww({opacity:0})))]),fadeInItems:mw("fadeInItems",[Aw("showing",ww({opacity:1})),Mw("void => *",[ww({opacity:0}),_w("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let BP=(()=>{class t{constructor(t,e,i,n,s,r,o){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=r,this._changeDetectorRef=o,this._attached=new M}attach(t={}){this._portal||(this._portal=new Xb(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Qb(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc),Lo(Ba),Lo(Qu),Lo(ao),Lo(dc),Lo(ll),Lo(Wr))},t.\u0275dir=be({type:t,selectors:[["ng-template","matMenuContent",""]]}),t})();const HP=new Nt("MAT_MENU_PANEL");class qP{}const jP=Jv(Xv(qP));let YP=(()=>{class t extends jP{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new M,this._focused=new M,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.monitor(this._elementRef,!1),n&&n.addItem&&n.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let i="";if(t.childNodes){const n=t.childNodes.length;for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Wc,this._tabSubscription=h.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new M,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new jc,this.close=this.closed,this.panelId="mat-menu-panel-"+UP++}get xPosition(){return this._xPosition}set xPosition(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=m_(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=m_(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Xy(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(pf(this._directDescendantItems),of(t=>U(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(pf(this._directDescendantItems),of(t=>U(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:ey(t)||(t.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;case 36:case 35:ey(t)||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(uf(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(pf(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Ru),Lo(WP))},t.\u0275dir=be({type:t,contentQueries:function(t,e,i){var n;1&t&&(nu(i,BP,!0),nu(i,YP,!0),nu(i,YP,!1)),2&t&&(Zc(n=ou())&&(e.lazyContent=n.first),Zc(n=ou())&&(e._allItems=n),Zc(n=ou())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&eu(lc,!0),2&t&&Zc(i=ou())&&(e.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),VP=(()=>{class t extends KP{}return t.\u0275fac=function(e){return GP(e||t)},t.\u0275dir=be({type:t,features:[ho]}),t})();const GP=gn(VP);let XP=(()=>{class t extends VP{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Ru),Lo(WP))},t.\u0275cmp=de({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Ia([{provide:HP,useExisting:VP},{provide:VP,useExisting:t}]),ho],ngContentSelectors:IP,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&($o(),Eo(0,NP,3,6,"ng-template"))},directives:[ph],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[FP.transformMenu,FP.fadeInItems]},changeDetection:0}),t})();const $P=new Nt("mat-menu-scroll-strategy"),JP={provide:$P,deps:[ky],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},QP=yb({passive:!0});let ZP=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=s,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new jc,this.onMenuOpen=this.menuOpened,this.menuClosed=new jc,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,QP),r&&(r._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=n}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,QP),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._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof VP&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof VP?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Fd(t=>"void"===t.toState),uf(1),G_(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ly({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:r,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:o,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return U(t,this._parentMenu?this._parentMenu.closed:Id(),this._parentMenu?this._parentMenu._hovered().pipe(Fd(t=>t!==this._menuItemInstance),Fd(()=>this._menuOpen)):Id(),e)}_handleMousedown(t){ow(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Fd(t=>t===this._menuItemInstance&&!t.disabled),zP(0,N_)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof VP&&this.menu._isAnimating?this.menu._animationDone.pipe(uf(1),zP(0,N_),G_(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Xb(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(Lo(ky),Lo(Ha),Lo(dc),Lo($P),Lo(VP,8),Lo(YP,10),Lo(Mb,8),Lo(uw))},t.\u0275dir=be({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Yo("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&So("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),tI=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[JP],imports:[Gv]}),t})(),eI=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[JP],imports:[[Qh,Gv,CM,Ry,tI],Wb,Gv,tI]}),t})(),iI=(()=>{class t{constructor(){this.exportData=new jc}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(Oo(0,"div",0),Oo(1,"button",1),Oo(2,"mat-icon"),va(3,"more_vert"),Po(),Po(),Oo(4,"mat-menu",null,2),Oo(6,"button",3),va(7),Ic(8,"translate"),Po(),Po(),Oo(9,"mat-menu",null,4),Oo(11,"button",5),Yo("click",(function(){return e.exportData.emit("csv")})),va(12,"Csv"),Po(),Po(),Po()),2&t){const t=xo(5),e=xo(10);vs(1),Do("matMenuTriggerFor",t),vs(5),Do("matMenuTriggerFor",e),vs(1),Ca(" ",Nc(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[ZC,ZP,wS,XP,YP],pipes:[UC],styles:[".position-right[_ngcontent-%COMP%]{position:absolute;right:20px;margin:-1.25rem}"]}),t})(),nI=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),sI=(()=>{class t{constructor(t,e){this.el=t,this.router=e}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(ES))},t.\u0275dir=be({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&Yo("click",(function(){return e.onClick()}))},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t})(),rI=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){let t="";this.perunWebAppsMiddleClickRouterLink.forEach(e=>t+="/"+e),t.length>0&&(t=t.substring(1)),window.open(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&Yo("mouseup",(function(t){return e.onClick(t)}))},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})(),oI=(()=>{class t{transform(t,...e){const i=t.find(t=>"mail"===t.friendlyName);return i?i.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"getMailFromAttributes",type:t,pure:!0}),t})();function aI(t,e){1&t&&Io(0,"th",20)}function cI(t,e){if(1&t){const t=Ho();Oo(0,"td",21),Oo(1,"mat-checkbox",22),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function uI(t,e){1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function lI(t,e){if(1&t&&(Oo(0,"td",24),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.userExtSource.id)}}function hI(t,e){1&t&&(Oo(0,"th",20),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function dI(t,e){if(1&t&&(Oo(0,"td",24),va(1),Ic(2,"getMailFromAttributes"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t.attributes))}}function pI(t,e){if(1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t){const t=Go();vs(1),Ma(Nc(2,1,Nc(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function fI(t,e){if(1&t&&(Oo(0,"td",24),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.userExtSource.extSource.name)}}function gI(t,e){if(1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t){const t=Go();vs(1),Ma(Nc(2,1,Nc(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function mI(t,e){if(1&t&&(Oo(0,"td",24),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.userExtSource.login)}}function _I(t,e){1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function bI(t,e){if(1&t&&(Oo(0,"td",25),va(1),Ic(2,"date"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Fc(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function yI(t,e){1&t&&Io(0,"tr",26)}const wI=function(t,e){return["/admin","users",t,"identities",e]};function AI(t,e){if(1&t&&Io(0,"tr",27),2&t){const t=e.$implicit,i=Go();ua("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),Do("routerLink",i.disableRouting?null:Dc(6,wI,i.userId,t.userExtSource.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:Dc(9,wI,i.userId,t.userExtSource.id))}}function vI(t,e){1&t&&(Oo(0,"app-alert",28),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,Nc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let MI=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new xb,this.filterValue="",this.hideColumns=[],this.pageSize=5,this.page=new jc,this.pageSizeOptions=oC,this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"]}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new ZT(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A";case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(xg),Lo(Ip))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){var i;1&t&&(eu(fP,!0),tu(AP,!0)),2&t&&(Zc(i=ou())&&(e.paginator=i.first),Zc(i=ou())&&(e.matSort=i.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",hideColumns:"hideColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[ze],decls:27,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,aI,1,0,"th",6),Eo(7,cI,2,2,"td",7),Fo(),No(8,8),Eo(9,uI,4,5,"th",9),Eo(10,lI,2,1,"td",10),Fo(),No(11,11),Eo(12,hI,4,5,"th",6),Eo(13,dI,3,3,"td",10),Fo(),No(14,12),Eo(15,pI,4,5,"th",9),Eo(16,fI,2,1,"td",10),Fo(),No(17,13),Eo(18,gI,4,5,"th",9),Eo(19,mI,2,1,"td",10),Fo(),No(20,14),Eo(21,_I,4,5,"th",9),Eo(22,bI,3,4,"td",15),Fo(),Eo(23,yI,1,0,"tr",16),Eo(24,AI,1,12,"tr",17),Po(),Po(),Oo(25,"mat-paginator",18),Yo("page",(function(t){return e.pageChanged(t)})),Po(),Po(),Po(),Eo(26,vI,4,5,"app-alert",19)),2&t&&(Do("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),vs(4),Do("dataSource",e.dataSource),vs(19),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.userExtSources.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0===e.userExtSources.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,NT,hR,xP,WT,GT,Um,rI,aD],pipes:[UC,cz,oI,Bh],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})();function CI(t,e){1&t&&Io(0,"mat-spinner",3)}function SI(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"h1",8),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Oo(5,"button",5),Yo("click",(function(){return ii(t),Go(2).addIdentity()})),va(6),Ic(7,"translate"),Ic(8,"customTranslate"),Po(),Oo(9,"button",6),Yo("click",(function(){ii(t);const e=Go(2);return e.removeIdentity(e.certSelection)})),va(10),Ic(11,"translate"),Ic(12,"customTranslate"),Po(),Io(13,"perun-web-apps-user-ext-sources-list",11),Po()}if(2&t){const t=Go(2);vs(2),Ma(Nc(3,10,Nc(4,12,"IDENTITIES.CERT"))),vs(4),Ma(Nc(7,14,Nc(8,16,"IDENTITIES.ADD"))),vs(3),Do("disabled",0===t.certSelection.selected.length),vs(1),Ma(Nc(11,18,Nc(12,20,"IDENTITIES.REMOVE"))),vs(3),Do("userExtSources",t.certExtSources)("selection",t.certSelection)("extSourceNameHeader",t.extSourceNameCert)("loginHeader",t.loginCert)("hideColumns",t.hiddenColumnsCert)("disableRouting",!0)}}function TI(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"h1",4),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Oo(5,"button",5),Yo("click",(function(){return ii(t),Go().addIdentity()})),va(6),Ic(7,"translate"),Ic(8,"customTranslate"),Po(),Oo(9,"button",6),Yo("click",(function(){ii(t);const e=Go();return e.removeIdentity(e.idpSelection)})),va(10),Ic(11,"translate"),Ic(12,"customTranslate"),Po(),Io(13,"perun-web-apps-user-ext-sources-list",7),Eo(14,SI,14,22,"div",2),Oo(15,"h1",8),va(16),Ic(17,"translate"),Ic(18,"customTranslate"),Oo(19,"mat-icon",9),Ic(20,"translate"),Ic(21,"customTranslate"),va(22," info_outline "),Po(),Po(),Oo(23,"button",6),Yo("click",(function(){ii(t);const e=Go();return e.removeIdentity(e.otherSelection)})),va(24),Ic(25,"translate"),Ic(26,"customTranslate"),Po(),Io(27,"perun-web-apps-user-ext-sources-list",10),Po()}if(2&t){const t=Go();vs(2),Ma(Nc(3,19,Nc(4,21,"IDENTITIES.IDP"))),vs(4),Ma(Nc(7,23,Nc(8,25,"IDENTITIES.ADD"))),vs(3),Do("disabled",0===t.idpSelection.selected.length),vs(1),Ma(Nc(11,27,Nc(12,29,"IDENTITIES.REMOVE"))),vs(3),Do("userExtSources",t.idpExtSources)("selection",t.idpSelection)("hideColumns",t.hiddenColumnsIdp)("loginHeader",t.loginIdp)("disableRouting",!0),vs(1),Do("ngIf",t.displayCertificates),vs(2),Ca(" ",Nc(17,31,Nc(18,33,"IDENTITIES.OTHER"))," "),vs(3),Do("matTooltip",Nc(20,35,Nc(21,37,"IDENTITIES.OTHER_TOOLTIP"))),vs(4),Do("disabled",0===t.otherSelection.selected.length),vs(1),Ma(Nc(25,39,Nc(26,41,"IDENTITIES.REMOVE"))),vs(3),Do("userExtSources",t.otherExtSources)("selection",t.otherSelection)("extSourceNameHeader",t.extSourceNameOther)("hideColumns",t.hiddenColumnsOther)("disableRouting",!0)}}let kI=(()=>{class t{constructor(t,e,i,n,s){this.usersManagerService=t,this.storage=e,this.registrarManagerService=i,this.dialog=n,this.attributesManagerService=s,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new xb(!0,[]),this.certSelection=new xb(!0,[]),this.otherSelection=new xb(!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.hiddenColumnsIdp=["id","mail"],this.hiddenColumnsCert=["id","mail"],this.hiddenColumnsOther=["mail","id"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(t=>{let e=t.length;t.forEach(t=>{this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(i=>{i&&i.value?(t.userExtSource.extSource.name=i.value,e--,this.loading=0!==e,this.addToList(t)):this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(i=>{e--,i&&i.value&&(t.userExtSource.extSource.name=i.value),this.loading=0!==e,this.addToList(t)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(t=>{const e=this.storage.getPerunPrincipal().extSourceType,i=this.storage.get("consolidator_base_url");window.location.href=`${i}${e&&e.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${t}`})}removeIdentity(t){const e=pC();e.width="600px",e.data={theme:"user-theme",userId:this.userId,extSources:t.selected},this.dialog.open(eD,e).afterClosed().subscribe(e=>{e&&(t.clear(),this.refreshTables())})}addToList(t){t.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(t):t.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(t):this.otherExtSources.push(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Lp),Lo(g_),Lo(Ep),Lo(JM),Lo(vp))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","hideColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","hideColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","hideColumns","disableRouting"]],template:function(t,e){1&t&&(Oo(0,"div",0),Eo(1,CI,1,0,"mat-spinner",1),Eo(2,TI,28,43,"div",2),Po()),2&t&&(vs(1),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading))},directives:[bh,$x,ZC,MI,wS,SD],pipes:[UC,cz],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),t})();const EI=["panel"];function xI(t,e){if(1&t&&(Oo(0,"div",0,1),Jo(2),Po()),2&t){const t=Go();Do("id",t.id)("ngClass",t._classList)}}const LI=["*"];let zI=0;class DI{constructor(t,e){this.source=t,this.option=e}}class RI{}const OI=Jv(RI),PI=new Nt("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let II=(()=>{class t extends OI{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=h.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new jc,this.opened=new jc,this.closed=new jc,this.optionActivated=new jc,this._classList={},this.id="mat-autocomplete-"+zI++,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=m_(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Gy(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new DI(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wr),Lo(Ha),Lo(PI))},t.\u0275cmp=de({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,PM,!0),nu(i,LM,!0)),2&t&&(Zc(n=ou())&&(e.options=n),Zc(n=ou())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(tu(lc,!0),eu(EI,!0)),2&t&&(Zc(i=ou())&&(e.template=i.first),Zc(i=ou())&&(e.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ia([{provide:OM,useExisting:t}]),ho],ngContentSelectors:LI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&($o(),Eo(0,xI,3,2,"ng-template"))},directives:[ph],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}\n"],encapsulation:2,changeDetection:0}),t})(),NI=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha))},t.\u0275dir=be({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t})();const FI=new Nt("mat-autocomplete-scroll-strategy"),BI={provide:FI,deps:[ky],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},HI={provide:Pk,useExisting:vt(()=>qI),multi:!0};let qI=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=a,this._document=c,this._viewportRuler=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=h.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new M,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=Kp(()=>this.autocomplete&&this.autocomplete.options?U(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(uf(1),of(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=m_(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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 U(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Fd(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Fd(()=>this._overlayAttached)):Id()).pipe(P(t=>t instanceof RM?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return U(v_(this._document,"click"),v_(this._document,"touchend")).pipe(Fd(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=IM(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=NM(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){return U(this._zone.onStable.asObservable().pipe(uf(1)),this.autocomplete.options.changes.pipe(vf(()=>this._positionStrategy.reapplyLastPosition()),zP(0))).pipe(of(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),uf(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Ab(this._element.nativeElement));let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new Xb(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(27===t.keyCode||38===t.keyCode&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})}))),t&&!t.hasAttached()&&(t.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(){return new ly({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];let n;n="above"===this.position?i:"below"===this.position?e:[...e,...i],t.withPositions(n)}_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(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(ky),Lo(dc),Lo(Ru),Lo(Wr),Lo(FI),Lo(Mb,8),Lo(Dk,9),Lo(ll,8),Lo(Bb))},t.\u0275dir=be({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&Yo("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&So("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[Ia([HI]),ze]}),t})(),jI=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[BI],imports:[[FM,Ry,Gv,Qh],Wb,FM,Gv]}),t})(),YI=(()=>{class t{transform(t,e){return t&&t.value?t.value:"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"validateExpiration",type:t,pure:!0}),t})();function WI(t,e){1&t&&Io(0,"th",18)}function UI(t,e){if(1&t){const t=Ho();Oo(0,"td",19),Oo(1,"mat-checkbox",20),Yo("click",(function(e){return ii(t),e.stopPropagation()}))("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null})),Ic(2,"validateExpiration"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("disabled","never"===Nc(2,3,t.expirationAttribute))("checked",i.selection.isSelected(t))("aria-label",i.checkboxLabel(t))}}function KI(t,e){1&t&&(Oo(0,"th",18),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"MEMBERSHIP_LIST.NAME"))))}function VI(t,e){if(1&t&&(Oo(0,"td",19),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.entity.name)}}function GI(t,e){1&t&&(Oo(0,"th",18),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))))}function XI(t,e){if(1&t&&(Oo(0,"td",21),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.entity.description)}}function $I(t,e){1&t&&(Oo(0,"th",22),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"MEMBERSHIP_LIST.EXPIRATION"))))}function JI(t,e){if(1&t&&(Oo(0,"td",21),va(1),Ic(2,"validateExpiration"),Po()),2&t){const t=e.$implicit;vs(1),Ca(" ",Nc(2,1,t.expirationAttribute)," ")}}function QI(t,e){1&t&&Io(0,"th",18)}function ZI(t,e){if(1&t){const t=Ho();Oo(0,"td",21),Oo(1,"button",23),Yo("click",(function(){ii(t);const i=e.$implicit;return Go().extend(i)})),Ic(2,"validateExpiration"),va(3),Ic(4,"translate"),Ic(5,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit;vs(1),Do("disabled","never"===Nc(2,2,t.expirationAttribute)),vs(2),Ma(Nc(4,4,Nc(5,6,"MEMBERSHIP_LIST.EXTEND")))}}function tN(t,e){1&t&&Io(0,"tr",24)}function eN(t,e){1&t&&Io(0,"tr",25)}function iN(t,e){1&t&&(Oo(0,"app-alert",26),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let nN=(()=>{class t{constructor(){this.members=[],this.searchString="",this.selection=new xb(!1,[]),this.hideColumns=[],this.pageSize=10,this.filterValue="",this.extendMembership=new jc,this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.pageSizeOptions=oC}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}ngOnChanges(t){this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new ZT(this.members),this.setDataSource()}getDataForColumn(t,e){switch(e){case"name":return t.entity.name;case"description":return"description"in t.entity?t.entity.description:"";case"expirationAttribute":return t.expirationAttribute&&t.expirationAttribute.value?t.expirationAttribute.value:"never";default:return""}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.entity.id+1}`}extend(t){this.extendMembership.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),eu(fP,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.paginator=i.first))},inputs:{members:"members",searchString:"searchString",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[ze],decls:24,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"disabled","checked","aria-label","click","change"],["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(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,WI,1,0,"th",6),Eo(7,UI,3,5,"td",7),Fo(),No(8,8),Eo(9,KI,4,5,"th",6),Eo(10,VI,2,1,"td",7),Fo(),No(11,9),Eo(12,GI,4,5,"th",6),Eo(13,XI,2,1,"td",10),Fo(),No(14,11),Eo(15,$I,4,5,"th",12),Eo(16,JI,3,3,"td",10),Fo(),No(17,13),Eo(18,QI,1,0,"th",6),Eo(19,ZI,6,8,"td",10),Fo(),Eo(20,tN,1,0,"tr",14),Eo(21,eN,1,0,"tr",15),Po(),Po(),Io(22,"mat-paginator",16),Po(),Po(),Eo(23,iN,4,5,"app-alert",17)),2&t&&(Do("hidden",!e.dataSource.filteredData.length),vs(4),Do("dataSource",e.dataSource),vs(16),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.members.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",!e.dataSource.filteredData.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,NT,hR,xP,ZC,WT,GT,aD],pipes:[YI,UC,cz],styles:[""]}),t})();function sN(t,e){if(1&t&&(Oo(0,"mat-option",13),va(1),Po()),2&t){const t=e.$implicit;Do("value",t),vs(1),Ca(" ",t.name," ")}}function rN(t,e){if(1&t){const t=Ho();Oo(0,"mat-form-field",7),Oo(1,"mat-label"),va(2),Ic(3,"translate"),Po(),Io(4,"input",8),Ic(5,"translate"),Ic(6,"customTranslate"),Oo(7,"mat-autocomplete",9,10),Yo("optionSelected",(function(e){return ii(t),Go().filterByVo(e)})),Oo(9,"mat-option",11),va(10),Ic(11,"translate"),Ic(12,"customTranslate"),Po(),Eo(13,sN,2,2,"mat-option",12),Ic(14,"async"),Po(),Po()}if(2&t){const t=xo(8),e=Go();vs(2),Ma(Nc(3,7,"GROUPS.SELECT_VO")),vs(2),Qo("placeholder",Nc(5,9,Nc(6,11,"GROUPS.SELECT_VO"))),Do("formControl",e.myControl)("matAutocomplete",t),vs(3),Do("displayWith",e.displayFn),vs(3),Ma(Nc(11,13,Nc(12,15,"GROUPS.ALL"))),vs(3),Do("ngForOf",Nc(14,17,e.filteredVos))}}function oN(t,e){1&t&&Io(0,"mat-spinner",14)}function aN(t,e){1&t&&(Oo(0,"app-alert",15),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"GROUPS.NO_GROUPS"))))}const cN=function(){return["checkbox"]};function uN(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"h4",16),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Oo(5,"perun-web-apps-membership-list",17),Yo("extendMembership",(function(e){return ii(t),Go().extendMembership(e)})),Po(),Po()}if(2&t){const t=Go();vs(2),Ma(Nc(3,4,Nc(4,6,"GROUPS.MEMBER_GROUPS"))),vs(3),Do("members",t.userMemberships)("selection",t.selection)("hideColumns",Lc(8,cN))}}const lN=function(){return["checkbox","expirationAttribute","extend"]};function hN(t,e){if(1&t&&(Oo(0,"div",18),Oo(1,"h4",16),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Io(5,"perun-web-apps-membership-list",19),Po()),2&t){const t=Go();vs(2),Ma(Nc(3,3,Nc(4,5,"GROUPS.ADMINS_GROUPS"))),vs(3),Do("members",t.adminMemberships)("hideColumns",Lc(7,lN))}}let dN=(()=>{class t{constructor(t,e,i,n,s,r){this.usersService=t,this.memberService=e,this.groupService=i,this.store=n,this.vosManagerService=s,this.attributesManagerService=r,this.loading=!1,this.vos=[],this.myControl=new FE,this.selection=new xb(!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(t=>{this.vos=t,this.filteredVos=this.myControl.valueChanges.pipe(pf(""),P(t=>this._filter(t))),this.getAllGroups()})}_filter(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.vos.filter(t=>t.name.toLowerCase().includes(e))}getAllGroups(){this.loading=!0;let t=0,e=0;this.userMemberships=[],this.adminMemberships=[];const i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?e=i.length:this.loading=!1,i.forEach(i=>{e--,this.groupService.getMemberGroups(i).subscribe(n=>{t+=n.length,this.loading=0===t&&0!==e,n.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(i,e.id).subscribe(i=>{t--,this.userMemberships.push({entity:e,expirationAttribute:i.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}displayFn(t){return t?t.name:null}filterByVo(t){if("all"===t.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const e=t.option.value;this.memberService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.groupService.getMemberGroups(t.id).subscribe(e=>{let i=e.length;this.loading=0!==i,e.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(t.id,e.id).subscribe(t=>{i--,this.userMemberships.push({entity:e,expirationAttribute:t.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,e.id).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}}extendMembership(t){const e=this.store.get("registrar_base_url"),i=t.entity,n=this.vos.find(t=>t.id===i.voId).shortName;window.location.href=`${e}?vo=${n}&group=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(Lo(Lp),Lo(Tp),Lo(Sp),Lo(g_),Lo(zp),Lo(vp))},t.\u0275cmp=de({type:t,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","hideColumns","extendMembership"],[1,"mt-5"],[3,"members","hideColumns"]],template:function(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Eo(5,rN,15,19,"mat-form-field",2),Eo(6,oN,1,0,"mat-spinner",3),Eo(7,aN,4,5,"app-alert",4),Eo(8,uN,6,9,"div",5),Eo(9,hN,6,8,"div",6),Po()),2&t&&(vs(1),Ma(Nc(2,6,Nc(3,8,"GROUPS.TITLE"))),vs(4),Do("ngIf",!e.loading),vs(1),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.userMemberships.length&&!e.adminMemberships.length&&!e.loading),vs(1),Do("ngIf",!e.loading&&0!==e.userMemberships.length),vs(1),Do("ngIf",!e.loading&&0!==e.adminMemberships.length))},directives:[bh,Rk,Ck,Bx,Hk,qI,Kk,tx,II,PM,mh,$x,aD,nN],pipes:[UC,cz,Oh],styles:[""]}),t})();function pN(t,e){if(1&t&&(Io(0,"input",3),Ic(1,"translate")),2&t){const t=Go();Qo("placeholder",Nc(1,2,t.placeholder)),Do("formControl",t.formControl)}}function fN(t,e){if(1&t&&(Io(0,"input",4),Ic(1,"translate")),2&t){const t=Go();Qo("placeholder",Nc(1,2,t.placeholder)),Do("formControl",t.formControl)}}let gN=(()=>{class t{constructor(){this.filter=new jc,this.autoFocus=!1,this.formControl=new FE}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(Oo(0,"mat-form-field",0),Eo(1,pN,2,4,"input",1),Eo(2,fN,2,4,"input",2),Po()),2&t&&(vs(1),Do("ngIf",e.autoFocus),vs(1),Do("ngIf",!e.autoFocus))},directives:[Rk,bh,Bx,Hk,nI,Kk,tx],pipes:[UC],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important}"]}),t})(),mN=0,_N=(()=>{class t{constructor(){this._stateChanges=new M,this._openCloseAllActions=new M,this.id="cdk-accordion-"+mN++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=m_(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[ze]}),t})(),bN=0,yN=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=h.EMPTY,this.closed=new jc,this.opened=new jc,this.destroyed=new jc,this.expandedChange=new jc,this.id="cdk-accordion-child-"+bN++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=m_(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=m_(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(Lo(_N,12),Lo(Wr),Lo(Lb))},t.\u0275dir=be({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ia([{provide:_N,useValue:void 0}])]}),t})(),wN=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})();const AN=["body"];function vN(t,e){}const MN=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],CN=["mat-expansion-panel-header","*","mat-action-row"],SN=function(t,e){return{collapsedHeight:t,expandedHeight:e}},TN=function(t,e){return{value:t,params:e}};function kN(t,e){1&t&&Io(0,"span",2),2&t&&Do("@indicatorRotate",Go()._getExpandedState())}const EN=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],xN=["mat-panel-title","mat-panel-description","*"],LN=new Nt("MAT_ACCORDION"),zN={indicatorRotate:mw("indicatorRotate",[Aw("collapsed, void",ww({transform:"rotate(0deg)"})),Aw("expanded",ww({transform:"rotate(180deg)"})),Mw("expanded <=> collapsed, void => collapsed",_w("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:mw("expansionHeight",[Aw("collapsed, void",ww({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),Aw("expanded",ww({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),Mw("expanded <=> collapsed, void => collapsed",bw([Sw("@indicatorRotate",Cw(),{optional:!0}),_w("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:mw("bodyExpansion",[Aw("collapsed, void",ww({height:"0px",visibility:"hidden"})),Aw("expanded",ww({height:"*",visibility:"visible"})),Mw("expanded <=> collapsed, void => collapsed",_w("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let DN=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc))},t.\u0275dir=be({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),RN=0;const ON=new Nt("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let PN=(()=>{class t extends yN{constructor(t,e,i,n,s,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new jc,this.afterCollapse=new jc,this._inputChanges=new M,this._headerId="mat-expansion-panel-header-"+RN++,this._bodyAnimationDone=new M,this.accordion=t,this._document=s,this._bodyAnimationDone.pipe(B_((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=m_(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(pf(null),Fd(()=>this.expanded&&!this._portal),uf(1)).subscribe(()=>{this._portal=new Xb(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(Lo(LN,12),Lo(Wr),Lo(Lb),Lo(dc),Lo(ll),Lo(Nv,8),Lo(ON,8))},t.\u0275cmp=de({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&nu(i,DN,!0),2&t&&Zc(n=ou())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&eu(AN,!0),2&t&&Zc(i=ou())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&ua("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ia([{provide:LN,useValue:void 0}]),ho,ze],ngContentSelectors:CN,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&($o(MN),Jo(0),Oo(1,"div",0,1),Yo("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),Oo(3,"div",2),Jo(4,1),Eo(5,vN,0,0,"ng-template",3),Po(),Jo(6,2),Po()),2&t&&(vs(1),Do("@bodyExpansion",e._getExpandedState())("id",e.id),So("aria-labelledby",e._headerId),vs(4),Do("cdkPortalOutlet",e._portal))},directives:[Zb],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[zN.bodyExpansion]},changeDetection:0}),t})(),IN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t})(),NN=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=h.EMPTY,this._animationsDisabled=!0;const r=t.accordion?t.accordion._stateChanges.pipe(Fd(t=>!(!t.hideToggle&&!t.togglePosition))):Wp;this._parentChangeSubscription=U(t.opened,t.closed,r,t._inputChanges.pipe(Fd(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Fd(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),i.monitor(e).subscribe(e=>{e&&t.accordion&&t.accordion._handleHeaderFocus(this)}),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}_animationStarted(){this._animationsDisabled=!1}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}_keydown(t){switch(t.keyCode){case 32:case 13:ey(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(Lo(PN,1),Lo(Ha),Lo(uw),Lo(Wr),Lo(ON,8))},t.\u0275cmp=de({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:19,hostBindings:function(t,e){1&t&&(Wo("@expansionHeight.start",(function(){return e._animationStarted()})),Yo("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(So("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),Ea("@.disabled",e._animationsDisabled)("@expansionHeight",Dc(16,TN,e._getExpandedState(),Dc(13,SN,e.collapsedHeight,e.expandedHeight))),ua("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:xN,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&($o(EN),Oo(0,"span",0),Jo(1),Jo(2,1),Jo(3,2),Po(),Eo(4,kN,1,1,"span",1)),2&t&&(vs(4),Do("ngIf",e._showToggle()))},directives:[bh],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;position:relative}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[zN.indicatorRotate,zN.expansionHeaderHeight]},changeDetection:0}),t})(),FN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),BN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),HN=(()=>{class t extends _N{constructor(){super(...arguments),this._ownHeaders=new Wc,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=m_(t)}ngAfterContentInit(){this._headers.changes.pipe(pf(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Xy(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;36===e?ey(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?ey(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return qN(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&nu(i,NN,!0),2&t&&Zc(n=ou())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Ia([{provide:LN,useExisting:t}]),ho]}),t})();const qN=gn(HN);let jN=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Qh,wN,ty]]}),t})();function YN(t,e){1&t&&(Oo(0,"mat-icon",1),Ic(1,"translate"),va(2," visibility\n"),Po()),2&t&&Qo("matTooltip",Nc(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let WN=(()=>{class t{constructor(){this.recentIds=[]}ngOnChanges(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},features:[ze],decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(t,e){1&t&&Eo(0,YN,3,3,"mat-icon",0),2&t&&Do("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[bh,wS,SD],pipes:[UC],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})(),UN=(()=>{class t{transform(t,e){if(null==t)return null;let i="";return t.forEach((function(t){i=i.concat(t.tagName)})),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"resourceTagsToString",type:t,pure:!0}),t})();function KN(t,e){if(1&t){const t=Ho();Oo(0,"th",22),Oo(1,"mat-checkbox",23),Yo("change",(function(e){ii(t);const i=Go();return e?i.masterToggle():null})),Po(),Po()}if(2&t){const t=Go();vs(1),Do("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function VN(t,e){if(1&t){const t=Ho();Oo(0,"td",24),Oo(1,"mat-checkbox",25),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.itemSelectionToggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function GN(t,e){1&t&&(Oo(0,"th",26),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function XN(t,e){if(1&t&&(Oo(0,"td",24),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.id)}}function $N(t,e){1&t&&Io(0,"th",22)}function JN(t,e){if(1&t&&(Oo(0,"td",27),Io(1,"perun-web-apps-recently-viewed-icon",28),Po()),2&t){const t=e.$implicit,i=Go();vs(1),Do("recentIds",i.recentIds)("id",t.id)}}function QN(t,e){1&t&&(Oo(0,"th",26),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function ZN(t,e){if(1&t&&(Oo(0,"td",27),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.name)}}function tF(t,e){1&t&&(Oo(0,"th",26),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function eF(t,e){if(1&t&&(Oo(0,"td",27),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.vo.name)}}function iF(t,e){1&t&&(Oo(0,"th",26),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function nF(t,e){if(1&t&&(Oo(0,"td",27),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.facility.name)}}function sF(t,e){1&t&&(Oo(0,"th",26),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function rF(t,e){if(1&t&&(Oo(0,"td",27),va(1),Ic(2,"resourceTagsToString"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t.resourceTags))}}function oF(t,e){1&t&&(Oo(0,"th",26),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function aF(t,e){if(1&t&&(Oo(0,"td",27),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.description)}}function cF(t,e){1&t&&Io(0,"tr",29)}const uF=function(t){return[t]};function lF(t,e){if(1&t&&(Io(0,"tr",30),Ic(1,"getResourceRoute"),Ic(2,"getResourceRoute")),2&t){const t=e.$implicit,i=Go();ua("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),Do("routerLink",i.disableRouting?null:Fc(1,6,t,i.routingVo))("perunWebAppsMiddleClickRouterLink",zc(12,uF,i.disableRouting?null:Fc(2,9,t,i.routingVo)))}}function hF(t,e){1&t&&(Oo(0,"app-alert",31),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function dF(t,e){1&t&&(Oo(0,"app-alert",31),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let pF=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new xb(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","facility","tags","description"],this.pageSizeOptions=oC,this.page=new jc,this.allSelected=new jc,this.removeAuth=!1,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.guiAuthResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ZT(this.resources),this.setDataSource(),this.dataSource.filter=this.filterValue,this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":if(!t.resourceTags)return t[e];let n="";return t.resourceTags.forEach((function(t){n=n.concat(t.tagName)})),n;default:return t[e]}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}isAllSelected(){const t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1),this.setAuth()}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}setAuth(){this.removeAuth=this.selection.selected.reduce((t,e)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",[e,this.groupToResource]),!0),this.addAuth=this.selection.selected.reduce((t,e)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[e,this.groupToResource]),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ip),Lo(xS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),tu(fP,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.matPaginator=i.first))},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds"},outputs:{page:"page",allSelected:"allSelected"},features:[ze],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","facility"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,KN,2,3,"th",6),Eo(7,VN,2,2,"td",7),Fo(),No(8,8),Eo(9,GN,3,3,"th",9),Eo(10,XN,2,1,"td",10),Fo(),No(11,11),Eo(12,$N,1,0,"th",6),Eo(13,JN,2,2,"td",12),Fo(),No(14,13),Eo(15,QN,3,3,"th",9),Eo(16,ZN,2,1,"td",12),Fo(),No(17,14),Eo(18,tF,3,3,"th",9),Eo(19,eF,2,1,"td",12),Fo(),No(20,15),Eo(21,iF,3,3,"th",9),Eo(22,nF,2,1,"td",12),Fo(),No(23,16),Eo(24,sF,3,3,"th",9),Eo(25,rF,3,3,"td",12),Fo(),No(26,17),Eo(27,oF,3,3,"th",9),Eo(28,aF,2,1,"td",12),Fo(),Eo(29,cF,1,0,"tr",18),Eo(30,lF,3,14,"tr",19),Po(),Po(),Oo(31,"mat-paginator",20),Yo("page",(function(t){return e.page.emit(t)})),Po(),Po(),Po(),Eo(32,hF,3,3,"app-alert",21),Eo(33,dF,3,3,"app-alert",21)),2&t&&(Do("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),vs(4),Do("dataSource",e.dataSource),vs(25),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.resources.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),vs(1),Do("ngIf",0===e.resources.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,hR,NT,xP,WN,WT,GT,Um,rI,aD],pipes:[UC,UN,uz],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})();function fF(t,e){1&t&&Io(0,"mat-spinner",8)}const gF=function(){return["name","description"]};function mF(t,e){1&t&&Io(0,"perun-web-apps-resources-list",9),2&t&&Do("resources",Go(3).resources)("displayedColumns",Lc(3,gF))("disableRouting",!0)}function _F(t,e){if(1&t&&(Eo(0,fF,1,0,"mat-spinner",6),Eo(1,mF,1,4,"perun-web-apps-resources-list",7)),2&t){const t=Go(2);Do("ngIf",t.loading),vs(1),Do("ngIf",!t.loading)}}function bF(t,e){if(1&t){const t=Ho();Oo(0,"mat-expansion-panel",4),Yo("opened",(function(){ii(t);const i=e.$implicit;return Go().getMemberData(i)})),Oo(1,"mat-expansion-panel-header"),Oo(2,"mat-panel-title"),va(3),Po(),Po(),Eo(4,_F,2,2,"ng-template",5),Po()}if(2&t){const t=e.$implicit;vs(3),Ca(" ",t.name," ")}}let yF=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersManagerService=e,this.resourcesManagerService=i,this.storage=n,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMemberData(t){this.loading=!0,this.membersManagerService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{this.resources=t,this.loading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Lp),Lo(Tp),Lo(xp),Lo(g_))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Oo(5,"perun-web-apps-immediate-filter",2),Yo("filter",(function(t){return e.applyFilter(t)})),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Oo(8,"mat-accordion"),Eo(9,bF,5,1,"mat-expansion-panel",3),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,3,Nc(3,5,"SERVICES.TITLE"))),vs(4),Do("placeholder",Nc(6,7,Nc(7,9,"SERVICES.FILTER"))),vs(4),Do("ngForOf",e.filteredVos))},directives:[gN,HN,mh,PN,NN,BN,DN,bh,$x,pF],pipes:[UC,cz],styles:[""]}),t})();function wF(t,e){if(1&t){const t=Ho();Oo(0,"perun-web-apps-immediate-filter",5),Yo("filter",(function(e){return ii(t),Go().applyFilter(e)})),Po()}2&t&&Do("placeholder","ORGANIZATIONS.FILTER")}function AF(t,e){1&t&&Io(0,"mat-spinner",6)}const vF=function(){return["checkbox","description"]};function MF(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"perun-web-apps-membership-list",11),Yo("extendMembership",(function(e){return ii(t),Go(2).extendMembership(e)})),Po(),Po()}if(2&t){const t=Go(2);vs(1),Do("members",t.userMemberships)("selection",t.selection)("filterValue",t.filterValue)("hideColumns",Lc(4,vF))}}function CF(t,e){1&t&&(Oo(0,"app-alert",12),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function SF(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"h1",8),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Eo(5,MF,2,5,"div",9),Eo(6,CF,4,5,"app-alert",10),Po()),2&t){const t=Go();vs(2),Ma(Nc(3,3,Nc(4,5,"ORGANIZATIONS.IS_MEMBER"))),vs(3),Do("ngIf",0!==t.userMemberships.length),vs(1),Do("ngIf",0===t.userMemberships.length)}}function TF(t,e){1&t&&(Oo(0,"app-alert",12),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const kF=function(){return["checkbox","description","expirationAttribute","extend"]};function EF(t,e){if(1&t&&Io(0,"perun-web-apps-membership-list",14),2&t){const t=Go(2);Do("members",t.adminMemberships)("filterValue",t.filterValue)("hideColumns",Lc(3,kF))}}function xF(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"h1",8),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Eo(5,TF,4,5,"app-alert",10),Eo(6,EF,1,4,"perun-web-apps-membership-list",13),Po()),2&t){const t=Go();vs(2),Ma(Nc(3,3,Nc(4,5,"ORGANIZATIONS.IS_ADMIN"))),vs(3),Do("ngIf",!t.adminMemberships.length),vs(1),Do("ngIf",t.adminMemberships.length)}}let LF=(()=>{class t{constructor(t,e,i){this.usersService=t,this.store=e,this.membersService=i,this.filterValue="",this.selection=new xb(!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(t=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosCount=t.length+e.length,this.fillMemberships(t,this.userMemberships),this.fillMemberships(e,this.adminMemberships)})})}applyFilter(t){this.filterValue=t}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}fillMemberships(t,e){this.membersService.getMembersByUser(this.userId).subscribe(i=>{t.forEach(t=>{const n=i.find(e=>e.voId===t.id);n?this.membersService.getRichMemberWithAttributes(n.id).subscribe(i=>{const n=i.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName);e.push({entity:t,expirationAttribute:n}),this.isEverythingLoaded()}):(e.push({entity:t,expirationAttribute:null}),this.isEverythingLoaded())})})}extendMembership(t){const e=this.store.get("registrar_base_url");window.location.href=`${e}?vo=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(Lo(Lp),Lo(g_),Lo(Tp))},t.\u0275cmp=de({type:t,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","hideColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","hideColumns",4,"ngIf"],[3,"members","filterValue","hideColumns"]],template:function(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Eo(5,wF,1,1,"perun-web-apps-immediate-filter",2),Eo(6,AF,1,0,"mat-spinner",3),Eo(7,SF,7,7,"div",4),Eo(8,xF,7,7,"div",4),Po()),2&t&&(vs(1),Ma(Nc(2,5,Nc(3,7,"ORGANIZATIONS.TITLE"))),vs(4),Do("ngIf",!e.loading),vs(1),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading),vs(1),Do("ngIf",!e.loading))},directives:[bh,gN,$x,nN,aD],pipes:[UC,cz],styles:[""]}),t})(),zF=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(t,e){1&t&&(Oo(0,"div",0),Io(1,"router-outlet"),Po())},directives:[Xm],styles:[""]}),t})(),DF=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Oo(5,"p"),va(6),Ic(7,"translate"),Ic(8,"customTranslate"),Po(),Oo(9,"label"),Io(10,"input",2),Po(),Po(),Oo(11,"div",3),Oo(12,"button",4),Yo("click",(function(){return e.onClose()})),va(13),Ic(14,"translate"),Ic(15,"customTranslate"),Po(),Oo(16,"button",5),va(17),Ic(18,"translate"),Ic(19,"customTranslate"),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,6,Nc(3,8,"DIALOGS.SHOW_PASSWORD.TITLE"))),vs(5),Ma(Nc(7,10,Nc(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),vs(4),Do("value",e.password),vs(3),Ca(" ",Nc(14,14,Nc(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),vs(3),Do("cdkCopyToClipboard",e.password),vs(1),Ca(" ",Nc(18,18,Nc(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[tC,eC,iC,ZC,nz],pipes:[UC,cz],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),t})();function RF(t,e){1&t&&Io(0,"mat-spinner",7)}function OF(t,e){1&t&&Io(0,"th",16)}function PF(t,e){if(1&t&&(Oo(0,"td",17),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ca(" ",t," ")}}function IF(t,e){1&t&&Io(0,"tr",18)}function NF(t,e){1&t&&Io(0,"tr",19)}function FF(t,e){if(1&t&&(Oo(0,"div",8),Oo(1,"p"),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Oo(5,"div",9),va(6),Ic(7,"translate"),Ic(8,"customTranslate"),Po(),Oo(9,"table",10),No(10,11),Eo(11,OF,1,0,"th",12),Eo(12,PF,2,1,"td",13),Fo(),Eo(13,IF,1,0,"tr",14),Eo(14,NF,1,0,"tr",15),Po(),Po()),2&t){const t=Go();vs(2),Ca(" ",Nc(3,5,Nc(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),vs(4),Ca(" ",Nc(7,9,Nc(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),vs(3),Do("dataSource",t.dataSource),vs(4),Do("matHeaderRowDef",t.displayedColumns),vs(1),Do("matRowDefColumns",t.displayedColumns)}}let BF=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new ZT(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(Lp))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Eo(5,RF,1,0,"mat-spinner",2),Po(),Eo(6,FF,15,13,"div",3),Oo(7,"div",4),Oo(8,"button",5),Yo("click",(function(){return e.onCancel()})),va(9),Ic(10,"translate"),Ic(11,"customTranslate"),Po(),Oo(12,"button",6),Yo("click",(function(){return e.onSubmit()})),va(13),Ic(14,"translate"),Ic(15,"customTranslate"),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,5,Nc(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),vs(4),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading),vs(3),Ca(" ",Nc(10,9,Nc(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),vs(4),Ca(" ",Nc(14,13,Nc(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[tC,bh,iC,ZC,$x,eC,ST,RT,xT,kT,FT,jT,PT,NT,WT,GT],pipes:[UC,cz],styles:[""]}),t})();function HF(t,e){1&t&&Io(0,"th",15)}function qF(t,e){if(1&t){const t=Ho();Oo(0,"td",16),Oo(1,"mat-checkbox",17),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function jF(t,e){if(1&t&&(Oo(0,"th",18),va(1),Po()),2&t){const t=Go();vs(1),Ma(t.headerColumnText)}}function YF(t,e){if(1&t&&(Oo(0,"td",19),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t)}}function WF(t,e){1&t&&Io(0,"tr",20)}function UF(t,e){1&t&&Io(0,"tr",21)}function KF(t,e){if(1&t&&(Oo(0,"app-alert",22),va(1),Po()),2&t){const t=Go();vs(1),Ca(" ",t.alertText,"\n")}}const VF=function(){return[5,10,25]};let GF=(()=>{class t{constructor(){this.values=[],this.selection=new xb(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"],this.pageSize=5}ngOnChanges(t){this.values=this.values?this.values:[],this.dataSource=new ZT(this.values),this.setDataSource()}getExportDataForColumn(t,e){return t}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}checkboxLabel(t){return(this.selection.isSelected(t)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-string-list"]],viewQuery:function(t,e){var i;1&t&&eu(fP,!0),2&t&&Zc(i=ou())&&(e.paginator=i.first)},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[ze],decls:15,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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"],[3,"length","pageSize","pageSizeOptions"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["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(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,HF,1,0,"th",6),Eo(7,qF,2,2,"td",7),Fo(),No(8,8),Eo(9,jF,2,1,"th",9),Eo(10,YF,2,1,"td",10),Fo(),Eo(11,WF,1,0,"tr",11),Eo(12,UF,1,0,"tr",12),Po(),Po(),Io(13,"mat-paginator",13),Po(),Po(),Eo(14,KF,2,1,"app-alert",14)),2&t&&(Do("hidden",!e.values.length),vs(4),Do("dataSource",e.dataSource),vs(7),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.values.length)("pageSize",e.pageSize)("pageSizeOptions",Lc(8,VF)),vs(1),Do("ngIf",0===e.values.length))},directives:[iI,ST,RT,xT,kT,FT,jT,fP,bh,PT,NT,hR,WT,GT,aD],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),t})();function XF(t,e){if(1&t&&Io(0,"perun-web-apps-string-list",10),2&t){const t=Go();Do("values",t.displayedValues)("selection",t.selection)("alertText",t.alertText)("headerColumnText",t.headerColumnText)}}function $F(t,e){1&t&&Io(0,"mat-spinner",11)}let JF=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.usersManagerService=s,this.altPasswordCtrl=new FE(null,[Zk.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new xb(!1,[]),n.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.getAltPasswords()}createPassword(){const t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(()=>{const e=pC();e.width="600px",e.data={password:t},this.dialog.open(DF,e),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let e="",i=0;const n=t.length;for(;i<16;++i)e+=t.charAt(Math.random()*n);return e.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),e}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(t=>{if(this.altPasswordsAttribute=t,t.value){const e=Object.keys(t.value);this.passwordDescriptions=new Set(e),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}alreadyContainsValue(t){return this.passwordDescriptions.has(t)}removeAltPasswords(){const t=pC();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(BF,t).afterClosed().subscribe(t=>{t&&(this.getAltPasswords(),this.selection.clear())})}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(vp),Lo(JM),Lo(YC),Lo(Lp))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"div",0),Oo(1,"h1",1),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Oo(5,"mat-form-field",2),Oo(6,"label",2),Io(7,"input",3),Ic(8,"translate"),Ic(9,"customTranslate"),Po(),Po(),Oo(10,"button",4),Yo("click",(function(){return e.createPassword()})),va(11),Ic(12,"translate"),Ic(13,"customTranslate"),Po(),Oo(14,"app-alert",5),va(15),Ic(16,"translate"),Ic(17,"customTranslate"),Po(),Oo(18,"h1",6),va(19),Ic(20,"translate"),Ic(21,"customTranslate"),Po(),Oo(22,"button",7),Yo("click",(function(){return e.removeAltPasswords()})),va(23),Ic(24,"translate"),Ic(25,"customTranslate"),Po(),Eo(26,XF,1,4,"perun-web-apps-string-list",8),Eo(27,$F,1,0,"mat-spinner",9),Po()),2&t&&(vs(2),Ma(Nc(3,11,Nc(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),vs(5),Qo("placeholder",Nc(8,15,Nc(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),Do("formControl",e.altPasswordCtrl),vs(3),Do("disabled",!e.altPasswordCtrl.valid||e.alreadyContainsValue(e.altPasswordCtrl.value)),vs(1),Ma(Nc(12,19,Nc(13,21,"ALT_PASSWORDS.GENERATE"))),vs(4),Ma(Nc(16,23,Nc(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),vs(4),Ma(Nc(20,27,Nc(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),vs(3),Do("disabled",e.selection.isEmpty()),vs(1),Ma(Nc(24,31,Nc(25,33,"ALT_PASSWORDS.REMOVE"))),vs(3),Do("ngIf",!e.loading),vs(1),Do("ngIf",e.loading))},directives:[Rk,Bx,Hk,Kk,tx,ZC,aD,bh,GF,$x],pipes:[UC,cz],styles:[""]}),t})(),QF=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=m_(t)}get inset(){return this._inset}set inset(t){this._inset=m_(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(So("aria-orientation",e.vertical?"vertical":"horizontal"),ua("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),ZF=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Gv],Gv]}),t})();const tB=["*"],eB='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',iB=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],nB=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],sB=["text"];function rB(t,e){if(1&t&&Io(0,"mat-pseudo-checkbox",5),2&t){const t=Go();Do("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const oB=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],aB=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class cB{}const uB=Xv(Jv(cB));class lB{}const hB=Jv(lB);let dB=(()=>{class t extends uB{constructor(){super(...arguments),this._stateChanges=new M}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return pB(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[ho,ze],ngContentSelectors:tB,decls:1,vars:0,template:function(t,e){1&t&&($o(),Jo(0))},styles:[eB],encapsulation:2,changeDetection:0}),t})();const pB=gn(dB);let fB=(()=>{class t extends uB{constructor(t){super(),this._elementRef=t,this._stateChanges=new M,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha))},t.\u0275cmp=de({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[ho,ze],ngContentSelectors:tB,decls:1,vars:0,template:function(t,e){1&t&&($o(),Jo(0))},styles:[eB],encapsulation:2,changeDetection:0}),t})(),gB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),mB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),_B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),bB=(()=>{class t extends hB{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new M,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(G_(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=m_(t)}ngAfterContentInit(){pM(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wr),Lo(dB,8),Lo(fB,8))},t.\u0275cmp=de({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,gB,!0),nu(i,mB,!0),nu(i,dM,!0)),2&t&&(Zc(n=ou())&&(e._avatar=n.first),Zc(n=ou())&&(e._icon=n.first),Zc(n=ou())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&ua("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[ho],ngContentSelectors:nB,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&($o(iB),Oo(0,"div",0),Io(1,"div",1),Jo(2),Oo(3,"div",2),Jo(4,1),Po(),Jo(5,2),Po()),2&t&&(vs(1),Do("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[MM],encapsulation:2,changeDetection:0}),t})();class yB{}const wB=Jv(yB);class AB{}const vB=Jv(AB),MB={provide:Pk,useExisting:vt(()=>TB),multi:!0};class CB{constructor(t,e){this.source=t,this.option=e}}let SB=(()=>{class t extends vB{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=m_(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=m_(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){pM(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Wr),Lo(vt(()=>TB)))},t.\u0275cmp=de({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,gB,!0),nu(i,mB,!0),nu(i,dM,!0)),2&t&&(Zc(n=ou())&&(e._avatar=n.first),Zc(n=ou())&&(e._icon=n.first),Zc(n=ou())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&eu(sB,!0),2&t&&Zc(i=ou())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&Yo("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(So("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),ua("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[ho],ngContentSelectors:aB,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&($o(oB),Oo(0,"div",0),Io(1,"div",1),Eo(2,rB,1,2,"mat-pseudo-checkbox",2),Oo(3,"div",3,4),Jo(5),Po(),Jo(6,1),Po()),2&t&&(ua("mat-list-item-content-reverse","after"==e.checkboxPosition),vs(1),Do("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),vs(1),Do("ngIf",e.selectionList.multiple))},directives:[MM,bh,SM],encapsulation:2,changeDetection:0}),t})(),TB=(()=>{class t extends wB{constructor(t,e,i){super(),this._element=t,this._changeDetector=i,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new jc,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new xb(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new M,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=m_(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=m_(t);if(e!==this._multiple){if(zn()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new xb(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Xy(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(G_(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(pf(null),G_(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(G_(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=ey(t);switch(e){case 32:case 13:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:s||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:if(65===e&&this.multiple&&ey(t,"ctrlKey")&&!i.isTyping()){const e=this.options.some(t=>!t.disabled&&!t.selected);this._setAllOptionsSelected(e,!0),t.preventDefault()}else i.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new CB(this,t))}_onFocus(){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}_setAllOptionsSelected(t,e){let i=!1;this.options.forEach(n=>{e&&n.disabled||!n._setSelected(t)||(i=!0)}),i&&this._reportValueChange()}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),zo("tabindex"),Lo(Wr))},t.\u0275cmp=de({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){var n;1&t&&nu(i,SB,!0),2&t&&Zc(n=ou())&&(e.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&Yo("focus",(function(){return e._onFocus()}))("keydown",(function(t){return e._keydown(t)})),2&t&&So("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Ia([MB]),ho,ze],ngContentSelectors:tB,decls:1,vars:0,template:function(t,e){1&t&&($o(),Jo(0))},styles:[eB],encapsulation:2,changeDetection:0}),t})(),kB=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[gM,CM,Gv,TM,Qh],gM,Gv,TM,ZF]}),t})();function EB(t,e){if(1&t&&(Oo(0,"mat-list-item",1),Oo(1,"mat-icon"),va(2),Po(),Oo(3,"p",2),va(4),Ic(5,"translate"),Ic(6,"customTranslate"),Po(),Po()),2&t){const t=e.$implicit;Do("routerLink",t.url),vs(2),Ma(t.icon),vs(2),Ma(Nc(5,3,Nc(6,5,t.label)))}}let xB=(()=>{class t{constructor(t){this.storeService=t,this.items=[]}ngOnInit(){this.initItems();const t=this.storeService.get("displayed_tabs");this.items=this.items.filter(e=>t.includes(e.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:"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 t.\u0275fac=function(e){return new(e||t)(Lo(g_))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(t,e){1&t&&(Oo(0,"mat-list"),Eo(1,EB,7,7,"mat-list-item",0),Po()),2&t&&(vs(1),Do("ngForOf",e.items))},directives:[fB,mh,bB,MM,Um,wS],pipes:[UC,cz],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),t})();const LB={provide:yu,useFactory:function(t,e){return()=>{if(Zh(e)){const e=Array.from(t.querySelectorAll(`[class*=${zB}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(zB+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[ll,bu],multi:!0},zB="flex-layout-";let DB=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[LB]}),t})();class RB{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new RB(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let OB=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const PB={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},IB=new Nt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>PB}),NB=new Nt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),FB=new Nt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function BB(t,e){return t=t?t.clone():new RB,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const HB=["row","column","row-reverse","column-reverse"];function qB(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let jB=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return HB.find(t=>t===e)||(e=HB[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,qB(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=be({type:t,features:[ze]}),t})();const YB=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{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}],WB="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",UB="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",KB="(orientation: portrait) and (min-width: 840px)",VB="(orientation: landscape) and (min-width: 1280px)",GB={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:`${WB} , ${UB}`,WEB:`${KB}, ${VB} `,HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:WB+" ",WEB_PORTRAIT:""+KB,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)",TABLET_LANDSCAPE:""+UB,WEB_LANDSCAPE:""+VB},XB=[{alias:"handset",priority:2e3,mediaQuery:GB.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:GB.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:GB.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:GB.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:GB.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:GB.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:GB.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:GB.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:GB.WEB_PORTRAIT,overlapping:!0}],$B=/(\.|-|_)/g;function JB(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const QB=new Nt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Gt(FB),e=Gt(IB),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace($B,"|").split("|").map(JB).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:YB).concat(e.addOrientationBps?XB:[]),i)}});function ZB(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function tH(t,e){return(t.priority||0)-(e.priority||0)}let eH=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(tH)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(Vt(QB))},t.\u0275prov=ut({factory:function(){return new t(Vt(QB))},token:t,providedIn:"root"}),t})(),iH=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new Fp(new RB(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe(Fd(i=>!e||t.indexOf(i.mediaQuery)>-1));return U(new b(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!nH[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(n),i.forEach(t=>nH[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new RB(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new RB(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Zh(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(Vt(Ru),Vt(bu),Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt(Ru),Vt(bu),Vt(ll))},token:t,providedIn:"root"}),t})();const nH={},sH={alias:"print",mediaQuery:"print",priority:1e3};let rH=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new oH,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(ZB)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),BB(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new RB(!0,"print"))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(ZB))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(Vt(eH),Vt(IB),Vt(ll))},t.\u0275prov=ut({factory:function(){return new t(Vt(eH),Vt(IB),Vt(ll))},token:t,providedIn:"root"}),t})();class oH{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(sH),t.sort(ZB),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function aH(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let cH=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:aH(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:aH(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||td(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Zh(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||(Zh(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],s=Array.isArray(n)?n:[n];s.sort();for(let t of s)t=t?t+"":"",Zh(this._platformId)||!this._serverModuleLoaded?Zh(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+n);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(Vt(OB),Vt(NB),Vt(bu),Vt(IB))},t.\u0275prov=ut({factory:function(){return new t(Vt(OB),Vt(NB),Vt(bu),Vt(IB))},token:t,providedIn:"root"}),t})();class uH{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}function lH(t,e="1",i="1"){let n=[e,i,t],s=t.indexOf("calc");if(s>0){n[2]=hH(t.substring(s).trim());let e=t.substr(0,s).trim().split(" ");2==e.length&&(n[0]=e[0],n[1]=e[1])}else if(0==s)n[2]=hH(t.trim());else{let s=t.split(" ");n=3===s.length?s:[e,i,t]}return n}function hH(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let dH=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new M,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=BB(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(ZB),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(ZB),this.updateStyles()))}init(t,e,i,n,s=[]){pH(this.updateMap,t,e,i),pH(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const r=(s.get(n)||new Map).set(e,i);s.set(n,r),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Fd(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=U(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(vf(this.hook.interceptEvents(this)),Fd(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(Vt(iH),Vt(eH),Vt(rH))},t.\u0275prov=ut({factory:function(){return new t(Vt(iH),Vt(eH),Vt(rH))},token:t,providedIn:"root"}),t})();function pH(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}const fH=["row","column","row-reverse","column-reverse"];function gH(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return fH.find(t=>t===e)||(e=fH[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,_H(i),!!n]}function mH(t){let[e]=gH(t);return e.indexOf("row")>-1}function _H(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let bH=(()=>{class t extends uH{buildStyles(t){return function(t){let[e,i,n]=gH(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(e){return yH(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const yH=gn(bH),wH=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let AH=(()=>{class t extends jB{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=CH,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(bH),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})(),vH=(()=>{class t extends AH{constructor(){super(...arguments),this.inputs=wH}}return t.\u0275fac=function(e){return MH(e||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[ho]}),t})();const MH=gn(vH),CH=new Map,SH={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let TH=(()=>{class t extends uH{constructor(t){super(),this._styler=t}buildStyles(t,e){return t.endsWith(PH)?function(t,e){const[i,n]=t.split(" "),s=t=>"-"+t;let r="0px",o=s(n||i),a="0px";return"rtl"===e?a=s(i):r=s(i),{margin:`0px ${r} ${o} ${a}`}}(t=t.slice(0,t.indexOf(PH)),e.directionality):{}}sideEffect(t,e,i){const n=i.items;if(t.endsWith(PH)){const e=function(t,e){const[i,n]=t.split(" ");let s="0px",r="0px";return"rtl"===e?r=i:s=i,{padding:`0px ${s} ${n||i} ${r}`}}(t=t.slice(0,t.indexOf(PH)),i.directionality);this._styler.applyStyleToElements(e,i.items)}else{const e=n.pop(),s=function(t,e){const i=IH(e.directionality,e.layout),n=Object.assign({},SH);return n[i]=t,n}(t,i);this._styler.applyStyleToElements(s,n),this._styler.applyStyleToElements(SH,[e])}}}return t.\u0275fac=function(e){return new(e||t)(Vt(cH))},t.\u0275prov=ut({factory:function(){return new t(Vt(cH))},token:t,providedIn:"root"}),t})();const kH=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let EH=(()=>{class t extends jB{constructor(t,e,i,n,s,r){super(t,s,n,r),this.zone=e,this.directionality=i,this.styleUtils=n,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new M;const o=[this.directionality.change,this.observerSubject.asObservable()];this.init(o),this.marshal.trackValue(this.nativeElement,"layout").pipe(G_(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const t=this.nativeElement.children,e=[];for(let i=t.length;i--;)e[i]=t[i];return e}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],fH.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(t){const e=this.childrenNodes.filter(t=>1===t.nodeType&&this.willDisplay(t)).sort((t,e)=>{const i=+this.styler.lookupStyle(t,"order"),n=+this.styler.lookupStyle(e,"order");return isNaN(i)||isNaN(n)||i===n?0:i>n?1:-1});if(e.length>0){const i=this.directionality.value,n=this.layout;"row"===n&&"rtl"===i?this.styleCache=zH:"row"===n&&"rtl"!==i?this.styleCache=RH:"column"===n&&"rtl"===i?this.styleCache=DH:"column"===n&&"rtl"!==i&&(this.styleCache=OH),this.addStyles(t,{directionality:i,items:e,layout:n})}}clearStyles(){const t=Object.keys(this.mru).length>0,e=t?"padding":IH(this.directionality.value,this.layout);t&&super.clearStyles(),this.styleUtils.applyStyleToElements({[e]:""},this.childrenNodes)}willDisplay(t){const e=this.marshal.getValue(t,"show-hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(t=>{t.some(t=>t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Ru),Lo(Mb),Lo(cH),Lo(TH),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})(),xH=(()=>{class t extends EH{constructor(){super(...arguments),this.inputs=kH}}return t.\u0275fac=function(e){return LH(e||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[ho]}),t})();const LH=gn(xH),zH=new Map,DH=new Map,RH=new Map,OH=new Map,PH=" grid";function IH(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function NH(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}let FH=(()=>{class t extends uH{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[i,n,...s]=t.split(" "),r=s.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=mH(o)?"max-width":"max-height",c=mH(o)?"min-width":"min-height",u=String(r).indexOf("calc")>-1,l=u||"auto"===r,h=String(r).indexOf("%")>-1&&!u,d=String(r).indexOf("px")>-1||String(r).indexOf("rem")>-1||String(r).indexOf("em")>-1||String(r).indexOf("vw")>-1||String(r).indexOf("vh")>-1;let p=u||d;i="0"==i?0:i,n="0"==n?0:n;const f=!i&&!n;let g={};const m={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(r||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;r="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,r="auto";break;case"grow":r="100%";break;case"noshrink":n=0,r="auto";break;case"auto":break;case"none":i=0,n=0,r="auto";break;default:p||h||isNaN(r)||(r+="%"),"0%"===r&&(p=!0),"0px"===r&&(r="0%"),g=NH(m,u?{"flex-grow":i,"flex-shrink":n,"flex-basis":p?r:"100%"}:{flex:`${i} ${n} ${p?r:"100%"}`})}return g.flex||g["flex-grow"]||(g=NH(m,u?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`})),"0%"!==r&&"0px"!==r&&"0.000000001px"!==r&&"auto"!==r&&(g[c]=f||p&&i?r:null,g[a]=f||!l&&n?r:null),g[c]||g[a]?e.hasWrap&&(g[u?"flex-basis":"flex"]=g[a]?u?g[a]:`${i} ${n} ${g[a]}`:u?g[c]:`${i} ${n} ${g[c]}`):g=NH(m,u?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`}),NH(g,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(Vt(IB))},t.\u0275prov=ut({factory:function(){return new t(Vt(IB))},token:t,providedIn:"root"}),t})();const BH=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let HH=(()=>{class t extends jB{constructor(t,e,i,n,s){super(t,n,e,s),this.layoutConfig=i,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(G_(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(G_(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,i=e.startsWith("row"),n=this.wrap;i&&n?this.styleCache=UH:i&&!n?this.styleCache=YH:!i&&n?this.styleCache=KH:i||n||(this.styleCache=WH);const s=lH(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(s.join(" "),{direction:e,hasWrap:n})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=lH(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(IB),Lo(FH),Lo(dH))},t.\u0275dir=be({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[ho]}),t})(),qH=(()=>{class t extends HH{constructor(){super(...arguments),this.inputs=BH}}return t.\u0275fac=function(e){return jH(e||t)},t.\u0275dir=be({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[ho]}),t})();const jH=gn(qH),YH=new Map,WH=new Map,UH=new Map,KH=new Map;let VH=(()=>{class t extends uH{buildStyles(t){return{order:t&&parseInt(t,10)||""}}}return t.\u0275fac=function(e){return GH(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const GH=gn(VH),XH=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"];let $H=(()=>{class t extends jB{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="flex-order",this.styleCache=JH,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(VH),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})();const JH=new Map;let QH=(()=>{class t extends $H{constructor(){super(...arguments),this.inputs=XH}}return t.\u0275fac=function(e){return ZH(e||t)},t.\u0275dir=be({type:t,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[ho]}),t})();const ZH=gn(QH);let tq=(()=>{class t extends uH{buildStyles(t,e){""===t&&(t="0");const i=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||i||isNaN(+t)||(t+="%");const n=e.isRtl?"margin-right":"margin-left";return mH(e.layout)?{[n]:""+t}:{"margin-top":""+t}}}return t.\u0275fac=function(e){return eq(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const eq=gn(tq),iq=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"];let nq=(()=>{class t extends jB{constructor(t,e,i,n,s){super(t,i,s,n),this.directionality=e,this.DIRECTIVE_KEY="flex-offset",this.init([this.directionality.change]),this.parentElement&&this.marshal.trackValue(this.parentElement,"layout-gap").pipe(G_(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))}updateWithValue(t=""){const e=this.getFlexFlowDirection(this.parentElement,!0),i="rtl"===this.directionality.value;"row"===e&&i?this.styleCache=oq:"row"!==e||i?"column"===e&&i?this.styleCache=aq:"column"!==e||i||(this.styleCache=uq):this.styleCache=cq,this.addStyles(t+"",{layout:e,isRtl:i})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(Mb),Lo(tq),Lo(dH),Lo(cH))},t.\u0275dir=be({type:t,features:[ho]}),t})(),sq=(()=>{class t extends nq{constructor(){super(...arguments),this.inputs=iq}}return t.\u0275fac=function(e){return rq(e||t)},t.\u0275dir=be({type:t,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[ho]}),t})();const rq=gn(sq),oq=new Map,aq=new Map,cq=new Map,uq=new Map;let lq=(()=>{class t extends uH{buildStyles(t){const e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}return t.\u0275fac=function(e){return hq(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const hq=gn(lq),dq=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let pq=(()=>{class t extends jB{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="flex-align",this.styleCache=fq,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(lq),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})();const fq=new Map;let gq=(()=>{class t extends pq{constructor(){super(...arguments),this.inputs=dq}}return t.\u0275fac=function(e){return mq(e||t)},t.\u0275dir=be({type:t,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[ho]}),t})();const mq=gn(gq),_q={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let bq=(()=>{class t extends uH{buildStyles(t){return _q}}return t.\u0275fac=function(e){return yq(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const yq=gn(bq);let wq=(()=>{class t extends jB{constructor(t,e,i,n){super(t,i,e,n),this.styleCache=Aq,this.addStyles("")}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(bq),Lo(dH))},t.\u0275dir=be({type:t,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[ho]}),t})();const Aq=new Map;let vq=(()=>{class t extends uH{buildStyles(t,e){const i={},[n,s]=t.split(" ");switch(n){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return NH(i,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?mH(e.layout)?null:"100%":null,"max-height":"stretch"===s&&mH(e.layout)?"100%":null})}}return t.\u0275fac=function(e){return Mq(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Mq=gn(vq),Cq=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Sq=(()=>{class t extends jB{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(G_(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",i=this.inline;"row"===e&&i?this.styleCache=Dq:"row"!==e||i?"row-reverse"===e&&i?this.styleCache=Oq:"row-reverse"!==e||i?"column"===e&&i?this.styleCache=Rq:"column"!==e||i?"column-reverse"===e&&i?this.styleCache=Pq:"column-reverse"!==e||i||(this.styleCache=zq):this.styleCache=xq:this.styleCache=Lq:this.styleCache=Eq,this.addStyles(t,{layout:e,inline:i})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),fH.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(vq),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})(),Tq=(()=>{class t extends Sq{constructor(){super(...arguments),this.inputs=Cq}}return t.\u0275fac=function(e){return kq(e||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[ho]}),t})();const kq=gn(Tq),Eq=new Map,xq=new Map,Lq=new Map,zq=new Map,Dq=new Map,Rq=new Map,Oq=new Map,Pq=new Map;let Iq=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[DB,Sb]]}),t})();function Nq(t,e){if(1&t&&(Oo(0,"mat-option",13),va(1),Po()),2&t){const t=e.$implicit;Do("value",Go().selectedUnit),vs(1),Ca(" ",t," ")}}let Fq=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.rtMessagesService=i,this.notificator=n,this.translate=s,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",s.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new FE(null,[Zk.required]),this.newValueControl=new FE(null,[Zk.required,Zk.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const t=(new az).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${t} (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`).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(kp),Lo(MS),Lo(YC))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Oo(5,"div"),Oo(6,"p",2),va(7),Ic(8,"translate"),Ic(9,"customTranslate"),Po(),Oo(10,"p"),va(11),Po(),Po(),Oo(12,"div"),Oo(13,"p",2),va(14),Ic(15,"translate"),Ic(16,"customTranslate"),Po(),Oo(17,"p"),va(18),Po(),Po(),Oo(19,"div",3),Oo(20,"mat-form-field"),Oo(21,"label",4),Io(22,"input",5),Ic(23,"translate"),Ic(24,"customTranslate"),Po(),Po(),Oo(25,"mat-select",6),Yo("valueChange",(function(t){return e.selectedUnit=t})),Eo(26,Nq,2,2,"mat-option",7),Po(),Po(),Oo(27,"div"),Oo(28,"mat-form-field",8),Oo(29,"label",4),Io(30,"textarea",9),Ic(31,"translate"),Ic(32,"customTranslate"),Po(),Po(),Po(),Oo(33,"div",10),Oo(34,"button",11),Yo("click",(function(){return e.onCancel()})),va(35),Ic(36,"translate"),Ic(37,"customTranslate"),Po(),Oo(38,"button",12),Yo("click",(function(){return e.onSubmit()})),va(39),Ic(40,"translate"),Ic(41,"customTranslate"),Po(),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,14,Nc(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE"))),vs(6),Ma(Nc(8,18,Nc(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))),vs(4),Ma(e.resource),vs(3),Ma(Nc(15,22,Nc(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))),vs(4),Ma(e.currentQuota),vs(4),Qo("placeholder",Nc(23,26,Nc(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),Do("formControl",e.newValueControl),vs(3),Do("value",e.selectedUnit),vs(1),Do("ngForOf",e.units),vs(4),Qo("placeholder",Nc(31,30,Nc(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),Do("formControl",e.reasonControl),vs(5),Ca(" ",Nc(36,34,Nc(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),vs(3),Do("disabled",e.reasonControl.invalid),vs(1),Ca(" ",Nc(40,38,Nc(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[tC,vH,gq,Rk,Bx,oE,Hk,dx,Kk,tx,KD,mh,iC,ZC,PM],pipes:[UC,cz],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),t})();function Bq(t,e){1&t&&Io(0,"mat-spinner",8)}function Hq(t,e){1&t&&(Oo(0,"app-alert",9),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function qq(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"p"),Oo(2,"strong"),va(3),Ic(4,"translate"),Ic(5,"customTranslate"),Po(),va(6),Po(),Oo(7,"p",10),va(8),Ic(9,"translate"),Ic(10,"customTranslate"),Po(),Oo(11,"button",11),Yo("click",(function(){ii(t);const e=Go().$implicit,i=Go(3).$implicit;return Go().requestChangeQuota(i,e)})),va(12),Ic(13,"translate"),Ic(14,"customTranslate"),Po(),Po()}if(2&t){const t=Go(5);vs(3),Ma(Nc(4,4,Nc(5,6,"DATA_QUOTAS.QUOTA"))),vs(3),Ca(" ",t.quotasMarkup,""),vs(2),Ma(Nc(9,8,Nc(10,10,"DATA_QUOTAS.QUOTA_INFO"))),vs(4),Ma(Nc(13,12,Nc(14,14,"DATA_QUOTAS.CHANGE")))}}function jq(t,e){1&t&&(Oo(0,"p"),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function Yq(t,e){if(1&t){const t=Ho();Oo(0,"mat-expansion-panel",3),Yo("opened",(function(){ii(t);const i=e.$implicit;return Go(4).getResAttributes(i.id)})),Oo(1,"mat-expansion-panel-header"),Oo(2,"mat-panel-title"),va(3),Po(),Po(),Eo(4,qq,15,16,"div",7),Eo(5,jq,4,5,"p",7),Po()}if(2&t){const t=e.$implicit,i=Go(4);vs(3),Ca(" ",t.name," "),vs(1),Do("ngIf",i.defaultQuota),vs(1),Do("ngIf",!i.defaultQuota)}}function Wq(t,e){if(1&t&&(Oo(0,"mat-accordion"),Eo(1,Yq,6,3,"mat-expansion-panel",2),Po()),2&t){const t=Go(3);vs(1),Do("ngForOf",t.resources)}}function Uq(t,e){if(1&t&&(Eo(0,Bq,1,0,"mat-spinner",5),Eo(1,Hq,4,5,"app-alert",6),Eo(2,Wq,2,1,"mat-accordion",7)),2&t){const t=Go(2);Do("ngIf",t.loading),vs(1),Do("ngIf",0===t.resources.length&&!t.loading),vs(1),Do("ngIf",t.resources.length&&!t.loading)}}function Kq(t,e){if(1&t){const t=Ho();Oo(0,"mat-expansion-panel",3),Yo("opened",(function(){ii(t);const i=e.$implicit;return Go().getMembersResources(i)})),Oo(1,"mat-expansion-panel-header"),Oo(2,"mat-panel-title"),va(3),Po(),Po(),Eo(4,Uq,3,3,"ng-template",4),Po()}if(2&t){const t=e.$implicit;vs(3),Ca(" ",t.name," ")}}let Vq=(()=>{class t{constructor(t,e,i,n,s,r){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.dialog=r,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMembersResources(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{let e=t.length;e||(this.loading=!1),t.forEach(t=>{this.attributesManagerService.getResourceAttributes(t.id).subscribe(i=>{e--,i.find(t=>"defaultDataQuotas"===t.friendlyName)&&this.resources.push(t),this.loading=0!==e})})})})}getResAttributes(t){this.attributesManagerService.getResourceAttributes(t).subscribe(t=>{let e=t.find(t=>"dataQuotas"===t.friendlyName);if(e&&e.value){const t=Object.keys(e.value);this.currentQuota=e.value[t[0]]}else this.currentQuota="";if(e=t.find(t=>"defaultDataQuotas"===t.friendlyName),e){const t=Object.keys(e.value);this.defaultQuota=e.value[t[0]]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}parseMarkup(){let t="";t+=this.currentQuota,t+=` (default: ${this.defaultQuota})`,t=t.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=t}requestChangeQuota(t,e){const i=pC();i.width="400px",i.data={vo:t,resource:e,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(Fq,i)}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(Lp),Lo(Tp),Lo(xp),Lo(vp),Lo(JM))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-settings-data-quotas"]],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"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"perun-web-apps-immediate-filter",1),Yo("filter",(function(t){return e.applyFilter(t)})),Ic(5,"translate"),Ic(6,"customTranslate"),Po(),Oo(7,"mat-accordion"),Eo(8,Kq,5,1,"mat-expansion-panel",2),Po()),2&t&&(vs(1),Ma(Nc(2,3,Nc(3,5,"DATA_QUOTAS.TITLE"))),vs(3),Do("placeholder",Nc(5,7,Nc(6,9,"DATA_QUOTAS.FILTER"))),vs(4),Do("ngForOf",e.filteredVos))},directives:[gN,HN,mh,PN,NN,BN,DN,bh,$x,aD,ZC],pipes:[UC,cz],styles:[""]}),t})();function Gq(t,e){1&t&&Io(0,"mat-spinner",8)}function Xq(t,e){1&t&&(Oo(0,"app-alert",9),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function $q(t,e){if(1&t){const t=Ho();Oo(0,"mat-expansion-panel",3),Yo("opened",(function(){ii(t);const i=e.$implicit;return Go(4).getOptOutAttribute(i)})),Oo(1,"mat-expansion-panel-header"),Oo(2,"mat-panel-title"),va(3),Po(),Po(),Oo(4,"div",10),Oo(5,"p"),va(6),Ic(7,"translate"),Ic(8,"customTranslate"),Po(),Oo(9,"mat-checkbox",11),Yo("change",(function(){return ii(t),Go(4).setOptOut()})),Po(),Po(),Po()}if(2&t){const t=e.$implicit,i=Go(4);vs(3),Ca(" ",t.name," "),vs(3),Ma(Nc(7,3,Nc(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),vs(3),Do("checked",i.optOutAttribute&&null!==i.optOutAttribute.value)}}function Jq(t,e){if(1&t&&(Oo(0,"mat-accordion"),Eo(1,$q,10,7,"mat-expansion-panel",2),Po()),2&t){const t=Go(3);vs(1),Do("ngForOf",t.resources)}}function Qq(t,e){if(1&t&&(Eo(0,Gq,1,0,"mat-spinner",5),Eo(1,Xq,4,5,"app-alert",6),Eo(2,Jq,2,1,"mat-accordion",7)),2&t){const t=Go(2);Do("ngIf",t.loading),vs(1),Do("ngIf",0===t.resources.length&&!t.loading),vs(1),Do("ngIf",t.resources.length&&!t.loading)}}function Zq(t,e){if(1&t){const t=Ho();Oo(0,"mat-expansion-panel",3),Yo("opened",(function(){ii(t);const i=e.$implicit;return Go().getMailingLists(i)})),Oo(1,"mat-expansion-panel-header"),Oo(2,"mat-panel-title"),va(3),Po(),Po(),Eo(4,Qq,3,3,"ng-template",4),Po()}if(2&t){const t=e.$implicit;vs(3),Ca(" ",t.name," ")}}let tj=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMailingLists(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(e=>{let i=e.length;i||(this.loading=!1),e.forEach(e=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,e.id).subscribe(n=>{this.attributesManagerService.getResourceAttributeByName(e.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(s=>{i--;const r=n.find(t=>"optOutMailingList"===t.friendlyName);!r||s&&"true"===s.value||(this.optOuts.push({resource:e.id,member:t.id,attribute:r}),this.resources.push(e)),this.loading=0!==i})})})})})}getOptOutAttribute(t){this.index=this.resources.indexOf(t),this.optOutAttribute=this.optOuts[this.index].attribute}setOptOut(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{console.log("done")})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(Lp),Lo(Tp),Lo(xp),Lo(vp))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"perun-web-apps-immediate-filter",1),Yo("filter",(function(t){return e.applyFilter(t)})),Ic(5,"translate"),Ic(6,"customTranslate"),Po(),Oo(7,"mat-accordion"),Eo(8,Zq,5,1,"mat-expansion-panel",2),Po()),2&t&&(vs(1),Ma(Nc(2,3,Nc(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),vs(3),Do("placeholder",Nc(5,7,Nc(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),vs(4),Do("ngForOf",e.filteredVos))},directives:[gN,HN,mh,PN,NN,BN,DN,bh,$x,aD,hR],pipes:[UC,cz],styles:[""]}),t})();function ej(t,e){1&t&&Io(0,"mat-spinner",4)}function ij(t,e){1&t&&Io(0,"th",17)}function nj(t,e){if(1&t&&(Oo(0,"td",18),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ca(" ",t," ")}}function sj(t,e){1&t&&Io(0,"tr",19)}function rj(t,e){1&t&&Io(0,"tr",20)}function oj(t,e){if(1&t&&(Oo(0,"table",11),No(1,12),Eo(2,ij,1,0,"th",13),Eo(3,nj,2,1,"td",14),Fo(),Eo(4,sj,1,0,"tr",15),Eo(5,rj,1,0,"tr",16),Po()),2&t){const t=Go(2);Do("dataSource",t.dataSource),vs(4),Do("matHeaderRowDef",t.displayedColumns),vs(1),Do("matRowDefColumns",t.displayedColumns)}}function aj(t,e){if(1&t){const t=Ho();Oo(0,"div",1),Oo(1,"div",5),Oo(2,"p"),va(3),Po(),Oo(4,"div",6),va(5),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Eo(8,oj,6,3,"table",7),Po(),Oo(9,"div",8),Oo(10,"button",9),Yo("click",(function(){return ii(t),Go().onCancel()})),va(11),Ic(12,"translate"),Ic(13,"customTranslate"),Po(),Oo(14,"button",10),Yo("click",(function(){return ii(t),Go().onSubmit()})),va(15),Ic(16,"translate"),Ic(17,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();vs(3),Ca(" ",t.description," "),vs(2),Ca(" ",Nc(6,5,Nc(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),vs(3),Do("ngIf",t.dataSource.data.length),vs(3),Ca(" ",Nc(12,9,Nc(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),vs(4),Ca(" ",Nc(16,13,Nc(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let cj=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new ZT(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 t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(t=>!this.data.values.find(e=>e===t)),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(vp))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Po(),Oo(2,"div",1),Eo(3,ej,1,0,"mat-spinner",2),Po(),Eo(4,aj,18,17,"div",3)),2&t&&(vs(1),Ma(e.title),vs(2),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading))},directives:[tC,bh,$x,eC,iC,ZC,ST,RT,xT,kT,FT,jT,PT,NT,WT,GT],pipes:[UC,cz],styles:[""]}),t})();function uj(t,e){1&t&&(Oo(0,"app-alert",5),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function lj(t,e){if(1&t){const t=Ho();Oo(0,"mat-option",11),Yo("click",(function(){return ii(t),Go(3).changeValue()})),va(1),Po()}if(2&t){const t=e.$implicit;Do("value",t),vs(1),Ma(t)}}function hj(t,e){if(1&t){const t=Ho();Oo(0,"mat-list-item"),Oo(1,"mat-form-field",7),Oo(2,"mat-select",8),Yo("valueChange",(function(i){ii(t);const n=e.index;return Go(2).shells[n]=i})),Eo(3,lj,2,2,"mat-option",9),Po(),Po(),Oo(4,"button",10),Yo("click",(function(){ii(t);const i=e.index;return Go(2).removeShell(i)})),va(5),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Po()}if(2&t){const t=e.index,i=Go(2);vs(2),Do("value",i.shells[t]),vs(1),Do("ngForOf",i.defaultShells),vs(2),Ma(Nc(6,3,Nc(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON")))}}function dj(t,e){if(1&t&&(Oo(0,"mat-list"),Eo(1,hj,8,7,"mat-list-item",6),Po()),2&t){const t=Go();vs(1),Do("ngForOf",t.shells)}}let pj=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],n.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{console.log("done")})}removeShell(t){const e=pC();e.width="600px",e.data={valueIndex:t,values:[this.shells[t]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(cj,e).afterClosed().subscribe(t=>{t&&this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(t=>{this.prefShellsAttribute=t,this.shells=this.prefShellsAttribute.value?this.prefShellsAttribute.value:[],this.loading=!1})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(vp),Lo(JM),Lo(YC))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"app-alert",1),va(5),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Oo(8,"button",2),Yo("click",(function(){return e.addShell()})),va(9),Ic(10,"translate"),Ic(11,"customTranslate"),Po(),Eo(12,uj,4,5,"app-alert",3),Eo(13,dj,2,1,"mat-list",4)),2&t&&(vs(1),Ma(Nc(2,5,Nc(3,7,"PREFERRED_SHELLS.TITLE"))),vs(4),Ca(" ",Nc(6,9,Nc(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),vs(4),Ma(Nc(10,13,Nc(11,15,"PREFERRED_SHELLS.NEW_BUTTON"))),vs(3),Do("ngIf",!e.loading&&0===e.shells.length),vs(1),Do("ngIf",!e.loading))},directives:[aD,ZC,bh,fB,mh,bB,Rk,KD,PM],pipes:[UC,cz],styles:[""]}),t})();function fj(t,e){1&t&&Io(0,"mat-spinner",4)}function gj(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"div",5),Oo(2,"mat-form-field",6),Oo(3,"label",6),Io(4,"input",7),Po(),Po(),Po(),Oo(5,"div",8),Oo(6,"button",9),Yo("click",(function(){return ii(t),Go().onCancel()})),va(7),Ic(8,"translate"),Ic(9,"customTranslate"),Po(),Oo(10,"button",10),Yo("click",(function(){return ii(t),Go().onSubmit()})),va(11),Ic(12,"translate"),Ic(13,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();vs(4),Do("formControl",t.inputControl),vs(3),Ca(" ",Nc(8,4,Nc(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),vs(3),Do("disabled",!t.inputControl.valid||t.groups.includes(t.inputControl.value)),vs(1),Ca(" ",Nc(12,8,Nc(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let mj=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.groups=[]}ngOnInit(){this.inputControl=new FE(null,Zk.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(t=>{const e=t.value?t.value:[];e.push(this.inputControl.value),t.value=e,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:t}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(vp))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Eo(5,fj,1,0,"mat-spinner",2),Eo(6,gj,14,12,"div",3),Po()),2&t&&(vs(1),Ma(Nc(2,3,Nc(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),vs(4),Do("ngIf",e.loading),vs(1),Do("ngIf",!e.loading))},directives:[tC,bh,$x,eC,Rk,Bx,Hk,dx,Kk,tx,iC,ZC],pipes:[UC,cz],styles:[""]}),t})();function _j(t,e){if(1&t){const t=Ho();Oo(0,"div",2),Oo(1,"h4"),va(2),Po(),Oo(3,"button",3),Yo("click",(function(){ii(t);const i=e.$implicit;return Go().addGroupName(i)})),va(4),Ic(5,"translate"),Ic(6,"customTranslate"),Po(),Oo(7,"button",4),Yo("click",(function(){ii(t);const i=e.$implicit,n=e.index;return Go().removeGroupName(i,n)})),va(8),Ic(9,"translate"),Po(),Io(10,"perun-web-apps-string-list",5),Po()}if(2&t){const t=e.$implicit,i=e.index,n=Go();vs(2),Ma(t),vs(2),Ma(Nc(5,8,Nc(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))),vs(3),Do("disabled",0===n.selectionList[i].selected.length),vs(1),Ma(Nc(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")),vs(2),Do("values",n.groupNames.get(t))("selection",n.selectionList[i])("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}let bj=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),n.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.initSelection(),this.namespaces.forEach(t=>{this.getAttribute(t)})}initSelection(){for(let t=0;t{this.groupNames.set(t,e.value?e.value:[]),this.groupNameAttributes.push(e)})}addGroupName(t){const e=this.groupNames.get(t),i=pC();i.width="400px",i.data={groups:e,namespace:t,userId:this.userId},this.dialog.open(mj,i).afterClosed().subscribe(e=>{e&&this.getAttribute(t)})}removeGroupName(t,e){const i=pC();i.width="600px",i.data={values:this.selectionList[e].selected,attribute:this.groupNameAttributes[e],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(cj,i).afterClosed().subscribe(i=>{i&&(this.selectionList[e].clear(),this.getAttribute(t))})}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(vp),Lo(JM),Lo(YC))},t.\u0275cmp=de({type:t,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",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Eo(4,_j,11,14,"div",1)),2&t&&(vs(1),Ma(Nc(2,2,Nc(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),vs(3),Do("ngForOf",e.namespaces))},directives:[mh,ZC,GF],pipes:[UC,cz],styles:[""]}),t})();function yj(t,e){1&t&&(Oo(0,"app-alert",7),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,Nc(3,3,"ALERTS.NO_SAMBA")),"\n"))}function wj(t,e){1&t&&(Oo(0,"app-alert",7),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,Nc(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function Aj(t,e){1&t&&(Oo(0,"app-alert",8),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let vj=(()=>{class t{constructor(t,e,i,n,s){this.attributesManagerService=t,this.store=e,this.usersManagerService=i,this.notificator=n,this.translate=s,s.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),s.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(t=>this.showPwdTooltip=t),s.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(t=>this.hidePwdTooltip=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new FE("",[Zk.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 t=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword(this.userId,t,"samba-du",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(t=>{this.sambaExists=!!t.value,this.sambaAttribute=t})}}return t.\u0275fac=function(e){return new(e||t)(Lo(vp),Lo(g_),Lo(Lp),Lo(MS),Lo(YC))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Eo(4,yj,4,5,"app-alert",1),Eo(5,wj,4,5,"app-alert",1),Oo(6,"mat-form-field",2),Oo(7,"label",2),Io(8,"input",3),Ic(9,"translate"),Ic(10,"customTranslate"),Po(),Po(),Oo(11,"button",4),Yo("click",(function(){return e.showPassword=!e.showPassword})),Oo(12,"mat-icon"),va(13),Po(),Po(),Oo(14,"button",5),Yo("click",(function(){return e.setSambaPassword()})),va(15),Ic(16,"translate"),Ic(17,"customTranslate"),Po(),Eo(18,Aj,4,5,"app-alert",6)),2&t&&(vs(1),Ma(Nc(2,11,Nc(3,13,"SAMBA_PASSWORD.TITLE"))),vs(3),Do("ngIf",!e.sambaExists),vs(1),Do("ngIf",e.sambaExists),vs(3),Qo("placeholder",Nc(9,15,Nc(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),Do("formControl",e.sambaControl)("type",e.showPassword?"text":"password"),vs(3),Do("matTooltip",e.showPassword?e.hidePwdTooltip:e.showPwdTooltip),vs(2),Ma(e.showPassword?"visibility_off":"visibility"),vs(1),Do("disabled",0===e.sambaControl.value.length||e.sambaControl.invalid),vs(1),Ma(Nc(16,19,Nc(17,21,"SAMBA_PASSWORD.SET_PASSWORD"))),vs(3),Do("ngIf",e.sambaControl.invalid))},directives:[bh,Rk,Bx,Hk,Kk,tx,ZC,SD,wS,aD],pipes:[UC,cz],styles:[""]}),t})(),Mj=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i}ngOnInit(){this.sshControl=new FE(null,[Zk.required,Zk.pattern("^(ssh-rsa|ssh-ed25519|ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521).+$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=this.data.attribute.value?this.data.attribute.value:[];t.includes(this.sshControl.value)||t.push(this.sshControl.value),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM),Lo(vp))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:19,vars:22,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","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"]],template:function(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Oo(5,"mat-form-field",2),Oo(6,"label",2),Io(7,"textarea",3),Ic(8,"translate"),Ic(9,"customTranslate"),Po(),Po(),Po(),Oo(10,"div",4),Oo(11,"button",5),Yo("click",(function(){return e.onCancel()})),va(12),Ic(13,"translate"),Ic(14,"customTranslate"),Po(),Oo(15,"button",6),Yo("click",(function(){return e.onSubmit()})),va(16),Ic(17,"translate"),Ic(18,"customTranslate"),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,6,Nc(3,8,"DIALOGS.ADD_SSH.TITLE"))),vs(6),Qo("placeholder",Nc(8,10,Nc(9,12,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),Do("formControl",e.sshControl),vs(5),Ca(" ",Nc(13,14,Nc(14,16,"DIALOGS.ADD_SSH.CANCEL"))," "),vs(3),Do("disabled",!e.sshControl.valid),vs(1),Ca(" ",Nc(17,18,Nc(18,20,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[tC,eC,Rk,Bx,Lx,Hk,dx,Kk,tx,iC,ZC],pipes:[UC,cz],styles:[".input-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}"]}),t})(),Cj=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(VM))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"div",0),Oo(1,"textarea",1),va(2),Po(),Po(),Oo(3,"mat-dialog-actions"),Oo(4,"button",2),Yo("click",(function(){return e.onClose()})),va(5),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Po()),2&t&&(vs(2),Ma(e.sshKey),vs(3),Ma(Nc(6,2,Nc(7,4,"DIALOGS.SHOW_SSH.CLOSE"))))},directives:[Bx,Lx,iC,ZC],pipes:[UC,cz],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}[_ngcontent-%COMP%]:focus{outline:none}"]}),t})();function Sj(t,e){if(1&t){const t=Ho();Oo(0,"mat-list-item",4),Oo(1,"p",5),Yo("click",(function(){ii(t);const i=e.$implicit;return Go().showWholeKey(i)})),va(2),Po(),Oo(3,"button",6),Ic(4,"translate"),Ic(5,"customTranslate"),Oo(6,"mat-icon"),va(7," file_copy "),Po(),Po(),Oo(8,"button",7),Yo("click",(function(){ii(t);const i=e.$implicit;return Go().removeKey(i,!1)})),Ic(9,"translate"),Ic(10,"customTranslate"),Oo(11,"mat-icon"),va(12," delete "),Po(),Po(),Po()}if(2&t){const t=e.$implicit;vs(2),Ma(t),vs(1),Qo("matTooltip",Nc(4,4,Nc(5,6,"SSH_KEYS.COPY_TOOLTIP"))),Do("cdkCopyToClipboard",t),vs(5),Qo("matTooltip",Nc(9,8,Nc(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function Tj(t,e){if(1&t){const t=Ho();Oo(0,"mat-list-item",4),Oo(1,"label",8),Yo("click",(function(){ii(t);const i=e.$implicit;return Go().showWholeKey(i)})),va(2),Po(),Oo(3,"button",9),Oo(4,"mat-icon"),va(5," file_copy "),Po(),Po(),Oo(6,"button",10),Yo("click",(function(){ii(t);const i=e.$implicit;return Go().removeKey(i,!0)})),Oo(7,"mat-icon"),va(8," delete "),Po(),Po(),Po()}if(2&t){const t=e.$implicit;vs(2),Ma(t),vs(1),Do("cdkCopyToClipboard",t)}}let kj=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,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 xb(!1,[]),this.selectionAdmin=new xb(!1,[]),n.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(t){const e=pC();e.width="800px",e.data={attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Mj,e).afterClosed().subscribe(e=>{e&&(t?this.getAdminSSH():this.getUserSSH())})}removeKey(t,e){const i=pC();i.width="600px",i.data={values:[t],attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(cj,i).afterClosed().subscribe(t=>{t&&(this.loading=!0,e?this.getAdminSSH():this.getUserSSH(),e?this.selectionAdmin.clear():this.selection.clear())})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(t=>{this.userKeyAttribute=t,this.userKeys=t.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(t=>{this.adminKeyAttribute=t,this.adminKeys=t.value,this.loading=!1})}showWholeKey(t){const e=pC();e.width="600px",e.data={value:t},this.dialog.open(Cj,e)}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(vp),Lo(JM),Lo(YC))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",3,"click"],["class","dark-hover-list-item","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"p"),va(5),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Oo(8,"button",1),Yo("click",(function(){return e.addKey(!1)})),va(9),Ic(10,"translate"),Ic(11,"customTranslate"),Po(),Oo(12,"mat-list"),Eo(13,Sj,13,12,"mat-list-item",2),Po(),Oo(14,"h1",3),va(15),Ic(16,"translate"),Ic(17,"customTranslate"),Po(),Oo(18,"p"),va(19),Ic(20,"translate"),Ic(21,"customTranslate"),Po(),Oo(22,"button",1),Yo("click",(function(){return e.addKey(!0)})),va(23),Ic(24,"translate"),Ic(25,"customTranslate"),Po(),Oo(26,"mat-list"),Eo(27,Tj,9,2,"mat-list-item",2),Po()),2&t&&(vs(1),Ma(Nc(2,8,Nc(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),vs(4),Ma(Nc(6,12,Nc(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),vs(4),Ma(Nc(10,16,Nc(11,18,"SSH_KEYS.NEW_KEY"))),vs(4),Do("ngForOf",e.userKeys),vs(2),Ma(Nc(16,20,Nc(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),vs(4),Ma(Nc(20,24,Nc(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),vs(4),Ma(Nc(24,28,Nc(25,30,"SSH_KEYS.NEW_KEY"))),vs(4),Do("ngForOf",e.adminKeys))},directives:[ZC,fB,mh,bB,MM,nz,SD,wS],pipes:[UC,cz],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.cursor-pointer[_ngcontent-%COMP%], label[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),t})();function Ej(t,e){if(1&t){const t=Ho();Oo(0,"th",18),Oo(1,"mat-checkbox",19),Yo("change",(function(e){ii(t);const i=Go();return e?i.masterToggle():null})),Po(),Po()}if(2&t){const t=Go();vs(1),Do("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function xj(t,e){if(1&t){const t=Ho();Oo(0,"td",20),Oo(1,"mat-checkbox",21),Yo("click",(function(e){return ii(t),e.stopPropagation()}))("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null})),Ic(2,"isVirtualAttribute"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("checked",i.selection.isSelected(t))("disabled",Nc(2,3,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function Lj(t,e){1&t&&(Oo(0,"th",22),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function zj(t,e){if(1&t&&(Oo(0,"td",20),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.id)}}function Dj(t,e){1&t&&(Oo(0,"th",22),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function Rj(t,e){if(1&t&&(Oo(0,"td",23),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.displayName)}}function Oj(t,e){1&t&&(Oo(0,"th",18),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function Pj(t,e){if(1&t){const t=Ho();Oo(0,"td",23),Oo(1,"perun-web-apps-attribute-value",24),Yo("sendEventToParent2",(function(){ii(t);const i=e.$implicit;return Go().onValueChange(i)})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("attribute",t)("readonly",i.readonly||!t.writable)}}function Ij(t,e){1&t&&(Oo(0,"th",22),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function Nj(t,e){if(1&t&&(Oo(0,"td",23),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.description)}}function Fj(t,e){1&t&&Io(0,"tr",25)}function Bj(t,e){if(1&t&&(Io(0,"tr",26),Ic(1,"translate")),2&t){const t=e.$implicit,i=Go();Qo("matTooltip",Nc(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),Do("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function Hj(t,e){1&t&&(Oo(0,"app-alert",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function qj(t,e){1&t&&(Oo(0,"app-alert",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}let jj=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new xb(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new jc,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=oC}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ZT(this.attributes.filter(t=>!t.namespace.includes("def:core"))),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!fC(t)&&t.writable}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ip),Lo(xS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),tu(fP,!0),eu(WO,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.matPaginator=i.first),Zc(i=ou())&&(e.items=i))},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[ze],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,Ej,2,3,"th",6),Eo(7,xj,3,5,"td",7),Fo(),No(8,8),Eo(9,Lj,3,3,"th",9),Eo(10,zj,2,1,"td",7),Fo(),No(11,10),Eo(12,Dj,3,3,"th",9),Eo(13,Rj,2,1,"td",11),Fo(),No(14,12),Eo(15,Oj,3,3,"th",6),Eo(16,Pj,2,2,"td",11),Fo(),No(17,13),Eo(18,Ij,3,3,"th",9),Eo(19,Nj,2,1,"td",11),Fo(),Eo(20,Fj,1,0,"tr",14),Eo(21,Bj,2,5,"tr",15),Po(),Po(),Oo(22,"mat-paginator",16),Yo("page",(function(t){return e.pageChanged(t)})),Po(),Po(),Po(),Eo(23,Hj,3,3,"app-alert",17),Eo(24,qj,3,3,"app-alert",17)),2&t&&(Do("hidden",0===e.dataSource.filteredData.length),vs(4),Do("dataSource",e.dataSource),vs(16),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.attributes.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),vs(1),Do("ngIf",0===e.dataSource.data.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,hR,NT,xP,WO,WT,GT,SD,aD],pipes:[oz,UC],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})();function Yj(t,e){1&t&&Io(0,"mat-spinner",5)}function Wj(t,e){1&t&&Io(0,"mat-spinner",5)}function Uj(t,e){if(1&t&&Io(0,"perun-web-apps-attributes-list",10),2&t){const t=Go(3);Do("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function Kj(t,e){if(1&t&&(Eo(0,Wj,1,0,"mat-spinner",3),Eo(1,Uj,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=Go(2);Do("ngIf",t.innerLoading),vs(1),Do("ngIf",!t.innerLoading)}}function Vj(t,e){1&t&&Io(0,"mat-spinner",5)}function Gj(t,e){if(1&t&&Io(0,"perun-web-apps-attributes-list",10),2&t){const t=Go(4);Do("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function Xj(t,e){if(1&t&&(Eo(0,Vj,1,0,"mat-spinner",3),Eo(1,Gj,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=Go(3);Do("ngIf",t.innerLoading),vs(1),Do("ngIf",!t.innerLoading)}}function $j(t,e){if(1&t){const t=Ho();Oo(0,"mat-expansion-panel",6),Yo("opened",(function(){ii(t);const i=e.$implicit;return Go(2).getMemberData(i)})),Oo(1,"mat-expansion-panel-header"),Oo(2,"mat-panel-title"),va(3),Ic(4,"translate"),Ic(5,"customTranslate"),Po(),Po(),Eo(6,Xj,2,2,"ng-template",7),Po()}if(2&t){const t=e.$implicit;vs(3),Sa(" ",Nc(4,2,Nc(5,4,"PRIVACY.DATA")),"",t.name," ")}}function Jj(t,e){if(1&t){const t=Ho();Oo(0,"mat-accordion"),Oo(1,"mat-expansion-panel",6),Yo("opened",(function(){return ii(t),Go().getUserData()})),Oo(2,"mat-expansion-panel-header"),Oo(3,"mat-panel-title"),va(4),Ic(5,"translate"),Ic(6,"customTranslate"),Po(),Po(),Eo(7,Kj,2,2,"ng-template",7),Po(),Eo(8,$j,7,6,"mat-expansion-panel",8),Po()}if(2&t){const t=Go();vs(4),Ca(" ",Nc(5,2,Nc(6,4,"PRIVACY.USER_INFO"))," "),vs(4),Do("ngForOf",t.filteredVos)}}let Qj=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersService=e,this.attributesManagerService=i,this.storage=n,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(t=>{this.vos=t,this.filteredVos=t,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.user=t,this.attributes=t.userAttributes,this.username=(new az).transform(t),this.innerLoading=!1})}getMemberData(t){this.innerLoading=!0,this.membersService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(t=>{this.attributes=t.memberAttributes,this.innerLoading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Lo(Lp),Lo(Tp),Lo(vp),Lo(g_))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"div",1),Oo(5,"perun-web-apps-immediate-filter",2),Yo("filter",(function(t){return e.applyFilter(t)})),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Eo(8,Yj,1,0,"mat-spinner",3),Eo(9,Jj,9,6,"mat-accordion",4),Po()),2&t&&(vs(1),Ma(Nc(2,4,Nc(3,6,"PRIVACY.TITLE"))),vs(4),Do("placeholder",Nc(6,8,Nc(7,10,"SERVICES.FILTER"))),vs(3),Do("ngIf",e.outerLoading),vs(1),Do("ngIf",!e.outerLoading))},directives:[gN,bh,$x,HN,PN,NN,BN,DN,mh,jj],pipes:[UC,cz],styles:[""]}),t})(),Zj=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(t,e){1&t&&Io(0,"router-outlet")},directives:[Xm],styles:[""]}),t})();class tY extends class{constructor(){this.expansionModel=new xb(!0)}toggle(t){this.expansionModel.toggle(t)}expand(t){this.expansionModel.select(t)}collapse(t){this.expansionModel.deselect(t)}isExpanded(t){return this.expansionModel.isSelected(t)}toggleDescendants(t){this.expansionModel.isSelected(t)?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e)}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e)}}{constructor(t,e){super(),this.getLevel=t,this.isExpandable=e}getDescendants(t){const e=[];for(let i=this.dataNodes.indexOf(t)+1;i{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(lc))},t.\u0275dir=be({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),iY=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[uw,eY]}),t})(),nY=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[iY,Gv],Gv]}),t})();class sY{constructor(t,e,i,n){this.transformFunction=t,this.getLevel=e,this.isExpandable=i,this.getChildren=n}_flattenNode(t,e,i,n){const s=this.transformFunction(t,e);if(i.push(s),this.isExpandable(s)){const s=this.getChildren(t);s&&(Array.isArray(s)?this._flattenChildren(s,e,i,n):s.pipe(uf(1)).subscribe(t=>{this._flattenChildren(t,e,i,n)}))}return i}_flattenChildren(t,e,i,n){t.forEach((s,r)=>{let o=n.slice();o.push(r!=t.length-1),this._flattenNode(s,e+1,i,o)})}flattenNodes(t){let e=[];return t.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(t,e){let i=[],n=[];return n[0]=!0,t.forEach(t=>{let s=!0;for(let e=0;e<=this.getLevel(t);e++)s=s&&n[e];s&&i.push(t),this.isExpandable(t)&&(n[this.getLevel(t)+1]=e.isExpanded(t))}),i}}class rY extends Tb{constructor(t,e,i=[]){super(),this._treeControl=t,this._treeFlattener=e,this._flattenedData=new Fp([]),this._expandedData=new Fp([]),this._data=new Fp(i)}get data(){return this._data.value}set data(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(t){return U(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(P(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}const oY=["searchSelectInput"],aY=["innerSelectSearch"];function cY(t,e){if(1&t){const t=Ho();Oo(0,"mat-checkbox",9),Yo("change",(function(e){return ii(t),Go()._emitSelectAllBooleanToParent(e.checked)})),Po()}if(2&t){const t=Go();Do("color",null==t.matFormField?null:t.matFormField.color)("checked",t.toggleAllCheckboxChecked)("indeterminate",t.toggleAllCheckboxIndeterminate)("matTooltip",t.toggleAllCheckboxTooltipMessage)("matTooltipPosition",t.toogleAllCheckboxTooltipPosition)}}function uY(t,e){1&t&&Io(0,"mat-spinner",10)}function lY(t,e){1&t&&Jo(0,1,["*ngIf","clearIcon; else defaultIcon"])}function hY(t,e){1&t&&(Oo(0,"mat-icon"),va(1,"close"),Po())}function dY(t,e){if(1&t){const t=Ho();Oo(0,"button",11),Yo("click",(function(){return ii(t),Go()._reset(!0)})),Eo(1,lY,1,0,"ng-content",12),Eo(2,hY,2,0,"ng-template",null,13,lu),Po()}if(2&t){const t=xo(3),e=Go();vs(1),Do("ngIf",e.clearIcon)("ngIfElse",t)}}function pY(t,e){if(1&t&&(Oo(0,"div",14),va(1),Po()),2&t){const t=Go();vs(1),Ca(" ",t.noEntriesFoundLabel,"\n")}}const fY=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],gY=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},mY=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let _Y=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})();var bY;let yY=(()=>{let t=bY=class{constructor(t,e,i,n=null,s,r=null){this.matSelect=t,this.changeDetectorRef=e,this._viewportRuler=i,this.matOption=n,this.liveAnnouncer=s,this.matFormField=r,this.placeholderLabel="Suche",this.type="text",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.toggleAll=new jc,this.onTouched=t=>{},this._options$=new Fp(null),this.optionsList$=this._options$.pipe(of(t=>t?t.changes.pipe(P(t=>t.toArray()),pf(t.toArray())):Id(null))),this.optionsLength$=this.optionsList$.pipe(P(t=>t?t.length:0)),this._formControl=new FE(""),this._showNoEntriesFound$=Hp([this._formControl.valueChanges,this.optionsLength$]).pipe(P(([t,e])=>this.noEntriesFoundLabel&&t&&e===this.getOptionsLengthOffset())),this._onDestroy=new M}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(t){this._options$.next(t)}get _options(){return this._options$.getValue()}ngOnInit(){const t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.initMultiSelectedValuesTracking(),this.matSelect.openedChange.pipe(zP(1),G_(this._onDestroy)).subscribe(t=>{t?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(uf(1)).pipe(G_(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe(G_(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe(G_(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const e=this._options.toArray()[this.getOptionsLengthOffset()],i=this.matSelect._keyManager;i&&this.matSelect.panelOpen&&(!this.matSelect.compareWith(t,e)&&i.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),t=e})})}),this._showNoEntriesFound$.pipe(G_(this._onDestroy)).subscribe(t=>{this.matOption&&(t?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(G_(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(G_(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(t){this.toggleAll.emit(t)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(t){(t.key&&1===t.key.length||t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||32===t.keyCode||this.preventHomeEndKeyPropagation&&(36===t.keyCode||35===t.keyCode))&&t.stopPropagation(),!0===this.enableClearOnEscapePressed&&27===t.keyCode&&this.value&&(this._reset(!0),t.stopPropagation())}_handleKeyup(t){if(38===t.keyCode||40===t.keyCode){const t=this.matSelect._getAriaActiveDescendant(),e=this._options.toArray().findIndex(e=>e.id===t);if(-1!==e){const t=this._options.toArray()[e];this.liveAnnouncer.announce(t.viewValue+" "+this.getAriaIndex(e)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(t){return 0===this.getOptionsLengthOffset()?t+1:t}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(t){this._formControl.valueChanges.pipe(Fd(t=>t!==this._lastExternalInputValue),vf(()=>this._lastExternalInputValue=void 0),G_(this._onDestroy)).subscribe(t)}registerOnTouched(t){this.onTouched=t}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}_reset(t){this._formControl.setValue(""),t&&this._focus()}initMultipleHandling(){this.matSelect.valueChange.pipe(G_(this._onDestroy)).subscribe(t=>{if(this.matSelect.multiple){let e=!1;if(this._formControl.value&&this._formControl.value.length&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);const i=this.matSelect.options.map(t=>t.value);this.previousSelectedValues.forEach(n=>{t.some(t=>this.matSelect.compareWith(t,n))||i.some(t=>this.matSelect.compareWith(t,n))||(t.push(n),e=!0)})}e&&(this.matSelect._onChange(t),this.previousSelectedValues=t)}})}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=IM(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,s=this.matSelect.panel.nativeElement.scrollTop,r=this.innerSelectSearch.nativeElement.offsetHeight,o=Math.floor((256-r)/t),a=Math.round((s+r)/t)-1;a>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:a+o<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-r))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let t,e=this.innerSelectSearch.nativeElement;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}initMultiSelectedValuesTracking(){this._formControl.valueChanges.pipe(pf(void 0),ff((t,e)=>({currentValue:e,previousValue:t.currentValue}),{currentValue:void 0,previousValue:void 0}),G_(this._onDestroy)).subscribe(t=>{const e=this._options?this._options.toArray():[];this.matSelect.multiple&&!t.previousValue&&(this.previousSelectedValues=e.filter(t=>t.selected).map(t=>t.value))})}getOptionsLengthOffset(){return this.matOption?1:0}};return t.\u0275fac=function(e){return new(e||t)(Lo(KD),Lo(Wr),Lo(Bb),Lo(PM,8),Lo(sw),Lo(Rk,8))},t.\u0275cmp=de({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){var n;1&t&&nu(i,_Y,!0),2&t&&Zc(n=ou())&&(e.clearIcon=n.first)},viewQuery:function(t,e){var i;1&t&&(tu(oY,!0,Ha),tu(aY,!0,Ha)),2&t&&(Zc(i=ou())&&(e.searchSelectInput=i.first),Zc(i=ou())&&(e.innerSelectSearch=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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"},outputs:{toggleAll:"toggleAll"},features:[Ia([{provide:Pk,useExisting:vt(()=>bY),multi:!0}])],ngContentSelectors:mY,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",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&($o(fY),Io(0,"input",0),Oo(1,"div",1,2),Eo(3,cY,1,5,"mat-checkbox",3),Oo(4,"input",4,5),Yo("keydown",(function(t){return e._handleKeydown(t)}))("keyup",(function(t){return e._handleKeyup(t)}))("blur",(function(){return e.onBlur()})),Po(),Eo(6,uY,1,0,"mat-spinner",6),Eo(7,dY,4,2,"button",7),Jo(8),Po(),Eo(9,pY,2,1,"div",8),Ic(10,"async")),2&t&&(vs(1),Do("ngClass",Dc(11,gY,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),vs(2),Do("ngIf",e._isToggleAllCheckboxVisible()),vs(1),Do("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),So("aria-label",e.ariaLabel),vs(2),Do("ngIf",e.searching),vs(1),Do("ngIf",e.value&&!e.searching),vs(2),Do("ngIf",Nc(10,9,e._showNoEntriesFound$)))},directives:[ph,bh,Hk,Kk,tx,hR,SD,$x,ZC,wS],pipes:[Oh],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}),t})(),wY=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Qh,Tx,eS,mR,AS,Jx,kD]]}),t})(),AY=(()=>{class t extends lM{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(e){return vY(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const vY=gn(AY),MY={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 CY=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[{provide:iM,useClass:AY},{provide:nM,useValue:MY}],imports:[[Qh,mR,QT,Sx,TO,uO,KC,o_,LP,gP,Jx,yz,AS,eI,eS,kD,Ok,Tx,Hx,CM,rz,sz,nY,ZL,hL,FM,VD,wY,Ub,sC]]}),t})();function SY(t,e){if(1&t&&(Oo(0,"div",5),Oo(1,"mat-icon"),va(2),Po(),Po()),2&t){const t=Go();vs(2),Ma(t.data.icon)}}function TY(t,e){if(1&t&&(Oo(0,"div",6),va(1),Po()),2&t){const t=Go();vs(1),Ca(" ",t.showTimestamp()," ")}}let kY=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new jc,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 t=pC();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(Gz,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))((function(t,e){function r(t){try{a(s.next(t))}catch(i){e(i)}}function o(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(r,o)}a((s=s.apply(i,[])).next())}));var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM),Lo(TS))},t.\u0275cmp=de({type:t,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"],[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(t,e){1&t&&(Oo(0,"div"),Oo(1,"div",0),Yo("click",(function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()})),Eo(2,SY,3,1,"div",1),Oo(3,"div",2),va(4),Ic(5,"translate"),Po(),Eo(6,TY,2,1,"div",3),Oo(7,"div",4),Yo("click",(function(){return e.waiting=!0,e.doAction()})),va(8),Po(),Po(),Po()),2&t&&(Ta("notification ",e.inDialog?"":"mat-elevation-z7",""),ua("error","error"===e.data.type)("success","success"===e.data.type),vs(2),Do("ngIf",null!==e.data.icon),vs(2),Ca(" ",Nc(5,12,e.data.title)," "),vs(2),Do("ngIf",e.inDialog),vs(1),Do("hidden",e.alreadyPressed),vs(1),Ca(" ",e.data.actionText," "))},directives:[bh,wS],pipes:[UC],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}"]}),t})();function EY(t,e){1&t&&(Oo(0,"app-alert"),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function xY(t,e){1&t&&(Oo(0,"th",15),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function LY(t,e){if(1&t&&(Oo(0,"td",16),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.friendlyNameParameter)}}function zY(t,e){1&t&&(Oo(0,"th",15),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function DY(t,e){if(1&t&&(Oo(0,"td",17),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.value)}}function RY(t,e){1&t&&Io(0,"th",15)}function OY(t,e){if(1&t){const t=Ho();Oo(0,"td",18),Oo(1,"button",19),Yo("click",(function(){ii(t);const i=e.$implicit;return Go().changePassword(i.friendlyNameParameter)})),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("disabled",!i.logins.includes(t)),vs(1),Ma(Nc(3,2,Nc(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function PY(t,e){1&t&&Io(0,"tr",20)}function IY(t,e){1&t&&Io(0,"tr",21)}let NY=(()=>{class t{constructor(t,e){this.attributesManagerService=t,this.store=e,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new ZT(t)})}changePassword(t){const e=this.store.get("pwd_reset_base_url");location.href=`${e}?login-namespace=${t}`}}return t.\u0275fac=function(e){return new(e||t)(Lo(vp),Lo(g_))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Eo(4,EY,4,5,"app-alert",1),Oo(5,"div",2),Oo(6,"div",3),Oo(7,"div",4),Oo(8,"table",5),No(9,6),Eo(10,xY,4,5,"th",7),Eo(11,LY,2,1,"td",8),Fo(),No(12,9),Eo(13,zY,4,5,"th",7),Eo(14,DY,2,1,"td",10),Fo(),No(15,11),Eo(16,RY,1,0,"th",7),Eo(17,OY,5,6,"td",12),Fo(),Eo(18,PY,1,0,"tr",13),Eo(19,IY,1,0,"tr",14),Po(),Po(),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,5,Nc(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),vs(3),Do("ngIf",!e.logins.length),vs(4),Do("dataSource",e.dataSource),vs(10),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns))},directives:[bh,ST,AP,RT,xT,kT,FT,jT,aD,PT,NT,ZC,WT,GT],pipes:[UC,cz],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})(),FY=(()=>{class t{constructor(t,e,i,n){this.router=t,this.route=e,this.location=i,this.forceRoute=n}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(t=>{this.router.navigate([t.redirectTo])}):this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wm),Lo(xg),Lo(Sl),Lo(ES))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})(),BY=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=dC(t.attributes,wz.GROUP_SYNC_ENABLED),i=dC(t.attributes,wz.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const n=i.value;if("true"===e.value){const e=dC(t.attributes,wz.GROUP_LAST_SYNC_STATE),i=dC(t.attributes,wz.GROUP_LAST_SYNC_TIMESTAMP),n=e.value,s=i.value;return null!=n&&n.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==s&&s.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(n){const e=dC(t.attributes,wz.GROUP_LAST_STRUCTURE_SYNC_STATE),i=dC(t.attributes,wz.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),n=e.value,s=i.value;return null!=n&&n.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==s&&s.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"groupSyncToolTip",type:t,pure:!0}),t})(),HY=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"";const e=dC(t.attributes,wz.GROUP_SYNC_ENABLED),i=dC(t.attributes,wz.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";const n=i.value;if("true"===e.value){const e=dC(t.attributes,wz.GROUP_LAST_SYNC_STATE),i=dC(t.attributes,wz.GROUP_LAST_SYNC_TIMESTAMP),n=e.value,s=i.value;return null!=n&&n.trim().length>0?"sync_problem":(null!==s&&s.trim(),"sync")}if(n){const e=dC(t.attributes,wz.GROUP_LAST_STRUCTURE_SYNC_STATE),i=dC(t.attributes,wz.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),n=e.value,s=i.value;return null!=n&&n.trim().length>0?"sync_problem":(null!==s&&s.trim(),"sync")}return"sync_disabled"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"groupSyncIcon",type:t,pure:!0}),t})(),qY=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=dC(t.attributes,wz.GROUP_SYNC_ENABLED),i=dC(t.attributes,wz.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const n=i.value;if("true"===e.value){const e=dC(t.attributes,wz.GROUP_LAST_SYNC_STATE),i=dC(t.attributes,wz.GROUP_LAST_SYNC_TIMESTAMP),n=e.value,s=i.value;return null!=n&&n.trim().length>0?"red":null!==s&&s.trim().length>0?"green":""}if(n){const e=dC(t.attributes,wz.GROUP_LAST_STRUCTURE_SYNC_STATE),i=dC(t.attributes,wz.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),n=e.value,s=i.value;return null!=n&&n.trim().length>0?"red":null!==s&&s.trim().length>0?"green":""}return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"groupSyncIconColor",type:t,pure:!0}),t})();function jY(t,e){if(1&t){const t=Ho();Oo(0,"span",5),Ic(1,"translate"),Ic(2,"groupSyncToolTip"),Oo(3,"button",6),Yo("click",(function(){return ii(t),Go(2).onSyncDetail()})),Ic(4,"groupSyncIcon"),Oo(5,"mat-icon"),Ic(6,"groupSyncIconColor"),va(7),Ic(8,"groupSyncIcon"),Po(),Po(),Po()}if(2&t){const t=Go(2);Do("matTooltipPosition","above")("matTooltip",Nc(1,7,Nc(2,9,t.group))),vs(3),Do("disabled","sync_disabled"===Nc(4,11,t.group)),vs(2),la(Nc(6,13,t.group)),vs(2),Ca(" ",Nc(8,15,t.group)," ")}}function YY(t,e){if(1&t){const t=Ho();Oo(0,"span",5),Ic(1,"translate"),Oo(2,"button",6),Yo("click",(function(){return ii(t),Go(2).onMoveGroup()})),Oo(3,"mat-icon"),va(4,"arrow_right_alt"),Po(),Po(),Po()}if(2&t){const t=Go(2);Qo("matTooltip",Nc(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),Do("matTooltipPosition","above"),vs(2),Do("disabled",t.disabled)}}function WY(t,e){if(1&t){const t=Ho();Oo(0,"span",5),Ic(1,"translate"),Oo(2,"button",6),Yo("click",(function(){return ii(t),Go(2).onChangeNameDescription()})),Oo(3,"mat-icon"),va(4,"text_format"),Po(),Po(),Po()}if(2&t){const t=Go(2);Qo("matTooltip",Nc(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),Do("matTooltipPosition","above"),vs(2),Do("disabled",t.disabled)}}function UY(t,e){if(1&t&&(Oo(0,"div",2),Oo(1,"button",3),Ic(2,"translate"),Oo(3,"mat-icon"),va(4," file_copy "),Po(),Po(),Eo(5,jY,9,17,"span",4),Eo(6,YY,5,5,"span",4),Eo(7,WY,5,5,"span",4),Po()),2&t){const t=Go();vs(1),Qo("matTooltip",Nc(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),Do("cdkCopyToClipboard",t.group.name)("matTooltipPosition","above"),vs(4),Do("ngIf",t.syncAuth),vs(1),Do("ngIf",t.moveAuth),vs(1),Do("ngIf",t.editAuth)}}function KY(t,e){if(1&t){const t=Ho();Oo(0,"button",11),Yo("click",(function(){return ii(t),Go(2).onSyncDetail()})),Ic(1,"groupSyncIcon"),Oo(2,"mat-icon"),Ic(3,"groupSyncIconColor"),va(4),Ic(5,"groupSyncIcon"),Po(),Oo(6,"span"),va(7),Ic(8,"translate"),Ic(9,"groupSyncToolTip"),Po(),Po()}if(2&t){const t=Go(2);Do("disabled","sync_disabled"===Nc(1,6,t.group)),vs(2),la(Nc(3,8,t.group)),vs(2),Ca(" ",Nc(5,10,t.group)," "),vs(3),Ma(Nc(8,12,Nc(9,14,t.group)))}}function VY(t,e){if(1&t){const t=Ho();Oo(0,"button",11),Yo("click",(function(){return ii(t),Go(2).onMoveGroup()})),Oo(1,"mat-icon"),va(2,"arrow_right_alt"),Po(),Oo(3,"span"),va(4),Ic(5,"translate"),Po(),Po()}2&t&&(Do("disabled",Go(2).disabled),vs(4),Ma(Nc(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")))}function GY(t,e){if(1&t){const t=Ho();Oo(0,"button",11),Yo("click",(function(){return ii(t),Go(2).onChangeNameDescription()})),Oo(1,"mat-icon"),va(2,"text_format"),Po(),Oo(3,"span"),va(4),Ic(5,"translate"),Po(),Po()}2&t&&(Do("disabled",Go(2).disabled),vs(4),Ma(Nc(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")))}function XY(t,e){if(1&t&&(Oo(0,"div"),Oo(1,"button",7),Oo(2,"mat-icon"),va(3,"more_vert"),Po(),Po(),Oo(4,"mat-menu",null,8),Oo(6,"button",9),Oo(7,"mat-icon"),va(8," file_copy "),Po(),Oo(9,"span"),va(10),Ic(11,"translate"),Po(),Po(),Eo(12,KY,10,16,"button",10),Eo(13,VY,6,4,"button",10),Eo(14,GY,6,4,"button",10),Po(),Po()),2&t){const t=xo(5),e=Go();vs(1),Do("mat-menu-trigger-for",t),vs(5),Do("cdkCopyToClipboard",e.group.name),vs(4),Ma(Nc(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),vs(2),Do("ngIf",e.syncAuth),vs(1),Do("ngIf",e.moveAuth),vs(1),Do("ngIf",e.editAuth)}}let $Y=(()=>{class t{constructor(t){this.authResolver=t,this.disabled=!1,this.moveGroup=new jc,this.syncGroup=new jc,this.changeNameDescription=new jc}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 t.\u0275fac=function(e){return new(e||t)(Lo(Ip))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Eo(0,UY,8,8,"div",0),Eo(1,XY,15,8,"div",1)),2&t&&(Do("ngIf",e.displayButtons),vs(1),Do("ngIf",!e.displayButtons))},directives:[bh,ZC,nz,SD,wS,ZP,XP,YP],pipes:[UC,BY,HY,qY],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t})(),JY=(()=>{class t{transform(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"groupExpiration",type:t,pure:!0}),t})();function QY(t,e){if(1&t){const t=Ho();Oo(0,"mat-checkbox",24),Yo("change",(function(e){ii(t);const i=Go(2);return e?i.masterToggle():null})),Po()}if(2&t){const t=Go(2);Do("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function ZY(t,e){if(1&t&&(Oo(0,"th",22),Eo(1,QY,1,3,"mat-checkbox",23),Po()),2&t){const t=Go();vs(1),Do("ngIf",!t.disableHeadCheckbox)}}function tW(t,e){if(1&t){const t=Ho();Oo(0,"td",25),Oo(1,"span",26),Ic(2,"translate"),Oo(3,"mat-checkbox",27),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.itemSelectionToggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Po(),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Qo("matTooltip",Nc(2,6,i.getCheckboxTooltipMessage(t))),Do("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),vs(2),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","members"===t.name&&i.disableMembers||i.disableSelect(t))}}function eW(t,e){1&t&&(Oo(0,"th",28),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function iW(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.id)}}function nW(t,e){1&t&&Io(0,"th",22)}function sW(t,e){if(1&t&&(Oo(0,"td",29),Io(1,"perun-web-apps-recently-viewed-icon",30),Po()),2&t){const t=e.$implicit,i=Go();vs(1),Do("recentIds",i.recentIds)("id",t.id)}}function rW(t,e){1&t&&(Oo(0,"th",28),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function oW(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit,i=Go();vs(1),Ma(i.voNames.get(t.voId))}}function aW(t,e){1&t&&(Oo(0,"th",28),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function cW(t,e){if(1&t&&(Oo(0,"td",29),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.name)}}function uW(t,e){1&t&&(Oo(0,"th",28),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function lW(t,e){if(1&t&&(Oo(0,"td",31),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.description)}}function hW(t,e){1&t&&(Oo(0,"th",28),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function dW(t,e){if(1&t){const t=Ho();Oo(0,"button",33),Yo("click",(function(){ii(t);const e=Go().$implicit;return Go().changeExpiration(e)}))("mouseenter",(function(){return ii(t),Go(2).disabledRouting=!0}))("mouseleave",(function(){ii(t);const e=Go(2);return e.disabledRouting=e.disableRouting})),Oo(1,"mat-icon"),va(2,"edit"),Po(),Po()}}function pW(t,e){if(1&t&&(Oo(0,"td",31),va(1),Ic(2,"parseDate"),Ic(3,"groupExpiration"),Eo(4,dW,3,0,"button",32),Po()),2&t){const t=e.$implicit,i=Go();vs(1),Ca(" ",Nc(2,2,Nc(3,4,t))," "),vs(3),Do("ngIf",i.canManageGroup(t))}}function fW(t,e){1&t&&Io(0,"th",22)}function gW(t,e){if(1&t){const t=Ho();Oo(0,"td",29),Oo(1,"perun-web-apps-group-menu",34),Yo("mouseenter",(function(){return ii(t),Go().disabledRouting=!0}))("mouseleave",(function(){ii(t);const e=Go();return e.disabledRouting=e.disableRouting}))("moveGroup",(function(){ii(t);const i=e.$implicit;return Go().onMoveGroup(i)}))("changeNameDescription",(function(){ii(t);const i=e.$implicit;return Go().onChangeNameDescription(i)}))("syncGroup",(function(){ii(t);const i=e.$implicit;return Go().onSyncDetail(i)})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("disabled","members"===t.name)("displayButtons",i.displayButtons)("group",t)}}function mW(t,e){1&t&&Io(0,"tr",35)}const _W=function(t,e){return["/organizations",t,"groups",e]};function bW(t,e){if(1&t&&Io(0,"tr",36),2&t){const t=e.$implicit,i=Go();ua("cursor-pointer",!i.disableRouting&&!i.groupsToDisable.has(t.id))("disable-outline",i.disabledRouting||i.groupsToDisable.has(t.id)),Do("routerLink",i.disabledRouting||i.groupsToDisable.has(t.id)?null:Dc(6,_W,t.voId,t.id))("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.groupsToDisable.has(t.id)?null:Dc(9,_W,t.voId,t.id))}}function yW(t,e){1&t&&(Oo(0,"app-alert",37),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function wW(t,e){1&t&&(Oo(0,"app-alert",37),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let AW=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.authResolver=e,this.voService=i,this.tableCheckbox=n,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new jc,this.groups=[],this.selection=new xb(!0,[]),this.hasMembersGroup=!1,this.hideColumns=[],this.groupsToDisable=new Set,this.pageSize=10,this.filter="",this.disableRouting=!1,this.pageSizeOptions=oC,this.recentIds=[],this.page=new jc,this.refreshTable=new jc,this.displayedColumns=["select","id","recent","vo","name","description","expiration","menu"],this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=t=>!("members"===t.name&&this.disableMembers||this.disableSelect(t))}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnInit(){this.shouldHideButtons()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.dataSource=new ZT(this.groups),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const t of this.groups)if("members"===t.name)return!0;return!1}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return this.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":return(n=_C(t))&&"never"!==n.toLowerCase()?Xl(n,"d.M.yyyy","en"):n;case"recent":return"";default:return t[e]}var n}getSortDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return this.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":const n=_C(t);return n&&"never"!==n.toLowerCase()?Xl(n,"yyyy.MM.dd","en"):n;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(t){return this.disableGroups&&(this.groupsToDisable.has(t.id)||this.isSynchronized(t))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.dataSource.paginator=this.paginator}onMoveGroup(t){this.moveGroup.emit(t)}onSyncDetail(t){const e=pC();e.data={groupId:t.id,theme:this.theme},this.dialog.open(qz,e)}onChangeNameDescription(t){const e=pC();e.data={theme:"group-theme",group:t,dialogType:Pz.GROUP},this.dialog.open(Iz,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}pageChanged(t){this.page.emit(t)}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[e]),!0):"group-relations"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[this.parentGroup,e]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,e]),!0):"member-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[e]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,e]),!0):void 0}itemSelectionToggle(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}isSynchronized(t){return!!t.attributes&&t.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}getCheckboxTooltipMessage(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}updateVoNames(){this.hideColumns.includes("vo")||this.groups.forEach(t=>{this.voIds.has(t.voId)||(this.voIds.add(t.voId),this.voService.getVoById(t.voId).subscribe(e=>{this.voNames.set(t.voId,e.name)}))})}changeExpiration(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),i=pC();i.width="400px",i.data={memberId:this.memberId,groupId:t.id,expirationAttr:e,mode:"group"},this.dialog.open(Mz,i).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}canManageGroup(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM),Lo(Ip),Lo(zp),Lo(xS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),tu(fP,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.matPaginator=i.first))},hostBindings:function(t,e){1&t&&Yo("resize",(function(t){return e.shouldHideButtons(t)}),!1,Gi)},inputs:{theme:"theme",groups:"groups",selection:"selection",hideColumns:"hideColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisable:"groupsToDisable",pageSize:"pageSize",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds"},outputs:{moveGroup:"moveGroup",page:"page",refreshTable:"refreshTable"},features:[ze],decls:34,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","name"],["matColumnDef","description"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-cell","",1,"wrap-content"],["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,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,ZY,2,1,"th",6),Eo(7,tW,4,8,"td",7),Fo(),No(8,8),Eo(9,eW,3,3,"th",9),Eo(10,iW,2,1,"td",7),Fo(),No(11,10),Eo(12,nW,1,0,"th",6),Eo(13,sW,2,2,"td",11),Fo(),No(14,12),Eo(15,rW,3,3,"th",9),Eo(16,oW,2,1,"td",7),Fo(),No(17,13),Eo(18,aW,3,3,"th",9),Eo(19,cW,2,1,"td",11),Fo(),No(20,14),Eo(21,uW,3,3,"th",9),Eo(22,lW,2,1,"td",15),Fo(),No(23,16),Eo(24,hW,3,3,"th",9),Eo(25,pW,5,6,"td",15),Fo(),No(26,17),Eo(27,fW,1,0,"th",6),Eo(28,gW,2,3,"td",11),Fo(),Eo(29,mW,1,0,"tr",18),Eo(30,bW,1,12,"tr",19),Po(),Po(),Oo(31,"mat-paginator",20),Yo("page",(function(t){return e.pageChanged(t)})),Po(),Po(),Po(),Eo(32,yW,3,3,"app-alert",21),Eo(33,wW,3,3,"app-alert",21)),2&t&&(Do("hidden",0===e.groups.length||0===e.dataSource.filteredData.length),vs(4),Do("dataSource",e.dataSource),vs(25),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.groups.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0===e.groups.length),vs(1),Do("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,hR,NT,SD,xP,WN,ZC,wS,$Y,WT,GT,Um,rI,aD],pipes:[UC,mz,JY],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})();const vW=["scrollViewport"];function MW(t,e){if(1&t){const t=Ho();Oo(0,"mat-checkbox",19),Yo("change",(function(){ii(t);const e=Go().$implicit;return Go(2).itemSelectionToggle(e)})),Po()}if(2&t){const t=Go().$implicit,e=Go(2);Do("disabled","members"===t.fullName)("checked",e.selection.isSelected(t))("indeterminate",e.descendantsPartiallySelected(t))}}function CW(t,e){if(1&t&&(Oo(0,"mat-icon",20),va(1),Po()),2&t){const t=Go().$implicit,e=Go(2);vs(1),Ca(" ",e.treeControl.isExpanded(t)?"expand_more":"chevron_right"," ")}}function SW(t,e){if(1&t&&(Oo(0,"span",21),va(1),Po()),2&t){const t=Go().$implicit;vs(1),Ca(" #",t.id," ")}}const TW=function(t,e){return["/organizations",t,"groups",e]};function kW(t,e){if(1&t){const t=Ho();No(0),Oo(1,"div",6),Eo(2,MW,1,3,"mat-checkbox",7),Oo(3,"div",8),Oo(4,"button",9),Yo("mouseenter",(function(){return ii(t),Go(2).disableRouting=!0}))("mouseleave",(function(){return ii(t),Go(2).disableRouting=!1}))("click",(function(){ii(t);const i=e.$implicit;return Go(2).treeControl.toggle(i)})),Eo(5,CW,2,1,"mat-icon",10),Po(),Oo(6,"div",11),Oo(7,"span",12),va(8),Po(),Eo(9,SW,2,1,"span",13),Po(),Oo(10,"div",14,15),Oo(12,"span",16),va(13),Po(),Po(),Po(),Oo(14,"div",17),Oo(15,"perun-web-apps-group-menu",18),Yo("moveGroup",(function(){ii(t);const i=e.$implicit;return Go(2).onMoveGroup(i)}))("syncGroup",(function(){ii(t);const i=e.$implicit;return Go(2).onSyncDetail(i)}))("changeNameDescription",(function(){ii(t);const i=e.$implicit;return Go(2).onChangeNameDescription(i)})),Po(),Po(),Po(),Fo()}if(2&t){const t=e.$implicit,i=Go(2);vs(1),ca("padding-left",24*t.level+"px"),vs(1),Do("ngIf",!i.hideCheckbox),vs(1),Do("routerLink",i.disableRouting?null:Dc(15,TW,t.voId,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:Dc(18,TW,t.voId,t.id)),vs(1),Do("disabled",!t.expandable),So("aria-label","toggle "+t.name),vs(1),Do("ngIf",t.expandable),vs(3),Ca(" ",t.name," "),vs(1),Do("ngIf",i.authResolver.isPerunAdmin()),vs(3),Qo("matTooltip",t.description),vs(1),Ca(" ",t.description," "),vs(2),Do("disabled","members"===t.fullName)("displayButtons",i.displayButtons)("group",t)}}const EW=function(t){return{height:t}};function xW(t,e){if(1&t&&(Oo(0,"div",2),Oo(1,"cdk-virtual-scroll-viewport",3,4),Eo(3,kW,16,21,"ng-container",5),Po(),Po()),2&t){const t=Go();vs(1),Do("minBufferPx",240)("maxBufferPx",480)("ngStyle",zc(4,EW,t.getTreeViewHeight())),vs(2),Do("cdkVirtualForOf",t.dataSource)}}function LW(t,e){1&t&&(Oo(0,"app-alert",22),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let zW=(()=>{class t{constructor(t,e,i){this.cd=t,this.dialog=e,this.authResolver=i,this.transformer=(t,e)=>({expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}),this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new jc,this.refreshTable=new jc,this.expandAll=!1,this.disableRouting=!1,this.selection=new xb(!0,[]),this.hideCheckbox=!1,this.treeControl=new tY(t=>t.level,t=>t.expandable),this.treeFlattener=new sY(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new rY(this.treeControl,this.treeFlattener),this.hasChild=(t,e)=>e.expandable,this.getLevel=t=>t.level}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(t){if(this.expandAll){this.filteredGroups=this.groups.filter(t=>{var e,i;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(i=t.description)||void 0===i?void 0:i.toLowerCase().includes(this.filterValue.toLowerCase()))||t.id.toString().includes(this.filterValue.toLowerCase())});for(const t of this.filteredGroups)t.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat(hC(t.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(t){const e=pC();e.data={groupId:t.id,theme:this.theme},this.dialog.open(qz,e)}onChangeNameDescription(t){const e=pC();e.data={theme:"group-theme",group:t,dialogType:Pz.GROUP},this.dialog.open(Iz,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}createGroupTrees(t){const e=new Map;for(const s of t)e.set(s.id,new Pd(s));const i=new Set;e.forEach((t,e,n)=>{const s=n.get(t.parentGroupId);void 0!==s&&(s.addChild(t),n.set(t.parentGroupId,s)),null!==t.parentGroupId&&void 0===s&&i.add(t.id)});const n=[];e.forEach(t=>{(null===t.parentGroupId||i.has(t.id))&&n.push(t)}),this.dataSource.data=n,this.cd.detectChanges()}getParentNode(t){const e=this.getLevel(t);if(e<1)return null;for(let i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){const t=this.treeControl.dataNodes[i];if(this.getLevel(t)this.selection.isSelected(t));e&&!i&&this.selection.deselect(t)}checkAllParentsSelection(t){let e=this.getParentNode(t);for(;e;)this.checkRootNodeSelection(e),e=this.getParentNode(e);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(t=>this.selection.isSelected(t))&&!this.selection.isSelected(t)}itemSelectionToggle(t){this.selection.toggle(t);const e=this.treeControl.getDescendants(t);this.selection.isSelected(t)?this.selection.select(...e):this.selection.deselect(...e),e.every(t=>this.selection.isSelected(t)),this.checkAllParentsSelection(t)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,e]):(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[e]),!0)}onMoveGroup(t){this.moveGroup.emit(t)}getTreeViewHeight(){let t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());let e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wr),Lo(JM),Lo(Ip))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){var i;1&t&&eu(vW,!0),2&t&&Zc(i=ou())&&(e.scrollViewport=i.first)},hostBindings:function(t,e){1&t&&Yo("resize",(function(t){return e.shouldHideButtons(t)}),!1,Gi)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[ze],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",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["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(t,e){1&t&&(Eo(0,xW,4,6,"div",0),Eo(1,LW,3,3,"app-alert",1)),2&t&&(Do("ngIf",0!==e.filteredGroups.length),vs(1),Do("ngIf",0===e.filteredGroups.length))},directives:[bh,qb,Ib,kh,Yb,Um,rI,ZC,SD,$Y,hR,wS,aD],pipes:[UC],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}"]}),t})(),DW=(()=>{class t{constructor(){this.expiration="never",this.expirationControl=new FE(null),this.datePicker=new jc}ngOnInit(){const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue(Xl(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=Xl(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue(Xl(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,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(t,e){if(1&t){const t=Ho();Oo(0,"mat-radio-group",0),Yo("ngModelChange",(function(t){return e.expiration=t}))("change",(function(){return e.emitDate()})),Oo(1,"mat-radio-button",1),va(2),Ic(3,"translate"),Po(),Oo(4,"mat-radio-button",2),Oo(5,"mat-form-field",3),Yo("click",(function(){return ii(t),xo(12).open()})),Oo(6,"mat-label"),va(7),Ic(8,"translate"),Po(),Oo(9,"input",4),Yo("dateChange",(function(){return e.setExpiration()})),Po(),Io(10,"mat-datepicker-toggle",5),Io(11,"mat-datepicker",6,7),Po(),Po(),Po()}if(2&t){const t=xo(12);Do("ngModel",e.expiration),vs(2),Ca(" ",Nc(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),vs(2),Qo("value",e.expirationControl.value),vs(3),Ma(Nc(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),vs(2),Do("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",t),vs(1),Do("for",t)("disabled",!1),vs(1),Do("disabled",!1)}},directives:[rL,Kk,$E,uL,Rk,Ck,Bx,Hk,$L,tx,QL,kk,KL],pipes:[UC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function RW(t,e){1&t&&(Oo(0,"mat-error"),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let OW=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+jz.a}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(YC),Lo(MS),Lo(kp),Lo(g_))},t.\u0275cmp=de({type:t,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(t,e){if(1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Po(),Oo(3,"div",1),Oo(4,"mat-form-field"),Oo(5,"mat-label"),va(6),Ic(7,"translate"),Po(),Oo(8,"input",2,3),Yo("ngModelChange",(function(t){return e.subject=t})),Po(),Eo(10,RW,3,3,"mat-error",4),Po(),Oo(11,"mat-form-field"),Oo(12,"mat-label"),va(13),Ic(14,"translate"),Po(),Oo(15,"textarea",5),Yo("ngModelChange",(function(t){return e.message=t})),Ic(16,"translate"),va(17," "),Po(),Oo(18,"mat-hint"),va(19),Ic(20,"translate"),Po(),Po(),Po(),Oo(21,"div",6),Oo(22,"div",7),Oo(23,"button",8),Yo("click",(function(){return e.close()})),va(24),Ic(25,"translate"),Po(),Oo(26,"button",9),Yo("click",(function(){return e.sendBugReport()})),va(27),Ic(28,"translate"),Po(),Po(),Po()),2&t){const t=xo(9);vs(1),Ma(Nc(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),vs(5),Ma(Nc(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),vs(2),Do("ngModel",e.subject),vs(2),Do("ngIf",t.invalid),vs(3),Ma(Nc(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),vs(2),Qo("placeholder",Nc(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),Do("ngModel",e.message),vs(4),Ma(Nc(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),vs(5),Ca(" ",Nc(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),vs(2),Do("disabled",t.invalid),vs(1),Ca(" ",Nc(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[tC,eC,Rk,Ck,Bx,Hk,dx,Kk,$E,bh,Mk,iC,ZC,bk],pipes:[UC],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function PW(t,e){if(1&t&&(Oo(0,"span"),Oo(1,"a",13),va(2),Po(),va(3,", "),Po()),2&t){const t=e.$implicit;vs(1),Do("href",t.webpage,ns),vs(1),Ca(" ",t.name,"")}}const IW=function(t){return{background:t}},NW=function(t){return{color:t}};let FW=(()=>{class t{constructor(t,e,i){this.storeService=t,this.dialog=e,this.store=i,this.perunwebpage="",this.perunTeamWebpage="",this.privacyPolicy="",this.userDocumentationWebpage="",this.administratorDocumentationWebpage="",this.supportMail="",this.version="",this.copyright=[],this.backgroundColor=this.store.get("theme","footer_bg_color"),this.footerCopyrightTextColor=this.store.get("theme","footer_copyright_text_color"),this.linksTextColor=this.store.get("theme","footer_links_text_color"),this.footerHeadersTextColor=this.store.get("theme","footer_headers_text_color"),this.githubRepository=this.storeService.get("footer_github_releases"),this.currentYear=(new Date).getFullYear()}ngOnInit(){this.perunwebpage=this.storeService.get("footer_perun_web_web"),this.perunTeamWebpage=this.storeService.get("footer_perun_team_web"),this.privacyPolicy=this.storeService.get("footer_privacy_policy_web"),this.userDocumentationWebpage=this.storeService.get("footer_users_documentation_web"),this.administratorDocumentationWebpage=this.storeService.get("footer_administrator_documentation"),this.supportMail=this.storeService.get("footer_support_mail"),this.version=jz.a,this.copyright=this.storeService.get("footer_copyright")}openBugReportDialog(){const t=pC();t.width="550px",this.dialog.open(OW,t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(JM),Lo(g_))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-footer"]],decls:53,vars:73,consts:[[1,"font-small",3,"ngStyle"],[1,"container-fluid","text-center","text-md-left","pr-xl-5","pl-xl-5"],[1,"row"],[1,"col-md-4","mx-auto","footer-col"],[1,"text-uppercase","font-weight-bold",3,"ngStyle"],[1,"list-unstyled"],["target","_blank",3,"href","ngStyle"],["id","clickable",3,"ngStyle","click"],[3,"ngStyle"],[1,"material-icons","align-bottom"],[1,"my-0"],["id","copyright",1,"footer-copyright","text-center","py-2",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"]],template:function(t,e){1&t&&(Oo(0,"footer",0),Oo(1,"div",1),Oo(2,"div",2),Oo(3,"div",3),Oo(4,"h6",4),va(5),Ic(6,"translate"),Po(),Oo(7,"ul",5),Oo(8,"li"),Oo(9,"a",6),va(10),Ic(11,"translate"),Po(),Po(),Oo(12,"li"),Oo(13,"a",6),va(14),Ic(15,"translate"),Po(),Po(),Oo(16,"li"),Oo(17,"a",6),va(18),Ic(19,"translate"),Po(),Po(),Po(),Po(),Oo(20,"div",3),Oo(21,"h6",4),va(22),Ic(23,"translate"),Po(),Oo(24,"ul",5),Oo(25,"li"),Oo(26,"a",6),va(27),Ic(28,"translate"),Po(),Po(),Oo(29,"li"),Oo(30,"a",6),va(31),Ic(32,"translate"),Po(),Po(),Oo(33,"li"),Oo(34,"span",7),Yo("click",(function(){return e.openBugReportDialog()})),va(35),Ic(36,"translate"),Po(),Po(),Po(),Po(),Oo(37,"div",3),Oo(38,"h6",4),va(39),Ic(40,"translate"),Po(),Oo(41,"ul",5),Oo(42,"li",8),Oo(43,"i",9),va(44," mail "),Po(),va(45),Po(),Po(),Po(),Po(),Po(),Io(46,"hr",10),Oo(47,"div",11),va(48),Eo(49,PW,4,2,"span",12),va(50," Version "),Oo(51,"a",13),va(52),Po(),Po(),Po()),2&t&&(Do("ngStyle",zc(49,IW,e.backgroundColor)),vs(4),Do("ngStyle",zc(51,NW,e.footerHeadersTextColor)),vs(1),Ca(" ",Nc(6,31,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.ABOUT_PERUN")," "),vs(4),Do("href",e.perunwebpage,ns)("ngStyle",zc(53,NW,e.linksTextColor)),vs(1),Ma(Nc(11,33,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PERUN_WEB")),vs(3),Do("href",e.perunTeamWebpage,ns)("ngStyle",zc(55,NW,e.linksTextColor)),vs(1),Ma(Nc(15,35,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PERUN_TEAM")),vs(3),Do("href",e.privacyPolicy,ns)("ngStyle",zc(57,NW,e.linksTextColor)),vs(1),Ma(Nc(19,37,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PRIVACY_POLICY")),vs(3),Do("ngStyle",zc(59,NW,e.footerHeadersTextColor)),vs(1),Ca(" ",Nc(23,39,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.HELP")," "),vs(4),Do("href",e.userDocumentationWebpage,ns)("ngStyle",zc(61,NW,e.linksTextColor)),vs(1),Ma(Nc(28,41,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.USER_DOCUMENTATION")),vs(3),Do("href",e.administratorDocumentationWebpage,ns)("ngStyle",zc(63,NW,e.linksTextColor)),vs(1),Ma(Nc(32,43,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.ADMINISTRATOR_DOCUMENTATION")),vs(3),Do("ngStyle",zc(65,NW,e.linksTextColor)),vs(1),Ma(Nc(36,45,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.REPORT_ISSUE")),vs(3),Do("ngStyle",zc(67,NW,e.footerHeadersTextColor)),vs(1),Ca(" ",Nc(40,47,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.SUPPORT")," "),vs(3),Do("ngStyle",zc(69,NW,e.linksTextColor)),vs(3),Ca(" ",e.supportMail," "),vs(2),Do("ngStyle",zc(71,NW,e.footerCopyrightTextColor)),vs(1),Ca(" \xa9 ",e.currentYear," Copyright: "),vs(1),Do("ngForOf",e.copyright),vs(2),Do("href",e.githubRepository,ns),vs(1),Ma(e.version))},directives:[kh,mh],pipes:[UC],styles:["footer[_ngcontent-%COMP%]{height:100%}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap}a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}li[_ngcontent-%COMP%]{color:#e0e0e0}#clickable[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();var BW=i("OIgT");const HW=["scrollViewport"];function qW(t,e){if(1&t&&(Oo(0,"mat-option",7),va(1),Oo(2,"span",8),va(3),Po(),Po()),2&t){const t=Go();Do("value",null==t.entitiesCtrl?null:t.entitiesCtrl.value),vs(1),Ca(" ",t.mainTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)," "),vs(2),Ma(t.secondaryTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value))}}function jW(t,e){if(1&t&&(Oo(0,"mat-option",9),va(1),Oo(2,"span",8),va(3),Po(),Po()),2&t){const t=e.$implicit,i=Go();Do("value",t),vs(1),Ca(" ",i.mainTextFunction(t)," "),vs(2),Ma(i.secondaryTextFunction(t))}}let YW=(()=>{class t{constructor(t){this.cd=t,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.entitySelected=new jc,this.entitiesCtrl=new FE,this.entityFilterCtrl=new FE,this.filteredEntities=new cb(1),this.entitiesLen=0,this._onDestroy=new M,this.mainTextFunction=t=>Object(BW.stringify)(t),this.secondaryTextFunction=t=>"#"+t.id}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(t=>this.entitySelected.emit(t)),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(t=>this.entitiesLen=t.length),this.entityFilterCtrl.valueChanges.pipe(G_(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}ngOnChanges(t){t.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}filterEntites(){if(!this.entities)return;let t=this.entityFilterCtrl.value;if(!t)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();t=this.normalize(t),this.filteredEntities.next(this.entities.filter(e=>this.normalize(this.searchFunction(e)).indexOf(t)>=0)),this.cd.detectChanges()}normalize(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(t){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wr))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){var i;1&t&&eu(HW,!0),2&t&&Zc(i=ou())&&(e.scrollViewport=i.first)},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[ze],decls:9,vars:14,consts:[[1,"w-100"],[3,"placeholder","formControl","openedChange"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted","muted"],[3,"value"]],template:function(t,e){1&t&&(Oo(0,"mat-form-field",0),Oo(1,"mat-select",1),Yo("openedChange",(function(t){return e.openChange(t)})),Oo(2,"mat-option"),Io(3,"ngx-mat-select-search",2),Po(),Eo(4,qW,4,3,"mat-option",3),Oo(5,"cdk-virtual-scroll-viewport",4,5),Eo(7,jW,4,3,"mat-option",6),Ic(8,"async"),Po(),Po(),Po()),2&t&&(vs(1),Qo("placeholder",e.selectPlaceholder),Do("formControl",e.entitiesCtrl),vs(2),Qo("placeholderLabel",e.findPlaceholder),Qo("noEntriesFoundLabel",e.noEntriesText),Do("clearSearchInput",!1)("formControl",e.entityFilterCtrl),vs(1),Do("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),vs(1),ca("height",e.getViewportHeight(),"px"),Do("minBufferPx",240)("maxBufferPx",480),vs(2),Do("cdkVirtualForOf",Nc(8,12,e.filteredEntities)))},directives:[Rk,KD,Kk,tx,PM,yY,bh,qb,Ib,Yb],pipes:[Oh],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}"]}),t})(),WW=(()=>{class t{constructor(){this.groupSelected=new jc,this.disableAutoSelect=!1,this.nameFunction=t=>t.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect"},outputs:{groupSelected:"groupSelected"},decls:4,vars:13,consts:[[1,"long-input",3,"entities","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(Oo(0,"perun-web-apps-entity-search-select",0),Yo("entitySelected",(function(t){return e.groupSelected.emit(t)})),Ic(1,"translate"),Ic(2,"translate"),Ic(3,"translate"),Po()),2&t&&Do("entities",e.groups)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",Nc(1,7,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",Nc(2,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",Nc(3,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))},directives:[YW],pipes:[UC],styles:[""]}),t})();function UW(t,e){if(1&t){const t=Ho();Oo(0,"mat-checkbox",7),Yo("change",(function(){return ii(t),Go().emitAsSubGroup()}))("ngModelChange",(function(e){return ii(t),Go().asSubgroup=e})),va(1),Ic(2,"translate"),Po()}if(2&t){const t=Go();Do("labelPosition","before")("ngModel",t.asSubgroup),vs(1),Ca(" ",Nc(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function KW(t,e){if(1&t){const t=Ho();Oo(0,"perun-web-apps-group-search-select",8),Yo("groupSelected",(function(e){return ii(t),Go().emitParentGroup(e)})),Po()}if(2&t){const t=Go();Do("disableAutoSelect",!0)("groups",t.voGroups)}}let VW=(()=>{class t{constructor(t){this.store=t,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.nameChanged=new jc,this.descriptionChanged=new jc,this.parentGroupChanged=new jc,this.asSubgroupChanged=new jc}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new FE("",[Zk.required,Zk.pattern(this.secondaryRegex?this.secondaryRegex:""),Zk.pattern(".*[\\S]+.*")]),this.descriptionControl=new FE("",[Zk.required,Zk.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(t=>"members"!==t.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"div",0),Oo(1,"mat-form-field",1),Yo("keyup",(function(){return e.emitName()})),Oo(2,"label",2),Io(3,"input",3),Ic(4,"translate"),Po(),Oo(5,"mat-error"),va(6),Ic(7,"translate"),Po(),Po(),Oo(8,"mat-form-field",4),Yo("keyup",(function(){return e.emitDescription()})),Oo(9,"label",2),Io(10,"textarea",3),Ic(11,"translate"),Po(),Oo(12,"mat-error"),va(13),Ic(14,"translate"),Po(),Po(),Eo(15,UW,3,5,"mat-checkbox",5),Eo(16,KW,1,2,"perun-web-apps-group-search-select",6),Po()),2&t&&(vs(3),Qo("placeholder",Nc(4,8,"DIALOGS.CREATE_GROUP.NAME")),Do("formControl",e.nameControl),vs(3),Ca(" ",e.invalidNameMessage.length?e.invalidNameMessage:Nc(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),vs(4),Qo("placeholder",Nc(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),Do("formControl",e.descriptionControl),vs(3),Ca(" ",Nc(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),vs(2),Do("ngIf",e.isNotSubGroup),vs(1),Do("ngIf",e.asSubgroup))},directives:[Rk,Bx,Hk,dx,Kk,tx,bk,bh,hR,$E,WW],pipes:[UC],styles:[""]}),t})();const GW={};let XW=(()=>{class t{constructor(t){this.translate=t,this.item=null,this.itemSelected=new jc,this.nameFunction=t=>t===GW?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname,this.secondaryFunction=t=>t===GW?"":t.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id,this.searchFunction=t=>t===GW?"":t.shortname+t.id}}return t.\u0275fac=function(e){return new(e||t)(Lo(YC))},t.\u0275cmp=de({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(t,e){1&t&&(Oo(0,"perun-web-apps-entity-search-select",0),Yo("entitySelected",(function(t){return e.itemSelected.emit(t)})),Ic(1,"translate"),Ic(2,"translate"),Ic(3,"translate"),Po()),2&t&&Do("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",Nc(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",Nc(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",Nc(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[YW],pipes:[UC],styles:[""]}),t})();function $W(t,e){1&t&&(Oo(0,"app-alert",11),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function JW(t,e){1&t&&(Oo(0,"app-alert",12),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function QW(t,e){if(1&t&&(Oo(0,"div",13),Io(1,"img",14),Po()),2&t){const t=Go();vs(1),Do("src",t.newImage,ns)}}function ZW(t,e){1&t&&(Oo(0,"app-alert",11),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let tU=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.store=n,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(t){const e=t.dataTransfer?t.dataTransfer.files[0]:t.target.files[0],i=new FileReader;e.type.match(/image-*/)?(i.onload=this._handleReaderLoaded.bind(this),i.readAsDataURL(e)):alert("invalid format")}_handleReaderLoaded(t){const e=t.target;this.imgTooLong=e.result.length>=5120,this.newImage=e.result}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 t(t,e,i,n){n.beginPath(),n.rect(20*t,20*e,20,20),n.fillStyle="rgb("+i.join(",")+")",n.fill()}this.newImage=function(){const e=function(){const t=document.createElement("canvas");t.width=100,t.height=100;const e=t.getContext("2d");return e.beginPath(),e.rect(0,0,100,100),e.fillStyle="#FFFFFF",e.fill(),t}(),i=e.getContext("2d"),n=function(){const t=[];for(let e=0;e<3;e++){const e=Math.floor(256*Math.random()),i=Math.max(120,e),n=Math.min(200,i);t.push(n)}return t}();for(let s=0;s{class t{constructor(t,e){this.http=t,this.storeService=e}getHeaders(){let t=new Yd;return t=t.set("Authorization","Access-Control-Allow-Origin"),t}enableMfa(t,e){const i=this.storeService.get("mfa","api_url")+"mfaEnabled",n="value="+t,s=new Yd;return s.set("Authorization","Bearer "+e),this.http.put(i,n,{headers:s}).pipe(_f(t=>this.formatErrors(t)))}formatErrors(t){return ib(t.error)}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(g_))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),iU=(()=>{class t{constructor(t,e){this.dialogRef=t,this.store=e}ngOnInit(){}onCancel(){this.dialogRef.close()}onAdd(){const t=this.store.get("mfa","register_totp_url");window.open(t,"_blank"),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Lo(KM),Lo(g_))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-add-token-info-dialog"]],decls:15,vars:15,consts:[["mat-dialog-content",""],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(Oo(0,"div"),Oo(1,"div",0),Oo(2,"app-alert",1),va(3),Ic(4,"translate"),Ic(5,"customTranslate"),Po(),Po(),Oo(6,"div",2),Oo(7,"button",3),Yo("click",(function(){return e.onCancel()})),va(8),Ic(9,"translate"),Ic(10,"customTranslate"),Po(),Oo(11,"button",4),Yo("click",(function(){return e.onAdd()})),va(12),Ic(13,"translate"),Ic(14,"customTranslate"),Po(),Po(),Po()),2&t&&(vs(3),Ma(Nc(4,3,Nc(5,5,"DIALOGS.ADD_TOKEN_INFO.INFO"))),vs(5),Ca(" ",Nc(9,7,Nc(10,9,"DIALOGS.ADD_TOKEN_INFO.CANCEL"))," "),vs(4),Ca(" ",Nc(13,11,Nc(14,13,"DIALOGS.ADD_TOKEN_INFO.ADD"))," "))},directives:[eC,aD,iC,ZC],pipes:[UC,cz],styles:[""]}),t})();const nU=["toggle"];function sU(t,e){if(1&t&&(Oo(0,"div"),Io(1,"img",22),Po()),2&t){const t=Go();vs(1),Do("src",t.imageSrc,ns)}}function rU(t,e){1&t&&(Oo(0,"app-alert",23),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"AUTHENTICATION.NO_TOKENS"))))}function oU(t,e){1&t&&(Oo(0,"th",24),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"AUTHENTICATION.TYPE"))))}function aU(t,e){1&t&&Io(0,"img",28)}function cU(t,e){1&t&&Io(0,"img",29)}function uU(t,e){if(1&t&&(Oo(0,"td",25),Eo(1,aU,1,0,"img",26),Eo(2,cU,1,0,"img",27),Po()),2&t){const t=e.$implicit;vs(1),Do("ngIf","WEBAUTHN"===t.type),vs(1),Do("ngIf","TOTP"===t.type)}}function lU(t,e){1&t&&(Oo(0,"th",24),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"AUTHENTICATION.NAME"))))}function hU(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.nickname)}}function dU(t,e){1&t&&(Oo(0,"th",24),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"AUTHENTICATION.ADDED"))))}function pU(t,e){if(1&t&&(Oo(0,"td",25),va(1),Ic(2,"parseDate"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Fc(2,1,t.added,!0))}}function fU(t,e){1&t&&(Oo(0,"th",24),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,Nc(3,3,"AUTHENTICATION.USED"))))}function gU(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.used)}}function mU(t,e){1&t&&Io(0,"th",24)}function _U(t,e){1&t&&(Oo(0,"td",25),Oo(1,"button",30),va(2),Ic(3,"translate"),Ic(4,"customTranslate"),Po(),Po()),2&t&&(vs(2),Ma(Nc(3,1,Nc(4,3,"AUTHENTICATION.REVOKE"))))}function bU(t,e){1&t&&Io(0,"tr",31)}function yU(t,e){1&t&&Io(0,"tr",32)}const wU=function(){return[5,10,25]};let AU=(()=>{class t{constructor(t,e,i,n,s,r){this.dialog=t,this.attributesManagerService=e,this.store=i,this.translate=n,this.authService=s,this.mfaService=r,this.imageSrc="",this.tokens=[],this.displayedColumns=["type","nickname","added"],this.pageSize=5,this.exporting=!1,n.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t)}ngOnInit(){this.authService.manager.getUser().then(t=>{this.accessToken=t.access_token,this.idToken=t.id_token}),this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t)}),this.loadMFA(),this.loadImage()}onAddImg(){const t=pC();t.width="500px",t.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(tU,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.authService.manager=new Np.UserManager(this.getClientSettings()),this.authService.manager.signinRedirect()}onDeleteImg(){const t=pC();t.width="600px",t.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(cj,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}loadImage(){const t=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(e=>{e?(this.imgAtt=e,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(t).subscribe(t=>{this.imgAtt=t})})}getClientSettings(){return{authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri"),extraQueryParams:{max_age:0,acr_values:"https://refeds.org/profile/mfa"}}}addTOTP(){const t=pC();t.width="600px",this.dialog.open(iU,t)}addWebAuthn(){window.open("https://id.muni.cz/simplesaml/module.php/muni/register-webauthn.php","_blank")}loadMFA(){const t=this.store.get("mfa","enforce_mfa_attribute"),e=this.store.get("mfa","tokens_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(i=>{sessionStorage.getItem("mfa_route")?(sessionStorage.removeItem("mfa_route"),this.mfaService.enableMfa(!i||!i.value,this.idToken).subscribe(()=>{this.loadMFA()},()=>this.loadMFA())):i?(this.mfaAtt=i,this.toggle&&(this.mfaAtt.value&&this.toggle.toggle(),this.toggle.change.subscribe(()=>{this.reAuthenticate()})),this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?t.value&&t.value.forEach(t=>{const e=JSON.parse(t);this.tokens.push({added:e.added,revoked:e.revoked,data:e.data,used:e.used,type:e.type.toUpperCase(),nickname:e.name})}):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(e=>{t=e}),this.dataSource=new ZT(this.tokens)})):this.attributesManagerService.getAttributeDefinitionByName(t).subscribe(t=>{this.mfaAtt=t})})}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM),Lo(vp),Lo(g_),Lo(YC),Lo(nS),Lo(eU))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(t,e){var i;1&t&&(eu(nU,!0),eu(fP,!0)),2&t&&(Zc(i=ou())&&(e.toggle=i.first),Zc(i=ou())&&(e.paginator=i.first))},decls:49,vars:43,consts:[[1,"page-subtitle"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"m-1",3,"click"],["color","warn","mat-flat-button","",1,"m-1",3,"disabled","click"],[1,"page-subtitle","mt-5"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["alert_type","info",4,"ngIf"],[3,"hidden"],[1,"card","mt-2"],[1,"card-body"],[1,"overflow-auto"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","type"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["matColumnDef","nickname"],["matColumnDef","added"],["matColumnDef","used"],["matColumnDef","revoke"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSizeOptions","pageSize"],["alt","",1,"img-size",3,"src"],["alert_type","info"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["alt","","src","assets/img/webauthn-logo-black.png","style","width: 2rem; height: 2rem",4,"ngIf"],["alt","","src","assets/img/totp.svg","style","width: 2rem; height: 2rem",4,"ngIf"],["alt","","src","assets/img/webauthn-logo-black.png",2,"width","2rem","height","2rem"],["alt","","src","assets/img/totp.svg",2,"width","2rem","height","2rem"],["color","accent","mat-flat-button",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(Oo(0,"h1",0),va(1),Ic(2,"translate"),Ic(3,"customTranslate"),Po(),Oo(4,"p"),va(5),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Eo(8,sU,2,1,"div",1),Oo(9,"button",2),Yo("click",(function(){return e.onAddImg()})),va(10),Ic(11,"translate"),Ic(12,"customTranslate"),Po(),Oo(13,"button",3),Yo("click",(function(){return e.onDeleteImg()})),va(14),Ic(15,"translate"),Ic(16,"customTranslate"),Po(),Oo(17,"h1",4),va(18),Ic(19,"translate"),Ic(20,"customTranslate"),Po(),Oo(21,"button",5),Yo("click",(function(){return e.addTOTP()})),va(22),Ic(23,"translate"),Ic(24,"customTranslate"),Po(),Eo(25,rU,4,5,"app-alert",6),Oo(26,"div",7),Oo(27,"div",8),Oo(28,"div",9),Oo(29,"div",10),Oo(30,"table",11),No(31,12),Eo(32,oU,4,5,"th",13),Eo(33,uU,3,2,"td",14),Fo(),No(34,15),Eo(35,lU,4,5,"th",13),Eo(36,hU,2,1,"td",14),Fo(),No(37,16),Eo(38,dU,4,5,"th",13),Eo(39,pU,3,4,"td",14),Fo(),No(40,17),Eo(41,fU,4,5,"th",13),Eo(42,gU,2,1,"td",14),Fo(),No(43,18),Eo(44,mU,1,0,"th",13),Eo(45,_U,5,5,"td",14),Fo(),Eo(46,bU,1,0,"tr",19),Eo(47,yU,1,0,"tr",20),Po(),Po(),Io(48,"mat-paginator",21),Po(),Po(),Po()),2&t&&(vs(1),Ma(Nc(2,18,Nc(3,20,"AUTHENTICATION.TITLE"))),vs(4),Ma(Nc(6,22,Nc(7,24,"AUTHENTICATION.ANTI_PHISHING_INFO"))),vs(3),Do("ngIf",e.imageSrc&&e.imageSrc.length),vs(2),Ma(Nc(11,26,Nc(12,28,"AUTHENTICATION.NEW_IMG"))),vs(3),Do("disabled",!e.imgAtt||!e.imgAtt.value),vs(1),Ma(Nc(15,30,Nc(16,32,"AUTHENTICATION.DELETE_IMG"))),vs(4),Ma(Nc(19,34,Nc(20,36,"AUTHENTICATION.MFA"))),vs(4),Ma(Nc(23,38,Nc(24,40,"AUTHENTICATION.ADD_TOTP"))),vs(3),Do("ngIf",!e.tokens.length),vs(1),Do("hidden",!e.tokens.length),vs(1),ua("hide-table",e.exporting),vs(3),Do("dataSource",e.dataSource),vs(16),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.tokens.length)("pageSizeOptions",Lc(42,wU))("pageSize",e.pageSize))},directives:[bh,ZC,ST,RT,xT,kT,FT,jT,fP,aD,PT,NT,WT,GT],pipes:[UC,cz,mz],styles:[".img-size[_ngcontent-%COMP%]{width:100px;height:100px}"]}),t})();const vU=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:Zj,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:iP,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:kI,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:dN,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:yF,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:LF,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:Qj,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"settings",component:zF,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:xB,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:JF,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:AU,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:Vq,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"mailingLists",component:tj,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:pj,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:bj,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:vj,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:kj,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:NY,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let MU=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[o_.forRoot(vU,{preloadingStrategy:Qm,scrollPositionRestoration:"enabled"})]]}),t})();class CU{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let SU=(()=>{class t{constructor(t){this.store=t}getSideMenuItems(){const t=this.store.get("displayed_tabs"),e=[];return t.forEach(t=>{switch(t){case"profile":e.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":e.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":e.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":e.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":e.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":e.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":e.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(t=>{e.push({label:t.label_en,label_cz:t.label_cz,icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0})}),e}}return t.\u0275fac=function(e){return new(e||t)(Vt(g_))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),TU=(()=>{class t extends uH{buildStyles(t){return{content:t?`url(${t})`:""}}}return t.\u0275fac=function(e){return kU(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const kU=gn(TU);let EU=(()=>{class t extends jB{constructor(t,e,i,n,s,r){super(t,e,i,n),this.platformId=s,this.serverModuleLoaded=r,this.DIRECTIVE_KEY="img-src",this.defaultSrc="",this.styleCache=xU,this.init(),this.setValue(this.nativeElement.getAttribute("src")||"",""),td(this.platformId)&&this.serverModuleLoaded&&this.nativeElement.setAttribute("src","")}set src(t){this.defaultSrc=t,this.setValue(this.defaultSrc,"")}updateWithValue(t){const e=t||this.defaultSrc;td(this.platformId)&&this.serverModuleLoaded?this.addStyles(e):this.nativeElement.setAttribute("src",e)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(TU),Lo(cH),Lo(dH),Lo(bu),Lo(NB))},t.\u0275dir=be({type:t,inputs:{src:"src"},features:[ho]}),t})();const xU=new Map,LU=["src.xs","src.sm","src.md","src.lg","src.xl","src.lt-sm","src.lt-md","src.lt-lg","src.lt-xl","src.gt-xs","src.gt-sm","src.gt-md","src.gt-lg"];let zU=(()=>{class t extends EU{constructor(){super(...arguments),this.inputs=LU}}return t.\u0275fac=function(e){return DU(e||t)},t.\u0275dir=be({type:t,selectors:[["img","src.xs",""],["img","src.sm",""],["img","src.md",""],["img","src.lg",""],["img","src.xl",""],["img","src.lt-sm",""],["img","src.lt-md",""],["img","src.lt-lg",""],["img","src.lt-xl",""],["img","src.gt-xs",""],["img","src.gt-sm",""],["img","src.gt-md",""],["img","src.gt-lg",""]],inputs:{"src.xs":"src.xs","src.sm":"src.sm","src.md":"src.md","src.lg":"src.lg","src.xl":"src.xl","src.lt-sm":"src.lt-sm","src.lt-md":"src.lt-md","src.lt-lg":"src.lt-lg","src.lt-xl":"src.lt-xl","src.gt-xs":"src.gt-xs","src.gt-sm":"src.gt-sm","src.gt-md":"src.gt-md","src.gt-lg":"src.gt-lg"},features:[ho]}),t})();const DU=gn(zU);let RU=(()=>{class t extends jB{constructor(t,e,i,n,s,r,o){super(t,null,e,i),this.ngClassInstance=o,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new ph(n,s,t,r)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(dH),Lo(rc),Lo(oc),Lo(Wa),Lo(ph,10))},t.\u0275dir=be({type:t,inputs:{klass:["class","klass"]},features:[ho]}),t})();const OU=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let PU=(()=>{class t extends RU{constructor(){super(...arguments),this.inputs=OU}}return t.\u0275fac=function(e){return IU(e||t)},t.\u0275dir=be({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[ho]}),t})();const IU=gn(PU);let NU=(()=>{class t extends uH{buildStyles(t,e){return{display:"true"===t?e.display||(e.isServer?"initial":""):"none"}}}return t.\u0275fac=function(e){return FU(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const FU=gn(NU);let BU=(()=>{class t extends jB{constructor(t,e,i,n,s,r,o){super(t,e,i,n),this.layoutConfig=s,this.platformId=r,this.serverModuleLoaded=o,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const t=Array.from(this.nativeElement.children);for(let i=0;i{if(-1!==this.inputs.indexOf(e)){const i=e.split("."),n=i.slice(1).join("."),s=t[e].currentValue;let r=""===s||0!==s&&m_(s);"fxHide"===i[0]&&(r=!r),this.setValue(r,n)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(t=>{this.marshal.trackValue(this.nativeElement,t).pipe(G_(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(t=!0){if(""===t)return;const e=td(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(NU),Lo(cH),Lo(dH),Lo(IB),Lo(bu),Lo(NB))},t.\u0275dir=be({type:t,features:[ho,ze]}),t})();const HU=new WeakMap,qU=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let jU=(()=>{class t extends BU{constructor(){super(...arguments),this.inputs=qU}}return t.\u0275fac=function(e){return YU(e||t)},t.\u0275dir=be({type:t,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[ho]}),t})();const YU=gn(jU);class WU{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function UU(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function KU(t){const[e,...i]=t.split(":");return new WU(e,i.join(":"))}function VU(t,e){return e.key&&(t[e.key]=e.value),t}let GU=(()=>{class t extends jB{constructor(t,e,i,n,s,r,o,a,c){super(t,null,e,i),this.sanitizer=n,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new kh(t,s,r)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=a&&td(c)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(es.STYLE,t)||"";if(t)switch(UU(t)){case"string":return QU(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return QU(t,e);case"set":default:return function(t,e){let i=[];return"set"===UU(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(KU).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(VU,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(dH),Lo(xd),Lo(oc),Lo(Wa),Lo(kh,10),Lo(NB),Lo(bu))},t.\u0275dir=be({type:t,features:[ho]}),t})();const XU=["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 $U=(()=>{class t extends GU{constructor(){super(...arguments),this.inputs=XU}}return t.\u0275fac=function(e){return JU(e||t)},t.\u0275dir=be({type:t,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:[ho]}),t})();const JU=gn($U);function QU(t,e){return t.map(KU).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(VU,{})}let ZU=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[DB]]}),t})(),tK=(()=>{class t{transform(t,e){return"en"===t?e.label:e.label_cz}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"localizationLabel",type:t,pure:!0}),t})();const eK=function(t){return{color:t}};function iK(t,e){if(1&t){const t=Ho();Oo(0,"mat-list-item",1),Yo("click",(function(){ii(t);const i=e.$implicit,n=Go();return i.external?n.goToURL(i.link):n.shouldHideMenu()})),Oo(1,"mat-icon",2),va(2),Po(),Oo(3,"span",3),va(4),Ic(5,"localizationLabel"),Ic(6,"translate"),Ic(7,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();ua("activated",i.isActive(t.activatedRegex)),Qo("routerLink",t.external?null:t.link),Do("ngStyle",zc(15,eK,i.textColor)),vs(1),Do("ngStyle",zc(17,eK,i.iconColor)),vs(1),Ma(t.icon),vs(2),Ma(t.external?Fc(5,7,i.lang,t):Nc(6,10,Fc(7,12,t.label,i.lang)))}}let nK=(()=>{class t{constructor(t,e,i,n){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.translateService=n,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof Lf&&(this.currentUrl=t.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:e}=t;this.lang=e});const t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(e=>t.includes(e.tabName))}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(t){window.open(t,"_blank")}}return t.\u0275fac=function(e){return new(e||t)(Lo(SU),Lo(g_),Lo(Wm),Lo(YC))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[["disableRipple","",3,"activated","ngStyle","routerLink","click",4,"ngFor","ngForOf"],["disableRipple","",3,"ngStyle","routerLink","click"],[3,"ngStyle"],[1,"nav-caption"]],template:function(t,e){1&t&&(Oo(0,"mat-nav-list"),Eo(1,iK,8,19,"mat-list-item",0),Po()),2&t&&(vs(1),Do("ngForOf",e.items))},directives:[dB,mh,bB,kh,$U,Um,wS],pipes:[tK,UC,cz],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),t})();const sK=["*",[["mat-toolbar-row"]]],rK=["*","mat-toolbar-row"];class oK{constructor(t){this._elementRef=t}}const aK=$v(oK);let cK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),uK=(()=>{class t extends aK{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){zn()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(t=>!(t.classList&&t.classList.contains("mat-toolbar-row"))).filter(t=>t.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(t=>!(!t.textContent||!t.textContent.trim()))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(db),Lo(ll))},t.\u0275cmp=de({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){var n;1&t&&nu(i,cK,!0),2&t&&Zc(n=ou())&&(e._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ua("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ho],ngContentSelectors:rK,decls:2,vars:0,template:function(t,e){1&t&&($o(sK),Jo(0),Jo(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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),t})(),lK=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Gv],Gv]}),t})();const hK=function(t){return{background:t}},dK=function(t){return{color:t}};let pK=(()=>{class t{constructor(t,e){this.storeService=t,this.sanitizer=e,this.sidenavToggle=new jc,this.bgColor=this.storeService.get("theme","header_bg_color"),this.textColor=this.storeService.get("theme","header_text_color"),this.iconColor=this.storeService.get("theme","header_icon_color"),this.label=this.storeService.get("header_label"),this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(xd))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-header"]],outputs:{sidenavToggle:"sidenavToggle"},decls:7,vars:11,consts:[[1,"sticky-top","header-container",3,"ngStyle"],["mat-icon-button","",3,"ngStyle","click"],["routerLink","/",1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto",3,"ngStyle"]],template:function(t,e){1&t&&(Oo(0,"mat-toolbar",0),Oo(1,"button",1),Yo("click",(function(){return e.onToggleSidenav()})),Oo(2,"mat-icon"),va(3,"menu"),Po(),Po(),Io(4,"a",2),Oo(5,"p",3),va(6),Po(),Po()),2&t&&(Do("ngStyle",zc(5,hK,e.bgColor)),vs(1),Do("ngStyle",zc(7,dK,e.iconColor)),vs(3),Do("innerHTML",e.logo,is),vs(1),Do("ngStyle",zc(9,dK,e.textColor)),vs(1),Ma(e.label))},directives:[uK,kh,$U,ZC,wS,Km],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important}"]}),t})();const fK=["*"];function gK(t,e){if(1&t){const t=Ho();Oo(0,"div",2),Yo("click",(function(){return ii(t),Go()._onBackdropClicked()})),Po()}2&t&&ua("mat-drawer-shown",Go()._isShowingBackdrop())}function mK(t,e){1&t&&(Oo(0,"mat-drawer-content"),Jo(1,2),Po())}const _K=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],bK=["mat-drawer","mat-drawer-content","*"];function yK(t,e){if(1&t){const t=Ho();Oo(0,"div",2),Yo("click",(function(){return ii(t),Go()._onBackdropClicked()})),Po()}2&t&&ua("mat-drawer-shown",Go()._isShowingBackdrop())}function wK(t,e){1&t&&(Oo(0,"mat-sidenav-content",3),Jo(1,2),Po())}const AK=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],vK=["mat-sidenav","mat-sidenav-content","*"],MK=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",CK={transformDrawer:mw("transform",[Aw("open, open-instant",ww({transform:"none",visibility:"visible"})),Aw("void",ww({"box-shadow":"none",visibility:"hidden"})),Mw("void => open-instant",_w("0ms")),Mw("void <=> open, open-instant => void",_w("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function SK(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const TK=new Nt("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),kK=new Nt("MAT_DRAWER_CONTAINER");let EK=(()=>{class t extends Fb{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wr),Lo(vt(()=>LK)),Lo(Ha),Lo(Nb),Lo(Ru))},t.\u0275cmp=de({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&ca("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[ho],ngContentSelectors:fK,decls:1,vars:0,template:function(t,e){1&t&&($o(),Jo(0))},encapsulation:2,changeDetection:0}),t})(),xK=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new M,this._animationEnd=new M,this._animationState="void",this.openedChange=new jc(!0),this._destroyed=new M,this.onPositionChanged=new jc,this._modeChanged=new M,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{v_(this._elementRef.nativeElement,"keydown").pipe(Fd(t=>27===t.keyCode&&!this.disableClose&&!ey(t)),G_(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(B_((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=m_(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=m_(t)}get opened(){return this._opened}set opened(t){this.toggle(m_(t))}get _openedStream(){return this.openedChange.pipe(Fd(t=>t),P(()=>{}))}get openedStart(){return this._animationStarted.pipe(Fd(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),P(()=>{}))}get _closedStream(){return this.openedChange.pipe(Fd(t=>!t),P(()=>{}))}get closedStart(){return this._animationStarted.pipe(Fd(t=>t.fromState!==t.toState&&"void"===t.toState),P(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(uf(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(tw),Lo(uw),Lo(db),Lo(Ru),Lo(ll,8),Lo(kK,8))},t.\u0275cmp=de({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&Wo("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(So("align",null),Ea("@transform",e._animationState),ua("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:fK,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&($o(),Oo(0,"div",0),Jo(1),Po())},encapsulation:2,data:{animation:[CK.transformDrawer]},changeDetection:0}),t})(),LK=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new Wc,this.backdropClick=new jc,this._destroyed=new M,this._doCheckSubject=new M,this._contentMargins={left:null,right:null},this._contentMarginChanges=new M,t&&t.change.pipe(G_(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(G_(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=m_(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:m_(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(pf(this._allDrawers),G_(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(pf(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Oy(10),G_(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const i=this._left._width;t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const i=this._right._width;e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Fd(t=>t.fromState!==t.toState),G_(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(G_(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(G_(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(uf(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(G_(U(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&SK("end"),this._end=t):(null!=this._start&&SK("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(Lo(Mb,8),Lo(Ha),Lo(Ru),Lo(Wr),Lo(Bb),Lo(TK),Lo(Nv,8))},t.\u0275cmp=de({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,EK,!0),nu(i,xK,!0)),2&t&&(Zc(n=ou())&&(e._content=n.first),Zc(n=ou())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&eu(EK,!0),2&t&&Zc(i=ou())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ia([{provide:kK,useExisting:t}])],ngContentSelectors:bK,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&($o(_K),Eo(0,gK,1,2,"div",0),Jo(1),Jo(2,1),Eo(3,mK,2,0,"mat-drawer-content",1)),2&t&&(Do("ngIf",e.hasBackdrop),vs(3),Do("ngIf",!e._content))},directives:[bh,EK],styles:[MK],encapsulation:2,changeDetection:0}),t})(),zK=(()=>{class t extends EK{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Wr),Lo(vt(()=>OK)),Lo(Ha),Lo(Nb),Lo(Ru))},t.\u0275cmp=de({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&ca("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[ho],ngContentSelectors:fK,decls:1,vars:0,template:function(t,e){1&t&&($o(),Jo(0))},encapsulation:2,changeDetection:0}),t})(),DK=(()=>{class t extends xK{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=m_(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=__(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=__(t)}}return t.\u0275fac=function(e){return RK(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(So("align",null),ca("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),ua("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ho],ngContentSelectors:fK,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&($o(),Oo(0,"div",0),Jo(1),Po())},encapsulation:2,data:{animation:[CK.transformDrawer]},changeDetection:0}),t})();const RK=gn(DK);let OK=(()=>{class t extends LK{}return t.\u0275fac=function(e){return PK(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(nu(i,zK,!0),nu(i,DK,!0)),2&t&&(Zc(n=ou())&&(e._content=n.first),Zc(n=ou())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ia([{provide:kK,useExisting:t}]),ho],ngContentSelectors:vK,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&($o(AK),Eo(0,yK,1,2,"div",0),Jo(1),Jo(2,1),Eo(3,wK,2,0,"mat-sidenav-content",1)),2&t&&(Do("ngIf",e.hasBackdrop),vs(3),Do("ngIf",!e._content))},directives:[bh,zK,Fb],styles:[MK],encapsulation:2,changeDetection:0}),t})();const PK=gn(OK);let IK=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Qh,Gv,pb,Wb],Wb,Gv]}),t})(),NK=(()=>{class t{constructor(t,e){this.http=t,this.storeService=e}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[FK(tinycolor(n).lighten(52),"50"),FK(tinycolor(n).lighten(37),"100"),FK(tinycolor(n).lighten(26),"200"),FK(tinycolor(n).lighten(12),"300"),FK(tinycolor(n).lighten(6),"400"),FK(tinycolor(n),"500"),FK(tinycolor(n).darken(6),"600"),FK(tinycolor(n).darken(12),"700"),FK(tinycolor(n).darken(18),"800"),FK(tinycolor(n).darken(24),"900"),FK(tinycolor(n).lighten(50).saturate(30),"A100"),FK(tinycolor(n).lighten(30).saturate(30),"A200"),FK(tinycolor(n).lighten(10).saturate(15),"A400"),FK(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise((t,e)=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new Yd({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}}return t.\u0275fac=function(e){return new(e||t)(Vt(np),Vt(g_))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function FK(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let BK=(()=>{class t{constructor(t,e,i,n,s){this.initAuthService=t,this.appConfigService=e,this.store=i,this.location=n,this.authzSevice=s,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_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.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.authenticateUser()).catch(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>{if(t)return this.initAuthService.loadPrincipal()})}setApiUrl(){return new Promise(t=>{this.authzSevice.configuration.basePath=this.store.get("api_url"),t()})}}return t.\u0275fac=function(e){return new(e||t)(Vt(rS),Vt(NK),Vt(g_),Vt(Sl),Vt(Mp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),HK=(()=>{class t extends uH{buildStyles(t){return function(t=""){const e={},[i,n]=t.split(" ");switch(i){case"end":e["justify-self"]="end";break;case"center":e["justify-self"]="center";break;case"stretch":e["justify-self"]="stretch";break;case"start":e["justify-self"]="start";break;default:e["justify-self"]="stretch"}switch(n){case"end":e["align-self"]="end";break;case"center":e["align-self"]="center";break;case"stretch":e["align-self"]="stretch";break;case"start":e["align-self"]="start";break;default:e["align-self"]="stretch"}return e}(t||"stretch")}}return t.\u0275fac=function(e){return qK(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const qK=gn(HK);let jK=(()=>{class t extends jB{constructor(t,e,i,n){super(t,e,i,n),this.DIRECTIVE_KEY="grid-align",this.styleCache=YK,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(HK),Lo(cH),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})();const YK=new Map,WK=["gdGridAlign","gdGridAlign.xs","gdGridAlign.sm","gdGridAlign.md","gdGridAlign.lg","gdGridAlign.xl","gdGridAlign.lt-sm","gdGridAlign.lt-md","gdGridAlign.lt-lg","gdGridAlign.lt-xl","gdGridAlign.gt-xs","gdGridAlign.gt-sm","gdGridAlign.gt-md","gdGridAlign.gt-lg"];let UK=(()=>{class t extends jK{constructor(){super(...arguments),this.inputs=WK}}return t.\u0275fac=function(e){return KK(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdGridAlign",""],["","gdGridAlign.xs",""],["","gdGridAlign.sm",""],["","gdGridAlign.md",""],["","gdGridAlign.lg",""],["","gdGridAlign.xl",""],["","gdGridAlign.lt-sm",""],["","gdGridAlign.lt-md",""],["","gdGridAlign.lt-lg",""],["","gdGridAlign.lt-xl",""],["","gdGridAlign.gt-xs",""],["","gdGridAlign.gt-sm",""],["","gdGridAlign.gt-md",""],["","gdGridAlign.gt-lg",""]],inputs:{gdGridAlign:"gdGridAlign","gdGridAlign.xs":"gdGridAlign.xs","gdGridAlign.sm":"gdGridAlign.sm","gdGridAlign.md":"gdGridAlign.md","gdGridAlign.lg":"gdGridAlign.lg","gdGridAlign.xl":"gdGridAlign.xl","gdGridAlign.lt-sm":"gdGridAlign.lt-sm","gdGridAlign.lt-md":"gdGridAlign.lt-md","gdGridAlign.lt-lg":"gdGridAlign.lt-lg","gdGridAlign.lt-xl":"gdGridAlign.lt-xl","gdGridAlign.gt-xs":"gdGridAlign.gt-xs","gdGridAlign.gt-sm":"gdGridAlign.gt-sm","gdGridAlign.gt-md":"gdGridAlign.gt-md","gdGridAlign.gt-lg":"gdGridAlign.gt-lg"},features:[ho]}),t})();const KK=gn(UK);let VK=(()=>{class t extends uH{buildStyles(t,e){return function(t,e){const i={},[n,s]=t.split(" ");switch(n){case"center":i["align-content"]="center";break;case"space-around":i["align-content"]="space-around";break;case"space-between":i["align-content"]="space-between";break;case"space-evenly":i["align-content"]="space-evenly";break;case"end":i["align-content"]="end";break;case"start":i["align-content"]="start";break;case"stretch":i["align-content"]="stretch";break;default:i["align-content"]="start"}switch(s){case"start":i["align-items"]="start";break;case"center":i["align-items"]="center";break;case"end":i["align-items"]="end";break;case"stretch":default:i["align-items"]="stretch"}return i.display=e?"inline-grid":"grid",i}(t||"start stretch",e.inline)}}return t.\u0275fac=function(e){return GK(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const GK=gn(VK);let XK=(()=>{class t extends jB{constructor(t,e,i,n){super(t,e,i,n),this.DIRECTIVE_KEY="grid-align-columns",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=m_(t)}updateWithValue(t){this.styleCache=this.inline?JK:$K,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(VK),Lo(cH),Lo(dH))},t.\u0275dir=be({type:t,inputs:{inline:["gdInline","inline"]},features:[ho]}),t})();const $K=new Map,JK=new Map,QK=["gdAlignColumns","gdAlignColumns.xs","gdAlignColumns.sm","gdAlignColumns.md","gdAlignColumns.lg","gdAlignColumns.xl","gdAlignColumns.lt-sm","gdAlignColumns.lt-md","gdAlignColumns.lt-lg","gdAlignColumns.lt-xl","gdAlignColumns.gt-xs","gdAlignColumns.gt-sm","gdAlignColumns.gt-md","gdAlignColumns.gt-lg"];let ZK=(()=>{class t extends XK{constructor(){super(...arguments),this.inputs=QK}}return t.\u0275fac=function(e){return tV(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdAlignColumns",""],["","gdAlignColumns.xs",""],["","gdAlignColumns.sm",""],["","gdAlignColumns.md",""],["","gdAlignColumns.lg",""],["","gdAlignColumns.xl",""],["","gdAlignColumns.lt-sm",""],["","gdAlignColumns.lt-md",""],["","gdAlignColumns.lt-lg",""],["","gdAlignColumns.lt-xl",""],["","gdAlignColumns.gt-xs",""],["","gdAlignColumns.gt-sm",""],["","gdAlignColumns.gt-md",""],["","gdAlignColumns.gt-lg",""]],inputs:{gdAlignColumns:"gdAlignColumns","gdAlignColumns.xs":"gdAlignColumns.xs","gdAlignColumns.sm":"gdAlignColumns.sm","gdAlignColumns.md":"gdAlignColumns.md","gdAlignColumns.lg":"gdAlignColumns.lg","gdAlignColumns.xl":"gdAlignColumns.xl","gdAlignColumns.lt-sm":"gdAlignColumns.lt-sm","gdAlignColumns.lt-md":"gdAlignColumns.lt-md","gdAlignColumns.lt-lg":"gdAlignColumns.lt-lg","gdAlignColumns.lt-xl":"gdAlignColumns.lt-xl","gdAlignColumns.gt-xs":"gdAlignColumns.gt-xs","gdAlignColumns.gt-sm":"gdAlignColumns.gt-sm","gdAlignColumns.gt-md":"gdAlignColumns.gt-md","gdAlignColumns.gt-lg":"gdAlignColumns.gt-lg"},features:[ho]}),t})();const tV=gn(ZK);let eV=(()=>{class t extends uH{buildStyles(t,e){return function(t,e){const i={},[n,s]=t.split(" ");switch(n){case"center":case"space-around":case"space-between":case"space-evenly":case"end":case"start":case"stretch":i["justify-content"]=n;break;default:i["justify-content"]="start"}switch(s){case"start":case"center":case"end":case"stretch":i["justify-items"]=s;break;default:i["justify-items"]="stretch"}return i.display=e?"inline-grid":"grid",i}(t||"start stretch",e.inline)}}return t.\u0275fac=function(e){return iV(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const iV=gn(eV);let nV=(()=>{class t extends jB{constructor(t,e,i,n){super(t,e,i,n),this.DIRECTIVE_KEY="grid-align-rows",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=m_(t)}updateWithValue(t){this.styleCache=this.inline?rV:sV,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(eV),Lo(cH),Lo(dH))},t.\u0275dir=be({type:t,inputs:{inline:["gdInline","inline"]},features:[ho]}),t})();const sV=new Map,rV=new Map,oV=["gdAlignRows","gdAlignRows.xs","gdAlignRows.sm","gdAlignRows.md","gdAlignRows.lg","gdAlignRows.xl","gdAlignRows.lt-sm","gdAlignRows.lt-md","gdAlignRows.lt-lg","gdAlignRows.lt-xl","gdAlignRows.gt-xs","gdAlignRows.gt-sm","gdAlignRows.gt-md","gdAlignRows.gt-lg"];let aV=(()=>{class t extends nV{constructor(){super(...arguments),this.inputs=oV}}return t.\u0275fac=function(e){return cV(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdAlignRows",""],["","gdAlignRows.xs",""],["","gdAlignRows.sm",""],["","gdAlignRows.md",""],["","gdAlignRows.lg",""],["","gdAlignRows.xl",""],["","gdAlignRows.lt-sm",""],["","gdAlignRows.lt-md",""],["","gdAlignRows.lt-lg",""],["","gdAlignRows.lt-xl",""],["","gdAlignRows.gt-xs",""],["","gdAlignRows.gt-sm",""],["","gdAlignRows.gt-md",""],["","gdAlignRows.gt-lg",""]],inputs:{gdAlignRows:"gdAlignRows","gdAlignRows.xs":"gdAlignRows.xs","gdAlignRows.sm":"gdAlignRows.sm","gdAlignRows.md":"gdAlignRows.md","gdAlignRows.lg":"gdAlignRows.lg","gdAlignRows.xl":"gdAlignRows.xl","gdAlignRows.lt-sm":"gdAlignRows.lt-sm","gdAlignRows.lt-md":"gdAlignRows.lt-md","gdAlignRows.lt-lg":"gdAlignRows.lt-lg","gdAlignRows.lt-xl":"gdAlignRows.lt-xl","gdAlignRows.gt-xs":"gdAlignRows.gt-xs","gdAlignRows.gt-sm":"gdAlignRows.gt-sm","gdAlignRows.gt-md":"gdAlignRows.gt-md","gdAlignRows.gt-lg":"gdAlignRows.gt-lg"},features:[ho]}),t})();const cV=gn(aV);let uV=(()=>{class t extends uH{buildStyles(t){return{"grid-area":t||"auto"}}}return t.\u0275fac=function(e){return lV(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const lV=gn(uV);let hV=(()=>{class t extends jB{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="grid-area",this.styleCache=dV,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(uV),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})();const dV=new Map,pV=["gdArea","gdArea.xs","gdArea.sm","gdArea.md","gdArea.lg","gdArea.xl","gdArea.lt-sm","gdArea.lt-md","gdArea.lt-lg","gdArea.lt-xl","gdArea.gt-xs","gdArea.gt-sm","gdArea.gt-md","gdArea.gt-lg"];let fV=(()=>{class t extends hV{constructor(){super(...arguments),this.inputs=pV}}return t.\u0275fac=function(e){return gV(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdArea",""],["","gdArea.xs",""],["","gdArea.sm",""],["","gdArea.md",""],["","gdArea.lg",""],["","gdArea.xl",""],["","gdArea.lt-sm",""],["","gdArea.lt-md",""],["","gdArea.lt-lg",""],["","gdArea.lt-xl",""],["","gdArea.gt-xs",""],["","gdArea.gt-sm",""],["","gdArea.gt-md",""],["","gdArea.gt-lg",""]],inputs:{gdArea:"gdArea","gdArea.xs":"gdArea.xs","gdArea.sm":"gdArea.sm","gdArea.md":"gdArea.md","gdArea.lg":"gdArea.lg","gdArea.xl":"gdArea.xl","gdArea.lt-sm":"gdArea.lt-sm","gdArea.lt-md":"gdArea.lt-md","gdArea.lt-lg":"gdArea.lt-lg","gdArea.lt-xl":"gdArea.lt-xl","gdArea.gt-xs":"gdArea.gt-xs","gdArea.gt-sm":"gdArea.gt-sm","gdArea.gt-md":"gdArea.gt-md","gdArea.gt-lg":"gdArea.gt-lg"},features:[ho]}),t})();const gV=gn(fV);let mV=(()=>{class t extends uH{buildStyles(t,e){const i=(t||"none").split("|").map(t=>`"${t.trim()}"`);return{display:e.inline?"inline-grid":"grid","grid-template-areas":i.join(" ")}}}return t.\u0275fac=function(e){return _V(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const _V=gn(mV);let bV=(()=>{class t extends jB{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="grid-areas",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=m_(t)}updateWithValue(t){this.styleCache=this.inline?wV:yV,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(mV),Lo(dH))},t.\u0275dir=be({type:t,inputs:{inline:["gdInline","inline"]},features:[ho]}),t})();const yV=new Map,wV=new Map,AV=["gdAreas","gdAreas.xs","gdAreas.sm","gdAreas.md","gdAreas.lg","gdAreas.xl","gdAreas.lt-sm","gdAreas.lt-md","gdAreas.lt-lg","gdAreas.lt-xl","gdAreas.gt-xs","gdAreas.gt-sm","gdAreas.gt-md","gdAreas.gt-lg"];let vV=(()=>{class t extends bV{constructor(){super(...arguments),this.inputs=AV}}return t.\u0275fac=function(e){return MV(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdAreas",""],["","gdAreas.xs",""],["","gdAreas.sm",""],["","gdAreas.md",""],["","gdAreas.lg",""],["","gdAreas.xl",""],["","gdAreas.lt-sm",""],["","gdAreas.lt-md",""],["","gdAreas.lt-lg",""],["","gdAreas.lt-xl",""],["","gdAreas.gt-xs",""],["","gdAreas.gt-sm",""],["","gdAreas.gt-md",""],["","gdAreas.gt-lg",""]],inputs:{gdAreas:"gdAreas","gdAreas.xs":"gdAreas.xs","gdAreas.sm":"gdAreas.sm","gdAreas.md":"gdAreas.md","gdAreas.lg":"gdAreas.lg","gdAreas.xl":"gdAreas.xl","gdAreas.lt-sm":"gdAreas.lt-sm","gdAreas.lt-md":"gdAreas.lt-md","gdAreas.lt-lg":"gdAreas.lt-lg","gdAreas.lt-xl":"gdAreas.lt-xl","gdAreas.gt-xs":"gdAreas.gt-xs","gdAreas.gt-sm":"gdAreas.gt-sm","gdAreas.gt-md":"gdAreas.gt-md","gdAreas.gt-lg":"gdAreas.gt-lg"},features:[ho]}),t})();const MV=gn(vV);let CV=(()=>{class t extends uH{buildStyles(t,e){let[i,n]=(t||"initial").split(" ");return"column"!==i&&"row"!==i&&"dense"!==i&&(i="row"),n="dense"===n&&"dense"!==i?" dense":"",{display:e.inline?"inline-grid":"grid","grid-auto-flow":i+n}}}return t.\u0275fac=function(e){return SV(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const SV=gn(CV);let TV=(()=>{class t extends jB{constructor(t,e,i,n){super(t,e,i,n),this._inline=!1,this.DIRECTIVE_KEY="grid-auto",this.init()}get inline(){return this._inline}set inline(t){this._inline=m_(t)}updateWithValue(t){this.styleCache=this.inline?EV:kV,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(CV),Lo(cH),Lo(dH))},t.\u0275dir=be({type:t,inputs:{inline:["gdInline","inline"]},features:[ho]}),t})();const kV=new Map,EV=new Map,xV=["gdAuto","gdAuto.xs","gdAuto.sm","gdAuto.md","gdAuto.lg","gdAuto.xl","gdAuto.lt-sm","gdAuto.lt-md","gdAuto.lt-lg","gdAuto.lt-xl","gdAuto.gt-xs","gdAuto.gt-sm","gdAuto.gt-md","gdAuto.gt-lg"];let LV=(()=>{class t extends TV{constructor(){super(...arguments),this.inputs=xV}}return t.\u0275fac=function(e){return zV(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdAuto",""],["","gdAuto.xs",""],["","gdAuto.sm",""],["","gdAuto.md",""],["","gdAuto.lg",""],["","gdAuto.xl",""],["","gdAuto.lt-sm",""],["","gdAuto.lt-md",""],["","gdAuto.lt-lg",""],["","gdAuto.lt-xl",""],["","gdAuto.gt-xs",""],["","gdAuto.gt-sm",""],["","gdAuto.gt-md",""],["","gdAuto.gt-lg",""]],inputs:{gdAuto:"gdAuto","gdAuto.xs":"gdAuto.xs","gdAuto.sm":"gdAuto.sm","gdAuto.md":"gdAuto.md","gdAuto.lg":"gdAuto.lg","gdAuto.xl":"gdAuto.xl","gdAuto.lt-sm":"gdAuto.lt-sm","gdAuto.lt-md":"gdAuto.lt-md","gdAuto.lt-lg":"gdAuto.lt-lg","gdAuto.lt-xl":"gdAuto.lt-xl","gdAuto.gt-xs":"gdAuto.gt-xs","gdAuto.gt-sm":"gdAuto.gt-sm","gdAuto.gt-md":"gdAuto.gt-md","gdAuto.gt-lg":"gdAuto.gt-lg"},features:[ho]}),t})();const zV=gn(LV);let DV=(()=>{class t extends uH{buildStyles(t){return{"grid-column":t||"auto"}}}return t.\u0275fac=function(e){return RV(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const RV=gn(DV);let OV=(()=>{class t extends jB{constructor(t,e,i,n){super(t,e,i,n),this.DIRECTIVE_KEY="grid-column",this.styleCache=PV,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(DV),Lo(cH),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})();const PV=new Map,IV=["gdColumn","gdColumn.xs","gdColumn.sm","gdColumn.md","gdColumn.lg","gdColumn.xl","gdColumn.lt-sm","gdColumn.lt-md","gdColumn.lt-lg","gdColumn.lt-xl","gdColumn.gt-xs","gdColumn.gt-sm","gdColumn.gt-md","gdColumn.gt-lg"];let NV=(()=>{class t extends OV{constructor(){super(...arguments),this.inputs=IV}}return t.\u0275fac=function(e){return FV(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdColumn",""],["","gdColumn.xs",""],["","gdColumn.sm",""],["","gdColumn.md",""],["","gdColumn.lg",""],["","gdColumn.xl",""],["","gdColumn.lt-sm",""],["","gdColumn.lt-md",""],["","gdColumn.lt-lg",""],["","gdColumn.lt-xl",""],["","gdColumn.gt-xs",""],["","gdColumn.gt-sm",""],["","gdColumn.gt-md",""],["","gdColumn.gt-lg",""]],inputs:{gdColumn:"gdColumn","gdColumn.xs":"gdColumn.xs","gdColumn.sm":"gdColumn.sm","gdColumn.md":"gdColumn.md","gdColumn.lg":"gdColumn.lg","gdColumn.xl":"gdColumn.xl","gdColumn.lt-sm":"gdColumn.lt-sm","gdColumn.lt-md":"gdColumn.lt-md","gdColumn.lt-lg":"gdColumn.lt-lg","gdColumn.lt-xl":"gdColumn.lt-xl","gdColumn.gt-xs":"gdColumn.gt-xs","gdColumn.gt-sm":"gdColumn.gt-sm","gdColumn.gt-md":"gdColumn.gt-md","gdColumn.gt-lg":"gdColumn.gt-lg"},features:[ho]}),t})();const FV=gn(NV);let BV=(()=>{class t extends uH{buildStyles(t,e){let i=!1;(t=t||"none").endsWith("!")&&(t=t.substring(0,t.indexOf("!")),i=!0);const n={display:e.inline?"inline-grid":"grid","grid-auto-columns":"","grid-template-columns":""};return n[i?"grid-auto-columns":"grid-template-columns"]=t,n}}return t.\u0275fac=function(e){return HV(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const HV=gn(BV);let qV=(()=>{class t extends jB{constructor(t,e,i,n){super(t,e,i,n),this.DIRECTIVE_KEY="grid-columns",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=m_(t)}updateWithValue(t){this.styleCache=this.inline?YV:jV,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(BV),Lo(cH),Lo(dH))},t.\u0275dir=be({type:t,inputs:{inline:["gdInline","inline"]},features:[ho]}),t})();const jV=new Map,YV=new Map,WV=["gdColumns","gdColumns.xs","gdColumns.sm","gdColumns.md","gdColumns.lg","gdColumns.xl","gdColumns.lt-sm","gdColumns.lt-md","gdColumns.lt-lg","gdColumns.lt-xl","gdColumns.gt-xs","gdColumns.gt-sm","gdColumns.gt-md","gdColumns.gt-lg"];let UV=(()=>{class t extends qV{constructor(){super(...arguments),this.inputs=WV}}return t.\u0275fac=function(e){return KV(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdColumns",""],["","gdColumns.xs",""],["","gdColumns.sm",""],["","gdColumns.md",""],["","gdColumns.lg",""],["","gdColumns.xl",""],["","gdColumns.lt-sm",""],["","gdColumns.lt-md",""],["","gdColumns.lt-lg",""],["","gdColumns.lt-xl",""],["","gdColumns.gt-xs",""],["","gdColumns.gt-sm",""],["","gdColumns.gt-md",""],["","gdColumns.gt-lg",""]],inputs:{gdColumns:"gdColumns","gdColumns.xs":"gdColumns.xs","gdColumns.sm":"gdColumns.sm","gdColumns.md":"gdColumns.md","gdColumns.lg":"gdColumns.lg","gdColumns.xl":"gdColumns.xl","gdColumns.lt-sm":"gdColumns.lt-sm","gdColumns.lt-md":"gdColumns.lt-md","gdColumns.lt-lg":"gdColumns.lt-lg","gdColumns.lt-xl":"gdColumns.lt-xl","gdColumns.gt-xs":"gdColumns.gt-xs","gdColumns.gt-sm":"gdColumns.gt-sm","gdColumns.gt-md":"gdColumns.gt-md","gdColumns.gt-lg":"gdColumns.gt-lg"},features:[ho]}),t})();const KV=gn(UV);let VV=(()=>{class t extends uH{buildStyles(t,e){return{display:e.inline?"inline-grid":"grid","grid-gap":t||"0"}}}return t.\u0275fac=function(e){return GV(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const GV=gn(VV);let XV=(()=>{class t extends jB{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="grid-gap",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=m_(t)}updateWithValue(t){this.styleCache=this.inline?JV:$V,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cH),Lo(VV),Lo(dH))},t.\u0275dir=be({type:t,inputs:{inline:["gdInline","inline"]},features:[ho]}),t})();const $V=new Map,JV=new Map,QV=["gdGap","gdGap.xs","gdGap.sm","gdGap.md","gdGap.lg","gdGap.xl","gdGap.lt-sm","gdGap.lt-md","gdGap.lt-lg","gdGap.lt-xl","gdGap.gt-xs","gdGap.gt-sm","gdGap.gt-md","gdGap.gt-lg"];let ZV=(()=>{class t extends XV{constructor(){super(...arguments),this.inputs=QV}}return t.\u0275fac=function(e){return tG(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdGap",""],["","gdGap.xs",""],["","gdGap.sm",""],["","gdGap.md",""],["","gdGap.lg",""],["","gdGap.xl",""],["","gdGap.lt-sm",""],["","gdGap.lt-md",""],["","gdGap.lt-lg",""],["","gdGap.lt-xl",""],["","gdGap.gt-xs",""],["","gdGap.gt-sm",""],["","gdGap.gt-md",""],["","gdGap.gt-lg",""]],inputs:{gdGap:"gdGap","gdGap.xs":"gdGap.xs","gdGap.sm":"gdGap.sm","gdGap.md":"gdGap.md","gdGap.lg":"gdGap.lg","gdGap.xl":"gdGap.xl","gdGap.lt-sm":"gdGap.lt-sm","gdGap.lt-md":"gdGap.lt-md","gdGap.lt-lg":"gdGap.lt-lg","gdGap.lt-xl":"gdGap.lt-xl","gdGap.gt-xs":"gdGap.gt-xs","gdGap.gt-sm":"gdGap.gt-sm","gdGap.gt-md":"gdGap.gt-md","gdGap.gt-lg":"gdGap.gt-lg"},features:[ho]}),t})();const tG=gn(ZV);let eG=(()=>{class t extends uH{buildStyles(t){return{"grid-row":t||"auto"}}}return t.\u0275fac=function(e){return iG(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const iG=gn(eG);let nG=(()=>{class t extends jB{constructor(t,e,i,n){super(t,e,i,n),this.DIRECTIVE_KEY="grid-row",this.styleCache=sG,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(eG),Lo(cH),Lo(dH))},t.\u0275dir=be({type:t,features:[ho]}),t})();const sG=new Map,rG=["gdRow","gdRow.xs","gdRow.sm","gdRow.md","gdRow.lg","gdRow.xl","gdRow.lt-sm","gdRow.lt-md","gdRow.lt-lg","gdRow.lt-xl","gdRow.gt-xs","gdRow.gt-sm","gdRow.gt-md","gdRow.gt-lg"];let oG=(()=>{class t extends nG{constructor(){super(...arguments),this.inputs=rG}}return t.\u0275fac=function(e){return aG(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdRow",""],["","gdRow.xs",""],["","gdRow.sm",""],["","gdRow.md",""],["","gdRow.lg",""],["","gdRow.xl",""],["","gdRow.lt-sm",""],["","gdRow.lt-md",""],["","gdRow.lt-lg",""],["","gdRow.lt-xl",""],["","gdRow.gt-xs",""],["","gdRow.gt-sm",""],["","gdRow.gt-md",""],["","gdRow.gt-lg",""]],inputs:{gdRow:"gdRow","gdRow.xs":"gdRow.xs","gdRow.sm":"gdRow.sm","gdRow.md":"gdRow.md","gdRow.lg":"gdRow.lg","gdRow.xl":"gdRow.xl","gdRow.lt-sm":"gdRow.lt-sm","gdRow.lt-md":"gdRow.lt-md","gdRow.lt-lg":"gdRow.lt-lg","gdRow.lt-xl":"gdRow.lt-xl","gdRow.gt-xs":"gdRow.gt-xs","gdRow.gt-sm":"gdRow.gt-sm","gdRow.gt-md":"gdRow.gt-md","gdRow.gt-lg":"gdRow.gt-lg"},features:[ho]}),t})();const aG=gn(oG);let cG=(()=>{class t extends uH{buildStyles(t,e){let i=!1;(t=t||"none").endsWith("!")&&(t=t.substring(0,t.indexOf("!")),i=!0);const n={display:e.inline?"inline-grid":"grid","grid-auto-rows":"","grid-template-rows":""};return n[i?"grid-auto-rows":"grid-template-rows"]=t,n}}return t.\u0275fac=function(e){return uG(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const uG=gn(cG);let lG=(()=>{class t extends jB{constructor(t,e,i,n){super(t,e,i,n),this.DIRECTIVE_KEY="grid-rows",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=m_(t)}updateWithValue(t){this.styleCache=this.inline?dG:hG,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(cG),Lo(cH),Lo(dH))},t.\u0275dir=be({type:t,inputs:{inline:["gdInline","inline"]},features:[ho]}),t})();const hG=new Map,dG=new Map,pG=["gdRows","gdRows.xs","gdRows.sm","gdRows.md","gdRows.lg","gdRows.xl","gdRows.lt-sm","gdRows.lt-md","gdRows.lt-lg","gdRows.lt-xl","gdRows.gt-xs","gdRows.gt-sm","gdRows.gt-md","gdRows.gt-lg"];let fG=(()=>{class t extends lG{constructor(){super(...arguments),this.inputs=pG}}return t.\u0275fac=function(e){return gG(e||t)},t.\u0275dir=be({type:t,selectors:[["","gdRows",""],["","gdRows.xs",""],["","gdRows.sm",""],["","gdRows.md",""],["","gdRows.lg",""],["","gdRows.xl",""],["","gdRows.lt-sm",""],["","gdRows.lt-md",""],["","gdRows.lt-lg",""],["","gdRows.lt-xl",""],["","gdRows.gt-xs",""],["","gdRows.gt-sm",""],["","gdRows.gt-md",""],["","gdRows.gt-lg",""]],inputs:{gdRows:"gdRows","gdRows.xs":"gdRows.xs","gdRows.sm":"gdRows.sm","gdRows.md":"gdRows.md","gdRows.lg":"gdRows.lg","gdRows.xl":"gdRows.xl","gdRows.lt-sm":"gdRows.lt-sm","gdRows.lt-md":"gdRows.lt-md","gdRows.lt-lg":"gdRows.lt-lg","gdRows.lt-xl":"gdRows.lt-xl","gdRows.gt-xs":"gdRows.gt-xs","gdRows.gt-sm":"gdRows.gt-sm","gdRows.gt-md":"gdRows.gt-md","gdRows.gt-lg":"gdRows.gt-lg"},features:[ho]}),t})();const gG=gn(fG);let mG=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[DB]]}),t})(),_G=(()=>{class t{constructor(t,e){td(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:IB,useValue:Object.assign(Object.assign({},PB),e)},{provide:FB,useValue:i,multi:!0},{provide:NB,useValue:!0}]:[{provide:IB,useValue:Object.assign(Object.assign({},PB),e)},{provide:FB,useValue:i,multi:!0}]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Vt(NB),Vt(bu))},imports:[[Iq,ZU,mG],Iq,ZU,mG]}),t})();const bG=["*",[["mat-card-footer"]]],yG=["*","mat-card-footer"],wG=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],AG=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],vG=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],MG=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let CG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),SG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),TG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),kG=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),EG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t})(),xG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),LG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t})(),zG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t})(),DG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t})(),RG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t})(),OG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),PG=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(Lo(Nv,8))},t.\u0275cmp=de({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&ua("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:yG,decls:2,vars:0,template:function(t,e){1&t&&($o(bG),Jo(0),Jo(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),IG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:AG,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&($o(wG),Jo(0),Oo(1,"div",0),Jo(2,1),Po(),Jo(3,2))},encapsulation:2,changeDetection:0}),t})(),NG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:MG,decls:4,vars:0,template:function(t,e){1&t&&($o(vG),Oo(0,"div"),Jo(1),Po(),Jo(2,1),Jo(3,2))},encapsulation:2,changeDetection:0}),t})(),FG=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Gv],Gv]}),t})();mw("openClose",[Aw("open",ww({overflow:"hidden"})),Aw("closed",ww({height:"0px",overflow:"hidden"})),Mw("open <=> closed",[_w(".3s ease-in")])]);const BG=mw("flyInOut",[Mw(":enter",[ww({transform:"translateX(100%)"}),_w(".25s")]),Mw(":leave",[_w(".5s",ww({transform:"translateX(100%)"}))])]);function HG(t,e){if(1&t){const t=Ho();Oo(0,"div"),Oo(1,"perun-web-apps-notification",2),Yo("closeNotification",(function(){ii(t);const i=e.index;return Go().removeNotification(i)})),Po(),Po()}if(2&t){const t=e.$implicit;Do("@flyInOut",void 0),vs(1),Do("data",t)("newNotification",!0)}}mw("rollInOut",[Mw(":enter",[ww({height:"0px"}),_w(".25s")]),Mw(":leave",[_w(".25s",ww({height:"0px"}))])]),mw("routeAnimations",[Mw("* => *",[ww({position:"relative"}),Sw(":enter",[ww({width:"100%",opacity:0})],{optional:!0}),Sw(":leave",[ww({position:"absolute",width:"100%",opacity:1}),_w("0.15s",ww({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Sw(":enter",[ww({position:"absolute",width:"100%",opacity:0}),_w("0.15s",ww({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),mw("tagsOpenClose",[Aw("open",ww({})),Aw("closed",ww({width:"0px",height:"0px"})),Mw("open <=> closed",[_w(".3s ease-in")])]),mw("switchAnimations",[Mw("true => false",[Sw(":enter, :leave",ww({})),bw([Sw(":enter",[ww({transform:"translateX(-100%)"}),_w("1s ease-in-out",ww({transform:"translateX(0%)"}))],{optional:!0}),Sw(":leave",[ww({transform:"translateX(0%)",position:"absolute"}),_w("1s ease-in-out",ww({transform:"translateX(100%)"}))],{optional:!0})])]),Mw("false => true",[Sw(":enter, :leave",ww({})),bw([Sw(":enter",[ww({transform:"translateX(100%)"}),_w("1s ease-in-out",ww({transform:"translateX(0%)"}))],{optional:!0}),Sw(":leave",[ww({transform:"translateX(0%)",position:"absolute"}),_w("1s ease-in-out",ww({transform:"translateX(-100%)"}))],{optional:!0})])])]),mw("slideInOutLeft",[Mw(":enter",[ww({transform:"translateX(-100%)",position:"relative"}),_w("0.5s ease-in",ww({transform:"translateX(0%)"}))]),Mw(":leave",[_w("0.5s ease-in",ww({transform:"translateX(-100%)"}))])]),mw("slideInOutRight",[Mw(":enter",[ww({transform:"translateX(100%)",position:"fixed"}),_w("0.5s ease-in",ww({transform:"translateX(0%)"}))]),Mw(":leave",[ww({transform:"translateX(-100%)",position:"relative"}),_w("0.5s ease-in",ww({transform:"translateX(100%)"}))])]);const qG=function(t){return{top:t}};let jG=(()=>{class t{constructor(t){this.notificator=t,this.mobileView=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=OS.minWidth}processNotification(t){this.notifications.push(t)}getNotificatorTop(){return this.mobileView?"initial":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(Lo(MS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&Yo("resize",(function(t){return e.getScreenSize(t)}),!1,Gi)},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(Oo(0,"div",0),Eo(1,HG,2,3,"div",1),Po()),2&t&&(Do("ngStyle",zc(2,qG,e.getNotificatorTop())),vs(1),Do("ngForOf",e.notifications))},directives:[kh,$U,mh,kY],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[BG]}}),t})();const YG=new Nt("perun-api-service");function WG(t,e){if(1&t&&(Oo(0,"span",1),Oo(1,"a",2),va(2),Po(),Po()),2&t){const t=e.$implicit;vs(1),Do("routerLink",t.routerLink),vs(1),Ma(t.label)}}let UG=(()=>{class t{constructor(t,e,i){this.router=t,this.activatedRoute=e,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe(Fd(t=>t instanceof Lf)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,i=""){const n=e.children;0!==n.length&&n.forEach(e=>{const n=e.snapshot.url.map(t=>t.path).join("/");""!==n&&(i+="/"+n);const s=this.translate.instant(e.snapshot.data[t.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:i}),this.createBreadcrumbs(e,i)})}}return t.ROUTE_DATA_BREADCRUMB="breadcrumb",t.\u0275fac=function(e){return new(e||t)(Lo(Wm),Lo(xg),Lo(YC))},t.\u0275cmp=de({type:t,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(t,e){1&t&&Eo(0,WG,3,2,"span",0),2&t&&Do("ngForOf",e.menuItems)},directives:[mh,Km],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}']}),t})();const KG=["thumbContainer"],VG=["toggleBar"],GG=["input"],XG=function(){return{enterDuration:150}},$G=["*"],JG=new Nt("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let QG=0;const ZG={provide:Pk,useExisting:vt(()=>nX),multi:!0};class tX{constructor(t,e){this.source=t,this.checked=e}}class eX{constructor(t){this._elementRef=t}}const iX=Qv($v(Jv(Xv(eX)),"accent"));let nX=(()=>{class t extends iX{constructor(t,e,i,n,s,r,o,a){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=r,this._animationMode=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++QG,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new jc,this.toggleChange=new jc,this.dragChange=new jc,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=m_(t)}get checked(){return this._checked}set checked(t){this._checked=m_(t),this._changeDetectorRef.markForCheck()}get inputId(){return(this.id||this._uniqueId)+"-input"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new tX(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ha),Lo(uw),Lo(Wr),zo("tabindex"),Lo(Ru),Lo(JG),Lo(Nv,8),Lo(Mb,8))},t.\u0275cmp=de({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(eu(KG,!0),eu(VG,!0),eu(GG,!0)),2&t&&(Zc(i=ou())&&(e._thumbEl=i.first),Zc(i=ou())&&(e._thumbBarEl=i.first),Zc(i=ou())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(ka("id",e.id),So("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),ua("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[Ia([ZG]),ho],ngContentSelectors:$G,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&($o(),Oo(0,"label",0,1),Oo(2,"div",2,3),Oo(4,"input",4,5),Yo("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),Po(),Oo(6,"div",6,7),Io(8,"div",8),Oo(9,"div",9),Io(10,"div",10),Po(),Po(),Po(),Oo(11,"span",11,12),Yo("cdkObserveContent",(function(){return e._onLabelTextChange()})),Oo(13,"span",13),va(14,"\xa0"),Po(),Jo(15),Po(),Po()),2&t){const t=xo(1),i=xo(12);So("for",e.inputId),vs(2),ua("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),vs(2),Do("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),So("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),vs(5),Do("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Lc(17,XG))}},directives:[MM,Hy],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})();const sX={provide:$k,useExisting:vt(()=>rX),multi:!0};let rX=(()=>{class t extends px{}return t.\u0275fac=function(e){return oX(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Ia([sX]),ho]}),t})();const oX=gn(rX);let aX=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})(),cX=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[aX,CM,Gv,qy],aX,Gv]}),t})();const uX=function(t){return{color:t}};function lX(t,e){if(1&t&&(Oo(0,"a",12),va(1),Po()),2&t){const t=Go().$implicit,e=Go(3);Do("href",t.link,ns)("ngStyle",zc(3,uX,e.linksTextColor)),vs(1),Ma("en"===e.getLanguage()?t.label_en:t.label_cz)}}function hX(t,e){if(1&t&&(Oo(0,"p",13),va(1),Po()),2&t){const t=Go().$implicit,e=Go(3);Do("ngStyle",zc(2,uX,e.linksTextColor)),vs(1),Ma("en"===e.getLanguage()?t.label_en:t.label_cz)}}function dX(t,e){if(1&t&&(Oo(0,"div",9),Eo(1,lX,2,5,"a",10),Eo(2,hX,2,4,"p",11),Po()),2&t){const t=e.$implicit;vs(1),Do("ngIf",t.link),vs(1),Do("ngIf",!t.link)}}function pX(t,e){if(1&t&&(Oo(0,"div"),Eo(1,dX,3,2,"div",8),Po()),2&t){const t=Go().$implicit;vs(1),Do("ngForOf",t.elements)}}function fX(t,e){if(1&t&&(Oo(0,"div",5),Oo(1,"h5",6),va(2),Po(),Eo(3,pX,2,1,"div",7),Po()),2&t){const t=e.$implicit,i=Go();vs(1),Do("ngStyle",zc(3,uX,i.headersTextColor)),vs(1),Ca(" ","en"===i.getLanguage()?t.title_en:t.title_cz," "),vs(1),Do("ngIf",t.elements)}}function gX(t,e){if(1&t&&(Oo(0,"span"),va(1),Oo(2,"a",14),va(3),Po(),Po()),2&t){const t=e.$implicit,i=e.index,n=Go();vs(1),Ca(" ",i?",":"\xa0",""),vs(1),Do("href",t.url,ns)("ngStyle",zc(4,uX,n.linksTextColor)),vs(1),Ma(t.name)}}const mX=function(t){return{background:t}};let _X=(()=>{class t{constructor(t,e){this.storeService=t,this.translateService=e,this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color")}ngOnInit(){this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items")}getLanguage(){return this.translateService.currentLang}}return t.\u0275fac=function(e){return new(e||t)(Lo(g_),Lo(YC))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-footer-user-profile"]],decls:6,vars:9,consts:[[1,"wrap-content",3,"ngStyle"],["fxLayout","row","fxLayoutAlign","space-evenly none"],["fxLayout","column","fxLayoutAlign","none left",4,"ngFor","ngForOf"],["fxLayoutAlign","center",3,"ngStyle"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","none left"],[1,"ml-1",3,"ngStyle"],[4,"ngIf"],["class","ml-1",4,"ngFor","ngForOf"],[1,"ml-1"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[3,"ngStyle",4,"ngIf"],["target","_blank",3,"href","ngStyle"],[3,"ngStyle"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"]],template:function(t,e){1&t&&(Oo(0,"footer",0),Oo(1,"div",1),Eo(2,fX,4,5,"div",2),Po(),Oo(3,"div",3),va(4),Eo(5,gX,4,6,"span",4),Po(),Po()),2&t&&(Do("ngStyle",zc(5,mX,e.bgColor)),vs(2),Do("ngForOf",e.items),vs(1),Do("ngStyle",zc(7,uX,e.linksTextColor)),vs(1),Ca(" \xa9 ",e.currentYear," Copyright: "),vs(1),Do("ngForOf",e.copyrightItems))},directives:[kh,$U,vH,Tq,mh,bh],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.wrap-content[_ngcontent-%COMP%]{padding-top:15px;padding-bottom:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),t})();function bX(t,e){1&t&&Io(0,"th",18)}function yX(t,e){if(1&t){const t=Ho();Oo(0,"td",19),Oo(1,"mat-checkbox",20),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function wX(t,e){1&t&&(Oo(0,"th",21),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function AX(t,e){if(1&t&&(Oo(0,"td",19),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.id)}}function vX(t,e){1&t&&Io(0,"th",18)}function MX(t,e){if(1&t&&(Oo(0,"td",22),Io(1,"perun-web-apps-recently-viewed-icon",23),Po()),2&t){const t=e.$implicit,i=Go();vs(1),Do("recentIds",i.recentIds)("id",t.id)}}function CX(t,e){1&t&&(Oo(0,"th",21),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function SX(t,e){if(1&t&&(Oo(0,"td",22),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.shortName)}}function TX(t,e){1&t&&(Oo(0,"th",21),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function kX(t,e){if(1&t&&(Oo(0,"td",22),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.name)}}function EX(t,e){1&t&&Io(0,"tr",24)}const xX=function(t){return["/organizations",t]};function LX(t,e){if(1&t&&Io(0,"tr",25),2&t){const t=e.$implicit,i=Go();ua("disable-outline",i.disableRouting),Do("routerLink",i.disableRouting?null:zc(4,xX,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:zc(6,xX,t.id))}}function zX(t,e){1&t&&(Oo(0,"app-alert",26),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function DX(t,e){1&t&&(Oo(0,"app-alert",26),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let RX=(()=>{class t{constructor(t){this.authResolver=t,this.vos=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.pageSizeOptions=oC,this.page=new jc}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ZT(this.vos),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getDataForColumn,this),this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ip))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),eu(fP,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.paginator=i.first))},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[ze],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,bX,1,0,"th",6),Eo(7,yX,2,2,"td",7),Fo(),No(8,8),Eo(9,wX,3,3,"th",9),Eo(10,AX,2,1,"td",7),Fo(),No(11,10),Eo(12,vX,1,0,"th",6),Eo(13,MX,2,2,"td",11),Fo(),No(14,12),Eo(15,CX,3,3,"th",9),Eo(16,SX,2,1,"td",11),Fo(),No(17,13),Eo(18,TX,3,3,"th",9),Eo(19,kX,2,1,"td",11),Fo(),Eo(20,EX,1,0,"tr",14),Eo(21,LX,1,8,"tr",15),Po(),Po(),Oo(22,"mat-paginator",16),Yo("page",(function(t){return e.page.emit(t)})),Po(),Po(),Po(),Eo(23,zX,3,3,"app-alert",17),Eo(24,DX,3,3,"app-alert",17)),2&t&&(Do("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),vs(4),Do("dataSource",e.dataSource),vs(16),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.vos.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),vs(1),Do("ngIf",0===e.vos.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,NT,hR,xP,WN,WT,GT,Um,rI,aD],pipes:[UC],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})(),OX=(()=>{class t{constructor(){this.refresh=new jc}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(Oo(0,"button",0),Yo("click",(function(t){return e.onClickbutton(t)})),Ic(1,"translate"),Io(2,"mat-icon",1),Po()),2&t&&(Qo("matTooltip",Nc(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),Do("disabled",e.disabled),vs(2),Qo("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[ZC,SD,wS],pipes:[UC],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})();const PX=function(t){return{color:t}};let IX=(()=>{class t{constructor(t,e){this.location=t,this.storeService=e}ngOnInit(){this.backButtonColor=this.storeService.get("theme","backButtonColor")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(Lo(Sl),Lo(g_))},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"button",0),Yo("click",(function(){return e.goBack()})),Ic(1,"translate"),Oo(2,"mat-icon",1),va(3,"arrow_right_alt"),Po(),Po()),2&t&&(Qo("matTooltip",Nc(1,2,"Back")),Do("ngStyle",zc(4,PX,e.backButtonColor)))},directives:[ZC,kh,SD,wS],pipes:[UC],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t})();function NX(t,e){if(1&t&&(Oo(0,"div",3),Oo(1,"a",4),Io(2,"mat-icon",5),va(3),Ic(4,"translate"),Po(),Po()),2&t){const t=e.$implicit;vs(1),Ta("",t.style," item-itself"),Do("routerLink",t.url),vs(1),Do("svgIcon",t.cssIcon),vs(1),Ca(" ",Nc(4,6,t.label)," ")}}function FX(t,e){if(1&t&&(Oo(0,"div",1),Eo(1,NX,5,8,"div",2),Po()),2&t){const t=Go();vs(1),Do("ngForOf",t.items)}}let BX=(()=>{class t{constructor(t,e){this.dialog=t,this.route=e,this.size="large"}ngOnInit(){this.route.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM),Lo(xg))},t.\u0275cmp=de({type:t,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,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&Eo(0,FX,2,1,"div",0),2&t&&Do("ngIf","small"===e.size)},directives:[bh,mh,MM,Km,wS],pipes:[UC],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}}"]}),t})();function HX(t,e){if(1&t){const t=Ho();Oo(0,"th",19),Oo(1,"mat-checkbox",20),Yo("change",(function(e){ii(t);const i=Go();return e&&i.masterToggle(),i.selectionChange.emit()})),Po(),Po()}if(2&t){const t=Go();vs(1),Do("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function qX(t,e){if(1&t){const t=Ho();Oo(0,"td",21),Oo(1,"mat-checkbox",22),Yo("click",(function(e){return ii(t),e.stopPropagation()}))("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i&&s.selection.toggle(n),s.selectionChange.emit()})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("checked",i.selection.isSelected(t))("aria-label",i.checkboxLabel(t))}}function jX(t,e){1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function YX(t,e){if(1&t&&(Oo(0,"div"),va(1),Po()),2&t){const t=Go().$implicit;vs(1),Ma(t.task.id)}}function WX(t,e){1&t&&(Oo(0,"div"),va(1,"0"),Po())}function UX(t,e){if(1&t&&(Oo(0,"td",21),Eo(1,YX,2,1,"div",24),Eo(2,WX,2,0,"div",24),Po()),2&t){const t=e.$implicit;vs(1),Do("ngIf",t.task),vs(1),Do("ngIf",!t.task)}}function KX(t,e){1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function VX(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.service.name)}}function GX(t,e){1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function XX(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.status)}}function $X(t,e){1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function JX(t,e){if(1&t&&(Oo(0,"td",25),va(1),Ic(2,"serviceStateBlockedToString"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t))}}function QX(t,e){1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function ZX(t,e){if(1&t&&(Oo(0,"div"),va(1),Ic(2,"date"),Po()),2&t){const t=Go().$implicit;vs(1),Ma(Fc(2,1,t.task.startTime,"d.M.y H:mm:ss"))}}function t$(t,e){1&t&&(Oo(0,"div"),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function e$(t,e){if(1&t&&(Oo(0,"td",25),Eo(1,ZX,3,4,"div",24),Eo(2,t$,3,3,"div",24),Po()),2&t){const t=e.$implicit;vs(1),Do("ngIf",t.task&&t.task.startTime),vs(1),Do("ngIf",!t.task||!t.task.startTime)}}function i$(t,e){1&t&&(Oo(0,"th",23),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function n$(t,e){if(1&t&&(Oo(0,"div"),va(1),Ic(2,"date"),Po()),2&t){const t=Go().$implicit;vs(1),Ma(Fc(2,1,t.task.endTime,"d.M.y H:mm:ss"))}}function s$(t,e){1&t&&(Oo(0,"div"),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function r$(t,e){if(1&t&&(Oo(0,"td",25),Eo(1,n$,3,4,"div",24),Eo(2,s$,3,3,"div",24),Po()),2&t){const t=e.$implicit;vs(1),Do("ngIf",t.task&&t.task.endTime),vs(1),Do("ngIf",!t.task||!t.task.endTime)}}function o$(t,e){1&t&&Io(0,"tr",26)}const a$=function(t,e){return["/facilities",t,"services-status",e]};function c$(t,e){if(1&t&&Io(0,"tr",27),2&t){const t=e.$implicit,i=Go();ua("disable-outline",i.disableRouting||!t.task)("make-yellow","WARNING"===t.status)("make-green","DONE"===t.status)("make-red","GENERROR"===t.status||"SENDERROR"===t.status||"ERROR"===t.status)("cursor-pointer",!i.disableRouting&&null!==t.task),Do("routerLink",i.disableRouting||null===t.task?null:Dc(12,a$,t.facility.id,t.taskId))("perunWebAppsMiddleClickRouterLink",i.disableRouting||null===t.task?null:Dc(15,a$,t.facility.id,t.taskId))}}function u$(t,e){1&t&&(Oo(0,"app-alert",28),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function l$(t,e){1&t&&(Oo(0,"app-alert",28),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let h$=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.servicesStatus=[],this.hideColumns=[],this.selection=new xb(!0,[]),this.pageSize=10,this.disableRouting=!0,this.page=new jc,this.selectionChange=new jc,this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.pageSizeOptions=oC}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"task.id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new ZT(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(t,e)=>{const i=e.trim().toLowerCase(),n=t=>{let e="";return Object.values(t).forEach(t=>{"object"!=typeof t?e=e+" "+t:null!==t&&(e=e+" "+n(t))}),e.trim().toLowerCase()};return n(t).includes(i)},this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?Xl(t.task.startTime,"d.M.y H:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?Xl(t.task.endTime,"d.M.y H:mm:ss","en"):t[e];default:return t[e]}}getSortDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?Xl(t.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?Xl(t.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];default:return t[e]}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ip),Lo(xS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),tu(fP,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.matPaginator=i.first))},inputs:{servicesStatus:"servicesStatus",hideColumns:"hideColumns",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page",selectionChange:"selectionChange"},features:[ze],decls:30,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"table",3),No(4,4),Eo(5,HX,2,3,"th",5),Eo(6,qX,2,2,"td",6),Fo(),No(7,7),Eo(8,jX,3,3,"th",8),Eo(9,UX,3,2,"td",6),Fo(),No(10,9),Eo(11,KX,3,3,"th",8),Eo(12,VX,2,1,"td",10),Fo(),No(13,11),Eo(14,GX,3,3,"th",8),Eo(15,XX,2,1,"td",10),Fo(),No(16,12),Eo(17,$X,3,3,"th",8),Eo(18,JX,3,3,"td",10),Fo(),No(19,13),Eo(20,QX,3,3,"th",8),Eo(21,e$,3,2,"td",10),Fo(),No(22,14),Eo(23,i$,3,3,"th",8),Eo(24,r$,3,2,"td",10),Fo(),Eo(25,o$,1,0,"tr",15),Eo(26,c$,1,18,"tr",16),Po(),Oo(27,"mat-paginator",17),Yo("page",(function(t){return e.page.emit(t)})),Po(),Po(),Po(),Eo(28,u$,3,3,"app-alert",18),Eo(29,l$,3,3,"app-alert",18)),2&t&&(Do("hidden",0===e.dataSource.filteredData.length||0===e.servicesStatus.length),vs(3),Do("dataSource",e.dataSource),vs(22),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.servicesStatus.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0===e.dataSource.filteredData.length&&0!==e.servicesStatus.length),vs(1),Do("ngIf",0===e.servicesStatus.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,hR,NT,xP,WT,GT,Um,rI,aD],pipes:[UC,lz,Bh],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}"]}),t})(),d$=(()=>{class t{constructor(){this.voSelected=new jc,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.shortName,this.searchFunction=t=>t.name+t.shortName+t.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:13,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(Oo(0,"perun-web-apps-entity-search-select",0),Yo("entitySelected",(function(t){return e.voSelected.emit(t)})),Ic(1,"translate"),Ic(2,"translate"),Ic(3,"translate"),Po()),2&t&&Do("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",Nc(1,7,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",Nc(2,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",Nc(3,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[YW],pipes:[UC],styles:[""]}),t})(),p$=(()=>{class t{transform(t,...e){return mC(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ye({name:"memberOrganization",type:t,pure:!0}),t})();function f$(t,e){if(1&t){const t=Ho();Oo(0,"th",25),Oo(1,"mat-checkbox",26),Yo("change",(function(e){ii(t);const i=Go();return e?i.masterToggle():null})),Po(),Po()}if(2&t){const t=Go();vs(1),Do("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function g$(t,e){if(1&t){const t=Ho();Oo(0,"td",27),Oo(1,"mat-checkbox",28),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Ic(2,"translate"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","DIRECT"!==t.membershipType)("matTooltip","DIRECT"!==t.membershipType?Nc(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function m$(t,e){1&t&&(Oo(0,"th",29),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.ID")))}function _$(t,e){if(1&t&&(Oo(0,"td",27),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.id)}}function b$(t,e){1&t&&Io(0,"th",29)}function y$(t,e){1&t&&(Oo(0,"mat-icon",32),Ic(1,"translate"),va(2,"transfer_within_a_station"),Po()),2&t&&Do("matTooltip",Nc(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function w$(t,e){if(1&t&&(Oo(0,"td",30),Eo(1,y$,3,3,"mat-icon",31),Po()),2&t){const t=e.$implicit;vs(1),Do("ngIf","DIRECT"!==t.membershipType)}}function A$(t,e){1&t&&(Oo(0,"th",29),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.NAME")))}function v$(t,e){if(1&t&&(Oo(0,"td",30),va(1),Ic(2,"userFullName"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t.user))}}function M$(t,e){1&t&&(Oo(0,"th",29),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.STATUS")))}function C$(t,e){if(1&t){const t=Ho();Oo(0,"td",30),Oo(1,"i",33),Yo("click",(function(i){ii(t);const n=e.$implicit;return Go().changeStatus(i,n)})),Ic(2,"memberStatusIconColor"),Ic(3,"memberStatusTooltip"),Oo(4,"span"),va(5),Ic(6,"memberStatusIcon"),Po(),Po(),Po()}if(2&t){const t=e.$implicit;vs(1),Ta("material-icons ",Nc(2,5,t.status),""),Qo("matTooltip",Fc(3,7,t,!1)),vs(4),Ca(" ",Nc(6,10,t.status)," ")}}function S$(t,e){1&t&&(Oo(0,"th",29),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function T$(t,e){if(1&t){const t=Ho();Oo(0,"td",30),Oo(1,"i",33),Yo("click",(function(i){ii(t);const n=e.$implicit;return Go().changeStatus(i,n)})),Ic(2,"memberStatusIconColor"),Ic(3,"memberStatusTooltip"),Oo(4,"span"),va(5),Ic(6,"memberStatusIcon"),Po(),Po(),Po()}if(2&t){const t=e.$implicit;vs(1),Ta("material-icons ",Nc(2,5,t.groupStatus),""),Qo("matTooltip",Fc(3,7,t,!0)),vs(4),Ca(" ",Nc(6,10,t.groupStatus)," ")}}function k$(t,e){1&t&&(Oo(0,"th",34),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function E$(t,e){1&t&&(Oo(0,"mat-icon"),va(1,"check_circle_outline"),Po())}function x$(t,e){if(1&t&&(Oo(0,"td",35),Eo(1,E$,2,0,"mat-icon",36),Po()),2&t){const t=e.$implicit;vs(1),Do("ngIf",t.sponsored)}}function L$(t,e){1&t&&(Oo(0,"th",29),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.ORGANIZATION")))}function z$(t,e){if(1&t&&(Oo(0,"td",30),va(1),Ic(2,"memberOrganization"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t))}}function D$(t,e){1&t&&(Oo(0,"th",29),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.EMAIL")))}function R$(t,e){if(1&t&&(Oo(0,"td",30),va(1),Ic(2,"memberEmail"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t))}}function O$(t,e){1&t&&(Oo(0,"th",25),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.LOGINS")))}function P$(t,e){if(1&t&&(Oo(0,"td",30),va(1),Ic(2,"memberLogins"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t))}}function I$(t,e){1&t&&Io(0,"tr",37)}const N$=function(t,e){return["/organizations",t,"members",e]};function F$(t,e){if(1&t&&Io(0,"tr",38),2&t){const t=e.$implicit,i=Go();ua("disable-outline",i.disableRouting)("cursor-pointer",!i.disableRouting)("italic_font","DIRECT"!==t.membershipType),Do("routerLink",i.disableRouting?null:Dc(8,N$,t.voId,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:Dc(11,N$,t.voId,t.id))}}function B$(t,e){1&t&&(Oo(0,"app-alert",39),va(1),Ic(2,"translate"),Po()),2&t&&(Do("alert_type","warn"),vs(1),Ca(" ",Nc(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function H$(t,e){1&t&&(Oo(0,"app-alert",39),va(1),Ic(2,"translate"),Po()),2&t&&(Do("alert_type","warn"),vs(1),Ca(" ",Nc(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let q$=(()=>{class t{constructor(t,e,i){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.selection=new xb,this.hideColumns=[],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new jc,this.updateTable=new jc,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.pageSizeOptions=oC,this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return mC(t);case"email":return aC(t);default:return""}}getFilterDataForColumn(t,e){var i;switch(e){case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"":"";case"email":return aC(t);case"logins":return cC(t);default:return""}}getExportDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?uC(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return mC(t);case"email":return aC(t);case"logins":return cC(t);default:return""}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getSortDataForColumn,this),this.dataSource.filter=this.filter,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.paginator}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new ZT(this.members),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e){if(t.stopPropagation(),"INVALID"===e.status){const t=pC();t.width="500px",t.data={member:e},this.dialog.open(Tz,t).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM),Lo(Ip),Lo(xS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),tu(fP,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.matPaginator=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page",updateTable:"updateTable"},features:[ze],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["mat-header-cell","","class","center new-line",4,"matHeaderCellDef"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","italic_font","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,f$,2,3,"th",6),Eo(7,g$,3,6,"td",7),Fo(),No(8,8),Eo(9,m$,3,3,"th",9),Eo(10,_$,2,1,"td",7),Fo(),No(11,10),Eo(12,b$,1,0,"th",9),Eo(13,w$,2,1,"td",11),Fo(),No(14,12),Eo(15,A$,3,3,"th",9),Eo(16,v$,3,3,"td",11),Fo(),No(17,13),Eo(18,M$,3,3,"th",9),Eo(19,C$,7,12,"td",11),Fo(),No(20,14),Eo(21,S$,3,3,"th",9),Eo(22,T$,7,12,"td",11),Fo(),No(23,15),Eo(24,k$,3,3,"th",16),Eo(25,x$,2,1,"td",17),Fo(),No(26,18),Eo(27,L$,3,3,"th",9),Eo(28,z$,3,3,"td",11),Fo(),No(29,19),Eo(30,D$,3,3,"th",9),Eo(31,R$,3,3,"td",11),Fo(),No(32,20),Eo(33,O$,3,3,"th",6),Eo(34,P$,3,3,"td",11),Fo(),Eo(35,I$,1,0,"tr",21),Eo(36,F$,1,14,"tr",22),Po(),Po(),Oo(37,"mat-paginator",23),Yo("page",(function(t){return e.pageChanged(t)})),Po(),Po(),Po(),Eo(38,B$,3,4,"app-alert",24),Eo(39,H$,3,4,"app-alert",24)),2&t&&(Do("hidden",0===e.members.length||0===e.dataSource.filteredData.length),vs(4),Do("dataSource",e.dataSource),vs(31),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.members.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0!==e.members.length&&0===e.dataSource.filteredData.length),vs(1),Do("ngIf",0===e.members.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,hR,NT,SD,xP,wS,WT,GT,Um,rI,aD],pipes:[UC,az,hz,pz,dz,p$,fz,gz],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}.italic_font[_ngcontent-%COMP%]{font-style:italic}"]}),t})();function j$(t,e){if(1&t){const t=Ho();Oo(0,"th",23),Oo(1,"mat-checkbox",24),Yo("change",(function(e){ii(t);const i=Go();return e?i.masterToggle():null})),Po(),Po()}if(2&t){const t=Go();vs(1),Do("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Y$(t,e){if(1&t){const t=Ho();Oo(0,"td",25),Oo(1,"mat-checkbox",26),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function W$(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function U$(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.id)}}function K$(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function V$(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.destination.destination)}}function G$(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function X$(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.destination.type.toUpperCase())}}function $$(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function J$(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.service.name)}}function Q$(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function Z$(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.status)}}function tJ(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function eJ(t,e){if(1&t&&(Oo(0,"td",25),va(1),Ic(2,"date"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Fc(2,1,t.timestamp,"d.M.y H:mm:ss"))}}function iJ(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function nJ(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.returnCode)}}function sJ(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function rJ(t,e){if(1&t&&(Oo(0,"span"),va(1),Io(2,"br"),Po()),2&t){const t=e.$implicit;vs(1),Ma(t)}}function oJ(t,e){if(1&t&&(Oo(0,"td",25),Eo(1,rJ,3,1,"span",28),Po()),2&t){const t=e.$implicit;vs(1),Do("ngForOf",t.standardMessage.split("\n"))}}function aJ(t,e){1&t&&(Oo(0,"th",27),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function cJ(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.errorMessage)}}function uJ(t,e){1&t&&Io(0,"tr",29)}function lJ(t,e){if(1&t&&Io(0,"tr",30),2&t){const t=e.$implicit;ua("yellowTableItem","WARNING"===t.status)("greenTableItem","DONE"===t.status)("redTableItem","ERROR"===t.status||"DENIED"===t.status)}}function hJ(t,e){1&t&&(Oo(0,"app-alert",31),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function dJ(t,e){1&t&&(Oo(0,"app-alert",31),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let pJ=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.pageSizeOptions=oC,this.taskResults=[],this.selection=new xb(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.page=new jc}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ZT(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return Xl(t.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}getSortDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return Xl(t.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getSortDataForColumn,this))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.paginator}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ip),Lo(xS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),tu(fP,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.matPaginator=i.first))},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[ze],decls:40,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",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,"yellowTableItem","greenTableItem","redTableItem",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,j$,2,3,"th",6),Eo(7,Y$,2,2,"td",7),Fo(),No(8,8),Eo(9,W$,3,3,"th",9),Eo(10,U$,2,1,"td",10),Fo(),No(11,11),Eo(12,K$,3,3,"th",9),Eo(13,V$,2,1,"td",10),Fo(),No(14,12),Eo(15,G$,3,3,"th",9),Eo(16,X$,2,1,"td",10),Fo(),No(17,13),Eo(18,$$,3,3,"th",9),Eo(19,J$,2,1,"td",10),Fo(),No(20,14),Eo(21,Q$,3,3,"th",9),Eo(22,Z$,2,1,"td",10),Fo(),No(23,15),Eo(24,tJ,3,3,"th",9),Eo(25,eJ,3,4,"td",10),Fo(),No(26,16),Eo(27,iJ,3,3,"th",9),Eo(28,nJ,2,1,"td",10),Fo(),No(29,17),Eo(30,sJ,3,3,"th",9),Eo(31,oJ,2,1,"td",10),Fo(),No(32,18),Eo(33,aJ,3,3,"th",9),Eo(34,cJ,2,1,"td",10),Fo(),Eo(35,uJ,1,0,"tr",19),Eo(36,lJ,1,6,"tr",20),Po(),Po(),Oo(37,"mat-paginator",21),Yo("page",(function(t){return e.page.emit(t)})),Po(),Po(),Po(),Eo(38,hJ,3,3,"app-alert",22),Eo(39,dJ,3,3,"app-alert",22)),2&t&&(Do("hidden",0===e.dataSource.filteredData.length||0===e.taskResults.length),vs(4),Do("dataSource",e.dataSource),vs(31),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.taskResults.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0===e.dataSource.filteredData.length&&0!==e.taskResults.length),vs(1),Do("ngIf",0===e.taskResults.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,hR,NT,xP,mh,WT,GT,aD],pipes:[UC,Bh],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),t})(),fJ=(()=>{class t{constructor(){this.resourceSelected=new jc,this.nameFunction=t=>t.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resources:"resources"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(Oo(0,"perun-web-apps-entity-search-select",0),Yo("entitySelected",(function(t){return e.resourceSelected.emit(t)})),Ic(1,"translate"),Ic(2,"translate"),Ic(3,"translate"),Po()),2&t&&Do("entities",e.resources)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",Nc(1,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",Nc(2,8,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",Nc(3,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[YW],pipes:[UC],styles:[""]}),t})(),gJ=(()=>{class t{constructor(){this.memberSelected=new jc,this.memberFullNameFunction=t=>uC(t.user)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"perun-web-apps-entity-search-select",0),Yo("entitySelected",(function(t){return e.memberSelected.emit(t)})),Ic(1,"translate"),Ic(2,"translate"),Ic(3,"translate"),Po()),2&t&&Do("entities",e.members)("searchFunction",e.memberFullNameFunction)("mainTextFunction",e.memberFullNameFunction)("selectPlaceholder",Nc(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",Nc(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",Nc(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[YW],pipes:[UC],styles:[""]}),t})(),mJ=(()=>{class t{constructor(){this.facilitySelected=new jc,this.nameFunction=t=>t.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(Oo(0,"perun-web-apps-entity-search-select",0),Yo("entitySelected",(function(t){return e.facilitySelected.emit(t)})),Ic(1,"translate"),Ic(2,"translate"),Ic(3,"translate"),Po()),2&t&&Do("entities",e.facilities)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",Nc(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",Nc(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",Nc(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[YW],pipes:[UC],styles:[""]}),t})(),_J=(()=>{class t{constructor(){this.disableAutoSelect=!1,this.userSelected=new jc,this.userFullNameFunction=uC}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,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(t,e){1&t&&(Oo(0,"perun-web-apps-entity-search-select",0),Yo("entitySelected",(function(t){return e.userSelected.emit(t)})),Ic(1,"translate"),Ic(2,"translate"),Ic(3,"translate"),Po()),2&t&&Do("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",Nc(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",Nc(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",Nc(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[YW],pipes:[UC],styles:[""]}),t})();function bJ(t,e){if(1&t&&(Oo(0,"div",6),va(1),Po()),2&t){const t=e.$implicit,i=Go();vs(1),Ca(" ",t[i.paramName]," ")}}function yJ(t,e){1&t&&(Oo(0,"mat-icon"),va(1,"more_horiz"),Po())}function wJ(t,e){1&t&&(Oo(0,"mat-icon"),va(1,"keyboard_arrow_up"),Po())}function AJ(t,e){if(1&t){const t=Ho();Oo(0,"button",7),Yo("click",(function(){return ii(t),Go().onShowChange()})),Eo(1,yJ,2,0,"mat-icon",8),Eo(2,wJ,2,0,"mat-icon",8),Po()}if(2&t){const t=Go();vs(1),Do("ngIf",!t.showMore),vs(1),Do("ngIf",t.showMore)}}let vJ=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[ze],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(t,e){1&t&&(Oo(0,"form",0),Oo(1,"div",1),Oo(2,"div",2),Eo(3,bJ,2,1,"div",3),Po(),Oo(4,"div"),Oo(5,"span",4),Eo(6,AJ,3,2,"button",5),Po(),Po(),Po(),Po()),2&t&&(vs(3),Do("ngForOf",e.objects.slice(0,e.itemsShown)),vs(2),Do("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),vs(1),Do("ngIf",e.objects.length>e.defaultItemsShown))},directives:[JE,Vk,YE,mh,SD,bh,ZC,wS],styles:[""]}),t})();function MJ(t,e){1&t&&Io(0,"th",21)}function CJ(t,e){if(1&t){const t=Ho();Oo(0,"td",22),Oo(1,"mat-checkbox",23),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function SJ(t,e){1&t&&(Oo(0,"th",24),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function TJ(t,e){if(1&t&&(Oo(0,"td",22),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.facility.id)}}function kJ(t,e){1&t&&Io(0,"th",21)}function EJ(t,e){if(1&t&&(Oo(0,"td",25),Io(1,"perun-web-apps-recently-viewed-icon",26),Po()),2&t){const t=e.$implicit,i=Go();vs(1),Do("recentIds",i.recentIds)("id",t.facility.id)}}function xJ(t,e){1&t&&(Oo(0,"th",24),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function LJ(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.facility.name)}}function zJ(t,e){1&t&&(Oo(0,"th",21),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function DJ(t,e){if(1&t&&(Oo(0,"td",25),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.facility.description)}}function RJ(t,e){1&t&&(Oo(0,"th",21),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function OJ(t,e){if(1&t&&(Oo(0,"td",25),va(1),Ic(2,"technicalOwners"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t.owners))}}function PJ(t,e){1&t&&(Oo(0,"th",21),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function IJ(t,e){if(1&t){const t=Ho();Oo(0,"td",25),Oo(1,"perun-web-apps-object-list-values",27),Yo("mouseenter",(function(){return ii(t),Go().disableRouting=!0}))("mouseleave",(function(){return ii(t),Go().disableRouting=!1})),Ic(2,"filterUniqueObjects"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("paramName","destination")("objects",Bc(2,2,t.destinations,i.filterValue,"destination"))}}function NJ(t,e){1&t&&(Oo(0,"th",21),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function FJ(t,e){if(1&t){const t=Ho();Oo(0,"td",25),Oo(1,"perun-web-apps-object-list-values",27),Yo("mouseenter",(function(){return ii(t),Go().disableRouting=!0}))("mouseleave",(function(){return ii(t),Go().disableRouting=!1})),Ic(2,"filterUniqueObjects"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("paramName","hostname")("objects",Bc(2,2,t.hosts,i.filterValue,"hostname"))}}function BJ(t,e){1&t&&Io(0,"tr",28)}const HJ=function(){return[]},qJ=function(t){return["/facilities",t]};function jJ(t,e){if(1&t&&Io(0,"tr",29),2&t){const t=e.$implicit;Do("routerLink",Go().disableRouting?Lc(2,HJ):zc(3,qJ,t.facility.id))("perunWebAppsMiddleClickRouterLink",zc(5,qJ,t.facility.id))}}function YJ(t,e){1&t&&(Oo(0,"app-alert",30),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function WJ(t,e){1&t&&(Oo(0,"app-alert",30),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ca(" ",Nc(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let UJ=(()=>{class t{constructor(t,e){this.authResolver=t,this.cd=e,this.pageSize=10,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=oC,this.page=new jc}set matSort(t){this.sort=t,this.setDataSource()}set matPaginator(t){this.paginator=t,this.setDataSource(),this.cd.detectChanges()}ngOnChanges(t){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return lC(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(t=>t.destination).join(" ; ");case"hosts":return t.hosts.map(t=>t.hostname).join(" ; ");default:return t[e]}}exportData(t){AC(wC(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.paginator&&(this.dataSource||(this.dataSource=new ZT,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filterPredicate=(t,e)=>yC(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>bC(t,e,this.getDataForColumn,this)),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}pageChanged(t){this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(Lo(Ip),Lo(Wr))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){var i;1&t&&(tu(AP,!0),eu(fP,!0)),2&t&&(Zc(i=ou())&&(e.matSort=i.first),Zc(i=ou())&&(e.matPaginator=i.first))},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[ze],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["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,"routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[3,"paramName","objects","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"perun-web-apps-table-options",2),Yo("exportData",(function(t){return e.exportData(t)})),Po(),Oo(3,"div",3),Oo(4,"table",4),No(5,5),Eo(6,MJ,1,0,"th",6),Eo(7,CJ,2,2,"td",7),Fo(),No(8,8),Eo(9,SJ,3,3,"th",9),Eo(10,TJ,2,1,"td",7),Fo(),No(11,10),Eo(12,kJ,1,0,"th",6),Eo(13,EJ,2,2,"td",11),Fo(),No(14,12),Eo(15,xJ,3,3,"th",9),Eo(16,LJ,2,1,"td",11),Fo(),No(17,13),Eo(18,zJ,3,3,"th",6),Eo(19,DJ,2,1,"td",11),Fo(),No(20,14),Eo(21,RJ,3,3,"th",6),Eo(22,OJ,3,3,"td",11),Fo(),No(23,15),Eo(24,PJ,3,3,"th",6),Eo(25,IJ,3,6,"td",11),Fo(),No(26,16),Eo(27,NJ,3,3,"th",6),Eo(28,FJ,3,6,"td",11),Fo(),Eo(29,BJ,1,0,"tr",17),Eo(30,jJ,1,7,"tr",18),Po(),Po(),Oo(31,"mat-paginator",19),Yo("page",(function(t){return e.pageChanged(t)})),Po(),Po(),Po(),Eo(32,YJ,3,3,"app-alert",20),Eo(33,WJ,3,3,"app-alert",20)),2&t&&(Do("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),vs(4),Do("dataSource",e.dataSource),vs(25),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.facilities.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.facilities.length),vs(1),Do("ngIf",0===e.facilities.length))},directives:[iI,ST,AP,RT,xT,kT,FT,jT,fP,bh,PT,NT,hR,xP,WN,vJ,WT,GT,Um,rI,aD],pipes:[UC,_z,bz],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t})(),KJ=(()=>{class t{constructor(){this.datePicker=new jc}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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"space-right",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(t,e){if(1&t){const t=Ho();Oo(0,"mat-form-field",0),Yo("click",(function(){return ii(t),xo(7).open()})),Oo(1,"mat-label"),va(2),Ic(3,"translate"),Po(),Oo(4,"input",1),Yo("dateChange",(function(){return e.dateChange()})),Po(),Io(5,"mat-datepicker-toggle",2),Io(6,"mat-datepicker",null,3),Po(),Oo(8,"mat-form-field",4),Yo("click",(function(){return ii(t),xo(15).open()})),Oo(9,"mat-label"),va(10),Ic(11,"translate"),Po(),Oo(12,"input",1),Yo("dateChange",(function(){return e.dateChange()})),Po(),Io(13,"mat-datepicker-toggle",2),Io(14,"mat-datepicker",null,5),Po()}if(2&t){const t=xo(7),i=xo(15);vs(2),Ma(Nc(3,12,"VO_DETAIL.APPLICATION.DATE.START")),vs(2),Do("matDatepicker",t)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),vs(1),Do("for",t),vs(5),Ma(Nc(11,14,"VO_DETAIL.APPLICATION.DATE.END")),vs(2),Do("matDatepicker",i)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),vs(1),Do("for",i)}},directives:[Rk,Ck,Bx,$L,Hk,Kk,tx,QL,kk,KL],pipes:[UC],styles:[""]}),t})();const VJ=["groupFilterInput"];let GJ=(()=>{class t{constructor(){this.filter=new jc}ngOnInit(){v_(this.groupFilterInput.nativeElement,"keyup").pipe(P(t=>t.target.value),Oy(500),B_()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){var i;1&t&&tu(VJ,!0),2&t&&Zc(i=ou())&&(e.groupFilterInput=i.first)},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(Oo(0,"mat-form-field",0),Io(1,"input",1,2),Ic(3,"translate"),Po()),2&t&&(vs(1),Qo("placeholder",Nc(3,1,e.placeholder)))},directives:[Rk,Bx],pipes:[UC],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function XJ(t,e){1&t&&(Oo(0,"div",23),Io(1,"mat-spinner",24),Po())}function $J(t,e){if(1&t){const t=Ho();Oo(0,"th",25),Oo(1,"mat-checkbox",26),Yo("change",(function(e){ii(t);const i=Go();return e?i.masterToggle():null})),Po(),Po()}if(2&t){const t=Go();vs(1),Do("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function JJ(t,e){if(1&t){const t=Ho();Oo(0,"td",27),Oo(1,"mat-checkbox",28),Yo("change",(function(i){ii(t);const n=e.$implicit,s=Go();return i?s.selection.toggle(n):null}))("click",(function(e){return ii(t),e.stopPropagation()})),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Do("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function QJ(t,e){1&t&&(Oo(0,"th",29),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.ID")))}function ZJ(t,e){if(1&t&&(Oo(0,"td",27),va(1),Po()),2&t){const t=e.$implicit;vs(1),Ma(t.id)}}function tQ(t,e){1&t&&(Oo(0,"th",29),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.NAME")))}function eQ(t,e){if(1&t&&(Oo(0,"td",30),va(1),Ic(2,"userFullName"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t.user))}}function iQ(t,e){1&t&&Io(0,"div")}function nQ(t,e){1&t&&(Oo(0,"th",25),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function sQ(t,e){1&t&&Eo(0,nQ,3,3,"th",6)}function rQ(t,e){1&t&&(Oo(0,"th",25),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.STATUS")))}function oQ(t,e){1&t&&Eo(0,rQ,3,3,"th",6)}function aQ(t,e){if(1&t&&(Oo(0,"span"),va(1),Ic(2,"memberStatusIcon"),Po()),2&t){const t=Go().$implicit;vs(1),Ca(" ",Nc(2,1,t.status)," ")}}function cQ(t,e){if(1&t&&(Oo(0,"span"),va(1),Ic(2,"memberStatusIcon"),Po()),2&t){const t=Go().$implicit;vs(1),Ca(" ",Nc(2,1,t.groupStatus)," ")}}function uQ(t,e){if(1&t){const t=Ho();Oo(0,"td",30),Oo(1,"i",31),Yo("click",(function(i){ii(t);const n=e.$implicit;return Go().changeStatus(i,n)})),Ic(2,"memberStatusIconColor"),Ic(3,"memberStatusIconColor"),Ic(4,"memberStatusTooltip"),Eo(5,aQ,3,3,"span",32),Eo(6,cQ,3,3,"span",32),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();vs(1),Ta("material-icons ",i.showGroupStatuses?Nc(2,6,t.groupStatus):Nc(3,8,t.status),""),Qo("matTooltip",Fc(4,10,t,i.showGroupStatuses)),vs(4),Do("ngIf",!i.showGroupStatuses),vs(1),Do("ngIf",i.showGroupStatuses)}}function lQ(t,e){1&t&&(Oo(0,"th",25),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.ORGANIZATION")))}function hQ(t,e){if(1&t&&(Oo(0,"td",30),va(1),Ic(2,"memberOrganization"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t))}}function dQ(t,e){1&t&&(Oo(0,"th",25),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.EMAIL")))}function pQ(t,e){if(1&t&&(Oo(0,"td",30),va(1),Ic(2,"memberEmail"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t))}}function fQ(t,e){1&t&&(Oo(0,"th",25),va(1),Ic(2,"translate"),Po()),2&t&&(vs(1),Ma(Nc(2,1,"MEMBERS_LIST.LOGINS")))}function gQ(t,e){if(1&t&&(Oo(0,"td",30),va(1),Ic(2,"memberLogins"),Po()),2&t){const t=e.$implicit;vs(1),Ma(Nc(2,1,t))}}function mQ(t,e){1&t&&Io(0,"tr",33)}const _Q=function(t,e){return["/organizations",t,"members",e]};function bQ(t,e){if(1&t&&Io(0,"tr",34),2&t){const t=e.$implicit,i=Go();ua("disable-outline",!i.dataSource.routeAuth)("cursor-pointer",i.dataSource.routeAuth),Do("routerLink",i.dataSource.routeAuth?Dc(6,_Q,t.voId,t.id):null)("perunWebAppsMiddleClickRouterLink",i.dataSource.routeAuth?Dc(9,_Q,t.voId,t.id):null)}}function yQ(t,e){1&t&&(Oo(0,"app-alert",35),va(1),Ic(2,"translate"),Po()),2&t&&(Do("alert_type","warn"),vs(1),Ca(" ",Nc(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let wQ=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.dynamicPaginatingService=n,this.hideColumns=[],this.pageSize=10,this.page=new jc,this.updateTable=new jc,this.exporting=!1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.pageSizeOptions=oC}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),U(this.sort.sortChange,this.paginator.page).pipe(vf(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.displayedColumns=this.displayedColumns.filter(t=>!this.hideColumns.includes(t)),this.dataSource=new zS(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.pageSize,"NAME")}isAllSelected(){return this.selection.selected.length===this.pageSize}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e){if(t.stopPropagation(),"INVALID"===e.status){const t=pC();t.width="500px",t.data={member:e},this.dialog.open(Tz,t).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}pageChanged(t){this.page.emit(t)}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.paginator.pageIndex,this.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID")}}return t.\u0275fac=function(e){return new(e||t)(Lo(JM),Lo(Ip),Lo(xS),Lo(LS))},t.\u0275cmp=de({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){var i;1&t&&(eu(fP,!0),eu(AP,!0)),2&t&&(Zc(i=ou())&&(e.paginator=i.first),Zc(i=ou())&&(e.sort=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",voId:"voId",attrNames:"attrNames"},outputs:{page:"page",updateTable:"updateTable"},decls:37,vars:18,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","position-relative"],["class","spinner-container",4,"ngIf"],[1,"overflow-auto","table-container"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fullName"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],[4,"ngIf","ngIfThen","ngIfElse"],["thenHeader",""],["elseHeader",""],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],[4,"ngIf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(t,e){if(1&t&&(Oo(0,"div",0),Ic(1,"async"),Oo(2,"div",1),Eo(3,XJ,2,0,"div",2),Ic(4,"async"),Oo(5,"div",3),Oo(6,"table",4),No(7,5),Eo(8,$J,2,3,"th",6),Eo(9,JJ,2,2,"td",7),Fo(),No(10,8),Eo(11,QJ,3,3,"th",9),Eo(12,ZJ,2,1,"td",7),Fo(),No(13,10),Eo(14,tQ,3,3,"th",9),Eo(15,eQ,3,3,"td",11),Fo(),No(16,12),Eo(17,iQ,1,0,"div",13),Eo(18,sQ,1,0,"ng-template",null,14,lu),Eo(20,oQ,1,0,"ng-template",null,15,lu),Eo(22,uQ,7,13,"td",11),Fo(),No(23,16),Eo(24,lQ,3,3,"th",6),Eo(25,hQ,3,3,"td",11),Fo(),No(26,17),Eo(27,dQ,3,3,"th",6),Eo(28,pQ,3,3,"td",11),Fo(),No(29,18),Eo(30,fQ,3,3,"th",6),Eo(31,gQ,3,3,"td",11),Fo(),Eo(32,mQ,1,0,"tr",19),Eo(33,bQ,1,12,"tr",20),Po(),Po(),Oo(34,"mat-paginator",21),Yo("page",(function(t){return e.pageChanged(t)})),Po(),Po(),Po(),Eo(35,yQ,3,4,"app-alert",22),Ic(36,"async")),2&t){const t=xo(19),i=xo(21);Do("hidden",0===e.dataSource.allMemberCount&&!1===Nc(1,12,e.dataSource.loading$)),vs(3),Do("ngIf",Nc(4,14,e.dataSource.loading$)),vs(3),Do("dataSource",e.dataSource),vs(11),Do("ngIf",e.showGroupStatuses)("ngIfThen",t)("ngIfElse",i),vs(15),Do("matHeaderRowDef",e.displayedColumns),vs(1),Do("matRowDefColumns",e.displayedColumns),vs(1),Do("length",e.dataSource.allMemberCount)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),vs(1),Do("ngIf",0===e.dataSource.allMemberCount&&!1===Nc(36,16,e.dataSource.loading$))}},directives:[bh,ST,AP,RT,xT,kT,FT,jT,fP,$x,PT,hR,NT,xP,SD,WT,GT,Um,rI,aD],pipes:[Oh,UC,az,hz,pz,dz,p$,fz,gz],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.table-container[_ngcontent-%COMP%]{position:relative;overflow:auto}"]}),t})();const AQ={provide:rp,useExisting:vt(()=>SS),multi:!0};function vQ(t){return new CU(t,"./assets/i18n/",".json")}function MQ(t){const e={basePath:t.get("api_url")};return new Ap(e)}const CQ=t=>()=>t.loadConfigs();let SQ=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275mod=me({type:t,bootstrap:[OS]}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Vt(vS),Vt(YC))},providers:[vS,{provide:du,useFactory:CQ,multi:!0,deps:[BK]},{provide:Ap,useFactory:MQ,deps:[g_]},az,SS,AQ,{provide:YG,useClass:kS}],imports:[[Rd,Bv,bp,KC.forRoot({loader:{provide:CC,useFactory:vQ,deps:[np]}}),MU,AS,IK,kB,o_,eS,_G,lK,CY,yz,jN,Ok,VD,sC,QT,Hx,Tx,mR,gP,Jx,LP,FG,sz,rz,jI,CM,kD,cX,hL,Sx]]}),t})();(function(t,e,i){const n=t.\u0275cmp;n.directiveDefs=()=>e.map(pe),n.pipeDefs=()=>i.map(fe)})(OS,[ph,fh,mh,bh,Eh,kh,vh,Mh,Ch,Sh,Th,WC,wS,Cb,Fb,xK,LK,EK,DK,OK,zK,fB,dB,bB,gB,dM,mB,_B,SM,TB,SB,QF,Xm,Um,Km,Gm,zm,ZC,tS,vH,xH,Tq,QH,sq,wq,gq,qH,jU,PU,$U,zU,UK,ZK,aV,fV,vV,LV,NV,UV,ZV,oG,fG,uK,cK,RX,AW,iI,$Y,OX,IX,gN,jj,WO,yR,PO,tR,IO,pF,BX,kY,nI,MI,NY,zW,h$,sI,FY,d$,q$,pJ,WW,rI,fJ,gJ,mJ,_J,DW,WN,UJ,YW,KJ,FW,OW,VW,GJ,wQ,XW,aD,HN,PN,IN,NN,BN,FN,DN,bk,Rk,Mk,Ck,Sk,Tk,kk,KD,UD,PM,LM,WM,ZM,tC,eC,iC,ST,xT,FT,RT,kT,jT,zT,HT,PT,NT,IT,WT,GT,KT,$T,xx,Lx,Bx,Dx,JE,gE,yE,Hk,oE,hE,Nk,fE,bE,uE,Kk,Vk,dx,bx,wx,vx,px,mx,tx,ix,ux,sx,ox,hR,pR,fP,Xx,$x,AP,xP,PG,IG,NG,CG,SG,TG,kG,EG,LG,zG,DG,xG,RG,OG,nz,II,qI,NI,MM,SD,TD,rX,nX,rL,uL,$E,VE,YE,OS,iP,kI,dN,LF,yF,zF,xB,kj,bj,pj,Vq,JF,vj,tj,nK,pK,Qj,Zj,Mj,mj,cj,DF,GF,BF,Fq,nN,Cj,jG,UG,AU,tU,iU,_X],[Oh,Fh,Ph,Yh,Jh,Kh,Vh,Nh,Gh,Bh,qh,jh,Wh,UC,UN,oz,az,oI,cz,HY,BY,qY,uz,lz,hz,dz,pz,fz,gz,JY,p$,mz,_z,bz,YI,tK]),function(){if(Ln)throw new Error("Cannot enable prod mode after platform setup.");xn=!1}(),zd().bootstrapModule(SQ).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/dist/apps/user-profile/main-es5.621aaa3f9442ab429b18.js b/dist/apps/user-profile/main-es5.621aaa3f9442ab429b18.js new file mode 100644 index 000000000..e296cbb2b --- /dev/null +++ b/dist/apps/user-profile/main-es5.621aaa3f9442ab429b18.js @@ -0,0 +1 @@ +!function(){function e(e){return r(e)||a(e)||u(e)||n()}function t(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function i(e,t){return r(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(u){r=!0,o=u}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return i}(e,t)||u(e,t)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e){if(Array.isArray(e))return e}function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||a(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=u(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i=20?"ste":"de")},week:{dow:1,doy:4}})}(i("wgY5"))},"+n5x":function(e,t,i){!function(e){"use strict";e.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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 t=e%10,i=e%100;return 0===e?e+"-\u0435\u0432":0===i?e+"-\u0435\u043d":i>10&&i<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i("wgY5"))},"/hi0":function(e,t,i){!function(e){"use strict";e.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:"minutu balun",ss:"minutu %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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},0:function(e,t,i){e.exports=i("zUnb")},"0yow":function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){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:1,doy:7}})}(i("wgY5"))},"1KVU":function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},"1ors":function(e,t,i){!function(e){"use strict";e.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i("wgY5"))},"2B8G":function(e,t,i){!function(e){"use strict";e.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,t,i){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i("wgY5"))},"2JSI":function(e,t,i){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,i){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<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}})}(i("wgY5"))},"3WqV":function(e,t,i){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i("wgY5"))},"3y2C":function(e){e.exports=JSON.parse('{"version":"2020a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|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 WAT|-d.A -10|01|-22y0d.A|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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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|01212121212121212121212121212121213|-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|","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/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","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/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","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/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","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 BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v 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 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-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 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","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/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","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/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-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 1zb0 5Ip0 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 -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|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/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 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|24e4","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/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","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/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 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 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","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","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/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","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 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|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|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|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|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-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 3Co0 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|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-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 3Co0 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 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/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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 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||","Pacific/Port_Moresby|+10|-a0|0||25e4","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 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 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|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|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-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 3Co0 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|-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 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|-2nco8.l cNb8.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|012323232323232321212121212121212121212121212121212121212121212|-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|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|-2yO3F.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|01232345454545454545454545454545454545454545454545454545454|-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 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|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|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-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 20o0 s00 20o0 pc0 20o0 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|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|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|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu 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|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 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/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/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","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/Los_Angeles|US/Pacific-New","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/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|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|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|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/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/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|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/Currie 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/Vancouver America/Whitehorse America/Dawson","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/Astrakhan Europe/Volgograd 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"]}')},"4MAb":function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,i){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}})}(i("wgY5"))},"4VvY":function(e,t,i){!function(e){"use strict";e.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",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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i("wgY5"))},"4bvN":function(e,t,i){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return e>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i("wgY5"))},"5Mza":function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},"5j0y":function(e,t,i){!function(e){"use strict";function t(e,t,i,n){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[i][0]:r[i][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(i("wgY5"))},"6Olw":function(e,t,i){!function(e){"use strict";function t(e,t,i){return"m"===i?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(n=+e,r={ss:t?"\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:t?"\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:t?"\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"}[i].split("_"),n%10==1&&n%100!=11?r[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?r[1]:r[2]);var n,r}function i(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.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(e,t){var i={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===e?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):e?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(i("wgY5"))},"6PD3":function(e,t,i){!function(e){"use strict";var t={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 i(e,t,i,n){return t?r(i)[0]:n?r(i)[1]:r(i)[2]}function n(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function o(e,t,o,a){var s=e+" ";return 1===e?s+i(0,t,o[0],a):t?s+(n(e)?r(o)[1]:r(o)[0]):a?s+r(o)[1]:s+(n(e)?r(o)[1]:r(o)[2])}e.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,t,i,n){return t?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(i("wgY5"))},"6cYq":function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},"8Bez":function(e,t,i){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,i){var r=e+" ";switch(i){case"ss":return r+(n(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(n(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(n(e)?"godziny":"godzin");case"MM":return r+(n(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(n(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,n){return e?""===n?"("+i[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(n)?i[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:r,m:r,mm:r,h:r,hh:r,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},"8Cju":function(e,t,i){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.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(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,i){return e<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(e){return e.replace(/[\u06f0-\u06f9]/g,(function(e){return i[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i("wgY5"))},"8GSH":function(e,t,i){!function(e){"use strict";e.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,t,i){return e<12?i?"vm":"VM":i?"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}})}(i("wgY5"))},"8Ygf":function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},"9RND":function(e){e.exports=JSON.parse('{"a":"0.21.0"}')},ACAV:function(e,t,i){!function(e){"use strict";e.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,t,i){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i("wgY5"))},"BAN/":function(e,t,i){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e)?e.replace(/\u10d8$/,"\u10e8\u10d8"):e+"\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"):void 0},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}})}(i("wgY5"))},"BKZ+":function(e,t,i){!function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},CPJk:function(e,t,i){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(e,t,i,n){var r="";if(t)switch(i){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t?e>=10?e:e+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"\u0930\u093e\u0924\u094d\u0930\u0940":e<10?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i("wgY5"))},CZRU:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},DDip:function(e,t,i){!function(e){"use strict";e.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",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}})}(i("wgY5"))},EL7g:function(e,t,i){!function(e){"use strict";function t(e,t,i){var n=e+" ";switch(i){case"ss":return n+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},EQmw:function(e,t,i){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(e,t,i,n){var r=e;switch(i){case"s":return n||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(n||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return r+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(n||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return r+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(n||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||t?" \xe9v":" \xe9ve");case"yy":return r+(n||t?" \xe9v":" \xe9ve")}return""}function n(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.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("_"),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(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i("wgY5"))},EnIJ:function(e,t,i){!function(e){"use strict";e.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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,t,i){return e<12?i?"sa":"SA":i?"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 r\u1ed3i 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",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}})}(i("wgY5"))},EqYs:function(e,t,i){!function(e){"use strict";var t={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"};e.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,i){switch(i){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(i("wgY5"))},FyS8:function(e,t,i){var n,r,o;!function(a,s){"use strict";e.exports?e.exports=s(i("wgY5")):(r=[i("wgY5")],void 0===(o="function"==typeof(n=s)?n.apply(t,r):n)||(e.exports=o))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,i={},n={},r={},o={},a={};e&&"string"==typeof e.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),u=+s[0],c=+s[1];function l(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t=0,i=e.split("."),n=i[0],r=i[1]||"",o=1,a=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),g.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,i=+e,n=this.untils;for(t=0;tn&&L.moveInvalidForward&&(t=n),o3){var t=o[k(e)];if(t)return t;E("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(l){}var i,n,r,a=function(){var e,t,i,n=(new Date).getFullYear()-2,r=new v(new Date(n,0,1)),o=[r];for(i=1;i<48;i++)(t=new v(new Date(n,i,1))).offset!==r.offset&&(e=_(r,t),o.push(e),o.push(new v(new Date(e.at+6e4)))),r=t;for(i=0;i<4;i++)o.push(new v(new Date(n+i,0,1))),o.push(new v(new Date(n+i,6,1)));return o}(),s=a.length,u=A(a),c=[];for(n=0;n0?c[0].zone.name:void 0}()),t},L.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(i[e]||i[n[e]])&&o[e]&&t.push(o[e]);return t.sort()},L.Zone=g,L.unpack=p,L.unpackBase60=h,L.needsOffset=T,L.moveInvalidForward=!0,L.moveAmbiguousForward=!1,L.countries=function(){return Object.keys(r)},L.zonesForCountry=function(e,t){var i;if(i=(i=e).toUpperCase(),!(e=r[i]||null))return null;var n=e.zones.sort();return t?n.map((function(e){return{name:e,offset:C(e).utcOffset(new Date)}})):n};var z,x=e.fn;function D(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function R(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=L,e.defaultZone=null,e.updateOffset=function(t,i){var n,r=e.defaultZone;if(void 0===t._z&&(r&&T(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z)if(n=t._z.utcOffset(t),Math.abs(n)<16&&(n/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-n,i),t._z=o}else t.zone(n,i)},x.tz=function(t,i){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=C(t),this._z?e.updateOffset(this,i):E("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},x.zoneName=D(x.zoneName),x.zoneAbbr=D(x.zoneAbbr),x.utc=R(x.utc),x.local=R(x.local),x.utcOffset=(z=x.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),e.tz.setDefault=function(t){return(u<2||2===u&&c<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?C(t):null,e};var O=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(O)?(O.push("_z"),O.push("_a")):O&&(O._z=null),e}))},GJYX:function(e,t,i){!function(e){"use strict";e.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(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i("wgY5"))},GNPT:function(e,t,i){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i("wgY5"))},GzvP:function(e,t,i){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={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"]},r=function(e){return function(t,r,o,a){var s=i(t),u=n[e][i(t)];return 2===s&&(u=u[r?0:1]),u.replace(/%d/i,t)}},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"];e.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(e){return"\u0645"===e},meridiem:function(e,t,i){return e<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i("wgY5"))},HgyJ:function(e,t,i){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},"J+SV":function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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,t){switch(t){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}})}(i("wgY5"))},JFCg:function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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,t){switch(t){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"}})}(i("wgY5"))},"JO+T":function(e,t,i){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(i("wgY5"))},Jt3X:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},"K+3W":function(e,t,i){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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],r=/^(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(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,i,n){var r=e+" ";switch(i){case"s":return t||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||n?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?r+(o(e)?"dny":"dn\xed"):r+"dny";case"M":return t||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||n?r+(o(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?r+(o(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:i,monthsRegex:r,monthsShortRegex:r,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:n,longMonthsParse:n,shortMonthsParse:n,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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},"K+Lk":function(e,t,i){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(e){return e>1&&e<5}function r(e,t,i,r){var o=e+" ";switch(i){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?o+(n(e)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?o+(n(e)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(n(e)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?o+(n(e)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?o+(n(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?o+(n(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},KqOT:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},LsNb:function(e,t,i){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.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(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(i("wgY5"))},MNf7:function(e,t,i){!function(e){"use strict";e.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,t){switch(t){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}})}(i("wgY5"))},MROq:function(e,t,i){var n={"./af":"8GSH","./af.js":"8GSH","./ar":"NcOb","./ar-dz":"1ors","./ar-dz.js":"1ors","./ar-kw":"Sc1Y","./ar-kw.js":"Sc1Y","./ar-ly":"GzvP","./ar-ly.js":"GzvP","./ar-ma":"hH25","./ar-ma.js":"hH25","./ar-sa":"u2jB","./ar-sa.js":"u2jB","./ar-tn":"5Mza","./ar-tn.js":"5Mza","./ar.js":"NcOb","./az":"ZVVJ","./az.js":"ZVVJ","./be":"kQaN","./be.js":"kQaN","./bg":"+n5x","./bg.js":"+n5x","./bm":"TTiN","./bm.js":"TTiN","./bn":"aIF2","./bn.js":"aIF2","./bo":"QWb5","./bo.js":"QWb5","./br":"iQoZ","./br.js":"iQoZ","./bs":"EL7g","./bs.js":"EL7g","./ca":"vd/2","./ca.js":"vd/2","./cs":"K+3W","./cs.js":"K+3W","./cv":"Jt3X","./cv.js":"Jt3X","./cy":"sWi3","./cy.js":"sWi3","./da":"YcFX","./da.js":"YcFX","./de":"BKZ+","./de-at":"Oq9h","./de-at.js":"Oq9h","./de-ch":"hHY4","./de-ch.js":"hHY4","./de.js":"BKZ+","./dv":"w8Ej","./dv.js":"w8Ej","./el":"tSbB","./el.js":"tSbB","./en-SG":"cGzb","./en-SG.js":"cGzb","./en-au":"HgyJ","./en-au.js":"HgyJ","./en-ca":"ZyTy","./en-ca.js":"ZyTy","./en-gb":"exaB","./en-gb.js":"exaB","./en-ie":"yKzn","./en-ie.js":"yKzn","./en-il":"TB59","./en-il.js":"TB59","./en-nz":"iDxo","./en-nz.js":"iDxo","./eo":"4bvN","./eo.js":"4bvN","./es":"GNPT","./es-do":"R7mU","./es-do.js":"R7mU","./es-us":"Nstw","./es-us.js":"Nstw","./es.js":"GNPT","./et":"ZOjb","./et.js":"ZOjb","./eu":"kFC9","./eu.js":"kFC9","./fa":"8Cju","./fa.js":"8Cju","./fi":"vcN1","./fi.js":"vcN1","./fo":"8Ygf","./fo.js":"8Ygf","./fr":"Y8Ij","./fr-ca":"t+Zl","./fr-ca.js":"t+Zl","./fr-ch":"SPXN","./fr-ch.js":"SPXN","./fr.js":"Y8Ij","./fy":"T3MF","./fy.js":"T3MF","./ga":"NowM","./ga.js":"NowM","./gd":"GJYX","./gd.js":"GJYX","./gl":"MdC8","./gl.js":"MdC8","./gom-latn":"5j0y","./gom-latn.js":"5j0y","./gu":"fY0S","./gu.js":"fY0S","./he":"ACAV","./he.js":"ACAV","./hi":"3WqV","./hi.js":"3WqV","./hr":"OnNk","./hr.js":"OnNk","./hu":"EQmw","./hu.js":"EQmw","./hy-am":"MNf7","./hy-am.js":"MNf7","./id":"0yow","./id.js":"0yow","./is":"TmOJ","./is.js":"TmOJ","./it":"xD/0","./it-ch":"foQf","./it-ch.js":"foQf","./it.js":"xD/0","./ja":"jOnb","./ja.js":"jOnb","./jv":"lOtj","./jv.js":"lOtj","./ka":"BAN/","./ka.js":"BAN/","./kk":"iNiw","./kk.js":"iNiw","./km":"TUxt","./km.js":"TUxt","./kn":"hQzt","./kn.js":"hQzt","./ko":"ZNZT","./ko.js":"ZNZT","./ku":"S0Tg","./ku.js":"S0Tg","./ky":"JO+T","./ky.js":"JO+T","./lb":"vn/h","./lb.js":"vn/h","./lo":"gnIm","./lo.js":"gnIm","./lt":"6PD3","./lt.js":"6PD3","./lv":"YKe2","./lv.js":"YKe2","./me":"d3TR","./me.js":"d3TR","./mi":"hTlv","./mi.js":"hTlv","./mk":"ffVN","./mk.js":"ffVN","./ml":"ejL1","./ml.js":"ejL1","./mn":"RIsM","./mn.js":"RIsM","./mr":"CPJk","./mr.js":"CPJk","./ms":"d5Hy","./ms-my":"t4T9","./ms-my.js":"t4T9","./ms.js":"d5Hy","./mt":"1KVU","./mt.js":"1KVU","./my":"LsNb","./my.js":"LsNb","./nb":"h+U8","./nb.js":"h+U8","./ne":"2JSI","./ne.js":"2JSI","./nl":"jsZ8","./nl-be":"+h6j","./nl-be.js":"+h6j","./nl.js":"jsZ8","./nn":"mh29","./nn.js":"mh29","./pa-in":"O6bP","./pa-in.js":"O6bP","./pl":"8Bez","./pl.js":"8Bez","./pt":"DDip","./pt-br":"uHm5","./pt-br.js":"uHm5","./pt.js":"DDip","./ro":"baBi","./ro.js":"baBi","./ru":"ecsu","./ru.js":"ecsu","./sd":"e9KM","./sd.js":"e9KM","./se":"CZRU","./se.js":"CZRU","./si":"TO58","./si.js":"TO58","./sk":"K+Lk","./sk.js":"K+Lk","./sl":"QK6v","./sl.js":"QK6v","./sq":"v3Qg","./sq.js":"v3Qg","./sr":"Ndyf","./sr-cyrl":"PGvg","./sr-cyrl.js":"PGvg","./sr.js":"Ndyf","./ss":"2B8G","./ss.js":"2B8G","./sv":"WF5B","./sv.js":"WF5B","./sw":"4VvY","./sw.js":"4VvY","./ta":"dw3T","./ta.js":"dw3T","./te":"4MAb","./te.js":"4MAb","./tet":"/hi0","./tet.js":"/hi0","./tg":"PoVJ","./tg.js":"PoVJ","./th":"OY2w","./th.js":"OY2w","./tl-ph":"UC+K","./tl-ph.js":"UC+K","./tlh":"cWLW","./tlh.js":"cWLW","./tr":"EqYs","./tr.js":"EqYs","./tzl":"fN8o","./tzl.js":"fN8o","./tzm":"6cYq","./tzm-latn":"pdAN","./tzm-latn.js":"pdAN","./tzm.js":"6cYq","./ug-cn":"J+SV","./ug-cn.js":"J+SV","./uk":"6Olw","./uk.js":"6Olw","./ur":"QNGR","./ur.js":"QNGR","./uz":"hLzJ","./uz-latn":"KqOT","./uz-latn.js":"KqOT","./uz.js":"hLzJ","./vi":"EnIJ","./vi.js":"EnIJ","./x-pseudo":"W7dU","./x-pseudo.js":"W7dU","./yo":"QDhB","./yo.js":"QDhB","./zh-cn":"bjMe","./zh-cn.js":"bjMe","./zh-hk":"JFCg","./zh-hk.js":"JFCg","./zh-tw":"xBDH","./zh-tw.js":"xBDH"};function r(e){var t=o(e);return i(t)}function o(e){if(!i.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=o,e.exports=r,r.id="MROq"},MdC8:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},NcOb:function(e,t,i){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={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(e){return function(t,i,o,a){var s=n(t),u=r[e][n(t)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,t)}},a=["\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"];e.defineLocale("ar",{months:a,monthsShort:a,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(e){return"\u0645"===e},meridiem:function(e,t,i){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return i[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i("wgY5"))},Ndyf:function(e,t,i){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"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] [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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},NowM:function(e,t,i){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i("wgY5"))},Nstw:function(e,t,i){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i("wgY5"))},O6bP:function(e,t,i){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.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(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i("wgY5"))},OIgT:function(e,t,i){"use strict";t.decode=t.parse=i("wOqL"),t.encode=t.stringify=i("f8+N")},OY2w:function(e,t,i){!function(e){"use strict";e.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,t,i){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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i("wgY5"))},OnNk:function(e,t,i){!function(e){"use strict";function t(e,t,i){var n=e+" ";switch(i){case"ss":return n+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:"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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},Oq9h:function(e,t,i){!function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},PGvg:function(e,t,i){!function(e){"use strict";var t={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"DD.MM.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},PoVJ:function(e,t,i){!function(e){"use strict";var t={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"};e.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(i("wgY5"))},QDhB:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},QK6v:function(e,t,i){!function(e){"use strict";function t(e,t,i,n){var r=e+" ";switch(i){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami");case"d":return t||n?"en dan":"enim dnem";case"dd":return r+(1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi");case"M":return t||n?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci");case"y":return t||n?"eno leto":"enim letom";case"yy":return r+(1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti")}}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},QNGR:function(e,t,i){!function(e){"use strict";var t=["\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"],i=["\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"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,i){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i("wgY5"))},QWb5:function(e,t,i){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.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\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("_"),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\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("_"),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(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},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(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,i){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i("wgY5"))},R7mU:function(e,t,i){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i("wgY5"))},RIsM:function(e,t,i){!function(e){"use strict";function t(e,t,i,n){switch(i){case"s":return t?"\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 e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.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(e){return"\u04ae\u0425"===e},meridiem:function(e,t,i){return e<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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(i("wgY5"))},S0Tg:function(e,t,i){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\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"];e.defineLocale("ku",{months:n,monthsShort:n,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(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,i){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return i[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i("wgY5"))},SPXN:function(e,t,i){!function(e){"use strict";e.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,t){switch(t){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}})}(i("wgY5"))},Sc1Y:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},T3MF:function(e,t,i){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(i("wgY5"))},TB59:function(e,t,i){!function(e){"use strict";e.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",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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(i("wgY5"))},TO58:function(e,t,i){!function(e){"use strict";e.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,t,i){return e>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i("wgY5"))},TTiN:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},TUxt:function(e,t,i){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.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(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,i){return e<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(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(i("wgY5"))},TmOJ:function(e,t,i){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function i(e,i,n,r){var o=e+" ";switch(n){case"s":return i||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?o+(i||r?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?o+(i||r?"m\xedn\xfatur":"m\xedn\xfatum"):i?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return t(e)?o+(i||r?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return i?"dagur":r?"dag":"degi";case"dd":return t(e)?i?o+"dagar":o+(r?"daga":"d\xf6gum"):i?o+"dagur":o+(r?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?i?o+"m\xe1nu\xf0ir":o+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?o+"m\xe1nu\xf0ur":o+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||r?"\xe1r":"\xe1ri";case"yy":return t(e)?o+(i||r?"\xe1r":"\xe1rum"):o+(i||r?"\xe1r":"\xe1ri")}}e.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:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},"UC+K":function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},W7dU:function(e,t,i){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},WF5B:function(e,t,i){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(i("wgY5"))},Y8Ij:function(e,t,i){!function(e){"use strict";e.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("_"),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|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":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}})}(i("wgY5"))},YKe2:function(e,t,i){!function(e){"use strict";var t={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 i(e,t,i){return i?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function n(e,n,r){return e+" "+i(t[r],e,n)}function r(e,n,r){return i(t[r],e,n)}e.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(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:r,mm:n,h:r,hh:n,d:r,dd:n,M:r,MM:n,y:r,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},YcFX:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},ZNZT:function(e,t,i){!function(e){"use strict";e.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,t){switch(t){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,t,i){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i("wgY5"))},ZOjb:function(e,t,i){!function(e){"use strict";function t(e,t,i,n){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[i][2]?r[i][2]:r[i][1]:n?r[i][0]:r[i][1]}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},ZVVJ:function(e,t,i){!function(e){"use strict";var t={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"};e.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:"birne\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(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,i){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(i("wgY5"))},ZyTy:function(e,t,i){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(i("wgY5"))},aIF2:function(e,t,i){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,i){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i("wgY5"))},aYSr:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},baBi:function(e,t,i){!function(e){"use strict";function t(e,t,i){var n=" ";return(e%100>=20||e>=100&&e%100==0)&&(n=" de "),e+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(i("wgY5"))},bjMe:function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(e,t){switch(t){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\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i("wgY5"))},cGzb:function(e,t,i){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},cWLW:function(e,t,i){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(e,i,n,r){var o=function(e){var i=Math.floor(e%1e3/100),n=Math.floor(e%100/10),r=e%10,o="";return i>0&&(o+=t[i]+"vatlh"),n>0&&(o+=(""!==o?" ":"")+t[n]+"maH"),r>0&&(o+=(""!==o?" ":"")+t[r]),""===o?"pagh":o}(e);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.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){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},d3TR:function(e,t,i){!function(e){"use strict";var t={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(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i("wgY5"))},d5Hy:function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){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}})}(i("wgY5"))},dw3T:function(e,t,i){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.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(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},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(e,t,i){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(i("wgY5"))},e9KM:function(e,t,i){!function(e){"use strict";var t=["\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"],i=["\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"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,i){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i("wgY5"))},ecsu:function(e,t,i){!function(e){"use strict";function t(e,t,i){return"m"===i?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(n=+e,r={ss:t?"\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:t?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?r[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?r[1]:r[2]);var n,r}var i=[/^\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];e.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:i,longMonthsParse:i,shortMonthsParse:i,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(e){if(e.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(e){if(e.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:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(i("wgY5"))},ejL1:function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,i){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"}})}(i("wgY5"))},etrl:function(e,t,i){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";function t(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){a(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function n(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(i)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,o,a){var s=r.URL||r.webkitURL,u=document.createElement("a");u.download=o=o||e.name||"download",u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?n(u):i(u.href)?t(e,o,a):n(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){n(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),r);else if(i(e))t(e,r,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){n(a)}))}}:function(e,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return t(e,i,n);var s="application/octet-stream"===e.type,u=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},l.readAsDataURL(e)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(e);a?a.location=d:location.href=d,a=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});r.saveAs=a.saveAs=a,e.exports=a})?n.apply(t,[]):n)||(e.exports=r)},exaB:function(e,t,i){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},"f8+N":function(e,t,i){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,i,r){return t=t||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(n(r))+i;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(n(e))})).join(t):o+encodeURIComponent(n(e[r]))})).join(t):r?encodeURIComponent(n(r))+i+encodeURIComponent(n(e)):""}},fN8o:function(e,t,i){!function(e){"use strict";function t(e,t,i,n){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?r[i][0]:r[i][1]}e.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(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return e>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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},fY0S:function(e,t,i){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.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\u0ac7\u0ab9\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(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i("wgY5"))},ffVN:function(e,t,i){!function(e){"use strict";e.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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 t=e%10,i=e%100;return 0===e?e+"-\u0435\u0432":0===i?e+"-\u0435\u043d":i>10&&i<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i("wgY5"))},foQf:function(e,t,i){!function(e){"use strict";e.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(i("wgY5"))},gnIm:function(e,t,i){!function(e){"use strict";e.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,t,i){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}})}(i("wgY5"))},"h+U8":function(e,t,i){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i("wgY5"))},hH25:function(e,t,i){!function(e){"use strict";e.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\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:6,doy:12}})}(i("wgY5"))},hHY4:function(e,t,i){!function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},hLzJ:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},hQzt:function(e,t,i){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.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(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},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(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i("wgY5"))},hTlv:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},iDxo:function(e,t,i){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},iNiw:function(e,t,i){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(i("wgY5"))},iQoZ:function(e,t,i){!function(e){"use strict";function t(e,t,i){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i("wgY5"))},jOnb:function(e,t,i){!function(e){"use strict";e.defineLocale("ja",{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:"\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,t,i){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()=20?"ste":"de")},week:{dow:1,doy:4}})}(i("wgY5"))},kFC9:function(e,t,i){!function(e){"use strict";e.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}})}(i("wgY5"))},kQaN:function(e,t,i){!function(e){"use strict";function t(e,t,i){return"m"===i?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(n=+e,r={ss:t?"\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:t?"\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:t?"\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"}[i].split("_"),n%10==1&&n%100!=11?r[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?r[1]:r[2]);var n,r}e.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:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(i("wgY5"))},lOtj:function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,i){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}})}(i("wgY5"))},mSaU:function(e,t,i){e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,(function(t){return e[t]}).bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=22)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i=4){for(var e=arguments.length,t=Array(e),i=0;i=3){for(var e=arguments.length,t=Array(e),i=0;i=2){for(var e=arguments.length,t=Array(e),i=0;i=1){for(var e=arguments.length,t=Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=t,this._jsonService=new i(["application/jwk-set+json"])}return e.prototype.getMetadata=function(){var e=this;return this._settings.metadata?(r.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(r.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(t){return r.Log.debug("MetadataService.getMetadata: json received"),e._settings.metadata=t,t}))):(r.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},e.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},e.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},e.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},e.prototype.getTokenEndpoint=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",e)},e.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},e.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},e.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},e.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},e.prototype._getMetadataProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Log.debug("MetadataService.getMetadataProperty for: "+e),this.getMetadata().then((function(i){if(r.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[e]){if(!0===t)return void r.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+e);throw r.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+e),new Error("Metadata does not contain property "+e)}return i[e]}))},e.prototype.getSigningKeys=function(){var e=this;return this._settings.signingKeys?(r.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then((function(t){return r.Log.debug("MetadataService.getSigningKeys: jwks_uri received",t),e._jsonService.getJson(t).then((function(t){if(r.Log.debug("MetadataService.getSigningKeys: key set received",t),!t.keys)throw r.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return e._settings.signingKeys=t.keys,e._settings.signingKeys}))}))},n(e,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtility=void 0;var n=i(0),r=i(1);t.UrlUtility=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.addQueryParam=function(e,t,i){return e.indexOf("?")<0&&(e+="?"),"?"!==e[e.length-1]&&(e+="&"),e+=encodeURIComponent(t),(e+="=")+encodeURIComponent(i)},e.parseUrlFragment=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global;"string"!=typeof e&&(e=i.location.href);var o=e.lastIndexOf(t);o>=0&&(e=e.substr(o+1)),"?"===t&&(o=e.indexOf("#"))>=0&&(e=e.substr(0,o));for(var a,s={},u=/([^&=]+)=([^&]*)/g,c=0;a=u.exec(e);)if(s[decodeURIComponent(a[1])]=decodeURIComponent(a[2]),c++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",e),{error:"Response exceeded expected number of parameters"};for(var l in s)return s;return{}},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoseUtil=void 0;var n=i(25),r=function(e){return e&&e.__esModule?e:{default:e}}(i(32));t.JoseUtil=(0,r.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=t.authority,r=t.metadataUrl,o=t.metadata,h=t.signingKeys,d=t.client_id,f=t.client_secret,p=t.response_type,g=void 0===p?c:p,m=t.scope,v=void 0===m?l:m,y=t.redirect_uri,_=t.post_logout_redirect_uri,b=t.prompt,w=t.display,A=t.max_age,k=t.ui_locales,M=t.acr_values,C=t.resource,S=t.response_mode,T=t.filterProtocolClaims,E=void 0===T||T,L=t.loadUserInfo,z=void 0===L||L,x=t.staleStateAge,D=void 0===x?900:x,R=t.clockSkew,O=void 0===R?300:R,P=t.userInfoJwtIssuer,I=void 0===P?"OP":P,N=t.stateStore,F=void 0===N?new a.WebStorageStateStore:N,B=t.ResponseValidatorCtor,H=void 0===B?s.ResponseValidator:B,q=t.MetadataServiceCtor,j=void 0===q?u.MetadataService:q,Y=t.extraQueryParams,W=void 0===Y?{}:Y,U=t.extraTokenParams,K=void 0===U?{}:U;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._authority=i,this._metadataUrl=r,this._metadata=o,this._signingKeys=h,this._client_id=d,this._client_secret=f,this._response_type=g,this._scope=v,this._redirect_uri=y,this._post_logout_redirect_uri=_,this._prompt=b,this._display=w,this._max_age=A,this._ui_locales=k,this._acr_values=M,this._resource=C,this._response_mode=S,this._filterProtocolClaims=!!E,this._loadUserInfo=!!z,this._staleStateAge=D,this._clockSkew=O,this._userInfoJwtIssuer=I,this._stateStore=F,this._validator=new H(this),this._metadataService=new j(this),this._extraQueryParams="object"===(void 0===W?"undefined":n(W))?W:{},this._extraTokenParams="object"===(void 0===K?"undefined":n(K))?K:{}}return r(e,[{key:"client_id",get:function(){return this._client_id},set:function(e){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=e}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(e){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=e}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(e){this._metadata=e}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(e){this._signingKeys=e}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(e){this._extraQueryParams="object"===(void 0===e?"undefined":n(e))?e:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(e){this._extraTokenParams="object"===(void 0===e?"undefined":n(e))?e:{}}}]),e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebStorageStateStore=void 0;var n=i(0),r=i(1);t.WebStorageStateStore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.prefix,n=void 0===i?"oidc.":i,o=t.store,a=void 0===o?r.Global.localStorage:o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._store=a,this._prefix=n}return e.prototype.set=function(e,t){return n.Log.debug("WebStorageStateStore.set",e),this._store.setItem(e=this._prefix+e,t),Promise.resolve()},e.prototype.get=function(e){n.Log.debug("WebStorageStateStore.get",e);var t=this._store.getItem(e=this._prefix+e);return Promise.resolve(t)},e.prototype.remove=function(e){n.Log.debug("WebStorageStateStore.remove",e);var t=this._store.getItem(e=this._prefix+e);return this._store.removeItem(e),Promise.resolve(t)},e.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._contentTypes=t&&Array.isArray(t)?t.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return e.prototype.getJson=function(e,t){var i=this;if(!e)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",e),new Promise((function(r,o){var a=new i._XMLHttpRequest;a.open("GET",e);var s=i._contentTypes,u=i._jwtHandler;a.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",a.status),200===a.status){var t=a.getResponseHeader("Content-Type");if(t){var i=s.find((function(e){if(t.startsWith(e))return!0}));if("application/jwt"==i)return void u(a).then(r,o);if(i)try{return void r(JSON.parse(a.responseText))}catch(r){return n.Log.error("JsonService.getJson: Error parsing JSON response",r.message),void o(r)}}o(Error("Invalid response Content-Type: "+t+", from URL: "+e))}else o(Error(a.statusText+" ("+a.status+")"))},a.onerror=function(){n.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},t&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),a.setRequestHeader("Authorization","Bearer "+t)),a.send()}))},e.prototype.postForm=function(e,t){var i=this;if(!e)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",e),new Promise((function(r,o){var a=new i._XMLHttpRequest;a.open("POST",e);var s=i._contentTypes;a.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",a.status),200!==a.status){if(400===a.status&&(i=a.getResponseHeader("Content-Type"))&&s.find((function(e){if(i.startsWith(e))return!0})))try{var t=JSON.parse(a.responseText);if(t&&t.error)return n.Log.error("JsonService.postForm: Error from server: ",t.error),void o(new Error(t.error))}catch(r){return n.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error(a.statusText+" ("+a.status+")"))}else{var i;if((i=a.getResponseHeader("Content-Type"))&&s.find((function(e){if(i.startsWith(e))return!0})))try{return void r(JSON.parse(a.responseText))}catch(r){return n.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error("Invalid response Content-Type: "+i+", from URL: "+e))}},a.onerror=function(){n.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var u="";for(var c in t){var l=t[c];l&&(u.length>0&&(u+="&"),u+=encodeURIComponent(c),u+="=",u+=encodeURIComponent(l))}a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(u)}))},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;var n=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=t.id,n=t.data,r=t.created,a=t.request_type;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._id=i||(0,o.default)(),this._data=n,this._created="number"==typeof r&&r>0?r:parseInt(Date.now()/1e3),this._request_type=a}return e.prototype.toStorageString=function(){return r.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},e.fromStorageString=function(t){return r.Log.debug("State.fromStorageString"),new e(JSON.parse(t))},e.clearStaleState=function(t,i){var n=Date.now()/1e3-i;return t.getAllKeys().then((function(i){r.Log.debug("State.clearStaleState: got keys",i);for(var o=[],a=function(a){var s=i[a];u=t.get(s).then((function(i){var o=!1;if(i)try{var a=e.fromStorageString(i);r.Log.debug("State.clearStaleState: got item from key: ",s,a.created),a.created<=n&&(o=!0)}catch(e){r.Log.error("State.clearStaleState: Error parsing state for key",s,e.message),o=!0}else r.Log.debug("State.clearStaleState: no item in storage for key: ",s),o=!0;if(o)return r.Log.debug("State.clearStaleState: removed item for key: ",s),t.remove(s)})),o.push(u)},s=0;s0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._settings=t instanceof o.OidcClientSettings?t:new o.OidcClientSettings(t)}return e.prototype.createSigninRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.response_type,n=t.scope,o=t.redirect_uri,a=t.data,u=t.state,c=t.prompt,l=t.display,h=t.max_age,d=t.ui_locales,f=t.id_token_hint,p=t.login_hint,g=t.acr_values,m=t.resource,v=t.request,y=t.request_uri,_=t.response_mode,b=t.extraQueryParams,w=t.extraTokenParams,A=t.request_type,k=t.skipUserInfo,M=arguments[1];r.Log.debug("OidcClient.createSigninRequest");var C=this._settings.client_id;n=n||this._settings.scope,o=o||this._settings.redirect_uri,c=c||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,m=m||this._settings.resource,_=_||this._settings.response_mode,b=b||this._settings.extraQueryParams,w=w||this._settings.extraTokenParams;var S=this._settings.authority;return s.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then((function(t){r.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",t);var T=new s.SigninRequest({url:t,client_id:C,redirect_uri:o,response_type:i,scope:n,data:a||u,authority:S,prompt:c,display:l,max_age:h,ui_locales:d,id_token_hint:f,login_hint:p,acr_values:g,resource:m,request:v,request_uri:y,extraQueryParams:b,extraTokenParams:w,request_type:A,response_mode:_,client_secret:e._settings.client_secret,skipUserInfo:k}),E=T.state;return(M=M||e._stateStore).set(E.id,E.toStorageString()).then((function(){return T}))}))},e.prototype.readSigninResponseState=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new u.SigninResponse(e,n);return o.state?(t=t||this._stateStore,(i?t.remove.bind(t):t.get.bind(t))(o.state).then((function(e){if(!e)throw r.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(e),response:o}}))):(r.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},e.prototype.processSigninResponse=function(e,t){var i=this;return r.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(e,t,!0).then((function(e){var t=e.state,n=e.response;return r.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(t,n)}))},e.prototype.createSignoutRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.id_token_hint,n=t.data,o=t.state,a=t.post_logout_redirect_uri,s=t.extraQueryParams,u=t.request_type,l=arguments[1];return r.Log.debug("OidcClient.createSignoutRequest"),a=a||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(t){if(!t)throw r.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");r.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",t);var h=new c.SignoutRequest({url:t,id_token_hint:i,post_logout_redirect_uri:a,data:n||o,extraQueryParams:s,request_type:u}),d=h.state;return d&&(r.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||e._stateStore).set(d.id,d.toStorageString())),h}))},e.prototype.readSignoutResponseState=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(e);if(!n.state)return r.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(r.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new a.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var o=n.state;return t=t||this._stateStore,(i?t.remove.bind(t):t.get.bind(t))(o).then((function(e){if(!e)throw r.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(e),response:n}}))},e.prototype.processSignoutResponse=function(e,t){var i=this;return r.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(e,t,!0).then((function(e){var t=e.state,n=e.response;return t?(r.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(t,n)):(r.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)}))},e.prototype.clearStaleState=function(e){return r.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(e=e||this._stateStore,this.settings.staleStateAge)},n(e,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClient=void 0;var n=i(7),r=i(2),o=i(0);t.TokenClient=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new i,this._metadataService=new a(this._settings)}return e.prototype.exchangeCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).grant_type=t.grant_type||"authorization_code",t.client_id=t.client_id||this._settings.client_id,t.redirect_uri=t.redirect_uri||this._settings.redirect_uri,t.code?t.redirect_uri?t.code_verifier?t.client_id?this._metadataService.getTokenEndpoint(!1).then((function(i){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),e._jsonService.postForm(i,t).then((function(e){return o.Log.debug("TokenClient.exchangeCode: response received"),e}))})):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},e.prototype.exchangeRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).grant_type=t.grant_type||"refresh_token",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret,t.refresh_token?t.client_id?this._metadataService.getTokenEndpoint(!1).then((function(i){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),e._jsonService.postForm(i,t).then((function(e){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),e}))})):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorResponse=void 0;var n=i(0);t.ErrorResponse=function(e){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.error,o=i.error_description,a=i.error_uri,s=i.state,u=i.session_state;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!r)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o||r));return c.name="ErrorResponse",c.error=r,c.error_description=o,c.error_uri=a,c.state=s,c.session_state=u,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninRequest=void 0;var n=i(0),r=i(3),o=i(13);t.SigninRequest=function(){function e(t){var i=t.url,a=t.client_id,s=t.redirect_uri,u=t.response_type,c=t.scope,l=t.authority,h=t.data,d=t.prompt,f=t.display,p=t.max_age,g=t.ui_locales,m=t.id_token_hint,v=t.login_hint,y=t.acr_values,_=t.resource,b=t.response_mode,w=t.request,A=t.request_uri,k=t.extraQueryParams,M=t.request_type,C=t.client_secret,S=t.extraTokenParams,T=t.skipUserInfo;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!a)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!u)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!c)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var E=e.isOidc(u),L=e.isCode(u);b||(b=e.isCode(u)?"query":null),this.state=new o.SigninState({nonce:E,data:h,client_id:a,authority:l,redirect_uri:s,code_verifier:L,request_type:M,response_mode:b,client_secret:C,scope:c,extraTokenParams:S,skipUserInfo:T}),i=r.UrlUtility.addQueryParam(i,"client_id",a),i=r.UrlUtility.addQueryParam(i,"redirect_uri",s),i=r.UrlUtility.addQueryParam(i,"response_type",u),i=r.UrlUtility.addQueryParam(i,"scope",c),i=r.UrlUtility.addQueryParam(i,"state",this.state.id),E&&(i=r.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),L&&(i=r.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=r.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var z={prompt:d,display:f,max_age:p,ui_locales:g,id_token_hint:m,login_hint:v,acr_values:y,resource:_,request:w,request_uri:A,response_mode:b};for(var x in z)z[x]&&(i=r.UrlUtility.addQueryParam(i,x,z[x]));for(var D in k)i=r.UrlUtility.addQueryParam(i,D,k[D]);this.url=i}return e.isOidc=function(e){return!!e.split(/\s+/g).filter((function(e){return"id_token"===e}))[0]},e.isOAuth=function(e){return!!e.split(/\s+/g).filter((function(e){return"token"===e}))[0]},e.isCode=function(e){return!!e.split(/\s+/g).filter((function(e){return"code"===e}))[0]},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninState=void 0;var n=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,r=i.authority,o=i.client_id,u=i.redirect_uri,c=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,f=i.extraTokenParams,p=i.skipUserInfo;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));if(!0===n?g._nonce=(0,s.default)():n&&(g._nonce=n),!0===c?g._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():c&&(g._code_verifier=c),g.code_verifier){var m=a.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=a.JoseUtil.hexToBase64Url(m)}return g._redirect_uri=u,g._authority=r,g._client_id=o,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=f,g._skipUserInfo=p,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toStorageString=function(){return r.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},t.fromStorageString=function(e){return r.Log.debug("SigninState.fromStorageString"),new t(JSON.parse(e))},n(t,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),t}(o.State)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(e){return e&&e.__esModule?e:{default:e}}(i(33));e.exports=t.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var n=function(){function e(e,t){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTokenEvents=void 0;var n=i(0),r=i(48);t.AccessTokenEvents=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.accessTokenExpiringNotificationTime,n=void 0===i?60:i,o=t.accessTokenExpiringTimer,a=void 0===o?new r.Timer("Access token expiring"):o,s=t.accessTokenExpiredTimer,u=void 0===s?new r.Timer("Access token expired"):s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=a,this._accessTokenExpired=u}return e.prototype.load=function(e){if(e.access_token&&void 0!==e.expires_in){var t=e.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",t),t>0){var i=t-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var r=t+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",r),this._accessTokenExpired.init(r)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.addAccessTokenExpiring=function(e){this._accessTokenExpiring.addHandler(e)},e.prototype.removeAccessTokenExpiring=function(e){this._accessTokenExpiring.removeHandler(e)},e.prototype.addAccessTokenExpired=function(e){this._accessTokenExpired.addHandler(e)},e.prototype.removeAccessTokenExpired=function(e){this._accessTokenExpired.removeHandler(e)},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var n=i(0);t.Event=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._callbacks=[]}return e.prototype.addHandler=function(e){this._callbacks.push(e)},e.prototype.removeHandler=function(e){var t=this._callbacks.findIndex((function(t){return t===e}));t>=0&&this._callbacks.splice(t,1)},e.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Global.timer;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=t,this._CheckSessionIFrameCtor=n,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then((function(e){e?i._start(e):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then((function(e){var t={session_state:e.session_state};e.sub&&e.sid&&(t.profile={sub:e.sub,sid:e.sid}),i._start(t)})).catch((function(e){r.Log.error("SessionMonitor ctor: error from querySessionStatus:",e.message)}))})).catch((function(e){r.Log.error("SessionMonitor ctor: error from getUser:",e.message)}))}return e.prototype._start=function(e){var t=this,i=e.session_state;i&&(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,r.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,r.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then((function(e){if(e){r.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=t._client_id,o=t._checkSessionInterval,a=t._stopCheckSessionOnError;t._checkSessionIFrame=new t._CheckSessionIFrameCtor(t._callback.bind(t),n,e,o,a),t._checkSessionIFrame.load().then((function(){t._checkSessionIFrame.start(i)}))}else r.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")})).catch((function(e){r.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",e.message)})))},e.prototype._stop=function(){var e=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(r.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var t=this._timer.setInterval((function(){e._timer.clearInterval(t),e._userManager.querySessionStatus().then((function(t){var i={session_state:t.session_state};t.sub&&t.sid&&(i.profile={sub:t.sub,sid:t.sid}),e._start(i)})).catch((function(e){r.Log.error("SessionMonitor: error from querySessionStatus:",e.message)}))}),1e3)},e.prototype._callback=function(){var e=this;this._userManager.querySessionStatus().then((function(t){var i=!0;t?t.sub===e._sub?(i=!1,e._checkSessionIFrame.start(t.session_state),t.sid===e._sid?r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",t.session_state):(r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",t.session_state),e._userManager.events._raiseUserSessionChanged())):r.Log.debug("SessionMonitor._callback: Different subject signed into OP:",t.sub):r.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(e._sub?(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),e._userManager.events._raiseUserSignedOut()):(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),e._userManager.events._raiseUserSignedIn()))})).catch((function(t){e._sub&&(r.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",t.message),e._userManager.events._raiseUserSignedOut())}))},n(e,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckSessionIFrame=void 0;var n=i(0);t.CheckSessionIFrame=function(){function e(t,i,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callback=t,this._client_id=i,this._url=n,this._interval=r||2e3,this._stopOnError=o;var a=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,a),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return e.prototype.load=function(){var e=this;return new Promise((function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),e._boundMessageEvent=e._message.bind(e),window.addEventListener("message",e._boundMessageEvent,!1)}))},e.prototype._message=function(e){e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+e.data+" message from check session op iframe"))},e.prototype.start=function(e){var t=this;if(this._session_state!==e){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=e;var i=function(){t._frame.contentWindow.postMessage(t._client_id+" "+t._session_state,t._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},e.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRevocationClient=void 0;var n=i(0),r=i(2),o=i(1);t.TokenRevocationClient=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=t,this._XMLHttpRequestCtor=i,this._metadataService=new a(this._settings)}return e.prototype.revoke=function(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!e)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==r&&"refresh_token"!=r)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then((function(o){if(o)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+r),i._revoke(o,i._settings.client_id,i._settings.client_secret,e,r);if(t)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")}))},e.prototype._revoke=function(e,t,i,r,o){var a=this;return new Promise((function(s,u){var c=new a._XMLHttpRequestCtor;c.open("POST",e),c.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",c.status),200===c.status?s():u(Error(c.statusText+" ("+c.status+")"))},c.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),u("Network Error")};var l="client_id="+encodeURIComponent(t);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(o),l+="&token="+encodeURIComponent(r),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),c.send(l)}))},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupWindow=void 0;var n=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=t,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=u,this._tokenClient=new l(this._settings)}return e.prototype.validateSigninResponse=function(e,t){var i=this;return r.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(e,t).then((function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(e,t).then((function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(e,t).then((function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),e}))}))}))},e.prototype.validateSignoutResponse=function(e,t){return e.id!==t.state?(r.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(r.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),t.state=e.data,t.error?(r.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):Promise.resolve(t))},e.prototype._processSigninParams=function(e,t){if(e.id!==t.state)return r.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!e.client_id)return r.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!e.authority)return r.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==e.authority)return r.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=e.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==e.client_id)return r.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=e.client_id;return r.Log.debug("ResponseValidator._processSigninParams: state validated"),t.state=e.data,t.error?(r.Log.warn("ResponseValidator._processSigninParams: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):e.nonce&&!t.id_token?(r.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!e.nonce&&t.id_token?(r.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):e.code_verifier&&!t.code?(r.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!e.code_verifier&&t.code?(r.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(t.scope||(t.scope=e.scope),Promise.resolve(t))},e.prototype._processClaims=function(e,t){var i=this;if(t.isOpenIdConnect){if(r.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),t.profile=this._filterProtocolClaims(t.profile),!0!==e.skipUserInfo&&this._settings.loadUserInfo&&t.access_token)return r.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(t.access_token).then((function(e){return r.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),e.sub!==t.profile.sub?(r.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(t.profile=i._mergeClaims(t.profile,e),r.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",t.profile),t)}));r.Log.debug("ResponseValidator._processClaims: not loading user info")}else r.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(t)},e.prototype._mergeClaims=function(e,t){var i=Object.assign({},e);for(var r in t){var o=t[r];Array.isArray(o)||(o=[o]);for(var a=0;a1)return r.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));u=s[0]}if(!u)return r.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=e.client_id,l=i._settings.clockSkew;return r.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(t.id_token,u,a,c,l).then((function(){return r.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(t.profile=n.payload,t):(r.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))}))},e.prototype._filterByAlg=function(e,t){var i=null;if(t.startsWith("RS"))i="RSA";else if(t.startsWith("PS"))i="PS";else{if(!t.startsWith("ES"))return r.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",t),[];i="EC"}return r.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),e=e.filter((function(e){return e.kty===i})),r.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,e.length),e},e.prototype._validateAccessToken=function(e){if(!e.profile)return r.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!e.profile.at_hash)return r.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!e.id_token)return r.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var t=this._joseUtil.parseJwt(e.id_token);if(!t||!t.header)return r.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",t),Promise.reject(new Error("Failed to parse id_token"));var i=t.header.alg;if(!i||5!==i.length)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var o="sha"+n,a=this._joseUtil.hashString(e.access_token,o);if(!a)return r.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var s=a.substr(0,a.length/2),u=this._joseUtil.hexToBase64Url(s);return u!==e.profile.at_hash?(r.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",u,e.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(r.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(e))},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInfoService=void 0;var n=i(7),r=i(2),o=i(0),a=i(4);t.UserInfoService=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.JoseUtil;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=u}return e.prototype.getClaims=function(e){var t=this;return e?this._metadataService.getUserInfoEndpoint().then((function(i){return o.Log.debug("UserInfoService.getClaims: received userinfo url",i),t._jsonService.getJson(i,e).then((function(e){return o.Log.debug("UserInfoService.getClaims: claims received",e),e}))})):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},e.prototype._getClaimsFromJwt=function e(t){var i=this;try{var n=this._joseUtil.parseJwt(t.responseText);if(!n||!n.header||!n.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var r=n.header.kid,a=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":a=this._metadataService.getIssuer();break;case"ANY":a=Promise.resolve(n.payload.iss);break;default:a=Promise.resolve(this._settings.userInfoJwtIssuer)}return a.then((function(e){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+e),i._metadataService.getSigningKeys().then((function(a){if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(r)s=a.filter((function(e){return e.kid===r}))[0];else{if((a=i._filterByAlg(a,n.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=a[0]}if(!s)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=i._settings.client_id,c=i._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",c),i._joseUtil.validateJwt(t.responseText,s,e,u,c,void 0,!0).then((function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload}))}))}))}catch(e){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",e.message),void reject(e)}},e.prototype._filterByAlg=function(e,t){var i=null;if(t.startsWith("RS"))i="RSA";else if(t.startsWith("PS"))i="PS";else{if(!t.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",t),[];i="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),e=e.filter((function(e){return e.kty===i})),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,e.length),e},e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedSigningAlgs=t.b64tohex=t.hextob64u=t.crypto=t.X509=t.KeyUtil=t.jws=void 0;var n=i(26);t.jws=n.jws,t.KeyUtil=n.KEYUTIL,t.X509=n.X509,t.crypto=n.crypto,t.hextob64u=n.hextob64u,t.b64tohex=n.b64tohex,t.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n={userAgent:!1},r={};if(void 0===o)var o={};o.lang={extend:function(t,i,r){if(!i||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=i.prototype,t.prototype=new o,t.prototype.constructor=t,t.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),r){var a;for(a in r)t.prototype[a]=r[a];var s=function(){},u=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(s=function(e,t){for(a=0;a>>2]|=(i[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=a.ceil(t/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],i=0;i>>2]>>>24-r%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(i,t/2)}},f=h.Latin1={stringify:function(e){for(var t=e.words,i=e.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(i,t)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,i=t.words,n=t.sigBytes,r=this.blockSize,o=n/(4*r),s=(o=e?a.ceil(o):a.max((0|o)-this._minBufferSize,0))*r,u=a.min(4*s,n);if(s){for(var c=0;c>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a>>6*(3-a)&63));if(t=n.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(t){var i=t.length,n=this._map;(r=n.charAt(64))&&-1!=(r=t.indexOf(r))&&(i=r);for(var r=[],o=0,a=0;a>>6-a%4*2;r[o>>>2]|=(s|u)<<24-o%4*8,o++}return e.create(r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){for(var t=v,i=(r=t.lib).WordArray,n=r.Hasher,r=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},u=2,c=0;64>c;){var l;e:{for(var h=e.sqrt(l=u),d=2;d<=h;d++)if(!(l%d)){l=!1;break e}l=!0}l&&(8>c&&(o[c]=s(e.pow(u,.5))),a[c]=s(e.pow(u,1/3)),c++),u++}var f=[];r=r.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(e,t){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],s=i[3],u=i[4],c=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)f[d]=0|e[t+d];else{var p=f[d-15],g=f[d-2];f[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[d-16]}p=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+a[d]+f[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&r^n&o^r&o),h=l,l=c,c=u,u=s+p|0,s=o,o=r,r=n,n=p+g|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+s|0,i[4]=i[4]+u|0,i[5]=i[5]+c|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=e.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=n._createHelper(r),t.HmacSHA256=n._createHmacHelper(r)}(Math),function(){function e(){return n.create.apply(n,arguments)}for(var t=v,i=t.lib.Hasher,n=(o=t.x64).Word,r=o.WordArray,o=t.algo,a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],s=[],u=0;80>u;u++)s[u]=e();o=o.SHA512=i.extend({_doReset:function(){this._hash=new r.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var i=(h=this._hash.words)[0],n=h[1],r=h[2],o=h[3],u=h[4],c=h[5],l=h[6],h=h[7],d=i.high,f=i.low,p=n.high,g=n.low,m=r.high,v=r.low,y=o.high,_=o.low,b=u.high,w=u.low,A=c.high,k=c.low,M=l.high,C=l.low,S=h.high,T=h.low,E=d,L=f,z=p,x=g,D=m,R=v,O=y,P=_,I=b,N=w,F=A,B=k,H=M,q=C,j=S,Y=T,W=0;80>W;W++){var U=s[W];if(16>W)var K=U.high=0|e[t+2*W],V=U.low=0|e[t+2*W+1];else{K=((V=(K=s[W-15]).high)>>>1|(G=K.low)<<31)^(V>>>8|G<<24)^V>>>7;var G=(G>>>1|V<<31)^(G>>>8|V<<24)^(G>>>7|V<<25),X=((V=(X=s[W-2]).high)>>>19|(J=X.low)<<13)^(V<<3|J>>>29)^V>>>6,J=(J>>>19|V<<13)^(J<<3|V>>>29)^(J>>>6|V<<26),Q=(V=s[W-7]).high,Z=($=s[W-16]).high,$=$.low;K=(K=(K=K+Q+((V=G+V.low)>>>0>>0?1:0))+X+((V+=J)>>>0>>0?1:0))+Z+((V+=$)>>>0<$>>>0?1:0),U.high=K,U.low=V}U=E&z^E&D^z&D;var ee=L&x^L&R^x&R,te=(G=(E>>>28|L<<4)^(E<<30|L>>>2)^(E<<25|L>>>7),X=(L>>>28|E<<4)^(L<<30|E>>>2)^(L<<25|E>>>7),(J=a[W]).high),ie=J.low;Z=(Z=(Z=(Z=j+((I>>>14|N<<18)^(I>>>18|N<<14)^(I<<23|N>>>9))+((J=Y+((N>>>14|I<<18)^(N>>>18|I<<14)^(N<<23|I>>>9)))>>>0>>0?1:0))+(Q=I&F^~I&H)+((J+=$=N&B^~N&q)>>>0<$>>>0?1:0))+te+((J+=ie)>>>0>>0?1:0))+K+((J+=V)>>>0>>0?1:0),j=H,Y=q,H=F,q=B,F=I,B=N,I=O+Z+((N=P+J|0)>>>0

>>0?1:0)|0,O=D,P=R,D=z,R=x,z=E,x=L,E=Z+(U=G+U+((V=X+ee)>>>0>>0?1:0))+((L=J+V|0)>>>0>>0?1:0)|0}f=i.low=f+L,i.high=d+E+(f>>>0>>0?1:0),g=n.low=g+x,n.high=p+z+(g>>>0>>0?1:0),v=r.low=v+R,r.high=m+D+(v>>>0>>0?1:0),_=o.low=_+P,o.high=y+O+(_>>>0

>>0?1:0),w=u.low=w+N,u.high=b+I+(w>>>0>>0?1:0),k=c.low=k+B,c.high=A+F+(k>>>0>>0?1:0),C=l.low=C+q,l.high=M+H+(C>>>0>>0?1:0),T=h.low=T+Y,h.high=S+j+(T>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),t[31+(n+128>>>10<<5)]=i,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=i._createHelper(o),t.HmacSHA512=i._createHmacHelper(o)}(),function(){var e=v,t=(r=e.x64).Word,i=r.WordArray,n=(r=e.algo).SHA512,r=r.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=n._createHelper(r),e.HmacSHA384=n._createHmacHelper(r)}();var y,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b(e){var t,i,n="";for(t=0;t+3<=e.length;t+=3)i=parseInt(e.substring(t,t+3),16),n+=_.charAt(i>>6)+_.charAt(63&i);for(t+1==e.length?(i=parseInt(e.substring(t,t+1),16),n+=_.charAt(i<<2)):t+2==e.length&&(i=parseInt(e.substring(t,t+2),16),n+=_.charAt(i>>2)+_.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function w(e){var t,i,n,r="",o=0;for(t=0;t>2),i=3&n,o=1):1==o?(r+=E(i<<2|n>>4),i=15&n,o=2):2==o?(r+=E(i),r+=E(n>>2),i=3&n,o=3):(r+=E(i<<2|n>>4),r+=E(15&n),o=0));return 1==o&&(r+=E(i<<2)),r}function A(e){var t,i=w(e),n=new Array;for(t=0;2*t>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;r=((u=a*u+((32767&l)<<15)+i[n]+(1073741823&r))>>>30)+(l>>>15)+s*c+(r>>>30),i[n++]=1073741823&u}return r},y=30):"Netscape"!=n.appName?(k.prototype.am=function(e,t,i,n,r,o){for(;--o>=0;){var a=t*this[e++]+i[n]+r;r=Math.floor(a/67108864),i[n++]=67108863&a}return r},y=26):(k.prototype.am=function(e,t,i,n,r,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;r=((u=a*u+((16383&l)<<14)+i[n]+r)>>28)+(l>>14)+s*c,i[n++]=268435455&u}return r},y=28),k.prototype.DB=y,k.prototype.DM=(1<>>16)&&(e=t,i+=16),0!=(t=e>>8)&&(e=t,i+=8),0!=(t=e>>4)&&(e=t,i+=4),0!=(t=e>>2)&&(e=t,i+=2),0!=(t=e>>1)&&(e=t,i+=1),i}function D(e){this.m=e}function R(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function B(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function H(){}function q(e){return e}function j(e){this.r2=M(),this.q3=M(),k.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}D.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},D.prototype.revert=function(e){return e},D.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},D.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},D.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},R.prototype.convert=function(e){var t=M();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(k.ZERO)>0&&this.m.subTo(t,t),t},R.prototype.revert=function(e){var t=M();return e.copyTo(t),this.reduce(t),t},R.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[i=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[i]>=e.DV;)e[i]-=e.DV,e[++i]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},R.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},R.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},k.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},k.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},k.prototype.fromString=function(e,t){var i;if(16==t)i=4;else if(8==t)i=3;else if(256==t)i=8;else if(2==t)i=1;else if(32==t)i=5;else{if(4!=t)return void this.fromRadix(e,t);i=2}this.t=0,this.s=0;for(var n=e.length,r=!1,o=0;--n>=0;){var a=8==i?255&e[n]:L(e,n);a<0?"-"==e.charAt(n)&&(r=!0):(r=!1,0==o?this[this.t++]=a:o+i>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}8==i&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},k.prototype.dlShiftTo=function(e,t){var i;for(i=this.t-1;i>=0;--i)t[i+e]=this[i];for(i=e-1;i>=0;--i)t[i]=0;t.t=this.t+e,t.s=this.s},k.prototype.drShiftTo=function(e,t){for(var i=e;i=0;--i)t[i+a+1]=this[i]>>r|s,s=(this[i]&o)<=0;--i)t[i]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},k.prototype.rShiftTo=function(e,t){t.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t)t.t=0;else{var n=e%this.DB,r=this.DB-n,o=(1<>n;for(var a=i+1;a>n;n>0&&(t[this.t-i-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[i++]=this.DV+n:n>0&&(t[i++]=n),t.t=i,t.clamp()},k.prototype.multiplyTo=function(e,t){var i=this.abs(),n=e.abs(),r=i.t;for(t.t=r+n.t;--r>=0;)t[r]=0;for(r=0;r=0;)e[i]=0;for(i=0;i=t.DV&&(e[i+t.t]-=t.DV,e[i+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(i,t[i],e,2*i,0,1)),e.s=0,e.clamp()},k.prototype.divRemTo=function(e,t,i){var n=e.abs();if(!(n.t<=0)){var r=this.abs();if(r.t0?(n.lShiftTo(u,o),r.lShiftTo(u,i)):(n.copyTo(o),r.copyTo(i));var c=o.t,l=o[c-1];if(0!=l){var h=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(v,i)),k.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t=0;){var y=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*f);if((i[g]+=o.am(0,y,i,m,0,c))0&&i.rShiftTo(u,i),a<0&&k.ZERO.subTo(i,i)}}},k.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},k.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},k.prototype.exp=function(e,t){if(e>4294967295||e<1)return k.ONE;var i=M(),n=M(),r=t.convert(this),o=x(e)-1;for(r.copyTo(i);--o>=0;)if(t.sqrTo(i,n),(e&1<0)t.mulTo(n,r,i);else{var a=i;i=n,n=a}return t.revert(i)},k.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var i,n=(1<0)for(s>s)>0&&(r=!0,o=E(i));a>=0;)s>(s+=this.DB-t)):(i=this[a]>>(s-=t)&n,s<=0&&(s+=this.DB,--a)),i>0&&(r=!0),r&&(o+=E(i));return r?o:"0"},k.prototype.negate=function(){var e=M();return k.ZERO.subTo(this,e),e},k.prototype.abs=function(){return this.s<0?this.negate():this},k.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var i=this.t;if(0!=(t=i-e.t))return this.s<0?-t:t;for(;--i>=0;)if(0!=(t=this[i]-e[i]))return t;return 0},k.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+x(this[this.t-1]^this.s&this.DM)},k.prototype.mod=function(e){var t=M();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(k.ZERO)>0&&e.subTo(t,t),t},k.prototype.modPowInt=function(e,t){var i;return i=e<256||t.isEven()?new D(t):new R(t),this.exp(e,i)},k.ZERO=z(0),k.ONE=z(1),H.prototype.convert=q,H.prototype.revert=q,H.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i)},H.prototype.sqrTo=function(e,t){e.squareTo(t)},j.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=M();return e.copyTo(t),this.reduce(t),t},j.prototype.revert=function(e){return e},j.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},j.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},j.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var Y,W,U,K=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/K[K.length-1];function G(){this.i=0,this.j=0,this.S=new Array}function X(){!function(e){W[U++]^=255&e,W[U++]^=e>>8&255,W[U++]^=e>>16&255,W[U++]^=e>>24&255,U>=256&&(U-=256)}((new Date).getTime())}if(k.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},k.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),i=Math.pow(e,t),n=z(i),r=M(),o=M(),a="";for(this.divRemTo(n,r,o);r.signum()>0;)a=(i+o.intValue()).toString(e).substr(1)+a,r.divRemTo(n,r,o);return o.intValue().toString(e)+a},k.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var i=this.chunkSize(t),n=Math.pow(t,i),r=!1,o=0,a=0,s=0;s=i&&(this.dMultiply(n),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),r&&k.ZERO.subTo(this,this)},k.prototype.fromNumber=function(e,t,i){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(k.ONE.shiftLeft(e-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(k.ONE.shiftLeft(e-1),this);else{var n=new Array,r=7&e;n.length=1+(e>>3),t.nextBytes(n),r>0?n[0]&=(1<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[i++]=n:n<-1&&(t[i++]=this.DV+n),t.t=i,t.clamp()},k.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},k.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},k.prototype.multiplyLowerTo=function(e,t,i){var n,r=Math.min(this.t+e.t,t);for(i.s=0,i.t=r;r>0;)i[--r]=0;for(n=i.t-this.t;r=0;)i[n]=0;for(n=Math.max(t-this.t,0);n0)if(0==t)i=this[0]%e;else for(var n=this.t-1;n>=0;--n)i=(t*i+this[n])%e;return i},k.prototype.millerRabin=function(e){var t=this.subtract(k.ONE),i=t.getLowestSetBit();if(i<=0)return!1;var n=t.shiftRight(i);(e=e+1>>1)>K.length&&(e=K.length);for(var r=M(),o=0;o>24},k.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},k.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},k.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var i,n=this.DB-e*this.DB%8,r=0;if(e-- >0)for(n>n)!=(this.s&this.DM)>>n&&(t[r++]=i|this.s<=0;)n<8?(i=(this[e]&(1<>(n+=this.DB-8)):(i=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),0!=(128&i)&&(i|=-256),0==r&&(128&this.s)!=(128&i)&&++r,(r>0||i!=this.s)&&(t[r++]=i);return t},k.prototype.equals=function(e){return 0==this.compareTo(e)},k.prototype.min=function(e){return this.compareTo(e)<0?this:e},k.prototype.max=function(e){return this.compareTo(e)>0?this:e},k.prototype.and=function(e){var t=M();return this.bitwiseTo(e,O,t),t},k.prototype.or=function(e){var t=M();return this.bitwiseTo(e,P,t),t},k.prototype.xor=function(e){var t=M();return this.bitwiseTo(e,I,t),t},k.prototype.andNot=function(e){var t=M();return this.bitwiseTo(e,N,t),t},k.prototype.not=function(){for(var e=M(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var l=M();for(n.sqrTo(a[1],l);s<=c;)a[s]=M(),n.mulTo(l,a[s-2],a[s]),s+=2}var h,d,f=e.t-1,p=!0,g=M();for(r=x(e[f])-1;f>=0;){for(r>=u?h=e[f]>>r-u&c:(h=(e[f]&(1<0&&(h|=e[f-1]>>this.DB+r-u)),s=i;0==(1&h);)h>>=1,--s;if((r-=s)<0&&(r+=this.DB,--f),p)a[h].copyTo(o),p=!1;else{for(;s>1;)n.sqrTo(o,g),n.sqrTo(g,o),s-=2;s>0?n.sqrTo(o,g):(d=o,o=g,g=d),n.mulTo(g,a[h],o)}for(;f>=0&&0==(e[f]&1<=0?(i.subTo(n,i),t&&r.subTo(a,r),o.subTo(s,o)):(n.subTo(i,n),t&&a.subTo(r,a),s.subTo(o,s))}return 0!=n.compareTo(k.ONE)?k.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s},k.prototype.pow=function(e){return this.exp(e,new H)},k.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(t.compareTo(i)<0){var n=t;t=i,i=n}var r=t.getLowestSetBit(),o=i.getLowestSetBit();if(o<0)return t;for(r0&&(t.rShiftTo(o,t),i.rShiftTo(o,i));t.signum()>0;)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=i.getLowestSetBit())>0&&i.rShiftTo(r,i),t.compareTo(i)>=0?(t.subTo(i,t),t.rShiftTo(1,t)):(i.subTo(t,i),i.rShiftTo(1,i));return o>0&&i.lShiftTo(o,i),i},k.prototype.isProbablePrime=function(e){var t,i=this.abs();if(1==i.t&&i[0]<=K[K.length-1]){for(t=0;t>>8,W[U++]=255&J;U=0,X()}function ee(){if(null==Y){for(X(),(Y=new G).init(W),U=0;U>24,(16711680&r)>>16,(65280&r)>>8,255&r]))),r+=1;return n}function re(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function oe(e,t){this.x=t,this.q=e}function ae(e,t,i,n){this.curve=e,this.x=t,this.y=i,this.z=null==n?k.ONE:n,this.zinv=null}function se(e,t,i){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(i),this.infinity=new ae(this,null,null)}te.prototype.nextBytes=function(e){var t;for(t=0;t0&&t.length>0))throw"Invalid RSA public key";this.n=ie(e,16),this.e=parseInt(t,16)}},re.prototype.encrypt=function(e){var t=function(e,t){if(t=0&&t>0;){var r=e.charCodeAt(n--);r<128?i[--t]=r:r>127&&r<2048?(i[--t]=63&r|128,i[--t]=r>>6|192):(i[--t]=63&r|128,i[--t]=r>>6&63|128,i[--t]=r>>12|224)}i[--t]=0;for(var o=new te,a=new Array;t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);i[--t]=a[0]}return i[--t]=2,i[--t]=0,new k(i)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var i=this.doPublic(t);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},re.prototype.encryptOAEP=function(e,t,i){var n=function(e,t,i,n){var r=ce.crypto.MessageDigest,o=ce.crypto.Util,a=null;if(i||(i="sha1"),"string"==typeof i&&(a=r.getCanonicalAlgName(i),n=r.getHashLength(a),i=function(e){return ke(o.hashHex(Me(e),a))}),e.length+2*n+2>t)throw"Message too long for RSA";var s,u="";for(s=0;s>3,t,i);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;var o=r.toString(16);return 0==(1&o.length)?o:"0"+o},re.prototype.type="RSA",oe.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},oe.prototype.toBigInteger=function(){return this.x},oe.prototype.negate=function(){return new oe(this.q,this.x.negate().mod(this.q))},oe.prototype.add=function(e){return new oe(this.q,this.x.add(e.toBigInteger()).mod(this.q))},oe.prototype.subtract=function(e){return new oe(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},oe.prototype.multiply=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},oe.prototype.square=function(){return new oe(this.q,this.x.square().mod(this.q))},oe.prototype.divide=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},ae.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(k.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(k.ZERO))},ae.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(k.ZERO)&&!this.y.toBigInteger().equals(k.ZERO)},ae.prototype.negate=function(){return new ae(this.curve,this.x,this.y.negate(),this.z)},ae.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),i=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(k.ZERO.equals(i))return k.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new k("3"),r=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(e.x.toBigInteger(),e.y.toBigInteger(),i.square()),s=a.multiply(i),u=r.multiply(a),c=t.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(e.z).subtract(s).multiply(i).mod(this.curve.q),h=u.multiply(n).multiply(t).subtract(o.multiply(s)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ae.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new k("3"),t=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),r=n.multiply(i).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=t.square().multiply(e);k.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(n).mod(this.curve.q),u=a.multiply(e).multiply(t).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(a.square().multiply(a)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),c)},ae.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,i=e,n=i.multiply(new k("3")),r=this.negate(),o=this;for(t=n.bitLength()-2;t>0;--t){o=o.twice();var a=n.testBit(t);a!=i.testBit(t)&&(o=o.add(a?this:r))}return o},ae.prototype.multiplyTwo=function(e,t,i){var n;n=e.bitLength()>i.bitLength()?e.bitLength()-1:i.bitLength()-1;for(var r=this.curve.getInfinity(),o=this.add(t);n>=0;)r=r.twice(),e.testBit(n)?r=i.testBit(n)?r.add(o):r.add(this):i.testBit(n)&&(r=r.add(t)),--n;return r},se.prototype.getQ=function(){return this.q},se.prototype.getA=function(){return this.a},se.prototype.getB=function(){return this.b},se.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},se.prototype.getInfinity=function(){return this.infinity},se.prototype.fromBigInteger=function(e){return new oe(this.q,e)},se.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,i=e.substr(2,t),n=e.substr(t+2,t);return new ae(this,this.fromBigInteger(new k(i,16)),this.fromBigInteger(new k(n,16)));default:return null}},oe.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ae.prototype.getEncoded=function(e){var t=function(e,t){var i=e.toByteArrayUnsigned();if(ti.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),r=t(i,32);return e?n.isEven()?r.unshift(2):r.unshift(3):(r.unshift(4),r=r.concat(t(n,32))),r},ae.decodeFrom=function(e,t){var i=t.length-1,n=t.slice(1,1+i/2),r=t.slice(1+i/2,1+i);n.unshift(0),r.unshift(0);var o=new k(n),a=new k(r);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.decodeFromHex=function(e,t){t.substr(0,2);var i=t.length-2,n=t.substr(2,i/2),r=t.substr(2+i/2,i/2),o=new k(n,16),a=new k(r,16);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),i=e.y.subtract(this.y).divide(t),n=i.square().subtract(this.x).subtract(e.x),r=i.multiply(this.x.subtract(n)).subtract(this.y);return new ae(this.curve,n,r)},ae.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(k.valueOf(2)),t=this.curve.fromBigInteger(k.valueOf(3)),i=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),n=i.square().subtract(this.x.multiply(e)),r=i.multiply(this.x.subtract(n)).subtract(this.y);return new ae(this.curve,n,r)},ae.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,i=e,n=i.multiply(new k("3")),r=this.negate(),o=this;for(t=n.bitLength()-2;t>0;--t){o=o.twice();var a=n.testBit(t);a!=i.testBit(t)&&(o=o.add2D(a?this:r))}return o},ae.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),r=this.curve.getQ(),o=t.multiply(t).mod(r),a=e.multiply(e).multiply(e).add(i.multiply(e)).add(n).mod(r);return o.equals(a)},ae.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ae.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(t.compareTo(k.ONE)<0||t.compareTo(e.subtract(k.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(k.ONE)<0||i.compareTo(e.subtract(k.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ue=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function r(e,t,i){return t?n[t]:String.fromCharCode(parseInt(i,16))}var o=new String(""),a=Object.hasOwnProperty;return function(n,s){var u,c,l=n.match(e),h=l[0],d=!1;"{"===h?u={}:"["===h?u=[]:(u=[],d=!0);for(var f=[u],p=1-d,g=l.length;p=0;)delete r[o[l]]}return s.call(t,n,r)}({"":u},"")),u}}();void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.asn1&&ce.asn1||(ce.asn1={}),ce.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var i=t.substr(1).length;i%2==1?i+=1:t.match(/^[0-7]/)||(i+=2);for(var n="",r=0;r15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+i).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ce.asn1.DERAbstractString=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=we(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},o.lang.extend(ce.asn1.DERAbstractString,ce.asn1.ASN1Object),ce.asn1.DERAbstractTime=function(e){ce.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,i){var n=this.zeroPadding,r=this.localDateToUTC(e),o=String(r.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+n(String(r.getMonth()+1),2)+n(String(r.getDate()),2)+n(String(r.getHours()),2)+n(String(r.getMinutes()),2)+n(String(r.getSeconds()),2);if(!0===i){var s=r.getMilliseconds();if(0!=s){var u=n(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=me(e)},this.setByDateValue=function(e,t,i,n,r,o){var a=new Date(Date.UTC(e,t-1,i,n,r,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ce.asn1.DERAbstractTime,ce.asn1.ASN1Object),ce.asn1.DERAbstractStructured=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},o.lang.extend(ce.asn1.DERAbstractStructured,ce.asn1.ASN1Object),ce.asn1.DERBoolean=function(){ce.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},o.lang.extend(ce.asn1.DERBoolean,ce.asn1.ASN1Object),ce.asn1.DERInteger=function(e){ce.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ce.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new k(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},o.lang.extend(ce.asn1.DERInteger,ce.asn1.ASN1Object),ce.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ce.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}ce.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7r.length&&(r=n[i]);return(e=e.replace(r,"::")).slice(1,-1)}function Ie(e){var t="malformed hex value";if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8!=e.length)return 32==e.length?Pe(e):e;try{return parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16)}catch(e){throw t}}function Ne(e){for(var t=encodeURIComponent(e),i="",n=0;n"7"?"00"+e:e}de.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var i=parseInt(e.substr(t+3,1));return 0==i?-1:0=2*o)break;if(s>=200)break;n.push(u),a=u,s++}return n},de.getNthChildIdx=function(e,t,i){return de.getChildIdx(e,t)[i]},de.getIdxbyList=function(e,t,i,n){var r,o,a=de;if(0==i.length){if(void 0!==n&&e.substr(t,2)!==n)throw"checking tag doesn't match: "+e.substr(t,2)+"!="+n;return t}return r=i.shift(),o=a.getChildIdx(e,t),a.getIdxbyList(e,o[r],i,n)},de.getTLVbyList=function(e,t,i,n){var r=de,o=r.getIdxbyList(e,t,i);if(void 0===o)throw"can't find nthList object";if(void 0!==n&&e.substr(o,2)!=n)throw"checking tag doesn't match: "+e.substr(o,2)+"!="+n;return r.getTLV(e,o)},de.getVbyList=function(e,t,i,n,r){var o,a,s=de;if(void 0===(o=s.getIdxbyList(e,t,i,n)))throw"can't find nthList object";return a=s.getV(e,o),!0===r&&(a=a.substr(2)),a},de.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},i=[],n=e.substr(0,2),r=parseInt(n,16);i[0]=new String(Math.floor(r/40)),i[1]=new String(r%40);for(var o=e.substr(2),a=[],s=0;s0&&(l=l+"."+u.join(".")),l},de.dump=function(e,t,i,n){var r=de,o=r.getV,a=r.dump,s=r.getChildIdx,u=e;e instanceof ce.asn1.ASN1Object&&(u=e.getEncodedHex());var c=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=t.ommit_long_octet;if("01"==u.substr(i,2))return"00"==(h=o(u,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==u.substr(i,2))return n+"INTEGER "+c(h=o(u,i),l)+"\n";if("03"==u.substr(i,2))return n+"BITSTRING "+c(h=o(u,i),l)+"\n";if("04"==u.substr(i,2)){var h=o(u,i);return r.isASN1HEX(h)?(A=n+"OCTETSTRING, encapsulates\n")+a(h,t,0,n+" "):n+"OCTETSTRING "+c(h,l)+"\n"}if("05"==u.substr(i,2))return n+"NULL\n";if("06"==u.substr(i,2)){var d=o(u,i),f=ce.asn1.ASN1Util.oidHexToInt(d),p=ce.asn1.x509.OID.oid2name(f),g=f.replace(/\./g," ");return""!=p?n+"ObjectIdentifier "+p+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==u.substr(i,2))return n+"UTF8String '"+Ae(o(u,i))+"'\n";if("13"==u.substr(i,2))return n+"PrintableString '"+Ae(o(u,i))+"'\n";if("14"==u.substr(i,2))return n+"TeletexString '"+Ae(o(u,i))+"'\n";if("16"==u.substr(i,2))return n+"IA5String '"+Ae(o(u,i))+"'\n";if("17"==u.substr(i,2))return n+"UTCTime "+Ae(o(u,i))+"\n";if("18"==u.substr(i,2))return n+"GeneralizedTime "+Ae(o(u,i))+"\n";if("30"==u.substr(i,2)){if("3000"==u.substr(i,4))return n+"SEQUENCE {}\n";A=n+"SEQUENCE\n";var m=t;if((2==(_=s(u,i)).length||3==_.length)&&"06"==u.substr(_[0],2)&&"04"==u.substr(_[_.length-1],2)){p=r.oidname(o(u,_[0]));var v=JSON.parse(JSON.stringify(t));v.x509ExtName=p,m=v}for(var y=0;y<_.length;y++)A+=a(u,m,_[y],n+" ");return A}if("31"==u.substr(i,2)){A=n+"SET\n";var _=s(u,i);for(y=0;y<_.length;y++)A+=a(u,t,_[y],n+" ");return A}var b=parseInt(u.substr(i,2),16);if(0!=(128&b)){var w=31&b;if(0!=(32&b)){var A=n+"["+w+"]\n";for(_=s(u,i),y=0;y<_.length;y++)A+=a(u,t,_[y],n+" ");return A}return"68747470"==(h=o(u,i)).substr(0,8)&&(h=Ae(h)),"subjectAltName"===t.x509ExtName&&2==w&&(h=Ae(h)),n+"["+w+"] "+h+"\n"}return n+"UNKNOWN("+u.substr(i,2)+") "+o(u,i)+"\n"},de.isASN1HEX=function(e){var t=de;if(e.length%2==1)return!1;var i=t.getVblen(e,0),n=e.substr(0,2),r=t.getL(e,0);return e.length-n.length-r.length==2*i},de.oidname=function(e){var t=ce.asn1;ce.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var i=t.x509.OID.oid2name(e);return""===i&&(i=e),i},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.lang&&ce.lang||(ce.lang={}),ce.lang.String=function(){},"function"==typeof e?(t.utf8tob64u=le=function(t){return ve(new e(t,"utf8").toString("base64"))},t.b64utoutf8=he=function(t){return new e(ye(t),"base64").toString("utf8")}):(t.utf8tob64u=le=function(e){return _e(De(Ne(e)))},t.b64utoutf8=he=function(e){return decodeURIComponent(Re(be(e)))}),ce.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},ce.lang.String.isHex=function(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))},ce.lang.String.isBase64=function(e){return!(!(e=e.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},ce.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=ye(e),ce.lang.String.isBase64(e))},ce.lang.String.isIntegerArray=function(e){return!!(e=e.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:v.algo.MD5,sha1:v.algo.SHA1,sha224:v.algo.SHA224,sha256:v.algo.SHA256,sha384:v.algo.SHA384,sha512:v.algo.SHA512,ripemd160:v.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,i){var n=this.getDigestInfoHex(e,t),r=i/4;if(n.length+22>r)throw"key is too short for SigAlg: keylen="+i+","+t;for(var o="0001",a="00"+n,s="",u=r-o.length-a.length,c=0;c=0)return!1;if(i.compareTo(k.ONE)<0||i.compareTo(r)>=0)return!1;var a=i.modInverse(r),s=e.multiply(a).mod(r),u=t.multiply(a).mod(r);return o.multiply(s).add(n.multiply(u)).getX().toBigInteger().mod(r).equals(t)},this.serializeSig=function(e,t){var i=e.toByteArraySigned(),n=t.toByteArraySigned(),r=[];return r.push(2),r.push(i.length),(r=r.concat(i)).push(2),r.push(n.length),(r=r.concat(n)).unshift(r.length),r.unshift(48),r},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(2!=e[t=2])throw new Error("First element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error("Second element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:k.fromByteArrayUnsigned(i),s:k.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:k.fromByteArrayUnsigned(e.slice(1,33)).mod(i),s:k.fromByteArrayUnsigned(e.slice(33,65)).mod(i),i:t}},this.readPKCS5PrvKeyHex=function(e){var t,i,n,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{t=o(e,0,[2,0],"06"),i=o(e,0,[1],"04");try{n=o(e,0,[3,0],"03").substr(2)}catch(e){}}catch(e){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=r(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){var t,i,n,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{o(e,0,[1,0],"06"),t=o(e,0,[1,1],"06"),i=o(e,0,[2,0,1],"04");try{n=o(e,0,[2,0,2,0],"03").substr(2)}catch(e){}}catch(e){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=r(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){var t,i,n=ce.crypto.ECDSA.getName,r=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{r(e,0,[0,0],"06"),t=r(e,0,[0,1],"06"),i=r(e,0,[1],"03").substr(2)}catch(e){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(t),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(e,t){5!==t&&(t=6);var i,n,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{i=o(e,0,[0,t,0,1],"06"),n=o(e,0,[0,t,1],"03").substr(2)}catch(e){throw"malformed X.509 certificate ECC public key"}if(this.curveName=r(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},ce.crypto.ECDSA.parseSigHex=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new k(t.r,16),s:new k(t.s,16)}},ce.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=de.getChildIdx,i=de.getV;if("30"!=e.substr(0,2))throw"signature is not a ASN.1 sequence";var n=t(e,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var r=n[0],o=n[1];if("02"!=e.substr(r,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=e.substr(o,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(e,r),s:i(e,o)}},ce.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e),i=t.r,n=t.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ce.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var t=e.substr(0,e.length/2),i=e.substr(e.length/2);return ce.crypto.ECDSA.hexRSSigToASN1Sig(t,i)},ce.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var i=new k(e,16),n=new k(t,16);return ce.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ce.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var i=ce.asn1,n=new i.DERInteger({bigint:e}),r=new i.DERInteger({bigint:t});return new i.DERSequence({array:[n,r]}).getEncodedHex()},ce.crypto.ECDSA.getName=function(e){return"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040022"===e?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":null},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.ECParameterDB=new function(){var e={},t={};function i(e){return new k(e,16)}this.getByName=function(i){var n=i;if(void 0!==t[n]&&(n=t[i]),void 0!==e[n])return e[n];throw"unregistered EC curve name: "+n},this.regist=function(n,r,o,a,s,u,c,l,h,d,f,p){e[n]={};var g=i(o),m=i(a),v=i(s),y=i(u),_=i(c),b=new se(g,m,v),w=b.decodePointHex("04"+l+h);e[n].name=n,e[n].keylen=r,e[n].curve=b,e[n].G=w,e[n].n=y,e[n].h=_,e[n].oid=f,e[n].info=p;for(var A=0;A=2*s)break}var h={};return h.keyhex=u.substr(0,2*r[e].keylen),h.ivhex=u.substr(2*r[e].keylen,2*r[e].ivlen),h},s=function(e,t,i,n){var o=v.enc.Base64.parse(e),a=v.enc.Hex.stringify(o);return(0,r[t].proc)(a,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(e){return o(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,i){return a(e,t,i)},decryptKeyB64:function(e,t,i,n){return s(e,t,i,n)},getDecryptedKeyHex:function(e,t){var i=o(e),n=i.cipher,r=i.ivsalt,u=i.data,c=a(n,t,r).keyhex;return s(u,n,c,r)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,i,n,o){var s="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===r[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==o&&null!=o||(o=function(e){var t=v.lib.WordArray.random(e);return v.enc.Hex.stringify(t)}(r[n].ivlen).toUpperCase()),s="-----BEGIN "+e+" PRIVATE KEY-----\r\n",s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+n+","+o+"\r\n",s+="\r\n",(s+=function(e,t,i,n){return(0,r[t].eproc)(e,i,n)}(t,n,a(n,i,o).keyhex,o).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+e+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(t){var i=de.getChildIdx,n=de.getV,r={},o=i(t,0);if(2!=o.length)throw"malformed format: SEQUENCE(0).items != 2: "+o.length;r.ciphertext=n(t,o[1]);var a=i(t,o[0]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+a.length;if("2a864886f70d01050d"!=n(t,a[0]))throw"this only supports pkcs5PBES2";var s=i(t,a[1]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+s.length;var u=i(t,s[1]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+u.length;if("2a864886f70d0307"!=n(t,u[0]))throw"this only supports TripleDES";r.encryptionSchemeAlg="TripleDES",r.encryptionSchemeIV=n(t,u[1]);var c=i(t,s[0]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length;if("2a864886f70d01050c"!=n(t,c[0]))throw"this only supports pkcs5PBKDF2";var l=i(t,c[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;r.pbkdf2Salt=n(t,l[0]);var h=n(t,l[1]);try{r.pbkdf2Iter=parseInt(h,16)}catch(e){throw"malformed format pbkdf2Iter: "+h}return r},getPBKDF2KeyHexFromParam:function(e,t){var i=v.enc.Hex.parse(e.pbkdf2Salt),n=v.PBKDF2(t,i,{keySize:6,iterations:e.pbkdf2Iter});return v.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var i=Le(e,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),r=Be.getPBKDF2KeyHexFromParam(n,t),o={};o.ciphertext=v.enc.Hex.parse(n.ciphertext);var a=v.enc.Hex.parse(r),s=v.enc.Hex.parse(n.encryptionSchemeIV),u=v.TripleDES.decrypt(o,a,{iv:s});return v.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(e){var t=de,i=t.getChildIdx,n=t.getV,r={algparam:null};if("30"!=e.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=i(e,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=e.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var a=i(e,o[1]);if(2!=a.length)throw"malformed PKCS8 private key(code:004)";if("06"!=e.substr(a[0],2))throw"malformed PKCS8 private key(code:005)";if(r.algoid=n(e,a[0]),"06"==e.substr(a[1],2)&&(r.algparam=n(e,a[1])),"04"!=e.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return r.keyidx=t.getVidx(e,o[2]),r},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Le(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,i=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==i.algoid)t=new re;else if("2a8648ce380401"==i.algoid)t=new ce.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";t=new ce.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,i=de.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===i)t=new re;else if("2a8648ce380401"===i)t=new ce.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";t=new ce.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=de.getChildIdx,i=de.getV,n={};if("30"!=e.substr(0,2))throw"malformed RSA key(code:001)";var r=t(e,0);if(2!=r.length)throw"malformed RSA key(code:002)";if("02"!=e.substr(r[0],2))throw"malformed RSA key(code:003)";if(n.n=i(e,r[0]),"02"!=e.substr(r[1],2))throw"malformed RSA key(code:004)";return n.e=i(e,r[1]),n},parsePublicPKCS8Hex:function(e){var t=de,i=t.getChildIdx,n=t.getV,r={algparam:null},o=i(e,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var a=o[0];if("30"!=e.substr(a,2))throw"malformed PKCS8 public key(code:001)";var s=i(e,a);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=e.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(r.algoid=n(e,s[0]),"06"==e.substr(s[1],2)?r.algparam=n(e,s[1]):"30"==e.substr(s[1],2)&&(r.algparam={},r.algparam.p=t.getVbyList(e,s[1],[0],"02"),r.algparam.q=t.getVbyList(e,s[1],[1],"02"),r.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return r.key=n(e,o[1]).substr(2),r}}}();Be.getKey=function(e,t,i){var n,r=(v=de).getChildIdx,o=v.getVbyList,a=ce.crypto,s=a.ECDSA,u=a.DSA,c=re,l=Le,h=Be;if(void 0!==c&&e instanceof c)return e;if(void 0!==s&&e instanceof s)return e;if(void 0!==u&&e instanceof u)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(L=new c).setPublic(e.n,e.e),L;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi)return(L=new c).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),L;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(L=new c).setPrivate(e.n,e.e,e.d),L;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(L=new u).setPublic(e.p,e.q,e.g,e.y),L;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(L=new u).setPrivate(e.p,e.q,e.g,e.y,e.x),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(L=new c).setPublic(be(e.n),be(e.e)),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi)return(L=new c).setPrivateEx(be(e.n),be(e.e),be(e.d),be(e.p),be(e.q),be(e.dp),be(e.dq),be(e.qi)),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(L=new c).setPrivate(be(e.n),be(e.e),be(e.d)),L;if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var d=(E=new s({curve:e.crv})).ecparams.keylen/4,f="04"+("0000000000"+be(e.x)).slice(-d)+("0000000000"+be(e.y)).slice(-d);return E.setPublicKeyHex(f),E}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){d=(E=new s({curve:e.crv})).ecparams.keylen/4,f="04"+("0000000000"+be(e.x)).slice(-d)+("0000000000"+be(e.y)).slice(-d);var p=("0000000000"+be(e.d)).slice(-d);return E.setPublicKeyHex(f),E.setPrivateKeyHex(p),E}if("pkcs5prv"===i){var g,m=e,v=de;if(9===(g=r(m,0)).length)(L=new c).readPKCS5PrvKeyHex(m);else if(6===g.length)(L=new u).readPKCS5PrvKeyHex(m);else{if(!(g.length>2&&"04"===m.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(L=new s).readPKCS5PrvKeyHex(m)}return L}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(e);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(e);if("x509pub"===i)return We.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return We.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var y=Le(e,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(y)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var _=l(e,"RSA PRIVATE KEY");return h.getKey(_,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var b=o(n=l(e,"DSA PRIVATE KEY"),0,[1],"02"),w=o(n,0,[2],"02"),A=o(n,0,[3],"02"),M=o(n,0,[4],"02"),C=o(n,0,[5],"02");return(L=new u).setPrivate(new k(b,16),new k(w,16),new k(A,16),new k(M,16),new k(C,16)),L}if(-1!=e.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(e,t),T=new re;return T.readPKCS5PrvKeyHex(S),T}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var E,L=o(n=h.getDecryptedKeyHex(e,t),0,[1],"04"),z=o(n,0,[2,0],"06"),x=o(n,0,[3,0],"03").substr(2);if(void 0===ce.crypto.OID.oidhex2name[z])throw"undefined OID(hex) in KJUR.crypto.OID: "+z;return(E=new s({curve:ce.crypto.OID.oidhex2name[z]})).setPublicKeyHex(x),E.setPrivateKeyHex(L),E.isPublic=!1,E}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED"))return b=o(n=h.getDecryptedKeyHex(e,t),0,[1],"02"),w=o(n,0,[2],"02"),A=o(n,0,[3],"02"),M=o(n,0,[4],"02"),C=o(n,0,[5],"02"),(L=new u).setPrivate(new k(b,16),new k(w,16),new k(A,16),new k(M,16),new k(C,16)),L;if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(e,t);throw"not supported argument"},Be.generateKeypair=function(e,t){if("RSA"==e){var i=t;(a=new re).generate(i,"10001"),a.isPrivate=!0,a.isPublic=!0;var n=new re,r=a.n.toString(16),o=a.e.toString(16);return n.setPublic(r,o),n.isPrivate=!1,n.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=n,s}if("EC"==e){var a,s,u=t,c=new ce.crypto.ECDSA({curve:u}).generateKeyPairHex();return(a=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),a.setPrivateKeyHex(c.ecprvhex),a.isPrivate=!0,a.isPublic=!1,(n=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=n,s}throw"unknown algorithm: "+e},Be.getPEM=function(e,t,i,n,r,o){var a=ce.asn1,s=a.DERObjectIdentifier,u=a.DERInteger,c=a.ASN1Util.newObject,l=ce.crypto,h=l.DSA,d=l.ECDSA,f=re;function p(e){return c({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function g(e){return c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function m(e){return c({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==f&&e instanceof f||void 0!==h&&e instanceof h||void 0!==d&&e instanceof d)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t))return Ee(w=new(0,a.x509.SubjectPublicKeyInfo)(e).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==t&&void 0!==f&&e instanceof f&&(void 0===i||null==i)&&1==e.isPrivate)return Ee(w=p(e).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==t&&void 0!==d&&e instanceof d&&(void 0===i||null==i)&&1==e.isPrivate){var y=new s({name:e.curveName}).getEncodedHex(),_=g(e).getEncodedHex(),b="";return(b+=Ee(y,"EC PARAMETERS"))+Ee(_,"EC PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==h&&e instanceof h&&(void 0===i||null==i)&&1==e.isPrivate)return Ee(w=m(e).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==t&&void 0!==f&&e instanceof f&&void 0!==i&&null!=i&&1==e.isPrivate){var w=p(e).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,i,n,o)}if("PKCS5PRV"==t&&void 0!==d&&e instanceof d&&void 0!==i&&null!=i&&1==e.isPrivate)return w=g(e).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,i,n,o);if("PKCS5PRV"==t&&void 0!==h&&e instanceof h&&void 0!==i&&null!=i&&1==e.isPrivate)return w=m(e).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,i,n,o);var A=function(e,t){var i=k(e,t);return new c({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},k=function(e,t){var i=v.lib.WordArray.random(8),n=v.lib.WordArray.random(8),r=v.PBKDF2(t,i,{keySize:6,iterations:100}),o=v.enc.Hex.parse(e),a=v.TripleDES.encrypt(o,r,{iv:n})+"",s={};return s.ciphertext=a,s.pbkdf2Salt=v.enc.Hex.stringify(i),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=v.enc.Hex.stringify(n),s};if("PKCS8PRV"==t&&null!=f&&e instanceof f&&1==e.isPrivate){var M=p(e).getEncodedHex();return w=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:M}}]}).getEncodedHex(),void 0===i||null==i?Ee(w,"PRIVATE KEY"):Ee(_=A(w,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==d&&e instanceof d&&1==e.isPrivate)return M=new c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]}).getEncodedHex(),w=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:M}}]}).getEncodedHex(),void 0===i||null==i?Ee(w,"PRIVATE KEY"):Ee(_=A(w,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==t&&void 0!==h&&e instanceof h&&1==e.isPrivate)return M=new u({bigint:e.x}).getEncodedHex(),w=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:M}}]}).getEncodedHex(),void 0===i||null==i?Ee(w,"PRIVATE KEY"):Ee(_=A(w,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Be.getKeyFromCSRPEM=function(e){var t=Le(e,"CERTIFICATE REQUEST");return Be.getKeyFromCSRHex(t)},Be.getKeyFromCSRHex=function(e){var t=Be.parseCSRHex(e);return Be.getKey(t.p8pubkeyhex,null,"pkcs8pub")},Be.parseCSRHex=function(e){var t=de.getChildIdx,i=de.getTLV,n={},r=e;if("30"!=r.substr(0,2))throw"malformed CSR(code:001)";var o=t(r,0);if(o.length<1)throw"malformed CSR(code:002)";if("30"!=r.substr(o[0],2))throw"malformed CSR(code:003)";var a=t(r,o[0]);if(a.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(r,a[2]),n},Be.getJWKFromKey=function(e){var t={};if(e instanceof re&&e.isPrivate)return t.kty="RSA",t.n=_e(e.n.toString(16)),t.e=_e(e.e.toString(16)),t.d=_e(e.d.toString(16)),t.p=_e(e.p.toString(16)),t.q=_e(e.q.toString(16)),t.dp=_e(e.dmp1.toString(16)),t.dq=_e(e.dmq1.toString(16)),t.qi=_e(e.coeff.toString(16)),t;if(e instanceof re&&e.isPublic)return t.kty="RSA",t.n=_e(e.n.toString(16)),t.e=_e(e.e.toString(16)),t;if(e instanceof ce.crypto.ECDSA&&e.isPrivate){if("P-256"!==(n=e.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=e.getPublicKeyXYHex();return t.kty="EC",t.crv=n,t.x=_e(i.x),t.y=_e(i.y),t.d=_e(e.prvKeyHex),t}if(e instanceof ce.crypto.ECDSA&&e.isPublic){var n;if("P-256"!==(n=e.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=e.getPublicKeyXYHex(),t.kty="EC",t.crv=n,t.x=_e(i.x),t.y=_e(i.y),t}throw"not supported key object"},re.getPosArrayOfChildrenFromHex=function(e){return de.getChildIdx(e,0)},re.getHexValueArrayOfChildrenFromHex=function(e){var t,i=de.getV,n=i(e,(t=re.getPosArrayOfChildrenFromHex(e))[0]),r=i(e,t[1]),o=i(e,t[2]),a=i(e,t[3]),s=i(e,t[4]),u=i(e,t[5]),c=i(e,t[6]),l=i(e,t[7]),h=i(e,t[8]);return(t=new Array).push(n,r,o,a,s,u,c,l,h),t},re.prototype.readPrivateKeyFromPEMString=function(e){var t=Le(e),i=re.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},re.prototype.readPKCS5PrvKeyHex=function(e){var t=re.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},re.prototype.readPKCS8PrvKeyHex=function(e){var t,i,n,r,o,a,s,u,c=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{t=c(e,0,[2,0,1],"02"),i=c(e,0,[2,0,2],"02"),n=c(e,0,[2,0,3],"02"),r=c(e,0,[2,0,4],"02"),o=c(e,0,[2,0,5],"02"),a=c(e,0,[2,0,6],"02"),s=c(e,0,[2,0,7],"02"),u=c(e,0,[2,0,8],"02")}catch(e){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(t,i,n,r,o,a,s,u)},re.prototype.readPKCS5PubKeyHex=function(e){var t=de,i=t.getV;if(!1===t.isASN1HEX(e))throw"keyHex is not ASN.1 hex string";var n=t.getChildIdx(e,0);if(2!==n.length||"02"!==e.substr(n[0],2)||"02"!==e.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var r=i(e,n[0]),o=i(e,n[1]);this.setPublic(r,o)},re.prototype.readPKCS8PubKeyHex=function(e){var t=de;if(!1===t.isASN1HEX(e))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==t.getTLVbyList(e,0,[0,0]))throw"not PKCS8 RSA public key";var i=t.getTLVbyList(e,0,[1,0]);this.readPKCS5PubKeyHex(i)},re.prototype.readCertPubKeyHex=function(e,t){var i,n;(i=new We).readCertHex(e),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var He=new RegExp("");function qe(e,t){for(var i="",n=t/4-e.length,r=0;r>24,(16711680&r)>>16,(65280&r)>>8,255&r])))),r+=1;return n}function Ye(e){for(var t in ce.crypto.Util.DIGESTINFOHEAD){var i=ce.crypto.Util.DIGESTINFOHEAD[t],n=i.length;if(e.substring(0,n)==i)return[t,e.substring(n)]}return[]}function We(){var e=de,t=e.getChildIdx,i=e.getV,n=e.getTLV,r=e.getVbyList,o=e.getTLVbyList,a=e.getIdxbyList,s=e.getVidx,u=e.oidname,c=We,l=Le;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==o(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return r(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return u(r(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return o(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return c.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return o(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return c.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var e=r(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getNotAfter=function(){var e=r(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getPublicKeyHex=function(){return e.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return a(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return a(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Be.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return u(r(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return r(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=o(this.hex,0,[0],"30"),r=new ce.crypto.Signature({alg:t});return r.init(e),r.updateHex(n),r.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=a(this.hex,0,[0,7,0],"30"),n=t(this.hex,i);this.aExtInfo=new Array;for(var o=0;o0&&(c=new Array(i),(new te).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=ke(u(Me("\0\0\0\0\0\0\0\0"+r+c))),h=[];for(n=0;n>8*s-a&255),n=0;nthis.n.bitLength())return 0;var n=Ye(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var r=n[0];return n[1]==function(e){return ce.crypto.Util.hashString(e,r)}(e)},re.prototype.verifyWithMessageHash=function(e,t){var i=ie(t=(t=t.replace(He,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Ye(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==e},re.prototype.verifyPSS=function(e,t,i,n){var r=function(e){return ce.crypto.Util.hashHex(e,i)}(Me(e));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(r,t,i,n)},re.prototype.verifyWithMessageHashPSS=function(e,t,i,n){var r=new k(t,16);if(r.bitLength()>this.n.bitLength())return!1;var o,a=function(e){return ce.crypto.Util.hashHex(e,i)},s=ke(e),u=s.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===n||void 0===n)n=u;else if(-2===n)n=l-u-2;else if(n<-2)throw"invalid salt length";if(l>8*l-c&255;if(0!=(d.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=je(f,d.length,a),m=[];for(o=0;o0&&-1==(":"+n.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=Be.getKey(t)),!("RS"!=d&&"PS"!=d||t instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(t instanceof u))throw"key shall be a ECDSA obj for ES* algs";var v=null;if(void 0===o.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+m;if("none"==(v=o.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==v.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var y=new c({alg:v,pass:t});return y.updateString(f),p==y.doFinal()}if(-1!=v.indexOf("withECDSA")){var _,b=null;try{b=u.concatSigToASN1Sig(p)}catch(e){return!1}return(_=new l({alg:v})).init(t),_.updateString(f),_.verify(b)}return(_=new l({alg:v})).init(t),_.updateString(f),_.verify(p)},ce.jws.JWS.parse=function(e){var t,i,n=e.split("."),r={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=n[1],3==n.length&&(i=n[2]),r.headerObj=ce.jws.JWS.readSafeJSONString(he(n[0])),r.payloadObj=ce.jws.JWS.readSafeJSONString(he(t)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadPP=null==r.payloadObj?he(t):JSON.stringify(r.payloadObj,null," "),void 0!==i&&(r.sigHex=be(i)),r},ce.jws.JWS.verifyJWT=function(e,t,n){var r=ce.jws,o=r.JWS,a=o.readSafeJSONString,s=o.inArray,u=o.includedArray,c=e.split("."),l=c[0],h=c[1],d=(be(c[2]),a(he(l))),f=a(he(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!s(d.alg,n.alg))return!1;if(void 0!==f.iss&&"object"===i(n.iss)&&!s(f.iss,n.iss))return!1;if(void 0!==f.sub&&"object"===i(n.sub)&&!s(f.sub,n.sub))return!1;if(void 0!==f.aud&&"object"===i(n.aud))if("string"==typeof f.aud){if(!s(f.aud,n.aud))return!1}else if("object"==i(f.aud)&&!u(f.aud,n.aud))return!1;var p=r.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+n.gracePeriodt.length&&(i=t.length);for(var n=0;n=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function m(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,i,n,r);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):v(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,i,n,r){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,i/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var l=-1;for(o=i;os&&(i=s-u),o=i;o>=0;o--){for(var h=!0,d=0;dr&&(n=r):n=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,r.push(i%256),r.push(n);return r}(t,e.length-i),e,i,n)}function M(e,t,i){return n.fromByteArray(0===t&&i===e.length?e:e.slice(t,i))}function C(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r239?4:c>223?3:c>191?2:1;if(r+h<=i)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[r+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:a=e[r+2],128==(192&(o=e[r+1]))&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[r+2],s=e[r+3],128==(192&(o=e[r+1]))&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),r+=h}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,i);case"utf8":case"utf-8":return C(this,t,i);case"ascii":return T(this,t,i);case"latin1":case"binary":return E(this,t,i);case"base64":return M(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}).apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),""},u.prototype.compare=function(e,t,i,n,r){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,r),l=e.slice(t,i),h=0;hr)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,e,t,i);case"utf8":case"utf-8":return _(this,e,t,i);case"ascii":return b(this,e,t,i);case"latin1":case"binary":return w(this,e,t,i);case"base64":return A(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function T(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;rn)&&(i=n);for(var r="",o=t;oi)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,i,n,r,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function R(e,t,i,n){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-i,2);r>>8*(n?r:1-r)}function O(e,t,i,n){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-i,4);r>>8*(n?r:3-r)&255}function P(e,t,i,n,r,o){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function I(e,t,i,n,o){return o||P(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function N(e,t,i,n,o){return o||P(e,0,i,8),r.write(e,t,i,n,52,8),i+8}u.prototype.slice=function(e,t){var i,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(r*=256);)n+=this[e+--t]*r;return n},u.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||x(e,t,this.length);for(var n=this[e],r=1,o=0;++o=(r*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||x(e,t,this.length);for(var n=t,r=1,o=this[e+--n];n>0&&(r*=256);)o+=this[e+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||x(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt16BE=function(e,t){t||x(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt32LE=function(e,t){return t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||x(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,i,n){e=+e,t|=0,i|=0,n||D(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+r]=e/o&255;return t+i},u.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);D(this,e,t,i,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+i},u.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);D(this,e,t,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},u.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,i){return I(this,e,t,!0,i)},u.prototype.writeFloatBE=function(e,t,i){return I(this,e,t,!1,i)},u.prototype.writeDoubleLE=function(e,t,i){return N(this,e,t,!0,i)},u.prototype.writeDoubleBE=function(e,t,i){return N(this,e,t,!1,i)},u.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--r)e[r+t]=this[r+i];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function q(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,i,n){for(var r=0;r=t.length||r>=e.length);++r)t[r+i]=e[r];return r}}).call(this,i(28))},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){"use strict";t.byteLength=function(e){var t=c(e),i=t[1];return 3*(t[0]+i)/4-i},t.toByteArray=function(e){for(var t,i=c(e),n=i[0],a=i[1],s=new o(function(e,t,i){return 3*(t+i)/4-i}(0,n,a)),u=0,l=a>0?n-4:n,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(h)]<<2|r[e.charCodeAt(h+1)]>>4,s[u++]=255&t),1===a&&(t=r[e.charCodeAt(h)]<<10|r[e.charCodeAt(h+1)]<<4|r[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t),s},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,o=[],a=0,s=i-r;as?s:a+16383));return 1===r?o.push(n[(t=e[i-1])>>2]+n[t<<4&63]+"=="):2===r&&o.push(n[(t=(e[i-2]<<8)+e[i-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function l(e,t,i){for(var r,o=[],a=t;a>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,i,n,r){var o,a,s=8*r-n-1,u=(1<>1,l=-7,h=i?r-1:0,d=i?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=c}return(f?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,i,n,r,o){var a,s,u,c=8*o-r-1,l=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(t*u-1)*Math.pow(2,r),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;e[i+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;e[i+f]=255&a,f+=p,a/=256,c-=8);e[i+f-p]|=128*g}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,i=e.KeyUtil,r=e.X509,o=e.crypto,a=e.hextob64u,s=e.b64tohex,u=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(i){n.Log.debug("JoseUtil.parseJwt");try{var r=t.JWS.parse(i);return{header:r.headerObj,payload:r.payloadObj}}catch(e){n.Log.error(e)}},e.validateJwt=function(t,o,a,u,c,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=i.getKey(o);else{if(!o.x5c||!o.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=s(o.x5c[0]);o=r.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=i.getKey(o)}return e._validateJwt(t,o,a,u,c,l,h)}catch(e){return n.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,i,r,o,a,s){o||(o=0),a||(a=parseInt(Date.now()/1e3));var u=e.parseJwt(t).payload;if(!u.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(u.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",u.iss),Promise.reject(new Error("Invalid issuer in token: "+u.iss));if(!u.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(u.aud===r||Array.isArray(u.aud)&&u.aud.indexOf(r)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",u.aud),Promise.reject(new Error("Invalid audience in token: "+u.aud));if(u.azp&&u.azp!==r)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",u.azp),Promise.reject(new Error("Invalid azp in token: "+u.azp));if(!s){var c=a+o,l=a-o;if(!u.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(c>>((3&t)<<3)&255;return r}}},function(e,t){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninResponse=void 0;var n=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=r.UrlUtility.parseUrlFragment(t,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var n=i(0),r=i(3),o=i(8);t.SignoutRequest=function e(t){var i=t.url,a=t.id_token_hint,s=t.post_logout_redirect_uri,u=t.data,c=t.extraQueryParams,l=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in a&&(i=r.UrlUtility.addQueryParam(i,"id_token_hint",a)),s&&(i=r.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",s),u&&(this.state=new o.State({data:u,request_type:l}),i=r.UrlUtility.addQueryParam(i,"state",this.state.id))),c)i=r.UrlUtility.addQueryParam(i,h,c[h]);this.url=i}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var n=i(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=n.UrlUtility.parseUrlFragment(t,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var n=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.JoseUtil;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i instanceof a.UserManagerSettings||(i=new a.UserManagerSettings(i));var m=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,i));return m._events=new u.UserManagerEvents(i),m._silentRenewService=new n(m),m.settings.automaticSilentRenew&&(r.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(r.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new o(m)),m._tokenRevocationClient=new s(m._settings),m._tokenClient=new p(m._settings),m._joseUtil=g,m}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then((function(t){return t?(r.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(r.Log.info("UserManager.getUser: user not found in storage"),null)}))},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then((function(){r.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()}))},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then((function(){r.Log.info("UserManager.signinRedirect: successful")}))},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then((function(e){return e.profile&&e.profile.sub?r.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinRedirectCallback: no sub"),e}))},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then((function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinPopup: no sub")),e}))):(r.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then((function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinPopupCallback: no sub")),e})).catch((function(e){r.Log.error(e.message)}))},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).request_type="si:s",this._loadUser().then((function(i){return i&&i.refresh_token?(t.refresh_token=i.refresh_token,e._useRefreshToken(t)):(t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&e._settings.validateSubOnSilentRenew&&(r.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),t.current_sub=i.profile.sub),e._signinSilentIframe(t))}))},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then((function(t){return t?t.access_token?e._loadUser().then((function(i){if(i){var n=Promise.resolve();return t.id_token&&(n=e._validateIdTokenFromTokenRefreshToken(i.profile,t.id_token)),n.then((function(){return r.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=t.id_token,i.access_token=t.access_token,i.refresh_token=t.refresh_token||i.refresh_token,i.expires_in=t.expires_in,e.storeUser(i).then((function(){return e._events.load(i),i}))}))}return null})):(r.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(r.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))}))},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var i=this;return this._metadataService.getIssuer().then((function(n){return i._joseUtil.validateJwtAttributes(t,n,i._settings.client_id,i._settings.clockSkew).then((function(t){return t?t.sub!==e.sub?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))}))}))},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinSilent: no sub")),e}))):(r.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then((function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinSilentCallback: no sub")),e}))},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then((function(i){var n=i.state;return"si:r"===n.request_type?t.signinRedirectCallback(e):"si:p"===n.request_type?t.signinPopupCallback(e):"si:s"===n.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))}))},t.prototype.signoutCallback=function(e,t){var i=this;return this.readSignoutResponseState(e).then((function(n){var r=n.state,o=n.response;return r?"so:r"===r.request_type?i.signoutRedirectCallback(e):"so:p"===r.request_type?i.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):o}))},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var i=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(t.redirect_uri=i,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:i,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(t){return e.processSigninResponse(t.url).then((function(e){if(r.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};r.Log.info("querySessionStatus successful, user not authenticated")})).catch((function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t}))}))):(r.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,n).then((function(t){return i._signinEnd(t.url,e)}))},t.prototype._signinStart=function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(n).then((function(t){return r.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(e).then((function(e){return r.Log.debug("UserManager._signinStart: got signin request"),n.url=e.url,n.id=e.state.id,t.navigate(n)})).catch((function(e){throw t.close&&(r.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e}))}))},t.prototype._signinEnd=function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then((function(e){r.Log.debug("UserManager._signinEnd: got signin response");var n=new s.User(e);if(i.current_sub){if(i.current_sub!==n.profile.sub)return r.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));r.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(n).then((function(){return r.Log.debug("UserManager._signinEnd: user stored"),t._events.load(n),n}))}))},t.prototype._signinCallback=function(e,t){return r.Log.debug("UserManager._signinCallback"),t.callback(e)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var i={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,i).then((function(){r.Log.info("UserManager.signoutRedirect: successful")}))},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then((function(e){return r.Log.info("UserManager.signoutRedirectCallback: successful"),e}))},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){r.Log.info("UserManager.signoutPopup: successful")}))},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then((function(){r.Log.info("UserManager.signoutPopupCallback: successful")}))},t.prototype._signout=function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,n).then((function(e){return i._signoutEnd(e.url)}))},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then((function(i){return r.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then((function(o){return r.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(o):Promise.resolve()).then((function(){var a=e.id_token_hint||o&&o.id_token;return a&&(r.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=a),t.removeUser().then((function(){return r.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then((function(e){return r.Log.debug("UserManager._signoutStart: got signout request"),n.url=e.url,e.state&&(n.id=e.state.id),i.navigate(n)}))}))}))})).catch((function(e){throw i.close&&(r.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),e}))}))},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then((function(e){return r.Log.debug("UserManager._signoutEnd: got signout response"),e}))},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then((function(t){return e._revokeInternal(t,!0).then((function(i){if(i)return r.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then((function(){r.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)}))}))})).then((function(){r.Log.info("UserManager.revokeAccessToken: access token revoked successfully")}))},t.prototype._revokeInternal=function(e,t){var i=this;if(e){var n=e.refresh_token;return this._revokeAccessTokenInternal(e.access_token,t).then((function(e){return i._revokeRefreshTokenInternal(n,t).then((function(t){return e||t||r.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t}))}))}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then((function(){return!0}))},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then((function(){return!0})):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(e){return e?(r.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(r.Log.debug("UserManager._loadUser: no user storageString"),null)}))},t.prototype.storeUser=function(e){if(e){r.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return r.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(o.OidcClient)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var n=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,r=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,f=i.silent_redirect_uri,p=i.silentRequestTimeout,g=i.automaticSilentRenew,m=void 0!==g&&g,v=i.validateSubOnSilentRenew,y=void 0!==v&&v,_=i.includeIdTokenInSilentRenew,b=void 0===_||_,w=i.monitorSession,A=void 0===w||w,k=i.monitorAnonymousSession,M=void 0!==k&&k,C=i.checkSessionInterval,S=void 0===C?2e3:C,T=i.stopCheckSessionOnError,E=void 0===T||T,L=i.query_status_response_type,z=i.revokeAccessTokenOnSignout,x=void 0!==z&&z,D=i.accessTokenExpiringNotificationTime,R=void 0===D?60:D,O=i.redirectNavigator,P=void 0===O?new o.RedirectNavigator:O,I=i.popupNavigator,N=void 0===I?new a.PopupNavigator:I,F=i.iframeNavigator,B=void 0===F?new s.IFrameNavigator:F,H=i.userStore,q=void 0===H?new u.WebStorageStateStore({store:c.Global.sessionStorage}):H;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var j=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return j._popup_redirect_uri=n,j._popup_post_logout_redirect_uri=r,j._popupWindowFeatures=h,j._popupWindowTarget=d,j._silent_redirect_uri=f,j._silentRequestTimeout=p,j._automaticSilentRenew=m,j._validateSubOnSilentRenew=y,j._includeIdTokenInSilentRenew=b,j._accessTokenExpiringNotificationTime=R,j._monitorSession=A,j._monitorAnonymousSession=M,j._checkSessionInterval=S,j._stopCheckSessionOnError=E,j._query_status_response_type=L||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),j._revokeAccessTokenOnSignout=x,j._redirectNavigator=P,j._popupNavigator=N,j._iframeNavigator=B,j._userStore=q,j}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(r.OidcClientSettings)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var n=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),i&&this._userLoaded.raise(t)},t.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){n.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(r.AccessTokenEvents)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var n=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,i));return a._timer=n,a._nowFunc=r||function(){return Date.now()/1e3},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)r.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),r.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var i=5;e20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(i("wgY5"))},"t+Zl":function(e,t,i){!function(e){"use strict";e.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,t){switch(t){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")}}})}(i("wgY5"))},t4T9:function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){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}})}(i("wgY5"))},tSbB:function(e,t,i){!function(e){"use strict";e.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(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.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(e,t,i){return e>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var i,n=this._calendarEl[e],r=t&&t.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(t)),n.replace("{}",r%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}})}(i("wgY5"))},u2jB:function(e,t,i){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.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(e){return"\u0645"===e},meridiem:function(e,t,i){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return i[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i("wgY5"))},uHm5:function(e,t,i){!function(e){"use strict";e.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"})}(i("wgY5"))},v3Qg:function(e,t,i){!function(e){"use strict";e.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,t,i){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}})}(i("wgY5"))},vcN1:function(e,t,i){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function n(e,n,r,o){var a="";switch(r){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":a=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return function(e,n){return e<10?n?i[e]:t[e]:e}(e,o)+" "+a}e.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: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:4}})}(i("wgY5"))},"vd/2":function(e,t,i){!function(e){"use strict";e.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,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}})}(i("wgY5"))},"vn/h":function(e,t,i){!function(e){"use strict";function t(e,t,i,n){var r={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 t?r[i][0]:r[i][1]}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return i(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return i(e)}return i(e/=1e3)}e.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){return i(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return i(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i("wgY5"))},w8Ej:function(e,t,i){!function(e){"use strict";var t=["\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"],i=["\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"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,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(e){return"\u0789\u078a"===e},meridiem:function(e,t,i){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i("wgY5"))},wOqL:function(e,t,i){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,i,r){i=i||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t=t||"&");var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),n(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},wgY5:function(e,t,i){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},Y={};function W(e,t,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(Y[e]=r),t&&(Y[t[0]]=function(){return B(r.apply(this,arguments),t[1],t[2])}),i&&(Y[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=K(t,e.localeData()),j[t]=j[t]||function(e){var t,i,n,r=e.match(H);for(t=0,i=r.length;t=0&&q.test(e);)e=e.replace(q,n),q.lastIndex=0,i-=1;return e}var V=/\d/,G=/\d\d/,X=/\d{3}/,J=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ie=/\d{1,4}/,ne=/[+-]?\d{1,6}/,re=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[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,ce={};function le(e,t,i){ce[e]=z(t)?t:function(e,n){return e&&i?i:t}}function he(e,t){return h(ce,e)?ce[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r}))))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var i,n=t;for("string"==typeof e&&(e=[e]),u(t)&&(n=function(e,i){i[t]=k(e)}),i=0;i68?1900:2e3)};var _e,be=we("FullYear",!0);function we(e,t){return function(i){return null!=i?(ke(this,e,i),r.updateOffset(this,t),this):Ae(this,e)}}function Ae(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ke(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Me(i,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](i))}function Me(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%12+12)%12;return e+=(t-i)/12,1===i?ye(e)?29:28:31-i%7%2}_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,o,a),s}function Pe(e){var t;if(e<100&&e>=0){var i=Array.prototype.slice.call(arguments);i[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ie(e,t,i){var n=7+t-i;return-(7+Pe(e,0,n).getUTCDay()-t)%7+n-1}function Ne(e,t,i,n,r){var o,a,s=1+7*(t-1)+(7+i-n)%7+Ie(e,n,r);return s<=0?a=ve(o=e-1)+s:s>ve(e)?(o=e+1,a=s-ve(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Fe(e,t,i){var n,r,o=Ie(e.year(),t,i),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?n=a+Be(r=e.year()-1,t,i):a>Be(e.year(),t,i)?(n=a-Be(e.year(),t,i),r=e.year()+1):(r=e.year(),n=a),{week:n,year:r}}function Be(e,t,i){var n=Ie(e,t,i),r=Ie(e+1,t,i);return(ve(e)-n+r)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),O("week","w"),O("isoWeek","W"),F("week",5),F("isoWeek",5),le("w",Z),le("ww",Z,G),le("W",Z),le("WW",Z,G),ge(["w","ww","W","WW"],(function(e,t,i,n){t[n.substr(0,1)]=k(e)})),W("d",0,"do","day"),W("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),W("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),W("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),O("day","d"),O("weekday","e"),O("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),le("d",Z),le("e",Z),le("E",Z),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);null!=r?t.d=r:p(i).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,i,n){t[n]=k(e)}));var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function We(e,t,i){var n,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=_e.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=_e.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._shortWeekdaysParse,a))||-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=_e.call(this._shortWeekdaysParse,a))||-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:-1!==(r=_e.call(this._minWeekdaysParse,a))||-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._shortWeekdaysParse,a))?r:null}var Ue=ue,Ke=ue,Ve=ue;function Ge(){function e(e,t){return t.length-e.length}var t,i,n,r,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)i=f([2e3,1]).day(t),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),o=this.weekdays(i,""),a.push(n),s.push(r),u.push(o),c.push(n),c.push(r),c.push(o);for(a.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)s[t]=de(s[t]),u[t]=de(u[t]),c[t]=de(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Je(e,t){W(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Xe),W("k",["kk",2],0,(function(){return this.hours()||24})),W("hmm",0,0,(function(){return""+Xe.apply(this)+B(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+Xe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),Je("a",!0),Je("A",!1),O("hour","h"),F("hour",13),le("a",Qe),le("A",Qe),le("H",Z),le("h",Z),le("k",Z),le("HH",Z,G),le("hh",Z,G),le("kk",Z,G),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],(function(e,t,i){var n=k(e);t[3]=24===n?0:n})),pe(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),pe(["h","hh"],(function(e,t,i){t[3]=k(e),p(i).bigHour=!0})),pe("hmm",(function(e,t,i){var n=e.length-2;t[3]=k(e.substr(0,n)),t[4]=k(e.substr(n)),p(i).bigHour=!0})),pe("hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[3]=k(e.substr(0,n)),t[4]=k(e.substr(n,2)),t[5]=k(e.substr(r)),p(i).bigHour=!0})),pe("Hmm",(function(e,t,i){var n=e.length-2;t[3]=k(e.substr(0,n)),t[4]=k(e.substr(n))})),pe("Hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[3]=k(e.substr(0,n)),t[4]=k(e.substr(n,2)),t[5]=k(e.substr(r))}));var Ze,$e=we("Hours",!0),et={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:Te,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ye,weekdaysShort:je,meridiemParse:/[ap]\.?m?\.?/i},tt={},it={};function nt(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var n=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{n=Ze._abbr,i("MROq")("./"+t),ot(n)}catch(r){}return tt[t]}function ot(e,t){var i;return e&&((i=s(t)?st(e):at(e,t))?Ze=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var i,n=et;if(t.abbr=e,null!=tt[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])n=tt[t.parentLocale]._config;else{if(null==(i=rt(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;n=i._config}return tt[e]=new D(x(n,t)),it[e]&&it[e].forEach((function(e){at(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!o(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,i,n,r,o=0;o0;){if(n=rt(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&M(r,i,!0)>=t-1)break;t--}o++}return Ze}(e)}function ut(e){var t,i=e._a;return i&&-2===p(e).overflow&&(t=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Me(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,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ct(e,t,i){return null!=e?e:null!=t?t:i}function lt(e){var t,i,n,o,a,s=[];if(!e._d){for(n=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,i,n,r,o,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,i=ct(t.GG,e._a[0],Fe(Mt(),1,4).year),n=ct(t.W,1),((r=ct(t.E,1))<1||r>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=Fe(Mt(),o,a);i=ct(t.gg,e._a[0],c.year),n=ct(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(u=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(u=!0)):r=o}n<1||n>Be(i,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=Ne(i,n,r,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ct(e._a[0],n[0]),(e._dayOfYear>ve(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),i=Pe(a,0,e._dayOfYear),e._a[1]=i.getUTCMonth(),e._a[2]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:Oe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var ht=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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}/]],gt=[["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/]],mt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,i,n,r,o,a,s=e._i,u=ht.exec(s)||dt.exec(s);if(u){for(p(e).iso=!0,t=0,i=pt.length;t0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),c+=i.length),Y[o]?(i?p(e).empty=!1:p(e).unusedTokens.push(o),me(o,i,e)):e._strict&&!i&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-c,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?((n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),lt(e),ut(e)}else bt(e);else vt(e)}function At(e){var t=e._i,i=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===i&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(ut(t)):(c(t)?e._d=t:o(i)?function(e){var t,i,n,r,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:m()}));function Tt(e,t){var i,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Mt();for(i=t[0],n=1;n=0?new Date(e+400,t,i)-126227808e5:new Date(e,t,i).valueOf()}function $t(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-126227808e5:Date.UTC(e,t,i)}function ei(e,t){W(0,[e,e.length],0,t)}function ti(e,t,i,n,r){var o;return null==e?Fe(this,n,r).year:(t>(o=Be(e,n,r))&&(t=o),ii.call(this,e,t,i,n,r))}function ii(e,t,i,n,r){var o=Ne(e,t,i,n,r),a=Pe(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),O("weekYear","gg"),O("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),le("G",oe),le("g",oe),le("GG",Z,G),le("gg",Z,G),le("GGGG",ie,J),le("gggg",ie,J),le("GGGGG",ne,Q),le("ggggg",ne,Q),ge(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=k(e)})),ge(["gg","GG"],(function(e,t,i,n){t[n]=r.parseTwoDigitYear(e)})),W("Q",0,"Qo","quarter"),O("quarter","Q"),F("quarter",7),le("Q",V),pe("Q",(function(e,t){t[1]=3*(k(e)-1)})),W("D",["DD",2],"Do","date"),O("date","D"),F("date",9),le("D",Z),le("DD",Z,G),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],2),pe("Do",(function(e,t){t[2]=k(e.match(Z)[0])}));var ni=we("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),O("dayOfYear","DDD"),F("dayOfYear",4),le("DDD",te),le("DDDD",X),pe(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=k(e)})),W("m",["mm",2],0,"minute"),O("minute","m"),F("minute",14),le("m",Z),le("mm",Z,G),pe(["m","mm"],4);var ri=we("Minutes",!1);W("s",["ss",2],0,"second"),O("second","s"),F("second",15),le("s",Z),le("ss",Z,G),pe(["s","ss"],5);var oi,ai=we("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),O("millisecond","ms"),F("millisecond",16),le("S",te,V),le("SS",te,G),le("SSS",te,X),oi="SSSS";oi.length<=9;oi+="S")le(oi,re);function si(e,t){t[6]=k(1e3*("0."+e))}for(oi="S";oi.length<=9;oi+="S")pe(oi,si);var ui=we("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ci=b.prototype;function li(e){return e}ci.add=Ut,ci.calendar=function(e,t){var i=e||Mt(),n=Pt(i,this).startOf("day"),o=r.calendarFormat(this,n)||"sameElse",a=t&&(z(t[o])?t[o].call(this,i):t[o]);return this.format(a||this.localeData().calendar(o,this,Mt(i)))},ci.clone=function(){return new b(this)},ci.diff=function(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Pt(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=Vt(this,n)/12;break;case"month":o=Vt(this,n);break;case"quarter":o=Vt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:A(o)},ci.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?$t:Zt;switch(e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Qt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Qt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},ci.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},ci.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Mt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ci.fromNow=function(e){return this.from(Mt(),e)},ci.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Mt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ci.toNow=function(e){return this.to(Mt(),e)},ci.get=function(e){return z(this[e=P(e)])?this[e]():this},ci.invalidAt=function(){return p(this).overflow},ci.isAfter=function(e,t){var i=w(e)?e:Mt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ci.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},ci.toJSON=function(){return this.isValid()?this.toISOString():null},ci.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ci.unix=function(){return Math.floor(this.valueOf()/1e3)},ci.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ci.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ci.year=be,ci.isLeapYear=function(){return ye(this.year())},ci.weekYear=function(e){return ti.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ci.isoWeekYear=function(e){return ti.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ci.quarter=ci.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ci.month=ze,ci.daysInMonth=function(){return Me(this.year(),this.month())},ci.week=ci.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ci.isoWeek=ci.isoWeeks=function(e){var t=Fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ci.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},ci.isoWeeksInYear=function(){return Be(this.year(),1,4)},ci.date=ni,ci.day=ci.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ci.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ci.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ci.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ci.hour=ci.hours=$e,ci.minute=ci.minutes=ri,ci.second=ci.seconds=ai,ci.millisecond=ci.milliseconds=ui,ci.utcOffset=function(e,t,i){var n,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ot(se,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=It(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==e&&(!t||this._changeInProgress?Wt(this,Ht(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:It(this)},ci.utc=function(e){return this.utcOffset(0,e)},ci.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(It(this),"m")),this},ci.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ot(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ci.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Mt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ci.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ci.isLocal=function(){return!!this.isValid()&&!this._isUTC},ci.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ci.isUtc=Nt,ci.isUTC=Nt,ci.zoneAbbr=function(){return this._isUTC?"UTC":""},ci.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ci.dates=S("dates accessor is deprecated. Use date instead.",ni),ci.months=S("months accessor is deprecated. Use month instead",ze),ci.years=S("years accessor is deprecated. Use year instead",be),ci.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),ci.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=At(e))._a){var t=e._isUTC?f(e._a):Mt(e._a);this._isDSTShifted=this.isValid()&&M(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var hi=D.prototype;function di(e,t,i,n){var r=st(),o=f().set(n,t);return r[i](o,e)}function fi(e,t,i){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return di(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=di(e,n,i,"month");return r}function pi(e,t,i,n){"boolean"==typeof e?(u(t)&&(i=t,t=void 0),t=t||""):(i=t=e,e=!1,u(t)&&(i=t,t=void 0),t=t||"");var r,o=st(),a=e?o._week.dow:0;if(null!=i)return di(t,(i+a)%7,n,"day");var s=[];for(r=0;r<7;r++)s[r]=di(t,(r+a)%7,n,"day");return s}hi.calendar=function(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return z(n)?n.call(t,i):n},hi.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},hi.invalidDate=function(){return this._invalidDate},hi.ordinal=function(e){return this._ordinal.replace("%d",e)},hi.preparse=li,hi.postformat=li,hi.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return z(r)?r(e,t,i,n):r.replace(/%d/i,e)},hi.pastFuture=function(e,t){var i=this._relativeTime[e>0?"future":"past"];return z(i)?i(t):i.replace(/%s/i,t)},hi.set=function(e){var t,i;for(i in e)z(t=e[i])?this[i]=t:this["_"+i]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hi.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},hi.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hi.monthsParse=function(e,t,i){var n,r,o;if(this._monthsParseExact)return Ee.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},hi.monthsRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hi.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hi.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},hi.firstDayOfYear=function(){return this._week.doy},hi.firstDayOfWeek=function(){return this._week.dow},hi.weekdays=function(e,t){var i=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(i,this._week.dow):e?i[e.day()]:i},hi.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},hi.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},hi.weekdaysParse=function(e,t,i){var n,r,o;if(this._weekdaysParseExact)return We.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},hi.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hi.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hi.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hi.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hi.meridiem=function(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",st);var gi=Math.abs;function mi(e,t,i,n){var r=Ht(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function vi(e){return e<0?Math.floor(e):Math.ceil(e)}function yi(e){return 4800*e/146097}function _i(e){return 146097*e/4800}function bi(e){return function(){return this.as(e)}}var wi=bi("ms"),Ai=bi("s"),ki=bi("m"),Mi=bi("h"),Ci=bi("d"),Si=bi("w"),Ti=bi("M"),Ei=bi("Q"),Li=bi("y");function zi(e){return function(){return this.isValid()?this._data[e]:NaN}}var xi=zi("milliseconds"),Di=zi("seconds"),Ri=zi("minutes"),Oi=zi("hours"),Pi=zi("days"),Ii=zi("months"),Ni=zi("years"),Fi=Math.round,Bi={ss:44,s:45,m:45,h:22,d:26,M:11};function Hi(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}var qi=Math.abs;function ji(e){return(e>0)-(e<0)||+e}function Yi(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i=qi(this._milliseconds)/1e3,n=qi(this._days),r=qi(this._months);e=A(i/60),t=A(e/60),i%=60,e%=60;var o=A(r/12),a=r%=12,s=n,u=t,c=e,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=ji(this._months)!==ji(h)?"-":"",p=ji(this._days)!==ji(h)?"-":"",g=ji(this._milliseconds)!==ji(h)?"-":"";return d+"P"+(o?f+o+"Y":"")+(a?f+a+"M":"")+(s?p+s+"D":"")+(u||c||l?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(l?g+l+"S":"")}var Wi=Lt.prototype;return Wi.isValid=function(){return this._isValid},Wi.abs=function(){var e=this._data;return this._milliseconds=gi(this._milliseconds),this._days=gi(this._days),this._months=gi(this._months),e.milliseconds=gi(e.milliseconds),e.seconds=gi(e.seconds),e.minutes=gi(e.minutes),e.hours=gi(e.hours),e.months=gi(e.months),e.years=gi(e.years),this},Wi.add=function(e,t){return mi(this,e,t,1)},Wi.subtract=function(e,t){return mi(this,e,t,-1)},Wi.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(i=this._months+yi(t=this._days+n/864e5),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(_i(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},Wi.asMilliseconds=wi,Wi.asSeconds=Ai,Wi.asMinutes=ki,Wi.asHours=Mi,Wi.asDays=Ci,Wi.asWeeks=Si,Wi.asMonths=Ti,Wi.asQuarters=Ei,Wi.asYears=Li,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Wi._bubble=function(){var e,t,i,n,r,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*vi(_i(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=A(o/1e3),u.seconds=e%60,t=A(e/60),u.minutes=t%60,i=A(t/60),u.hours=i%24,a+=A(i/24),s+=r=A(yi(a)),a-=vi(_i(r)),n=A(s/12),s%=12,u.days=a,u.months=s,u.years=n,this},Wi.clone=function(){return Ht(this)},Wi.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Wi.milliseconds=xi,Wi.seconds=Di,Wi.minutes=Ri,Wi.hours=Oi,Wi.days=Pi,Wi.weeks=function(){return A(this.days()/7)},Wi.months=Ii,Wi.years=Ni,Wi.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=function(e,t,i){var n=Ht(e).abs(),r=Fi(n.as("s")),o=Fi(n.as("m")),a=Fi(n.as("h")),s=Fi(n.as("d")),u=Fi(n.as("M")),c=Fi(n.as("y")),l=r<=Bi.ss&&["s",r]||r0,l[4]=i,Hi.apply(null,l)}(this,!e,t);return e&&(i=t.pastFuture(+this,i)),t.postformat(i)},Wi.toISOString=Yi,Wi.toString=Yi,Wi.toJSON=Yi,Wi.locale=Gt,Wi.localeData=Jt,Wi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yi),Wi.lang=Xt,W("X",0,0,"unix"),W("x",0,0,"valueOf"),le("x",oe),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,i){i._d=new Date(k(e))})),r.version="2.24.0",t=Mt,r.fn=ci,r.min=function(){return Tt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Tt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return Mt(1e3*e)},r.months=function(e,t){return fi(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=m,r.duration=Ht,r.isMoment=w,r.weekdays=function(e,t,i){return pi(e,t,i,"weekdays")},r.parseZone=function(){return Mt.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=zt,r.monthsShort=function(e,t){return fi(e,t,"monthsShort")},r.weekdaysMin=function(e,t,i){return pi(e,t,i,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var i,n,r=et;null!=(n=rt(e))&&(r=n._config),(i=new D(t=x(r,t))).parentLocale=tt[e],tt[e]=i,ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return T(tt)},r.weekdaysShort=function(e,t,i){return pi(e,t,i,"weekdaysShort")},r.normalizeUnits=P,r.relativeTimeRounding=function(e){return void 0===e?Fi:"function"==typeof e&&(Fi=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Bi[e]&&(void 0===t?Bi[e]:(Bi[e]=t,"s"===e&&(Bi.ss=t-1),!0))},r.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},r.prototype=ci,r.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"},r}()}).call(this,i("aYSr")(e))},xBDH:function(e,t,i){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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,t){switch(t){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"}})}(i("wgY5"))},"xD/0":function(e,t,i){!function(e){"use strict";e.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(i("wgY5"))},yKzn:function(e,t,i){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i("wgY5"))},zUnb:function(n,r,a){"use strict";function u(e){return"function"==typeof e}a.r(r);var c=!1,f={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else c&&console.log("RxJS: Back to a better error behavior. Thank you. <3");c=e},get useDeprecatedSynchronousErrorHandling(){return c}};function v(e){setTimeout((function(){throw e}),0)}var b={closed:!0,next:function(e){},error:function(e){if(f.useDeprecatedSynchronousErrorHandling)throw e;v(e)},complete:function(){}},A=Array.isArray||function(e){return e&&"number"==typeof e.length};function k(e){return null!==e&&"object"==typeof e}var M,C=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),S=((M=function(){function e(t){_(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return w(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var i=this._parentOrParents,n=this._unsubscribe,r=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof e)i.remove(this);else if(null!==i)for(var o=0;o4&&void 0!==arguments[4]?arguments[4]:new Y(e,i,n);if(!r.closed)return t instanceof O?t.subscribe(r):G(t)(r)}var J=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"notifyNext",value:function(e,t,i,n,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),i}(L);function Q(e,t){return function(i){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Z(e,t))}}var Z=function(){function e(t,i){_(this,e),this.project=t,this.thisArg=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}]),e}(),$=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,e)).project=n,o.count=0,o.thisArg=r||m(o),o}return w(i,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}]),i}(L);function ee(e,t){return new O((function(i){var n=new S,r=0;return n.add(t.schedule((function(){r!==e.length?(i.next(e[r++]),i.closed||n.add(this.schedule())):i.complete()}))),n}))}function te(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[x]}(e))return function(e,t){return new O((function(i){var n=new S;return n.add(t.schedule((function(){var r=e[x]();n.add(r.subscribe({next:function(e){n.add(t.schedule((function(){return i.next(e)})))},error:function(e){n.add(t.schedule((function(){return i.error(e)})))},complete:function(){n.add(t.schedule((function(){return i.complete()})))}}))}))),n}))}(e,t);if(V(e))return function(e,t){return new O((function(i){var n=new S;return n.add(t.schedule((function(){return e.then((function(e){n.add(t.schedule((function(){i.next(e),n.add(t.schedule((function(){return i.complete()})))})))}),(function(e){n.add(t.schedule((function(){return i.error(e)})))}))}))),n}))}(e,t);if(K(e))return ee(e,t);if(function(e){return e&&"function"==typeof e[U]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new O((function(i){var n,r=new S;return r.add((function(){n&&"function"==typeof n.return&&n.return()})),r.add(t.schedule((function(){n=e[U](),r.add(t.schedule((function(){if(!i.closed){var e,t;try{var r=n.next();e=r.value,t=r.done}catch(o){return void i.error(o)}t?i.complete():(i.next(e),this.schedule())}})))}))),r}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof O?e:new O(G(e))}function ie(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(n){return n.pipe(ie((function(i,n){return te(e(i,n)).pipe(Q((function(e,r){return t(i,e,n,r)})))}),i))}:("number"==typeof t&&(i=t),function(t){return t.lift(new ne(e,i))})}var ne=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_(this,e),this.project=t,this.concurrent=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new re(e,this.project,this.concurrent))}}]),e}(),re=function(e){d(i,e);var t=p(i);function i(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _(this,i),(r=t.call(this,e)).project=n,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return w(i,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),i}(J);function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ie(D,e)}function ae(e,t){return t?ee(e,t):new O(W(e))}function se(){for(var e=arguments.length,t=new Array(e),i=0;i1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof O?t[0]:oe(n)(ae(t,r))}function ue(){return function(e){return e.lift(new le(e))}}var ce,le=function(){function e(t){_(this,e),this.connectable=t}return w(e,[{key:"call",value:function(e,t){var i=this.connectable;i._refCount++;var n=new he(e,i),r=t.subscribe(n);return n.closed||(n.connection=i.connect()),r}}]),e}(),he=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).connectable=n,r}return w(i,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var i=this.connection,n=e._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null}}]),i}(L),de={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(ce=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this)).source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return w(i,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new S).add(this.source.subscribe(new fe(this.getSubject(),this))),e.closed&&(this._connection=null,e=S.EMPTY)),e}},{key:"refCount",value:function(){return ue()(this)}}]),i}(O).prototype)._subscribe},_isComplete:{value:ce._isComplete,writable:!0},getSubject:{value:ce.getSubject},connect:{value:ce.connect},refCount:{value:ce.refCount}},fe=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).connectable=n,r}return w(i,[{key:"_error",value:function(e){this._unsubscribe(),h(y(i.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),h(y(i.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),i}(B);function pe(){return new H}function ge(){return function(e){return ue()((t=pe,function(e){var i;i="function"==typeof t?t:function(){return t};var n=Object.create(e,de);return n.source=e,n.subjectFactory=i,n})(e));var t}}function me(e){return{toString:e}.toString()}function ve(e,t,i){return me((function(){var n=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var i in t)this[i]=t[i]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:Ae.Default;if(void 0===ot)throw new Error("inject() must be called from an injection context");return null===ot?ht(e,void 0,t):ot.get(e,t&Ae.Optional?null:void 0,t)}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ae.Default;return(qe||ut)(Be(e),t)}var lt=ct;function ht(e,t,i){var n=Te(e);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&Ae.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(Pe(e),"]"))}function dt(e){for(var t=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:it;if(t===it){var i=new Error("NullInjectorError: No provider for ".concat(Pe(e),"!"));throw i.name="NullInjectorError",i}return t}}]),e}(),pt=function e(){_(this,e)},gt=function e(){_(this,e)};function mt(e,t){e.forEach((function(e){return Array.isArray(e)?mt(e,t):t(e)}))}function vt(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function yt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function _t(e,t){for(var i=[],n=0;n=0?e[1|n]=i:function(e,t,i,n){var r=e.length;if(r==t)e.push(i,n);else if(1===r)e.push(n,e[0]),e[0]=i;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=i,e[t+1]=n}}(e,n=~n,t,i),n}function wt(e,t){var i=At(e,t);if(i>=0)return e[1|i]}function At(e,t){return function(e,t,i){for(var n=0,r=e.length>>1;r!==n;){var o=n+(r-n>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:n=o+1}return~(r<<1)}(e,t)}var kt,Mt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ct=((kt={})[kt.Emulated=0]="Emulated",kt[kt.Native=1]="Native",kt[kt.None=2]="None",kt[kt.ShadowDom=3]="ShadowDom",kt),St={},Tt=[],Et=0;function Lt(e){return me((function(){var t={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Mt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Tt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,id:"c",styles:e.styles||Tt,_:null,setInput:null,schemas:e.schemas||null,tView:null},n=e.directives,r=e.features,o=e.pipes;return i.id+=Et++,i.inputs=Ot(e.inputs,t),i.outputs=Ot(e.outputs),r&&r.forEach((function(e){return e(i)})),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(zt)}:null,i.pipeDefs=o?function(){return("function"==typeof o?o():o).map(xt)}:null,i}))}function zt(e){return Nt(e)||function(e){return e[Ge]||null}(e)}function xt(e){return function(e){return e[Xe]||null}(e)}var Dt={};function Rt(e){var t={type:e.type,bootstrap:e.bootstrap||Tt,declarations:e.declarations||Tt,imports:e.imports||Tt,exports:e.exports||Tt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&me((function(){Dt[e.id]=e.type})),t}function Ot(e,t){if(null==e)return St;var i={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,t&&(t[r]=o)}return i}var Pt=Lt;function It(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Nt(e){return e[Ve]||null}function Ft(e,t){return e.hasOwnProperty(Ze)?e[Ze]:null}function Bt(e,t){var i=e[Je]||null;if(!i&&!0===t)throw new Error("Type ".concat(Pe(e)," does not have '\u0275mod' property."));return i}function Ht(e){return Array.isArray(e)&&"object"==typeof e[1]}function qt(e){return Array.isArray(e)&&!0===e[1]}function jt(e){return 0!=(8&e.flags)}function Yt(e){return 2==(2&e.flags)}function Wt(e){return 1==(1&e.flags)}function Ut(e){return null!==e.template}function Kt(e){return 0!=(512&e[2])}var Vt=function(){function e(t,i,n){_(this,e),this.previousValue=t,this.currentValue=i,this.firstChange=n}return w(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Gt(){return Xt}function Xt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qt),Jt}function Jt(){var e=Zt(this),t=null==e?void 0:e.current;if(t){var i=e.previous;if(i===St)e.previous=t;else for(var n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function Qt(e,t,i,n){var r=Zt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:St,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[i],u=a[s];o[s]=new Vt(u&&u.currentValue,t,a===St),e[n]=t}function Zt(e){return e.__ngSimpleChanges__||null}Gt.ngInherit=!0;var $t=void 0;function ei(){return void 0!==$t?$t:"undefined"!=typeof document?document:void 0}function ti(e){return!!e.listen}var ii={createRenderer:function(e,t){return ei()}};function ni(e){for(;Array.isArray(e);)e=e[0];return e}function ri(e,t){return ni(t[e+20])}function oi(e,t){return ni(t[e.index])}function ai(e,t){return e.data[t+20]}function si(e,t){return e[t+20]}function ui(e,t){var i=t[e];return Ht(i)?i:i[0]}function ci(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function li(e){return 4==(4&e[2])}function hi(e){return 128==(128&e[2])}function di(e,t){return null===e||null==t?null:e[t]}function fi(e){e[18]=0}function pi(e,t){e[5]+=t;for(var i=e,n=e[3];null!==n&&(1===t&&1===i[5]||-1===t&&0===i[5]);)n[5]+=t,i=n,n=n[3]}var gi={lFrame:Fi(null),bindingsEnabled:!0,checkNoChangesMode:!1};function mi(){return gi.bindingsEnabled}function vi(){return gi.lFrame.lView}function yi(){return gi.lFrame.tView}function _i(e){gi.lFrame.contextLView=e}function bi(){return gi.lFrame.currentTNode}function wi(e,t){gi.lFrame.currentTNode=e,gi.lFrame.isParent=t}function Ai(){return gi.lFrame.isParent}function ki(){gi.lFrame.isParent=!1}function Mi(){return gi.checkNoChangesMode}function Ci(e){gi.checkNoChangesMode=e}function Si(){var e=gi.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ti(){return gi.lFrame.bindingIndex}function Ei(){return gi.lFrame.bindingIndex++}function Li(e){var t=gi.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function zi(e,t){var i=gi.lFrame;i.bindingIndex=i.bindingRootIndex=e,xi(t)}function xi(e){gi.lFrame.currentDirectiveIndex=e}function Di(e){var t=gi.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Ri(){return gi.lFrame.currentQueryIndex}function Oi(e){gi.lFrame.currentQueryIndex=e}function Pi(e,t){var i=Ni();gi.lFrame=i,i.currentTNode=t,i.lView=e}function Ii(e){var t=Ni(),i=e[1];gi.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex}function Ni(){var e=gi.lFrame,t=null===e?null:e.child;return null===t?Fi(e):t}function Fi(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function Bi(){var e=gi.lFrame;return gi.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Hi=Bi;function qi(){var e=Bi();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ji(){return gi.lFrame.selectedIndex}function Yi(e){gi.lFrame.selectedIndex=e}function Wi(){var e=gi.lFrame;return ai(e.tView,e.selectedIndex)}function Ui(){gi.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ki(){gi.lFrame.currentNamespace=null}function Vi(e,t){for(var i=t.directiveStart,n=t.directiveEnd;i=n)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var $i=function e(t,i,n){_(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n};function en(e,t,i){for(var n=ti(e),r=0;rt){a=o-1;break}}}for(;o>16,n=t;i>0;)n=n[15],i--;return n}function cn(e){return"string"==typeof e?e:null==e?"":""+e}function ln(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():cn(e)}var hn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ke);function dn(e){return{name:"window",target:e.ownerDocument.defaultView}}function fn(e){return{name:"body",target:e.ownerDocument.body}}function pn(e){return e instanceof Function?e():e}var gn=!0;function mn(e){var t=gn;return gn=e,t}var vn=0;function yn(e,t){var i=bn(e,t);if(-1!==i)return i;var n=t[1];n.firstCreatePass&&(e.injectorIndex=t.length,_n(n.data,e),_n(t,null),_n(n.blueprint,null));var r=wn(e,t),o=e.injectorIndex;if(an(r))for(var a=sn(r),s=un(r,t),u=s[1].data,c=0;c<8;c++)t[o+c]=s[a+c]|u[a+c];return t[o+8]=r,o}function _n(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function wn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var i=0,n=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(n=2===a?o.declTNode:1===a?r[6]:null))return-1;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function An(e,t,i){!function(e,t,i){var n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty($e)&&(n=i[$e]),null==n&&(n=i[$e]=vn++);var r=255&n,o=1<3&&void 0!==arguments[3]?arguments[3]:Ae.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty($e)?e[$e]:void 0;return"number"==typeof t&&t>0?255&t:t}(i);if("function"==typeof o){Pi(t,e);try{var a=o();if(null!=a||n&Ae.Optional)return a;throw new Error("No provider for ".concat(ln(i),"!"))}finally{Hi()}}else if("number"==typeof o){if(-1===o)return new zn(e,t);var s=null,u=bn(e,t),c=-1,l=n&Ae.Host?t[16][6]:null;for((-1===u||n&Ae.SkipSelf)&&(-1!==(c=-1===u?wn(e,t):t[u+8])&&Ln(n,!1)?(s=t[1],u=sn(c),t=un(c,t)):u=-1);-1!==u;){var h=t[1];if(En(o,u,h.data)){var d=Cn(u,t,i,s,n,l);if(d!==Mn)return d}-1!==(c=t[u+8])&&Ln(n,t[1].data[u+8]===l)&&En(o,u,t)?(s=h,u=sn(c),t=un(c,t)):u=-1}}}if(n&Ae.Optional&&void 0===r&&(r=null),0==(n&(Ae.Self|Ae.Host))){var f=t[9],p=st(void 0);try{return f?f.get(i,r,n&Ae.Optional):ht(i,r,n&Ae.Optional)}finally{st(p)}}if(n&Ae.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(ln(i),"]"))}var Mn={};function Cn(e,t,i,n,r,o){var a=t[1],s=a.data[e+8],u=Sn(s,a,i,null==n?Yt(s)&&gn:n!=a&&2===s.type,r&Ae.Host&&o===s);return null!==u?Tn(t,a,u,s):Mn}function Sn(e,t,i,n,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,c=o>>20,l=r?s+c:e.directiveEnd,h=n?s:s+c;h=u&&d.type===i)return h}if(r){var f=a[u];if(f&&Ut(f)&&f.type===i)return u}return null}function Tn(e,t,i,n){var r=e[i],o=t.data;if(r instanceof $i){var a=r;if(a.resolving)throw new Error("Circular dep for "+ln(o[i]));var s=mn(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?st(a.injectImpl):null;Pi(e,n);try{r=e[i]=a.factory(void 0,o,e,n),t.firstCreatePass&&i>=n.directiveStart&&function(e,t,i){var n=t.type.prototype,r=n.ngOnChanges,o=n.ngOnInit,a=n.ngDoCheck;if(r){var s=Xt(t);(i.preOrderHooks||(i.preOrderHooks=[])).push(e,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,s)}o&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-e,o),a&&((i.preOrderHooks||(i.preOrderHooks=[])).push(e,a),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,a))}(i,o[i],t)}finally{null!==u&&st(u),mn(s),a.resolving=!1,Hi()}}return r}function En(e,t,i){var n=64&e,r=32&e;return!!((128&e?n?r?i[t+7]:i[t+6]:r?i[t+5]:i[t+4]:n?r?i[t+3]:i[t+2]:r?i[t+1]:i[t])&1<1?t-1:0),n=1;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();sr.hasOwnProperty(t)&&!nr.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(gr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),fr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pr=/([^\#-~ |!])/g;function gr(e){return e.replace(/&/g,"&").replace(fr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(pr,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function mr(e,t){var i=null;try{ir=ir||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new Xn:new Jn(e)}(e);var n=t?String(t):"";i=ir.getInertBodyElement(n);var r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=ir.getInertBodyElement(n)}while(n!==o);var a=new dr,s=a.sanitizeChildren(vr(i)||i);return Gn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(i)for(var u=vr(i)||i;u.firstChild;)u.removeChild(u.firstChild)}}function vr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var yr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function _r(e){var t=wr();return t?t.sanitize(yr.HTML,e)||"":Wn(e,"HTML")?Yn(e):mr(ei(),cn(e))}function br(e){var t=wr();return t?t.sanitize(yr.URL,e)||"":Wn(e,"URL")?Yn(e):$n(cn(e))}function wr(){var e=vi();return e&&e[12]}function Ar(e,t){e.__ngContext__=t}function kr(e,t,i){for(var n=e.length;;){var r=e.indexOf(t,i);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===n||e.charCodeAt(r+o)<=32)return r}i=r+1}}function Mr(e,t,i){for(var n=0;no?"":r[l+1].toLowerCase();var d=8&n?h:null;if(d&&-1!==kr(d,c,0)||2&n&&c!==h){if(Er(n))return!1;a=!0}}}}else{if(!a&&!Er(n)&&!Er(u))return!1;if(a&&Er(u))continue;a=!1,n=u|1&n}}return Er(n)||a}function Er(e){return 0==(1&e)}function Lr(e,t,i,n){if(null===t)return-1;var r=0;if(n||!i){for(var o=!1;r-1)for(i++;i2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""===r||Er(a)||(t+=Dr(o,r),r=""),n=a,o=o||!Er(n);i++}return""!==r&&(t+=Dr(o,r)),t}var Or={};function Pr(e){var t=e[3];return qt(t)?t[3]:t}function Ir(e){return Fr(e[13])}function Nr(e){return Fr(e[4])}function Fr(e){for(;null!==e&&!qt(e);)e=e[4];return e}function Br(e){Hr(yi(),vi(),ji()+e,Mi())}function Hr(e,t,i,n){if(!n)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Gi(t,r,i)}else{var o=e.preOrderHooks;null!==o&&Xi(t,o,0,i)}Yi(i)}function qr(e,t){return e<<17|t<<2}function jr(e){return e>>17&32767}function Yr(e){return 2|e}function Wr(e){return(131068&e)>>2}function Ur(e,t){return-131069&e|t<<2}function Kr(e){return 1|e}function Vr(e,t){var i=e.contentQueries;if(null!==i)for(var n=0;n20&&Hr(e,t,0,Mi()),i(n,r)}finally{Yi(o)}}function to(e,t,i){if(jt(t))for(var n=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:oi,n=t.localNames;if(null!==n)for(var r=t.index+1,o=0;o0&&function e(t){for(var i=Ir(t);null!==i;i=Nr(i))for(var n=10;n0&&e(r)}var a=t[1].components;if(null!==a)for(var s=0;s0&&e(u)}}(i)}}function Mo(e,t){var i=ui(t,e),n=i[1];!function(e,t){for(var i=t.length;i0&&(e[n-1][4]=r[4]);var a=yt(e,10+t);Xo(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Bo(e,t){if(!(256&t[2])){var i=t[11];ti(i)&&i.destroyNode&&Xo(e,t,i,3,null,null),function(e){var t=e[13];if(!t)return Ho(e[1],e);for(;t;){var i=null;if(Ht(t))i=t[13];else{var n=t[10];n&&(i=n)}if(!i){for(;t&&!t[4]&&t!==e;)Ht(t)&&Ho(t[1],t),t=t[3];null===t&&(t=e),Ht(t)&&Ho(t[1],t),i=t&&t[4]}t=i}}(t)}}function Ho(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var i;if(null!=e&&null!=(i=e.destroyHooks))for(var n=0;n=0?n[u]():n[-u].unsubscribe(),r+=2}else i[r].call(n[i[r+1]]);t[7]=null}}(e,t),1===t[1].type&&ti(t[11])&&t[11].destroy();var i=t[17];if(null!==i&&qt(t[3])){i!==t[3]&&No(i,t);var n=t[19];null!==n&&n.detachView(e)}}}function qo(e,t,i){for(var n=t.parent;null!=n&&(3===n.type||4===n.type);)n=(t=n).parent;if(null===n)return i[0];if(t&&4===t.type&&4&t.flags)return oi(t,i).parentNode;if(2&n.flags){var r=e.data,o=r[r[n.index].directiveStart].encapsulation;if(o!==Ct.ShadowDom&&o!==Ct.Native)return null}return oi(n,i)}function jo(e,t,i,n){ti(e)?e.insertBefore(t,i,n):t.insertBefore(i,n,!0)}function Yo(e,t,i){ti(e)?e.appendChild(t,i):t.appendChild(i)}function Wo(e,t,i,n){null!==n?jo(e,t,i,n):Yo(e,t,i)}function Uo(e,t){return ti(e)?e.parentNode(t):t.parentNode}function Ko(e,t){return 3===e.type||4===e.type?oi(e,t):null}function Vo(e,t,i,n){var r=qo(e,n,t);if(null!=r){var o=t[11],a=Ko(n.parent||t[6],t);if(Array.isArray(i))for(var s=0;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Bo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){ao(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){So(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){To(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,i){Ci(!0);try{To(e,t,i)}finally{Ci(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Xo(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return function e(t,i,n,r){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var s=i[n.index];if(null!==s&&r.push(ni(s)),qt(s))for(var u=10;u0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,i){var n=e.createEmbeddedView(t||{});return this.insert(n,i),n}},{key:"createComponent",value:function(e,t,i,n,r){var o=i||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(pt,null);a&&(r=a)}var s=e.create(o,n,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,n=i[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),qt(i[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=i[3],a=new ta(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),u=this._lContainer;!function(e,t,i,n){var r=10+n,o=i.length;n>0&&(i[r-1][4]=t),n1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return ra(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new zn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=wn(this._hostTNode,this._hostView);if(an(e)){var t=un(e,this._hostView),i=sn(e);return new zn(t[1].data[i+8],t)}return new zn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(e));var o=n[i.index];if(qt(o))r=o;else{var a;if(3===i.type)a=ni(o);else if(a=n[11].createComment(""),Kt(n)){var s=n[11],u=oi(i,n);jo(s,Uo(s,u),a,function(e,t){return ti(e)?e.nextSibling(t):t.nextSibling}(s,u))}else Vo(n[1],n,a,i);n[i.index]=r=Ao(o,n,a,i),Co(n,r)}return new ta(r,i,n)}function sa(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,i){if(!i&&Yt(e)){var n=ui(e.index,t);return new ia(n,n)}return 2===e.type||0===e.type||3===e.type||4===e.type?new ia(t[16],t):null}(bi(),vi(),e)}var ua=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=function(){return ca()},e}(),ca=sa,la=Function,ha=new et("Set Injector scope."),da={},fa={},pa=[],ga=void 0;function ma(){return void 0===ga&&(ga=new ft),ga}function va(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new ya(e,i,t||ma(),n)}var ya=function(){function e(t,i,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];i&&mt(i,(function(e){return r.processProvider(e,t,i)})),mt([t],(function(e){return r.processInjectorType(e,[],a)})),this.records.set(tt,wa(void 0,this));var s=this.records.get(ha);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Pe(t))}return w(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ae.Default;this.assertNotDestroyed();var n,r=at(this);try{if(!(i&Ae.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(n=e)||"object"==typeof n&&n instanceof et)&&Te(e);o=a&&this.injectableDefInScope(a)?wa(_a(e),da):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(i&Ae.Self?ma():this.parent).get(e,t=i&Ae.Optional&&t===it?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Pe(e)),r)throw s;return function(e,t,i,n){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Pe(t);if(Array.isArray(t))r=t.map(Pe).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Pe(s)))}r="{".concat(o.join(", "),"}")}return"".concat(i).concat(n?"("+n+")":"","[").concat(r,"]: ").concat(e.replace(nt,"\n "))}("\n"+e.message,r,"R3InjectorError",n),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{at(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,i){return e.push(Pe(i))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,i){var n=this;if(!(e=Be(e)))return!1;var r=Le(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==i.indexOf(a);if(void 0!==o&&(r=Le(o)),null==r)return!1;if(null!=r.imports&&!s){var u;i.push(a);try{mt(r.imports,(function(e){n.processInjectorType(e,t,i)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],i=t.ngModule,r=t.providers;mt(r,(function(e){return n.processProvider(e,i,r||pa)}))},l=0;l0){var i=_t(t,"?");throw new Error("Can't resolve all parameters for ".concat(Pe(e),": (").concat(i.join(", "),")."))}var n=function(e){var t=e&&(e[ze]||e[Re]||e[De]&&e[De]());if(t){var i=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(i,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(i,'" class.')),t}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ba(e,t,i){var n,r=void 0;if(ka(e)){var a=Be(e);return Ft(a)||_a(a)}if(Aa(e))r=function(){return Be(e.useValue)};else if((n=e)&&n.useFactory)r=function(){return e.useFactory.apply(e,o(dt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return ct(Be(e.useExisting))};else{var s=Be(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Ft(s)||_a(s);r=function(){return l(s,o(dt(e.deps)))}}return r}function wa(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:i?[]:void 0}}function Aa(e){return null!==e&&"object"==typeof e&&rt in e}function ka(e){return"function"==typeof e}var Ma=function(e,t,i){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,r=va(e,t,i,n);return r._resolveInjectorDefTypes(),r}({name:i},t,e,i)},Ca=function(){var e=function(){function e(){_(this,e)}return w(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ma(e,t,""):Ma(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=it,e.NULL=new ft,e.\u0275prov=Ce({token:e,providedIn:"any",factory:function(){return ct(tt)}}),e.__NG_ELEMENT_ID__=-1,e}(),Sa=new et("AnalyzeForEntryComponents");function Ta(e,t,i){var n=i?e.styles:null,r=i?e.classes:null,o=0;if(null!==t)for(var a=0;a=0;n--){var r=e[n];r.hostVars=t+=r.hostVars,r.hostAttrs=rn(r.hostAttrs,i=rn(i,r.hostAttrs))}}(n)}function za(e){return e===St?{}:e===Tt?[]:e}function xa(e,t){var i=e.viewQuery;e.viewQuery=i?function(e,n){t(e,n),i(e,n)}:t}function Da(e,t){var i=e.contentQueries;e.contentQueries=i?function(e,n,r){t(e,n,r),i(e,n,r)}:t}function Ra(e,t){var i=e.hostBindings;e.hostBindings=i?function(e,n){t(e,n),i(e,n)}:t}var Oa=null;function Pa(){if(!Oa){var e=Ke.Symbol;if(e&&e.iterator)Oa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),i=0;i1&&void 0!==arguments[1]?arguments[1]:Ae.Default,i=vi();return null===i?ct(e,t):kn(bi(),i,Be(e),t)}function Ga(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var i=e.attrs;if(i)for(var n=i.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,r=vi(),o=yi(),a=bi();return us(o,r,r[11],a,e,t,i,n),as}function ss(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,r=bi(),o=vi(),a=yi();return us(a,o,Do(Di(a.data),r,o),r,e,t,i,n),ss}function us(e,t,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Wt(n),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),l=xo(t),h=!0;if(2===n.type){var d=oi(n,t),f=s?s(d):St,p=f.target||d,g=l.length,m=s?function(e){return s(ni(e[n.index])).target}:n.index;if(ti(i)){var v=null;if(!s&&u&&(v=function(e,t,i,n){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,n.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=o,v.__ngLastListenerFn__=o,h=!1;else{o=ls(n,t,o,!1);var y=i.listen(f.name||p,r,o);l.push(o,y),c&&c.push(r,m,g,g+1)}}else o=ls(n,t,o,!0),p.addEventListener(r,o,a),l.push(o),c&&c.push(r,m,g,a)}var _,b=n.outputs;if(h&&null!==b&&(_=b[r])){var w=_.length;if(w)for(var A=0;A0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(gi.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,gi.lFrame.contextLView))[8]}(e)}function ds(e,t){for(var i=null,n=function(e){var t=e.attrs;if(null!=t){var i=t.indexOf(5);if(0==(1&i))return t[i+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=vi(),r=yi(),o=Jr(r,e,1,null,i||null);null===o.projection&&(o.projection=t),ki(),function(e,t,i){Jo(t[11],0,t,i,qo(e,i,t),Ko(i.parent||t[6],t))}(r,n,o)}function gs(e,t,i){return ms(e,"",t,"",i),gs}function ms(e,t,i,n,r){var o=vi(),a=Ya(o,t,i,n);return a!==Or&&uo(yi(),Wi(),o,e,a,o[11],r,!1),ms}function vs(e,t,i,n,r,o,a){var s=vi(),u=Wa(s,t,i,n,r,o);return u!==Or&&uo(yi(),Wi(),s,e,u,s[11],a,!1),vs}var ys=[];function _s(e,t,i,n,r){for(var o=e[i+1],a=null===t,s=n?jr(o):Wr(o),u=!1;0!==s&&(!1===u||a);){var c=e[s+1];bs(e[s],t)&&(u=!0,e[s+1]=n?Kr(c):Yr(c)),s=n?jr(c):Wr(c)}u&&(e[i+1]=n?Yr(o):Kr(o))}function bs(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&At(e,t)>=0}var ws={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function As(e){return e.substring(ws.key,ws.keyEnd)}function ks(e,t){var i=ws.textEnd;return i===t?-1:(t=ws.keyEnd=function(e,t,i){for(;t32;)t++;return t}(e,ws.key=t,i),Ms(e,t,i))}function Ms(e,t,i){for(;t=0;i=ks(t,i))bt(e,As(t),!0)}function Ls(e,t,i,n){var r=vi(),o=yi(),a=Li(2);o.firstUpdatePass&&Ds(o,e,a,n),t!==Or&&Ha(r,a,t)&&Ps(o,o.data[ji()+20],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Pe(Yn(e)))),e}(t,i),n,a)}function zs(e,t,i,n){var r=yi(),o=Li(2);r.firstUpdatePass&&Ds(r,null,o,n);var a=vi();if(i!==Or&&Ha(a,o,i)){var s=r.data[ji()+20];if(Fs(s,n)&&!xs(r,o)){var u=n?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(i=Ie(u,i||"")),Ja(r,s,a,i,n)}else!function(e,t,i,n,r,o,a,s){r===Or&&(r=ys);for(var u=0,c=0,l=0=e.expandoStartIndex}function Ds(e,t,i,n){var r=e.data;if(null===r[i+1]){var o=r[ji()+20],a=xs(e,i);Fs(o,n)&&null===t&&!a&&(t=!1),t=function(e,t,i,n){var r=Di(e),o=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(i=Os(i=Rs(null,e,t,i,n),t.attrs,n),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(i=Rs(r,e,t,i,n),null===o){var s=function(e,t,i){var n=i?t.classBindings:t.styleBindings;if(0!==Wr(n))return e[jr(n)]}(e,t,n);void 0!==s&&Array.isArray(s)&&function(e,t,i,n){e[jr(i?t.classBindings:t.styleBindings)]=n}(e,t,n,s=Os(s=Rs(null,e,t,s[1],n),t.attrs,n))}else o=function(e,t,i){for(var n=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(l=!0)}else c=i;if(r)if(0!==u){var d=jr(e[s+1]);e[n+1]=qr(d,s),0!==d&&(e[d+1]=Ur(e[d+1],n)),e[s+1]=131071&e[s+1]|n<<17}else e[n+1]=qr(s,0),0!==s&&(e[s+1]=Ur(e[s+1],n)),s=n;else e[n+1]=qr(u,0),0===s?s=n:e[u+1]=Ur(e[u+1],n),u=n;l&&(e[n+1]=Yr(e[n+1])),_s(e,c,n,!0),_s(e,c,n,!1),function(e,t,i,n,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&At(o,t)>=0&&(i[n+1]=Kr(i[n+1]))}(t,c,e,n,o),a=qr(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,i,a,n)}}function Rs(e,t,i,n,r){var o=null,a=i.directiveEnd,s=i.directiveStylingLast;for(-1===s?s=i.directiveStart:s++;s0;){var u=e[r],c=Array.isArray(u),l=c?u[1]:u,h=null===l,d=i[r+1];d===Or&&(d=h?ys:void 0);var f=h?wt(d,n):l===n?d:void 0;if(c&&!Ns(f)&&(f=wt(u,n)),Ns(f)&&(s=f,a))return s;var p=e[r+1];r=a?jr(p):Wr(p)}if(null!==t){var g=o?t.residualClasses:t.residualStyles;null!=g&&(s=wt(g,n))}return s}function Ns(e){return void 0!==e}function Fs(e,t){return 0!=(e.flags&(t?16:32))}function Bs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=vi(),n=yi(),r=e+20,o=n.firstCreatePass?Jr(n,e,2,null,null):n.data[r],a=i[r]=function(e,t){return ti(t)?t.createText(e):t.createTextNode(e)}(t,i[11]);Vo(n,i,a,o),wi(o,!1)}function Hs(e){return qs("",e,""),Hs}function qs(e,t,i){var n=vi(),r=Ya(n,e,t,i);return r!==Or&&Po(n,ji(),r),qs}function js(e,t,i,n,r){var o=vi(),a=Wa(o,e,t,i,n,r);return a!==Or&&Po(o,ji(),a),js}function Ys(e,t,i){zs(bt,Es,Ya(vi(),e,t,i),!0)}function Ws(e,t,i){var n=vi();return Ha(n,Ei(),t)&&uo(yi(),Wi(),n,e,t,n[11],i,!0),Ws}function Us(e,t,i){var n=vi();if(Ha(n,Ei(),t)){var r=yi(),o=Wi();uo(r,o,n,e,t,Do(Di(r.data),o,n),i,!0)}return Us}function Ks(e,t,i,n,r){if(e=Be(e),Array.isArray(e))for(var o=0;o>20;if(ka(e)||!e.multi){var p=new $i(c,r,Va),g=Xs(u,t,r?h:h+f,d);-1===g?(An(yn(l,s),a,u),Vs(a,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(p),s.push(p)):(i[g]=p,s[g]=p)}else{var m=Xs(u,t,h+f,d),v=Xs(u,t,h,h+f),y=m>=0&&i[m],_=v>=0&&i[v];if(r&&!_||!r&&!y){An(yn(l,s),a,u);var b=function(e,t,i,n,r){var o=new $i(e,i,Va);return o.multi=[],o.index=t,o.componentProviders=0,Gs(o,r,n&&!i),o}(r?Qs:Js,i.length,r,n,c);!r&&_&&(i[v].providerFactory=b),Vs(a,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(b),s.push(b)}else Vs(a,e,m>-1?m:v,Gs(i[r?v:m],c,!r&&n));!r&&n&&_&&i[v].componentProviders++}}}function Vs(e,t,i,n){var r=ka(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(i);-1===s?a.push(i,[n,o]):a[s+1].push(n,o)}else a.push(i,o)}}}function Gs(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Xs(e,t,i,n){for(var r=i;r1&&void 0!==arguments[1]?arguments[1]:[];return function(i){i.providersResolver=function(i,n){return function(e,t,i){var n=yi();if(n.firstCreatePass){var r=Ut(e);Ks(i,n.data,n.blueprint,r,!0),Ks(t,n.data,n.blueprint,r,!1)}}(i,n?n(e):e,t)}}}var eu=function e(){_(this,e)},tu=function(){function e(){_(this,e)}return w(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Pe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),iu=function(){var e=function e(){_(this,e)};return e.NULL=new tu,e}(),nu=function(){var e=function e(t){_(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return ru(e)},e}(),ru=function(e){return ra(e,bi(),vi())},ou=function e(){_(this,e)},au=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),su=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=function(){return uu()},e}(),uu=function(){var e=vi(),t=ui(bi().index,e);return function(e){var t=e[11];if(ti(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ht(t)?t:e)},cu=function(){var e=function e(){_(this,e)};return e.\u0275prov=Ce({token:e,providedIn:"root",factory:function(){return null}}),e}(),lu=function e(t){_(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},hu=new lu("10.1.5"),du=function(){function e(){_(this,e)}return w(e,[{key:"supports",value:function(e){return Na(e)}},{key:"create",value:function(e){return new pu(e)}}]),e}(),fu=function(e,t){return t},pu=function(){function e(t){_(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||fu}return w(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,i=this._removalsHead,n=0,r=null;t||i;){var o=!i||t&&t.currentIndex0&&Zo(c,h,_.join(" "))}if(o=ai(p,0),void 0!==t)for(var b=o.projection=[],w=0;w null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var Yu=new Map,Wu=function(e){d(i,e);var t=p(i);function i(e,n){var r;_(this,i),(r=t.call(this))._parent=n,r._bootstrapComponents=[],r.injector=m(r),r.destroyCbs=[],r.componentFactoryResolver=new Du(m(r));var o=Bt(e),a=e[Qe]||null;return a&&ju(a),r._bootstrapComponents=pn(o.bootstrap),r._r3Injector=va(e,n,[{provide:pt,useValue:m(r)},{provide:iu,useValue:r.componentFactoryResolver}],Pe(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return w(i,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ca.THROW_IF_NOT_FOUND,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ae.Default;return e===Ca||e===pt||e===tt?this:this._r3Injector.get(e,t,i)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),i}(pt),Uu=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this)).moduleType=e,null!==Bt(e)&&function e(t){if(null!==t.\u0275mod.id){var i=t.\u0275mod.id;(function(e,t,i){if(t&&t!==i)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Pe(t)," vs ").concat(Pe(t.name)))})(i,Yu.get(i),t),Yu.set(i,t)}var n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach((function(t){return e(t)}))}(e),n}return w(i,[{key:"create",value:function(e){return new Wu(this.moduleType,e)}}]),i}(gt);function Ku(e,t,i){var n=Si()+e,r=vi();return r[n]===Or?Ba(r,n,i?t.call(i):t()):function(e,t){return e[t]}(r,n)}function Vu(e,t,i,n){return Ju(vi(),Si(),e,t,i,n)}function Gu(e,t,i,n,r){return Qu(vi(),Si(),e,t,i,n,r)}function Xu(e,t){var i=e[t];return i===Or?void 0:i}function Ju(e,t,i,n,r,o){var a=t+i;return Ha(e,a,r)?Ba(e,a+1,o?n.call(o,r):n(r)):Xu(e,a+1)}function Qu(e,t,i,n,r,o,a){var s=t+i;return qa(e,s,r,o)?Ba(e,s+2,a?n.call(a,r,o):n(r,o)):Xu(e,s+2)}function Zu(e,t){var i,n=yi(),r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(var i=t.length-1;i>=0;i--){var n=t[i];if(e===n.name)return n}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];var o=i.factory||(i.factory=Ft(i.type)),a=st(Va);try{var s=mn(!1),u=o();return mn(s),function(e,t,i,n){var r=i+20;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=n}(n,vi(),e,u),u}finally{st(a)}}function $u(e,t,i){var n=vi(),r=si(n,e);return nc(n,ic(n,e)?Ju(n,Si(),t,r.transform,i,r):r.transform(i))}function ec(e,t,i,n){var r=vi(),o=si(r,e);return nc(r,ic(r,e)?Qu(r,Si(),t,o.transform,i,n,o):o.transform(i,n))}function tc(e,t,i,n,r){var o=vi(),a=si(o,e);return nc(o,ic(o,e)?function(e,t,i,n,r,o,a,s){var u=t+i;return function(e,t,i,n,r){var o=qa(e,t,i,n);return Ha(e,t+2,r)||o}(e,u,r,o,a)?Ba(e,u+3,s?n.call(s,r,o,a):n(r,o,a)):Xu(e,u+3)}(o,Si(),t,a.transform,i,n,r,a):a.transform(i,n,r))}function ic(e,t){return e[1].data[t+20].pure}function nc(e,t){return Ia.isWrapped(t)&&(t=Ia.unwrap(t),e[Ti()]=Or),t}var rc=function(e){d(i,e);var t=p(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _(this,i),(e=t.call(this)).__isAsync=n,e}return w(i,[{key:"emit",value:function(e){h(y(i.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,n){var r,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),n&&(a=this.__isAsync?function(){setTimeout((function(){return n()}))}:function(){n()}));var s=h(y(i.prototype),"subscribe",this).call(this,r,o,a);return e instanceof S&&e.add(s),s}}]),i}(H);function oc(){return this._results[Pa()]()}var ac=function(){function e(){_(this,e),this.dirty=!0,this._results=[],this.changes=new rc,this.length=0;var t=Pa(),i=e.prototype;i[t]||(i[t]=oc)}return w(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,i){void 0===i&&(i=t);for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];_(this,e),this.queries=t}return w(e,[{key:"createEmbeddedView",value:function(t){var i=t.queries;if(null!==i){for(var n=null!==t.contentQueries?t.contentQueries[0]:i.length,r=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_(this,e),this.predicate=t,this.descendants=i,this.isStatic=n,this.read=r},lc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_(this,e),this.queries=t}return w(e,[{key:"elementStart",value:function(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;_(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}return w(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,i=e.parent;null!==i&&3===i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var i=this.metadata.predicate;if(Array.isArray(i))for(var n=0;n0)r.push(s[u/2]);else{for(var l=a[u+1],h=i[-c],d=10;d0&&void 0!==arguments[0]?arguments[0]:Ae.Default,t=sa(!0);if(null!=t||e&Ae.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}var Ec=new et("Application Initializer"),Lc=function(){var e=function(){function e(t){var i=this;_(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){i.resolve=e,i.reject=t}))}return w(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],i=function(){e.done=!0,e.resolve()};if(this.appInits)for(var n=0;n0&&(r=setTimeout((function(){n._callbacks=n._callbacks.filter((function(e){return e.timeoutId!==r})),e(n._didWork,n.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:i})}},{key:"whenStable",value:function(e,t,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,i),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,i){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ct(Xc))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}(),ol=function(){var e=function(){function e(){_(this,e),this._applications=new Map,al.addToWindow(this)}return w(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return al.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}(),al=new(function(){function e(){_(this,e)}return w(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,i){return null}}]),e}()),sl=new et("AllowMultipleToken"),ul=function e(t,i){_(this,e),this.name=t,this.token=i};function cl(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: "+t,r=new et(n);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=ll();if(!o||o.injector.get(sl,!1))if(e)e(i.concat(t).concat({provide:r,useValue:!0}));else{var a=i.concat(t).concat({provide:r,useValue:!0},{provide:ha,useValue:"platform"});!function(e){if(il&&!il.destroyed&&!il.injector.get(sl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");il=e.get(hl);var t=e.get(Rc,null);t&&t.forEach((function(e){return e()}))}(Ca.create({providers:a,name:n}))}return function(e){var t=ll();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function ll(){return il&&!il.destroyed?il:null}var hl=function(){var e=function(){function e(t){_(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return w(e,[{key:"bootstrapModuleFactory",value:function(e,t){var i,n,r=this,o=(i=t?t.ngZone:void 0,n=t&&t.ngZoneEventCoalescing||!1,"noop"===i?new nl:("zone.js"===i?void 0:i)||new Xc({enableLongStackTrace:Gn(),shouldCoalesceEventChangeDetection:n})),a=[{provide:Xc,useValue:o}];return o.run((function(){var t=Ca.create({providers:a,parent:r.injector,name:e.moduleType.name}),i=e.create(t),n=i.injector.get(In,null);if(!n)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy((function(){return gl(r._modules,i)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){n.handleError(e)}})})),function(e,t,n){try{var o=((a=i.injector.get(Lc)).runInitializers(),a.donePromise.then((function(){return ju(i.injector.get(Nc,"en-US")||"en-US"),r._moduleDoBootstrap(i),i})));return rs(o)?o.catch((function(i){throw t.runOutsideAngular((function(){return e.handleError(i)})),i})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(n,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=dl({},i);return function(e,t,i){var n=new Uu(i);return Promise.resolve(n)}(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,n)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(pl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Pe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ct(Ca))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}();function dl(e,t){return Array.isArray(t)?t.reduce(dl,e):Object.assign(Object.assign({},e),t)}var fl,pl=((fl=function(){function e(t,i,n,r,o,a){var s=this;_(this,e),this._zone=t,this._console=i,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Gn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new O((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),c=new O((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){Xc.assertNotInAngularZone(),Gc((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var i=s._zone.onUnstable.subscribe((function(){Xc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),i.unsubscribe()}}));this.isStable=se(u,c.pipe(ge()))}return w(e,[{key:"bootstrap",value:function(e,t){var i,n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");i=e instanceof eu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(i.componentType);var r=i.isBoundToModule?void 0:this._injector.get(pt),o=i.create(Ca.NULL,[],t||i.selector,r);o.onDestroy((function(){n._unloadComponent(o)}));var a=o.injector.get(rl,null);return a&&o.injector.get(ol).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Gn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,i=s(this._views);try{for(i.s();!(t=i.n()).done;)t.value.detectChanges()}catch(o){i.e(o)}finally{i.f()}if(this._enforceNoNewChanges){var n,r=s(this._views);try{for(r.s();!(n=r.n()).done;)n.value.checkNoChanges()}catch(o){r.e(o)}finally{r.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;gl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Pc,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),gl(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||fl)(ct(Xc),ct(Ic),ct(Ca),ct(In),ct(iu),ct(Lc))},fl.\u0275prov=Ce({token:fl,factory:fl.\u0275fac}),fl);function gl(e,t){var i=e.indexOf(t);i>-1&&e.splice(i,1)}var ml=function e(){_(this,e)},vl=function e(){_(this,e)},yl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},_l=function(){var e=function(){function e(t,i){_(this,e),this._compiler=t,this._config=i||yl}return w(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=i(e.split("#"),2),r=n[0],o=n[1];return void 0===o&&(o="default"),a("zn8P")(r).then((function(e){return e[o]})).then((function(e){return bl(e,r,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=i(e.split("#"),2),n=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),a("zn8P")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then((function(e){return e[r+o]})).then((function(e){return bl(e,n,r)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ct(Kc),ct(vl,8))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}();function bl(e,t,i){if(!e)throw new Error("Cannot find '".concat(i,"' in '").concat(t,"'"));return e}var wl=cl(null,"core",[{provide:Oc,useValue:"unknown"},{provide:hl,deps:[Ca]},{provide:ol,deps:[]},{provide:Ic,deps:[]}]),Al=[{provide:pl,useClass:pl,deps:[Xc,Ic,Ca,In,iu,Lc]},{provide:Ou,deps:[Xc],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:Lc,useClass:Lc,deps:[[new _e,Ec]]},{provide:Kc,useClass:Kc,deps:[]},xc,{provide:Au,useFactory:function(){return Cu},deps:[]},{provide:ku,useFactory:function(){return Su},deps:[]},{provide:Nc,useFactory:function(e){return ju(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ye(Nc),new _e,new we]]},{provide:Fc,useValue:"USD"}],kl=function(){var e=function e(t){_(this,e)};return e.\u0275mod=Rt({type:e}),e.\u0275inj=Se({factory:function(t){return new(t||e)(ct(pl))},providers:Al}),e}(),Ml=null;function Cl(){return Ml}var Sl,Tl=new et("DocumentToken"),El=((Sl=function e(){_(this,e)}).\u0275fac=function(e){return new(e||Sl)},Sl.\u0275prov=Ce({factory:Ll,token:Sl,providedIn:"platform"}),Sl);function Ll(){return ct(Dl)}var zl,xl=new et("Location Initialized"),Dl=((zl=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this))._doc=e,n._init(),n}return w(i,[{key:"_init",value:function(){this.location=Cl().getLocation(),this._history=Cl().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Cl().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Cl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Cl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,i){Rl()?this._history.pushState(e,t,i):this.location.hash=i}},{key:"replaceState",value:function(e,t,i){Rl()?this._history.replaceState(e,t,i):this.location.hash=i}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),i}(El)).\u0275fac=function(e){return new(e||zl)(ct(Tl))},zl.\u0275prov=Ce({factory:Ol,token:zl,providedIn:"platform"}),zl);function Rl(){return!!window.history.pushState}function Ol(){return new Dl(ct(Tl))}function Pl(e,t){if(0==e.length)return t;if(0==t.length)return e;var i=0;return e.endsWith("/")&&i++,t.startsWith("/")&&i++,2==i?e+t.substring(1):1==i?e+t:e+"/"+t}function Il(e){var t=e.match(/#|\?|$/),i=t&&t.index||e.length;return e.slice(0,i-("/"===e[i-1]?1:0))+e.slice(i)}function Nl(e){return e&&"?"!==e[0]?"?"+e:e}var Fl,Bl=((Fl=function e(){_(this,e)}).\u0275fac=function(e){return new(e||Fl)},Fl.\u0275prov=Ce({factory:Hl,token:Fl,providedIn:"root"}),Fl);function Hl(e){var t=ct(Tl).location;return new Ul(ct(El),t&&t.origin||"")}var ql,jl,Yl,Wl=new et("appBaseHref"),Ul=((Yl=function(e){d(i,e);var t=p(i);function i(e,n){var r;if(_(this,i),(r=t.call(this))._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,g(r)}return w(i,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Pl(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Nl(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?"".concat(t).concat(i):t}},{key:"pushState",value:function(e,t,i,n){var r=this.prepareExternalUrl(i+Nl(n));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,i,n){var r=this.prepareExternalUrl(i+Nl(n));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),i}(Bl)).\u0275fac=function(e){return new(e||Yl)(ct(El),ct(Wl,8))},Yl.\u0275prov=Ce({token:Yl,factory:Yl.\u0275fac}),Yl),Kl=((jl=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return w(i,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Pl(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,i,n){var r=this.prepareExternalUrl(i+Nl(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,i,n){var r=this.prepareExternalUrl(i+Nl(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),i}(Bl)).\u0275fac=function(e){return new(e||jl)(ct(El),ct(Wl,8))},jl.\u0275prov=Ce({token:jl,factory:jl.\u0275fac}),jl),Vl=((ql=function(){function e(t,i){var n=this;_(this,e),this._subject=new rc,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Il(Xl(r)),this._platformStrategy.onPopState((function(e){n._subject.emit({url:n.path(!0),pop:!0,state:e.state,type:e.type})}))}return w(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Nl(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Xl(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(i,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Nl(t)),i)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(i,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Nl(t)),i)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(i){return i(e,t)}))}},{key:"subscribe",value:function(e,t,i){return this._subject.subscribe({next:e,error:t,complete:i})}}]),e}()).\u0275fac=function(e){return new(e||ql)(ct(Bl),ct(El))},ql.normalizeQueryParams=Nl,ql.joinWithSlash=Pl,ql.stripTrailingSlash=Il,ql.\u0275prov=Ce({factory:Gl,token:ql,providedIn:"root"}),ql);function Gl(){return new Vl(ct(Bl),ct(El))}function Xl(e){return e.replace(/\/index.html$/,"")}var Jl={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Ql=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),Zl=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),$l=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),eh=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),th=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),ih=function(e){return 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[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function nh(e,t){return ch(Bu(e)[qu.DateFormat],t)}function rh(e,t){return ch(Bu(e)[qu.TimeFormat],t)}function oh(e,t){return ch(Bu(e)[qu.DateTimeFormat],t)}function ah(e,t){var i=Bu(e),n=i[qu.NumberSymbols][t];if(void 0===n){if(t===ih.CurrencyDecimal)return i[qu.NumberSymbols][ih.Decimal];if(t===ih.CurrencyGroup)return i[qu.NumberSymbols][ih.Group]}return n}function sh(e,t){return Bu(e)[qu.NumberFormats][t]}function uh(e){if(!e[qu.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[qu.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function ch(e,t){for(var i=t;i>-1;i--)if(void 0!==e[i])return e[i];throw new Error("Locale data API: locale data undefined")}function lh(e){var t=i(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var hh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,dh={},fh=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,ph=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),gh=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),mh=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function vh(e,t,n,r){var o=function(e){if(Sh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var r=i(e.split("-").map((function(e){return+e})),3),o=r[0],a=r[1],s=r[2];return new Date(o,a-1,s)}if(t=e.match(hh))return function(e){var t=new Date(0),i=0,n=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(i=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-i,s=Number(e[5]||0)-n,u=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,u,c),t}(t)}var u=new Date(e);if(!Sh(u))throw new Error('Unable to convert "'.concat(e,'" into a date'));return u}(e);t=function e(t,i){var n=function(e){return Bu(e)[qu.LocaleId]}(t);if(dh[n]=dh[n]||{},dh[n][i])return dh[n][i];var r="";switch(i){case"shortDate":r=nh(t,th.Short);break;case"mediumDate":r=nh(t,th.Medium);break;case"longDate":r=nh(t,th.Long);break;case"fullDate":r=nh(t,th.Full);break;case"shortTime":r=rh(t,th.Short);break;case"mediumTime":r=rh(t,th.Medium);break;case"longTime":r=rh(t,th.Long);break;case"fullTime":r=rh(t,th.Full);break;case"short":var o=e(t,"shortTime"),a=e(t,"shortDate");r=yh(oh(t,th.Short),[o,a]);break;case"medium":var s=e(t,"mediumTime"),u=e(t,"mediumDate");r=yh(oh(t,th.Medium),[s,u]);break;case"long":var c=e(t,"longTime"),l=e(t,"longDate");r=yh(oh(t,th.Long),[c,l]);break;case"full":var h=e(t,"fullTime"),d=e(t,"fullDate");r=yh(oh(t,th.Full),[h,d])}return r&&(dh[n][i]=r),r}(n,t)||t;for(var a,s=[];t;){if(!(a=fh.exec(t))){s.push(t);break}var u=(s=s.concat(a.slice(1))).pop();if(!u)break;t=u}var c=o.getTimezoneOffset();r&&(c=Ch(r,c),o=function(e,t,i){var n=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Ch(t,n)-n))}(o,r));var l="";return s.forEach((function(e){var t=function(e){if(Mh[e])return Mh[e];var t;switch(e){case"G":case"GG":case"GGG":t=wh(mh.Eras,eh.Abbreviated);break;case"GGGG":t=wh(mh.Eras,eh.Wide);break;case"GGGGG":t=wh(mh.Eras,eh.Narrow);break;case"y":t=bh(gh.FullYear,1,0,!1,!0);break;case"yy":t=bh(gh.FullYear,2,0,!0,!0);break;case"yyy":t=bh(gh.FullYear,3,0,!1,!0);break;case"yyyy":t=bh(gh.FullYear,4,0,!1,!0);break;case"M":case"L":t=bh(gh.Month,1,1);break;case"MM":case"LL":t=bh(gh.Month,2,1);break;case"MMM":t=wh(mh.Months,eh.Abbreviated);break;case"MMMM":t=wh(mh.Months,eh.Wide);break;case"MMMMM":t=wh(mh.Months,eh.Narrow);break;case"LLL":t=wh(mh.Months,eh.Abbreviated,$l.Standalone);break;case"LLLL":t=wh(mh.Months,eh.Wide,$l.Standalone);break;case"LLLLL":t=wh(mh.Months,eh.Narrow,$l.Standalone);break;case"w":t=kh(1);break;case"ww":t=kh(2);break;case"W":t=kh(1,!0);break;case"d":t=bh(gh.Date,1);break;case"dd":t=bh(gh.Date,2);break;case"E":case"EE":case"EEE":t=wh(mh.Days,eh.Abbreviated);break;case"EEEE":t=wh(mh.Days,eh.Wide);break;case"EEEEE":t=wh(mh.Days,eh.Narrow);break;case"EEEEEE":t=wh(mh.Days,eh.Short);break;case"a":case"aa":case"aaa":t=wh(mh.DayPeriods,eh.Abbreviated);break;case"aaaa":t=wh(mh.DayPeriods,eh.Wide);break;case"aaaaa":t=wh(mh.DayPeriods,eh.Narrow);break;case"b":case"bb":case"bbb":t=wh(mh.DayPeriods,eh.Abbreviated,$l.Standalone,!0);break;case"bbbb":t=wh(mh.DayPeriods,eh.Wide,$l.Standalone,!0);break;case"bbbbb":t=wh(mh.DayPeriods,eh.Narrow,$l.Standalone,!0);break;case"B":case"BB":case"BBB":t=wh(mh.DayPeriods,eh.Abbreviated,$l.Format,!0);break;case"BBBB":t=wh(mh.DayPeriods,eh.Wide,$l.Format,!0);break;case"BBBBB":t=wh(mh.DayPeriods,eh.Narrow,$l.Format,!0);break;case"h":t=bh(gh.Hours,1,-12);break;case"hh":t=bh(gh.Hours,2,-12);break;case"H":t=bh(gh.Hours,1);break;case"HH":t=bh(gh.Hours,2);break;case"m":t=bh(gh.Minutes,1);break;case"mm":t=bh(gh.Minutes,2);break;case"s":t=bh(gh.Seconds,1);break;case"ss":t=bh(gh.Seconds,2);break;case"S":t=bh(gh.FractionalSeconds,1);break;case"SS":t=bh(gh.FractionalSeconds,2);break;case"SSS":t=bh(gh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ah(ph.Short);break;case"ZZZZZ":t=Ah(ph.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ah(ph.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ah(ph.Long);break;default:return null}return Mh[e]=t,t}(e);l+=t?t(o,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}function yh(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,i){return null!=t&&i in t?t[i]:e}))),e}function _h(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=i));for(var a=String(e);a.length2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,u=function(e,t){switch(e){case gh.FullYear:return t.getFullYear();case gh.Month:return t.getMonth();case gh.Date:return t.getDate();case gh.Hours:return t.getHours();case gh.Minutes:return t.getMinutes();case gh.Seconds:return t.getSeconds();case gh.FractionalSeconds:return t.getMilliseconds();case gh.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((i>0||u>-i)&&(u+=i),e===gh.Hours)0===u&&-12===i&&(u=12);else if(e===gh.FractionalSeconds)return s=t,_h(u,3).substr(0,s);var c=ah(a,ih.MinusSign);return _h(u,t,c,n,r)}}function wh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$l.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,t,n,r,o,a){switch(n){case mh.Months:return function(e,t,i){var n=Bu(e),r=ch([n[qu.MonthsFormat],n[qu.MonthsStandalone]],t);return ch(r,i)}(t,o,r)[e.getMonth()];case mh.Days:return function(e,t,i){var n=Bu(e),r=ch([n[qu.DaysFormat],n[qu.DaysStandalone]],t);return ch(r,i)}(t,o,r)[e.getDay()];case mh.DayPeriods:var s=e.getHours(),u=e.getMinutes();if(a){var c=function(e){var t=Bu(e);return uh(t),(t[qu.ExtraData][2]||[]).map((function(e){return"string"==typeof e?lh(e):[lh(e[0]),lh(e[1])]}))}(t),l=function(e,t,i){var n=Bu(e);uh(n);var r=ch([n[qu.ExtraData][0],n[qu.ExtraData][1]],t)||[];return ch(r,i)||[]}(t,o,r),h=c.findIndex((function(e){if(Array.isArray(e)){var t=i(e,2),n=t[0],r=t[1],o=s>=n.hours&&u>=n.minutes,a=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case ph.Short:return(r>=0?"+":"")+_h(a,2,o)+_h(Math.abs(r%60),2,o);case ph.ShortGMT:return"GMT"+(r>=0?"+":"")+_h(a,1,o);case ph.Long:return"GMT"+(r>=0?"+":"")+_h(a,2,o)+":"+_h(Math.abs(r%60),2,o);case ph.Extended:return 0===n?"Z":(r>=0?"+":"")+_h(a,2,o)+":"+_h(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function kh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){var r,o,a,s;if(t){var u=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,c=i.getDate();r=1+Math.floor((c+u)/7)}else{var l=(s=i,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))),h=(o=l.getFullYear(),a=new Date(o,0,1).getDay(),new Date(o,0,1+(a<=4?4:11)-a)),d=l.getTime()-h.getTime();r=1+Math.round(d/6048e5)}return _h(r,e,ah(n,ih.MinusSign))}}var Mh={};function Ch(e,t){e=e.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(i)?t:i}function Sh(e){return e instanceof Date&&!isNaN(e.valueOf())}var Th=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Eh(e,t,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",u=!1;if(isFinite(e)){var c=function(e){var t,i,n,r,o,a=Math.abs(e)+"",s=0;for((i=a.indexOf("."))>-1&&(a=a.replace(".","")),(n=a.search(/e/i))>0?(i<0&&(i=n),i+=+a.slice(n+1),a=a.substring(0,n)):i<0&&(i=a.length),n=0;"0"===a.charAt(n);n++);if(n===(o=a.length))t=[0],i=1;else{for(o--;"0"===a.charAt(o);)o--;for(i-=n,t=[],r=0;n<=o;n++,r++)t[r]=Number(a.charAt(n))}return i>22&&(t=t.splice(0,21),s=i-1,i=1),{digits:t,exponent:s,integerLen:i}}(e);a&&(c=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));var l=t.minInt,h=t.minFrac,d=t.maxFrac;if(o){var f=o.match(Th);if(null===f)throw new Error(o+" is not a valid digit info");var p=f[1],g=f[3],m=f[5];null!=p&&(l=zh(p)),null!=g&&(h=zh(g)),null!=m?d=zh(m):null!=g&&h>d&&(d=h)}!function(e,t,i){if(t>i)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(i,")."));var n=e.digits,r=n.length-e.integerLen,o=Math.min(Math.max(t,r),i),a=o+e.integerLen,s=n[a];if(a>0){n.splice(Math.max(e.integerLen,a));for(var u=a;u=5)if(a-1<0){for(var l=0;l>a;l--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[a-1]++;for(;r=d?n.pop():h=!1),t>=10?1:0}),0);f&&(n.unshift(f),e.integerLen++)}(c,h,d);var v=c.digits,y=c.integerLen,_=c.exponent,b=[];for(u=v.every((function(e){return!e}));y0?b=v.splice(y,v.length):(b=v,v=[0]);var w=[];for(v.length>=t.lgSize&&w.unshift(v.splice(-t.lgSize,v.length).join(""));v.length>t.gSize;)w.unshift(v.splice(-t.gSize,v.length).join(""));v.length&&w.unshift(v.join("")),s=w.join(ah(i,n)),b.length&&(s+=ah(i,r)+b.join("")),_&&(s+=ah(i,ih.Exponential)+"+"+_)}else s=ah(i,ih.Infinity);return s=e<0&&!u?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}function Lh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(";"),r=n[0],o=n[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=a[0],u=a[1]||"";i.posPre=s.substr(0,s.indexOf("#"));for(var c=0;c-1)return r;if(r=i.getPluralCategory(e,n),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(e,'"'))}var Rh,Oh=((Rh=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this)).locale=e,n}return w(i,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return Bu(e)[qu.PluralCase]}(t||this.locale)(e)){case Zl.Zero:return"zero";case Zl.One:return"one";case Zl.Two:return"two";case Zl.Few:return"few";case Zl.Many:return"many";default:return"other"}}}]),i}(xh)).\u0275fac=function(e){return new(e||Rh)(ct(Nc))},Rh.\u0275prov=Ce({token:Rh,factory:Rh.\u0275fac}),Rh);function Ph(e,t){t=encodeURIComponent(t);var n,r=s(e.split(";"));try{for(r.s();!(n=r.n()).done;){var o=n.value,a=o.indexOf("="),u=i(-1==a?[o,""]:[o.slice(0,a),o.slice(a+1)],2),c=u[0],l=u[1];if(c.trim()===t)return decodeURIComponent(l)}}catch(h){r.e(h)}finally{r.f()}return null}var Ih,Nh,Fh,Bh,Hh=((Nh=function(){function e(t,i,n,r){_(this,e),this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return w(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Pe(e.item));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(i){return t._toggleClass(i,!!e[i])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var i=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?i._renderer.addClass(i._ngEl.nativeElement,e):i._renderer.removeClass(i._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Na(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||Nh)(Va(Au),Va(ku),Va(nu),Va(su))},Nh.\u0275dir=Pt({type:Nh,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Nh),qh=((Ih=function(){function e(t){_(this,e),this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return w(e,[{key:"ngOnChanges",value:function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var i=t.get(pt);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(i.injector)}else this._moduleRef=null;var n=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(iu)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),e}()).\u0275fac=function(e){return new(e||Ih)(Va(Lu))},Ih.\u0275dir=Pt({type:Ih,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[Gt]}),Ih),jh=function(){function e(t,i,n,r){_(this,e),this.$implicit=t,this.ngForOf=i,this.index=n,this.count=r}return w(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Yh=((Fh=function(){function e(t,i,n){_(this,e),this._viewContainer=t,this._template=i,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return w(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(e){var t=this,i=[];e.forEachOperation((function(e,n,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new jh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Wh(e,o);i.push(a)}else if(null==r)t._viewContainer.remove(null===n?void 0:n);else if(null!==n){var s=t._viewContainer.get(n);t._viewContainer.move(s,r);var u=new Wh(e,s);i.push(u)}}));for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"mediumDate",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return vh(t,i,r||this.locale,n)}catch(o){throw cd(e,o.message)}}}]),e}()).\u0275fac=function(e){return new(e||dd)(Va(Nc))},dd.\u0275pipe=It({name:"date",type:dd,pure:!0}),dd),Ed=/#/g,Ld=((yd=function(){function e(t){_(this,e),this._localization=t}return w(e,[{key:"transform",value:function(t,i,n){if(null==t)return"";if("object"!=typeof i||null===i)throw cd(e,i);return i[Dh(t,Object.keys(i),this._localization,n)].replace(Ed,t.toString())}}]),e}()).\u0275fac=function(e){return new(e||yd)(Va(xh))},yd.\u0275pipe=It({name:"i18nPlural",type:yd,pure:!0}),yd),zd=((vd=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(t,i){if(null==t)return"";if("object"!=typeof i||"string"!=typeof t)throw cd(e,i);return i.hasOwnProperty(t)?i[t]:i.hasOwnProperty("other")?i.other:""}}]),e}()).\u0275fac=function(e){return new(e||vd)},vd.\u0275pipe=It({name:"i18nSelect",type:vd,pure:!0}),vd),xd=((md=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){return JSON.stringify(e,null,2)}}]),e}()).\u0275fac=function(e){return new(e||md)},md.\u0275pipe=It({name:"json",type:md,pure:!1}),md),Dd=((gd=function(){function e(t){_(this,e),this.differs=t,this.keyValues=[]}return w(e,[{key:"transform",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rd;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem((function(e){t.keyValues.push({key:e.key,value:e.currentValue})})),this.keyValues.sort(i)),this.keyValues}}]),e}()).\u0275fac=function(e){return new(e||gd)(Va(ku))},gd.\u0275pipe=It({name:"keyvalue",type:gd,pure:!1}),gd);function Rd(e,t){var i=e.key,n=t.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i1&&void 0!==arguments[1]?arguments[1]:"USD";_(this,e),this._locale=t,this._defaultCurrencyCode=i}return w(e,[{key:"transform",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(Hd(t))return null;o=o||this._locale,"boolean"==typeof n&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),n=n?"symbol":"code");var a=i||this._defaultCurrencyCode;"code"!==n&&(a="symbol"===n||"symbol-narrow"===n?function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",n=function(e){return Bu(e)[qu.Currencies]}(i)[e]||Jl[e]||[],r=n[1];return"narrow"===t&&"string"==typeof r?r:n[0]||e}(a,"symbol"===n?"wide":"narrow",o):n);try{return function(e,t,i,n,r){var o=Lh(sh(t,Ql.Currency),ah(t,ih.MinusSign));return o.minFrac=function(e){var t,i=Jl[e];return i&&(t=i[2]),"number"==typeof t?t:2}(n),o.maxFrac=o.minFrac,Eh(e,o,t,ih.CurrencyGroup,ih.CurrencyDecimal,r).replace("\xa4",i).replace("\xa4","").trim()}(qd(t),o,a,i,r)}catch(s){throw cd(e,s.message)}}}]),e}()).\u0275fac=function(e){return new(e||Od)(Va(Nc),Va(Fc))},Od.\u0275pipe=It({name:"currency",type:Od,pure:!0}),Od);function Hd(e){return null==e||""===e||e!=e}function qd(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(e+" is not a number");return e}var jd,Yd,Wd=((Yd=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(t,i,n){if(null==t)return t;if(!this.supports(t))throw cd(e,t);return t.slice(i,n)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}()).\u0275fac=function(e){return new(e||Yd)},Yd.\u0275pipe=It({name:"slice",type:Yd,pure:!1}),Yd),Ud=((jd=function e(){_(this,e)}).\u0275mod=Rt({type:jd}),jd.\u0275inj=Se({factory:function(e){return new(e||jd)},providers:[{provide:xh,useClass:Oh}]}),jd);function Kd(e){return"browser"===e}function Vd(e){return"server"===e}var Gd,Xd=((Gd=function e(){_(this,e)}).\u0275prov=Ce({token:Gd,providedIn:"root",factory:function(){return new Jd(ct(Tl),window,ct(In))}}),Gd),Jd=function(){function e(t,i,n){_(this,e),this.document=t,this.window=i,this.errorHandler=n,this.offset=function(){return[0,0]}}return w(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),i=t.left+this.window.pageXOffset,n=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=Qd(this.window.history)||Qd(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function Qd(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Zd,$d,ef,tf,nf=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,i){return e.addEventListener(t,i,!1),function(){e.removeEventListener(t,i,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,i=rf||(rf=document.querySelector("base"))?rf.getAttribute("href"):null;return null==i?null:(t=i,Zd||(Zd=document.createElement("a")),Zd.setAttribute("href",t),"/"===Zd.pathname.charAt(0)?Zd.pathname:"/"+Zd.pathname)}},{key:"resetBaseElement",value:function(){rf=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Ph(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new i,Ml||(Ml=e)}}]),i}(function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.call(this)}return w(i,[{key:"supportsDOMEvents",value:function(){return!0}}]),i}(function(){return function e(){_(this,e)}}())),rf=null,of=new et("TRANSITION_ID"),af=[{provide:Ec,useFactory:function(e,t,i){return function(){i.get(Lc).donePromise.then((function(){var i=Cl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return i.remove(e)}))}))}},deps:[of,Tl,Ca],multi:!0}],sf=function(){function e(){_(this,e)}return w(e,[{key:"addToWindow",value:function(e){Ke.getAngularTestability=function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.findTestabilityInTree(t,i);if(null==n)throw new Error("Could not find testability for element.");return n},Ke.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ke.getAllAngularRootElements=function(){return e.getAllRootElements()},Ke.frameworkStabilizers||(Ke.frameworkStabilizers=[]),Ke.frameworkStabilizers.push((function(e){var t=Ke.getAllAngularTestabilities(),i=t.length,n=!1,r=function(t){n=n||t,0==--i&&e(n)};t.forEach((function(e){e.whenStable(r)}))}))}},{key:"findTestabilityInTree",value:function(e,t,i){if(null==t)return null;var n=e.getTestability(t);return null!=n?n:i?Cl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,al=t}}]),e}(),uf=new et("EventManagerPlugins"),cf=(($d=function(){function e(t,i){var n=this;_(this,e),this._zone=i,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=n})),this._plugins=t.slice().reverse()}return w(e,[{key:"addEventListener",value:function(e,t,i){return this._findPluginFor(t).addEventListener(e,t,i)}},{key:"addGlobalEventListener",value:function(e,t,i){return this._findPluginFor(t).addGlobalEventListener(e,t,i)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var i=this._plugins,n=0;n-1&&(t.splice(i,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",i=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&zf.hasOwnProperty(t)&&(t=zf[t]))}return Lf[t]||t}(e);return" "===(i=i.toLowerCase())?i="space":"."===i&&(i="dot"),Ef.forEach((function(n){n!=i&&(0,xf[n])(e)&&(t+=n+".")})),t+=i}},{key:"eventCallback",value:function(e,t,n){return function(r){i.getEventFullKey(r)===e&&n.runGuarded((function(){return t(r)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),i}(lf)).\u0275fac=function(e){return new(e||wf)(ct(Tl))},wf.\u0275prov=Ce({token:wf,factory:wf.\u0275fac}),wf),Rf=((bf=function e(){_(this,e)}).\u0275fac=function(e){return new(e||bf)},bf.\u0275prov=Ce({factory:function(){return ct(Of)},token:bf,providedIn:"root"}),bf),Of=((_f=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this))._doc=e,n}return w(i,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case yr.NONE:return t;case yr.HTML:return Wn(t,"HTML")?Yn(t):mr(this._doc,String(t));case yr.STYLE:return Wn(t,"Style")?Yn(t):t;case yr.SCRIPT:if(Wn(t,"Script"))return Yn(t);throw new Error("unsafe value used in a script context");case yr.URL:return Un(t),Wn(t,"URL")?Yn(t):$n(String(t));case yr.RESOURCE_URL:if(Wn(t,"ResourceURL"))return Yn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Fn(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Bn(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Hn(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new qn(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new jn(e)}}]),i}(Rf)).\u0275fac=function(e){return new(e||_f)(ct(Tl))},_f.\u0275prov=Ce({factory:function(){return e=ct(tt),new Of(e.get(Tl));var e},token:_f,providedIn:"root"}),_f),Pf=cl(wl,"browser",[{provide:Oc,useValue:"browser"},{provide:Rc,useValue:function(){nf.makeCurrent(),sf.init()},multi:!0},{provide:Tl,useFactory:function(){return function(e){$t=e}(document),document},deps:[]}]),If=[[],{provide:ha,useValue:"root"},{provide:In,useFactory:function(){return new In},deps:[]},{provide:uf,useClass:Tf,multi:!0,deps:[Tl,Xc,Oc]},{provide:uf,useClass:Df,multi:!0,deps:[Tl]},[],{provide:kf,useClass:kf,deps:[cf,df,zc]},{provide:ou,useExisting:kf},{provide:hf,useExisting:df},{provide:df,useClass:df,deps:[Tl]},{provide:rl,useClass:rl,deps:[Xc]},{provide:cf,useClass:cf,deps:[uf,Xc]},[]],Nf=((Af=function(){function e(t){if(_(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return w(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:zc,useValue:t.appId},{provide:of,useExisting:zc},af]}}}]),e}()).\u0275mod=Rt({type:Af}),Af.\u0275inj=Se({factory:function(e){return new(e||Af)(ct(Af,12))},providers:If,imports:[Ud,kl]}),Af);"undefined"!=typeof window&&window;var Ff=function(e){return e.PERUNADMIN="PERUNADMIN",e.VOADMIN="VOADMIN",e.GROUPADMIN="GROUPADMIN",e.SELF="SELF",e.FACILITYADMIN="FACILITYADMIN",e.FACILITIYOBSERVER="FACILITYOBSERVER",e.RESOURCEADMIN="RESOURCEADMIN",e.RESOURCESELFSERVICE="RESOURCESELFSERVICE",e.REGISTRAR="REGISTRAR",e.ENGINE="ENGINE",e.RPC="RPC",e.NOTIFICATIONS="NOTIFICATIONS",e.SERVICEUSER="SERVICEUSER",e.SPONSOR="SPONSOR",e.VOOBSERVER="VOOBSERVER",e.TOPGROUPCREATOR="TOPGROUPCREATOR",e.SECURITYADMIN="SECURITYADMIN",e.CABINETADMIN="CABINETADMIN",e.UNKNOWNROLENAME="UNKNOWNROLENAME",e}({}),Bf=function(){function e(t){_(this,e),this.id=t.id,this.name=t.name,this.parentGroupId=t.parentGroupId,this.voId=t.voId,this.shortName=t.shortName,this.description=t.description,this.attributes=t.attributes,this.beanName=t.beanName}return w(e,[{key:"addChild",value:function(e){null==this.children?this.children=[e]:this.children.push(e)}}]),e}();function Hf(){for(var e=arguments.length,t=new Array(e),i=0;i0){var n=e.slice(0,t),r=n.toLowerCase(),o=e.slice(t+1).trim();i.maybeSetNormalizedName(n,r),i.headers.has(r)?i.headers.get(r).push(o):i.headers.set(r,[o])}}))}:function(){i.headers=new Map,Object.keys(t).forEach((function(e){var n=t[e],r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(r,n),i.maybeSetNormalizedName(e,r))}))}:this.headers=new Map}return w(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(i){t.headers.set(i,e.headers.get(i)),t.normalizedNames.set(i,e.normalizedNames.get(i))}))}},{key:"clone",value:function(t){var i=new e;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([t]),i}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);var n=("a"===e.op?this.headers.get(t):void 0)||[];n.push.apply(n,o(i)),this.headers.set(t,n);break;case"d":var r=e.value;if(r){var a=this.headers.get(t);if(!a)return;0===(a=a.filter((function(e){return-1===r.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(i){return e(t.normalizedNames.get(i),t.headers.get(i))}))}}]),e}(),Gf=function(){function e(){_(this,e)}return w(e,[{key:"encodeKey",value:function(e){return Xf(e)}},{key:"encodeValue",value:function(e){return Xf(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Xf(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Jf=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Gf,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.split("&").forEach((function(e){var r=e.indexOf("="),o=i(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),a=o[0],s=o[1],u=n.get(a)||[];u.push(s),n.set(a,u)})),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])}))):this.map=null}return w(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map((function(t){var i=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return i+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).join("&")}},{key:"clone",value:function(t){var i=new e({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat([t]),i}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var i=("a"===t.op?e.map.get(t.param):void 0)||[];i.push(t.value),e.map.set(t.param,i);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var n=e.map.get(t.param)||[],r=n.indexOf(t.value);-1!==r&&n.splice(r,1),n.length>0?e.map.set(t.param,n):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function Qf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Zf(e){return"undefined"!=typeof Blob&&e instanceof Blob}function $f(e){return"undefined"!=typeof FormData&&e instanceof FormData}var ep=function(){function e(t,i,n,r){var o;if(_(this,e),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new Vf),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce((function(e,i){return e.set(i,t.setHeaders[i])}),u)),t.setParams&&(c=Object.keys(t.setParams).reduce((function(e,i){return e.set(i,t.setParams[i])}),c)),new e(i,n,o,{params:c,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),tp=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),ip=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_(this,e),this.headers=t.headers||new Vf,this.status=void 0!==t.status?t.status:i,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},np=function(e){d(i,e);var t=p(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _(this,i),(e=t.call(this,n)).type=tp.ResponseHeader,e}return w(i,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),i}(ip),rp=function(e){d(i,e);var t=p(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _(this,i),(e=t.call(this,n)).type=tp.Response,e.body=void 0!==n.body?n.body:null,e}return w(i,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),i}(ip),op=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return i}(ip);function ap(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var sp,up,cp,lp,hp,dp,fp,pp,gp,mp,vp,yp,_p,bp,wp,Ap,kp,Mp,Cp,Sp,Tp,Ep,Lp,zp=((sp=function(){function e(t){_(this,e),this.handler=t}return w(e,[{key:"request",value:function(e,t){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof ep)i=e;else{var o=void 0;o=r.headers instanceof Vf?r.headers:new Vf(r.headers);var a=void 0;r.params&&(a=r.params instanceof Jf?r.params:new Jf({fromObject:r.params})),i=new ep(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Hf(i).pipe(qf((function(e){return n.handler.handle(e)})));if(e instanceof ep||"events"===r.observe)return s;var u=s.pipe(jf((function(e){return e instanceof rp})));switch(r.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return u.pipe(Q((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return u.pipe(Q((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return u.pipe(Q((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return u.pipe(Q((function(e){return e.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Jf).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,ap(i,t))}},{key:"post",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,ap(i,t))}},{key:"put",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,ap(i,t))}}]),e}()).\u0275fac=function(e){return new(e||sp)(ct(Uf))},sp.\u0275prov=Ce({token:sp,factory:sp.\u0275fac}),sp),xp=function(){function e(t,i){_(this,e),this.next=t,this.interceptor=i}return w(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Dp=new et("HTTP_INTERCEPTORS"),Rp=((up=function(){function e(){_(this,e)}return w(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||up)},up.\u0275prov=Ce({token:up,factory:up.\u0275fac}),up),Op=/^\)\]\}',?\n/,Pp=function e(){_(this,e)},Ip=((lp=function(){function e(){_(this,e)}return w(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||lp)},lp.\u0275prov=Ce({token:lp,factory:lp.\u0275fac}),lp),Np=((cp=function(){function e(t){_(this,e),this.xhrFactory=t}return w(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O((function(i){var n=t.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((function(e,t){return n.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&n.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();n.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===n.status?204:n.status,i=n.statusText||"OK",r=new Vf(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new np({headers:r,status:t,statusText:i,url:o})},c=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,c=null;204!==o&&(c=void 0===n.response?n.responseText:n.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var h=c;c=c.replace(Op,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(i.next(new rp({body:c,headers:r,status:o,statusText:a,url:s||void 0})),i.complete()):i.error(new op({error:c,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=u().url,r=new op({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:t||void 0});i.error(r)},h=!1,d=function(t){h||(i.next(u()),h=!0);var r={type:tp.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),i.next(r)},f=function(e){var t={type:tp.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),i.next(t)};return n.addEventListener("load",c),n.addEventListener("error",l),e.reportProgress&&(n.addEventListener("progress",d),null!==a&&n.upload&&n.upload.addEventListener("progress",f)),n.send(a),i.next({type:tp.Sent}),function(){n.removeEventListener("error",l),n.removeEventListener("load",c),e.reportProgress&&(n.removeEventListener("progress",d),null!==a&&n.upload&&n.upload.removeEventListener("progress",f)),n.readyState!==n.DONE&&n.abort()}}))}}]),e}()).\u0275fac=function(e){return new(e||cp)(ct(Pp))},cp.\u0275prov=Ce({token:cp,factory:cp.\u0275fac}),cp),Fp=new et("XSRF_COOKIE_NAME"),Bp=new et("XSRF_HEADER_NAME"),Hp=function e(){_(this,e)},qp=((gp=function(){function e(t,i,n){_(this,e),this.doc=t,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return w(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ph(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||gp)(ct(Tl),ct(Oc),ct(Fp))},gp.\u0275prov=Ce({token:gp,factory:gp.\u0275fac}),gp),jp=((pp=function(){function e(t,i){_(this,e),this.tokenService=t,this.headerName=i}return w(e,[{key:"intercept",value:function(e,t){var i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return t.handle(e);var n=this.tokenService.getToken();return null===n||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,n)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||pp)(ct(Hp),ct(Bp))},pp.\u0275prov=Ce({token:pp,factory:pp.\u0275fac}),pp),Yp=((fp=function(){function e(t,i){_(this,e),this.backend=t,this.injector=i,this.chain=null}return w(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Dp,[]);this.chain=t.reduceRight((function(e,t){return new xp(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||fp)(ct(Kf),ct(Ca))},fp.\u0275prov=Ce({token:fp,factory:fp.\u0275fac}),fp),Wp=((dp=function(){function e(){_(this,e)}return w(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:jp,useClass:Rp}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Fp,useValue:t.cookieName}:[],t.headerName?{provide:Bp,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=Rt({type:dp}),dp.\u0275inj=Se({factory:function(e){return new(e||dp)},providers:[jp,{provide:Dp,useExisting:jp,multi:!0},{provide:Hp,useClass:qp},{provide:Fp,useValue:"XSRF-TOKEN"},{provide:Bp,useValue:"X-XSRF-TOKEN"}]}),dp),Up=((hp=function e(){_(this,e)}).\u0275mod=Rt({type:hp}),hp.\u0275inj=Se({factory:function(e){return new(e||hp)},providers:[zp,{provide:Uf,useClass:Yp},Np,{provide:Kf,useExisting:Np},Ip,{provide:Pp,useExisting:Ip}],imports:[[Wp.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),hp),Kp=function(){function e(){_(this,e)}return w(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),Vp=new et("basePath"),Gp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this,e),this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}return w(e,[{key:"selectHeaderContentType",value:function(e){var t=this;if(0!==e.length){var i=e.find((function(e){return t.isJsonMime(e)}));return void 0===i?e[0]:i}}},{key:"selectHeaderAccept",value:function(e){var t=this;if(0!==e.length){var i=e.find((function(e){return t.isJsonMime(e)}));return void 0===i?e[0]:i}}},{key:"isJsonMime",value:function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),e}(),Xp=((Cp=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"convertAttributeToNonunique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/convertAttributeToNonunique",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"convertAttributeToUnique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/convertAttributeToUnique",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"createAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/createAttribute",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"deleteAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("attribute",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/deleteAttribute",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"deleteAttributeDefinitions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("attributes[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/deleteAttributes",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllAttributeDefinitions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributesDefinition",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getAttribute",value:function(e,t,i,n,r,o,a,s,u,c,l){var h=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",d=arguments.length>12&&void 0!==arguments[12]&&arguments[12],f=new Jf({encoder:this.encoder});null!=e&&(f=f.set("attributeName",e)),null!=t&&(f=f.set("attributeId",t)),null!=i&&(f=f.set("facility",i)),null!=n&&(f=f.set("user",n)),null!=r&&(f=f.set("vo",r)),null!=o&&(f=f.set("resource",o)),null!=a&&(f=f.set("member",a)),null!=s&&(f=f.set("group",s)),null!=u&&(f=f.set("host",u)),null!=c&&(f=f.set("userExtSource",c)),null!=l&&(f=f.set("key",l));var p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var g="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+g)}var m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(p=p.set("Accept",m)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/any",{params:f,withCredentials:this.configuration.withCredentials,headers:p,observe:h,reportProgress:d})}},{key:"getAttributeDefinitionById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeDefinitionById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAttributeDefinitionByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("attributeName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeDefinition",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAttributeDefinitionsByNamespace",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributesDefinitionByNamespace",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("format",e)),null!=t&&(r=r.set("attrName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAttributeModulesDependenciesGraphText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("format",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeModulesDependenciesGraphText",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("attributeId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributeRights",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAttributesDefinitionWithRights",value:function(e,t,i,n,r,o,a,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",c=arguments.length>9&&void 0!==arguments[9]&&arguments[9],l=new Jf({encoder:this.encoder});null!=e&&(l=l.set("member",e)),null!=t&&(l=l.set("user",t)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=r&&(l=l.set("resource",r)),null!=o&&(l=l.set("facility",o)),null!=a&&(l=l.set("host",a)),null!=s&&(l=l.set("userExtSource",s));var h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var d="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+d)}var f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(h=h.set("Accept",f)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights",{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:c})}},{key:"getEntitylessAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-entityless",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessAttributesByKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("key",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/key",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getEntitylessAttributesByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("attrName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getEntitylessAttributesWithKeys",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("attrName",e)),t&&t.forEach((function(e){r=r.append("keys[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessAttributesWithKeys",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessKeys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getEntitylessKeys",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityAttributeById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-facility",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-facility",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityResourceUserMemberAttributes",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),null!=t&&(a=a.set("resource",t)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-r-u-m",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getFacilityUserAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/f-u",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-group",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-group",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/g",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/g-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupResourceAttributeById",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-group-resource",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-group-resource",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/group-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-host",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-host",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("host",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/h",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getHostAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/h-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLogins",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getLogins",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getMemberAndUserAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-wu",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAndUserAttributesByNames",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),t&&t.forEach((function(e){o=o.append("attrNames[]",e)})),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-names-wu",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberAttributeById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getMemberAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),i&&i.forEach((function(e){a=a.append("attrNames[]",e)})),null!=n&&(a=a.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g-names-wu",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getMemberGroupAttributeById",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member-group",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member-group",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAttributesByNames",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),i&&i.forEach((function(e){o=o.append("attrNames[]",e)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-g-names",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r-wu",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),i&&i.forEach((function(e){a=a.append("attrNames[]",e)})),null!=n&&(a=a.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r-names-wu",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getMemberResourceAttributeById",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-member-resource",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-member-resource",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/m-r",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("service",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributesDefinition",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRequiredAttributesFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/f",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRequiredAttributesFacilityService",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-f",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesFacilityServices",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});e&&e.forEach((function(e){r=r.append("services[]",e)})),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/ss-f",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesGroupResourceService",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("service",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-g",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("host",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-h",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMember",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMemberGroup",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m-g",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(e,t,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var s=new Jf({encoder:this.encoder});null!=e&&(s=s.set("service",e)),null!=t&&(s=s.set("resource",t)),null!=i&&(s=s.set("group",i)),null!=n&&(s=s.set("member",n)),null!=r&&(s=s.set("workWithUserAttributes",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-g-m",{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getRequiredAttributesMemberGroupService",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("service",e)),null!=t&&(a=a.set("group",t)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-g-m",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRequiredAttributesMemberResource",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/m-r",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("service",e)),null!=t&&(a=a.set("resource",t)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r-m",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRequiredAttributesResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/r",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRequiredAttributesResourceService",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-r",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesResourceServices",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});e&&e.forEach((function(e){r=r.append("services[]",e)})),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/ss-r",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/u",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRequiredAttributesUserFacility",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/u-f",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesVoService",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getRequiredAttributes/s-v",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-resource",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getResourceAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupAndGroupAttributes",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),null!=t&&(o=o.set("group",t)),null!=i&&(o=o.set("workWithGroupAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-wg",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),null!=t&&(a=a.set("group",t)),i&&i.forEach((function(e){a=a.append("attrNames[]",e)})),null!=n&&(a=a.set("workWithGroupAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-names-wg",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getResourceGroupAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupMemberAttributesByNames",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),null!=t&&(a=a.set("group",t)),null!=i&&(a=a.set("member",i)),n&&n.forEach((function(e){a=a.append("attrNames[]",e)}));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/r-g-m-names",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getUserAttributeById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-user",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-user",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/u",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getUserAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/u-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-ues",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-ues",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/ues",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getUserExtSourceAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/ues-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserFacilityAttributeById",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-user_facility",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-user_facility",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/user-facility",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/id-vo",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttribute/name-vo",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVoAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/attributesManager/getAttributes/vo-names",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(e,t,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)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.");var u=new Jf({encoder:this.encoder});null!=e&&(u=u.set("facility",e)),null!=t&&(u=u.set("resource",t)),null!=i&&(u=u.set("group",i)),null!=n&&(u=u.set("user",n)),null!=r&&(u=u.set("member",r)),o&&o.forEach((function(e){u=u.append("attributes[]",e)}));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m",null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(e,t,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var s=new Jf({encoder:this.encoder});null!=e&&(s=s.set("facility",e)),null!=t&&(s=s.set("resource",t)),null!=i&&(s=s.set("user",i)),null!=n&&(s=s.set("member",n)),r&&r.forEach((function(e){s=s.append("attributes[]",e)}));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m",null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"removeEntitylessAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/e",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach((function(e){r=r.append("attributes[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/f",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach((function(e){r=r.append("attributes[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupResourceAttribute",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/g-r",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),i&&i.forEach((function(e){o=o.append("attributes[]",e)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g-r",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),i&&i.forEach((function(e){a=a.append("attributes[]",e)})),null!=n&&(a=a.set("workWithGroupAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"removeHostAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/h",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach((function(e){r=r.append("attributes[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/h",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach((function(e){r=r.append("attributes[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),t&&t.forEach((function(e){o=o.append("attributes[]",e)})),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m-g",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),i&&i.forEach((function(e){o=o.append("attributes[]",e)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-g",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),i&&i.forEach((function(e){a=a.append("attributes[]",e)})),null!=n&&(a=a.set("workWithUserAttributes",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"removeMemberResourceAttribute",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/m-r",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),i&&i.forEach((function(e){o=o.append("attributes[]",e)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/m-r",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeResourceAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach((function(e){r=r.append("attributes[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/r",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUesAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach((function(e){r=r.append("attributes[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/ues",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach((function(e){r=r.append("attributes[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSourceAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/ues",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserFacilityAttribute",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/u-f",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),i&&i.forEach((function(e){o=o.append("attributes[]",e)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/u-f",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeVoAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttribute/v",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach((function(e){r=r.append("attributes[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/attributesManager/removeAttributes/v",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributeRights",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setEntitylessAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/entityless",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/facility",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-r-g-u-m",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setFacilityResourceUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-r-u-m",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setFacilityUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/f-u",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/group",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/g",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setGroupResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/group-resource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setGroupResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/group-resource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setHostAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/host",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/h",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member-group",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-g",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberGroupWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-g-wu",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberResourceAndUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-r-wu",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/member-resource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-r",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setMemberWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/m-wu",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/resource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setResourceGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r-g",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setResourceGroupWithGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/r-g-wg",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setUserAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/user",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/u",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setUserExtSourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/userExtSource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/ues",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setUserFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/facility-user",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setUserFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/facility-user",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setVoAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttribute/vo",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/setAttributes/vo",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/attributesManager/updateAttributeDefinition",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||Cp)(ct(zp),ct(Vp,8),ct(Gp,8))},Cp.\u0275prov=Ce({token:Cp,factory:Cp.\u0275fac,providedIn:"root"}),Cp),Jp=((Mp=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"getAllPolicies",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAllPolicies",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getAllRolesManagementRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAllRolesManagementRules",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getAuthzAdminGroups",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("role",e)),null!=t&&(o=o.set("complementaryObjectId",t)),null!=i&&(o=o.set("complementaryObjectName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getAdminGroups",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(e,t,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var u=new Jf({encoder:this.encoder});null!=e&&(u=u.set("role",e)),null!=t&&(u=u.set("complementaryObjectId",t)),null!=i&&(u=u.set("complementaryObjectName",i)),n&&n.forEach((function(e){u=u.append("specificAttributes",e)})),null!=r&&(u=u.set("allUserAttributes",r)),null!=o&&(u=u.set("onlyDirectAdmins",o));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getRichAdmins",{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new Jf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach((function(e){r=r.append("roles[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getFacilitiesWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getGroupRoleNames",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("groupId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/getGroupRoles",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupsWhereUserIsInRoles",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new Jf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach((function(e){r=r.append("roles[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getGroupsWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLoggedUser",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getLoggedUser",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getMembersWhereUserIsInRoles",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new Jf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach((function(e){r=r.append("roles[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getMembersWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getPerunPrincipal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getPerunPrincipal",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getPrincipalRoleNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getPrincipalRoleNames",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getResourcesWhereUserIsInRoles",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new Jf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach((function(e){r=r.append("roles[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getResourcesWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new Jf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach((function(e){r=r.append("roles[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getUserRoleNames",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getUserRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("userId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getUserRoles",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVosWhereUserIsInRoles",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new Jf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach((function(e){r=r.append("roles[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/getVosWhereUserIsInRoles",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isFacilityAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isFacilityAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"isGroupAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isGroupAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"isPerunAdmin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/isPerunAdmin",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"isVoAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/urlinjsonout/authzResolver/isVoAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"keepAlive",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/keepAlive",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"loadAuthorizationComponents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/authzResolver/loadAuthorizationComponents",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"setRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/setRole/g-co",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/setRole/u-co",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/unsetRole/g-co",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"unsetRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/authzResolver/unsetRole/u-co",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||Mp)(ct(zp),ct(Vp,8),ct(Gp,8))},Mp.\u0275prov=Ce({token:Mp,factory:Mp.\u0275fac,providedIn:"root"}),Mp),Qp=((kp=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"addFacilityAdminGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminGroupByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/group/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUserByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addAdmin/user/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityContact",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddFacilityContact was null or undefined when calling addFacilityContact.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/addFacilityContact",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"addFacilityContacts",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddFacilityContacts was null or undefined when calling addFacilityContacts.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/addFacilityContacts",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"addFacilityOwner",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==t)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("owner",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==t)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("owner",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityNameOwnerName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==t)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("owner",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/f-o-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByOwnerName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==t)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("owner",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addOwner/o-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHost",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==t)throw new Error("Required parameter hostname was null or undefined when calling addHost.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("hostname",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHost",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==t)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("hostname",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHost/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHosts",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==t)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach((function(e){r=r.append("hostnames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHosts",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostsByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==t)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach((function(e){r=r.append("hostnames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/addHosts/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeam",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==t)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("securityTeam",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/assignSecurityTeam",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeamByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==t)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("securityTeam",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==t)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacility",e)),null!=t&&(r=r.set("destFacility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesByDestinationName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==t)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacility",e)),null!=t&&(r=r.set("destFacilityName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceDestinationNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==t)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacilityName",e)),null!=t&&(r=r.set("destFacilityName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==t)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacilityName",e)),null!=t&&(r=r.set("destFacility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyAttributes/src-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagers",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==t)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacility",e)),null!=t&&(r=r.set("destFacility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersByDestinationName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==t)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacility",e)),null!=t&&(r=r.set("destFacilityName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceDestinationNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==t)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacilityName",e)),null!=t&&(r=r.set("destFacilityName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/src-dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==t)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacilityName",e)),null!=t&&(r=r.set("destFacility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyManagers/src-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwners",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==t)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacility",e)),null!=t&&(r=r.set("destFacility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersByDestinationName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==t)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacility",e)),null!=t&&(r=r.set("destFacilityName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceDestinationNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==t)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacilityName",e)),null!=t&&(r=r.set("destFacilityName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/src-dest-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==t)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("srcFacilityName",e)),null!=t&&(r=r.set("destFacility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/copyOwners/src-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createFacility",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter name was null or undefined when calling createFacility.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("name",e)),null!=t&&(r=r.set("description",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/createFacility",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacility",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/deleteFacility",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacilityByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/deleteFacility/f-name",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllContactGroupNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllContactGroupNames",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getAllFacilities",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getAllowedGroups",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedGroups",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedGroupsByFacilityName",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedGroups/f-name",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedRichGroupsWithAttributes",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),t&&t.forEach((function(e){a=a.append("attrNames[]",e)})),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedRichGroupsWithAttributes",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getAllowedRichGroupsWithAttributesByFacilityName",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),t&&t.forEach((function(e){a=a.append("attrNames[]",e)})),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getAllowedUsersOfFacility",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedUsers/v-f-s",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedUsersOfFacilityByFacilityName",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAllowedUsers/v-f-s/f-name",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedVos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/getAllowedVos",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllowedVosByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/getAllowedVos/f-name",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedFacilitiesByGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/group",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedFacilitiesByMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/member",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedFacilitiesByService",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("service",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/service",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedFacilitiesByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedFacilities/user",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedResourcesByAssignedServiceForFacility",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResourcesByAssignedService",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedResourcesForFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedResourcesForFacilityByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedResources/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedRichResourcesForFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedRichResourcesForFacilityByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedRichResources/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedSecurityTeams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedSecurityTeams",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedSecurityTeamsByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedSecurityTeams/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedUsers",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedUsers",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedUsersByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAssignedUsers/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getBansForFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facilityId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBansForFacility",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getBansForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBansForUser",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getEnrichedFacilities",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getEnrichedFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getEnrichedHosts",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getEnrichedHosts",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("attributeName",e)),null!=t&&(r=r.set("attributeValue",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByAttribute",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByDestination",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("destination",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByDestination",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilitiesByHostName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("hostname",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByHostName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilitiesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilitiesCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getFacilitiesWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilitiesWhereUserIsAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityAdminGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdminGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityAdminUsers",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("onlyDirectAdmins",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdmins",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAdminUsersByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("onlyDirectAdmins",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getAdmins/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBan",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBan",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("name",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityByName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityContactGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroup.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityContactGroup.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("name",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroup",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityContactGroupByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupByFacilityName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityContactGroupByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("name",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroup/f-name",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityContactGroupsForFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupsForFacility.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/facility",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityContactGroupsForFacilityByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityContactGroupsForFacilityByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/facility/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityContactGroupsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFacilityContactGroupsForGroup.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/group",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityContactGroupsForOwner",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter owner was null or undefined when calling getFacilityContactGroupsForOwner.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("owner",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/owner",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityContactGroupsForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityContactGroupsForUser.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityContactGroups/user",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityForHost",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("host",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getFacilityForHost",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityOwners",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwners",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFacilityOwnersByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwners/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getHostById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getHostById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getHosts",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHosts.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHosts",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getHostsByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHosts/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getHostsByHostname",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("hostname",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsByHostname",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getHostsCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsCount",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getHostsCountByFacilityName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getHostsCount/f-name",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getOwnerFacilities",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("owner",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getOwnerFacilities",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichFacilities",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/facilitiesManager/getRichFacilities",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"removeBanByUserIdFacilityId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroupByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/group/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUserByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeAdmin/user/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeBan/byId",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"removeFacilityContact",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputRemoveFacilityContact was null or undefined when calling removeFacilityContact.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/removeFacilityContact",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"removeFacilityContacts",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputRemoveFacilityContacts was null or undefined when calling removeFacilityContacts.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/removeFacilityContacts",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"removeFacilityOwner",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==t)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("owner",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==t)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("owner",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityNameOwnerName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==t)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("owner",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/f-o-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByOwnerName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==t)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("owner",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeOwner/o-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHost",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHost.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("host",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHost",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"removeHostByHostname",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("hostname",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHostByHostname",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"removeHosts",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==t)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach((function(e){r=r.append("hosts[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHosts",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostsByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==t)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach((function(e){r=r.append("hosts[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeHosts/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeam",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==t)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("securityTeam",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeSecurityTeam",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeamByFacilityName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==t)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("securityTeam",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setFacilityBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/setBan",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/updateFacility",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateFacilityBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/facilitiesManager/updateBan",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||kp)(ct(zp),ct(Vp,8),ct(Gp,8))},kp.\u0275prov=Ce({token:kp,factory:kp.\u0275fac,providedIn:"root"}),kp),Zp=((Ap=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"addGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("groups[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addGroupsToAutoRegistration",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"addMember",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});e&&e.forEach((function(e){r=r.append("groups[]",e)})),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addMember",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addMembers",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach((function(e){r=r.append("members[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/addMembers",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupUnion",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroupUnion",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupWithParentGroupNameDescription",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("parentGroup",e)),null!=t&&(o=o.set("name",t)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroup/pg-n-d",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("name",t)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/createGroup/v-n-d",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deleteGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroups",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==t)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");var r=new Jf({encoder:this.encoder});e&&e.forEach((function(e){r=r.append("groups[]",e)})),null!=t&&(r=r.set("forceDelete",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroups",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroupsFromAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("groups[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/deleteGroupsFromAutoRegistration",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"forceAllSubGroupsSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"forceGroupStructureSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceGroupStructureSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"forceGroupSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/forceGroupSynchronization",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllMemberGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllRichGroupsWithAttributesByNames",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupByName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("name",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupByName",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCount",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupMembersCountsByGroupStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCountsByGroupStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupMembersCountsByVoStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupMembersCountsByVoStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupUnions",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("reverseDirection",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupUnions",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupsByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getGroupsToAutoRegistration",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getMemberGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getMemberRichGroupsWithAttributesByNames",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("groupId",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/getRichGroupByIdWithAttributesByNames",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isGroupMember",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/groupsManager/isGroupMember",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new Jf({encoder:this.encoder});null!=t&&(r=r.set("destinationGroup",t)),null!=e&&(r=r.set("movingGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/moveGroup/dg-mg",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupUnion",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeGroupUnion",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMember",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});e&&e.forEach((function(e){r=r.append("groups[]",e)})),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeMember",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMembers",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach((function(e){r=r.append("members[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/groupsManager/removeMembers",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/groupsManager/updateGroup",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||Ap)(ct(zp),ct(Vp,8),ct(Gp,8))},Ap.\u0275prov=Ce({token:Ap,factory:Ap.\u0275fac,providedIn:"root"}),Ap),$p=((wp=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"createMemberForCandidate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/c",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"createMemberForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/u",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"createMemberFromExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createMember/extSource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"createSpecificMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSpecificMember",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"createSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMember/withFullName",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"createSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMembers",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"createSponsoredMembersFromCSV",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/createSponsoredMembersFromCSV",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"deleteMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/deleteMember",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"deleteMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("members[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/deleteMembers",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"findCompleteRichMembersByAttributes",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new Jf({encoder:this.encoder});e&&e.forEach((function(e){o=o.append("attrsNames[]",e)})),null!=t&&(o=o.set("searchString",t)),i&&i.forEach((function(e){o=o.append("allowedStatuses[]",e)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/attrs",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(e,t,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var u=new Jf({encoder:this.encoder});null!=e&&(u=u.set("group",e)),t&&t.forEach((function(e){u=u.append("attrsNames[]",e)})),r&&r.forEach((function(e){u=u.append("allowedStatuses[]",e)})),o&&o.forEach((function(e){u=u.append("allowedGroupStatuses[]",e)})),null!=i&&(u=u.set("searchString",i)),null!=n&&(u=u.set("lookingInParentGroup",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/g",{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"findCompleteRichMembersForVo",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach((function(e){a=a.append("attrsNames[]",e)})),n&&n.forEach((function(e){a=a.append("allowedStatuses[]",e)})),null!=i&&(a=a.set("searchString",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/v",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"findMembersInVo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("searchString",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findMembersInVo",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach((function(e){a=a.append("attrsNames[]",e)})),null!=i&&(a=a.set("searchString",i)),null!=n&&(a=a.set("onlySponsored",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/findCompleteRichMembers/v-sponsored",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getAllNamespacesRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllNamespacesRules",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getAllSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllSponsoredMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getAllSponsoredMembersAndTheirSponsors",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getCompleteRichMembersForGroup",value:function(e,t,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new Jf({encoder:this.encoder});null!=e&&(s=s.set("group",e)),i&&i.forEach((function(e){s=s.append("allowedStatuses[]",e)})),n&&n.forEach((function(e){s=s.append("allowedGroupStatuses[]",e)})),null!=t&&(s=s.set("lookingInParentGroup",t)),r&&r.forEach((function(e){s=s.append("attrsNames[]",e)}));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/g",{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getCompleteRichMembersForGroupResource",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),i&&i.forEach((function(e){a=a.append("attrsNames[]",e)})),n&&n.forEach((function(e){a=a.append("allowedStatuses[]",e)}));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/g-r",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getCompleteRichMembersForVo",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach((function(e){o=o.append("allowedStatuses[]",e)})),i&&i.forEach((function(e){o=o.append("attrsNames[]",e)}));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getCompleteRichMembers/v",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("extLogin",t)),null!=i&&(o=o.set("extSourceName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberByExtSourceNameAndExtLogin",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getMemberByUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMemberByUser",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembers",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembers",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getMembersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersByUser",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersCount",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getMembersPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/getMembersPage",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"getMembersWithStatusCount",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getMembersCount/status",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMember",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichMemberWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMemberWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichMembersByIds",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new Jf({encoder:this.encoder});e&&e.forEach((function(e){r=r.append("ids[]",e)})),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getRichMembersByIds",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsoredMembers/v",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsoredMembersAndTheirSponsors",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByMember",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsors/member",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByVo",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("extSourceName",t)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach((function(e){a=a.append("attrNames[]",e)}));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/membersManager/getSponsors/vo",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"moveMembership",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("sourceUser",t)),null!=i&&(o=o.set("targetUser",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/moveMembership",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeSponsor",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("sponsor",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/removeSponsor",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendAccountActivationLinkEmail",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("namespace",t)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sendAccountActivationLinkEmail",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sendPasswordResetLinkEmail",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("namespace",t)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sendPasswordResetLinkEmail",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"setSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/membersManager/setSponsoredMember",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setSponsorshipForMember",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("sponsoredMember",e)),null!=t&&(o=o.set("sponsor",t)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/setSponsorshipForMember",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"setStatus",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/setStatus",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sponsorMember",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("sponsor",t)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/sponsorMember",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("sponsor",t)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/updateSponsorshipValidity",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"validateMemberAsync",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/membersManager/validateMemberAsync",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||wp)(ct(zp),ct(Vp,8),ct(Gp,8))},wp.\u0275prov=Ce({token:wp,factory:wp.\u0275fac,providedIn:"root"}),wp),eg=((bp=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"sentMessageToRTWithMemberQueue",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("memberId",e)),null!=t&&(a=a.set("queue",t)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sentMessageToRTWithQueue",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("queue",e)),null!=t&&(o=o.set("subject",t)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/q",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("voId",e)),null!=t&&(o=o.set("subject",t)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/v",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("voId",e)),null!=t&&(a=a.set("queue",t)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}}]),e}()).\u0275fac=function(e){return new(e||bp)(ct(zp),ct(Vp,8),ct(Gp,8))},bp.\u0275prov=Ce({token:bp,factory:bp.\u0275fac,providedIn:"root"}),bp),tg=((_p=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"addApplicationMailForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/addApplicationMail/g",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"addApplicationMailForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/addApplicationMail/v",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"approveApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/approveApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"consolidateIdentityUsingToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/consolidateIdentityUsingToken",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"copyFormFromGroupToGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/groupToGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromGroupToVo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/groupToVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/voToGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToVo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyForm/voToVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/groupToGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToVo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/groupToVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/voToGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToVo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/copyMails/voToVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createApplicationFormInGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/createApplicationForm/group",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"createApplicationFormInVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/createApplicationForm/vo",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"deleteApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"deleteApplicationMailForGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("id",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplicationMail/g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteApplicationMailForVo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("id",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/deleteApplicationMail/v",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getApplicationById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getApplicationDataById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationDataById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getApplicationMailsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationMails/g",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getApplicationMailsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationMails/v",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getApplicationsForGroup",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),t&&t.forEach((function(e){a=a.append("state[]",e)})),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForGroup",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getApplicationsForMember",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForMember",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getApplicationsForVo",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach((function(e){a=a.append("state[]",e)})),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationsForVo",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getConsolidatorToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getConsolidatorToken",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/group",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFormItemsForGroupWithType",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("type",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/group-type",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getFormItemsForVoWithType",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("type",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getFormItems/vo-type",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationForm/group",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVoApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/registrarManager/getApplicationForm/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"rejectApplication",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("id",e)),null!=t&&(r=r.set("reason",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/rejectApplication",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendInvitation",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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.");var a=new Jf({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("name",n)),null!=e&&(a=a.set("email",e)),null!=t&&(a=a.set("language",t));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sendInvitationForGroup",value:function(e,t,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new Jf({encoder:this.encoder});null!=i&&(s=s.set("voId",i)),null!=n&&(s=s.set("groupId",n)),null!=r&&(s=s.set("name",r)),null!=e&&(s=s.set("email",e)),null!=t&&(s=s.set("language",t));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/g",null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"sendInvitationGroupToExistingUser",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("userId",e)),null!=t&&(o=o.set("voId",t)),null!=i&&(o=o.set("groupId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/u-g",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("userId",e)),null!=t&&(r=r.set("voId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/sendInvitation/u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/sendMessage",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"setSendingEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/setSendingEnabled",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"submitApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/submitApplication",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateApplicationMail",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateApplicationMail",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateForm",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateFormItemData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItemData",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateFormItemsData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItemsData",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItems/group",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/registrarManager/updateFormItems/vo",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"verifyApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/registrarManager/verifyApplication",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||_p)(ct(zp),ct(Vp,8),ct(Gp,8))},_p.\u0275prov=Ce({token:_p,factory:_p.\u0275fac,providedIn:"root"}),_p),ig=((yp=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"addAdminToGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addAdmin/r-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addAdminToUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addAdmin/r-u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/addResourceSelfServiceUser",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignGroupToResource",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupToResource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignGroupToResources",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach((function(e){r=r.append("resources[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupToResources",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignGroupsToResource",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});e&&e.forEach((function(e){r=r.append("groups[]",e)})),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignGroupsToResource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignResourceTagToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/assignResourceTagToResource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"assignService",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignService",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServices",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach((function(e){r=r.append("services[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignServices",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServicesPackage",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/assignServicesPackage",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/copyResource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"createResource",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter name was null or undefined when calling createResource.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("facility",t)),null!=i&&(a=a.set("name",i)),null!=n&&(a=a.set("description",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/createResource",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"createResourceTagWithResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/createResourceTag/resourceTag",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"createResourceTagWithTagName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("tagName",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/createResourceTag/tagName",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteAllResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteAllResources",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"deleteAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"deleteResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/deleteResource",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"deleteResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/deleteResourceTag",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"getAdminGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAdminGroups",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAdmins",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("onlyDirectAdmins",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAdmins",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllResourcesByResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/getAllResourcesByResourceTag",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"getAllResourcesTagsForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllResourcesTagsForResource",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllResourcesTagsForVo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/all",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllowedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllowedResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAllowedUsersOfResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAllowedUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedGroups",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedResources/g",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedResources/m",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedRichMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichMembers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedRichResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/g",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedRichResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/m",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedRichResourcesWithMemberService",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedRichResources/s-m",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedServicesToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getAssignedServices",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getBansForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBansForMember",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getBansForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBansForResource",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getEnrichedResourceById",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("id",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourceById",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForFacility",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourcesForFacility",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForVo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getEnrichedResourcesForVo",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getFacility",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getResourceBan",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBan",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getResourceByName",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("facility",t)),null!=i&&(o=o.set("name",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourceByName",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getResourcesCountForAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesCount/all",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getResourcesCountForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesCount/vo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourcesWhereGroupIsAdmin",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin/group",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=i&&(o=o.set("user",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getResourcesWhereUserIsAdmin",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichAdmins",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),t&&t.forEach((function(e){a=a.append("specificAttributes",e)})),null!=i&&(a=a.set("allUserAttributes",i)),null!=n&&(a=a.set("onlyDirectAdmins",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichAdmins",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRichResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getRichResourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/resourcesManager/getVo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"removeAllResourceTagsFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"removeBanByMemberAndResource",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeBan/member-resource-id",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAdminResource",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAdmin/r-g",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResource",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupFromResource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResources",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach((function(e){r=r.append("resources[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupFromResources",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupsFromResource",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});e&&e.forEach((function(e){r=r.append("groups[]",e)})),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeGroupsFromResource",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeBan/id",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"removeResourceSelfServiceGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceSelfServiceUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceTagFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/removeResourceTagFromResource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"removeService",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeService",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServices",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach((function(e){r=r.append("services[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeServices",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServicesPackage",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeServicesPackage",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAdminResource",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/resourcesManager/removeAdmin/r-u",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/setBan",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateResource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateBan",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/resourcesManager/updateResourceTag",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||yp)(ct(zp),ct(Vp,8),ct(Gp,8))},yp.\u0275prov=Ce({token:yp,factory:yp.\u0275fac,providedIn:"root"}),yp),ng=((vp=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"addSpecificUserOwner",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/addSpecificUserOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addUserExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/addUserExtSource",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"changeNonAuthzPassword",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter i was null or undefined when calling changeNonAuthzPassword.");if(null==t)throw new Error("Required parameter m was null or undefined when calling changeNonAuthzPassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPassword.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("i",e)),null!=t&&(a=a.set("m",t)),null!=i&&(a=a.set("password",i)),null!=n&&(a=a.set("lang",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/changeNonAuthzPassword",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"changeNonAuthzPasswordByToken",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("token",e)),null!=t&&(o=o.set("password",t)),null!=i&&(o=o.set("lang",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/changeNonAuthzPassword/token",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordResetRequestIsValid/token",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"checkPasswordResetRequestIsValid",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter i was null or undefined when calling checkPasswordResetRequestIsValid.");if(null==t)throw new Error("Required parameter m was null or undefined when calling checkPasswordResetRequestIsValid.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("i",e)),null!=t&&(r=r.set("m",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordResetRequestIsValid",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"checkPasswordStrength",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("password",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/checkPasswordStrength",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createAlternativePassword",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("description",t)),null!=i&&(a=a.set("loginNamespace",i)),null!=n&&(a=a.set("password",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/createAlternativePassword",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"createServiceUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/createServiceUser",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"deleteAlternativePassword",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("loginNamespace",t)),null!=i&&(o=o.set("passwordId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/deleteAlternativePassword",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deleteUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/deleteUser",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findRichUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findRichUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"findRichUsersWithAttributes",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("searchString",e)),t&&t.forEach((function(e){r=r.append("attrsNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findRichUsersWithAttributes",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/findUsers",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getAssignedRichResourcesForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getAssignedRichResources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsActive/facility",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsActive/resource",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsAdmin/u-v",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getGroupsWhereUserIsAdmin/u",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getPendingPreferredEmailChanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getPendingPreferredEmailChanges",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUserExtSources/u",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichUserWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUserWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichUsersWithAttributesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersWithAttributesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("attrsNames[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getRichUsersWithoutVoWithAttributes",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getSpecificUsersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSpecificUsersByUser",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getSponsorsForMember",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach((function(e){r=r.append("attrNames[]",e)}));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSponsorsForMember/member",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("extSourceName",t)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach((function(e){a=a.append("attrNames[]",e)}));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getSponsorsForMember/vo",{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("extLogin",e)),null!=t&&(r=r.set("extSourceName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserByExtSourceNameAndExtLogin",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getUserExtSourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSourceById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSources",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getUserExtSourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUserExtSourcesByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUsersByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getUsersBySpecificUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("specificUser",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getUsersBySpecificUser",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVosWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getVosWhereUserIsAdmin",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVosWhereUserIsMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/usersManager/getVosWhereUserIsMember",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"removeSpecificUserOwner",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/removeSpecificUserOwner",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSource",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("userExtSource",t)),null!=i&&(o=o.set("force",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/removeUserExtSource",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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.");var a=new Jf({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("email",t)),null!=i&&(a=a.set("lang",i)),null!=n&&(a=a.set("linkPath",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/requestPreferredEmailChange",null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"reservePassword",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePassword.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("login",e)),null!=t&&(o=o.set("namespace",t)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/reservePassword",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/usersManager/updateUser",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"validatePreferredEmailChange",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter i was null or undefined when calling validatePreferredEmailChange.");if(null==t)throw new Error("Required parameter m was null or undefined when calling validatePreferredEmailChange.");if(null==i)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChange.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("i",e)),null!=t&&(o=o.set("m",t)),null!=i&&(o=o.set("u",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/usersManager/validatePreferredEmailChange",null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}}]),e}()).\u0275fac=function(e){return new(e||vp)(ct(zp),ct(Vp,8),ct(Gp,8))},vp.\u0275prov=Ce({token:vp,factory:vp.\u0275fac,providedIn:"root"}),vp),rg=((mp=function(){function e(t,i,n){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vf,this.configuration=new Gp,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new Kp}return w(e,[{key:"addSponsorRoleToGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addSponsorRole/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addSponsorRoleToUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addSponsorRole/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addAdmin/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/addAdmin/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithName",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("name",e)),null!=t&&(r=r.set("shortName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/createVo/withName",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/createVo/withVo",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"deleteVo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/deleteVo",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findCandidates",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("id",e)),null!=t&&(o=o.set("searchString",t)),null!=i&&(o=o.set("maxNumOfResults",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/findCandidates",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("searchString",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/findCandidates/forGroup",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAllVos",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getCompleteCandidatesForGroup",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach((function(e){o=o.append("attrNames[]",e)})),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getCompleteCandidates/forGroup",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach((function(e){o=o.append("attrNames[]",e)})),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getCompleteCandidates/forVo",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMyVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVos",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"getRichAdminsForVo",value:function(e,t,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var s=new Jf({encoder:this.encoder});null!=e&&(s=s.set("vo",e)),null!=t&&(s=s.set("role",t)),i&&i.forEach((function(e){s=s.append("specificAttributes",e)})),null!=n&&(s=s.set("allUserAttributes",n)),null!=r&&(s=s.set("onlyDirectAdmins",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getRichAdmins",{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getVoAdminGroups",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("role",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAdminGroups",{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAdminUsers",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var o=new Jf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("role",t)),null!=i&&(o=o.set("onlyDirectAdmins",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getAdmins",{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getVoBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBanById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBanForMember",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVoBansForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getBansForVo",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVoById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoById",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVoByShortName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("shortName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoByShortName",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVoMembersCountsByStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVoMembersCountsByStatus",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVosByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var n=new Jf({encoder:this.encoder});e&&e.forEach((function(e){n=n.append("ids[]",e)}));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVosByIds",{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"getVosCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/json/vosManager/getVosCount",{withCredentials:this.configuration.withCredentials,headers:i,observe:e,reportProgress:t})}},{key:"removeSponsorRoleFromGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeSponsorRole/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSponsorRoleFromUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeSponsorRole/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminGroup",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeAdmin/group",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminUser",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new Jf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeAdmin/user",null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeBan",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"removeVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var n=new Jf({encoder:this.encoder});null!=e&&(n=n.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(this.configuration.basePath+"/urlinjsonout/vosManager/removeBanForMember",null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:i})}},{key:"setVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/setBan",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}},{key:"updateVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/json/vosManager/updateVo",e,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||mp)(ct(zp),ct(Vp,8),ct(Gp,8))},mp.\u0275prov=Ce({token:mp,factory:mp.\u0275fac,providedIn:"root"}),mp);!function(e){e.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},e.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(Sp||(Sp={})),function(e){e.FormatEnum={DOT:"DOT",TGF:"TGF"}}(Tp||(Tp={})),function(e){e.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(Ep||(Ep={})),function(e){e.TypeEnum={Technical:"technical",Administrative:"administrative"}}(Lp||(Lp={}));var og,ag=((og=function(){function e(t){_(this,e),this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return w(e,[{key:"init",value:function(e){this.principal=e,this.initData(e)}},{key:"setPerunPolicies",value:function(e){this.perunPolicies=e}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(e,t){if(null===this.principal.roles)return!1;var i,n=[],r=s(this.fetchPolicyWithAllIncludedPolicies(e));try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n.concat(o.perunRoles)}}catch(u){r.e(u)}finally{r.f()}var a=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(n,a)}},{key:"resolveAuthorization",value:function(e,t){var i,n=s(e);try{for(n.s();!(i=n.n()).done;){for(var r=i.value,o=!0,a=0,u=Object.keys(r);a0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Cg;return function(t){return t.lift(new kg(e))}}var kg=function(){function e(t){_(this,e),this.errorFactory=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Mg(e,this.errorFactory))}}]),e}(),Mg=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).errorFactory=n,r.hasValue=!1,r}return w(i,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),i}(L);function Cg(){return new fg}function Sg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Tg(e))}}var Tg=function(){function e(t){_(this,e),this.defaultValue=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Eg(e,this.defaultValue))}}]),e}(),Eg=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).defaultValue=n,r.isEmpty=!0,r}return w(i,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(L);function Lg(e,t){return"function"==typeof t?function(i){return i.pipe(Lg((function(i,n){return te(e(i,n)).pipe(Q((function(e,r){return t(i,e,n,r)})))})))}:function(t){return t.lift(new zg(e))}}var zg=function(){function e(t){_(this,e),this.project=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new xg(e,this.project))}}]),e}(),xg=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).project=n,r.index=0,r}return w(i,[{key:"_next",value:function(e){var t,i=this.index++;try{t=this.project(e,i)}catch(n){return void this.destination.error(n)}this._innerSub(t,e,i)}},{key:"_innerSub",value:function(e,t,i){var n=this.innerSubscription;n&&n.unsubscribe();var r=new Y(this,t,i),o=this.destination;o.add(r),this.innerSubscription=X(this,e,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||h(y(i.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&h(y(i.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,i,n,r){this.destination.next(t)}}]),i}(J);function Dg(e){return function(t){return 0===e?gg():t.lift(new Rg(e))}}var Rg=function(){function e(t){if(_(this,e),this.total=t,this.total<0)throw new yg}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Og(e,this.total))}}]),e}(),Og=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).total=n,r.count=0,r}return w(i,[{key:"_next",value:function(e){var t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}]),i}(L);function Pg(){return vg()(Hf.apply(void 0,arguments))}function Ig(){for(var e=arguments.length,t=new Array(e),i=0;i=2&&(i=!0),function(n){return n.lift(new Fg(e,t,i))}}var Fg=function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_(this,e),this.accumulator=t,this.seed=i,this.hasSeed=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Bg(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Bg=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e)).accumulator=n,a._seed=r,a.hasSeed=o,a.index=0,a}return w(i,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,i=this.index++;try{t=this.accumulator(this.seed,e,i)}catch(n){this.destination.error(n)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),i}(L);function Hg(e){return function(t){var i=new qg(e),n=t.lift(i);return i.caught=n}}var qg=function(){function e(t){_(this,e),this.selector=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new jg(e,this.selector,this.caught))}}]),e}(),jg=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,e)).selector=n,o.caught=r,o}return w(i,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void h(y(i.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var n=new Y(this,void 0,void 0);this.add(n);var r=X(this,t,void 0,void 0,n);r!==n&&this.add(r)}}}]),i}(J);function Yg(e,t){var i=arguments.length>=2;return function(n){return n.pipe(e?jf((function(t,i){return e(t,i,n)})):D,Dg(1),i?Sg(t):Ag((function(){return new fg})))}}function Wg(){}function Ug(e,t,i){return function(n){return n.lift(new Kg(e,t,i))}}var Kg=function(){function e(t,i,n){_(this,e),this.nextOrObserver=t,this.error=i,this.complete=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Vg(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Vg=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e))._tapNext=Wg,a._tapError=Wg,a._tapComplete=Wg,a._tapError=r||Wg,a._tapComplete=o||Wg,u(n)?(a._context=m(a),a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||Wg,a._tapError=n.error||Wg,a._tapComplete=n.complete||Wg),a}return w(i,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),i}(L);function Gg(e){return function(t){return t.lift(new Xg(e))}}var Xg=function(){function e(t){_(this,e),this.callback=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Jg(e,this.callback))}}]),e}(),Jg=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).add(new S(n)),r}return i}(L),Qg=function e(t,i){_(this,e),this.id=t,this.url=i},Zg=function(e){d(i,e);var t=p(i);function i(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _(this,i),(r=t.call(this,e,n)).navigationTrigger=o,r.restoredState=a,r}return w(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(Qg),$g=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,e,n)).urlAfterRedirects=r,o}return w(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(Qg),em=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,e,n)).reason=r,o}return w(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(Qg),tm=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,e,n)).error=r,o}return w(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(Qg),im=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n)).urlAfterRedirects=r,a.state=o,a}return w(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(Qg),nm=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n)).urlAfterRedirects=r,a.state=o,a}return w(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(Qg),rm=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s;return _(this,i),(s=t.call(this,e,n)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return w(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(Qg),om=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n)).urlAfterRedirects=r,a.state=o,a}return w(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(Qg),am=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n)).urlAfterRedirects=r,a.state=o,a}return w(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(Qg),sm=function(){function e(t){_(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),um=function(){function e(t){_(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),cm=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),lm=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),hm=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),dm=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fm=function(){function e(t,i,n){_(this,e),this.routerEvent=t,this.position=i,this.anchor=n}return w(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),pm=function(){function e(t){_(this,e),this.params=t||{}}return w(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function gm(e){return new pm(e)}function mm(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function vm(e,t,i){var n=i.path.split("/");if(n.length>e.length)return null;if("full"===i.pathMatch&&(t.hasChildren()||n.length0?e[e.length-1]:null}function Am(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)}function km(e){return os(e)?e:rs(e)?te(Promise.resolve(e)):Hf(e)}function Mm(e,t,i){return i?function(e,t){return ym(e,t)}(e.queryParams,t.queryParams)&&function e(t,i){if(!Em(t.segments,i.segments))return!1;if(t.numberOfChildren!==i.numberOfChildren)return!1;for(var n in i.children){if(!t.children[n])return!1;if(!e(t.children[n],i.children[n]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(i){return _m(e[i],t[i])}))}(e.queryParams,t.queryParams)&&function e(t,i){return function t(i,n,r){if(i.segments.length>r.length)return!!Em(i.segments.slice(0,r.length),r)&&!n.hasChildren();if(i.segments.length===r.length){if(!Em(i.segments,r))return!1;for(var o in n.children){if(!i.children[o])return!1;if(!e(i.children[o],n.children[o]))return!1}return!0}var a=r.slice(0,i.segments.length),s=r.slice(i.segments.length);return!!Em(i.segments,a)&&!!i.children.primary&&t(i.children.primary,n,s)}(t,i,i.segments)}(e.root,t.root)}var Cm=function(){function e(t,i,n){_(this,e),this.root=t,this.queryParams=i,this.fragment=n}return w(e,[{key:"toString",value:function(){return Dm.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=gm(this.queryParams)),this._queryParamMap}}]),e}(),Sm=function(){function e(t,i){var n=this;_(this,e),this.segments=t,this.children=i,this.parent=null,Am(i,(function(e,t){return e.parent=n}))}return w(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Rm(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Tm=function(){function e(t,i){_(this,e),this.path=t,this.parameters=i}return w(e,[{key:"toString",value:function(){return Bm(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=gm(this.parameters)),this._parameterMap}}]),e}();function Em(e,t){return e.length===t.length&&e.every((function(e,i){return e.path===t[i].path}))}function Lm(e,t){var i=[];return Am(e.children,(function(e,n){"primary"===n&&(i=i.concat(t(e,n)))})),Am(e.children,(function(e,n){"primary"!==n&&(i=i.concat(t(e,n)))})),i}var zm=function e(){_(this,e)},xm=function(){function e(){_(this,e)}return w(e,[{key:"parse",value:function(e){var t=new Wm(e);return new Cm(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+function e(t,i){if(!t.hasChildren())return Rm(t);if(i){var n=t.children.primary?e(t.children.primary,!1):"",r=[];return Am(t.children,(function(t,i){"primary"!==i&&r.push("".concat(i,":").concat(e(t,!1)))})),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var o=Lm(t,(function(i,n){return"primary"===n?[e(t.children.primary,!1)]:["".concat(n,":").concat(e(i,!1))]}));return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Rm(t),"/").concat(o[0]):"".concat(Rm(t),"/(").concat(o.join("//"),")")}(e.root,!0)).concat((t=e.queryParams,i=Object.keys(t).map((function(e){var i=t[e];return Array.isArray(i)?i.map((function(t){return"".concat(Pm(e),"=").concat(Pm(t))})).join("&"):"".concat(Pm(e),"=").concat(Pm(i))})),i.length?"?"+i.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,i}}]),e}(),Dm=new xm;function Rm(e){return e.segments.map((function(e){return Bm(e)})).join("/")}function Om(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pm(e){return Om(e).replace(/%3B/gi,";")}function Im(e){return Om(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nm(e){return decodeURIComponent(e)}function Fm(e){return Nm(e.replace(/\+/g,"%20"))}function Bm(e){return"".concat(Im(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(Im(e),"=").concat(Im(t[e]))})).join("")));var t}var Hm=/^[^\/()?;=#]+/;function qm(e){var t=e.match(Hm);return t?t[0]:""}var jm=/^[^=?&#]+/,Ym=/^[^?&#]+/,Wm=function(){function e(t){_(this,e),this.url=t,this.remaining=t}return w(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Sm([],{}):new Sm([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i.primary=new Sm(e,t)),i}},{key:"parseSegment",value:function(){var e=qm(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Tm(Nm(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=qm(this.remaining);if(t){this.capture(t);var i="";if(this.consumeOptional("=")){var n=qm(this.remaining);n&&(i=n,this.capture(i))}e[Nm(t)]=Nm(i)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(jm);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var i="";if(this.consumeOptional("=")){var n=function(e){var t=e.match(Ym);return t?t[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var r=Fm(t),o=Fm(i);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=qm(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Sm([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Um=function(){function e(t){_(this,e),this._root=t}return w(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Km(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=Km(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Vm(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return Vm(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function Km(e,t){if(e===t.value)return t;var i,n=s(t.children);try{for(n.s();!(i=n.n()).done;){var r=Km(e,i.value);if(r)return r}}catch(o){n.e(o)}finally{n.f()}return null}function Vm(e,t){if(e===t.value)return[t];var i,n=s(t.children);try{for(n.s();!(i=n.n()).done;){var r=Vm(e,i.value);if(r.length)return r.unshift(t),r}}catch(o){n.e(o)}finally{n.f()}return[]}var Gm=function(){function e(t,i){_(this,e),this.value=t,this.children=i}return w(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Xm(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var Jm=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).snapshot=n,iv(m(r),e),r}return w(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(Um);function Qm(e,t){var i=function(e,t){var i=new ev([],{},{},"",{},"primary",t,null,e.root,-1,{});return new tv("",new Gm(i,[]))}(e,t),n=new ug([new Tm("",{})]),r=new ug({}),o=new ug({}),a=new ug({}),s=new ug(""),u=new Zm(n,r,a,s,o,"primary",t,i.root);return u.snapshot=i.root,new Jm(new Gm(u,[]),i)}var Zm=function(){function e(t,i,n,r,o,a,s,u){_(this,e),this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return w(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Q((function(e){return gm(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q((function(e){return gm(e)})))),this._queryParamMap}}]),e}();function $m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=e.pathFromRoot,n=0;if("always"!==t)for(n=i.length-1;n>=1;){var r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(i.slice(n))}var ev=function(){function e(t,i,n,r,o,a,s,u,c,l,h){_(this,e),this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return w(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=gm(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=gm(this.queryParams)),this._queryParamMap}}]),e}(),tv=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,n)).url=e,iv(m(r),n),r}return w(i,[{key:"toString",value:function(){return nv(this._root)}}]),i}(Um);function iv(e,t){t.value._routerState=e,t.children.forEach((function(t){return iv(e,t)}))}function nv(e){var t=e.children.length>0?" { ".concat(e.children.map(nv).join(", ")," } "):"";return"".concat(e.value).concat(t)}function rv(e){if(e.snapshot){var t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,ym(t.queryParams,i.queryParams)||e.queryParams.next(i.queryParams),t.fragment!==i.fragment&&e.fragment.next(i.fragment),ym(t.params,i.params)||e.params.next(i.params),function(e,t){if(e.length!==t.length)return!1;for(var i=0;i0&&av(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(r&&r!==wm(n))throw new Error("{outlets:{}} has to be the last command")}return w(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),cv=function e(t,i,n){_(this,e),this.segmentGroup=t,this.processChildren=i,this.index=n};function lv(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:""+e}function hv(e,t,i){if(e||(e=new Sm([],{})),0===e.segments.length&&e.hasChildren())return dv(e,t,i);var n=function(e,t,i){for(var n=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=i.length)return o;var a=e.segments[r],s=lv(i[n]),u=n0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!mv(s,u,a))return o;n+=2}else{if(!mv(s,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(e,t,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex0?new Sm([],{primary:e}):e;return new Cm(n,t,i)}},{key:"expandSegmentGroup",value:function(e,t,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(e,t,i).pipe(Q((function(e){return new Sm([],e)}))):this.expandSegment(e,i,t,i.segments,n,!0)}},{key:"expandChildren",value:function(e,t,i){var n=this;return function(i,r){if(0===Object.keys(i).length)return Hf({});var o=[],a=[],s={};return Am(i,(function(i,r){var u,c,l=(u=r,c=i,n.expandSegmentGroup(e,t,c,u)).pipe(Q((function(e){return s[r]=e})));"primary"===r?o.push(l):a.push(l)})),Hf.apply(null,o.concat(a)).pipe(vg(),function(e,t){var i=arguments.length>=2;return function(n){return n.pipe(e?jf((function(t,i){return e(t,i,n)})):D,_g(1),i?Sg(t):Ag((function(){return new fg})))}}(),Q((function(){return s})))}(i.children)}},{key:"expandSegment",value:function(e,t,i,n,r,a){var s=this;return Hf.apply(void 0,o(i)).pipe(qf((function(o){return s.expandSegmentAgainstRoute(e,t,i,o,n,r,a).pipe(Hg((function(e){if(e instanceof Mv)return Hf(null);throw e})))})),Yg((function(e){return!!e})),Hg((function(e,i){if(e instanceof fg||"EmptyError"===e.name){if(s.noLeftoversInUrl(t,n,r))return Hf(new Sm([],{}));throw new Mv(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,i){return 0===t.length&&!e.children[i]}},{key:"expandSegmentAgainstRoute",value:function(e,t,i,n,r,o,a){return Rv(n)!==o?Sv(t):void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,t,n,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,i,n,r,o):Sv(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,i,n,r,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,n,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,i,n){var r=this,o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Tv(o):this.lineralizeSegments(i,o).pipe(ie((function(i){var o=new Sm(i,{});return r.expandSegment(e,o,t,i,n,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,i,n,r,o){var a=this,s=zv(t,n,r),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return Sv(t);var d=this.applyRedirectCommands(c,n.redirectTo,h);return n.redirectTo.startsWith("/")?Tv(d):this.lineralizeSegments(n,d).pipe(ie((function(n){return a.expandSegment(e,t,i,n.concat(r.slice(l)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,i,n){var r=this;if("**"===i.path)return i.loadChildren?this.configLoader.load(e.injector,i).pipe(Q((function(e){return i._loadedConfig=e,new Sm(n,{})}))):Hf(new Sm(n,{}));var o=zv(t,i,n),a=o.matched,u=o.consumedSegments,c=o.lastChild;if(!a)return Sv(t);var l=n.slice(c);return this.getChildConfig(e,i,n).pipe(ie((function(e){var i=e.module,n=e.routes,o=function(e,t,i,n){return i.length>0&&function(e,t,i){return i.some((function(i){return Dv(e,t,i)&&"primary"!==Rv(i)}))}(e,i,n)?{segmentGroup:xv(new Sm(t,function(e,t){var i={};i.primary=t;var n,r=s(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;""===o.path&&"primary"!==Rv(o)&&(i[Rv(o)]=new Sm([],{}))}}catch(a){r.e(a)}finally{r.f()}return i}(n,new Sm(i,e.children)))),slicedSegments:[]}:0===i.length&&function(e,t,i){return i.some((function(i){return Dv(e,t,i)}))}(e,i,n)?{segmentGroup:xv(new Sm(e.segments,function(e,t,i,n){var r,o={},a=s(i);try{for(a.s();!(r=a.n()).done;){var u=r.value;Dv(e,t,u)&&!n[Rv(u)]&&(o[Rv(u)]=new Sm([],{}))}}catch(c){a.e(c)}finally{a.f()}return Object.assign(Object.assign({},n),o)}(e,i,n,e.children))),slicedSegments:i}:{segmentGroup:e,slicedSegments:i}}(t,u,l,n),a=o.segmentGroup,c=o.slicedSegments;return 0===c.length&&a.hasChildren()?r.expandChildren(i,n,a).pipe(Q((function(e){return new Sm(u,e)}))):0===n.length&&0===c.length?Hf(new Sm(u,{})):r.expandSegment(i,a,n,c,"primary",!0).pipe(Q((function(e){return new Sm(u.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,i){var n=this;return t.children?Hf(new _v(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Hf(t._loadedConfig):this.runCanLoadGuards(e.injector,t,i).pipe(ie((function(i){return i?n.configLoader.load(e.injector,t).pipe(Q((function(e){return t._loadedConfig=e,e}))):function(e){return new O((function(t){return t.error(mm("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Hf(new _v([],e))}},{key:"runCanLoadGuards",value:function(e,t,i){var n=this,r=t.canLoad;return r&&0!==r.length?Hf(r.map((function(n){var r,o=e.get(n);if(function(e){return e&&bv(e.canLoad)}(o))r=o.canLoad(t,i);else{if(!bv(o))throw new Error("Invalid CanLoad guard");r=o(t,i)}return km(r)}))).pipe(kv(),Ug((function(e){if(wv(e)){var t=mm('Redirecting to "'.concat(n.urlSerializer.serialize(e),'"'));throw t.url=e,t}})),Q((function(e){return!0===e}))):Hf(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var i=[],n=t.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Hf(i);if(n.numberOfChildren>1||!n.children.primary)return Ev(e.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,i){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,i)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,i,n){var r=this.createSegmentGroup(e,t.root,i,n);return new Cm(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var i={};return Am(e,(function(e,n){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);i[n]=t[r]}else i[n]=e})),i}},{key:"createSegmentGroup",value:function(e,t,i,n){var r=this,o=this.createSegments(e,t.segments,i,n),a={};return Am(t.children,(function(t,o){a[o]=r.createSegmentGroup(e,t,i,n)})),new Sm(o,a)}},{key:"createSegments",value:function(e,t,i,n){var r=this;return t.map((function(t){return t.path.startsWith(":")?r.findPosParam(e,t,n):r.findOrReturn(t,i)}))}},{key:"findPosParam",value:function(e,t,i){var n=i[t.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return n}},{key:"findOrReturn",value:function(e,t){var i,n=0,r=s(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.path===e.path)return t.splice(n),o;n++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function zv(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(t.matcher||vm)(i,e,t);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function xv(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Sm(e.segments.concat(t.segments),t.children)}return e}function Dv(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function Rv(e){return e.outlet||"primary"}var Ov=function e(t){_(this,e),this.path=t,this.route=this.path[this.path.length-1]},Pv=function e(t,i){_(this,e),this.component=t,this.route=i};function Iv(e,t,i){var n=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var i=t.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(t);return(n?n.module.injector:i).get(e)}function Nv(e,t,i){var n=Xm(e),r=e.value;Am(n,(function(e,n){Nv(e,r.component?t?t.children.getContext(n):null:t,i)})),i.canDeactivateChecks.push(new Pv(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Fv(e,t){return null!==e&&t&&t(new hm(e)),Hf(!0)}function Bv(e,t){return null!==e&&t&&t(new cm(e)),Hf(!0)}function Hv(e,t,i){var n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Hf(n.map((function(n){return mg((function(){var r,o=Iv(n,t,i);if(function(e){return e&&bv(e.canActivate)}(o))r=km(o.canActivate(t,e));else{if(!bv(o))throw new Error("Invalid CanActivate guard");r=km(o(t,e))}return r.pipe(Yg())}))}))).pipe(kv()):Hf(!0)}function qv(e,t,i){var n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return mg((function(){return Hf(t.guards.map((function(r){var o,a=Iv(r,t.node,i);if(function(e){return e&&bv(e.canActivateChild)}(a))o=km(a.canActivateChild(n,e));else{if(!bv(a))throw new Error("Invalid CanActivateChild guard");o=km(a(n,e))}return o.pipe(Yg())}))).pipe(kv())}))}));return Hf(r).pipe(kv())}var jv=function e(){_(this,e)},Yv=function(){function e(t,i,n,r,o,a){_(this,e),this.rootComponentType=t,this.config=i,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return w(e,[{key:"recognize",value:function(){try{var e=Kv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),i=new ev([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Gm(i,t),r=new tv(this.url,n);return this.inheritParamsAndData(r._root),Hf(r)}catch(o){return new O((function(e){return e.error(o)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,i=e.value,n=$m(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,i){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,i)}},{key:"processChildren",value:function(e,t){var i,n=this,r=Lm(t,(function(t,i){return n.processSegmentGroup(e,t,i)}));return i={},r.forEach((function(e){var t=i[e.value.outlet];if(t){var n=t.url.map((function(e){return e.toString()})).join("/"),r=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(n,"' and '").concat(r,"'."))}i[e.value.outlet]=e.value})),r.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),r}},{key:"processSegment",value:function(e,t,i,n){var r,o=s(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;try{return this.processSegmentAgainstRoute(a,t,i,n)}catch(u){if(!(u instanceof jv))throw u}}}catch(c){o.e(c)}finally{o.f()}if(this.noLeftoversInUrl(t,i,n))return[];throw new jv}},{key:"noLeftoversInUrl",value:function(e,t,i){return 0===t.length&&!e.children[i]}},{key:"processSegmentAgainstRoute",value:function(e,t,i,n){if(e.redirectTo)throw new jv;if((e.outlet||"primary")!==n)throw new jv;var r,o=[],a=[];if("**"===e.path){var s=i.length>0?wm(i).parameters:{};r=new ev(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xv(e),n,e.component,e,Wv(t),Uv(t)+i.length,Jv(e))}else{var u=function(e,t,i){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||i.length>0))throw new jv;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(t.matcher||vm)(i,e,t);if(!n)throw new jv;var r={};Am(n.posParams,(function(e,t){r[t]=e.path}));var o=n.consumed.length>0?Object.assign(Object.assign({},r),n.consumed[n.consumed.length-1].parameters):r;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:o}}(t,e,i);o=u.consumedSegments,a=i.slice(u.lastChild),r=new ev(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xv(e),n,e.component,e,Wv(t),Uv(t)+o.length,Jv(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=Kv(t,o,a,c,this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new Gm(r,f)]}if(0===c.length&&0===d.length)return[new Gm(r,[])];var p=this.processSegment(c,h,d,"primary");return[new Gm(r,p)]}}]),e}();function Wv(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Uv(e){for(var t=e,i=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)i+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return i-1}function Kv(e,t,i,n,r){if(i.length>0&&function(e,t,i){return i.some((function(i){return Vv(e,t,i)&&"primary"!==Gv(i)}))}(e,i,n)){var o=new Sm(t,function(e,t,i,n){var r={};r.primary=n,n._sourceSegment=e,n._segmentIndexShift=t.length;var o,a=s(i);try{for(a.s();!(o=a.n()).done;){var u=o.value;if(""===u.path&&"primary"!==Gv(u)){var c=new Sm([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,r[Gv(u)]=c}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,n,new Sm(i,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===i.length&&function(e,t,i){return i.some((function(i){return Vv(e,t,i)}))}(e,i,n)){var a=new Sm(e.segments,function(e,t,i,n,r,o){var a,u={},c=s(n);try{for(c.s();!(a=c.n()).done;){var l=a.value;if(Vv(e,i,l)&&!r[Gv(l)]){var h=new Sm([],{});h._sourceSegment=e,h._segmentIndexShift="legacy"===o?e.segments.length:t.length,u[Gv(l)]=h}}}catch(d){c.e(d)}finally{c.f()}return Object.assign(Object.assign({},r),u)}(e,t,i,n,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:i}}var u=new Sm(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:i}}function Vv(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function Gv(e){return e.outlet||"primary"}function Xv(e){return e.data||{}}function Jv(e){return e.resolve||{}}function Qv(e){return function(t){return t.pipe(Lg((function(t){var i=e(t);return i?te(i).pipe(Q((function(){return t}))):te([t])})))}}var Zv,$v=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return i}(function(){function e(){_(this,e)}return w(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),ey=((Zv=function e(){_(this,e)}).\u0275fac=function(e){return new(e||Zv)},Zv.\u0275cmp=Lt({type:Zv,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&$a(0,"router-outlet")},directives:function(){return[Cy]},encapsulation:2}),Zv);function ty(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=0;i4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Yv(e,t,i,n,r,o).recognize()}(e,i,n.urlAfterRedirects,(a=n.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(Q((function(e){return Object.assign(Object.assign({},n),{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Ug((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Ug((function(e){var n=new im(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);i.next(n)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,c=e.extractedUrl,l=e.source,h=e.restoredState,d=e.extras,f=new Zg(u,t.serializeUrl(c),l,h);i.next(f);var p=Qm(c,t.rootComponentType).snapshot;return Hf(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:c,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),pg})),Qv((function(e){var i=e.targetSnapshot,n=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),Ug((function(e){var i=new nm(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})),Q((function(e){return Object.assign(Object.assign({},e),{guards:(i=e.targetSnapshot,n=e.currentSnapshot,r=t.rootContexts,o=i._root,function e(t,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Xm(i);return t.children.forEach((function(t){!function(t,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=i?i.value:null,u=n?n.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var c=function(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!Em(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Em(e.url,t.url)||!ym(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ov(e,t)||!ym(e.queryParams,t.queryParams);case"paramsChange":default:return!ov(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Ov(r)):(a.data=s.data,a._resolvedData=s._resolvedData),e(t,i,a.component?u?u.children:null:n,r,o),c&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new Pv(u.outlet.component,s))}else s&&Nv(i,u,o),o.canActivateChecks.push(new Ov(r)),e(t,null,a.component?u?u.children:null:n,r,o)}(t,a[t.value.outlet],n,r.concat([t.value]),o),delete a[t.value.outlet]})),Am(a,(function(e,t){return Nv(e,n.getContext(t),o)})),o}(o,n?n._root:null,r,[o.value]))});var i,n,r,o})),function(e,t){return function(i){return i.pipe(ie((function(i){var n=i.targetSnapshot,r=i.currentSnapshot,o=i.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Hf(Object.assign(Object.assign({},i),{guardsResult:!0})):function(e,t,i,n){return te(e).pipe(ie((function(e){return function(e,t,i,n,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Hf(o.map((function(o){var a,s=Iv(o,t,r);if(function(e){return e&&bv(e.canDeactivate)}(s))a=km(s.canDeactivate(e,t,i,n));else{if(!bv(s))throw new Error("Invalid CanDeactivate guard");a=km(s(e,t,i,n))}return a.pipe(Yg())}))).pipe(kv()):Hf(!0)}(e.component,e.route,i,t,n)})),Yg((function(e){return!0!==e}),!0))}(s,n,r,e).pipe(ie((function(i){return i&&"boolean"==typeof i?function(e,t,i,n){return te(t).pipe(qf((function(t){return te([Bv(t.route.parent,n),Fv(t.route,n),qv(e,t.path,i),Hv(e,t.route,i)]).pipe(vg(),Yg((function(e){return!0!==e}),!0))})),Yg((function(e){return!0!==e}),!0))}(n,a,e,t):Hf(i)})),Q((function(e){return Object.assign(Object.assign({},i),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Ug((function(e){if(wv(e.guardsResult)){var i=mm('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw i.url=e.guardsResult,i}})),Ug((function(e){var i=new rm(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)})),jf((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var n=new em(e.id,t.serializeUrl(e.extractedUrl),"");return i.next(n),e.resolve(!1),!1}return!0})),Qv((function(e){if(e.guards.canActivateChecks.length)return Hf(e).pipe(Ug((function(e){var i=new om(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})),Lg((function(e){var n,r,o=!1;return Hf(e).pipe((n=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(ie((function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;if(!i.length)return Hf(e);var o=0;return te(i).pipe(qf((function(e){return function(e,t,i,n){return function(e,t,i,n){var r=Object.keys(e);if(0===r.length)return Hf({});var o={};return te(r).pipe(ie((function(r){return function(e,t,i,n){var r=Iv(e,t,n);return km(r.resolve?r.resolve(t,i):r(t,i))}(e[r],t,i,n).pipe(Ug((function(e){o[r]=e})))})),_g(1),ie((function(){return Object.keys(o).length===r.length?Hf(o):pg})))}(e._resolve,e,t,n).pipe(Q((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),$m(e,i).resolve),null})))}(e.route,t,n,r)})),Ug((function(){return o++})),_g(1),ie((function(t){return o===i.length?Hf(e):pg})))})))}),Ug({next:function(){return o=!0},complete:function(){if(!o){var n=new em(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");i.next(n),e.resolve(!1)}}}))})),Ug((function(e){var i=new am(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})))})),Qv((function(e){var i=e.targetSnapshot,n=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),Q((function(e){var i=function(e,t,i){var n=function e(t,i,n){if(n&&t.shouldReuseRoute(i.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=i.value;var o=function(t,i,n){return i.children.map((function(i){var r,o=s(n.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(t.shouldReuseRoute(a.value.snapshot,i.value))return e(t,i,a)}}catch(u){o.e(u)}finally{o.f()}return e(t,i)}))}(t,i,n);return new Gm(r,o)}var a=t.retrieve(i.value);if(a){var u=a.route;return function e(t,i){if(t.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=t.value;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.relativeTo,n=t.queryParams,r=t.fragment,a=t.preserveQueryParams,s=t.queryParamsHandling,u=t.preserveFragment;Gn()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=i||this.routerState.root,l=u?this.currentUrlTree.fragment:r,h=null;if(s)switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=a?this.currentUrlTree.queryParams:n||null;return null!==h&&(h=this.removeEmptyProps(h)),function(e,t,i,n,r){if(0===i.length)return sv(t.root,t.root,t,n,r);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new uv(!0,0,e);var t=0,i=!1,n=e.reduce((function(e,n,r){if("object"==typeof n&&null!=n){if(n.outlets){var a={};return Am(n.outlets,(function(e,t){a[t]="string"==typeof e?e.split("/"):e})),[].concat(o(e),[{outlets:a}])}if(n.segmentPath)return[].concat(o(e),[n.segmentPath])}return"string"!=typeof n?[].concat(o(e),[n]):0===r?(n.split("/").forEach((function(n,r){0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?t++:""!=n&&e.push(n))})),e):[].concat(o(e),[n])}),[]);return new uv(i,t,n)}(i);if(a.toRoot())return sv(t.root,new Sm([],{}),t,n,r);var s=function(e,t,i){if(e.isAbsolute)return new cv(t.root,!0,0);if(-1===i.snapshot._lastPathIndex){var n=i.snapshot._urlSegment;return new cv(n,n===t.root,0)}var r=av(e.commands[0])?0:1;return function(e,t,i){for(var n=e,r=t,o=i;o>r;){if(o-=r,!(n=n.parent))throw new Error("Invalid number of '../'");r=n.segments.length}return new cv(n,!1,r-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,t,e),u=s.processChildren?dv(s.segmentGroup,s.index,a.commands):hv(s.segmentGroup,s.index,a.commands);return sv(s.segmentGroup,u,t,n,r)}(c,this.currentUrlTree,e,h,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Gn()&&this.isNgZoneEnabled&&!Xc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var i=wv(e)?e:this.parseUrl(e),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.router=t,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return w(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Zg?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof $g&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof fm&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new fm(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Ay)(ct(my),ct(Xd),ct(void 0))},Ay.\u0275prov=Ce({token:Ay,factory:Ay.\u0275fac}),Ay),Dy=new et("ROUTER_CONFIGURATION"),Ry=new et("ROUTER_FORROOT_GUARD"),Oy=[Vl,{provide:zm,useClass:xm},{provide:my,useFactory:function(e,t,i,n,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new my(null,e,t,i,n,r,o,bm(a));if(u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),s.errorHandler&&(l.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(l.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=Cl();l.events.subscribe((function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(l.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(l.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(l.relativeLinkResolution=s.relativeLinkResolution),l},deps:[zm,uy,Vl,Ca,ml,Kc,oy,Dy,[function(){return function e(){_(this,e)}}(),new _e],[function(){return function e(){_(this,e)}}(),new _e]]},uy,{provide:Zm,useFactory:function(e){return e.routerState.root},deps:[my]},{provide:ml,useClass:_l},zy,Ly,Ey,{provide:Dy,useValue:{enableTracing:!1}}];function Py(){return new ul("Router",my)}var Iy,Ny=((Iy=function(){function e(t,i){_(this,e)}return w(e,null,[{key:"forRoot",value:function(t,i){return{ngModule:e,providers:[Oy,qy(t),{provide:Ry,useFactory:Hy,deps:[[my,new _e,new we]]},{provide:Dy,useValue:i||{}},{provide:Bl,useFactory:By,deps:[El,[new ye(Wl),new _e],Dy]},{provide:xy,useFactory:Fy,deps:[my,Xd,Dy]},{provide:Ty,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Ly},{provide:ul,multi:!0,useFactory:Py},[Yy,{provide:Ec,multi:!0,useFactory:Wy,deps:[Yy]},{provide:Vy,useFactory:Uy,deps:[Yy]},{provide:Pc,multi:!0,useExisting:Vy}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[qy(t)]}}}]),e}()).\u0275mod=Rt({type:Iy}),Iy.\u0275inj=Se({factory:function(e){return new(e||Iy)(ct(Ry,8),ct(my,8))}}),Iy);function Fy(e,t,i){return i.scrollOffset&&t.setOffset(i.scrollOffset),new xy(e,t,i)}function By(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new Kl(e,t):new Ul(e,t)}function Hy(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function qy(e){return[{provide:Sa,multi:!0,useValue:e},{provide:oy,multi:!0,useValue:e}]}var jy,Yy=((jy=function(){function e(t){_(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new H}return w(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(xl,Promise.resolve(null)).then((function(){var t=null,i=new Promise((function(e){return t=e})),n=e.injector.get(my),r=e.injector.get(Dy);if(e.isLegacyDisabled(r)||e.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));n.hooks.afterPreactivation=function(){return e.initNavigation?Hf(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},n.initialNavigation()}return i}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Dy),i=this.injector.get(zy),n=this.injector.get(xy),r=this.injector.get(my),o=this.injector.get(pl);e===o.components[0]&&(this.isLegacyEnabled(t)?r.initialNavigation():this.isLegacyDisabled(t)&&r.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}()).\u0275fac=function(e){return new(e||jy)(ct(Ca))},jy.\u0275prov=Ce({token:jy,factory:jy.\u0275fac}),jy);function Wy(e){return e.appInitializer.bind(e)}function Uy(e){return e.bootstrapListener.bind(e)}var Ky,Vy=new et("Router Initializer"),Gy=((Ky=function(){function e(){_(this,e)}return w(e,[{key:"setInstanceConfig",value:function(e){this.instanceConfig=e}},{key:"setDefaultConfig",value:function(e){this.defaultConfig=e}},{key:"setPerunPrincipal",value:function(e){this.principal=e}},{key:"getPerunPrincipal",value:function(){return this.principal}},{key:"getInitialPageId",value:function(){return this.initialPageId}},{key:"setInitialPageId",value:function(e){this.initialPageId=e}},{key:"getLoginAttributeNames",value:function(){return this.get("login_namespace_attributes")}},{key:"getMemberProfileAttributeNames",value:function(){return this.get("member_profile_attributes_friendly_names")}},{key:"skipOidc",value:function(){return this.get("skip_oidc")}},{key:"get",value:function(){for(var e,t=arguments.length,i=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return Qy(e)?Number(e):t}function Qy(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Zy(e){return Array.isArray(e)?e:[e]}function $y(e){return null==e?"":"string"==typeof e?e:e+"px"}function e_(e){return e instanceof nu?e.nativeElement:e}function t_(e,t,i,n){return u(i)&&(n=i,i=void 0),n?t_(e,t,i).pipe(Q((function(e){return A(e)?n.apply(void 0,o(e)):n(e)}))):new O((function(n){!function e(t,i,n,r,o){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(i,n,o),a=function(){return s.removeEventListener(i,n,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var u=t;t.on(i,n),a=function(){return u.off(i,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var c=t;t.addListener(i,n),a=function(){return c.removeListener(i,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l1?Array.prototype.slice.call(arguments):e)}),n,i)}))}var i_=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e,n)).scheduler=e,r.work=n,r.pending=!1,r}return w(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),i)}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var i=!1,n=void 0;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,i=t.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),i}(function(e){d(i,e);var t=p(i);function i(e,n){return _(this,i),t.call(this)}return w(i,[{key:"schedule",value:function(e){return this}}]),i}(S)),n_=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e,n)).scheduler=e,r.work=n,r}return w(i,[{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?h(y(i.prototype),"requestAsyncId",this).call(this,e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return h(y(i.prototype),"recycleAsyncId",this).call(this,e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),i}(i_),r_=function(){var e=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_(this,e),this.SchedulerAction=t,this.now=i}return w(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(i,t)}}]),e}();return e.now=function(){return Date.now()},e}(),o_=function(e){d(i,e);var t=p(i);function i(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r_.now;return _(this,i),(n=t.call(this,e,(function(){return i.delegate&&i.delegate!==m(n)?i.delegate.now():r()}))).actions=[],n.active=!1,n.scheduled=void 0,n}return w(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):h(y(i.prototype),"schedule",this).call(this,e,t,n)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}}]),i}(r_),a_=new(function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,i=this.actions,n=-1,r=i.length;e=e||i.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?h(y(i.prototype),"requestAsyncId",this).call(this,e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=h_(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return h(y(i.prototype),"recycleAsyncId",this).call(this,e,t,n);0===e.actions.length&&(d_(t),e.scheduled=void 0)}}]),i}(i_),p_=new(function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,i=this.actions,n=-1,r=i.length;e=e||i.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n=0}function k_(e){var t=e.index,i=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===i)return n.complete();e.index=t+1,this.schedule(e,i)}}function M_(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:__;return t=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=-1;return A_(t)?n=Number(t)<1?1:Number(t):j(t)&&(i=t),j(i)||(i=__),new O((function(t){var r=A_(e)?e:+e-i.now();return i.schedule(k_,r,{index:0,period:n,subscriber:t})}))}(e,i)},function(e){return e.lift(new b_(t))}}function C_(e){return function(t){return t.lift(new S_(e))}}var S_=function(){function e(t){_(this,e),this.notifier=t}return w(e,[{key:"call",value:function(e,t){var i=new T_(e),n=X(i,this.notifier);return n&&!i.seenValue?(i.add(n),t.subscribe(i)):i}}]),e}(),T_=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this,e)).seenValue=!1,n}return w(i,[{key:"notifyNext",value:function(e,t,i,n,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),i}(J),E_=function(){function e(){_(this,e)}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new L_(e))}}]),e}(),L_=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this,e)).hasPrev=!1,n}return w(i,[{key:"_next",value:function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}]),i}(L),z_=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e,n)).scheduler=e,r.work=n,r}return w(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?h(y(i.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?h(y(i.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0||null===n&&this.delay>0?h(y(i.prototype),"requestAsyncId",this).call(this,e,t,n):e.flush(this)}}]),i}(i_),x_=new(function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return i}(o_))(z_);function D_(e,t){return new O(t?function(i){return t.schedule(R_,0,{error:e,subscriber:i})}:function(t){return t.error(e)})}function R_(e){var t=e.error;e.subscriber.error(t)}var O_,P_,I_=((P_=function(){function e(t,i,n){_(this,e),this.kind=t,this.value=i,this.error=n,this.hasValue="N"===t}return w(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}},{key:"accept",value:function(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Hf(this.value);case"E":return D_(this.error);case"C":return gg()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new P_("C"),P_.undefinedValueNotification=new P_("N",void 0),P_),N_=function(e){d(i,e);var t=p(i);function i(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _(this,i),(r=t.call(this,e)).scheduler=n,r.delay=o,r}return w(i,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new F_(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(I_.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(I_.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(I_.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,i=e.destination;t.observe(i),this.unsubscribe()}}]),i}(L),F_=function e(t,i){_(this,e),this.notification=t,this.destination=i},B_=function(e){d(i,e);var t=p(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return _(this,i),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return w(i,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),h(y(i.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new H_(this._getNow(),e)),this._trimBufferThenGetEvents(),h(y(i.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;if(this.closed)throw new N;if(this.isStopped||this.hasError?t=S.EMPTY:(this.observers.push(e),t=new F(this,e)),r&&e.add(e=new N_(e,r)),i)for(var a=0;at&&(o=Math.max(o,r-t)),o>0&&n.splice(0,o),n}}]),i}(H),H_=function e(t,i){_(this,e),this.time=t,this.value=i};function q_(e,t,i){var n;return n=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:i},function(e){return e.lift(function(e){var t,i,n=e.bufferSize,r=void 0===n?Number.POSITIVE_INFINITY:n,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,c=0,l=!1,h=!1;return function(e){c++,t&&!l||(l=!1,t=new B_(r,a,u),i=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){h=!0,i=void 0,t.complete()}}));var n=t.subscribe(this);this.add((function(){c--,n.unsubscribe(),i&&!h&&s&&0===c&&(i.unsubscribe(),i=void 0,t=void 0)}))}}(n))}}try{O_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Q7){O_=!1}var j_,Y_,W_,U_,K_,V_,G_=((W_=function e(t){_(this,e),this._platformId=t,this.isBrowser=this._platformId?Kd(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&&!O_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(e){return new(e||W_)(ct(Oc,8))},W_.\u0275prov=Ce({factory:function(){return new W_(ct(Oc,8))},token:W_,providedIn:"root"}),W_),X_=((Y_=function e(){_(this,e)}).\u0275mod=Rt({type:Y_}),Y_.\u0275inj=Se({factory:function(e){return new(e||Y_)}}),Y_),J_=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Q_(){if(j_)return j_;if("object"!=typeof document||!document)return j_=new Set(J_);var e=document.createElement("input");return j_=new Set(J_.filter((function(t){return e.setAttribute("type",t),e.type===t})))}function Z_(e){return function(){if(null==U_&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return U_=!0}}))}finally{U_=U_||!1}return U_}()?e:!!e.capture}function $_(){if("object"!=typeof document||!document)return 0;if(null==K_){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",e.appendChild(i),document.body.appendChild(e),K_=0,0===e.scrollLeft&&(e.scrollLeft=1,K_=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return K_}function eb(e){if(function(){if(null==V_){var e="undefined"!=typeof document?document.head:null;V_=!(!e||!e.createShadowRoot&&!e.attachShadow)}return V_}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var tb,ib,nb,rb=new et("cdk-dir-doc",{providedIn:"root",factory:function(){return lt(Tl)}}),ob=((nb=function(){function e(t){if(_(this,e),this.value="ltr",this.change=new rc,t){var i=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||i;this.value="ltr"===n||"rtl"===n?n:"ltr"}}return w(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||nb)(ct(rb,8))},nb.\u0275prov=Ce({factory:function(){return new nb(ct(rb,8))},token:nb,providedIn:"root"}),nb),ab=((ib=function(){function e(){_(this,e),this._dir="ltr",this._isInitialized=!1,this.change=new rc}return w(e,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(e){var t=this._dir,i=e?e.toLowerCase():e;this._rawDir=e,this._dir="ltr"===i||"rtl"===i?i:"ltr",t!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),e}()).\u0275fac=function(e){return new(e||ib)},ib.\u0275dir=Pt({type:ib,selectors:[["","dir",""]],hostVars:1,hostBindings:function(e,t){2&e&&ja("dir",t._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[$s([{provide:ob,useExisting:ib}])]}),ib),sb=((tb=function e(){_(this,e)}).\u0275mod=Rt({type:tb}),tb.\u0275inj=Se({factory:function(e){return new(e||tb)}}),tb),ub=function e(){_(this,e)};function cb(e){return e&&"function"==typeof e.connect}var lb,hb=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this))._data=e,n}return w(i,[{key:"connect",value:function(){return g_(this._data)?this._data:Hf(this._data)}},{key:"disconnect",value:function(){}}]),i}(ub),db=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_(this,e),this._multiple=i,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new H,n&&n.length&&(i?n.forEach((function(e){return t._markSelected(e)})):this._markSelected(n[0]),this._selectedToEmit.length=0)}return w(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),e}(),fb=((lb=function(){function e(){_(this,e),this._listeners=[]}return w(e,[{key:"notify",value:function(e,t){var i,n=s(this._listeners);try{for(n.s();!(i=n.n()).done;)(0,i.value)(e,t)}catch(r){n.e(r)}finally{n.f()}}},{key:"listen",value:function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter((function(t){return e!==t}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),e}()).\u0275fac=function(e){return new(e||lb)},lb.\u0275prov=Ce({factory:function(){return new lb},token:lb,providedIn:"root"}),lb),pb=["contentWrapper"],gb=["*"],mb=new et("VIRTUAL_SCROLL_STRATEGY"),vb=function(){function e(t,i,n){_(this,e),this._scrolledIndexChange=new H,this.scrolledIndexChange=this._scrolledIndexChange.pipe(m_()),this._viewport=null,this._itemSize=t,this._minBufferPx=i,this._maxBufferPx=n}return w(e,[{key:"attach",value:function(e){this._viewport=e,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(e,t,i){if(i0&&(n.end=Math.min(o,n.end+c),n.start=Math.max(0,Math.floor(t-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(this._itemSize*n.start),this._scrolledIndexChange.next(Math.floor(t))}}}]),e}();function yb(e){return e._scrollStrategy}var _b,bb,wb,Ab,kb,Mb=((Ab=function(){function e(){_(this,e),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new vb(this.itemSize,this.minBufferPx,this.maxBufferPx)}return w(e,[{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}},{key:"itemSize",get:function(){return this._itemSize},set:function(e){this._itemSize=Jy(e)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(e){this._minBufferPx=Jy(e)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(e){this._maxBufferPx=Jy(e)}}]),e}()).\u0275fac=function(e){return new(e||Ab)},Ab.\u0275dir=Pt({type:Ab,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[$s([{provide:mb,useFactory:yb,deps:[Fe((function(){return Ab}))]}]),Gt]}),Ab),Cb=((wb=function(){function e(t,i,n){_(this,e),this._ngZone=t,this._platform=i,this._scrolled=new H,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return w(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new O((function(i){e._globalSubscription||e._addGlobalListener();var n=t>0?e._scrolled.pipe(M_(t)).subscribe(i):e._scrolled.subscribe(i);return e._scrolledCount++,function(){n.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Hf()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,i){return e.deregister(i)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(jf((function(e){return!e||i.indexOf(e)>-1})))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,i=[];return this.scrollContainers.forEach((function(n,r){t._scrollableContainsElement(r,e)&&i.push(r)})),i}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var i=t.nativeElement,n=e.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return t_(e._getWindow().document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||wb)(ct(Xc),ct(G_),ct(Tl,8))},wb.\u0275prov=Ce({factory:function(){return new wb(ct(Xc),ct(G_),ct(Tl,8))},token:wb,providedIn:"root"}),wb),Sb=((bb=function(){function e(t,i,n,r){var o=this;_(this,e),this.elementRef=t,this.scrollDispatcher=i,this.ngZone=n,this.dir=r,this._destroyed=new H,this._elementScrolled=new O((function(e){return o.ngZone.runOutsideAngular((function(){return t_(o.elementRef.nativeElement,"scroll").pipe(C_(o._destroyed)).subscribe(e)}))}))}return w(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=i?e.end:e.start),null==e.right&&(e.right=i?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),i&&0!=$_()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==$_()?e.left=e.right:1==$_()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==e?e=i?"right":"left":"end"==e&&(e=i?"left":"right"),i&&2==$_()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:i&&1==$_()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}()).\u0275fac=function(e){return new(e||bb)(Va(nu),Va(Cb),Va(Xc),Va(ob,8))},bb.\u0275dir=Pt({type:bb,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),bb),Tb=((_b=function(){function e(t,i,n){var r=this;_(this,e),this._platform=t,this._document=n,i.runOutsideAngular((function(){var e=r._getWindow();r._change=t.isBrowser?se(t_(e,"resize"),t_(e,"orientationchange")):Hf(),r._invalidateCache=r.change().subscribe((function(){return r._updateViewportSize()}))}))}return w(e,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),i=t.width,n=t.height;return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._getDocument(),t=this._getWindow(),i=e.documentElement,n=i.getBoundingClientRect();return{top:-n.top||e.body.scrollTop||t.scrollY||i.scrollTop||0,left:-n.left||e.body.scrollLeft||t.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(M_(e)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||_b)(ct(G_),ct(Xc),ct(Tl,8))},_b.\u0275prov=Ce({factory:function(){return new _b(ct(G_),ct(Xc),ct(Tl,8))},token:_b,providedIn:"root"}),_b),Eb="undefined"!=typeof requestAnimationFrame?a_:p_,Lb=((kb=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u){var c;if(_(this,i),(c=t.call(this,e,s,r,a)).elementRef=e,c._changeDetectorRef=n,c._scrollStrategy=o,c._detachedSubject=new H,c._renderedRangeSubject=new H,c._orientation="vertical",c.scrolledIndexChange=new O((function(e){return c._scrollStrategy.scrolledIndexChange.subscribe((function(t){return Promise.resolve().then((function(){return c.ngZone.run((function(){return e.next(t)}))}))}))})),c.renderedRangeStream=c._renderedRangeSubject.asObservable(),c._totalContentSize=0,c._totalContentWidth="",c._totalContentHeight="",c._renderedRange={start:0,end:0},c._dataLength=0,c._viewportSize=0,c._renderedContentOffset=0,c._renderedContentOffsetNeedsRewrite=!1,c._isChangeDetectionPending=!1,c._runAfterChangeDetection=[],c._viewportChanges=S.EMPTY,!o)throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');return u&&(c._viewportChanges=u.change().subscribe((function(){c.checkViewportSize()}))),g(c)}return w(i,[{key:"ngOnInit",value:function(){var e=this;h(y(i.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular((function(){return Promise.resolve().then((function(){e._measureViewportSize(),e._scrollStrategy.attach(e),e.elementScrolled().pipe(Ig(null),M_(0,Eb)).subscribe((function(){return e._scrollStrategy.onContentScrolled()})),e._markChangeDetectionNeeded()}))}))}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),h(y(i.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(e){var t=this;if(this._forOf)throw Error("CdkVirtualScrollViewport is already attached.");this.ngZone.runOutsideAngular((function(){t._forOf=e,t._forOf.dataStream.pipe(C_(t._detachedSubject)).subscribe((function(e){var i=e.length;i!==t._dataLength&&(t._dataLength=i,t._scrollStrategy.onDataLengthChanged()),t._doChangeDetection()}))}))}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"setTotalContentSize",value:function(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(e){var t,i,n=this;((t=this._renderedRange).start!=(i=e).start||t.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded((function(){return n._scrollStrategy.onContentRendered()})))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start",n="horizontal"==this.orientation,r=n?"X":"Y",o="translate".concat(r,"(").concat(Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*e),"px)");this._renderedContentOffset=e,"to-end"===i&&(o+=" translate".concat(r,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded((function(){t._renderedContentOffsetNeedsRewrite?(t._renderedContentOffset-=t.measureRenderedContentSize(),t._renderedContentOffsetNeedsRewrite=!1,t.setRenderedContentOffset(t._renderedContentOffset)):t._scrollStrategy.onRenderedOffsetChanged()})))}},{key:"scrollToOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",i={behavior:t};"horizontal"===this.orientation?i.start=e:i.top=e,this.scrollTo(i)}},{key:"scrollToIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(e,t)}},{key:"measureScrollOffset",value:function(e){return h(y(i.prototype),"measureScrollOffset",this).call(this,e||("horizontal"===this.orientation?"start":"top"))}},{key:"measureRenderedContentSize",value:function(){var e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}},{key:"measureRangeSize",value:function(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){var e=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?e.clientWidth:e.clientHeight}},{key:"_markChangeDetectionNeeded",value:function(e){var t=this;e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular((function(){return Promise.resolve().then((function(){t._doChangeDetection()}))})))}},{key:"_doChangeDetection",value:function(){var e=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run((function(){return e._changeDetectorRef.markForCheck()}));var t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var i,n=s(t);try{for(n.s();!(i=n.n()).done;)(0,i.value)()}catch(r){n.e(r)}finally{n.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":this._totalContentSize+"px",this._totalContentWidth="horizontal"===this.orientation?this._totalContentSize+"px":""}},{key:"orientation",get:function(){return this._orientation},set:function(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}}]),i}(Sb)).\u0275fac=function(e){return new(e||kb)(Va(nu),Va(ua),Va(Xc),Va(mb,8),Va(ob,8),Va(Cb),Va(Tb,8))},kb.\u0275cmp=Lt({type:kb,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){var i;1&e&&mc(pb,!0),2&e&&gc(i=Ac())&&(t._contentWrapper=i.first)},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&Ss("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[$s([{provide:Sb,useExisting:kb}]),La],ngContentSelectors:gb,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(fs(),Qa(0,"div",0,1),ps(2),Za(),$a(3,"div",2)),2&e&&(Br(3),Cs("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),kb);function zb(e,t){if(!t.getBoundingClientRect)return 0;var i=t.getBoundingClientRect();return"horizontal"==e?i.width:i.height}var xb,Db,Rb,Ob=((Rb=function(){function e(t,n,r,o,a){var s=this;_(this,e),this._viewContainerRef=t,this._template=n,this._differs=r,this._viewport=o,this.viewChange=new H,this._dataSourceChanges=new H,this.cdkVirtualForTemplateCacheSize=20,this.dataStream=this._dataSourceChanges.pipe(Ig(null),(function(e){return e.lift(new E_)}),Lg((function(e){var t=i(e,2),n=t[0],r=t[1];return s._changeDataSource(n,r)})),q_(1)),this._differ=null,this._templateCache=[],this._needsUpdate=!1,this._destroyed=new H,this.dataStream.subscribe((function(e){s._data=e,s._onRenderedDataChange()})),this._viewport.renderedRangeStream.pipe(C_(this._destroyed)).subscribe((function(e){s._renderedRange=e,a.run((function(){return s.viewChange.next(s._renderedRange)})),s._onRenderedDataChange()})),this._viewport.attach(this)}return w(e,[{key:"measureRangeSize",value:function(e,t){if(e.start>=e.end)return 0;if(e.startthis._renderedRange.end)throw Error("Error: attempted to measure an item that isn't rendered.");for(var i=e.start-this._renderedRange.start,n=0,r=e.end-e.start;r--;)for(var o=this._viewContainerRef.get(r+i),a=o?o.rootNodes.length:0;a--;)n+=zb(t,o.rootNodes[a]);return n}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete();var e,t=s(this._templateCache);try{for(t.s();!(e=t.n()).done;)e.value.destroy()}catch(i){t.e(i)}finally{t.f()}}},{key:"_onRenderedDataChange",value:function(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(this.cdkVirtualForTrackBy)),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):Hf()}},{key:"_updateContext",value:function(){for(var e=this._data.length,t=this._viewContainerRef.length;t--;){var i=this._viewContainerRef.get(t);i.context.index=this._renderedRange.start+t,i.context.count=e,this._updateComputedContextProperties(i.context),i.detectChanges()}}},{key:"_applyChanges",value:function(e){var t=this;e.forEachOperation((function(e,i,n){if(null==e.previousIndex)t._insertViewForNewItem(n).context.$implicit=e.item;else if(null==n)t._cacheView(t._detachView(i));else{var r=t._viewContainerRef.get(i);t._viewContainerRef.move(r,n),r.context.$implicit=e.item}})),e.forEachIdentityChange((function(e){t._viewContainerRef.get(e.currentIndex).context.$implicit=e.item}));for(var i=this._data.length,n=this._viewContainerRef.length;n--;){var r=this._viewContainerRef.get(n);r.context.index=this._renderedRange.start+n,r.context.count=i,this._updateComputedContextProperties(r.context)}}},{key:"_cacheView",value:function(e){if(this._templateCache.length1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,h(y(i.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,h(y(i.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),i}(Hb),Yb=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this)).element=e instanceof nu?e.nativeElement:e,n}return i}(Hb),Wb=function(){function e(){_(this,e),this._isDisposed=!1,this.attachDomPortal=null}return w(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Nb(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof qb?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof jb?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Yb?(this._attachedPortal=e,this.attachDomPortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),Ub=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s,u;return _(this,i),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=n,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){if(!u._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var n=u._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),u.outletElement.appendChild(t),h((s=m(u),y(i.prototype)),"setDisposeFn",s).call(s,(function(){n.parentNode&&n.parentNode.replaceChild(t,n)}))},u._document=a,u}return w(i,[{key:"attachComponentPortal",value:function(e){var t,i=this,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=n.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){i._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context);return n.detectChanges(),n.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),this.setDisposeFn((function(){var e=i.indexOf(n);-1!==e&&i.remove(e)})),n}},{key:"dispose",value:function(){h(y(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),i}(Wb),Kb=((Bb=function(e){d(i,e);var t=p(i);function i(e,n,r){var o,a;return _(this,i),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=n,a._isInitialized=!1,a.attached=new rc,a.attachDomPortal=function(e){if(!a._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var n=a._document.createComment("dom-portal");e.setAttachedHost(m(a)),t.parentNode.insertBefore(n,t),a._getRootNode().appendChild(t),h((o=m(a),y(i.prototype)),"setDisposeFn",o).call(o,(function(){n.parentNode&&n.parentNode.replaceChild(t,n)}))},a._document=r,a}return w(i,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){h(y(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),h(y(i.prototype),"setDisposeFn",this).call(this,(function(){return r.destroy()})),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return h(y(i.prototype),"setDisposeFn",this).call(this,(function(){return t._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&h(y(i.prototype),"detach",this).call(this),e&&h(y(i.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),i}(Wb)).\u0275fac=function(e){return new(e||Bb)(Va(iu),Va(Lu),Va(Tl))},Bb.\u0275dir=Pt({type:Bb,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[La]}),Bb),Vb=((Fb=function e(){_(this,e)}).\u0275mod=Rt({type:Fb}),Fb.\u0275inj=Se({factory:function(e){return new(e||Fb)}}),Fb);function Gb(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;nt.height||e.scrollWidth>t.width}}]),e}();function Jb(){return Error("Scroll strategy has already been attached.")}var Qb=function(){function e(t,i,n,r){var o=this;_(this,e),this._scrollDispatcher=t,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run((function(){return o._overlayRef.detach()}))}}return w(e,[{key:"attach",value:function(e){if(this._overlayRef)throw Jb();this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Zb=function(){function e(){_(this,e)}return w(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function $b(e,t){return t.some((function(t){return e.bottomt.bottom||e.rightt.right}))}function ew(e,t){return t.some((function(t){return e.topt.bottom||e.leftt.right}))}var tw,iw=function(){function e(t,i,n,r){_(this,e),this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}return w(e,[{key:"attach",value:function(e){if(this._overlayRef)throw Jb();this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),i=e._viewportRuler.getViewportSize(),n=i.width,r=i.height;$b(t,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),nw=((tw=function e(t,i,n,r){var o=this;_(this,e),this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new Zb},this.close=function(e){return new Qb(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new Xb(o._viewportRuler,o._document)},this.reposition=function(e){return new iw(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||tw)(ct(Cb),ct(Tb),ct(Xc),ct(Tl))},tw.\u0275prov=Ce({factory:function(){return new tw(ct(Cb),ct(Tb),ct(Xc),ct(Tl))},token:tw,providedIn:"root"}),tw),rw=function e(t){if(_(this,e),this.scrollStrategy=new Zb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var i=0,n=Object.keys(t);i-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},this._document=t}return w(e,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),e}()).\u0275fac=function(e){return new(e||cw)(ct(Tl))},cw.\u0275prov=Ce({factory:function(){return new cw(ct(Tl))},token:cw,providedIn:"root"}),cw),dw=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),fw=((lw=function(){function e(t,i){_(this,e),this._platform=i,this._document=t}return w(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(e||dw)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),i=0;ip&&(p=v,f=m)}}catch(y){g.e(y)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&vw(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var i;if("center"==t.originX)i=e.left+e.width/2;else{var n=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;i="start"==t.originX?n:r}return{x:i,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,i){var n,r;return n="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+n,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,i,n){var r=e.x,o=e.y,a=this._getOffset(n,"x"),s=this._getOffset(n,"y");a&&(r+=a),s&&(o+=s);var u=0-o,c=o+t.height-i.height,l=this._subtractOverflows(t.width,0-r,r+t.width-i.width),h=this._subtractOverflows(t.height,u,c),d=l*h;return{visibleArea:d,isCompletelyWithinViewport:t.width*t.height===d,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:l==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,i){if(this._hasFlexibleDimensions){var n=i.bottom-t.y,r=i.right-t.x,o=yw(this._overlayRef.getConfig().minHeight),a=yw(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var n,r,o=this._viewportRect,a=Math.max(e.x+t.width-o.right,0),s=Math.max(e.y+t.height-o.bottom,0),u=Math.max(o.top-i.top-e.y,0),c=Math.max(o.left-i.left-e.x,0);return n=t.width<=o.width?c||-a:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(n=e.y-h/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)a=e.x,o=u.right-e.x;else{var d=Math.min(u.right-e.x+u.left,e.x),f=this._lastBoundingBoxSize.width;o=2*d,a=e.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:n,left:a,bottom:r,right:s,width:o,height:i}}},{key:"_setBoundingBoxStyles",value:function(e,t){var i=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;n.height=$y(i.height),n.top=$y(i.top),n.bottom=$y(i.bottom),n.width=$y(i.width),n.left=$y(i.left),n.right=$y(i.right),n.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",n.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(n.maxHeight=$y(r)),o&&(n.maxWidth=$y(o))}this._lastBoundingBoxSize=i,vw(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){vw(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){vw(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){var a=this._viewportRuler.getViewportScrollPosition();vw(i,this._getExactOverlayY(t,e,a)),vw(i,this._getExactOverlayX(t,e,a))}else i.position="static";var s="",u=this._getOffset(t,"x"),c=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),c&&(s+="translateY(".concat(c,"px)")),i.transform=s.trim(),o.maxHeight&&(n?i.maxHeight=$y(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=$y(o.maxWidth):r&&(i.maxWidth="")),vw(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(e,t,i){var n={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=$y(r.y),n}},{key:"_getExactOverlayX",value:function(e,t,i){var n={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=$y(r.x),n}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:ew(e,i),isOriginOutsideView:$b(e,i),isOverlayClipped:ew(t,i),isOverlayOutsideView:$b(t,i)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,r=i.height,o=i.maxWidth,a=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),Sw=((bw=function(){function e(t,i,n,r){_(this,e),this._viewportRuler=t,this._document=i,this._platform=n,this._overlayContainer=r}return w(e,[{key:"global",value:function(){return new Cw}},{key:"connectedTo",value:function(e,t,i){return new Mw(t,i,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new mw(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||bw)(ct(Tb),ct(Tl),ct(G_),ct(fw))},bw.\u0275prov=Ce({factory:function(){return new bw(ct(Tb),ct(Tl),ct(G_),ct(fw))},token:bw,providedIn:"root"}),bw),Tw=0,Ew=((_w=function(){function e(t,i,n,r,o,a,s,u,c,l){_(this,e),this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=c,this._location=l}return w(e,[{key:"create",value:function(e){var t=this._createHostElement(),i=this._createPaneElement(t),n=this._createPortalOutlet(i),r=new rw(e);return r.direction=r.direction||this._directionality.value,new pw(n,t,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+Tw++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(pl)),new Ub(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||_w)(ct(nw),ct(fw),ct(iu),ct(Sw),ct(hw),ct(Ca),ct(Xc),ct(Tl),ct(ob),ct(Vl,8))},_w.\u0275prov=Ce({token:_w,factory:_w.\u0275fac}),_w),Lw=[{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"}],zw=new et("cdk-connected-overlay-scroll-strategy"),xw=((Aw=function e(t){_(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||Aw)(Va(nu))},Aw.\u0275dir=Pt({type:Aw,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Aw),Dw=((ww=function(){function e(t,i,n,r,o){_(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=S.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new rc,this.positionChange=new rc,this.attach=new rc,this.detach=new rc,this.overlayKeydown=new rc,this._templatePortal=new jb(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return w(e,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(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())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=Lw),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(t){e.overlayKeydown.next(t),27!==t.keyCode||Gb(t)||(t.preventDefault(),e._detachOverlay())}))}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new rw({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}},{key:"_updatePositionStrategy",value:function(e){var t=this,i=this.positions.map((function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe((function(t){return e.positionChange.emit(t)})),t}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(t){e.backdropClick.emit(t)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=Xy(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=Xy(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=Xy(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=Xy(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=Xy(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||ww)(Va(Ew),Va(Tu),Va(Lu),Va(zw),Va(ob,8))},ww.\u0275dir=Pt({type:ww,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[Gt]}),ww),Rw={provide:zw,deps:[Ew],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ow=((kw=function e(){_(this,e)}).\u0275mod=Rt({type:kw}),kw.\u0275inj=Se({factory:function(e){return new(e||kw)},providers:[Ew,Rw],imports:[[sb,Vb,Ib],Ib]}),kw);function Pw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:__;return function(i){return i.lift(new Iw(e,t))}}var Iw=function(){function e(t,i){_(this,e),this.dueTime=t,this.scheduler=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Nw(e,this.dueTime,this.scheduler))}}]),e}(),Nw=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,e)).dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return w(i,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Fw,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),i}(L);function Fw(e){e.debouncedNext()}var Bw,Hw,qw,jw,Yw=((jw=function(){function e(){_(this,e)}return w(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||jw)},jw.\u0275prov=Ce({factory:function(){return new jw},token:jw,providedIn:"root"}),jw),Ww=((qw=function(){function e(t){_(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return w(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach((function(t,i){return e._cleanupObserver(i)}))}},{key:"observe",value:function(e){var t=this,i=e_(e);return new O((function(e){var n=t._observeElement(i).subscribe(e);return function(){n.unsubscribe(),t._unobserveElement(i)}}))}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new H,i=this._mutationObserverFactory.create((function(e){return t.next(e)}));i&&i.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:i,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),i=t.observer,n=t.stream;i&&i.disconnect(),n.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||qw)(ct(Yw))},qw.\u0275prov=Ce({factory:function(){return new qw(ct(Yw))},token:qw,providedIn:"root"}),qw),Uw=((Hw=function(){function e(t,i,n){_(this,e),this._contentObserver=t,this._elementRef=i,this._ngZone=n,this.event=new rc,this._disabled=!1,this._currentSubscription=null}return w(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(Pw(e.debounce)):t).subscribe(e.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Xy(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=Jy(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Hw)(Va(Ww),Va(nu),Va(Xc))},Hw.\u0275dir=Pt({type:Hw,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Hw),Kw=((Bw=function e(){_(this,e)}).\u0275mod=Rt({type:Bw}),Bw.\u0275inj=Se({factory:function(e){return new(e||Bw)},providers:[Yw]}),Bw);function Vw(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Gw,Xw,Jw=0,Qw=new Map,Zw=null,$w=((Gw=function(){function e(t){_(this,e),this._document=t}return w(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Qw.set(t,{messageElement:t,referenceCount:0})):Qw.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var i=Qw.get(t);i&&0===i.referenceCount&&this._deleteMessageElement(t)}Zw&&0===Zw.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==i._activeItemIndex&&(i._activeItemIndex=t)}}))}return w(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(e){return"function"!=typeof e.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ug((function(t){return e._pressedLetters.push(t)})),Pw(t),jf((function(){return e._pressedLetters.length>0})),Q((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var i=e._getItemsArray(),n=1;n-1}));switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Gb(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),n=t[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),i=1;i<=t.length;i++){var n=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof ac?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),tA=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),h(y(i.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}(eA),iA=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments))._origin="program",e}return w(i,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){h(y(i.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}(eA),nA=((Xw=function(){function e(t){_(this,e),this._platform=t}return w(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,i=function(e){try{return e.frameElement}catch(Q7){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(i){var n=i&&i.nodeName.toLowerCase();if(-1===oA(i))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(i))return!1}var r=e.nodeName.toLowerCase(),o=oA(e);if(e.hasAttribute("contenteditable"))return-1!==o;if("iframe"===r)return!1;if("audio"===r){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),i="input"===t&&e.type;return"text"===i||"password"===i||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}},{key:"isFocusable",value:function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||rA(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}]),e}()).\u0275fac=function(e){return new(e||Xw)(ct(G_))},Xw.\u0275prov=Ce({factory:function(){return new Xw(ct(G_))},token:Xw,providedIn:"root"}),Xw);function rA(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function oA(e){if(!rA(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var aA,sA,uA=function(){function e(t,i,n,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_(this,e),this._element=t,this._checker=i,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return w(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),i=0;i=0;i--){var n=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Dg(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),cA=((sA=function(){function e(t,i,n){_(this,e),this._checker=t,this._ngZone=i,this._document=n}return w(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new uA(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||sA)(ct(nA),ct(Xc),ct(Tl))},sA.\u0275prov=Ce({factory:function(){return new sA(ct(nA),ct(Xc),ct(Tl))},token:sA,providedIn:"root"}),sA),lA=((aA=function(){function e(t,i,n){_(this,e),this._elementRef=t,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return w(e,[{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(e){this.focusTrap.enabled=Xy(e)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(e){this._autoCapture=Xy(e)}}]),e}()).\u0275fac=function(e){return new(e||aA)(Va(nu),Va(cA),Va(Tl))},aA.\u0275dir=Pt({type:aA,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),aA);"undefined"!=typeof Element&∈var hA,dA,fA=new et("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),pA=new et("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),gA=((dA=function(){function e(t,i,n,r){_(this,e),this._ngZone=i,this._defaultOptions=r,this._document=n,this._liveElement=t||this._createLiveElement()}return w(e,[{key:"announce",value:function(e){for(var t,n,r,o=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Hf(null);var i=e_(e),n=eb(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return t&&(r.checkChildren=!0),r.subject.asObservable();var o={checkChildren:t,subject:new H,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject.asObservable()}},{key:"stopMonitoring",value:function(e){var t=e_(e),i=this._elementInfo.get(t);i&&(i.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(i))}},{key:"focusVia",value:function(e,t,i){var n=e_(e);this._setOriginForCurrentEventQueue(t),"function"==typeof n.focus&&n.focus(i)}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach((function(t,i){return e.stopMonitoring(i)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,i){i?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(e){var t=AA(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var i=this._elementInfo.get(t);if(i&&(i.checkChildren||t===AA(e))){var n=this._getFocusOrigin(e);this._setClasses(t,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}}},{key:"_onBlur",value:function(e,t){var i=this._elementInfo.get(t);!i||i.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run((function(){return e.next(t)}))}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var i=e.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular((function(){i.addEventListener("focus",t._rootNodeFocusAndBlurListener,bA),i.addEventListener("blur",t._rootNodeFocusAndBlurListener,bA)})),this._rootNodeFocusListenerCount.set(i,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),i=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,bA),e.addEventListener("mousedown",t._documentMousedownListener,bA),e.addEventListener("touchstart",t._documentTouchstartListener,bA),i.addEventListener("focus",t._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var i=this._rootNodeFocusListenerCount.get(t);i>1?this._rootNodeFocusListenerCount.set(t,i-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bA),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bA),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var n=this._getDocument(),r=this._getWindow();n.removeEventListener("keydown",this._documentKeydownListener,bA),n.removeEventListener("mousedown",this._documentMousedownListener,bA),n.removeEventListener("touchstart",this._documentTouchstartListener,bA),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),e}()).\u0275fac=function(e){return new(e||yA)(ct(Xc),ct(G_),ct(Tl,8),ct(_A,8))},yA.\u0275prov=Ce({factory:function(){return new yA(ct(Xc),ct(G_),ct(Tl,8),ct(_A,8))},token:yA,providedIn:"root"}),yA);function AA(e){return e.composedPath?e.composedPath()[0]:e.target}var kA,MA,CA,SA=((CA=function(){function e(t,i){var n=this;_(this,e),this._elementRef=t,this._focusMonitor=i,this.cdkFocusChange=new rc,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(e){return n.cdkFocusChange.emit(e)}))}return w(e,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||CA)(Va(nu),Va(wA))},CA.\u0275dir=Pt({type:CA,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),CA),TA=((MA=function(){function e(t,i){_(this,e),this._platform=t,this._document=i}return w(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,i=t&&t.getComputedStyle?t.getComputedStyle(e):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||MA)(ct(G_),ct(Tl))},MA.\u0275prov=Ce({factory:function(){return new MA(ct(G_),ct(Tl))},token:MA,providedIn:"root"}),MA),EA=((kA=function e(t){_(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=Rt({type:kA}),kA.\u0275inj=Se({factory:function(e){return new(e||kA)(ct(TA))},imports:[[X_,Kw]]}),kA),LA=new lu("9.2.4"),zA=function e(){_(this,e)};function xA(e,t){return{type:7,name:e,definitions:t,options:{}}}function DA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function RA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function OA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function PA(e){return{type:6,styles:e,offset:null}}function IA(e,t,i){return{type:0,name:e,styles:t,options:i}}function NA(e){return{type:5,steps:e}}function FA(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:i}}function BA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function HA(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:i}}function qA(e){Promise.resolve(null).then(e)}var jA=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+i}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;qA((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),YA=function(){function e(t){var i=this;_(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,o=0,a=this.players.length;0==a?qA((function(){return i._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++n==a&&i._onFinish()})),e.onDestroy((function(){++r==a&&i._onDestroy()})),e.onStart((function(){++o==a&&i._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var i=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(i)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var i=t.getPosition();e=Math.min(i,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function WA(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function UA(e){switch(e.length){case 0:return new jA;case 1:return e[0];default:return new YA(e)}}function KA(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(n.forEach((function(e){var i=e.offset,n=i==u,l=n&&c||{};Object.keys(e).forEach((function(i){var n=i,s=e[i];if("offset"!==i)switch(n=t.normalizePropertyName(n,a),s){case"!":s=r[i];break;case"*":s=o[i];break;default:s=t.normalizeStyleValue(i,n,s,a)}l[n]=s})),n||s.push(l),c=l,u=i})),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function VA(e,t,i,n){switch(t){case"start":e.onStart((function(){return n(i&&GA(i,"start",e))}));break;case"done":e.onDone((function(){return n(i&&GA(i,"done",e))}));break;case"destroy":e.onDestroy((function(){return n(i&&GA(i,"destroy",e))}))}}function GA(e,t,i){var n=i.totalTime,r=XA(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,!!i.disabled),o=e._data;return null!=o&&(r._data=o),r}function XA(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function JA(e,t,i){var n;return e instanceof Map?(n=e.get(t))||e.set(t,n=i):(n=e[t])||(n=e[t]=i),n}function QA(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ZA=function(e,t){return!1},$A=function(e,t){return!1},ek=function(e,t,i){return[]},tk=WA();(tk||"undefined"!=typeof Element)&&(ZA=function(e,t){return e.contains(t)},$A=function(){if(tk||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,i){return t.apply(e,[i])}:$A}(),ek=function(e,t,i){var n=[];if(i)n.push.apply(n,o(e.querySelectorAll(t)));else{var r=e.querySelector(t);r&&n.push(r)}return n});var ik=null,nk=!1;function rk(e){ik||(ik=("undefined"!=typeof document?document.body:null)||{},nk=!!ik.style&&"WebkitAppearance"in ik.style);var t=!0;return ik.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in ik.style)&&nk)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ik.style),t}var ok=$A,ak=ZA,sk=ek;function uk(e){var t={};return Object.keys(e).forEach((function(i){var n=i.replace(/([a-z])([A-Z])/g,"$1-$2");t[n]=e[i]})),t}var ck,lk=((ck=function(){function e(){_(this,e)}return w(e,[{key:"validateStyleProperty",value:function(e){return rk(e)}},{key:"matchesElement",value:function(e,t){return ok(e,t)}},{key:"containsElement",value:function(e,t){return ak(e,t)}},{key:"query",value:function(e,t,i){return sk(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return i||""}},{key:"animate",value:function(e,t,i,n,r){return new jA(i,n)}}]),e}()).\u0275fac=function(e){return new(e||ck)},ck.\u0275prov=Ce({token:ck,factory:ck.\u0275fac}),ck),hk=function(){var e=function e(){_(this,e)};return e.NOOP=new lk,e}();function dk(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:fk(parseFloat(t[1]),t[2])}function fk(e,t){switch(t){case"s":return 1e3*e;default:return e}}function pk(e,t,i){return e.hasOwnProperty("duration")?e:function(e,t,i){var n,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};n=fk(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=fk(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else n=e;if(!i){var c=!1,l=t.length;n<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(l,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:n,delay:r,easing:o}}(e,t,i)}function gk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(i){t[i]=e[i]})),t}function mk(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var n in e)i[n]=e[n];else gk(e,i);return i}function vk(e,t,i){return i?t+":"+i+";":""}function yk(e){for(var t="",i=0;i *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,i);if("function"==typeof n)return void t.push(n);e=n}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return i.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(Ok(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(Ok(s,o))}(e,r,n)})):r.push(i),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Hk(e.options)}}},{key:"visitSequence",value:function(e,t){var i=this;return{type:2,steps:e.steps.map((function(e){return zk(i,e,t)})),options:Hk(e.options)}}},{key:"visitGroup",value:function(e,t){var i=this,n=t.currentTime,r=0,o=e.steps.map((function(e){t.currentTime=n;var o=zk(i,e,t);return r=Math.max(r,t.currentTime),o}));return t.currentTime=r,{type:3,steps:o,options:Hk(e.options)}}},{key:"visitAnimate",value:function(e,t){var i,n=function(e,t){var i=null;if(e.hasOwnProperty("duration"))i=e;else if("number"==typeof e)return qk(pk(e,t).duration,0,"");var n=e;if(n.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var r=qk(0,0,"");return r.dynamic=!0,r.strValue=n,r}return qk((i=i||pk(n,t)).duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var r=e.styles?e.styles:PA({});if(5==r.type)i=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};n.easing&&(s.easing=n.easing),o=PA(s)}t.currentTime+=n.duration+n.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,i=u}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}},{key:"_makeStyleAst",value:function(e,t){var i=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?i.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):i.push(e)})):i.push(e.styles);var n=!1,r=null;return i.forEach((function(e){if(Bk(e)){var t=e,i=t.easing;if(i&&(r=i,delete t.easing),!n)for(var o in t)if(t[o].toString().indexOf("{{")>=0){n=!0;break}}})),{type:6,styles:i,easing:r,offset:e.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(e,t){var i=this,n=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(n){if(i._driver.validateStyleProperty(n)){var a,s,u,c,l,h=t.collectedStyles[t.currentQuerySelector],d=h[n],f=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=d.startTime),f&&(h[n]={startTime:o,endTime:r}),t.options&&(a=e[n],s=t.options,u=t.errors,c=s.params||{},(l=kk(a)).length&&l.forEach((function(e){c.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var i=this,n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;var r=0,o=[],a=!1,s=!1,u=0,c=e.steps.map((function(e){var n=i._makeStyleAst(e,t),c=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(Bk(e)&&e.hasOwnProperty("offset")){var i=e;t=parseFloat(i.offset),delete i.offset}}));else if(Bk(e)&&e.hasOwnProperty("offset")){var i=e;t=parseFloat(i.offset),delete i.offset}return t}(n.styles),l=0;return null!=c&&(r++,l=n.offset=c),s=s||l<0||l>1,a=a||l0&&r0?r==d?1:h*r:o[r],s=a*g;t.currentTime=f+p.delay+s,p.duration=s,i._validateStyleAst(e,t),e.offset=a,n.styles.push(e)})),n}},{key:"visitReference",value:function(e,t){return{type:8,animation:zk(this,wk(e.animation),t),options:Hk(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Hk(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Hk(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var o=i(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(Pk,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=o[0],s=o[1];t.currentQuerySelector=n.length?n+" "+a:a,JA(t.collectedStyles,t.currentQuerySelector,{});var u=zk(this,wk(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:e.selector,options:Hk(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var i="full"===e.timings?{duration:0,delay:0,easing:"full"}:pk(e.timings,t.errors,!0);return{type:12,animation:zk(this,wk(e.animation),t),timings:i,options:null}}}]),e}(),Fk=function e(t){_(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Bk(e){return!Array.isArray(e)&&"object"==typeof e}function Hk(e){var t;return e?(e=gk(e)).params&&(e.params=(t=e.params)?gk(t):null):e={},e}function qk(e,t,i){return{duration:e,delay:t,easing:i}}function jk(e,t,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Yk=function(){function e(){_(this,e),this._map=new Map}return w(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var i,n=this._map.get(e);n||this._map.set(e,n=[]),(i=n).push.apply(i,o(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Wk=new RegExp(":enter","g"),Uk=new RegExp(":leave","g");function Kk(e,t,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Vk).buildKeyframes(e,t,i,n,r,o,a,s,u,c)}var Vk=function(){function e(){_(this,e)}return w(e,[{key:"buildKeyframes",value:function(e,t,i,n,r,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new Yk;var l=new Xk(e,t,u,n,r,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),zk(this,i,l);var h=l.timelines.filter((function(e){return e.containsAnimation()}));if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map((function(e){return e.buildKeyframes()})):[jk(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var i=t.subInstructions.consume(t.element);if(i){var n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,i){var n=t.currentTimeline.currentTime,r=null!=i.duration?dk(i.duration):null,o=null!=i.delay?dk(i.delay):null;return 0!==r&&e.forEach((function(e){var i=t.appendInstructionToTimeline(e,r,o);n=Math.max(n,i.duration+i.delay)})),n}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),zk(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var i=this,n=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Gk);var a=dk(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach((function(e){return zk(i,e,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var i=this,n=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?dk(e.options.delay):0;e.steps.forEach((function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),zk(i,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)})),n.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var i=e.strValue;return pk(t.params?Mk(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var r=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var i=t.currentAnimateTimings,n=t.currentTimeline.duration,r=i.duration,o=t.createSubContext().currentTimeline;o.easing=i.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(n+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var i=this,n=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?dk(r.delay):0;o&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Gk);var a=n,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach((function(n,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,n);o&&s.delayNextStep(o),n===t.element&&(u=s.currentTimeline),zk(i,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var i=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=i.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;zk(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}]),e}(),Gk={},Xk=function(){function e(t,i,n,r,o,a,s,u){_(this,e),this._driver=t,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Jk(this._driver,i,0),s.push(this.currentTimeline)}return w(e,[{key:"updateOptions",value:function(e,t){var i=this;if(e){var n=e,r=this.options;null!=n.duration&&(r.duration=dk(n.duration)),null!=n.delay&&(r.delay=dk(n.delay));var o=n.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(e){t&&a.hasOwnProperty(e)||(a[e]=Mk(o[e],a,i.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var i=e.params={};Object.keys(t).forEach((function(e){i[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=i||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Gk,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,i){var n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},r=new Qk(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,i,n,r,a){var s=[];if(n&&s.push(this.element),e.length>0){e=(e=e.replace(Wk,"."+this._enterClassName)).replace(Uk,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push.apply(s,o(u))}return r||0!=s.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),Jk=function(){function e(t,i,n,r){_(this,e),this._driver=t,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return w(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,i){return this.applyStylesToKeyframe(),new e(this._driver,t,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,i,n){var r=this;t&&(this._previousKeyframe.easing=t);var o=n&&n.params||{},a=function(e,t){var i,n={};return e.forEach((function(e){"*"===e?(i=i||Object.keys(t)).forEach((function(e){n[e]="*"})):mk(e,!1,n)})),n}(e,this._globalTimelineStyles);Object.keys(a).forEach((function(e){var t=Mk(a[e],o,i);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,i=Object.keys(t);0!=i.length&&(this._pendingStyles={},i.forEach((function(i){e._currentKeyframe[i]=t[i]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var i=e._localTimelineStyles[t];e._pendingStyles[t]=i,e._updateStyle(t,i)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(i){var n=t._styleSummary[i],r=e._styleSummary[i];(!n||r.time>n.time)&&t._updateStyle(i,r.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,a){var s=mk(o,!0);Object.keys(s).forEach((function(e){var n=s[e];"!"==n?t.add(e):"*"==n&&i.add(e)})),n||(s.offset=a/e.duration),r.push(s)}));var o=t.size?Ck(t.values()):[],a=i.size?Ck(i.values()):[];if(n){var s=r[0],u=gk(s);s.offset=0,u.offset=1,r=[s,u]}return jk(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),Qk=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _(this,i),(u=t.call(this,e,n,s.delay)).element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return w(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,i=t.delay,n=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&i){var o=[],a=n+i,s=i/a,u=mk(e[0],!1);u.offset=0,o.push(u);var c=mk(e[0],!1);c.offset=Zk(s),o.push(c);for(var l=e.length-1,h=1;h<=l;h++){var d=mk(e[h],!1);d.offset=Zk((i+d.offset*n)/a),o.push(d)}n=a,i=0,r="",e=o}return jk(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}]),i}(Jk);function Zk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,t-1);return Math.round(e*i)/i}var $k=function e(){_(this,e)},eM=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"normalizePropertyName",value:function(e,t){return Tk(e)}},{key:"normalizeStyleValue",value:function(e,t,i,n){var r="",o=i.toString().trim();if(tM[t]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{var a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&n.push("Please provide a CSS unit value for ".concat(e,":").concat(i))}return o+r}}]),i}($k),tM=function(e){var t={};return e.forEach((function(e){return t[e]=!0})),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function iM(e,t,i,n,r,o,a,s,u,c,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var nM={},rM=function(){function e(t,i,n){_(this,e),this._triggerName=t,this.ast=i,this._stateStyles=n}return w(e,[{key:"match",value:function(e,t,i,n){return function(e,t,i,n,r){return e.some((function(e){return e(t,i,n,r)}))}(this.ast.matchers,e,t,i,n)}},{key:"buildStyles",value:function(e,t,i){var n=this._stateStyles["*"],r=this._stateStyles[e],o=n?n.buildStyles(t,i):{};return r?r.buildStyles(t,i):o}},{key:"build",value:function(e,t,i,n,r,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||nM,d=this.buildStyles(i,a&&a.params||nM,l),f=s&&s.params||nM,p=this.buildStyles(n,f,l),g=new Set,m=new Map,v=new Map,y="void"===n,_={params:Object.assign(Object.assign({},h),f)},b=c?[]:Kk(e,t,this.ast.animation,r,o,d,p,_,u,l),w=0;if(b.forEach((function(e){w=Math.max(e.duration+e.delay,w)})),l.length)return iM(t,this._triggerName,i,n,y,d,p,[],[],m,v,w,l);b.forEach((function(e){var i=e.element,n=JA(m,i,{});e.preStyleProps.forEach((function(e){return n[e]=!0}));var r=JA(v,i,{});e.postStyleProps.forEach((function(e){return r[e]=!0})),i!==t&&g.add(i)}));var A=Ck(g.values());return iM(t,this._triggerName,i,n,y,d,p,b,A,m,v,w)}}]),e}(),oM=function(){function e(t,i){_(this,e),this.styles=t,this.defaultParams=i}return w(e,[{key:"buildStyles",value:function(e,t){var i={},n=gk(this.defaultParams);return Object.keys(e).forEach((function(t){var i=e[t];null!=i&&(n[t]=i)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach((function(e){var o=r[e];o.length>1&&(o=Mk(o,n,t)),i[e]=o}))}})),i}}]),e}(),aM=function(){function e(t,i){var n=this;_(this,e),this.name=t,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach((function(e){n.states[e.name]=new oM(e.style,e.options&&e.options.params||{})})),sM(this.states,"true","1"),sM(this.states,"false","0"),i.transitions.forEach((function(e){n.transitionFactories.push(new rM(t,e,n.states))})),this.fallbackTransition=new rM(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return w(e,[{key:"matchTransition",value:function(e,t,i,n){return this.transitionFactories.find((function(r){return r.match(e,t,i,n)}))||null}},{key:"matchStyles",value:function(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function sM(e,t,i){e.hasOwnProperty(t)?e.hasOwnProperty(i)||(e[i]=e[t]):e.hasOwnProperty(i)&&(e[t]=e[i])}var uM=new Yk,cM=function(){function e(t,i,n){_(this,e),this.bodyNode=t,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return w(e,[{key:"register",value:function(e,t){var i=[],n=Ik(this._driver,t,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: "+i.join("\n"));this._animations[e]=n}},{key:"_buildPlayer",value:function(e,t,i){var n=e.element,r=KA(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(i=Kk(this._driver,t,a,"ng-enter","ng-leave",{},{},r,uM,o)).forEach((function(e){var t=JA(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach((function(e,t){Object.keys(e).forEach((function(i){e[i]=n._driver.computeStyle(t,i,"*")}))}));var u=UA(i.map((function(e){var t=s.get(e.element);return n._buildPlayer(e,{},t)})));return this._playersById[e]=u,u.onDestroy((function(){return n.destroy(e)})),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,i,n){var r=XA(t,"","","");return VA(this._getPlayer(e),i,r,n),function(){}}},{key:"command",value:function(e,t,i,n){if("register"!=i)if("create"!=i){var r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,n[0]||{});else this.register(e,n[0])}}]),e}(),lM=[],hM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},dM={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fM=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_(this,e),this.namespaceId=i;var n,r=t&&t.hasOwnProperty("value");if(this.value=null!=(n=r?t.value:t)?n:null,r){var o=gk(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return w(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var i=this.options.params;Object.keys(t).forEach((function(e){null==i[e]&&(i[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),pM=new fM("void"),gM=function(){function e(t,i,n){_(this,e),this.id=t,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,AM(i,this._hostClassName)}return w(e,[{key:"listen",value:function(e,t,i,n){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=i)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(t,'" is not supported!'));var a=JA(this._elementListeners,e,[]),s={name:t,phase:i,callback:n};a.push(s);var u=JA(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(AM(e,"ng-trigger"),AM(e,"ng-trigger-"+t),u[t]=pM),function(){o._engine.afterFlush((function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,i){var n=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new vM(this.id,t,e),s=this._engine.statesByElement.get(e);s||(AM(e,"ng-trigger"),AM(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],c=new fM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[t]=c,u||(u=pM),"void"===c.value||u.value!==c.value){var l=JA(this._engine.playersByElement,e,[]);l.forEach((function(e){e.namespaceId==n.id&&e.triggerName==t&&e.queued&&e.destroy()}));var h=o.matchTransition(u.value,c.value,e,c.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:d}),d||(AM(e,"ng-animate-queued"),a.onStart((function(){kM(e,"ng-animate-queued")}))),a.onDone((function(){var t=n.players.indexOf(a);t>=0&&n.players.splice(t,1);var i=n._engine.playersByElement.get(e);if(i){var r=i.indexOf(a);r>=0&&i.splice(r,1)}})),this.players.push(a),l.push(a),a}if(!function(e,t){var i=Object.keys(e),n=Object.keys(t);if(i.length!=n.length)return!1;for(var r=0;r=0){for(var n=!1,r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),n=!0;break}n||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}},{key:"registerTrigger",value:function(e,t,i){var n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var i=this;if(e){var n=this._fetchNamespace(e);this.afterFlush((function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[e];var t=i._namespaceList.indexOf(n);t>=0&&i._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return n.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,i=this.statesByElement.get(e);if(i)for(var n=Object.keys(i),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,i)}n&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),AM(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),kM(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,i,n){if(yM(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n),i){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,n)}}else this._onRemovalComplete(t,n)}},{key:"markElementAsRemoved",value:function(e,t,i,n){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,i,n,r){return yM(t)?this._fetchNamespace(e).listen(t,i,n,r):function(){}}},{key:"_buildInstruction",value:function(e,t,i,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,i=this.driver.query(e,".ng-trigger",!0);i.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(i=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return UA(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,i=e.__ng_removed;if(i&&i.setForRemoval){if(e.__ng_removed=hM,i.namespaceId){this.destroyInnerAnimations(e);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,i){return e._balanceNamespaceList(t,i)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach((function(e){var t=e.player,o=e.element;if(C.push(t),i.collectedEnterElements.length){var a=o.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var h=!d||!i.driver.containsElement(d,o),f=k.get(o),p=g.get(o),m=i._buildInstruction(e,n,p,f,h);if(m.errors&&m.errors.length)S.push(m);else{if(h)return t.onStart((function(){return bk(o,m.fromStyles)})),t.onDestroy((function(){return _k(o,m.toStyles)})),void r.push(t);if(e.isFallbackTransition)return t.onStart((function(){return bk(o,m.fromStyles)})),t.onDestroy((function(){return _k(o,m.toStyles)})),void r.push(t);m.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),n.append(o,m.timelines),s.push({instruction:m,player:t,element:o}),m.queriedElements.forEach((function(e){return JA(u,e,[]).push(t)})),m.preStyleProps.forEach((function(e,t){var i=Object.keys(e);if(i.length){var n=c.get(t);n||c.set(t,n=new Set),i.forEach((function(e){return n.add(e)}))}})),m.postStyleProps.forEach((function(e,t){var i=Object.keys(e),n=l.get(t);n||l.set(t,n=new Set),i.forEach((function(e){return n.add(e)}))}))}}));if(S.length){var E=[];S.forEach((function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return E.push("- ".concat(e,"\n"))}))})),C.forEach((function(e){return e.destroy()})),this.reportError(E)}var L=new Map,z=new Map;s.forEach((function(e){var t=e.element;n.has(t)&&(z.set(t,t),i._beforeAnimationBuild(e.player.namespaceId,e.instruction,L))})),r.forEach((function(e){var t=e.element;i._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){JA(L,t,[]).push(e),e.destroy()}))}));var x=v.filter((function(e){return CM(e,c,l)})),D=new Map;bM(D,this.driver,_,l,"*").forEach((function(e){CM(e,c,l)&&x.push(e)}));var R=new Map;p.forEach((function(e,t){bM(R,i.driver,new Set(e),c,"!")})),x.forEach((function(e){var t=D.get(e),i=R.get(e);D.set(e,Object.assign(Object.assign({},t),i))}));var O=[],P=[],I={};s.forEach((function(e){var t=e.element,o=e.player,s=e.instruction;if(n.has(t)){if(h.has(t))return o.onDestroy((function(){return _k(t,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var u=I;if(z.size>1){for(var c=t,l=[];c=c.parentNode;){var d=z.get(c);if(d){u=d;break}l.push(c)}l.forEach((function(e){return z.set(e,u)}))}var f=i._buildAnimation(o.namespaceId,s,L,a,R,D);if(o.setRealPlayer(f),u===I)O.push(o);else{var p=i.playersByElement.get(u);p&&p.length&&(o.parentPlayer=UA(p)),r.push(o)}}else bk(t,s.fromStyles),o.onDestroy((function(){return _k(t,s.toStyles)})),P.push(o),h.has(t)&&r.push(o)})),P.forEach((function(e){var t=a.get(e.element);if(t&&t.length){var i=UA(t);e.setRealPlayer(i)}})),r.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new jA(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),vM=function(){function e(t,i,n){_(this,e),this.namespaceId=t,this.triggerName=i,this.element=n,this._player=new jA,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return w(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(i){t._queuedCallbacks[i].forEach((function(t){return VA(e,i,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,i=this._player;i.triggerCallback&&e.onStart((function(){return i.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){JA(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function yM(e){return e&&1===e.nodeType}function _M(e,t){var i=e.style.display;return e.style.display=null!=t?t:"none",i}function bM(e,t,i,n,r){var o=[];i.forEach((function(e){return o.push(_M(e))}));var a=[];n.forEach((function(i,n){var o={};i.forEach((function(e){var i=o[e]=t.computeStyle(n,e,r);i&&0!=i.length||(n.__ng_removed=dM,a.push(n))})),e.set(n,o)}));var s=0;return i.forEach((function(e){return _M(e,o[s++])})),a}function wM(e,t){var i=new Map;if(e.forEach((function(e){return i.set(e,[])})),0==t.length)return i;var n=new Set(t),r=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=r.get(t);if(o)return o;var a=t.parentNode;return o=i.has(a)?a:n.has(a)?1:e(a),r.set(t,o),o}(e);1!==t&&i.get(t).push(e)})),i}function AM(e,t){if(e.classList)e.classList.add(t);else{var i=e.$$classes;i||(i=e.$$classes={}),i[t]=!0}}function kM(e,t){if(e.classList)e.classList.remove(t);else{var i=e.$$classes;i&&delete i[t]}}function MM(e,t,i){UA(i).onDone((function(){return e.processLeaveNode(t)}))}function CM(e,t,i){var n=i.get(e);if(!n)return!1;var r=t.get(e);return r?n.forEach((function(e){return r.add(e)})):t.set(e,n),i.delete(e),!0}var SM=function(){function e(t,i,n){var r=this;_(this,e),this.bodyNode=t,this._driver=i,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new mM(t,i,n),this._timelineEngine=new cM(t,i,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return w(e,[{key:"registerTrigger",value:function(e,t,i,n,r){var o=e+"-"+n,a=this._triggerCache[o];if(!a){var s=[],u=Ik(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(n,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new aM(e,t)}(n,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,n,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}},{key:"onRemove",value:function(e,t,i,n){this._transitionEngine.removeNode(e,t,n||!1,i)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var o=i(QA(n),2),a=o[0],s=o[1];this._timelineEngine.command(a,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,o){if("@"==n.charAt(0)){var a=i(QA(n),2),s=a[0],u=a[1];return this._timelineEngine.listen(s,t,u,o)}return this._transitionEngine.listen(e,t,n,r,o)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function TM(e,t){var i=null,n=null;return Array.isArray(t)&&t.length?(i=LM(t[0]),t.length>1&&(n=LM(t[t.length-1]))):t&&(i=LM(t)),i||n?new EM(e,i,n):null}var EM=function(){var e=function(){function e(t,i,n){_(this,e),this._element=t,this._startStyles=i,this._endStyles=n,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return w(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&_k(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(_k(this._element,this._initialStyles),this._endStyles&&(_k(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(bk(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bk(this._element,this._endStyles),this._endStyles=null),_k(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function LM(e){for(var t=null,i=Object.keys(e),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),PM(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,i,n;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,i=NM(e,"").split(","),(n=OM(i,t))>=0&&(i.splice(n,1),IM(e,"",i.join(","))))}}]),e}();function DM(e,t,i){IM(e,"PlayState",i,RM(e,t))}function RM(e,t){var i=NM(e,"");return i.indexOf(",")>0?OM(i.split(","),t):OM([i],t)}function OM(e,t){for(var i=0;i=0)return i;return-1}function PM(e,t,i){i?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function IM(e,t,i,n){var r="animation"+t;if(null!=n){var o=e.style[r];if(o.length){var a=o.split(",");a[n]=i,i=a.join(",")}}e.style[r]=i}function NM(e,t){return e.style["animation"+t]}var FM=function(){function e(t,i,n,r,o,a,s,u){_(this,e),this.element=t,this.keyframes=i,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return w(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new xM(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach((function(n){"offset"!=n&&(t[n]=i?e._finalStyles[n]:xk(e.element,n))}))}this.currentSnapshot=t}}]),e}(),BM=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=uk(n),r}return w(i,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),h(y(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),h(y(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var i=e._startingStyles[t];i?e.element.style.setProperty(t,i):e.element.style.removeProperty(t)})),this._startingStyles=null,h(y(i.prototype),"destroy",this).call(this))}}]),i}(jA),HM=function(){function e(){_(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return w(e,[{key:"validateStyleProperty",value:function(e){return rk(e)}},{key:"matchesElement",value:function(e,t){return ok(e,t)}},{key:"containsElement",value:function(e,t){return ak(e,t)}},{key:"query",value:function(e,t,i){return sk(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,i){i=i.map((function(e){return uk(e)}));var n="@keyframes ".concat(t," {\n"),r="";i.forEach((function(e){r=" ";var t=parseFloat(e.offset);n+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach((function(t){var i=e[t];switch(t){case"offset":return;case"easing":return void(i&&(n+="".concat(r,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(r).concat(t,": ").concat(i,";\n"))}})),n+=r+"}\n"})),n+="}\n";var o=document.createElement("style");return o.innerHTML=n,o}},{key:"animate",value:function(e,t,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter((function(e){return e instanceof FM})),u={};Ek(i,n)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return u[e]=t[e]}))}));var c=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(i){"offset"!=i&&"easing"!=i&&(t[i]=e[i])}))})),t}(t=Lk(e,t,u));if(0==i)return new BM(e,c);var l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,l,t);document.querySelector("head").appendChild(h);var d=TM(e,t),f=new FM(e,t,l,i,n,r,c,d);return f.onDestroy((function(){var e;(e=h).parentNode.removeChild(e)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),qM=function(){function e(t,i,n,r){_(this,e),this.element=t,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,i){return e.animate(t,i)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(i){"offset"!=i&&(t[i]=e._finished?e._finalKeyframe[i]:xk(e.element,i))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),jM=function(){function e(){_(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(YM().toString()),this._cssKeyframesDriver=new HM}return w(e,[{key:"validateStyleProperty",value:function(e){return rk(e)}},{key:"matchesElement",value:function(e,t){return ok(e,t)}},{key:"containsElement",value:function(e,t){return ak(e,t)}},{key:"query",value:function(e,t,i){return sk(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,i,n,r,o);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(s.easing=r);var u={},c=o.filter((function(e){return e instanceof qM}));Ek(i,n)&&c.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return u[e]=t[e]}))}));var l=TM(e,t=Lk(e,t=t.map((function(e){return mk(e,!1)})),u));return new qM(e,t,s,l)}}]),e}();function YM(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var WM,UM=((WM=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Ct.None,styles:[],data:{animation:[]}}),r}return w(i,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(e)?OA(e):e;return GM(this._renderer,null,t,"register",[i]),new KM(t,this._renderer)}}]),i}(zA)).\u0275fac=function(e){return new(e||WM)(ct(ou),ct(Tl))},WM.\u0275prov=Ce({token:WM,factory:WM.\u0275fac}),WM),KM=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this))._id=e,r._renderer=n,r}return w(i,[{key:"create",value:function(e,t){return new VM(this._id,e,t||{},this._renderer)}}]),i}(function(){return function e(){_(this,e)}}()),VM=function(){function e(t,i,n,r){_(this,e),this.id=t,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return w(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n=0&&e1&&void 0!==arguments[1]?arguments[1]:0;return function(e){d(n,e);var i=p(n);function n(){var e;_(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0?i:e}},{key:"localeChanges",get:function(){return this._localeChanges}}]),e}(),MC=new et("mat-date-formats");try{wC="undefined"!=typeof Intl}catch(Q7){wC=!1}var CC={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},SC=LC(31,(function(e){return String(e+1)})),TC={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},EC=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function LC(e,t){for(var i=Array(e),n=0;n11)throw Error('Invalid month index "'.concat(t,'". Month index has to be between 0 and 11.'));if(i<1)throw Error('Invalid date "'.concat(i,'". Date has to be greater than 0.'));var n=this._createDateWithOverflow(e,t,i);if(n.getMonth()!=t)throw Error('Invalid date "'.concat(i,'" for month with index "').concat(t,'".'));return n}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}},{key:"format",value:function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(wC){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(i,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var i=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(i)!=((this.getMonth(e)+t)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(EC.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return h(y(i.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,i){var n=new Date(e,t,i);return e>=0&&e<100&&n.setFullYear(this.getYear(n)-1900),n}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(i)}}]),i}(kC)).\u0275fac=function(e){return new(e||DC)(ct(AC,8),ct(G_))},DC.\u0275prov=Ce({token:DC,factory:DC.\u0275fac}),DC),OC=((xC=function(){function e(){_(this,e)}return w(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||xC)},xC.\u0275prov=Ce({factory:function(){return new xC},token:xC,providedIn:"root"}),xC),PC=((zC=function e(){_(this,e)}).\u0275fac=function(e){return new(e||zC)},zC.\u0275dir=Pt({type:zC,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),zC);function IC(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Ig(e)).subscribe((function(e){var n=e.length;NC(t,i+"-2-line",!1),NC(t,i+"-3-line",!1),NC(t,i+"-multi-line",!1),2===n||3===n?NC(t,"".concat(i,"-").concat(n,"-line"),!0):n>3&&NC(t,i+"-multi-line",!0)}))}function NC(e,t,i){var n=e.nativeElement.classList;i?n.add(t):n.remove(t)}var FC,BC,HC,qC,jC,YC,WC,UC=((FC=function e(){_(this,e)}).\u0275mod=Rt({type:FC}),FC.\u0275inj=Se({factory:function(e){return new(e||FC)},imports:[[pC],pC]}),FC),KC=function(){function e(t,i,n){_(this,e),this._renderer=t,this.element=i,this.config=n,this.state=3}return w(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),VC={enterDuration:450,exitDuration:400},GC=Z_({passive:!0}),XC=["mousedown","touchstart"],JC=["mouseup","mouseleave","touchend","touchcancel"],QC=function(){function e(t,i,n,r){_(this,e),this._target=t,this._ngZone=i,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=e_(n))}return w(e,[{key:"fadeInRipple",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},VC),n.animation);n.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=n.radius||function(e,t,i){var n=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));return Math.sqrt(n*n+r*r)}(e,t,r),s=e-r.left,u=t-r.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=u-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new KC(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var e=h===i._mostRecentTransientRipple;h.state=1,n.persistent||e&&i._isPointerDown||h.fadeOut()}),c),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var i=e.element,n=Object.assign(Object.assign({},VC),e.config.animation);i.style.transitionDuration=n.exitDuration+"ms",i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone((function(){e.state=3,i.parentNode.removeChild(i)}),n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(e){return e.fadeOut()}))}},{key:"setupTriggerEvents",value:function(e){var t=e_(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(XC))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(JC),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=vA(e),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(e,t)}))}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){e.forEach((function(e){t._triggerElement.addEventListener(e,t,GC)}))}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(XC.forEach((function(t){e._triggerElement.removeEventListener(t,e,GC)})),this._pointerUpEventsRegistered&&JC.forEach((function(t){e._triggerElement.removeEventListener(t,e,GC)})))}}]),e}(),ZC=new et("mat-ripple-global-options"),$C=((jC=function(){function e(t,i,n,r,o){_(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new QC(this,i,t,n)}return w(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||jC)(Va(nu),Va(Xc),Va(G_),Va(ZC,8),Va(iC,8))},jC.\u0275dir=Pt({type:jC,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Ss("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),jC),eS=((qC=function e(){_(this,e)}).\u0275mod=Rt({type:qC}),qC.\u0275inj=Se({factory:function(e){return new(e||qC)},imports:[[pC,X_],pC]}),qC),tS=((HC=function e(t){_(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||HC)(Va(iC,8))},HC.\u0275cmp=Lt({type:HC,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Ss("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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),HC),iS=((BC=function e(){_(this,e)}).\u0275mod=Rt({type:BC}),BC.\u0275inj=Se({factory:function(e){return new(e||BC)}}),BC),nS=gC((function e(){_(this,e)})),rS=0,oS=((YC=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-"+rS++,e}return i}(nS)).\u0275fac=function(e){return aS(e||YC)},YC.\u0275cmp=Lt({type:YC,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(e,t){2&e&&(ja("aria-disabled",t.disabled.toString())("aria-labelledby",t._labelId),Ss("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[La],ngContentSelectors:aC,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(fs(oC),Qa(0,"label",0),Bs(1),ps(2),Za(),ps(3,1)),2&e&&(Xa("id",t._labelId),Br(1),qs("",t.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),YC),aS=Dn(oS),sS=0,uS=function e(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_(this,e),this.source=t,this.isUserInput=i},cS=new et("MAT_OPTION_PARENT_COMPONENT"),lS=((WC=function(){function e(t,i,n,r){_(this,e),this._element=t,this._changeDetectorRef=i,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+sS++,this.onSelectionChange=new rc,this._stateChanges=new H}return w(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Gb(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new uS(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=Xy(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||WC)(Va(nu),Va(ua),Va(cS,8),Va(oS,8))},WC.\u0275cmp=Lt({type:WC,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&as("click",(function(){return t._selectViaInteraction()}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&(Ws("id",t.id),ja("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Ss("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:cC,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(fs(),Ua(0,sC,1,2,"mat-pseudo-checkbox",0),Qa(1,"span",1),ps(2),Za(),$a(3,"div",2)),2&e&&(Xa("ngIf",t.multiple),Br(3),Xa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Uh,$C,tS],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),WC);function hS(e,t,i){if(i.length){for(var n=t.toArray(),r=i.toArray(),o=0,a=0;ai+n?Math.max(0,r-n+t):i}var fS,pS=((fS=function e(){_(this,e)}).\u0275mod=Rt({type:fS}),fS.\u0275inj=Se({factory:function(e){return new(e||fS)},imports:[[eS,Ud,iS]]}),fS),gS=new et("mat-label-global-options");function mS(e,t){}var vS=function e(){_(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},yS={dialogContainer:xA("dialogContainer",[IA("void, exit",PA({opacity:0,transform:"scale(0.7)"})),IA("enter",PA({transform:"none"})),FA("* => enter",DA("150ms cubic-bezier(0, 0, 0.2, 1)",PA({transform:"none",opacity:1}))),FA("* => void, * => exit",DA("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",PA({opacity:0})))])};function _S(){throw Error("Attempting to attach dialog content after content is already attached")}var bS,wS,AS,kS,MS,CS,SS=((bS=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s;return _(this,i),(s=t.call(this))._elementRef=e,s._focusTrapFactory=n,s._changeDetectorRef=r,s._config=a,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new rc,s.attachDomPortal=function(e){return s._portalOutlet.hasAttached()&&_S(),s._setupFocusTrap(),s._portalOutlet.attachDomPortal(e)},s._ariaLabelledBy=a.ariaLabelledBy||null,s._document=o,s}return w(i,[{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached()&&_S(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached()&&_S(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._focusTrap.focusInitialElement()||this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,i=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==i&&!i.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){var e=this;this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()})))}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}},{key:"_onAnimationDone",value:function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(Wb)).\u0275fac=function(e){return new(e||bS)(Va(nu),Va(cA),Va(ua),Va(Tl,8),Va(vS))},bS.\u0275cmp=Lt({type:bS,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var i;1&e&&mc(Kb,!0),2&e&&gc(i=Ac())&&(t._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ss("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(ja("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Us("@dialogContainer",t._state))},features:[La],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Ua(0,mS,0,0,"ng-template",0)},directives:[Kb],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[yS.dialogContainer]}}),bS),TS=0,ES=function(){function e(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+TS++;_(this,e),this._overlayRef=t,this._containerInstance=i,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new H,this._afterClosed=new H,this._beforeClosed=new H,this._state=0,i._id=r,i._animationStateChanged.pipe(jf((function(e){return"done"===e.phaseName&&"enter"===e.toState})),Dg(1)).subscribe((function(){n._afterOpened.next(),n._afterOpened.complete()})),i._animationStateChanged.pipe(jf((function(e){return"done"===e.phaseName&&"exit"===e.toState})),Dg(1)).subscribe((function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()})),t.detachments().subscribe((function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()})),t.keydownEvents().pipe(jf((function(e){return 27===e.keyCode&&!n.disableClose&&!Gb(e)}))).subscribe((function(e){e.preventDefault(),n.close()})),t.backdropClick().subscribe((function(){n.disableClose?n._containerInstance._recaptureFocus():n.close()}))}return w(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(jf((function(e){return"start"===e.phaseName})),Dg(1)).subscribe((function(i){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){return t._finishDialogClose()}),i.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}(),LS=new et("MatDialogData"),zS=new et("mat-dialog-default-options"),xS=new et("mat-dialog-scroll-strategy"),DS={provide:xS,deps:[Ew],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},RS=((CS=function(){function e(t,i,n,r,o,a,s){var u=this;_(this,e),this._overlay=t,this._injector=i,this._defaultOptions=r,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new H,this._afterOpenedAtThisLevel=new H,this._ariaHiddenElements=new Map,this.afterAllClosed=mg((function(){return u.openDialogs.length?u._afterAllClosed:u._afterAllClosed.pipe(Ig(void 0))})),this._scrollStrategy=o}return w(e,[{key:"open",value:function(e,t){var i=this;if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new vS)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var n=this._createOverlay(t),r=this._attachDialogContainer(n,t),o=this._attachDialogContent(e,r,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe((function(){return i._removeOpenDialog(o)})),this.afterOpened.next(o),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new rw({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var i=Ca.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:vS,useValue:t}]}),n=new qb(SS,t.viewContainerRef,i,t.componentFactoryResolver);return e.attach(n).instance}},{key:"_attachDialogContent",value:function(e,t,i,n){var r=new ES(i,t,n.id);if(e instanceof Tu)t.attachTemplatePortal(new jb(e,null,{$implicit:n.data,dialogRef:r}));else{var o=this._createInjector(n,r,t),a=t.attachComponentPortal(new qb(e,n.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}},{key:"_createInjector",value:function(e,t,i){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:SS,useValue:i},{provide:LS,useValue:e.data},{provide:ES,useValue:t}];return!e.direction||n&&n.get(ob,null)||r.push({provide:ob,useValue:{value:e.direction,change:Hf()}}),Ca.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,i=t.length-1;i>-1;i--){var n=t[i];n===e||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||CS)(ct(Ew),ct(Ca),ct(Vl,8),ct(zS,8),ct(xS),ct(CS,12),ct(fw))},CS.\u0275prov=Ce({token:CS,factory:CS.\u0275fac}),CS),OS=0,PS=((MS=function(){function e(t,i,n){_(this,e),this.dialogRef=t,this._elementRef=i,this._dialog=n,this.type="button"}return w(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=BS(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}}]),e}()).\u0275fac=function(e){return new(e||MS)(Va(ES,8),Va(nu),Va(RS))},MS.\u0275dir=Pt({type:MS,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&as("click",(function(){return t.dialogRef.close(t.dialogResult)})),2&e&&ja("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Gt]}),MS),IS=((kS=function(){function e(t,i,n){_(this,e),this._dialogRef=t,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-"+OS++}return w(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=BS(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)}))}}]),e}()).\u0275fac=function(e){return new(e||kS)(Va(ES,8),Va(nu),Va(RS))},kS.\u0275dir=Pt({type:kS,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Ws("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),kS),NS=((AS=function e(){_(this,e)}).\u0275fac=function(e){return new(e||AS)},AS.\u0275dir=Pt({type:AS,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),AS),FS=((wS=function e(){_(this,e)}).\u0275fac=function(e){return new(e||wS)},wS.\u0275dir=Pt({type:wS,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),wS);function BS(e,t){for(var i=e.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?t.find((function(e){return e.id===i.id})):null}var HS,qS=((HS=function e(){_(this,e)}).\u0275mod=Rt({type:HS}),HS.\u0275inj=Se({factory:function(e){return new(e||HS)},providers:[RS,DS],imports:[[Ow,Vb,pC],pC]}),HS),jS=a("etrl"),YS=[5,10,25,100,1e3,1e4];function WS(e){var t="";return e&&null!==e.userAttributes&&(e.userAttributes.forEach((function(e){"preferredMail"===e.friendlyName&&(t=e.value)})),t&&0===t.length&&null!==e.memberAttributes&&e.memberAttributes.forEach((function(e){"mail"===e.friendlyName&&null!==e.value&&(t=e.value)}))),t}function US(e){var t="";return e&&e.userAttributes&&e.userAttributes.filter((function(e){return"login-namespace"===e.baseFriendlyName})).filter((function(e){return null!==e.value})).forEach((function(e){t+=e.friendlyNameParameter+": "+e.value+", "})),t.endsWith(", ")&&(t=t.substring(0,t.length-2)),t}function KS(e){var t="";return null!==e.titleBefore&&(t+=e.titleBefore+" "),null!==e.firstName&&(t+=e.firstName+" "),null!==e.middleName&&(t+=e.middleName+" "),null!==e.lastName&&(t+=e.lastName+" "),null!==e.titleAfter&&(t+=e.titleAfter+" "),t.endsWith(" ")&&(t=t.substring(0,t.length-1)),t}function VS(e){var t,i="",n=s(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;"technical"===r.type&&(i+=r.name+", ")}}catch(o){n.e(o)}finally{n.f()}return i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function GS(e,t){var i=t.find((function(t){return t.id===e}));return i?i.parentGroupId?GS(i.parentGroupId,t).concat(i):[i]:[]}function XS(e,t){var i,n=s(e);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.namespace+":"+r.friendlyName===t)return r}}catch(o){n.e(o)}finally{n.f()}return null}function JS(){var e=new vS;return e.disableClose=!0,e.autoFocus=!1,e}function QS(e){return"virt"===e.namespace.split(":")[4]}function ZS(e,t){return"valid"!==e.toLowerCase()||t&&"valid"!==e.toLowerCase()?"invalid"===e.toLowerCase()||t&&"invalid"===e.toLowerCase()?"INACTIVE":e:"ACTIVE"}function $S(e){var t="";return e&&null!==e.memberAttributes&&(e.memberAttributes.forEach((function(e){"organization"===e.friendlyName&&null!==e.value&&(t=e.value)})),0===t.length&&null!==e.userAttributes&&e.userAttributes.forEach((function(e){"organization"===e.friendlyName&&(t=e.value)}))),t}function eT(e){var t=e.attributes.find((function(e){return"groupMembershipExpiration"===e.baseFriendlyName}));return t&&t.value?t.value:"Never"}function tT(e,t,i,n){var r=t.active,o=t.direction;return r&&""!==o?e.sort((function(e,t){var a=i(e,r,n),s=i(t,r,n);return new Intl.Collator("cs",{numeric:!0}).compare(a,s)*("asc"===o?1:-1)})):e}function iT(e,t,i,n,r){t=t.toLowerCase();var o="";return i.forEach((function(t){o+=";"+n(e,t,r)})),-1!==o.toLowerCase().indexOf(t)}function nT(e,t,i,n){var r=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return t=t.filter((function(e){return!o.includes(e)})),e.forEach((function(e){var o={};t.forEach((function(t){var r;o[t]=(null!==(r=i(e,t,n))&&void 0!==r?r:"").split('"').join("''").trim()})),r.push(o)})),r}function rT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(t){case"csv":var n=function(e,t){return null===t?"":t},r=Object.keys(e[0]),o=e.map((function(e){return r.map((function(t){return JSON.stringify(e[t],n)})).join(",")}));o.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var a=o.join("\r\n"),s=new Blob([a],{type:"text/csv"});Object(jS.saveAs)(s,"".concat(i,".").concat(t))}}function oT(){for(var e=arguments.length,t=new Array(e),i=0;i5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=arguments.length>8?arguments[8]:void 0;_(this,e),this.store=t,this.currentLoader=i,this.compiler=n,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=s,this.extend=u,this.pending=!1,this._onTranslationChange=new rc,this._onLangChange=new rc,this._onDefaultLangChange=new rc,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}return w(e,[{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var i=this.retrieveTranslations(e);void 0!==i?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(Dg(1)).subscribe((function(i){t.changeDefaultLang(e)}))):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Hf(this.translations[e]);var i=this.retrieveTranslations(e);return void 0!==i?(this.currentLang||(this.currentLang=e),i.pipe(Dg(1)).subscribe((function(i){t.changeLang(e)})),i):(this.changeLang(e),Hf(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var i=this.currentLoader.getTranslation(e).pipe(q_(1),Dg(1));return this.loadingTranslations=i.pipe(Q((function(i){return t.compiler.compileTranslations(i,e)})),q_(1),Dg(1)),this.loadingTranslations.subscribe({next:function(i){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},i),t.translations[e]):i,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),i}},{key:"setTranslation",value:function(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i=this.compiler.compileTranslations(i,e),this.translations[e]=(n||this.extend)&&this.translations[e]?function e(i,n){var r=Object.assign({},i);return mT(i)&&mT(n)&&Object.keys(n).forEach((function(o){mT(n[o])&&o in i?r[o]=e(i[o],n[o]):Object.assign(r,t({},o,n[o]))})),r}(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach((function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)}))}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,i){var n;if(t instanceof Array){var r,o={},a=!1,u=s(t);try{for(u.s();!(r=u.n()).done;){var c=r.value;o[c]=this.getParsedResult(e,c,i),g_(o[c])&&(a=!0)}}catch(h){u.e(h)}finally{u.f()}return a?oT(t.map((function(e){return g_(o[e])?o[e]:Hf(o[e])}))).pipe(Q((function(e){var i={};return e.forEach((function(e,n){i[t[n]]=e})),i}))):o}if(e&&(n=this.parser.interpolate(this.parser.getValue(e,t),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),i)),void 0===n){var l={key:t,translateService:this};void 0!==i&&(l.interpolateParams=i),n=this.missingTranslationHandler.handle(l)}return void 0!==n?n:t}},{key:"get",value:function(e,t){var i=this;if(!gT(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(qf((function(n){return g_(n=i.getParsedResult(n,e,t))?n:Hf(n)})));var n=this.getParsedResult(this.translations[this.currentLang],e,t);return g_(n)?n:Hf(n)}},{key:"getStreamOnTranslationChange",value:function(e,t){var i=this;if(!gT(e)||!e.length)throw new Error('Parameter "key" required');return Pg(mg((function(){return i.get(e,t)})),this.onTranslationChange.pipe(Lg((function(n){var r=i.getParsedResult(n.translations,e,t);return"function"==typeof r.subscribe?r:Hf(r)}))))}},{key:"stream",value:function(e,t){var i=this;if(!gT(e)||!e.length)throw new Error('Parameter "key" required');return Pg(mg((function(){return i.get(e,t)})),this.onLangChange.pipe(Lg((function(n){var r=i.getParsedResult(n.translations,e,t);return g_(r)?r:Hf(r)}))))}},{key:"instant",value:function(e,t){if(!gT(e)||!e.length)throw new Error('Parameter "key" required');var i=this.getParsedResult(this.translations[this.currentLang],e,t);if(g_(i)){if(e instanceof Array){var n={};return e.forEach((function(t,i){n[e[i]]=e[i]})),n}return e}return i}},{key:"set",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[i][e]=this.compiler.compile(t,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}},{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}}]),e}()).\u0275fac=function(e){return new(e||AT)(ct(IT),ct(cT),ct(RT),ct(zT),ct(dT),ct(FT),ct(NT),ct(HT),ct(BT))},AT.\u0275prov=Ce({token:AT,factory:AT.\u0275fac}),AT),jT=((wT=function(){function e(t,i,n){var r=this;_(this,e),this.translateService=t,this.element=i,this._ref=n,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe((function(e){e.lang===r.translateService.currentLang&&r.checkNodes(!0,e.translations)}))),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe((function(e){r.checkNodes(!0,e.translations)}))),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe((function(e){r.checkNodes(!0)})))}return w(e,[{key:"ngAfterViewChecked",value:function(){this.checkNodes()}},{key:"checkNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,i=this.element.nativeElement.childNodes;i.length||(this.setContent(this.element.nativeElement,this.key),i=this.element.nativeElement.childNodes);for(var n=0;n1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:cT,useClass:lT},t.compiler||{provide:RT,useClass:OT},t.parser||{provide:zT,useClass:xT},t.missingTranslationHandler||{provide:dT,useClass:fT},IT,{provide:NT,useValue:t.isolate},{provide:FT,useValue:t.useDefaultLang},{provide:HT,useValue:t.extend},{provide:BT,useValue:t.defaultLanguage},qT]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:cT,useClass:lT},t.compiler||{provide:RT,useClass:OT},t.parser||{provide:zT,useClass:xT},t.missingTranslationHandler||{provide:dT,useClass:fT},{provide:NT,useValue:t.isolate},{provide:FT,useValue:t.useDefaultLang},{provide:HT,useValue:t.extend},{provide:BT,useValue:t.defaultLanguage},qT]}}}]),e}()).\u0275mod=Rt({type:_T}),_T.\u0275inj=Se({factory:function(e){return new(e||_T)}}),_T),UT=["mat-button",""],KT=["*"],VT=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n",GT=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],XT=mC(gC(vC((function e(t){_(this,e),this._elementRef=t})))),JT=((LT=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;_(this,i),(o=t.call(this,e))._focusMonitor=n,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,u=s(GT);try{for(u.s();!(a=u.n()).done;){var c=a.value;o._hasHostAttributes(c)&&o._getHostElement().classList.add(c)}}catch(l){u.e(l)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),o._focusMonitor.monitor(o._elementRef,!0),o.isRoundButton&&(o.color="accent"),o}return w(i,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,i=this._sanitizer.sanitize(yr.RESOURCE_URL,e);if(!i)throw oE(e);var n=this._cachedIconsByUrl.get(i);return n?Hf(lE(n)):this._loadSvgIconFromConfig(new uE(e)).pipe(Ug((function(e){return t._cachedIconsByUrl.set(i,e)})),Q((function(e){return lE(e)})))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=hE(t,e),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):D_(rE(i))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgElement?Hf(lE(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(Ug((function(t){return e.svgElement=t})),Q((function(e){return lE(e)})))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var i=this,n=this._extractIconWithNameFromAnySet(e,t);return n?Hf(n):oT(t.filter((function(e){return!e.svgElement})).map((function(e){return i._loadSvgIconSetFromConfig(e).pipe(Hg((function(t){var n="Loading icon set URL: ".concat(i._sanitizer.sanitize(yr.RESOURCE_URL,e.url)," failed: ").concat(t.message);return i._errorHandler?i._errorHandler.handleError(new Error(n)):console.error(n),Hf(null)})))}))).pipe(Q((function(){var n=i._extractIconWithNameFromAnySet(e,t);if(!n)throw rE(e);return n})))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var i=t.length-1;i>=0;i--){var n=t[i];if(n.svgElement){var r=this._extractSvgIconFromSet(n.svgElement,e,n.options);if(r)return r}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchUrl(e.url).pipe(Q((function(i){return t._createSvgElementForSingleIcon(i,e.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(e){var t=this;return e.svgElement?Hf(e.svgElement):this._fetchUrl(e.url).pipe(Q((function(i){return e.svgElement||(e.svgElement=t._svgElementFromString(i)),e.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(e,t){var i=this._svgElementFromString(e);return this._setSvgAttributes(i,t),i}},{key:"_extractSvgIconFromSet",value:function(e,t,i){var n=e.querySelector('[id="'.concat(t,'"]'));if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,i)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var i=t.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),i=e.attributes,n=0;n1&&void 0!==arguments[1]?arguments[1]: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)}},{key:"showError",value:function(e,t,i,n,r){this.addNotification.emit({type:"error",error:t,description:i,title:e,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(e,t,i,n){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===i&&void 0!==t?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),e}()).\u0275fac=function(e){return new(e||_E)(ct(qT))},_E.\u0275prov=Ce({token:_E,factory:_E.\u0275fac,providedIn:"root"}),_E),RE=((yE=function(){function e(){_(this,e),this.handleNextError=!0}return w(e,[{key:"dontHandleErrorForNext",value:function(){this.handleNextError=!1}},{key:"shouldHandleError",value:function(){var e=this.handleNextError;return this.handleNextError=!0,e}}]),e}()).\u0275fac=function(e){return new(e||yE)},yE.\u0275prov=Ce({token:yE,factory:yE.\u0275fac,providedIn:"root"}),yE),OE=((vE=function(){function e(t,i,n,r,o,a){_(this,e),this.authService=t,this.apiRequestConfiguration=i,this.notificator=n,this.store=r,this.dialog=o,this.initAuthService=a}return w(e,[{key:"intercept",value:function(e,t){var i=this,n=this.store.get("api_url");if(-1!==e.url.indexOf("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==n&&-1!==e.url.toString().indexOf(n)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){var r=JS();r.width="450px",this.dialog.open($T,r)}e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var o=this.apiRequestConfiguration.shouldHandleError(),a="POST"===e.method&&!this.store.skipOidc();return t.handle(e).pipe(Ug((function(e){e instanceof rp&&a&&i.initAuthService.loadPrincipal()}),(function(t){var n=i.formatErrors(t,e);return void 0===n?D_(t):o?void i.notificator.showRPCError(n):D_(n)})))}},{key:"formatErrors",value:function(e,t){var i;if(console.error(e),e.error.errorId?i=e.error:e.errorId&&(i=JSON.parse(e.error)),void 0!==i)return i.call=t.url,i.payload=t.body,i}}]),e}()).\u0275fac=function(e){return new(e||vE)(ct(eE),ct(RE),ct(DE),ct(Gy),ct(RS),ct(iE))},vE.\u0275prov=Ce({token:vE,factory:vE.\u0275fac}),vE),PE=((mE=function(){function e(){_(this,e),this.notificationData=[],this.newNotificationsCount=0}return w(e,[{key:"storeNotification",value:function(e){this.newNotificationsCount++,this.notificationData.push(e)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),e}()).\u0275fac=function(e){return new(e||mE)},mE.\u0275prov=Ce({token:mE,factory:mE.\u0275fac,providedIn:"root"}),mE),IE=((gE=function(){function e(t,i,n,r){_(this,e),this.http=t,this.notificator=i,this.authService=n,this.storeService=r}return w(e,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(e,t,i,n){var r=e.error;return r.call=t,r.payload=i,n&&this.notificator.showRPCError(e.error),D_(r)}},{key:"getHeaders",value:function(){var e=new Vf;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(e){var t=this,i=(arguments.length>1&&void 0!==arguments[1]||new Jf,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),n="".concat(this.getApiUrl()).concat(e);return this.http.get(n,{headers:this.getHeaders()}).pipe(Hg((function(e){return t.formatErrors(e,n,null,i)})))}},{key:"put",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),o=JSON.stringify(i);return this.http.put(r,o,{headers:this.getHeaders()}).pipe(Hg((function(e){return t.formatErrors(e,r,o,n)})))}},{key:"post",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),o=JSON.stringify(i),a=this.getHeaders();return a=a.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,o,{headers:a}).pipe(Hg((function(e){return t.formatErrors(e,r,o,n)})))}},{key:"delete",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="".concat(this.getApiUrl()).concat(e);return this.http.delete(n,{headers:this.getHeaders()}).pipe(Hg((function(e){return t.formatErrors(e,n,null,i)})))}}]),e}()).\u0275fac=function(e){return new(e||gE)(ct(zp),ct(DE),ct(eE),ct(Gy))},gE.\u0275prov=Ce({token:gE,factory:gE.\u0275fac,providedIn:"root"}),gE),NE=((pE=function(){function e(t){var i=this;_(this,e),this.router=t,this.lastState="forward",this.history=new Set,t.events.subscribe((function(e){e instanceof Zg&&("popstate"===e.navigationTrigger?i.history.has(e.restoredState.navigationId)?(i.lastState="back",i.history.delete(e.restoredState.navigationId)):(i.lastState="forward",i.history.add(e.id)):(i.history.add(e.id),i.lastState="forward"))}))}return w(e,[{key:"forceNavigate",value:function(e,t){if(null!==e){var i="";e.forEach((function(e){return i+="/"+e})),i.length>0&&(i=i.substring(1)),void 0===t&&(t={}),t.queryParams={redirectTo:i},this.router.navigate(["redirect"],t)}}},{key:"getLastState",value:function(){return this.lastState}}]),e}()).\u0275fac=function(e){return new(e||pE)(ct(my))},pE.\u0275prov=Ce({token:pE,factory:pE.\u0275fac,providedIn:"root"}),pE),FE=((fE=function(){function e(){_(this,e)}return w(e,[{key:"isAllSelectedWithDisabledCheckbox",value:function(e,t,i,n,r,o,a,s){var u=this;return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=r*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===t?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,a).forEach((function(e){u.pageStart<=u.pageIterator&&u.pageIterator3&&void 0!==arguments[3])||arguments[3];_(this,e),this._isNativeHtmlTable=t,this._stickCellCss=i,this.direction=n,this._isBrowser=r}return w(e,[{key:"clearStickyPositioning",value:function(e,t){var i,n=s(e);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.nodeType===r.ELEMENT_NODE){this._removeStickyStyle(r,t);for(var o=0;o0;r--)t[r]&&(i[r]=n,n+=e[r]);return i}}]),e}();function OL(e){return Error('Could not find column with id "'.concat(e,'".'))}var PL,IL,NL,FL,BL=((FL=function e(t,i){_(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||FL)(Va(Lu),Va(nu))},FL.\u0275dir=Pt({type:FL,selectors:[["","rowOutlet",""]]}),FL),HL=((NL=function e(t,i){_(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||NL)(Va(Lu),Va(nu))},NL.\u0275dir=Pt({type:NL,selectors:[["","headerRowOutlet",""]]}),NL),qL=((IL=function e(t,i){_(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||IL)(Va(Lu),Va(nu))},IL.\u0275dir=Pt({type:IL,selectors:[["","footerRowOutlet",""]]}),IL),jL=((PL=function(){function e(t,i,n,r,o,a,s){_(this,e),this._differs=t,this._changeDetectorRef=i,this._elementRef=n,this._dir=o,this._platform=s,this._onDestroy=new H,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new ug({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return w(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(t,i){return e.trackBy?e.trackBy(i.dataIndex,i.data):i}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),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._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),cb(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var i=this._rowOutlet.viewContainer;t.forEachOperation((function(t,n,r){if(null==t.previousIndex)e._insertRow(t.item,r);else if(null==r)i.remove(n);else{var o=i.get(n);i.move(o,r)}})),this._updateRowIndexContext(),t.forEachIdentityChange((function(e){i.get(e.currentIndex).context.$implicit=e.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(e){this._customHeaderRowDefs=new Set([e]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(e){this._customFooterRowDefs=new Set([e]),this._footerRowDefChanged=!0}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var i=this._headerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var i=this._footerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(o(t),o(i),o(n)),["left","right"]),t.forEach((function(t,i){e._addStickyColumnStyles([t],e._headerRowDefs[i])})),this._rowDefs.forEach((function(t){for(var n=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()};this._rowDefs.reduce(e,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(e,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(e,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(e){this._data=[],cb(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}},{key:"_observeRenderChanges",value:function(){var e=this;if(this.dataSource){var t;if(cb(this.dataSource)?t=this.dataSource.connect(this):g_(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Hf(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(C_(this._onDestroy)).subscribe((function(t){e._data=t||[],e.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(t,i){return e._renderRow(e._headerRowOutlet,t,i)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(t,i){return e._renderRow(e._footerRowOutlet,t,i)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var i=this,n=Array.from(t.columns||[]).map((function(e){var t=i._columnDefsByName.get(e);if(!t)throw OL(e);return t})),r=n.map((function(e){return e.sticky})),o=n.map((function(e){return e.stickyEnd}));this._stickyStyler.updateStickyColumns(e,r,o)}},{key:"_getRenderedRows",value:function(e){for(var t=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{};e.viewContainer.createEmbeddedView(t.template,n,i);var r,o=s(this._getCellTemplates(t));try{for(o.s();!(r=o.n()).done;){var a=r.value;EL.mostRecentCellOutlet&&EL.mostRecentCellOutlet._viewContainer.createEmbeddedView(a,n)}}catch(u){o.e(u)}finally{o.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,i=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return _(this,n),(e=t.call(this))._renderData=new ug([]),e._filter=new ug(""),e._internalPageChanges=new H,e._renderChangesSubscription=S.EMPTY,e.sortingDataAccessor=function(e,t){var i=e[t];if(Qy(i)){var n=Number(i);return n<9007199254740991?n:i}return i},e.sortData=function(t,i){var n=i.active,r=i.direction;return n&&""!=r?t.sort((function(t,i){var o=e.sortingDataAccessor(t,n),a=e.sortingDataAccessor(i,n),s=0;return null!=o&&null!=a?o>a?s=1:o0)){var n=Math.ceil(i.length/i.pageSize)-1||0,r=Math.min(i.pageIndex,n);r!==i.pageIndex&&(i.pageIndex=r,t._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}}]),n}(ub),Yz=["underline"],Wz=["connectionContainer"],Uz=["inputContainer"],Kz=["label"];function Vz(e,t){1&e&&(es(0),Qa(1,"div",14),$a(2,"div",15),$a(3,"div",16),$a(4,"div",17),Za(),Qa(5,"div",18),$a(6,"div",15),$a(7,"div",16),$a(8,"div",17),Za(),ts())}function Gz(e,t){1&e&&(Qa(0,"div",19),ps(1,1),Za())}function Xz(e,t){if(1&e&&(es(0),ps(1,2),Qa(2,"span"),Bs(3),Za(),ts()),2&e){var i=hs(2);Br(3),Hs(i._control.placeholder)}}function Jz(e,t){1&e&&ps(0,3,["*ngSwitchCase","true"])}function Qz(e,t){1&e&&(Qa(0,"span",23),Bs(1," *"),Za())}function Zz(e,t){if(1&e){var i=ns();Qa(0,"label",20,21),as("cdkObserveContent",(function(){return _i(i),hs().updateOutlineGap()})),Ua(2,Xz,4,1,"ng-container",12),Ua(3,Jz,1,0,"ng-content",12),Ua(4,Qz,2,0,"span",22),Za()}if(2&e){var n=hs();Ss("mat-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),Xa("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),ja("for",n._control.id)("aria-owns",n._control.id),Br(2),Xa("ngSwitchCase",!1),Br(1),Xa("ngSwitchCase",!0),Br(1),Xa("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function $z(e,t){1&e&&(Qa(0,"div",24),ps(1,4),Za())}function ex(e,t){if(1&e&&(Qa(0,"div",25,26),$a(2,"span",27),Za()),2&e){var i=hs();Br(2),Ss("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function tx(e,t){1&e&&(Qa(0,"div"),ps(1,5),Za()),2&e&&Xa("@transitionMessages",hs()._subscriptAnimationState)}function ix(e,t){if(1&e&&(Qa(0,"div",31),Bs(1),Za()),2&e){var i=hs(2);Xa("id",i._hintLabelId),Br(1),Hs(i.hintLabel)}}function nx(e,t){if(1&e&&(Qa(0,"div",28),Ua(1,ix,2,2,"div",29),ps(2,6),$a(3,"div",30),ps(4,7),Za()),2&e){var i=hs();Xa("@transitionMessages",i._subscriptAnimationState),Br(1),Xa("ngIf",i.hintLabel)}}var rx,ox,ax=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],sx=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],ux=0,cx=((rx=function e(){_(this,e),this.id="mat-error-"+ux++}).\u0275fac=function(e){return new(e||rx)},rx.\u0275dir=Pt({type:rx,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&ja("id",t.id)},inputs:{id:"id"}}),rx),lx={transitionMessages:xA("transitionMessages",[IA("enter",PA({opacity:1,transform:"translateY(0%)"})),FA("void => enter",[PA({opacity:0,transform:"translateY(-100%)"}),DA("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},hx=((ox=function e(){_(this,e)}).\u0275fac=function(e){return new(e||ox)},ox.\u0275dir=Pt({type:ox}),ox);function dx(e){return Error("A hint was already declared for 'align=\"".concat(e,"\"'."))}var fx,px,gx,mx,vx,yx,_x,bx,wx,Ax,kx,Mx,Cx,Sx=0,Tx=((vx=function e(){_(this,e),this.align="start",this.id="mat-hint-"+Sx++}).\u0275fac=function(e){return new(e||vx)},vx.\u0275dir=Pt({type:vx,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(ja("id",t.id)("align",null),Ss("mat-right","end"==t.align))},inputs:{align:"align",id:"id"}}),vx),Ex=((mx=function e(){_(this,e)}).\u0275fac=function(e){return new(e||mx)},mx.\u0275dir=Pt({type:mx,selectors:[["mat-label"]]}),mx),Lx=((gx=function e(){_(this,e)}).\u0275fac=function(e){return new(e||gx)},gx.\u0275dir=Pt({type:gx,selectors:[["mat-placeholder"]]}),gx),zx=((px=function e(){_(this,e)}).\u0275fac=function(e){return new(e||px)},px.\u0275dir=Pt({type:px,selectors:[["","matPrefix",""]]}),px),xx=((fx=function e(){_(this,e)}).\u0275fac=function(e){return new(e||fx)},fx.\u0275dir=Pt({type:fx,selectors:[["","matSuffix",""]]}),fx),Dx=0,Rx=mC((function e(t){_(this,e),this._elementRef=t}),"primary"),Ox=new et("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Px=new et("MatFormField"),Ix=((_x=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u,c){var l;return _(this,i),(l=t.call(this,e))._elementRef=e,l._changeDetectorRef=n,l._dir=o,l._defaults=a,l._platform=s,l._ngZone=u,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new H,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+Dx++,l._labelId="mat-form-field-label-"+Dx++,l._labelOptions=r||{},l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==c,l.appearance=a&&a.appearance?a.appearance:"legacy",l._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,l}return w(i,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Ig(null)).subscribe((function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(C_(this._destroyed)).subscribe((function(){return e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(C_(e._destroyed)).subscribe((function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()}))})),se(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Ig(null)).subscribe((function(){e._processHints(),e._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Ig(null)).subscribe((function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(C_(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e.updateOutlineGap()}))})):e.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,t_(this._label.nativeElement,"transitionend").pipe(Dg(1)).subscribe((function(){e._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var e,t,i=this;this._hintChildren&&this._hintChildren.forEach((function(n){if("start"===n.align){if(e||i.hintLabel)throw dx("start");e=n}else if("end"===n.align){if(t)throw dx("end");t=n}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find((function(e){return"start"===e.align})):null,i=this._hintChildren?this._hintChildren.find((function(e){return"end"===e.align})):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&(e=this._errorChildren.map((function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,i=0,n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=n.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var u,c=this._getStartEnd(a),l=this._getStartEnd(e.children[0].getBoundingClientRect()),h=0,d=s(e.children);try{for(d.s();!(u=d.n()).done;)h+=u.value.offsetWidth}catch(g){d.e(g)}finally{d.f()}t=Math.abs(l-c)-5,i=h>0?.75*h+10:0}for(var f=0;fe?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return Qx(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return Qx(e.value)||tD.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return Qx(t.value)||!Zx(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),i=new RegExp(n)):(n=t.toString(),i=t),function(e){if(Qx(e.value))return null;var t=e.value;return i.test(t)?null:{pattern:{requiredPattern:n,actualValue:t}}}):e.nullValidator;var i,n}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(nD);return 0==t.length?null:function(e){return oD(aD(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(nD);return 0==t.length?null:function(e){return oT(aD(e,t).map(rD)).pipe(Q(oD))}}}]),e}();function nD(e){return null!=e}function rD(e){var t=rs(e)?te(e):e;return os(t),t}function oD(e){var t={};return e.forEach((function(e){t=null!=e?Object.assign(Object.assign({},t),e):t})),0===Object.keys(t).length?null:t}function aD(e,t){return t.map((function(t){return t(e)}))}function sD(e){return e.map((function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}}))}var uD,cD,lD,hD,dD={provide:Fx,useExisting:Fe((function(){return fD})),multi:!0},fD=((uD=function(){function e(t,i){_(this,e),this._renderer=t,this._elementRef=i,this.onChange=function(e){},this.onTouched=function(){}}return w(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||uD)(Va(su),Va(nu))},uD.\u0275dir=Pt({type:uD,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&as("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[$s([dD])]}),uD),pD={provide:Fx,useExisting:Fe((function(){return mD})),multi:!0},gD=((lD=function(){function e(){_(this,e),this._accessors=[]}return w(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(i){t._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||lD)},lD.\u0275prov=Ce({token:lD,factory:lD.\u0275fac}),lD),mD=((cD=function(){function e(t,i,n,r){_(this,e),this._renderer=t,this._elementRef=i,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return w(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Vx),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}()).\u0275fac=function(e){return new(e||cD)(Va(su),Va(nu),Va(gD),Va(Ca))},cD.\u0275dir=Pt({type:cD,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&as("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[$s([pD])]}),cD),vD={provide:Fx,useExisting:Fe((function(){return yD})),multi:!0},yD=((hD=function(){function e(t,i){_(this,e),this._renderer=t,this._elementRef=i,this.onChange=function(e){},this.onTouched=function(){}}return w(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||hD)(Va(su),Va(nu))},hD.\u0275dir=Pt({type:hD,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&as("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[$s([vD])]}),hD),_D={provide:Fx,useExisting:Fe((function(){return kD})),multi:!0};function bD(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var wD,AD,kD=((AD=function(){function e(t,i){_(this,e),this._renderer=t,this._elementRef=i,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return w(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var i=bD(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(i){t.value=t._getOptionValue(i),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,i=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(i){var n=[];if(void 0!==i.selectedOptions)for(var r=i.selectedOptions,o=0;o-1&&e.splice(i,1)}function jD(e,t,i,n){Gn()&&"never"!==n&&((null!==n&&"once"!==n||t._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function YD(e){return(VD(e)?e.validators:e)||null}function WD(e){return Array.isArray(e)?PD(e):e||null}function UD(e,t){return(VD(t)?t.asyncValidators:e)||null}function KD(e){return Array.isArray(e)?ID(e):e||null}function VD(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var GD,XD,JD,QD,ZD,$D,eR,tR,iR,nR=function(){function e(t,i){_(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=i,this._composedValidatorFn=WD(this._rawValidators),this._composedAsyncValidatorFn=KD(this._rawAsyncValidators)}return w(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=WD(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=KD(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var i=rD(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe((function(i){t._hasOwnPendingAsyncValidator=!1,t.setErrors(i,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,i){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var n=e;return t.forEach((function(e){n=n instanceof oR?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof aR&&n.at(e)||null})),n}(this,e)}},{key:"getError",value:function(e,t){var i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new rc,this.statusChanges=new rc}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){VD(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),rR=function(e){d(i,e);var t=p(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _(this,i),(e=t.call(this,YD(r),UD(o,r)))._onChange=[],e._applyFormState(n),e._setUpdateStrategy(r),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return w(i,[{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==i.emitViewToModelChange)})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),i}(nR),oR=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,YD(n),UD(r,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return w(i,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(n){t._throwIfControlMissing(n),t.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(n){t.controls[n]&&t.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,i){return e[i]=t instanceof rR?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(i){return e(t.controls[i],i)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,i=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,i){if(void 0===e[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))}))}}]),i}(nR),aR=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,YD(n),UD(r,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return w(i,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,n){t._throwIfControlMissing(n),t.at(n).setValue(e,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,n){t.at(n)&&t.at(n).patchValue(e,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof rR?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,i){e(t,i)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,i){if(void 0===e[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=s(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(i){t.e(i)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),i}(nR),sR={provide:Ux,useExisting:Fe((function(){return cR}))},uR=Promise.resolve(null),cR=((XD=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new rc,r.form=new oR({},PD(e),ID(n)),r}return w(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;uR.then((function(){var i=t._findContainer(e.path);e.control=i.registerControl(e.name,e.control),DD(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;uR.then((function(){var i=t._findContainer(e.path);i&&i.removeControl(e.name),qD(t._directives,e)}))}},{key:"addFormGroup",value:function(e){var t=this;uR.then((function(){var i=t._findContainer(e.path),n=new oR({});OD(n,e),i.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;uR.then((function(){var i=t._findContainer(e.path);i&&i.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var i=this;uR.then((function(){i.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,BD(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),i}(Ux)).\u0275fac=function(e){return new(e||XD)(Va($x,10),Va(eD,10))},XD.\u0275dir=Pt({type:XD,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&as("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$s([sR]),La]}),XD),lR=((GD=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return xD(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return PD(this._validators)}},{key:"asyncValidator",get:function(){return ID(this._asyncValidators)}}]),i}(Ux)).\u0275fac=function(e){return hR(e||GD)},GD.\u0275dir=Pt({type:GD,features:[La]}),GD),hR=Dn(lR),dR={provide:Ux,useExisting:Fe((function(){return fR}))},fR=((JD=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this))._parent=e,o._validators=n,o._asyncValidators=r,o}return w(i,[{key:"_checkParentType",value:function(){}}]),i}(lR)).\u0275fac=function(e){return new(e||JD)(Va(Ux,5),Va($x,10),Va(eD,10))},JD.\u0275dir=Pt({type:JD,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[$s([dR]),La]}),JD),pR={provide:Vx,useExisting:Fe((function(){return mR}))},gR=Promise.resolve(null),mR=((ZD=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this)).control=new rR,a._registered=!1,a.update=new rc,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=HD(0,o),a}return w(i,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),ND(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){DD(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;gR.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,i=e.isDisabled.currentValue,n=""===i||i&&"false"!==i;gR.then((function(){n&&!t.control.disabled?t.control.disable():!n&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?xD(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return PD(this._rawValidators)}},{key:"asyncValidator",get:function(){return ID(this._rawAsyncValidators)}}]),i}(Vx)).\u0275fac=function(e){return new(e||ZD)(Va(Ux,9),Va($x,10),Va(eD,10),Va(Fx,10))},ZD.\u0275dir=Pt({type:ZD,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[$s([pR]),La,Gt]}),ZD),vR=((QD=function e(){_(this,e)}).\u0275fac=function(e){return new(e||QD)},QD.\u0275dir=Pt({type:QD,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),QD),yR=new et("NgModelWithFormControlWarning"),_R={provide:Vx,useExisting:Fe((function(){return bR}))},bR=(($D=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this))._ngModelWarningConfig=o,a.update=new rc,a._ngModelWarningSent=!1,a._rawValidators=e||[],a._rawAsyncValidators=n||[],a.valueAccessor=HD(0,r),a}return w(i,[{key:"ngOnChanges",value:function(e){this._isControlChanged(e)&&(DD(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),ND(e,this.viewModel)&&(jD(0,i,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return PD(this._rawValidators)}},{key:"asyncValidator",get:function(){return ID(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),i}(Vx)).\u0275fac=function(e){return new(e||$D)(Va($x,10),Va(eD,10),Va(Fx,10),Va(yR,8))},$D.\u0275dir=Pt({type:$D,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[$s([_R]),La,Gt]}),$D._ngModelWarningSentOnce=!1,$D),wR={provide:Ux,useExisting:Fe((function(){return AR}))},AR=((eR=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this))._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new rc,r}return w(i,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return DD(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){qD(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);OD(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);OD(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,BD(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach((function(t){var i=e.form.get(t.path);t.control!==i&&(function(e,t){var i=function(){};t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),i&&DD(i,t),t.control=i)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=PD(this._validators);this.form.validator=iD.compose([this.form.validator,e]);var t=ID(this._asyncValidators);this.form.asyncValidator=iD.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),i}(Ux)).\u0275fac=function(e){return new(e||eR)(Va($x,10),Va(eD,10))},eR.\u0275dir=Pt({type:eR,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&as("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$s([wR]),La,Gt]}),eR),kR={provide:Ux,useExisting:Fe((function(){return MR}))},MR=((tR=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this))._parent=e,o._validators=n,o._asyncValidators=r,o}return w(i,[{key:"_checkParentType",value:function(){TR(this._parent)}}]),i}(lR)).\u0275fac=function(e){return new(e||tR)(Va(Ux,13),Va($x,10),Va(eD,10))},tR.\u0275dir=Pt({type:tR,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[$s([kR]),La]}),tR),CR={provide:Ux,useExisting:Fe((function(){return SR}))},SR=((iR=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this))._parent=e,o._validators=n,o._asyncValidators=r,o}return w(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){TR(this._parent)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return xD(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return PD(this._validators)}},{key:"asyncValidator",get:function(){return ID(this._asyncValidators)}}]),i}(Ux)).\u0275fac=function(e){return new(e||iR)(Va(Ux,13),Va($x,10),Va(eD,10))},iR.\u0275dir=Pt({type:iR,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[$s([CR]),La]}),iR);function TR(e){return!(e instanceof MR||e instanceof AR||e instanceof SR)}var ER,LR,zR,xR,DR,RR,OR,PR,IR,NR,FR,BR,HR,qR,jR,YR,WR,UR,KR={provide:Vx,useExisting:Fe((function(){return VR}))},VR=((ER=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s;return _(this,i),(s=t.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new rc,s._ngModelWarningSent=!1,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=HD(0,o),s}return w(i,[{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),ND(e,this.viewModel)&&(jD(0,i,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return xD(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return PD(this._rawValidators)}},{key:"asyncValidator",get:function(){return ID(this._rawAsyncValidators)}}]),i}(Vx)).\u0275fac=function(e){return new(e||ER)(Va(Ux,13),Va($x,10),Va(eD,10),Va(Fx,10),Va(yR,8))},ER.\u0275dir=Pt({type:ER,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[$s([KR]),La,Gt]}),ER._ngModelWarningSentOnce=!1,ER),GR={provide:$x,useExisting:Fe((function(){return JR})),multi:!0},XR={provide:$x,useExisting:Fe((function(){return QR})),multi:!0},JR=((zR=function(){function e(){_(this,e),this._required=!1}return w(e,[{key:"validate",value:function(e){return this.required?iD.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||zR)},zR.\u0275dir=Pt({type:zR,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&ja("required",t.required?"":null)},inputs:{required:"required"},features:[$s([GR])]}),zR),QR=((LR=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"validate",value:function(e){return this.required?iD.requiredTrue(e):null}}]),i}(JR)).\u0275fac=function(e){return ZR(e||LR)},LR.\u0275dir=Pt({type:LR,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&ja("required",t.required?"":null)},features:[$s([XR]),La]}),LR),ZR=Dn(QR),$R={provide:$x,useExisting:Fe((function(){return eO})),multi:!0},eO=((xR=function(){function e(){_(this,e),this._enabled=!1}return w(e,[{key:"validate",value:function(e){return this._enabled?iD.email(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"email",set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||xR)},xR.\u0275dir=Pt({type:xR,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[$s([$R])]}),xR),tO={provide:$x,useExisting:Fe((function(){return iO})),multi:!0},iO=((DR=function(){function e(){_(this,e),this._validator=iD.nullValidator}return w(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=iD.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),e}()).\u0275fac=function(e){return new(e||DR)},DR.\u0275dir=Pt({type:DR,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&ja("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[$s([tO]),Gt]}),DR),nO={provide:$x,useExisting:Fe((function(){return rO})),multi:!0},rO=((RR=function(){function e(){_(this,e),this._validator=iD.nullValidator}return w(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=iD.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}()).\u0275fac=function(e){return new(e||RR)},RR.\u0275dir=Pt({type:RR,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&ja("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[$s([nO]),Gt]}),RR),oO={provide:$x,useExisting:Fe((function(){return aO})),multi:!0},aO=((FR=function(){function e(){_(this,e),this._validator=iD.nullValidator}return w(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=iD.pattern(this.pattern)}}]),e}()).\u0275fac=function(e){return new(e||FR)},FR.\u0275dir=Pt({type:FR,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&ja("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[$s([oO]),Gt]}),FR),sO=((NR=function e(){_(this,e)}).\u0275mod=Rt({type:NR}),NR.\u0275inj=Se({factory:function(e){return new(e||NR)}}),NR),uO=((IR=function(){function e(){_(this,e)}return w(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(e),n=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(n=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(n=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new oR(i,{asyncValidators:r,updateOn:o,validators:n})}},{key:"control",value:function(e,t,i){return new rR(e,t,i)}},{key:"array",value:function(e,t,i){var n=this,r=e.map((function(e){return n._createControl(e)}));return new aR(r,t,i)}},{key:"_reduceControls",value:function(e){var t=this,i={};return Object.keys(e).forEach((function(n){i[n]=t._createControl(e[n])})),i}},{key:"_createControl",value:function(e){return e instanceof rR||e instanceof oR||e instanceof aR?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||IR)},IR.\u0275prov=Ce({token:IR,factory:IR.\u0275fac}),IR),cO=((PR=function e(){_(this,e)}).\u0275mod=Rt({type:PR}),PR.\u0275inj=Se({factory:function(e){return new(e||PR)},providers:[gD],imports:[sO]}),PR),lO=((OR=function(){function e(){_(this,e)}return w(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:yR,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=Rt({type:OR}),OR.\u0275inj=Se({factory:function(e){return new(e||OR)},providers:[uO,gD],imports:[sO]}),OR),hO=Z_({passive:!0}),dO=((YR=function(){function e(t,i){_(this,e),this._platform=t,this._ngZone=i,this._monitoredElements=new Map}return w(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return pg;var i=e_(e),n=this._monitoredElements.get(i);if(n)return n.subject.asObservable();var r=new H,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&i.classList.contains(o)&&(i.classList.remove(o),t._ngZone.run((function(){return r.next({target:e.target,isAutofilled:!1})}))):(i.classList.add(o),t._ngZone.run((function(){return r.next({target:e.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){i.addEventListener("animationstart",a,hO),i.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(i,{subject:r,unlisten:function(){i.removeEventListener("animationstart",a,hO)}}),r.asObservable()}},{key:"stopMonitoring",value:function(e){var t=e_(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach((function(t,i){return e.stopMonitoring(i)}))}}]),e}()).\u0275fac=function(e){return new(e||YR)(ct(G_),ct(Xc))},YR.\u0275prov=Ce({factory:function(){return new YR(ct(G_),ct(Xc))},token:YR,providedIn:"root"}),YR),fO=((jR=function(){function e(t,i){_(this,e),this._elementRef=t,this._autofillMonitor=i,this.cdkAutofill=new rc}return w(e,[{key:"ngOnInit",value:function(){var e=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(t){return e.cdkAutofill.emit(t)}))}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),e}()).\u0275fac=function(e){return new(e||jR)(Va(nu),Va(dO))},jR.\u0275dir=Pt({type:jR,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),jR),pO=((qR=function(){function e(t,i,n,r){_(this,e),this._elementRef=t,this._platform=i,this._ngZone=n,this._destroyed=new H,this._enabled=!0,this._previousMinRows=-1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=i.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return w(e,[{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){t_(e._getWindow(),"resize").pipe(M_(16),C_(e._destroyed)).subscribe((function(){return e.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var 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,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(t||this._minRows!==this._previousMinRows||n!==this._previousValue){var r=i.placeholder;i.classList.add(this._measuringClass),i.placeholder="",i.style.height=i.scrollHeight-4+"px",i.classList.remove(this._measuringClass),i.placeholder=r,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return e._scrollToCaretPosition(i)})):setTimeout((function(){return e._scrollToCaretPosition(i)}))})),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,i=e.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==e||e.setSelectionRange(t,i)}},{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=Jy(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=Jy(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=Xy(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}}]),e}()).\u0275fac=function(e){return new(e||qR)(Va(nu),Va(G_),Va(Xc),Va(Tl,8))},qR.\u0275dir=Pt({type:qR,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&as("input",(function(){return t._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),qR),gO=((HR=function e(){_(this,e)}).\u0275mod=Rt({type:HR}),HR.\u0275inj=Se({factory:function(e){return new(e||HR)},imports:[[X_]]}),HR),mO=((BR=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(e){this.minRows=e}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(e){this.maxRows=e}},{key:"matAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}}]),i}(pO)).\u0275fac=function(e){return vO(e||BR)},BR.\u0275dir=Pt({type:BR,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[La]}),BR),vO=Dn(mO),yO=new et("MAT_INPUT_VALUE_ACCESSOR"),_O=["button","checkbox","file","hidden","image","radio","range","reset","submit"],bO=0,wO=_C((function e(t,i,n,r){_(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r})),AO=((UR=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u,c,l){var h;_(this,i),(h=t.call(this,s,o,a,r))._elementRef=e,h._platform=n,h.ngControl=r,h._autofillMonitor=c,h._uid="mat-input-"+bO++,h.focused=!1,h.stateChanges=new H,h.controlType="mat-input",h.autofilled=!1,h._disabled=!1,h._required=!1,h._type="text",h._readonly=!1,h._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(e){return Q_().has(e)}));var d=h._elementRef.nativeElement,f=d.nodeName.toLowerCase();return h._inputValueAccessor=u||d,h._previousNativeValue=h.value,h.id=h.id,n.IOS&&l.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))}))})),h._isServer=!h._platform.isBrowser,h._isNativeSelect="select"===f,h._isTextarea="textarea"===f,h._isNativeSelect&&(h.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),h}return w(i,[{key:"ngOnInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){if(_O.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Xy(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Xy(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Q_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=Xy(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}}]),i}(wO)).\u0275fac=function(e){return new(e||UR)(Va(nu),Va(G_),Va(Vx,10),Va(cR,8),Va(AR,8),Va(OC),Va(yO,10),Va(dO),Va(Xc))},UR.\u0275dir=Pt({type:UR,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&as("focus",(function(){return t._focusChanged(!0)}))("blur",(function(){return t._focusChanged(!1)}))("input",(function(){return t._onInput()})),2&e&&(Ws("disabled",t.disabled)("required",t.required),ja("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),Ss("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[$s([{provide:hx,useExisting:UR}]),La,Gt]}),UR),kO=((WR=function e(){_(this,e)}).\u0275mod=Rt({type:WR}),WR.\u0275inj=Se({factory:function(e){return new(e||WR)},providers:[OC],imports:[[gO,Nx],gO,Nx]}),WR);function MO(e,t){if(1&e&&(Ui(),$a(0,"circle",3)),2&e){var i=hs();Cs("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),ja("r",i._circleRadius)}}function CO(e,t){if(1&e&&(Ui(),$a(0,"circle",3)),2&e){var i=hs();Cs("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),ja("r",i._circleRadius)}}function SO(e,t){if(1&e&&(Ui(),$a(0,"circle",3)),2&e){var i=hs();Cs("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),ja("r",i._circleRadius)}}function TO(e,t){if(1&e&&(Ui(),$a(0,"circle",3)),2&e){var i=hs();Cs("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),ja("r",i._circleRadius)}}var EO,LO,zO,xO,DO,RO,OO,PO=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",IO=mC((function e(t){_(this,e),this._elementRef=t}),"primary"),NO=new et("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),FO=((zO=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s;_(this,i),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=i._diameters;return u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=n.EDGE||n.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return w(i,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=eb(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,n=i._diameters,r=n.get(e);if(!r||!r.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",t+""),o.textContent=this._getAnimationText(),e.appendChild(o),r||(r=new Set,n.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){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*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=Jy(e),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=Jy(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Jy(e)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var e=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),i}(IO)).\u0275fac=function(e){return new(e||zO)(Va(nu),Va(G_),Va(Tl,8),Va(iC,8),Va(NO))},zO.\u0275cmp=Lt({type:zO,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(ja("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),Cs("width",t.diameter,"px")("height",t.diameter,"px"),Ss("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[La],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Ui(),Qa(0,"svg",0),Ua(1,MO,1,9,"circle",1),Ua(2,CO,1,7,"circle",2),Za()),2&e&&(Cs("width",t.diameter,"px")("height",t.diameter,"px"),Xa("ngSwitch","indeterminate"===t.mode),ja("viewBox",t._viewBox),Br(1),Xa("ngSwitchCase",!0),Br(1),Xa("ngSwitchCase",!1))},directives:[id,nd],styles:[PO],encapsulation:2,changeDetection:0}),zO._diameters=new WeakMap,zO),BO=((LO=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s;return _(this,i),(s=t.call(this,e,n,r,o,a)).mode="indeterminate",s}return i}(FO)).\u0275fac=function(e){return new(e||LO)(Va(nu),Va(G_),Va(Tl,8),Va(iC,8),Va(NO))},LO.\u0275cmp=Lt({type:LO,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(Cs("width",t.diameter,"px")("height",t.diameter,"px"),Ss("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[La],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Ui(),Qa(0,"svg",0),Ua(1,SO,1,9,"circle",1),Ua(2,TO,1,7,"circle",2),Za()),2&e&&(Cs("width",t.diameter,"px")("height",t.diameter,"px"),Xa("ngSwitch","indeterminate"===t.mode),ja("viewBox",t._viewBox),Br(1),Xa("ngSwitchCase",!0),Br(1),Xa("ngSwitchCase",!1))},directives:[id,nd],styles:[PO],encapsulation:2,changeDetection:0}),LO),HO=((EO=function e(){_(this,e)}).\u0275mod=Rt({type:EO}),EO.\u0275inj=Se({factory:function(e){return new(e||EO)},imports:[[pC,Ud],pC]}),EO),qO=["input"],jO=function(){return{enterDuration:150}},YO=["*"],WO=new et("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),UO=0,KO={provide:Fx,useExisting:Fe((function(){return GO})),multi:!0},VO=function e(t,i){_(this,e),this.source=t,this.value=i},GO=((xO=function(){function e(t){_(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+UO++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new rc}return w(e,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach((function(t){t.name=e.name,t._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new VO(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(e){return e._markForCheck()}))}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Xy(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Xy(e),this._markRadiosForCheck()}}]),e}()).\u0275fac=function(e){return new(e||xO)(Va(ua))},xO.\u0275dir=Pt({type:xO,selectors:[["mat-radio-group"]],contentQueries:function(e,t,i){var n;1&e&&_c(i,QO,!0),2&e&&gc(n=Ac())&&(t._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[$s([KO])]}),xO),XO=vC(yC((function e(t){_(this,e),this._elementRef=t}))),JO=((RO=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u){var c;return _(this,i),(c=t.call(this,n))._changeDetector=r,c._focusMonitor=o,c._radioDispatcher=a,c._animationMode=s,c._providerOverride=u,c._uniqueId="mat-radio-"+ ++UO,c.id=c._uniqueId,c.change=new rc,c._checked=!1,c._value=null,c._removeUniqueSelectionListener=function(){},c.radioGroup=e,c._removeUniqueSelectionListener=a.listen((function(e,t){e!==c.id&&t===c.name&&(c.checked=!1)})),c}return w(i,[{key:"focus",value:function(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){!t&&e.radioGroup&&e.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new VO(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(e){var t=Xy(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())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(Xy(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=Xy(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return(this.id||this._uniqueId)+"-input"}}]),i}(XO)).\u0275fac=function(e){return new(e||RO)(Va(GO,8),Va(nu),Va(ua),Va(wA),Va(fb),Va(iC,8),Va(WO,8))},RO.\u0275dir=Pt({type:RO,viewQuery:function(e,t){var i;1&e&&vc(qO,!0),2&e&&gc(i=Ac())&&(t._inputElement=i.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[La]}),RO),QO=((DO=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return i}(JO)).\u0275fac=function(e){return ZO(e||DO)},DO.\u0275cmp=Lt({type:DO,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&as("focus",(function(){return t._inputElement.nativeElement.focus()})),2&e&&(ja("tabindex",-1)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Ss("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[La],ngContentSelectors:YO,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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&&(fs(),Qa(0,"label",0,1),Qa(2,"div",2),$a(3,"div",3),$a(4,"div",4),Qa(5,"input",5,6),as("change",(function(e){return t._onInputChange(e)}))("click",(function(e){return t._onInputClick(e)})),Za(),Qa(7,"div",7),$a(8,"div",8),Za(),Za(),Qa(9,"div",9),Qa(10,"span",10),Bs(11,"\xa0"),Za(),ps(12),Za(),Za()),2&e){var i=Ka(1);ja("for",t.inputId),Br(5),Xa("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),ja("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),Br(2),Xa("matRippleTrigger",i)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Ku(18,jO)),Br(2),Ss("mat-radio-label-before","before"==t.labelPosition)}},directives:[$C],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;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;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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}.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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),DO),ZO=Dn(QO),$O=((OO=function e(){_(this,e)}).\u0275mod=Rt({type:OO}),OO.\u0275inj=Se({factory:function(e){return new(e||OO)},imports:[[eS,pC],pC]}),OO),eP=["mat-calendar-body",""];function tP(e,t){if(1&e&&(Qa(0,"tr",2),Qa(1,"td",3),Bs(2),Za(),Za()),2&e){var i=hs();Br(1),Cs("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),ja("colspan",i.numCols),Br(1),qs(" ",i.label," ")}}function iP(e,t){if(1&e&&(Qa(0,"td",7),Bs(1),Za()),2&e){var i=hs(2);Cs("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),ja("colspan",i._firstRowOffset),Br(1),qs(" ",i._firstRowOffset>=i.labelMinRequiredCells?i.label:""," ")}}function nP(e,t){if(1&e){var i=ns();Qa(0,"td",8),as("click",(function(){_i(i);var e=t.$implicit;return hs(2)._cellClicked(e)})),Qa(1,"div",9),Bs(2),Za(),Za()}if(2&e){var n=t.$implicit,r=t.index,o=hs().index,a=hs();Cs("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Ss("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",a._isActiveCell(o,r)),Xa("ngClass",n.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),ja("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",a.selectedValue===n.value),Br(1),Ss("mat-calendar-body-selected",a.selectedValue===n.value)("mat-calendar-body-today",a.todayValue===n.value),Br(1),qs(" ",n.displayValue," ")}}function rP(e,t){if(1&e&&(Qa(0,"tr",4),Ua(1,iP,2,6,"td",5),Ua(2,nP,3,20,"td",6),Za()),2&e){var i=t.$implicit,n=t.index,r=hs();Br(1),Xa("ngIf",0===n&&r._firstRowOffset),Br(1),Xa("ngForOf",i)}}function oP(e,t){if(1&e&&(Qa(0,"th",5),Bs(1),Za()),2&e){var i=t.$implicit;ja("aria-label",i.long),Br(1),Hs(i.narrow)}}var aP=["*"];function sP(e,t){}function uP(e,t){if(1&e){var i=ns();Qa(0,"mat-month-view",5),as("activeDateChange",(function(e){return _i(i),hs().activeDate=e}))("selectedChange",(function(e){return _i(i),hs()._dateSelected(e)}))("_userSelection",(function(){return _i(i),hs()._userSelected()})),Za()}if(2&e){var n=hs();Xa("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function cP(e,t){if(1&e){var i=ns();Qa(0,"mat-year-view",6),as("activeDateChange",(function(e){return _i(i),hs().activeDate=e}))("monthSelected",(function(e){return _i(i),hs()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return _i(i),hs()._goToDateInView(e,"month")})),Za()}if(2&e){var n=hs();Xa("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)}}function lP(e,t){if(1&e){var i=ns();Qa(0,"mat-multi-year-view",7),as("activeDateChange",(function(e){return _i(i),hs().activeDate=e}))("yearSelected",(function(e){return _i(i),hs()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return _i(i),hs()._goToDateInView(e,"year")})),Za()}if(2&e){var n=hs();Xa("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)}}var hP=["button"];function dP(e,t){1&e&&(Ui(),Qa(0,"svg",3),$a(1,"path",4),Za())}var fP=[[["","matDatepickerToggleIcon",""]]],pP=["[matDatepickerToggleIcon]"];function gP(e){return Error("MatDatepicker: No provider found for ".concat(e,". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation."))}var mP,vP,yP,_P,bP=((mP=function(){function e(){_(this,e),this.changes=new H,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return w(e,[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}]),e}()).\u0275fac=function(e){return new(e||mP)},mP.\u0275prov=Ce({factory:function(){return new mP},token:mP,providedIn:"root"}),mP),wP=function e(t,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_(this,e),this.value=t,this.displayValue=i,this.ariaLabel=n,this.enabled=r,this.cssClasses=o},AP=((_P=function(){function e(t,i){_(this,e),this._elementRef=t,this._ngZone=i,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new rc}return w(e,[{key:"_cellClicked",value:function(e){e.enabled&&this.selectedValueChange.emit(e.value)}},{key:"ngOnChanges",value:function(e){var t=e.numCols,i=this.rows,n=this.numCols;(e.rows||t)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!t&&this._cellWidth||(this._cellWidth=100/n+"%")}},{key:"_isActiveCell",value:function(e,t){var i=e*this.numCols+t;return e&&(i-=this._firstRowOffset),i==this.activeCell}},{key:"_focusActiveCell",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(Dg(1)).subscribe((function(){var t=e._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()}))}))}}]),e}()).\u0275fac=function(e){return new(e||_P)(Va(nu),Va(Xc))},_P.\u0275cmp=Lt({type:_P,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[Gt],attrs:eP,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell mat-focus-indicator",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell","mat-focus-indicator",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(e,t){1&e&&(Ua(0,tP,3,6,"tr",0),Ua(1,rP,3,2,"tr",1)),2&e&&(Xa("ngIf",t._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"],encapsulation:2,changeDetection:0}),_P),kP=((yP=function(){function e(t,i,n,r){if(_(this,e),this._changeDetectorRef=t,this._dateFormats=i,this._dateAdapter=n,this._dir=r,this._rerenderSubscription=S.EMPTY,this.selectedChange=new rc,this._userSelection=new rc,this.activeDateChange=new rc,!this._dateAdapter)throw gP("DateAdapter");if(!this._dateFormats)throw gP("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return w(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ig(null)).subscribe((function(){return e._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(e){if(this._selectedDate!=e){var t=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.createDate(t,i,e);this.selectedChange.emit(n)}this._userSelection.emit()}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,i=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-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 void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),e.preventDefault()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_init",value:function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var 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()}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_initWeekdays",value:function(){var e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map((function(e,i){return{long:e,narrow:t[i]}}));this._weekdays=i.slice(e).concat(i.slice(0,e))}},{key:"_createWeekCells",value:function(){var e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(var i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}},{key:"_getDateInCurrentMonth",value:function(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}},{key:"_hasSameMonthAndYear",value:function(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,i=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}}]),e}()).\u0275fac=function(e){return new(e||yP)(Va(ua),Va(MC,8),Va(kC,8),Va(ob,8))},yP.\u0275cmp=Lt({type:yP,selectors:[["mat-month-view"]],viewQuery:function(e,t){var i;1&e&&vc(AP,!0),2&e&&gc(i=Ac())&&(t._matCalendarBody=i.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(e,t){1&e&&(Qa(0,"table",0),Qa(1,"thead",1),Qa(2,"tr"),Ua(3,oP,2,2,"th",2),Za(),Qa(4,"tr"),$a(5,"th",3),Za(),Za(),Qa(6,"tbody",4),as("selectedValueChange",(function(e){return t._dateSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),Za(),Za()),2&e&&(Br(3),Xa("ngForOf",t._weekdays),Br(3),Xa("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("selectedValue",t._selectedDate)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},directives:[Yh,AP],encapsulation:2,changeDetection:0}),yP),MP=((vP=function(){function e(t,i,n){if(_(this,e),this._changeDetectorRef=t,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=S.EMPTY,this.selectedChange=new rc,this.yearSelected=new rc,this.activeDateChange=new rc,!this._dateAdapter)throw gP("DateAdapter");this._activeDate=this._dateAdapter.today()}return w(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ig(null)).subscribe((function(){return e._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var e=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var t=this._dateAdapter.getYear(this._activeDate)-SP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var i=0,n=[];i<24;i++)n.push(t+i),4==n.length&&(this._years.push(n.map((function(t){return e._createCellForYear(t)}))),n=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(e){this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var t=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));this.selectedChange.emit(this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,i=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-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,-SP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-SP(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._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_getActiveCell",value:function(){return SP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(e){var t=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return new wP(e,t,t,this._shouldEnableYear(e))}},{key:"_shouldEnableYear",value:function(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ei||e===i&&t>n}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(e,t){if(this.minDate){var i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return e enter",DA("120ms cubic-bezier(0, 0, 0.2, 1)",PA({opacity:1,transform:"scale(1, 1)"}))),FA("* => void",DA("100ms linear",PA({opacity:0})))]),fadeInCalendar:xA("fadeInCalendar",[IA("void",PA({opacity:0})),IA("enter",PA({opacity:1})),FA("void => *",DA("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},oI=0,aI=new et("mat-datepicker-scroll-strategy"),sI={provide:aI,deps:[Ew],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},uI=mC((function e(t){_(this,e),this._elementRef=t})),cI=((DP=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e))._changeDetectorRef=n,r._animationState="enter",r._animationDone=new H,r}return w(i,[{key:"ngAfterViewInit",value:function(){this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._animationDone.complete()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}]),i}(uI)).\u0275fac=function(e){return new(e||DP)(Va(nu),Va(ua))},DP.\u0275cmp=Lt({type:DP,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){var i;1&e&&vc(nI,!0),2&e&&gc(i=Ac())&&(t._calendar=i.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&ss("@transformPanel.done",(function(){return t._animationDone.next()})),2&e&&(Us("@transformPanel",t._animationState),Ss("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[La],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(e,t){1&e&&(Qa(0,"mat-calendar",0),as("selectedChange",(function(e){return t.datepicker.select(e)}))("yearSelected",(function(e){return t.datepicker._selectYear(e)}))("monthSelected",(function(e){return t.datepicker._selectMonth(e)}))("_userSelection",(function(){return t.datepicker.close()})),Za()),2&e&&Xa("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._minDate)("maxDate",t.datepicker._maxDate)("dateFilter",t.datepicker._dateFilter)("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t.datepicker._selected)("dateClass",t.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[nI,lA,Hh],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[rI.transformPanel,rI.fadeInCalendar]},changeDetection:0}),DP),lI=((xP=function(){function e(t,i,n,r,o,a,s,u){if(_(this,e),this._dialog=t,this._overlay=i,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=a,this._dir=s,this._document=u,this.startView="month",this._touchUi=!1,this.yearSelected=new rc,this.monthSelected=new rc,this.openedStream=new rc,this.closedStream=new rc,this._opened=!1,this.id="mat-datepicker-"+oI++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=S.EMPTY,this._disabledChange=new H,this._selectedChanged=new H,!this._dateAdapter)throw gP("DateAdapter");this._scrollStrategy=o}return w(e,[{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete()}},{key:"select",value:function(e){var t=this._selected;this._selected=e,this._dateAdapter.sameDate(t,this._selected)||this._selectedChanged.next(e)}},{key:"_selectYear",value:function(e){this.yearSelected.emit(e)}},{key:"_selectMonth",value:function(e){this.monthSelected.emit(e)}},{key:"_registerInput",value:function(e){var t=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=e,this._inputSubscription=this._datepickerInput._valueChange.subscribe((function(e){return t._selected=e}))}},{key:"open",value:function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}},{key:"close",value:function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Dg(1)).subscribe((function(){return e._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var i=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(i)):i()}}},{key:"_openAsDialog",value:function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(cI,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return e.close()})),this._dialogRef.componentInstance.datepicker=this,this._dialogRef.componentInstance.color=this.color}},{key:"_openAsPopup",value:function(){var e=this,t=new qb(cI,this._viewContainerRef);this._destroyPopup(),this._createPopup();var i=this._popupComponentRef=this._popupRef.attach(t);i.instance.datepicker=this,i.instance.color=this.color,this._ngZone.onStable.asObservable().pipe(Dg(1)).subscribe((function(){e._popupRef.updatePosition()}))}},{key:"_createPopup",value:function(){var e=this,t=new rw({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(t),this._popupRef.overlayElement.setAttribute("role","dialog"),se(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(jf((function(t){return 27===t.keyCode||e._datepickerInput&&t.altKey&&38===t.keyCode})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_createPopupPositionStrategy",value:function(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"startAt",get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"color",get:function(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)},set:function(e){this._color=e}},{key:"touchUi",get:function(){return this._touchUi},set:function(e){this._touchUi=Xy(e)}},{key:"disabled",get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(e){var t=Xy(e);t!==this._disabled&&(this._disabled=t,this._disabledChange.next(t))}},{key:"opened",get:function(){return this._opened},set:function(e){e?this.open():this.close()}},{key:"_selected",get:function(){return this._validSelected},set:function(e){this._validSelected=e}},{key:"_minDate",get:function(){return this._datepickerInput&&this._datepickerInput.min}},{key:"_maxDate",get:function(){return this._datepickerInput&&this._datepickerInput.max}},{key:"_dateFilter",get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter}}]),e}()).\u0275fac=function(e){return new(e||xP)(Va(RS),Va(Ew),Va(Xc),Va(Lu),Va(aI),Va(kC,8),Va(ob,8),Va(Tl,8))},xP.\u0275cmp=Lt({type:xP,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),xP),hI={provide:Fx,useExisting:Fe((function(){return pI})),multi:!0},dI={provide:$x,useExisting:Fe((function(){return pI})),multi:!0},fI=function e(t,i){_(this,e),this.target=t,this.targetElement=i,this.value=this.target.value},pI=((IP=function(){function e(t,i,n,r){var o=this;if(_(this,e),this._elementRef=t,this._dateAdapter=i,this._dateFormats=n,this._formField=r,this.dateChange=new rc,this.dateInput=new rc,this._valueChange=new rc,this._disabledChange=new rc,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=S.EMPTY,this._localeSubscription=S.EMPTY,this._parseValidator=function(){return o._lastValueValid?null:{matDatepickerParse:{text:o._elementRef.nativeElement.value}}},this._minValidator=function(e){var t=o._getValidDateOrNull(o._dateAdapter.deserialize(e.value));return!o.min||!t||o._dateAdapter.compareDate(o.min,t)<=0?null:{matDatepickerMin:{min:o.min,actual:t}}},this._maxValidator=function(e){var t=o._getValidDateOrNull(o._dateAdapter.deserialize(e.value));return!o.max||!t||o._dateAdapter.compareDate(o.max,t)>=0?null:{matDatepickerMax:{max:o.max,actual:t}}},this._filterValidator=function(e){var t=o._getValidDateOrNull(o._dateAdapter.deserialize(e.value));return o._dateFilter&&t&&!o._dateFilter(t)?{matDatepickerFilter:!0}:null},this._validator=iD.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw gP("DateAdapter");if(!this._dateFormats)throw gP("MAT_DATE_FORMATS");this._localeSubscription=i.localeChanges.subscribe((function(){o.value=o.value}))}return w(e,[{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}},{key:"registerOnValidatorChange",value:function(e){this._validatorOnChange=e}},{key:"validate",value:function(e){return this._validator?this._validator(e):null}},{key:"getPopupConnectionElementRef",value:function(){return this.getConnectedOverlayOrigin()}},{key:"getConnectedOverlayOrigin",value:function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._cvaOnChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_onKeydown",value:function(e){this._datepicker&&e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),e.preventDefault())}},{key:"_onInput",value:function(e){var t=this._lastValueValid,i=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=!i||this._dateAdapter.isValid(i),i=this._getValidDateOrNull(i),this._dateAdapter.sameDate(i,this._value)?t!==this._lastValueValid&&this._validatorOnChange():(this._value=i,this._cvaOnChange(i),this._valueChange.emit(i),this.dateInput.emit(new fI(this,this._elementRef.nativeElement)))}},{key:"_onChange",value:function(){this.dateChange.emit(new fI(this,this._elementRef.nativeElement))}},{key:"_getThemePalette",value:function(){return this._formField?this._formField.color:void 0}},{key:"_onBlur",value:function(){this.value&&this._formatValue(this.value),this._onTouched()}},{key:"_formatValue",value:function(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"matDatepicker",set:function(e){var t=this;e&&(this._datepicker=e,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe((function(e){t.value=e,t._cvaOnChange(e),t._onTouched(),t.dateInput.emit(new fI(t,t._elementRef.nativeElement)),t.dateChange.emit(new fI(t,t._elementRef.nativeElement))})))}},{key:"matDatepickerFilter",set:function(e){this._dateFilter=e,this._validatorOnChange()}},{key:"value",get:function(){return this._value},set:function(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e);var t=this.value;this._value=e,this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)}},{key:"min",get:function(){return this._min},set:function(e){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}},{key:"disabled",get:function(){return!!this._disabled},set:function(e){var t=Xy(e),i=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this._disabledChange.emit(t)),t&&this._isInitialized&&i.blur&&i.blur()}}]),e}()).\u0275fac=function(e){return new(e||IP)(Va(nu),Va(kC,8),Va(MC,8),Va(Px,8))},IP.\u0275dir=Pt({type:IP,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(e,t){1&e&&as("input",(function(e){return t._onInput(e.target.value)}))("change",(function(){return t._onChange()}))("blur",(function(){return t._onBlur()}))("keydown",(function(e){return t._onKeydown(e)})),2&e&&(Ws("disabled",t.disabled),ja("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))},inputs:{value:"value",matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[$s([hI,dI,{provide:yO,useExisting:IP}])]}),IP),gI=((PP=function e(){_(this,e)}).\u0275fac=function(e){return new(e||PP)},PP.\u0275dir=Pt({type:PP,selectors:[["","matDatepickerToggleIcon",""]]}),PP),mI=((OP=function(){function e(t,i,n){_(this,e),this._intl=t,this._changeDetectorRef=i,this._stateChanges=S.EMPTY;var r=Number(n);this.tabIndex=r||0===r?r:null}return w(e,[{key:"ngOnChanges",value:function(e){e.datepicker&&this._watchStateChanges()}},{key:"ngOnDestroy",value:function(){this._stateChanges.unsubscribe()}},{key:"ngAfterContentInit",value:function(){this._watchStateChanges()}},{key:"_open",value:function(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}},{key:"_watchStateChanges",value:function(){var e=this,t=this.datepicker?this.datepicker._disabledChange:Hf(),i=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Hf(),n=this.datepicker?se(this.datepicker.openedStream,this.datepicker.closedStream):Hf();this._stateChanges.unsubscribe(),this._stateChanges=se(this._intl.changes,t,i,n).subscribe((function(){return e._changeDetectorRef.markForCheck()}))}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(e){this._disabled=Xy(e)}}]),e}()).\u0275fac=function(e){return new(e||OP)(Va(bP),Va(ua),Ga("tabindex"))},OP.\u0275cmp=Lt({type:OP,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,i){var n;1&e&&_c(i,gI,!0),2&e&&gc(n=Ac())&&(t._customIcon=n.first)},viewQuery:function(e,t){var i;1&e&&vc(hP,!0),2&e&&gc(i=Ac())&&(t._button=i.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(e,t){1&e&&as("focus",(function(){return t._button.focus()})),2&e&&(ja("tabindex",t.disabled?null:-1),Ss("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:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Gt],ngContentSelectors:pP,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,t){1&e&&(fs(fP),Qa(0,"button",0,1),as("click",(function(e){return t._open(e)})),Ua(2,dP,2,0,"svg",2),ps(3),Za()),2&e&&(Xa("disabled",t.disabled)("disableRipple",t.disableRipple),ja("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),Br(2),Xa("ngIf",!t._customIcon))},directives:[JT,Uh],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),OP),vI=((RP=function e(){_(this,e)}).\u0275mod=Rt({type:RP}),RP.\u0275inj=Se({factory:function(e){return new(e||RP)},providers:[bP,sI],imports:[[Ud,ZT,qS,Ow,EA,Vb],Pb]}),RP),yI=function(){function e(t,i){_(this,e),this._document=i;var n=this._textarea=this._document.createElement("textarea"),r=n.style;r.opacity="0",r.position="absolute",r.left=r.top="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}return w(e,[{key:"copy",value:function(){var e=this._textarea,t=!1;try{if(e){var i=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),i&&i.focus()}}catch(Q7){}return t}},{key:"destroy",value:function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)}}]),e}(),_I=((NP=function(){function e(t){_(this,e),this._document=t}return w(e,[{key:"copy",value:function(e){var t=this.beginCopy(e),i=t.copy();return t.destroy(),i}},{key:"beginCopy",value:function(e){return new yI(e,this._document)}}]),e}()).\u0275fac=function(e){return new(e||NP)(ct(Tl))},NP.\u0275prov=Ce({factory:function(){return new NP(ct(Tl))},token:NP,providedIn:"root"}),NP),bI=new et("CKD_COPY_TO_CLIPBOARD_CONFIG"),wI=((eI=function(){function e(t,i,n){_(this,e),this._clipboard=t,this._ngZone=i,this.text="",this.attempts=1,this.copied=new rc,this._deprecatedCopied=this.copied,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return w(e,[{key:"copy",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(t>1){var i=t,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var r=function t(){var r=n.copy();r||!--i||e._destroyed?(e._currentTimeout=null,e._pending.delete(n),n.destroy(),e.copied.emit(r)):e._currentTimeout=e._ngZone?e._ngZone.runOutsideAngular((function(){return setTimeout(t,1)})):setTimeout(t,1)};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((function(e){return e.destroy()})),this._pending.clear(),this._destroyed=!0}}]),e}()).\u0275fac=function(e){return new(e||eI)(Va(_I),Va(Xc),Va(bI,8))},eI.\u0275dir=Pt({type:eI,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&as("click",(function(){return t.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),eI),AI=(($P=function e(){_(this,e)}).\u0275mod=Rt({type:$P}),$P.\u0275inj=Se({factory:function(e){return new(e||$P)}}),$P),kI=((ZP=function e(){_(this,e)}).\u0275mod=Rt({type:ZP}),ZP.\u0275inj=Se({factory:function(e){return new(e||ZP)},imports:[[Ud]]}),ZP),MI=((QP=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t){return"virt"===e.namespace.split(":")[4]}}]),e}()).\u0275fac=function(e){return new(e||QP)},QP.\u0275pipe=It({name:"isVirtualAttribute",type:QP,pure:!0}),QP),CI=((JP=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t){var i="";return null!==e.titleBefore&&(i+=e.titleBefore+" "),null!==e.firstName&&(i+=e.firstName+" "),null!==e.middleName&&(i+=e.middleName+" "),null!==e.lastName&&(i+=e.lastName+" "),null!==e.titleAfter&&(i+=e.titleAfter+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}}]),e}()).\u0275fac=function(e){return new(e||JP)},JP.\u0275pipe=It({name:"userFullName",type:JP,pure:!0}),JP),SI=((XP=function(){function e(t,i){_(this,e),this.translate=t,this.storage=i}return w(e,[{key:"transform",value:function(e,t){var i=this.storage.get("custom_labels");if(i)for(var n=0,r=Object.keys(i);n()\[\].,;:\s@"]+(\.[^<>()\[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe((function(t){e.pendingMails=t.filter((function(e,t,i){return t===i.indexOf(e)}));var i="";e.pendingMails.forEach((function(t){return i+="".concat(t===e.pendingMails[0]?"":", ").concat(t)})),console.log(i),e.pendingEmailsMessage=e.pendingEmailsMessageStart+i+e.pendingEmailsMessageEnd}))}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this;this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"").subscribe((function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()}))}}]),e}()).\u0275fac=function(e){return new(e||BN)(Va(ES),Va(LS),Va(qT),Va(DE),Va(ng))},BN.\u0275cmp=Lt({type:BN,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&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"div",1),Ua(5,NN,2,1,"app-alert",2),Qa(6,"mat-form-field",3),Qa(7,"label",3),$a(8,"input",4),Zu(9,"translate"),Zu(10,"customTranslate"),Za(),Ua(11,FN,4,5,"mat-error",5),Za(),Za(),Qa(12,"div",6),Qa(13,"button",7),as("click",(function(){return t.onCancel()})),Bs(14),Zu(15,"translate"),Zu(16,"customTranslate"),Za(),Qa(17,"button",8),as("click",(function(){return t.onSubmit()})),Bs(18),Zu(19,"translate"),Zu(20,"customTranslate"),Za(),Za()),2&e&&(Br(1),Hs($u(2,8,$u(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),Br(4),Xa("ngIf",t.pendingMails.length),Br(3),gs("placeholder",$u(9,12,$u(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),Xa("formControl",t.emailControl),Br(3),Xa("ngIf",t.emailControl.invalid),Br(3),qs(" ",$u(15,16,$u(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),Br(3),Xa("disabled",!t.emailControl.valid),Br(1),qs(" ",$u(19,20,$u(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[IS,NS,Uh,Ix,AO,Yx,JR,Xx,bR,FS,JT,IN,cx],pipes:[YT,SI],styles:[""]}),BN),YN=function(){function e(t){_(this,e),this.total=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new WN(e,this.total))}}]),e}(),WN=function(e){d(i,e);var t=p(i);function i(e,n){var r;return _(this,i),(r=t.call(this,e)).total=n,r.count=0,r}return w(i,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),i}(L),UN=new Set,KN=((qN=function(){function e(t){_(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):VN}return w(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!UN.has(e))try{HN||((HN=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(HN)),HN.sheet&&(HN.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),UN.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||qN)(ct(G_))},qN.\u0275prov=Ce({factory:function(){return new qN(ct(G_))},token:qN,providedIn:"root"}),qN);function VN(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var GN,XN=((GN=function(){function e(t,i){_(this,e),this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new H}return w(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return JN(Zy(e)).some((function(e){return t._registerQuery(e).mql.matches}))}},{key:"observe",value:function(e){var t=this,i=lg(JN(Zy(e)).map((function(e){return t._registerQuery(e).observable})));return(i=Pg(i.pipe(Dg(1)),i.pipe((function(e){return e.lift(new YN(1))}),Pw(0)))).pipe(Q((function(e){var t={matches:!1,breakpoints:{}};return e.forEach((function(e){t.matches=t.matches||e.matches,t.breakpoints[e.query]=e.matches})),t})))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var i=this._mediaMatcher.matchMedia(e),n={observable:new O((function(e){var n=function(i){return t._zone.run((function(){return e.next(i)}))};return i.addListener(n),function(){i.removeListener(n)}})).pipe(Ig(i),Q((function(t){return{query:e,matches:t.matches}})),C_(this._destroySubject)),mql:i};return this._queries.set(e,n),n}}]),e}()).\u0275fac=function(e){return new(e||GN)(ct(KN),ct(Xc))},GN.\u0275prov=Ce({factory:function(){return new GN(ct(KN),ct(Xc))},token:GN,providedIn:"root"}),GN);function JN(e){return e.map((function(e){return e.split(",")})).reduce((function(e,t){return e.concat(t)})).map((function(e){return e.trim()}))}var QN={tooltipState:xA("state",[IA("initial, void, hidden",PA({opacity:0,transform:"scale(0)"})),IA("visible",PA({transform:"scale(1)"})),FA("* => visible",DA("200ms cubic-bezier(0, 0, 0.2, 1)",NA([PA({opacity:0,transform:"scale(0)",offset:0}),PA({opacity:.5,transform:"scale(0.99)",offset:.5}),PA({opacity:1,transform:"scale(1)",offset:1})]))),FA("* => hidden",DA("100ms cubic-bezier(0, 0, 0.2, 1)",PA({opacity:0})))])},ZN=Z_({passive:!0});function $N(e){return Error('Tooltip position "'.concat(e,'" is invalid.'))}var eF,tF,iF,nF=new et("mat-tooltip-scroll-strategy"),rF={provide:nF,deps:[Ew],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},oF=new et("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),aF=((iF=function(){function e(t,i,n,r,o,a,s,u,c,l,h,d){var f=this;_(this,e),this._overlay=t,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=l,this._defaultOptions=h,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new H,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!Gb(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run((function(){return f.hide(0)})))},this._scrollStrategy=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.monitor(i).pipe(C_(this._destroyed)).subscribe((function(e){e?"keyboard"===e&&o.run((function(){return f.show()})):o.run((function(){return f.hide(0)}))})),o.runOutsideAngular((function(){i.nativeElement.addEventListener("keydown",f._handleKeydown)}))}return w(e,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(t,i){e.removeEventListener(i,t,ZN)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new qb(sF,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(C_(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return i.positionChanges.pipe(C_(this._destroyed)).subscribe((function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run((function(){return e.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(C_(this._destroyed)).subscribe((function(){return e._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),i.main),Object.assign(Object.assign({},t.fallback),i.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i||"below"==i)e={originX:"center",originY:"above"==i?"top":"bottom"};else if("before"==i||"left"==i&&t||"right"==i&&!t)e={originX:"start",originY:"center"};else{if(!("after"==i||"right"==i&&t||"left"==i&&!t))throw $N(i);e={originX:"end",originY:"center"}}var n=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i)e={overlayX:"center",overlayY:"bottom"};else if("below"==i)e={overlayX:"center",overlayY:"top"};else if("before"==i||"left"==i&&t||"right"==i&&!t)e={overlayX:"end",overlayY:"center"};else{if(!("after"==i||"right"==i&&t||"left"==i&&!t))throw $N(i);e={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Dg(1),C_(this._destroyed)).subscribe((function(){e._tooltipInstance&&e._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(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}}},{key:"_setupPointerEvents",value:function(){var e=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var t=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",(function(){clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout((function(){return e.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return e.show()})).set("mouseleave",(function(){return e.hide()}));this._passiveListeners.forEach((function(t,i){e._elementRef.nativeElement.addEventListener(i,t,ZN)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this._elementRef.nativeElement,t=e.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==i&&e.draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Xy(e),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?(""+e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),e}()).\u0275fac=function(e){return new(e||iF)(Va(Ew),Va(nu),Va(Cb),Va(Lu),Va(Xc),Va(G_),Va($w),Va(wA),Va(nF),Va(ob,8),Va(oF,8),Va(nu))},iF.\u0275dir=Pt({type:iF,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),iF),sF=((tF=function(){function e(t,i){_(this,e),this._changeDetectorRef=t,this._breakpointObserver=i,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new H,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return w(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()}),e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()}),e)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||tF)(Va(ua),Va(XN))},tF.\u0275cmp=Lt({type:tF,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&as("click",(function(){return t._handleBodyInteraction()}),!1,fn),2&e&&Cs("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var i;1&e&&(Qa(0,"div",0),as("@state.start",(function(){return t._animationStart()}))("@state.done",(function(e){return t._animationDone(e)})),Zu(1,"async"),Bs(2),Za()),2&e&&(Ss("mat-tooltip-handset",null==(i=$u(1,5,t._isHandset))?null:i.matches),Xa("ngClass",t.tooltipClass)("@state",t._visibility),Br(2),Hs(t.message))},directives:[Hh],pipes:[Ad],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[QN.tooltipState]},changeDetection:0}),tF),uF=((eF=function e(){_(this,e)}).\u0275mod=Rt({type:eF}),eF.\u0275inj=Se({factory:function(e){return new(e||eF)},providers:[rF],imports:[[EA,Ud,Ow,pC],pC,Pb]}),eF),cF=["trigger"],lF=["panel"];function hF(e,t){if(1&e&&(Qa(0,"span",8),Bs(1),Za()),2&e){var i=hs();Br(1),Hs(i.placeholder||"\xa0")}}function dF(e,t){if(1&e&&(Qa(0,"span"),Bs(1),Za()),2&e){var i=hs(2);Br(1),Hs(i.triggerValue||"\xa0")}}function fF(e,t){1&e&&ps(0,0,["*ngSwitchCase","true"])}function pF(e,t){1&e&&(Qa(0,"span",9),Ua(1,dF,2,1,"span",10),Ua(2,fF,1,0,"ng-content",11),Za()),2&e&&(Xa("ngSwitch",!!hs().customTrigger),Br(2),Xa("ngSwitchCase",!0))}function gF(e,t){if(1&e){var i=ns();Qa(0,"div",12),Qa(1,"div",13,14),as("@transformPanel.done",(function(e){return _i(i),hs()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return _i(i),hs()._handleKeydown(e)})),ps(3,1),Za(),Za()}if(2&e){var n=hs();Xa("@transformPanelWrap",void 0),Br(1),Ys("mat-select-panel ",n._getPanelTheme(),""),Cs("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),Xa("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing"),ja("id",n.id+"-panel")}}var mF,vF,yF,_F=[[["mat-select-trigger"]],"*"],bF=["mat-select-trigger","*"],wF={transformPanelWrap:xA("transformPanelWrap",[FA("* => void",HA("@transformPanel",[BA()],{optional:!0}))]),transformPanel:xA("transformPanel",[IA("void",PA({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),IA("showing",PA({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),IA("showing-multiple",PA({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),FA("void => *",DA("120ms cubic-bezier(0, 0, 0.2, 1)")),FA("* => void",DA("100ms 25ms linear",PA({opacity:0})))])},AF=0,kF=new et("mat-select-scroll-strategy"),MF=new et("MAT_SELECT_CONFIG"),CF={provide:kF,deps:[Ew],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},SF=function e(t,i){_(this,e),this.source=t,this.value=i},TF=vC(yC(gC(_C((function e(t,i,n,r,o){_(this,e),this._elementRef=t,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=r,this.ngControl=o}))))),EF=((yF=function e(){_(this,e)}).\u0275fac=function(e){return new(e||yF)},yF.\u0275dir=Pt({type:yF,selectors:[["mat-select-trigger"]]}),yF),LF=((vF=function(e){d(i,e);var t=p(i);function i(e,n,r,a,s,u,c,l,h,d,f,p,g,v){var y;return _(this,i),(y=t.call(this,s,a,c,l,d))._viewportRuler=e,y._changeDetectorRef=n,y._ngZone=r,y._dir=u,y._parentFormField=h,y.ngControl=d,y._liveAnnouncer=g,y._panelOpen=!1,y._required=!1,y._scrollTop=0,y._multiple=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-"+AF++,y._destroy=new H,y._triggerFontSize=0,y._onChange=function(){},y._onTouched=function(){},y._optionIds="",y._transformOrigin="top",y._panelDoneAnimatingStream=new H,y._offsetY=0,y._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],y._disableOptionCentering=!1,y._focused=!1,y.controlType="mat-select",y.ariaLabel="",y.optionSelectionChanges=mg((function(){var e=y.options;return e?e.changes.pipe(Ig(e),Lg((function(){return se.apply(void 0,o(e.map((function(e){return e.onSelectionChange}))))}))):y._ngZone.onStable.asObservable().pipe(Dg(1),Lg((function(){return y.optionSelectionChanges})))})),y.openedChange=new rc,y._openedStream=y.openedChange.pipe(jf((function(e){return e})),Q((function(){}))),y._closedStream=y.openedChange.pipe(jf((function(e){return!e})),Q((function(){}))),y.selectionChange=new rc,y.valueChange=new rc,y.ngControl&&(y.ngControl.valueAccessor=m(y)),y._scrollStrategyFactory=p,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(f)||0,y.id=y.id,v&&(null!=v.disableOptionCentering&&(y.disableOptionCentering=v.disableOptionCentering),null!=v.typeaheadDebounceInterval&&(y.typeaheadDebounceInterval=v.typeaheadDebounceInterval)),y}return w(i,[{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new db(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(m_(),C_(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(C_(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(C_(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(Ig(null),C_(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Dg(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.options&&this._setSelectionByValue(e)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,i=40===t||38===t||37===t||39===t,n=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&n&&!Gb(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;36===t||35===t?(36===t?r.setFirstItemActive():r.setLastItemActive(),e.preventDefault()):r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,i=e.keyCode,n=40===i||38===i,r=t.isTyping();if(36===i||35===i)e.preventDefault(),36===i?t.setFirstItemActive():t.setLastItemActive();else if(n&&e.altKey)e.preventDefault(),this.close();else if(r||13!==i&&32!==i||!t.activeItem||Gb(e))if(!r&&this._multiple&&65===i&&e.ctrlKey){e.preventDefault();var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(o?e.select():e.deselect())}))}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&n&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(Dg(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-"+this._parentFormField.color:""}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues()}else{this._selectionModel.clear();var i=this._selectValue(e);i?this._keyManager.setActiveItem(i):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,i=this.options.find((function(i){try{return null!=i.value&&t._compareWith(i.value,e)}catch(n){return Gn()&&console.warn(n),!1}}));return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new tA(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(C_(this._destroy)).subscribe((function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())})),this._keyManager.change.pipe(C_(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var e=this,t=se(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(C_(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),se.apply(void 0,o(this.options.map((function(e){return e._stateChanges})))).pipe(C_(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(e,t){var i=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(i!==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(),this._propagateChanges(e.value)),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(i,n){return e.sortComparator?e.sortComparator(i,n,t):t.indexOf(i)-t.indexOf(n)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new SF(this,t)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(e){return e.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var e=this._keyManager.activeItemIndex||0,t=hS(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=dS(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getOptionIndex",value:function(e){return this.options.reduce((function(t,i,n){return void 0!==t?t:e===i?n:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var e=this._getItemHeight(),t=this._getItemCount(),i=Math.min(t*e,256),n=t*e-i,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=hS(r,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(r,o,n),this._offsetY=this._calculateOverlayOffsetY(r,o,n),this._checkOverlayWithinViewport(n)}},{key:"_calculateOverlayScroll",value:function(e,t,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*e-t+n/2),i)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}n||(e*=-1);var a=0-(t.left+e-(n?r:0)),s=t.right+e-i.width+(n?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,i){var n,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this._disableOptionCentering?0:(n=0===this._scrollTop?e*r:this._scrollTop===i?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*n-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>n?this._adjustPanelDown(o,n,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var i=Math.round(e-t);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,i){var n=Math.round(e-t);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Xy(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Xy(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=Xy(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw Error("`compareWith` must be a function.");this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=Jy(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),i}(TF)).\u0275fac=function(e){return new(e||vF)(Va(Tb),Va(ua),Va(Xc),Va(OC),Va(nu),Va(ob,8),Va(cR,8),Va(AR,8),Va(Px,8),Va(Vx,10),Ga("tabindex"),Va(kF),Va(gA),Va(MF,8))},vF.\u0275cmp=Lt({type:vF,selectors:[["mat-select"]],contentQueries:function(e,t,i){var n;1&e&&(_c(i,EF,!0),_c(i,lS,!0),_c(i,oS,!0)),2&e&&(gc(n=Ac())&&(t.customTrigger=n.first),gc(n=Ac())&&(t.options=n),gc(n=Ac())&&(t.optionGroups=n))},viewQuery:function(e,t){var i;1&e&&(vc(cF,!0),vc(lF,!0),vc(Dw,!0)),2&e&&(gc(i=Ac())&&(t.trigger=i.first),gc(i=Ac())&&(t.panel=i.first),gc(i=Ac())&&(t.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&as("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onBlur()})),2&e&&(ja("id",t.id)("tabindex",t.tabIndex)("aria-label",t._getAriaLabel())("aria-labelledby",t._getAriaLabelledby())("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-owns",t.panelOpen?t._optionIds:null)("aria-multiselectable",t.multiple)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Ss("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[$s([{provide:hx,useExisting:vF},{provide:cS,useExisting:vF}]),La,Gt],ngContentSelectors:bF,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(fs(_F),Qa(0,"div",0,1),as("click",(function(){return t.toggle()})),Qa(3,"div",2),Ua(4,hF,2,1,"span",3),Ua(5,pF,3,2,"span",4),Za(),Qa(6,"div",5),$a(7,"div",6),Za(),Za(),Ua(8,gF,4,11,"ng-template",7),as("backdropClick",(function(){return t.close()}))("attach",(function(){return t._onAttached()}))("detach",(function(){return t.close()}))),2&e){var i=Ka(1);Br(3),Xa("ngSwitch",t.empty),Br(1),Xa("ngSwitchCase",!0),Br(1),Xa("ngSwitchCase",!1),Br(3),Xa("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[xw,id,nd,Dw,rd,Hh],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[wF.transformPanelWrap,wF.transformPanel]},changeDetection:0}),vF),zF=((mF=function e(){_(this,e)}).\u0275mod=Rt({type:mF}),mF.\u0275inj=Se({factory:function(e){return new(e||mF)},providers:[CF],imports:[[Ud,Ow,pS,pC],Pb,Nx,pS,pC]}),mF);function xF(e,t){if(1&e){var i=ns();Qa(0,"button",15),as("click",(function(){_i(i);var e=hs().index;return hs().removeValue(e)})),Qa(1,"mat-icon"),Bs(2," indeterminate_check_box "),Za(),Za()}}function DF(e,t){if(1&e){var i=ns();Qa(0,"div",9),Qa(1,"mat-form-field",10),$a(2,"label",11),Qa(3,"input",12),as("click",(function(){_i(i);var e=t.index,n=hs();return n.readonly&&n.attribute.displayName&&n.showValue(n.keys[e],n.attribute.displayName)}))("ngModelChange",(function(e){_i(i);var n=t.index;return hs().keys[n]=e})),Za(),Za(),Qa(4,"mat-form-field",10),$a(5,"label",11),Qa(6,"input",13),as("click",(function(){_i(i);var e=t.$implicit,n=hs();return n.readonly&&void 0!==n.attribute.displayName&&n.showValue(e,n.attribute.displayName)}))("ngModelChange",(function(e){_i(i);var n=t.index;return hs().values[n]=e})),Za(),Za(),Ua(7,xF,3,0,"button",14),Za()}if(2&e){var n=t.index,r=hs();Br(1),gs("appearance",r.readonly?"none":"standard"),Br(1),vs("for","",r.attribute.id,"-key-",n,""),Br(1),Ss("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),vs("id","",r.attribute.id,"-key-",n,""),ms("name","key-",n,""),Xa("ngModel",r.keys[n])("readonly",r.readonly),Br(1),gs("appearance",r.readonly?"none":"standard"),Br(1),vs("for","",r.attribute.id,"-value-",n,""),Br(1),Ss("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),ms("name","value-",n,""),vs("id","",r.attribute.id,"-value-",n,""),Xa("readonly",r.readonly)("ngModel",r.values[n]),Br(1),Xa("ngIf",!r.readonly)}}function RF(e,t){1&e&&(Qa(0,"mat-icon"),Bs(1,"more_horiz"),Za())}function OF(e,t){1&e&&(Qa(0,"mat-icon"),Bs(1,"keyboard_arrow_up"),Za())}function PF(e,t){if(1&e){var i=ns();Qa(0,"button",16),as("click",(function(){return _i(i),hs().onShowChange()})),Ua(1,RF,2,0,"mat-icon",17),Ua(2,OF,2,0,"mat-icon",17),Za()}if(2&e){var n=hs();Br(1),Xa("ngIf",!n.showMore),Br(1),Xa("ngIf",n.showMore)}}function IF(e,t){if(1&e){var i=ns();Qa(0,"button",18),as("click",(function(){return _i(i),hs().addValue()})),Qa(1,"mat-icon"),Bs(2," add_box "),Za(),Za()}}var NF,FF,BF,HF,qF,jF=((NF=function(){function e(t){_(this,e),this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}return w(e,[{key:"ngOnInit",value:function(){if(void 0!==this.attribute.value)for(var e=this.attribute.value,t=0,n=Object.entries(e);tthis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(e){this.keys.splice(e,1),this.values.splice(e,1)}},{key:"updateAttribute",value:function(){for(var e={},t=0;tt.defaultItemsShown),Br(1),Xa("ngIf",!t.readonly))},directives:[vR,Jx,cR,Yh,aF,Uh,Ix,AO,Yx,JR,Xx,mR,JT,LE],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}"]}),NF),YF=["input"],WF=function(){return{enterDuration:150}},UF=["*"],KF=new et("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),VF=new et("mat-checkbox-click-action"),GF=0,XF={provide:Fx,useExisting:Fe((function(){return ZF})),multi:!0},JF=function e(){_(this,e)},QF=yC(mC(vC(gC((function e(t){_(this,e),this._elementRef=t}))))),ZF=((FF=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u,c){var l;return _(this,i),(l=t.call(this,e))._changeDetectorRef=n,l._focusMonitor=r,l._ngZone=o,l._clickAction=s,l._animationMode=u,l._options=c,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-"+ ++GF,l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new rc,l.indeterminateChange=new rc,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=0,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l._options=l._options||{},l._options.color&&(l.color=l._options.color),l.tabIndex=parseInt(a)||0,l._focusMonitor.monitor(e,!0).subscribe((function(e){e||Promise.resolve().then((function(){l._onTouched(),n.markForCheck()}))})),l._clickAction=l._clickAction||l._options.clickAction,l}return w(i,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,i=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){i.classList.remove(n)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var e=new JF;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t=this;e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,e,t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var i="";switch(e){case 0:if(1===t)i="unchecked-checked";else{if(3!=t)return"";i="unchecked-indeterminate"}break;case 2:i=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+i}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}},{key:"inputId",get:function(){return(this.id||this._uniqueId)+"-input"}},{key:"required",get:function(){return this._required},set:function(e){this._required=Xy(e)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=Xy(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=Xy(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),i}(QF)).\u0275fac=function(e){return new(e||FF)(Va(nu),Va(ua),Va(wA),Va(Xc),Ga("tabindex"),Va(VF,8),Va(iC,8),Va(KF,8))},FF.\u0275cmp=Lt({type:FF,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var i;1&e&&(vc(YF,!0),vc($C,!0)),2&e&&(gc(i=Ac())&&(t._inputElement=i.first),gc(i=Ac())&&(t.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(Ws("id",t.id),ja("tabindex",null),Ss("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",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[$s([XF]),La],ngContentSelectors:UF,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(fs(),Qa(0,"label",0,1),Qa(2,"div",2),Qa(3,"input",3,4),as("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),Za(),Qa(5,"div",5),$a(6,"div",6),Za(),$a(7,"div",7),Qa(8,"div",8),Ui(),Qa(9,"svg",9),$a(10,"path",10),Za(),Ki(),$a(11,"div",11),Za(),Za(),Qa(12,"span",12,13),as("cdkObserveContent",(function(){return t._onLabelTextChange()})),Qa(14,"span",14),Bs(15,"\xa0"),Za(),ps(16),Za(),Za()),2&e){var i=Ka(1),n=Ka(13);ja("for",t.inputId),Br(2),Ss("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),Br(1),Xa("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),ja("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked()),Br(2),Xa("matRippleTrigger",i)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Ku(18,WF))}},directives:[$C,Uw],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{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),FF),$F={provide:$x,useExisting:Fe((function(){return eB})),multi:!0},eB=((BF=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return i}(QR)).\u0275fac=function(e){return tB(e||BF)},BF.\u0275dir=Pt({type:BF,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[$s([$F]),La]}),BF),tB=Dn(eB),iB=((qF=function e(){_(this,e)}).\u0275mod=Rt({type:qF}),qF.\u0275inj=Se({factory:function(e){return new(e||qF)}}),qF),nB=((HF=function e(){_(this,e)}).\u0275mod=Rt({type:HF}),HF.\u0275inj=Se({factory:function(e){return new(e||HF)},imports:[[eS,pC,Kw,iB],pC,iB]}),HF);function rB(e,t){if(1&e){var i=ns();Qa(0,"mat-checkbox",2),as("change",(function(){return _i(i),hs()._sendEventToParent()}))("ngModelChange",(function(e){return _i(i),hs().attribute.value=e})),Za()}2&e&&Xa("ngModel",hs().attribute.value)}function oB(e,t){if(1&e&&(Qa(0,"mat-label"),Bs(1),Za()),2&e){var i=hs();Br(1),Hs(i.attribute.value)}}var aB,sB=((aB=function(){function e(){_(this,e),this.readonly=!1,this.sendEventToParent=new rc}return w(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=QS(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),e}()).\u0275fac=function(e){return new(e||aB)},aB.\u0275cmp=Lt({type:aB,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&&(Qa(0,"div"),Ua(1,rB,1,1,"mat-checkbox",0),Ua(2,oB,2,1,"mat-label",1),Za()),2&e&&(Br(1),Xa("ngIf",!t.readonly),Br(1),Xa("ngIf",t.readonly))},directives:[Uh,ZF,Xx,mR,Ex],styles:[""]}),aB);function uB(e){var t=e.subscriber,i=e.counter,n=e.period;t.next(i),this.schedule({subscriber:t,counter:i+1,period:n},n)}function cB(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function lB(e,t){var i=t?"":"none";cB(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function hB(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function dB(e,t){return e.getPropertyValue(t).split(",").map((function(e){return e.trim()}))}function fB(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function pB(e,t,i){var n=e.top,r=e.bottom,o=e.left,a=e.right;return i>=n&&i<=r&&t>=o&&t<=a}function gB(e,t,i){e.top+=t,e.bottom=e.top+e.height,e.left+=i,e.right=e.left+e.width}function mB(e,t,i,n){var r=e.top,o=e.right,a=e.bottom,s=e.left,u=e.width*t,c=e.height*t;return n>r-c&&ns-u&&i=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(e)))return void s._endDragSequence(e);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(e)})))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t),this._parentPositions=new vB(n,o),a.registerDragItem(this)}return w(e,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){return this._handles=e.map((function(e){return e_(e)})),this._handles.forEach((function(e){return lB(e,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,i=e_(e);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular((function(){i.addEventListener("mousedown",t._pointerDown,_B),i.addEventListener("touchstart",t._pointerDown,yB)})),this._initialTransform=void 0,this._rootElement=i),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?e_(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return t._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&MB(this._rootElement),MB(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){this._handles.indexOf(e)>-1&&this._disabledHandles.add(e)}},{key:"enableHandle",value:function(e){this._disabledHandles.delete(e)}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._pointerPositionAtLastDirectionChange;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e))}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&MB(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&MB(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){this.started.next({source:this}),CB(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t,i=this._dropContainer;if(i){var n=this._rootElement,r=n.parentNode,o=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");r.insertBefore(s,n),n.style.display="none",this._document.body.appendChild(r.replaceChild(a,n)),(t=this._document,t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body).appendChild(o),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var i=this;t.stopPropagation();var n=this.isDragging(),r=CB(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(n||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor,a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){i._updateOnScroll(e)})),this._boundaryElement&&(this._boundaryRect=fB(this._boundaryElement));var u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var c=this._pickupPositionOnPage=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var i=t._dropContainer,n=i.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(t._getPointerPositionOnPage(e)),a=i._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o}),t.dropped.next({item:t,currentIndex:n,previousIndex:t._initialIndex,container:i,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o}),i.drop(t,n,t._initialContainer,a,o,t._initialIndex),t._dropContainer=t._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(e){var t=this,i=e.x,n=e.y,r=this._initialContainer._getSiblingContainerFromPosition(this,i,n);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,n)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run((function(){t.exited.next({item:t,container:t._dropContainer}),t._dropContainer.exit(t),t._dropContainer=r,t._dropContainer.enter(t,i,n,r===t._initialContainer&&r.sortingDisabled?t._initialIndex:void 0),t.entered.next({item:t,container:r,currentIndex:r.getItemIndex(t)})})),this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,i,n,this._pointerDirectionDelta),this._preview.style.transform=wB(i-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,i=this.previewClass,n=t?t.template:null;if(n&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(n,t.context);o.detectChanges(),e=SB(o,this._document),this._previewRef=o,t.matchSize?TB(e,r):e.style.transform=wB(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;TB(e=AB(a),a.getBoundingClientRect())}return cB(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),lB(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach((function(t){return e.classList.add(t)})):e.classList.add(i)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=wB(t.left,t.top);var i=function(e){var t=getComputedStyle(e),i=dB(t,"transition-property"),n=i.find((function(e){return"transform"===e||"all"===e}));if(!n)return 0;var r=i.indexOf(n),o=dB(t,"transition-duration"),a=dB(t,"transition-delay");return hB(o[r])+hB(a[r])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(t){var n=function i(n){(!n||n.target===e._preview&&"transform"===n.propertyName)&&(e._preview.removeEventListener("transitionend",i),t(),clearTimeout(r))},r=setTimeout(n,1.5*i);e._preview.addEventListener("transitionend",n)}))}))}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,i=t?t.template:null;return i?(this._placeholderRef=t.viewContainer.createEmbeddedView(i,t.context),this._placeholderRef.detectChanges(),e=SB(this._placeholderRef,this._document)):e=AB(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var i=this._rootElement.getBoundingClientRect(),n=e===this._rootElement?null:e,r=n?n.getBoundingClientRect():i,o=CB(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-i.left+(o.pageX-r.left-a.left),y:r.top-i.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=CB(e)?e.touches[0]||e.changedTouches[0]:e,i=this._getViewportScrollPosition();return{x:t.pageX-i.left,y:t.pageY-i.top}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this.constrainPosition?this.constrainPosition(e,this):e,i=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===i?t.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==i||(t.x=this._pickupPositionOnPage.x),this._boundaryRect){var n=this._pickupPositionInElement,r=n.x,o=n.y,a=this._boundaryRect,s=this._previewRect,u=a.top+o,c=a.bottom-(s.height-o);t.x=kB(t.x,a.left+r,a.right-(s.width-r)),t.y=kB(t.y,u,c)}return t}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,i=e.y,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(i-r.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,lB(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,_B),e.removeEventListener("touchstart",this._pointerDown,yB)}},{key:"_applyRootElementTransform",value:function(e,t){var i=wB(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,i=e.y;if(!(0===t&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===r.width&&0===r.height)){var o=n.left-r.left,a=r.right-n.right,s=n.top-r.top,u=r.bottom-n.bottom;n.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,n.height>r.height?(s>0&&(i+=s),u>0&&(i-=u)):i=0,t===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:CB(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);this._boundaryRect&&t&&gB(this._boundaryRect,t.top,t.left)}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=Xy(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions())}}]),e}();function wB(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function AB(e){var t=e.cloneNode(!0),i=t.querySelectorAll("[id]"),n=e.querySelectorAll("canvas");t.removeAttribute("id");for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:__;return(!A_(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=__),new O((function(i){return i.add(t.schedule(uB,e,{subscriber:i,counter:0,period:e})),i}))}(0,a_).pipe(C_(a._stopScrollTimers)).subscribe((function(){var e=a._scrollNode;1===a._verticalScrollDirection?DB(e,-2):2===a._verticalScrollDirection&&DB(e,2),1===a._horizontalScrollDirection?RB(e,-2):2===a._horizontalScrollDirection&&RB(e,2)}))},this.element=e_(t),this._document=n,this.withScrollableParents([this.element]),i.registerDropContainer(this),this._parentPositions=new vB(n,o)}return w(e,[{key:"dispose",value:function(){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)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var e=this,t=e_(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(t){return t._startReceiving(e)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(e,t,i,n){var r;this.start(),null==n?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,i)):r=n;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),u=o[r];if(u===e&&(u=o[r+1]),a>-1&&o.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var c=u.getRootElement();c.parentElement.insertBefore(s,c),o.splice(r,0,e)}else{var l=e_(this.element);this._shouldEnterAsFirstChild(t,i)?(l.insertBefore(s,o[0].getRootElement()),o.unshift(e)):(l.appendChild(s),o.push(e))}s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,i,n,r,o){this._reset(),null==o&&(o=i.getItemIndex(e)),this.dropped.next({item:e,currentIndex:t,previousIndex:o,container:this,previousContainer:i,isPointerOverContainer:n,distance:r})}},{key:"withItems",value:function(e){var t=this,i=this._draggables;return this._draggables=e,e.forEach((function(e){return e._withDropContainer(t)})),this.isDragging()&&(i.filter((function(e){return e.isDragging()})).every((function(t){return-1===e.indexOf(t)}))?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=e_(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(o(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?xB("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(t){return t.drag===e})):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,i,n){if(!this.sortingDisabled&&mB(this._clientRect,.05,t,i)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,i,n);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=xB(r,(function(t){return t.drag===e})),u=r[o],c=r[s].clientRect,l=u.clientRect,h=s>o?1:-1;this._previousSwap.drag=u.drag,this._previousSwap.delta=a?n.x:n.y;var d=this._getItemOffsetPx(c,l,h),f=this._getSiblingOffsetPx(s,r,h),p=r.slice();EB(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach((function(t,i){if(p[i]!==t){var n=t.drag===e,r=n?d:f,o=n?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),gB(t.clientRect,0,r)):(o.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),gB(t.clientRect,r,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var r,o=0,a=0;if(this._parentPositions.positions.forEach((function(s,u){var c;u!==n._document&&s.clientRect&&!r&&mB(s.clientRect,.05,e,t)&&(c=i(function(e,t,i,n){var r=OB(t,n),o=PB(t,i),a=0,s=0;if(r){var u=e.scrollTop;1===r?u>0&&(a=1):e.scrollHeight-u>e.clientHeight&&(a=2)}if(o){var c=e.scrollLeft;1===o?c>0&&(s=1):e.scrollWidth-c>e.clientWidth&&(s=2)}return[a,s]}(u,s.clientRect,e,t),2),o=c[0],a=c[1],(o||a)&&(r=u))})),!o&&!a){var s=this._viewportRuler.getViewportSize(),u=s.width,c=s.height,l={width:u,height:c,top:0,right:u,bottom:c,left:0};o=OB(l,t),a=PB(l,e),r=window}!r||o===this._verticalScrollDirection&&a===this._horizontalScrollDirection&&r===this._scrollNode||(this._verticalScrollDirection=o,this._horizontalScrollDirection=a,this._scrollNode=r,(o||a)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var e=e_(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:fB(t)}})).sort((function(t,i){return e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top}))}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=e_(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(e){var t=e.getRootElement();t&&(t.style.transform="")})),this._siblings.forEach((function(t){return t._stopReceiving(e)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,i){var n="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*i],a=r[n?"width":"height"]*i;if(o){var s=n?"left":"top",u=n?"right":"bottom";-1===i?a-=o.clientRect[s]-r[u]:a+=r[s]-o.clientRect[u]}return a}},{key:"_getItemOffsetPx",value:function(e,t,i){var n="horizontal"===this._orientation,r=n?t.left-e.left:t.top-e.top;return-1===i&&(r+=n?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var r=i[i.length-1].clientRect;return n?e>=r.right:t>=r.bottom}var o=i[0].clientRect;return n?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,i,n){var r=this,o="horizontal"===this._orientation;return xB(this._itemPositions,(function(a,s,u){var c=a.drag,l=a.clientRect;if(c===e)return u.length<2;if(n){var h=o?n.x:n.y;if(c===r._previousSwap.drag&&h===r._previousSwap.delta)return!1}return o?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&i=i-r&&t<=i+r?1:t>=n-r&&t<=n+r?2:0}function PB(e,t){var i=e.left,n=e.right,r=.05*e.width;return t>=i-r&&t<=i+r?1:t>=n-r&&t<=n+r?2:0}var IB,NB,FB,BB,HB,qB,jB=Z_({passive:!1,capture:!0}),YB=((IB=function(){function e(t,i){var n=this;_(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new H,this.pointerUp=new H,this.scroll=new H,this._preventDefaultWhileDragging=function(e){n._activeDragInstances.size&&e.preventDefault()},this._document=i}return w(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){t._document.addEventListener("touchmove",t._preventDefaultWhileDragging,jB)}))}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,jB)}},{key:"startDragging",value:function(e,t){var i=this;if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){var n=t.type.startsWith("touch"),r=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:function(e){return i.pointerMove.next(e)},options:jB}).set(r,{handler:function(e){return i.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return i.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:jB}),this._ngZone.runOutsideAngular((function(){i._globalListeners.forEach((function(e,t){i._document.addEventListener(t,e.handler,e.options)}))}))}}},{key:"stopDragging",value:function(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(e){return this._activeDragInstances.has(e)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach((function(t){return e.removeDragItem(t)})),this._dropInstances.forEach((function(t){return e.removeDropContainer(t)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach((function(t,i){e._document.removeEventListener(i,t.handler,t.options)})),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||IB)(ct(Xc),ct(Tl))},IB.\u0275prov=Ce({factory:function(){return new IB(ct(Xc),ct(Tl))},token:IB,providedIn:"root"}),IB),WB={dragStartThreshold:5,pointerDirectionChangeThreshold:5},UB=((NB=function(){function e(t,i,n,r){_(this,e),this._document=t,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=r}return w(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WB;return new bB(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new zB(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||NB)(ct(Tl),ct(Xc),ct(Tb),ct(YB))},NB.\u0275prov=Ce({factory:function(){return new NB(ct(Tl),ct(Xc),ct(Tb),ct(YB))},token:NB,providedIn:"root"}),NB),KB=new et("CDK_DRAG_PARENT"),VB=((HB=function(){function e(t,i){_(this,e),this.element=t,this._stateChanges=new H,this._disabled=!1,this._parentDrag=i,lB(t.nativeElement,!1)}return w(e,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Xy(e),this._stateChanges.next(this)}}]),e}()).\u0275fac=function(e){return new(e||HB)(Va(nu),Va(KB,8))},HB.\u0275dir=Pt({type:HB,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),HB),GB=((BB=function e(t){_(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||BB)(Va(Tu))},BB.\u0275dir=Pt({type:BB,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),BB),XB=((FB=function(){function e(t){_(this,e),this.templateRef=t,this._matchSize=!1}return w(e,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=Xy(e)}}]),e}()).\u0275fac=function(e){return new(e||FB)(Va(Tu))},FB.\u0275dir=Pt({type:FB,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),FB),JB=new et("CDK_DRAG_CONFIG"),QB=new et("CDK_DROP_LIST"),ZB=((qB=function(){function e(t,i,n,r,o,a,s,u,c){var l=this;_(this,e),this.element=t,this.dropContainer=i,this._document=n,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=c,this._destroyed=new H,this.started=new rc,this.released=new rc,this.ended=new rc,this.entered=new rc,this.exited=new rc,this.dropped=new rc,this.moved=new O((function(e){var t=l._dragRef.moved.pipe(Q((function(e){return{source:l,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}}))).subscribe(e);return function(){t.unsubscribe()}})),this._dragRef=u.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return w(e,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(Dg(1),C_(this._destroyed)).subscribe((function(){e._updateRootElement(),e._handles.changes.pipe(Ig(e._handles),Ug((function(t){var i=t.filter((function(t){return t._parentDrag===e})).map((function(e){return e.element}));e._dragRef.withHandles(i)})),Lg((function(e){return se.apply(void 0,o(e.map((function(e){return e._stateChanges.pipe(Ig(e))}))))})),C_(e._destroyed)).subscribe((function(t){var i=e._dragRef,n=t.element.nativeElement;t.disabled?i.disableHandle(n):i.enableHandle(n)})),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)}))}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,i=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?$B(e,this.rootElementSelector):e;if(t&&t.nodeType!==this._document.ELEMENT_NODE)throw Error('cdkDrag must be attached to an element node. Currently attached to "'.concat(t.nodeName,'".'));this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;if(!e)return null;if("string"==typeof e)return $B(this.element.nativeElement,e);var t=e_(e);if(Gn()&&!t.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return t}},{key:"_syncInputs",value:function(e){var t=this;e.beforeStarted.subscribe((function(){if(!e.isDragging()){var i=t._dir,n=t.dragStartDelay,r=t._placeholderTemplate?{template:t._placeholderTemplate.templateRef,context:t._placeholderTemplate.data,viewContainer:t._viewContainerRef}:null,o=t._previewTemplate?{template:t._previewTemplate.templateRef,context:t._previewTemplate.data,matchSize:t._previewTemplate.matchSize,viewContainer:t._viewContainerRef}:null;e.disabled=t.disabled,e.lockAxis=t.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:Jy(n),e.constrainPosition=t.constrainPosition,e.previewClass=t.previewClass,e.withBoundaryElement(t._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o),i&&e.withDirection(i.value)}}))}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe((function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()})),e.released.subscribe((function(){t.released.emit({source:t})})),e.ended.subscribe((function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:e.container.data,item:t})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,i=e.dragStartDelay,n=e.constrainPosition,r=e.previewClass,o=e.boundaryElement,a=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=a&&a,this.dragStartDelay=i||0,t&&(this.lockAxis=t),n&&(this.constrainPosition=n),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=Xy(e),this._dragRef.disabled=this._disabled}}]),e}()).\u0275fac=function(e){return new(e||qB)(Va(nu),Va(QB,12),Va(Tl),Va(Xc),Va(Lu),Va(JB,8),Va(ob,8),Va(UB),Va(ua))},qB.\u0275dir=Pt({type:qB,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,i){var n;1&e&&(_c(i,XB,!0),_c(i,GB,!0),_c(i,VB,!0)),2&e&&(gc(n=Ac())&&(t._previewTemplate=n.first),gc(n=Ac())&&(t._placeholderTemplate=n.first),gc(n=Ac())&&(t._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&Ss("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[$s([{provide:KB,useExisting:qB}]),Gt]}),qB);function $B(e,t){for(var i=e.parentElement;i;){if(i.matches?i.matches(t):i.msMatchesSelector(t))return i;i=i.parentElement}return null}var eH,tH,iH,nH,rH,oH,aH,sH,uH,cH,lH=((iH=function(){function e(){_(this,e),this._items=new Set,this._disabled=!1}return w(e,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Xy(e)}}]),e}()).\u0275fac=function(e){return new(e||iH)},iH.\u0275dir=Pt({type:iH,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),iH),hH=0,dH=((tH=function(){function e(t,i,n,r,o,a,s){var u=this;_(this,e),this.element=t,this._changeDetectorRef=n,this._dir=r,this._group=o,this._scrollDispatcher=a,this._destroyed=new H,this.connectedTo=[],this.id="cdk-drop-list-"+hH++,this.enterPredicate=function(){return!0},this.dropped=new rc,this.entered=new rc,this.exited=new rc,this.sorted=new rc,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,s&&this._assignDefaults(s),this._dropListRef.enterPredicate=function(e,t){return u.enterPredicate(e.data,t.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),o&&o._items.add(this)}return w(e,[{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(e,t,i,n){this._dropListRef.drop(e._dragRef,t,i._dropListRef,n,{x:0,y:0})}},{key:"enter",value:function(e,t,i){this._dropListRef.enter(e._dragRef,t,i)}},{key:"exit",value:function(e){this._dropListRef.exit(e._dragRef)}},{key:"getItemIndex",value:function(e){return this._dropListRef.getItemIndex(e._dragRef)}},{key:"_setupInputSyncSubscription",value:function(t){var i=this;this._dir&&this._dir.change.pipe(Ig(this._dir.value),C_(this._destroyed)).subscribe((function(e){return t.withDirection(e)})),t.beforeStarted.subscribe((function(){var n=Zy(i.connectedTo).map((function(t){return"string"==typeof t?e._dropLists.find((function(e){return e.id===t})):t}));if(i._group&&i._group._items.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),!i._scrollableParentsResolved&&i._scrollDispatcher){var r=i._scrollDispatcher.getAncestorScrollContainers(i.element).map((function(e){return e.getElementRef().nativeElement}));i._dropListRef.withScrollableParents(r),i._scrollableParentsResolved=!0}t.disabled=i.disabled,t.lockAxis=i.lockAxis,t.sortingDisabled=Xy(i.sortingDisabled),t.autoScrollDisabled=Xy(i.autoScrollDisabled),t.connectedTo(n.filter((function(e){return e&&e!==i})).map((function(e){return e._dropListRef}))).withOrientation(i.orientation)}))}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe((function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()})),e.sorted.subscribe((function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance}),t._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,i=e.draggingDisabled,n=e.sortingDisabled,r=e.listAutoScrollDisabled,o=e.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(e){return e._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=Xy(e)}}]),e}()).\u0275fac=function(e){return new(e||tH)(Va(nu),Va(UB),Va(ua),Va(ob,8),Va(lH,12),Va(Cb),Va(JB,8))},tH.\u0275dir=Pt({type:tH,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(Ws("id",t.id),Ss("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[$s([{provide:lH,useValue:void 0},{provide:QB,useExisting:tH}])]}),tH._dropLists=[],tH),fH=((eH=function e(){_(this,e)}).\u0275mod=Rt({type:eH}),eH.\u0275inj=Se({factory:function(e){return new(e||eH)},providers:[UB],imports:[Pb]}),eH),pH=["*"],gH=yC(mC(vC((function e(t){_(this,e),this._elementRef=t})),"primary"),-1),mH=((aH=function e(){_(this,e)}).\u0275fac=function(e){return new(e||aH)},aH.\u0275dir=Pt({type:aH,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),aH),vH=((oH=function e(){_(this,e)}).\u0275fac=function(e){return new(e||oH)},oH.\u0275dir=Pt({type:oH,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),oH),yH=((rH=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u,c){var l;return _(this,i),(l=t.call(this,e))._elementRef=e,l._ngZone=n,l._changeDetectorRef=s,l._hasFocus=!1,l.chipListSelectable=!0,l._chipListMultiple=!1,l._chipListDisabled=!1,l._selected=!1,l._selectable=!0,l._disabled=!1,l._removable=!0,l._onFocus=new H,l._onBlur=new H,l.selectionChange=new rc,l.destroyed=new rc,l.removed=new rc,l._addHostClassName(),l._chipRippleTarget=(c||document).createElement("div"),l._chipRippleTarget.classList.add("mat-chip-ripple"),l._elementRef.nativeElement.appendChild(l._chipRippleTarget),l._chipRipple=new QC(m(l),n,l._chipRippleTarget,r),l._chipRipple.setupTriggerEvents(e),l.rippleConfig=o||{},l._animationsDisabled="NoopAnimations"===a,l.tabIndex=null!=u&&parseInt(u)||-1,l}return w(i,[{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(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()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(Dg(1)).subscribe((function(){e._ngZone.run((function(){e._hasFocus=!1,e._onBlur.next({chip:e})}))}))}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=Xy(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=Xy(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=Xy(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=Xy(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),i}(gH)).\u0275fac=function(e){return new(e||rH)(Va(nu),Va(Xc),Va(G_),Va(ZC,8),Va(iC,8),Va(ua),Ga("tabindex"),Va(Tl,8))},rH.\u0275dir=Pt({type:rH,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){var n;1&e&&(_c(i,mH,!0),_c(i,vH,!0),_c(i,_H,!0)),2&e&&(gc(n=Ac())&&(t.avatar=n.first),gc(n=Ac())&&(t.trailingIcon=n.first),gc(n=Ac())&&(t.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&as("click",(function(e){return t._handleClick(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()})),2&e&&(ja("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),Ss("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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[La]}),rH),_H=((nH=function(){function e(t,i){_(this,e),this._parentChip=t,i&&"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}return w(e,[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||nH)(Va(yH),Va(nu))},nH.\u0275dir=Pt({type:nH,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&as("click",(function(e){return t._handleClick(e)}))}}),nH),bH=new et("mat-chips-default-options"),wH=_C((function e(t,i,n,r){_(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r})),AH=0,kH=function e(t,i){_(this,e),this.source=t,this.value=i},MH=((uH=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u){var c;return _(this,i),(c=t.call(this,s,o,a,u))._elementRef=e,c._changeDetectorRef=n,c._dir=r,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new H,c._uid="mat-chip-list-"+AH++,c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(e,t){return e===t},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new rc,c.valueChange=new rc,c.ngControl&&(c.ngControl.valueAccessor=m(c)),c}return w(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new iA(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(C_(this._destroyed)).subscribe((function(t){return e._keyManager.withHorizontalOrientation(t)})),this._keyManager.tabOut.pipe(C_(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.chips.changes.pipe(Ig(null),C_(this._destroyed)).subscribe((function(){e.disabled&&Promise.resolve().then((function(){e._syncChipsState()})),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new db(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;8===e.keyCode&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(36===e.keyCode?(this._keyManager.setFirstItemActive(),e.preventDefault()):35===e.keyCode?(this._keyManager.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(e){return e.deselect()})),Array.isArray(e))e.forEach((function(e){return t._selectValue(e,i)})),this._sortValues();else{var n=this._selectValue(e,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find((function(i){return null!=i.value&&t._compareWith(i.value,e)}));return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())}))}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach((function(t){t!==e&&t.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(t){t.selected&&e._selectionModel.select(t)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.change.emit(new kH(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){e.focused||e._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach((function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()})),t.isUserInput&&e._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(t){var i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&e._keyManager.updateActiveItem(i),e.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){e._blur(),e.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(t){var i=t.chip,n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&i._hasFocus&&(e._lastDestroyedChipIndex=n)}))}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips.some((function(e){return e._hasFocus}))}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach((function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Xy(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Xy(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Xy(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=Xy(e),this.chips&&this.chips.forEach((function(e){return e.chipListSelectable=t._selectable}))}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return se.apply(void 0,o(this.chips.map((function(e){return e.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return se.apply(void 0,o(this.chips.map((function(e){return e._onFocus}))))}},{key:"chipBlurChanges",get:function(){return se.apply(void 0,o(this.chips.map((function(e){return e._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return se.apply(void 0,o(this.chips.map((function(e){return e.destroyed}))))}}]),i}(wH)).\u0275fac=function(e){return new(e||uH)(Va(nu),Va(ua),Va(ob,8),Va(cR,8),Va(AR,8),Va(OC),Va(Vx,10))},uH.\u0275cmp=Lt({type:uH,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){var n;1&e&&_c(i,yH,!0),2&e&&gc(n=Ac())&&(t.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&as("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()}))("keydown",(function(e){return t._keydown(e)})),2&e&&(Ws("id",t._uid),ja("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("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),Ss("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[$s([{provide:hx,useExisting:uH}]),La],ngContentSelectors:pH,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(fs(),Qa(0,"div",0),ps(1),Za())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),uH),CH=0,SH=((sH=function(){function e(t,i){_(this,e),this._elementRef=t,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new rc,this.placeholder="",this.id="mat-chip-list-input-"+CH++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return w(e,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(e){e&&9===e.keyCode&&!Gb(e,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(e)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this._inputElement.value&&e&&this._chipList._keydown(e),e&&!this._isSeparatorKey(e)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),e&&e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this._inputElement.focus(e)}},{key:"_isSeparatorKey",value:function(e){if(Gb(e))return!1;var t=this.separatorKeyCodes,i=e.keyCode;return Array.isArray(t)?t.indexOf(i)>-1:t.has(i)}},{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=Xy(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=Xy(e)}},{key:"empty",get:function(){return!this._inputElement.value}}]),e}()).\u0275fac=function(e){return new(e||sH)(Va(nu),Va(bH))},sH.\u0275dir=Pt({type:sH,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&as("keydown",(function(e){return t._keydown(e)}))("blur",(function(){return t._blur()}))("focus",(function(){return t._focus()}))("input",(function(){return t._onInput()})),2&e&&(Ws("id",t.id),ja("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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Gt]}),sH),TH={separatorKeyCodes:[13]},EH=((cH=function e(){_(this,e)}).\u0275mod=Rt({type:cH}),cH.\u0275inj=Se({factory:function(e){return new(e||cH)},providers:[OC,{provide:bH,useValue:TH}]}),cH);function LH(e,t){if(1&e){var i=ns();Qa(0,"mat-icon",9),as("mousedown",(function(){return _i(i),hs(2).dragDisabled=!1})),Bs(1,"drag_indicator"),Za()}}function zH(e,t){if(1&e){var i=ns();Qa(0,"mat-icon",10),as("click",(function(){_i(i);var e=hs().$implicit;return hs().edit(e)})),Bs(1,"edit"),Za()}}function xH(e,t){if(1&e){var i=ns();Qa(0,"mat-icon",11),as("click",(function(){_i(i);var e=hs().$implicit;return hs().remove(e)})),Bs(1,"cancel"),Za()}}function DH(e,t){if(1&e){var i=ns();Qa(0,"mat-chip",4),as("removed",(function(){_i(i);var e=t.$implicit,n=hs();return n.remove(e),n._sendEventToParent()})),Ua(1,LH,2,0,"mat-icon",5),Qa(2,"div",6),as("click",(function(){_i(i);var e=t.$implicit,n=hs();return n.readonly&&void 0!==n.attribute.displayName&&n.showValue(e,n.attribute.displayName)})),Bs(3),Za(),Ua(4,zH,2,0,"mat-icon",7),Ua(5,xH,2,0,"mat-icon",8),Za()}if(2&e){var n=t.$implicit,r=hs();Xa("selectable",r.selectable)("cdkDragData",n)("removable",r.removable),Br(1),Xa("ngIf",r.removable),Br(1),Ss("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),Br(1),Hs(n),Br(1),Xa("ngIf",r.removable),Br(1),Xa("ngIf",r.removable)}}function RH(e,t){1&e&&(Qa(0,"mat-icon"),Bs(1,"more_horiz"),Za())}function OH(e,t){1&e&&(Qa(0,"mat-icon"),Bs(1,"keyboard_arrow_up"),Za())}function PH(e,t){if(1&e){var i=ns();Qa(0,"div",12),Qa(1,"span",13),Qa(2,"button",14),as("click",(function(){return _i(i),hs().onShowChange()})),Ua(3,RH,2,0,"mat-icon",15),Ua(4,OH,2,0,"mat-icon",15),Za(),Za(),Za()}if(2&e){var n=hs();Br(1),Xa("matTooltip",n.showMore?"Show less":"Show more")("matTooltipPosition","above"),Br(2),Xa("ngIf",!n.showMore),Br(1),Xa("ngIf",n.showMore)}}function IH(e,t){if(1&e){var i=ns();Qa(0,"mat-form-field",12),Qa(1,"input",16),as("matChipInputTokenEnd",(function(e){return _i(i),hs().add(e)}))("change",(function(){return _i(i),hs()._sendEventToParent()})),Za(),Za()}if(2&e){var n=hs(),r=Ka(2);Br(1),Xa("matChipInputFor",r)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",n.addOnBlur)}}var NH,FH,BH,HH=((BH=function(){function e(t){_(this,e),this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new rc,this.readonly=!1}return w(e,[{key:"ngOnInit",value:function(){this.removable=!QS(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=QS(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(e){var t=e.input,i=e.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(e){var t=this,i=JS();i.width="400px",i.data={name:e},this.dialog.open(DN,i).afterClosed().subscribe((function(i){if(i){var n=t.attribute.value.indexOf(e);t.attribute.value.splice(n,1),t.values=Object.values(t.attribute.value),t.sendEventToParent.emit()}}))}},{key:"drop",value:function(e){this.dragDisabled=!0,EB(this.attribute.value,e.previousIndex,e.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(e){var t=this,i=this.attribute.value.indexOf(e),n=JS();n.width="600px",n.data={attribute:this.attribute,index:i},this.dialog.open(xN,n).afterClosed().subscribe((function(e){e&&(t.values=Object.values(t.attribute.value),t.sendEventToParent.emit())}))}},{key:"showValue",value:function(e,t){var i=JS();i.width="350px",i.data={value:e,title:t},this.dialog.open(zN,i)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),e}()).\u0275fac=function(e){return new(e||BH)(Va(RS))},BH.\u0275cmp=Lt({type:BH,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(Qa(0,"div"),Qa(1,"mat-chip-list",0,1),as("cdkDropListDropped",(function(e){return t.drop(e),t._sendEventToParent()})),Ua(3,DH,6,9,"mat-chip",2),Ua(4,PH,5,4,"div",3),Ua(5,IH,2,3,"mat-form-field",3),Za(),Za()),2&e&&(Br(1),Xa("cdkDropListDisabled",t.dragDisabled),Br(2),Xa("ngForOf",t.values.slice(0,t.itemsShown)),Br(1),Xa("ngIf",t.values.length>t.defaultItemsShown),Br(1),Xa("ngIf",!t.readonly))},directives:[MH,dH,Yh,Uh,yH,ZB,LE,aF,JT,Ix,AO,SH],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),BH),qH=((FH=function(){function e(t){_(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new rc}return w(e,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=QS(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e,t){var i=JS();i.width="350px",i.data={value:e,title:t},this.dialog.open(zN,i)}}]),e}()).\u0275fac=function(e){return new(e||FH)(Va(RS))},FH.\u0275cmp=Lt({type:FH,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(Qa(0,"mat-form-field",0),Qa(1,"input",1),as("click",(function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)}))("ngModelChange",(function(e){return t.attribute.value=e}))("keydown",(function(){return t._sendEventToParent()})),Za(),Za()),2&e&&(gs("appearance",t.readonly?"none":"standard"),Br(1),Ss("cursor-pointer",t.readonly&&void 0!==t.value),Xa("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[Ix,AO,Yx,Xx,mR],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),FH),jH=((NH=function(){function e(t){_(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new rc}return w(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=QS(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e){var t=JS();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(zN,t)}}]),e}()).\u0275fac=function(e){return new(e||NH)(Va(RS))},NH.\u0275cmp=Lt({type:NH,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&&(Qa(0,"mat-form-field",0),Qa(1,"input",1),as("click",(function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)}))("ngModelChange",(function(e){return t.attribute.value=e}))("keydown",(function(){return t._sendEventToParent()})),Za(),Za()),2&e&&(gs("appearance",t.readonly?"none":"standard"),Br(1),Ss("cursor-pointer",t.readonly&&void 0!==t.attribute.value),Xa("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[Ix,AO,fD,Yx,Xx,mR],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),NH),YH=["map"];function WH(e,t){if(1&e){var i=ns();Qa(0,"perun-web-apps-attribute-value-boolean",3),as("sendEventToParent",(function(){return _i(i),hs()._sendEventToParent2()})),Za()}if(2&e){var n=hs();Xa("attribute",n.attribute)("readonly",n.readonly)}}function UH(e,t){if(1&e){var i=ns();Qa(0,"perun-web-apps-attribute-value-list",3),as("sendEventToParent",(function(){return _i(i),hs()._sendEventToParent2()})),Za()}if(2&e){var n=hs();Xa("attribute",n.attribute)("readonly",n.readonly)}}function KH(e,t){if(1&e&&$a(0,"perun-web-apps-attribute-value-map",4,5),2&e){var i=hs();Xa("attribute",i.attribute)("readonly",i.readonly)}}function VH(e,t){if(1&e){var i=ns();Qa(0,"perun-web-apps-attribute-value-string",3),as("sendEventToParent",(function(){return _i(i),hs()._sendEventToParent2()})),Za()}if(2&e){var n=hs();Xa("attribute",n.attribute)("readonly",n.readonly)}}function GH(e,t){if(1&e){var i=ns();Qa(0,"perun-web-apps-attribute-value-integer",3),as("sendEventToParent",(function(){return _i(i),hs()._sendEventToParent2()})),Za()}if(2&e){var n=hs();Xa("attribute",n.attribute)("readonly",n.readonly)}}var XH,JH=((XH=function(){function e(){_(this,e),this.readonly=!1,this.sendEventToParent2=new rc}return w(e,[{key:"ngOnInit",value:function(){}},{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),e}()).\u0275fac=function(e){return new(e||XH)},XH.\u0275cmp=Lt({type:XH,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){var i;1&e&&vc(YH,!0),2&e&&gc(i=Ac())&&(t.mapComponent=i.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&&(Qa(0,"div"),Ua(1,WH,1,2,"perun-web-apps-attribute-value-boolean",0),Ua(2,UH,1,2,"perun-web-apps-attribute-value-list",0),Qa(3,"div",1),as("click",(function(){return t._sendEventToParent2()})),Ua(4,KH,2,2,"perun-web-apps-attribute-value-map",2),Za(),Ua(5,VH,1,2,"perun-web-apps-attribute-value-string",0),Ua(6,GH,1,2,"perun-web-apps-attribute-value-integer",0),Za()),2&e&&(Br(1),Xa("ngIf","java.lang.Boolean"===t.attribute.type),Br(1),Xa("ngIf","java.util.ArrayList"===t.attribute.type),Br(2),Xa("ngIf","java.util.LinkedHashMap"===t.attribute.type),Br(1),Xa("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),Br(1),Xa("ngIf","java.lang.Integer"===t.attribute.type))},directives:[Uh,sB,HH,jF,qH,jH],styles:[""]}),XH);function QH(e,t){1&e&&$a(0,"mat-spinner",3)}function ZH(e,t){if(1&e){var i=ns();Qa(0,"mat-option",17),as("click",(function(){_i(i);var e=t.$implicit;return hs(4).changeLanguage(e)})),Bs(1),Za()}if(2&e){var n=t.$implicit;Xa("value",n),Br(1),qs(" ",n," ")}}function $H(e,t){if(1&e){var i=ns();Qa(0,"mat-form-field",14),Qa(1,"mat-select",15),as("valueChange",(function(e){return _i(i),hs(3).currentLang=e})),Ua(2,ZH,2,2,"mat-option",16),Za(),Za()}if(2&e){var n=hs(3);Br(1),Xa("value",n.currentLang),Br(1),Xa("ngForOf",n.languages)}}function eq(e,t){if(1&e){var i=ns();Qa(0,"div"),Qa(1,"a",18),Bs(2),Za(),Qa(3,"button",19),as("click",(function(){return _i(i),hs(3).changeEmail()})),Bs(4),Zu(5,"translate"),Zu(6,"customTranslate"),Za(),Za()}if(2&e){var n=hs(3);Br(1),ms("href","mailto:",n.email,"",br),Br(1),Hs(n.email),Br(2),Hs($u(5,3,$u(6,5,"PROFILE_PAGE.CHANGE_EMAIL")))}}function tq(e,t){if(1&e){var i=ns();Qa(0,"mat-option",17),as("click",(function(){_i(i);var e=t.$implicit;return hs(4).changeTimeZone(e)})),Bs(1),Za()}if(2&e){var n=t.$implicit;Xa("value",n),Br(1),qs(" ",n," ")}}function iq(e,t){if(1&e){var i=ns();Qa(0,"mat-form-field",20),Qa(1,"mat-select",21),as("valueChange",(function(e){return _i(i),hs(3).currentTimezone=e})),Ua(2,tq,2,2,"mat-option",16),Za(),Za()}if(2&e){var n=hs(3);Br(1),Xa("value",n.currentTimezone),Br(1),Xa("ngForOf",n.timeZones)}}function nq(e,t){1&e&&(Qa(0,"p"),Bs(1,"-"),Za())}function rq(e,t){1&e&&$a(0,"perun-web-apps-attribute-value",24),2&e&&Xa("attribute",hs(2).$implicit.attribute)("readonly",!0)}function oq(e,t){if(1&e&&(Qa(0,"div"),Ua(1,nq,2,0,"p",22),Ua(2,rq,1,2,"perun-web-apps-attribute-value",23),Za()),2&e){var i=hs().$implicit;Br(1),Xa("ngIf",!i.attribute.value),Br(1),Xa("ngIf",i.attribute.value)}}function aq(e,t){if(1&e&&(Qa(0,"tr"),Qa(1,"td",7),Qa(2,"div",8),Bs(3),Za(),Za(),Qa(4,"td",9),Ua(5,$H,3,2,"mat-form-field",10),Ua(6,eq,7,7,"div",11),Ua(7,iq,3,2,"mat-form-field",12),Ua(8,oq,3,2,"div",13),Za(),Za()),2&e){var i=t.$implicit,n=hs(2);Br(2),Xa("matTooltip","en"===n.translateService.currentLang?i.tooltip_en:i.tooltip_cz),Br(1),Hs("en"===n.translateService.currentLang?i.displayName_en:i.displayName_cz),Br(1),Xa("ngSwitch",i.attribute.friendlyName),Br(1),Xa("ngSwitchCase","preferredLanguage"),Br(1),Xa("ngSwitchCase","preferredMail"),Br(1),Xa("ngSwitchCase","timezone")}}function sq(e,t){if(1&e&&(Qa(0,"table",4),Qa(1,"tbody"),Qa(2,"tr"),Qa(3,"td",5),Bs(4),Zu(5,"translate"),Zu(6,"customTranslate"),Za(),Qa(7,"td"),Bs(8),Za(),Za(),Ua(9,aq,9,6,"tr",6),Za(),Za()),2&e){var i=hs();Br(4),Hs($u(5,3,$u(6,5,"PROFILE_PAGE.NAME"))),Br(4),Hs(i.fullName),Br(1),Xa("ngForOf",i.additionalAttributes)}}var uq,cq=((uq=function(){function e(t,i,n,r,o,a,s,u,c){var l=this;_(this,e),this.translateService=t,this.dialog=i,this.authzResolverService=n,this.attributesManagerService=r,this.usersManagerService=o,this.route=a,this.router=s,this.notificator=u,this.storeService=c,this.currentLang="en",this.languages=["en","cs"],this.timeZones=WE.tz.names().filter((function(e){return!e.startsWith("Etc/")})),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe((function(e){return l.successMessage=e}))}return w(e,[{key:"ngOnInit",value:function(){var e=this,t=this.route.snapshot.queryParamMap,i=t.get("i"),n=t.get("m"),r=t.get("u");this.loading=!0,i&&n&&r?this.usersManagerService.validatePreferredEmailChange(i,n,Number.parseInt(r,10)).subscribe((function(){e.notificator.showSuccess(e.successMessage),e.router.navigate([],{replaceUrl:!0}),e.getData()})):this.getData()}},{key:"getData",value:function(){var e=this;this.authzResolverService.getPerunPrincipal().subscribe((function(t){e.userId=t.userId,e.usersManagerService.getRichUserWithAttributes(e.userId).subscribe((function(t){e.fullName=(new CI).transform(t);var i=t.userAttributes.find((function(e){return"preferredMail"===e.friendlyName}));e.email=i.value,e.languageAttribute=t.userAttributes.find((function(e){return"preferredLanguage"===e.friendlyName})),e.currentLang=e.languageAttribute&&e.languageAttribute.value?e.languageAttribute.value:"en",e.timezoneAttribute=t.userAttributes.find((function(e){return"timezone"===e.friendlyName})),e.currentTimezone=e.timezoneAttribute&&e.timezoneAttribute.value?e.timezoneAttribute.value:"-";var n=e.storeService.get("profile_page_attributes"),r=0;n.forEach((function(i){var o,a,s=t.userAttributes.find((function(e){return e.friendlyName===i.friendly_name}));s?(r++,e.additionalAttributes.push({attribute:s,displayName_en:i.display_name_en&&i.display_name_en.length?i.display_name_en:s.displayName,displayName_cz:i.display_name_cz&&i.display_name_cz.length?i.display_name_cz:s.displayName,tooltip_en:null!==(o=i.tooltip_en)&&void 0!==o?o:"",tooltip_cz:null!==(a=i.tooltip_cz)&&void 0!==a?a:""})):e.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:".concat(i.is_virtual?"virt":"def",":").concat(i.friendly_name)).subscribe((function(t){var o,a;e.additionalAttributes.push({attribute:t,displayName_en:i.display_name_en&&i.display_name_en.length?i.display_name_en:t.displayName,displayName_cz:i.display_name_cz&&i.display_name_cz.length?i.display_name_cz:t.displayName,tooltip_en:null!==(o=i.tooltip_en)&&void 0!==o?o:"",tooltip_cz:null!==(a=i.tooltip_cz)&&void 0!==a?a:""}),r++,e.loading=r!==n.length})),e.loading=r!==n.length}))}))}))}},{key:"changeLanguage",value:function(e){var t=this;this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe((function(e){t.languageAttribute=e,t.setLanguage()}))}},{key:"setLanguage",value:function(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe((function(){}))}},{key:"changeTimeZone",value:function(e){var t=this;this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe((function(e){t.timezoneAttribute=e,t.setTimeZone()}))}},{key:"setTimeZone",value:function(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe((function(){}))}},{key:"changeEmail",value:function(){var e=this,t=JS();t.width="350px",t.data={userId:this.userId},this.dialog.open(jN,t).afterClosed().subscribe((function(t){t&&e.getEmail()}))}},{key:"getEmail",value:function(){var e=this;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe((function(t){e.email=t.value}))}}]),e}()).\u0275fac=function(e){return new(e||uq)(Va(qT),Va(RS),Va(Jp),Va(Xp),Va(ng),Va(Zm),Va(my),Va(DE),Va(Gy))},uq.\u0275cmp=Lt({type:uq,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","lang-field-width center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"lang-field-width","center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-stroked-button","",1,"ml-2",3,"click"],[1,"center-self"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(Qa(0,"div",0),Ua(1,QH,1,0,"mat-spinner",1),Ua(2,sq,10,7,"table",2),Za()),2&e&&(Br(1),Xa("ngIf",t.loading),Br(1),Xa("ngIf",!t.loading))},directives:[Uh,BO,Yh,aF,id,nd,rd,Ix,LF,lS,JT,JH],pipes:[YT,SI],styles:[".lang-field-width[_ngcontent-%COMP%]{width:50px}.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}"]}),uq);function lq(e,t){if(1&e&&(Qa(0,"mat-option",19),Bs(1),Za()),2&e){var i=t.$implicit;Xa("value",i),Br(1),qs(" ",i," ")}}function hq(e,t){if(1&e){var i=ns();Qa(0,"mat-form-field",16),Qa(1,"mat-select",17),as("selectionChange",(function(e){return _i(i),hs(2)._changePageSize(e.value)})),Ua(2,lq,2,2,"mat-option",18),Za(),Za()}if(2&e){var n=hs(2);Xa("color",n.color),Br(1),Xa("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),Br(1),Xa("ngForOf",n._displayedPageSizeOptions)}}function dq(e,t){if(1&e&&(Qa(0,"div",20),Bs(1),Za()),2&e){var i=hs(2);Br(1),Hs(i.pageSize)}}function fq(e,t){if(1&e&&(Qa(0,"div",12),Qa(1,"div",13),Bs(2),Za(),Ua(3,hq,3,5,"mat-form-field",14),Ua(4,dq,2,1,"div",15),Za()),2&e){var i=hs();Br(2),qs(" ",i._intl.itemsPerPageLabel," "),Br(1),Xa("ngIf",i._displayedPageSizeOptions.length>1),Br(1),Xa("ngIf",i._displayedPageSizeOptions.length<=1)}}function pq(e,t){if(1&e){var i=ns();Qa(0,"button",21),as("click",(function(){return _i(i),hs().firstPage()})),Ui(),Qa(1,"svg",7),$a(2,"path",22),Za(),Za()}if(2&e){var n=hs();Xa("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),ja("aria-label",n._intl.firstPageLabel)}}function gq(e,t){if(1&e){var i=ns();Ui(),Ki(),Qa(0,"button",23),as("click",(function(){return _i(i),hs().lastPage()})),Ui(),Qa(1,"svg",7),$a(2,"path",24),Za(),Za()}if(2&e){var n=hs();Xa("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),ja("aria-label",n._intl.lastPageLabel)}}var mq,vq,yq,_q=((mq=function e(){_(this,e),this.changes=new H,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,i){if(0==i||0==t)return"0 of "+i;var n=e*t;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+t,i):n+t," of ").concat(i)}}).\u0275fac=function(e){return new(e||mq)},mq.\u0275prov=Ce({factory:function(){return new mq},token:mq,providedIn:"root"}),mq),bq={provide:_q,deps:[[new _e,new we,_q]],useFactory:function(e){return e||new _q}},wq=new et("MAT_PAGINATOR_DEFAULT_OPTIONS"),Aq=gC(bC((function e(){_(this,e)}))),kq=((yq=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;if(_(this,i),(o=t.call(this))._intl=e,o._changeDetectorRef=n,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new rc,o._intlChanges=e.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),r){var a=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return g(o)}return w(i,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex=r.length&&(o=0),r[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){if(Gn()&&e&&"asc"!==e&&"desc"!==e)throw function(e){return Error(e+" is not a valid sort direction ('asc' or 'desc').")}(e);this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=Xy(e)}}]),i}(Dq)).\u0275fac=function(e){return Oq(e||Tq)},Tq.\u0275dir=Pt({type:Tq,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[La,Gt]}),Tq),Oq=Dn(Rq),Pq=hC.ENTERING+" "+lC.STANDARD_CURVE,Iq={indicator:xA("indicator",[IA("active-asc, asc",PA({transform:"translateY(0px)"})),IA("active-desc, desc",PA({transform:"translateY(10px)"})),FA("active-asc <=> active-desc",DA(Pq))]),leftPointer:xA("leftPointer",[IA("active-asc, asc",PA({transform:"rotate(-45deg)"})),IA("active-desc, desc",PA({transform:"rotate(45deg)"})),FA("active-asc <=> active-desc",DA(Pq))]),rightPointer:xA("rightPointer",[IA("active-asc, asc",PA({transform:"rotate(45deg)"})),IA("active-desc, desc",PA({transform:"rotate(-45deg)"})),FA("active-asc <=> active-desc",DA(Pq))]),arrowOpacity:xA("arrowOpacity",[IA("desc-to-active, asc-to-active, active",PA({opacity:1})),IA("desc-to-hint, asc-to-hint, hint",PA({opacity:.54})),IA("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",PA({opacity:0})),FA("* => asc, * => desc, * => active, * => hint, * => void",DA("0ms")),FA("* <=> *",DA(Pq))]),arrowPosition:xA("arrowPosition",[FA("* => desc-to-hint, * => desc-to-active",DA(Pq,NA([PA({transform:"translateY(-25%)"}),PA({transform:"translateY(0)"})]))),FA("* => hint-to-desc, * => active-to-desc",DA(Pq,NA([PA({transform:"translateY(0)"}),PA({transform:"translateY(25%)"})]))),FA("* => asc-to-hint, * => asc-to-active",DA(Pq,NA([PA({transform:"translateY(25%)"}),PA({transform:"translateY(0)"})]))),FA("* => hint-to-asc, * => active-to-asc",DA(Pq,NA([PA({transform:"translateY(0)"}),PA({transform:"translateY(-25%)"})]))),IA("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",PA({transform:"translateY(0)"})),IA("hint-to-desc, active-to-desc, desc",PA({transform:"translateY(-25%)"})),IA("hint-to-asc, active-to-asc, asc",PA({transform:"translateY(25%)"}))]),allowChildren:xA("allowChildren",[FA("* <=> *",[HA("@*",BA(),{optional:!0})])])},Nq=((Eq=function e(){_(this,e),this.changes=new H,this.sortButtonLabel=function(e){return"Change sorting for "+e}}).\u0275fac=function(e){return new(e||Eq)},Eq.\u0275prov=Ce({factory:function(){return new Eq},token:Eq,providedIn:"root"}),Eq),Fq={provide:Nq,deps:[[new _e,new we,Nq]],useFactory:function(e){return e||new Nq}},Bq=gC((function e(){_(this,e)})),Hq=((zq=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s){var u;if(_(this,i),(u=t.call(this))._intl=e,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",!r)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return u._rerenderSubscription=se(r.sortChange,r._stateChanges,e.changes).subscribe((function(){u._isSorted()&&u._updateArrowDirection(),!u._isSorted()&&u._viewState&&"active"===u._viewState.toState&&(u._disableViewStateAnimation=!1,u._setAnimationTransitionState({fromState:"active",toState:u._arrowDirection})),n.markForCheck()})),a&&s&&a.monitor(s,!0).subscribe((function(e){return u._setIndicatorHintVisible(!!e)})),g(u)}return w(i,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(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})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_handleClick",value:function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=Xy(e)}}]),i}(Bq)).\u0275fac=function(e){return new(e||zq)(Va(Nq),Va(ua),Va(Rq,8),Va("MAT_SORT_HEADER_COLUMN_DEF",8),Va(wA),Va(nu))},zq.\u0275cmp=Lt({type:zq,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&as("click",(function(){return t._handleClick()}))("mouseenter",(function(){return t._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return t._setIndicatorHintVisible(!1)})),2&e&&(ja("aria-sort",t._getAriaSortAttribute()),Ss("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[La],attrs:Cq,ngContentSelectors:xq,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["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&&(fs(),Qa(0,"div",0),Qa(1,"button",1),ps(2),Za(),Ua(3,Sq,6,6,"div",2),Za()),2&e&&(Ss("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Br(1),ja("disabled",t._isDisabled()||null)("aria-label",t._intl.sortButtonLabel(t.id)),Br(2),Xa("ngIf",t._renderArrow()))},directives:[Uh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Iq.indicator,Iq.leftPointer,Iq.rightPointer,Iq.arrowOpacity,Iq.arrowPosition,Iq.allowChildren]},changeDetection:0}),zq),qq=((Lq=function e(){_(this,e)}).\u0275mod=Rt({type:Lq}),Lq.\u0275inj=Se({factory:function(e){return new(e||Lq)},providers:[Fq],imports:[[Ud]]}),Lq);function jq(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:__,n=(t=e)instanceof Date&&!isNaN(+t)?+e-i.now():Math.abs(e);return function(e){return e.lift(new Yq(n,i))}}var Yq=function(){function e(t,i){_(this,e),this.delay=t,this.scheduler=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Wq(e,this.delay,this.scheduler))}}]),e}(),Wq=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,e)).delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return w(i,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,i=new Uq(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(I_.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(I_.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,i=t.queue,n=e.scheduler,r=e.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var o=Math.max(0,i[0].time-n.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),i}(L),Uq=function e(t,i){_(this,e),this.time=t,this.notification=i},Kq=["mat-menu-item",""],Vq=["*"];function Gq(e,t){if(1&e){var i=ns();Qa(0,"div",0),as("keydown",(function(e){return _i(i),hs()._handleKeydown(e)}))("click",(function(){return _i(i),hs().closed.emit("click")}))("@transformMenu.start",(function(e){return _i(i),hs()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return _i(i),hs()._onAnimationDone(e)})),Qa(1,"div",1),ps(2),Za(),Za()}if(2&e){var n=hs();Xa("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),ja("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var Xq,Jq,Qq,Zq,$q,ej,tj,ij,nj,rj,oj,aj,sj,uj={transformMenu:xA("transformMenu",[IA("void",PA({opacity:0,transform:"scale(0.8)"})),FA("void => enter",RA([HA(".mat-menu-content, .mat-mdc-menu-content",DA("100ms linear",PA({opacity:1}))),DA("120ms cubic-bezier(0, 0, 0.2, 1)",PA({transform:"scale(1)"}))])),FA("* => void",DA("100ms 25ms linear",PA({opacity:0})))]),fadeInItems:xA("fadeInItems",[IA("showing",PA({opacity:1})),FA("void => *",[PA({opacity:0}),DA("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cj=((Xq=function(){function e(t,i,n,r,o,a,s){_(this,e),this._template=t,this._componentFactoryResolver=i,this._appRef=n,this._injector=r,this._viewContainerRef=o,this._document=a,this._changeDetectorRef=s,this._attached=new H}return w(e,[{key:"attach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new jb(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Ub(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),e}()).\u0275fac=function(e){return new(e||Xq)(Va(Tu),Va(iu),Va(pl),Va(Ca),Va(Lu),Va(Tl),Va(ua))},Xq.\u0275dir=Pt({type:Xq,selectors:[["ng-template","matMenuContent",""]]}),Xq),lj=new et("MAT_MENU_PANEL"),hj=vC(gC((function e(){_(this,e)}))),dj=((Jq=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new H,a._focused=new H,a._highlighted=!1,a._triggersSubmenu=!1,r&&r.monitor(a._elementRef,!1),o&&o.addItem&&o.addItem(m(a)),a._document=n,a}return w(i,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var e=this._elementRef.nativeElement,t=this._document?this._document.TEXT_NODE:3,i="";if(e.childNodes)for(var n=e.childNodes.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(Dg(1)).subscribe((function(){return e._focusFirstItem(t)})):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),i=Object.keys(this._classList).find((function(e){return e.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===e,i["mat-menu-after"]="after"===e,i["mat-menu-above"]="above"===t,i["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Ig(this._allItems)).subscribe((function(t){e._directDescendantItems.reset(t.filter((function(t){return t._parentMenu===e}))),e._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){"before"!==e&&"after"!==e&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){"above"!==e&&"below"!==e&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=Xy(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=Xy(e)}},{key:"panelClass",set:function(e){var t=this,i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach((function(e){t._classList[e]=!1})),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach((function(e){t._classList[e]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}()).\u0275fac=function(e){return new(e||Zq)(Va(nu),Va(Xc),Va(fj))},Zq.\u0275dir=Pt({type:Zq,contentQueries:function(e,t,i){var n;1&e&&(_c(i,cj,!0),_c(i,dj,!0),_c(i,dj,!1)),2&e&&(gc(n=Ac())&&(t.lazyContent=n.first),gc(n=Ac())&&(t._allItems=n),gc(n=Ac())&&(t.items=n))},viewQuery:function(e,t){var i;1&e&&vc(Tu,!0),2&e&&gc(i=Ac())&&(t.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),Zq),mj=((Qq=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return i}(gj)).\u0275fac=function(e){return vj(e||Qq)},Qq.\u0275dir=Pt({type:Qq,features:[La]}),Qq),vj=Dn(mj),yj=(($q=function(e){d(i,e);var t=p(i);function i(e,n,r){return _(this,i),t.call(this,e,n,r)}return i}(mj)).\u0275fac=function(e){return new(e||$q)(Va(nu),Va(Xc),Va(fj))},$q.\u0275cmp=Lt({type:$q,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[$s([{provide:lj,useExisting:mj},{provide:mj,useExisting:$q}]),La],ngContentSelectors:Vq,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&&(fs(),Ua(0,Gq,3,6,"ng-template"))},directives:[Hh],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[uj.transformMenu,uj.fadeInItems]},changeDetection:0}),$q),_j=new et("mat-menu-scroll-strategy"),bj={provide:_j,deps:[Ew],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},wj=Z_({passive:!0}),Aj=((sj=function(){function e(t,i,n,r,o,a,s,u){var c=this;_(this,e),this._overlay=t,this._element=i,this._viewContainerRef=n,this._parentMenu=o,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=S.EMPTY,this._hoverSubscription=S.EMPTY,this._menuCloseSubscription=S.EMPTY,this._handleTouchStart=function(){return c._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new rc,this.onMenuOpen=this.menuOpened,this.menuClosed=new rc,this.onMenuClose=this.menuClosed,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,wj),a&&(a._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return w(e,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,wj),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),i=t.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return e.closeMenu()})),this._initMenu(),this.menu instanceof mj&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof mj?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(jf((function(e){return"void"===e.toState})),Dg(1),C_(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new rw({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe((function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(e){var t=i("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],r=t[1],o=i("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],u=a,c=s,l=n,h=r,d=0;this.triggersSubmenu()?(h=n="before"===this.menu.xPosition?"start":"end",r=l="end"===n?"start":"end",d="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",c="top"===s?"bottom":"top"),e.withPositions([{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:d},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:d},{originX:n,originY:c,overlayX:l,overlayY:s,offsetY:-d},{originX:r,originY:c,overlayX:h,overlayY:s,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return se(t,this._parentMenu?this._parentMenu.closed:Hf(),this._parentMenu?this._parentMenu._hovered().pipe(jf((function(t){return t!==e._menuItemInstance})),jf((function(){return e._menuOpen}))):Hf(),i)}},{key:"_handleMousedown",value:function(e){vA(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(jf((function(t){return t===e._menuItemInstance&&!t.disabled})),jq(0,p_)).subscribe((function(){e._openedBy="mouse",e.menu instanceof mj&&e.menu._isAnimating?e.menu._animationDone.pipe(Dg(1),jq(0,p_),C_(e._parentMenu._hovered())).subscribe((function(){return e.openMenu()})):e.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new jb(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.asObservable().subscribe((function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMenu||t._parentMenu.closed.emit(e)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),e}()).\u0275fac=function(e){return new(e||sj)(Va(Ew),Va(nu),Va(Lu),Va(_j),Va(mj,8),Va(dj,10),Va(ob,8),Va(wA))},sj.\u0275dir=Pt({type:sj,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&as("mousedown",(function(e){return t._handleMousedown(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("click",(function(e){return t._handleClick(e)})),2&e&&ja("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),sj),kj=((aj=function e(){_(this,e)}).\u0275mod=Rt({type:aj}),aj.\u0275inj=Se({factory:function(e){return new(e||aj)},providers:[bj],imports:[pC]}),aj),Mj=((oj=function e(){_(this,e)}).\u0275mod=Rt({type:oj}),oj.\u0275inj=Se({factory:function(e){return new(e||oj)},providers:[bj],imports:[[Ud,pC,eS,Ow,kj],Pb,pC,kj]}),oj),Cj=((rj=function e(){_(this,e),this.exportData=new rc}).\u0275fac=function(e){return new(e||rj)},rj.\u0275cmp=Lt({type:rj,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(Qa(0,"div",0),Qa(1,"button",1),Qa(2,"mat-icon"),Bs(3,"more_vert"),Za(),Za(),Qa(4,"mat-menu",null,2),Qa(6,"button",3),Bs(7),Zu(8,"translate"),Za(),Za(),Qa(9,"mat-menu",null,4),Qa(11,"button",5),as("click",(function(){return t.exportData.emit("csv")})),Bs(12,"Csv"),Za(),Za(),Za()),2&e){var i=Ka(5),n=Ka(10);Br(1),Xa("matMenuTriggerFor",i),Br(5),Xa("matMenuTriggerFor",n),Br(1),qs(" ",$u(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[JT,Aj,LE,yj,dj],pipes:[YT],styles:[".position-right[_ngcontent-%COMP%]{position:absolute;right:20px;margin:-1.25rem}"]}),rj),Sj=((nj=function(){function e(t){_(this,e),this.elementRef=t}return w(e,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),e}()).\u0275fac=function(e){return new(e||nj)(Va(nu))},nj.\u0275dir=Pt({type:nj,selectors:[["","perunWebAppsAutoFocus",""]]}),nj),Tj=((ij=function(){function e(t,i){_(this,e),this.el=t,this.router=i}return w(e,[{key:"onClick",value:function(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}]),e}()).\u0275fac=function(e){return new(e||ij)(Va(nu),Va(NE))},ij.\u0275dir=Pt({type:ij,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(e,t){1&e&&as("click",(function(){return t.onClick()}))},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),ij),Ej=((tj=function(){function e(){_(this,e)}return w(e,[{key:"onClick",value:function(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){var t="";this.perunWebAppsMiddleClickRouterLink.forEach((function(e){return t+="/"+e})),t.length>0&&(t=t.substring(1)),window.open(t)}}}]),e}()).\u0275fac=function(e){return new(e||tj)},tj.\u0275dir=Pt({type:tj,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&as("mouseup",(function(e){return t.onClick(e)}))},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),tj),Lj=((ej=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){var t=e.find((function(e){return"mail"===e.friendlyName}));return t?t.value.toString():"N/A"}}]),e}()).\u0275fac=function(e){return new(e||ej)},ej.\u0275pipe=It({name:"getMailFromAttributes",type:ej,pure:!0}),ej);function zj(e,t){1&e&&$a(0,"th",20)}function xj(e,t){if(1&e){var i=ns();Qa(0,"td",21),Qa(1,"mat-checkbox",22),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.selection.toggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function Dj(e,t){1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function Rj(e,t){if(1&e&&(Qa(0,"td",24),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.userExtSource.id)}}function Oj(e,t){1&e&&(Qa(0,"th",20),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function Pj(e,t){if(1&e&&(Qa(0,"td",24),Bs(1),Zu(2,"getMailFromAttributes"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i.attributes))}}function Ij(e,t){if(1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e){var i=hs();Br(1),Hs($u(2,1,$u(3,3,i.extSourceNameHeader?i.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function Nj(e,t){if(1&e&&(Qa(0,"td",24),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.userExtSource.extSource.name)}}function Fj(e,t){if(1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e){var i=hs();Br(1),Hs($u(2,1,$u(3,3,i.loginHeader?i.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function Bj(e,t){if(1&e&&(Qa(0,"td",24),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.userExtSource.login)}}function Hj(e,t){1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function qj(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Zu(2,"date"),Za()),2&e){var i=t.$implicit;Br(1),Hs(ec(2,1,i.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function jj(e,t){1&e&&$a(0,"tr",26)}var Yj=function(e,t){return["/admin","users",e,"identities",t]};function Wj(e,t){if(1&e&&$a(0,"tr",27),2&e){var i=t.$implicit,n=hs();Ss("cursor-pointer",!n.disableRouting)("disable-outline",n.disableRouting),Xa("routerLink",n.disableRouting?null:Gu(6,Yj,n.userId,i.userExtSource.id))("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:Gu(9,Yj,n.userId,i.userExtSource.id))}}function Uj(e,t){1&e&&(Qa(0,"app-alert",28),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,$u(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var Kj,Vj=((Kj=function(){function e(t,i){_(this,e),this.route=t,this.authResolver=i,this.selection=new db,this.filterValue="",this.hideColumns=[],this.pageSize=5,this.page=new rc,this.pageSizeOptions=YS,this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"]}return w(e,[{key:"ngAfterViewInit",value:function(){var e=this;this.disableRouting||this.route.parent.params.subscribe((function(t){e.userId=t.userId})),this.setDataSource()}},{key:"ngOnChanges",value:function(e){var t=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"id"!==e}))),this.displayedColumns=this.displayedColumns.filter((function(e){return!t.hideColumns.includes(e)})),this.dataSource=new jz(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":var i=e.attributes.find((function(e){return"mail"===e.friendlyName}));return i?i.value.toString():"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""}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e.userExtSource)?"deselect":"select"," row ").concat(e.userExtSource.id+1)}},{key:"pageChanged",value:function(e){this.page.emit(e)}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}}]),e}()).\u0275fac=function(e){return new(e||Kj)(Va(Zm),Va(ag))},Kj.\u0275cmp=Lt({type:Kj,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){var i;1&e&&(vc(kq,!0),mc(Rq,!0)),2&e&&(gc(i=Ac())&&(t.paginator=i.first),gc(i=Ac())&&(t.matSort=i.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",hideColumns:"hideColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[Gt],decls:27,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,zj,1,0,"th",6),Ua(7,xj,2,2,"td",7),ts(),es(8,8),Ua(9,Dj,4,5,"th",9),Ua(10,Rj,2,1,"td",10),ts(),es(11,11),Ua(12,Oj,4,5,"th",6),Ua(13,Pj,3,3,"td",10),ts(),es(14,12),Ua(15,Ij,4,5,"th",9),Ua(16,Nj,2,1,"td",10),ts(),es(17,13),Ua(18,Fj,4,5,"th",9),Ua(19,Bj,2,1,"td",10),ts(),es(20,14),Ua(21,Hj,4,5,"th",9),Ua(22,qj,3,4,"td",15),ts(),Ua(23,jj,1,0,"tr",16),Ua(24,Wj,1,12,"tr",17),Za(),Za(),Qa(25,"mat-paginator",18),as("page",(function(e){return t.pageChanged(e)})),Za(),Za(),Za(),Ua(26,Uj,4,5,"app-alert",19)),2&e&&(Xa("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),Br(4),Xa("dataSource",t.dataSource),Br(19),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.userExtSources.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",0===t.userExtSources.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,Sz,ZF,Hq,Rz,Nz,vy,Ej,IN],pipes:[YT,SI,Lj,Td],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),Kj);function Gj(e,t){1&e&&$a(0,"mat-spinner",3)}function Xj(e,t){if(1&e){var i=ns();Qa(0,"div"),Qa(1,"h1",8),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),Qa(5,"button",5),as("click",(function(){return _i(i),hs(2).addIdentity()})),Bs(6),Zu(7,"translate"),Zu(8,"customTranslate"),Za(),Qa(9,"button",6),as("click",(function(){_i(i);var e=hs(2);return e.removeIdentity(e.certSelection)})),Bs(10),Zu(11,"translate"),Zu(12,"customTranslate"),Za(),$a(13,"perun-web-apps-user-ext-sources-list",11),Za()}if(2&e){var n=hs(2);Br(2),Hs($u(3,10,$u(4,12,"IDENTITIES.CERT"))),Br(4),Hs($u(7,14,$u(8,16,"IDENTITIES.ADD"))),Br(3),Xa("disabled",0===n.certSelection.selected.length),Br(1),Hs($u(11,18,$u(12,20,"IDENTITIES.REMOVE"))),Br(3),Xa("userExtSources",n.certExtSources)("selection",n.certSelection)("extSourceNameHeader",n.extSourceNameCert)("loginHeader",n.loginCert)("hideColumns",n.hiddenColumnsCert)("disableRouting",!0)}}function Jj(e,t){if(1&e){var i=ns();Qa(0,"div"),Qa(1,"h1",4),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),Qa(5,"button",5),as("click",(function(){return _i(i),hs().addIdentity()})),Bs(6),Zu(7,"translate"),Zu(8,"customTranslate"),Za(),Qa(9,"button",6),as("click",(function(){_i(i);var e=hs();return e.removeIdentity(e.idpSelection)})),Bs(10),Zu(11,"translate"),Zu(12,"customTranslate"),Za(),$a(13,"perun-web-apps-user-ext-sources-list",7),Ua(14,Xj,14,22,"div",2),Qa(15,"h1",8),Bs(16),Zu(17,"translate"),Zu(18,"customTranslate"),Qa(19,"mat-icon",9),Zu(20,"translate"),Zu(21,"customTranslate"),Bs(22," info_outline "),Za(),Za(),Qa(23,"button",6),as("click",(function(){_i(i);var e=hs();return e.removeIdentity(e.otherSelection)})),Bs(24),Zu(25,"translate"),Zu(26,"customTranslate"),Za(),$a(27,"perun-web-apps-user-ext-sources-list",10),Za()}if(2&e){var n=hs();Br(2),Hs($u(3,19,$u(4,21,"IDENTITIES.IDP"))),Br(4),Hs($u(7,23,$u(8,25,"IDENTITIES.ADD"))),Br(3),Xa("disabled",0===n.idpSelection.selected.length),Br(1),Hs($u(11,27,$u(12,29,"IDENTITIES.REMOVE"))),Br(3),Xa("userExtSources",n.idpExtSources)("selection",n.idpSelection)("hideColumns",n.hiddenColumnsIdp)("loginHeader",n.loginIdp)("disableRouting",!0),Br(1),Xa("ngIf",n.displayCertificates),Br(2),qs(" ",$u(17,31,$u(18,33,"IDENTITIES.OTHER"))," "),Br(3),Xa("matTooltip",$u(20,35,$u(21,37,"IDENTITIES.OTHER_TOOLTIP"))),Br(4),Xa("disabled",0===n.otherSelection.selected.length),Br(1),Hs($u(25,39,$u(26,41,"IDENTITIES.REMOVE"))),Br(3),Xa("userExtSources",n.otherExtSources)("selection",n.otherSelection)("extSourceNameHeader",n.extSourceNameOther)("hideColumns",n.hiddenColumnsOther)("disableRouting",!0)}}var Qj,Zj=((Qj=function(){function e(t,i,n,r,o){_(this,e),this.usersManagerService=t,this.storage=i,this.registrarManagerService=n,this.dialog=r,this.attributesManagerService=o,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new db(!0,[]),this.certSelection=new db(!0,[]),this.otherSelection=new db(!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.hiddenColumnsIdp=["id","mail"],this.hiddenColumnsCert=["id","mail"],this.hiddenColumnsOther=["mail","id"]}return w(e,[{key:"ngOnInit",value:function(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}},{key:"refreshTables",value:function(){var e=this;this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe((function(t){var i=t.length;t.forEach((function(t){e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe((function(n){n&&n.value?(t.userExtSource.extSource.name=n.value,i--,e.loading=0!==i,e.addToList(t)):e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe((function(n){i--,n&&n.value&&(t.userExtSource.extSource.name=n.value),e.loading=0!==i,e.addToList(t)}))}))}))}))}},{key:"addIdentity",value:function(){var e=this;this.registrarManagerService.getConsolidatorToken().subscribe((function(t){var i=e.storage.getPerunPrincipal().extSourceType,n=e.storage.get("consolidator_base_url");window.location.href="".concat(n).concat(i&&i.endsWith("X509")?"cert":"fed","-ic/ic/?target_url=").concat(window.location.href,"&token=").concat(t)}))}},{key:"removeIdentity",value:function(e){var t=this,i=JS();i.width="600px",i.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(LN,i).afterClosed().subscribe((function(i){i&&(e.clear(),t.refreshTables())}))}},{key:"addToList",value:function(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)}}]),e}()).\u0275fac=function(e){return new(e||Qj)(Va(ng),Va(Gy),Va(tg),Va(RS),Va(Xp))},Qj.\u0275cmp=Lt({type:Qj,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","hideColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","hideColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","hideColumns","disableRouting"]],template:function(e,t){1&e&&(Qa(0,"div",0),Ua(1,Gj,1,0,"mat-spinner",1),Ua(2,Jj,28,43,"div",2),Za()),2&e&&(Br(1),Xa("ngIf",t.loading),Br(1),Xa("ngIf",!t.loading))},directives:[Uh,BO,JT,Vj,LE,aF],pipes:[YT,SI],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),Qj),$j=["panel"];function eY(e,t){if(1&e&&(Qa(0,"div",0,1),ps(2),Za()),2&e){var i=hs();Xa("id",i.id)("ngClass",i._classList)}}var tY,iY,nY,rY,oY,aY=["*"],sY=0,uY=function e(t,i){_(this,e),this.source=t,this.option=i},cY=vC((function e(){_(this,e)})),lY=new et("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),hY=((iY=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this))._changeDetectorRef=e,o._elementRef=n,o._activeOptionChanges=S.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new rc,o.opened=new rc,o.closed=new rc,o.optionActivated=new rc,o._classList={},o.id="mat-autocomplete-"+sY++,o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return w(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new tA(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})})),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new uY(this,e);this.optionSelected.emit(t)}},{key:"_setVisibilityClasses",value:function(e){e["mat-autocomplete-visible"]=this.showPanel,e["mat-autocomplete-hidden"]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=Xy(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?e.split(" ").reduce((function(e,t){return e[t.trim()]=!0,e}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),i}(cY)).\u0275fac=function(e){return new(e||iY)(Va(ua),Va(nu),Va(lY))},iY.\u0275cmp=Lt({type:iY,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,i){var n;1&e&&(_c(i,lS,!0),_c(i,oS,!0)),2&e&&(gc(n=Ac())&&(t.options=n),gc(n=Ac())&&(t.optionGroups=n))},viewQuery:function(e,t){var i;1&e&&(mc(Tu,!0),vc($j,!0)),2&e&&(gc(i=Ac())&&(t.template=i.first),gc(i=Ac())&&(t.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[$s([{provide:cS,useExisting:iY}]),La],ngContentSelectors:aY,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(fs(),Ua(0,eY,3,2,"ng-template"))},directives:[Hh],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}\n"],encapsulation:2,changeDetection:0}),iY),dY=((tY=function e(t){_(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||tY)(Va(nu))},tY.\u0275dir=Pt({type:tY,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),tY),fY=new et("mat-autocomplete-scroll-strategy"),pY={provide:fY,deps:[Ew],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},gY={provide:Fx,useExisting:Fe((function(){return mY})),multi:!0},mY=((oY=function(){function e(t,i,n,r,a,s,u,c,l,h){var d=this;_(this,e),this._element=t,this._overlay=i,this._viewContainerRef=n,this._zone=r,this._changeDetectorRef=a,this._dir=u,this._formField=c,this._document=l,this._viewportRuler=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=S.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new H,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=mg((function(){return d.autocomplete&&d.autocomplete.options?se.apply(void 0,o(d.autocomplete.options.map((function(e){return e.onSelectionChange})))):d._zone.onStable.asObservable().pipe(Dg(1),Lg((function(){return d.optionSelections})))})),this._scrollStrategy=s}return w(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular((function(){return t.addEventListener("blur",e._windowBlurHandler)}))}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var e=this;return se(t_(this._document,"click"),t_(this._document,"touchend")).pipe(jf((function(t){var i=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=e._formField?e._formField._elementRef.nativeElement:null;return e._overlayAttached&&i!==e._element.nativeElement&&(!n||!n.contains(i))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(i)})))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then((function(){return t._setTriggerValue(e)}))}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27===t&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}},{key:"_handleInput",value:function(e){var t=e.target,i=t.value;"number"===t.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var e=this.autocomplete._keyManager.activeItemIndex||0,t=hS(e,this.autocomplete.options,this.autocomplete.optionGroups);if(0===e&&1===t)this.autocomplete._setScrollTop(0);else{var i=dS(e+t,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}},{key:"_subscribeToClosingActions",value:function(){var e=this;return se(this._zone.onStable.asObservable().pipe(Dg(1)),this.autocomplete.options.changes.pipe(Ug((function(){return e._positionStrategy.reapplyLastPosition()})),jq(0))).pipe(Lg((function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions})),Dg(1)).subscribe((function(t){return e._setValueAndClose(t)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,i=null!=t?t:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach((function(t){t!=e&&t.selected&&t.deselect()}))}},{key:"_attachOverlay",value:function(){var e=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!eb(this._element.nativeElement));var t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new jb(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe((function(t){(27===t.keyCode||38===t.keyCode&&t.altKey)&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){e.panelOpen&&t&&t.updateSize({width:e._getPanelWidth()})})))),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new rw({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];t="above"===this.position?n:"below"===this.position?i:[].concat(i,n),e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=Xy(e)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var e=this;return se(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(jf((function(){return e._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(jf((function(){return e._overlayAttached}))):Hf()).pipe(Q((function(e){return e instanceof uS?e:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),e}()).\u0275fac=function(e){return new(e||oY)(Va(nu),Va(Ew),Va(Lu),Va(Xc),Va(ua),Va(fY),Va(ob,8),Va(Px,9),Va(Tl,8),Va(Tb))},oY.\u0275dir=Pt({type:oY,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&as("focusin",(function(){return t._handleFocus()}))("blur",(function(){return t._onTouched()}))("input",(function(e){return t._handleInput(e)}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&ja("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)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[$s([gY]),Gt]}),oY),vY=((rY=function e(){_(this,e)}).\u0275mod=Rt({type:rY}),rY.\u0275inj=Se({factory:function(e){return new(e||rY)},providers:[pY],imports:[[pS,Ow,pC,Ud],Pb,pS,pC]}),rY),yY=((nY=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t){return e&&e.value?e.value:"never"}}]),e}()).\u0275fac=function(e){return new(e||nY)},nY.\u0275pipe=It({name:"validateExpiration",type:nY,pure:!0}),nY);function _Y(e,t){1&e&&$a(0,"th",18)}function bY(e,t){if(1&e){var i=ns();Qa(0,"td",19),Qa(1,"mat-checkbox",20),as("click",(function(e){return _i(i),e.stopPropagation()}))("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.selection.toggle(n):null})),Zu(2,"validateExpiration"),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("disabled","never"===$u(2,3,n.expirationAttribute))("checked",r.selection.isSelected(n))("aria-label",r.checkboxLabel(n))}}function wY(e,t){1&e&&(Qa(0,"th",18),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"MEMBERSHIP_LIST.NAME"))))}function AY(e,t){if(1&e&&(Qa(0,"td",19),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.entity.name)}}function kY(e,t){1&e&&(Qa(0,"th",18),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))))}function MY(e,t){if(1&e&&(Qa(0,"td",21),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.entity.description)}}function CY(e,t){1&e&&(Qa(0,"th",22),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"MEMBERSHIP_LIST.EXPIRATION"))))}function SY(e,t){if(1&e&&(Qa(0,"td",21),Bs(1),Zu(2,"validateExpiration"),Za()),2&e){var i=t.$implicit;Br(1),qs(" ",$u(2,1,i.expirationAttribute)," ")}}function TY(e,t){1&e&&$a(0,"th",18)}function EY(e,t){if(1&e){var i=ns();Qa(0,"td",21),Qa(1,"button",23),as("click",(function(){_i(i);var e=t.$implicit;return hs().extend(e)})),Zu(2,"validateExpiration"),Bs(3),Zu(4,"translate"),Zu(5,"customTranslate"),Za(),Za()}if(2&e){var n=t.$implicit;Br(1),Xa("disabled","never"===$u(2,2,n.expirationAttribute)),Br(2),Hs($u(4,4,$u(5,6,"MEMBERSHIP_LIST.EXTEND")))}}function LY(e,t){1&e&&$a(0,"tr",24)}function zY(e,t){1&e&&$a(0,"tr",25)}function xY(e,t){1&e&&(Qa(0,"app-alert",26),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}var DY,RY=((DY=function(){function e(){_(this,e),this.members=[],this.searchString="",this.selection=new db(!1,[]),this.hideColumns=[],this.pageSize=10,this.filterValue="",this.extendMembership=new rc,this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.pageSizeOptions=YS}return w(e,[{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"ngOnChanges",value:function(e){var t=this;this.displayedColumns=this.displayedColumns.filter((function(e){return!t.hideColumns.includes(e)})),this.dataSource=new jz(this.members),this.setDataSource()}},{key:"getDataForColumn",value:function(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&&e.expirationAttribute.value?e.expirationAttribute.value:"never";default:return""}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.displayedColumns=this.displayedColumns.filter((function(t){return!e.hideColumns.includes(t)})),this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.entity.id+1)}},{key:"extend",value:function(e){this.extendMembership.emit(e)}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}}]),e}()).\u0275fac=function(e){return new(e||DY)},DY.\u0275cmp=Lt({type:DY,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){var i;1&e&&(mc(Rq,!0),vc(kq,!0)),2&e&&(gc(i=Ac())&&(t.matSort=i.first),gc(i=Ac())&&(t.paginator=i.first))},inputs:{members:"members",searchString:"searchString",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[Gt],decls:24,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"disabled","checked","aria-label","click","change"],["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&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,_Y,1,0,"th",6),Ua(7,bY,3,5,"td",7),ts(),es(8,8),Ua(9,wY,4,5,"th",6),Ua(10,AY,2,1,"td",7),ts(),es(11,9),Ua(12,kY,4,5,"th",6),Ua(13,MY,2,1,"td",10),ts(),es(14,11),Ua(15,CY,4,5,"th",12),Ua(16,SY,3,3,"td",10),ts(),es(17,13),Ua(18,TY,1,0,"th",6),Ua(19,EY,6,8,"td",10),ts(),Ua(20,LY,1,0,"tr",14),Ua(21,zY,1,0,"tr",15),Za(),Za(),$a(22,"mat-paginator",16),Za(),Za(),Ua(23,xY,4,5,"app-alert",17)),2&e&&(Xa("hidden",!t.dataSource.filteredData.length),Br(4),Xa("dataSource",t.dataSource),Br(16),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.members.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",!t.dataSource.filteredData.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,Sz,ZF,Hq,JT,Rz,Nz,IN],pipes:[yY,YT,SI],styles:[""]}),DY);function OY(e,t){if(1&e&&(Qa(0,"mat-option",13),Bs(1),Za()),2&e){var i=t.$implicit;Xa("value",i),Br(1),qs(" ",i.name," ")}}function PY(e,t){if(1&e){var i=ns();Qa(0,"mat-form-field",7),Qa(1,"mat-label"),Bs(2),Zu(3,"translate"),Za(),$a(4,"input",8),Zu(5,"translate"),Zu(6,"customTranslate"),Qa(7,"mat-autocomplete",9,10),as("optionSelected",(function(e){return _i(i),hs().filterByVo(e)})),Qa(9,"mat-option",11),Bs(10),Zu(11,"translate"),Zu(12,"customTranslate"),Za(),Ua(13,OY,2,2,"mat-option",12),Zu(14,"async"),Za(),Za()}if(2&e){var n=Ka(8),r=hs();Br(2),Hs($u(3,7,"GROUPS.SELECT_VO")),Br(2),gs("placeholder",$u(5,9,$u(6,11,"GROUPS.SELECT_VO"))),Xa("formControl",r.myControl)("matAutocomplete",n),Br(3),Xa("displayWith",r.displayFn),Br(3),Hs($u(11,13,$u(12,15,"GROUPS.ALL"))),Br(3),Xa("ngForOf",$u(14,17,r.filteredVos))}}function IY(e,t){1&e&&$a(0,"mat-spinner",14)}function NY(e,t){1&e&&(Qa(0,"app-alert",15),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"GROUPS.NO_GROUPS"))))}var FY=function(){return["checkbox"]};function BY(e,t){if(1&e){var i=ns();Qa(0,"div"),Qa(1,"h4",16),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),Qa(5,"perun-web-apps-membership-list",17),as("extendMembership",(function(e){return _i(i),hs().extendMembership(e)})),Za(),Za()}if(2&e){var n=hs();Br(2),Hs($u(3,4,$u(4,6,"GROUPS.MEMBER_GROUPS"))),Br(3),Xa("members",n.userMemberships)("selection",n.selection)("hideColumns",Ku(8,FY))}}var HY=function(){return["checkbox","expirationAttribute","extend"]};function qY(e,t){if(1&e&&(Qa(0,"div",18),Qa(1,"h4",16),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),$a(5,"perun-web-apps-membership-list",19),Za()),2&e){var i=hs();Br(2),Hs($u(3,3,$u(4,5,"GROUPS.ADMINS_GROUPS"))),Br(3),Xa("members",i.adminMemberships)("hideColumns",Ku(7,HY))}}var jY,YY=((jY=function(){function e(t,i,n,r,o,a){_(this,e),this.usersService=t,this.memberService=i,this.groupService=n,this.store=r,this.vosManagerService=o,this.attributesManagerService=a,this.loading=!1,this.vos=[],this.myControl=new rR,this.selection=new db(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe((function(t){e.vos=t,e.filteredVos=e.myControl.valueChanges.pipe(Ig(""),Q((function(t){return e._filter(t)}))),e.getAllGroups()}))}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter((function(e){return e.name.toLowerCase().includes(t)}))}},{key:"getAllGroups",value:function(){var e=this;this.loading=!0;var t=0,i=0;this.userMemberships=[],this.adminMemberships=[];var n=this.store.getPerunPrincipal().roles.SELF.Member;n.length?i=n.length:this.loading=!1,n.forEach((function(n){i--,e.groupService.getMemberGroups(n).subscribe((function(r){t+=r.length,e.loading=0===t&&0!==i,r.forEach((function(i){e.attributesManagerService.getMemberGroupAttributes(n,i.id).subscribe((function(n){t--,e.userMemberships.push({entity:i,expirationAttribute:n.find((function(e){return"groupMembershipExpiration"===e.friendlyName}))}),e.loading=0!==t}))}))}))})),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe((function(t){t.forEach((function(t){e.adminMemberships.push({entity:t,expirationAttribute:null})}))}))}},{key:"displayFn",value:function(e){return e?e.name:null}},{key:"filterByVo",value:function(e){var t=this;if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;var i=e.option.value;this.memberService.getMemberByUser(i.id,this.userId).subscribe((function(e){t.groupService.getMemberGroups(e.id).subscribe((function(i){var n=i.length;t.loading=0!==n,i.forEach((function(i){t.attributesManagerService.getMemberGroupAttributes(e.id,i.id).subscribe((function(e){n--,t.userMemberships.push({entity:i,expirationAttribute:e.find((function(e){return"groupMembershipExpiration"===e.friendlyName}))}),t.loading=0!==n}))}))}))})),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,i.id).subscribe((function(e){e.forEach((function(e){t.adminMemberships.push({entity:e,expirationAttribute:null})}))}))}}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url"),i=e.entity,n=this.vos.find((function(e){return e.id===i.voId})).shortName;window.location.href="".concat(t,"?vo=").concat(n,"&group=").concat(e.entity.shortName)}}]),e}()).\u0275fac=function(e){return new(e||jY)(Va(ng),Va($p),Va(Zp),Va(Gy),Va(rg),Va(Xp))},jY.\u0275cmp=Lt({type:jY,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","hideColumns","extendMembership"],[1,"mt-5"],[3,"members","hideColumns"]],template:function(e,t){1&e&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"div",1),Ua(5,PY,15,19,"mat-form-field",2),Ua(6,IY,1,0,"mat-spinner",3),Ua(7,NY,4,5,"app-alert",4),Ua(8,BY,6,9,"div",5),Ua(9,qY,6,8,"div",6),Za()),2&e&&(Br(1),Hs($u(2,6,$u(3,8,"GROUPS.TITLE"))),Br(4),Xa("ngIf",!t.loading),Br(1),Xa("ngIf",t.loading),Br(1),Xa("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),Br(1),Xa("ngIf",!t.loading&&0!==t.userMemberships.length),Br(1),Xa("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[Uh,Ix,Ex,AO,Yx,mY,Xx,bR,hY,lS,Yh,BO,IN,RY],pipes:[YT,SI,Ad],styles:[""]}),jY);function WY(e,t){if(1&e&&($a(0,"input",3),Zu(1,"translate")),2&e){var i=hs();gs("placeholder",$u(1,2,i.placeholder)),Xa("formControl",i.formControl)}}function UY(e,t){if(1&e&&($a(0,"input",4),Zu(1,"translate")),2&e){var i=hs();gs("placeholder",$u(1,2,i.placeholder)),Xa("formControl",i.formControl)}}var KY,VY,GY,XY,JY=((XY=function(){function e(){_(this,e),this.filter=new rc,this.autoFocus=!1,this.formControl=new rR}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.formControl.valueChanges.subscribe((function(t){var i=t.trim();i=i.toLowerCase(),e.filter.emit(i)}))}}]),e}()).\u0275fac=function(e){return new(e||XY)},XY.\u0275cmp=Lt({type:XY,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(Qa(0,"mat-form-field",0),Ua(1,WY,2,4,"input",1),Ua(2,UY,2,4,"input",2),Za()),2&e&&(Br(1),Xa("ngIf",t.autoFocus),Br(1),Xa("ngIf",!t.autoFocus))},directives:[Ix,Uh,AO,Yx,Sj,Xx,bR],pipes:[YT],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important}"]}),XY),QY=0,ZY=((GY=function(){function e(){_(this,e),this._stateChanges=new H,this._openCloseAllActions=new H,this.id="cdk-accordion-"+QY++,this._multi=!1}return w(e,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(e){this.multi&&this._openCloseAllActions.next(e)}},{key:"multi",get:function(){return this._multi},set:function(e){this._multi=Xy(e)}}]),e}()).\u0275fac=function(e){return new(e||GY)},GY.\u0275dir=Pt({type:GY,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Gt]}),GY),$Y=0,eW=((VY=function(){function e(t,i,n){var r=this;_(this,e),this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=n,this._openCloseAllSubscription=S.EMPTY,this.closed=new rc,this.opened=new rc,this.destroyed=new rc,this.expandedChange=new rc,this.id="cdk-accordion-child-"+$Y++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen((function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return w(e,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe((function(t){e.disabled||(e.expanded=t)}))}},{key:"expanded",get:function(){return this._expanded},set:function(e){e=Xy(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())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Xy(e)}}]),e}()).\u0275fac=function(e){return new(e||VY)(Va(ZY,12),Va(ua),Va(fb))},VY.\u0275dir=Pt({type:VY,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[$s([{provide:ZY,useValue:void 0}])]}),VY),tW=((KY=function e(){_(this,e)}).\u0275mod=Rt({type:KY}),KY.\u0275inj=Se({factory:function(e){return new(e||KY)}}),KY),iW=["body"];function nW(e,t){}var rW=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],oW=["mat-expansion-panel-header","*","mat-action-row"],aW=function(e,t){return{collapsedHeight:e,expandedHeight:t}},sW=function(e,t){return{value:e,params:t}};function uW(e,t){1&e&&$a(0,"span",2),2&e&&Xa("@indicatorRotate",hs()._getExpandedState())}var cW,lW,hW,dW,fW,pW,gW,mW,vW=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],yW=["mat-panel-title","mat-panel-description","*"],_W=new et("MAT_ACCORDION"),bW={indicatorRotate:xA("indicatorRotate",[IA("collapsed, void",PA({transform:"rotate(0deg)"})),IA("expanded",PA({transform:"rotate(180deg)"})),FA("expanded <=> collapsed, void => collapsed",DA("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:xA("expansionHeight",[IA("collapsed, void",PA({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),IA("expanded",PA({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),FA("expanded <=> collapsed, void => collapsed",RA([HA("@indicatorRotate",BA(),{optional:!0}),DA("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:xA("bodyExpansion",[IA("collapsed, void",PA({height:"0px",visibility:"hidden"})),IA("expanded",PA({height:"*",visibility:"visible"})),FA("expanded <=> collapsed, void => collapsed",DA("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},wW=((cW=function e(t){_(this,e),this._template=t}).\u0275fac=function(e){return new(e||cW)(Va(Tu))},cW.\u0275dir=Pt({type:cW,selectors:[["ng-template","matExpansionPanelContent",""]]}),cW),AW=0,kW=new et("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),MW=((gW=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u){var c;return _(this,i),(c=t.call(this,e,n,r))._viewContainerRef=o,c._animationMode=s,c._hideToggle=!1,c.afterExpand=new rc,c.afterCollapse=new rc,c._inputChanges=new H,c._headerId="mat-expansion-panel-header-"+AW++,c._bodyAnimationDone=new H,c.accordion=e,c._document=a,c._bodyAnimationDone.pipe(m_((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){"void"!==e.fromState&&("expanded"===e.toState?c.afterExpand.emit():"collapsed"===e.toState&&c.afterCollapse.emit())})),u&&(c.hideToggle=u.hideToggle),c}return w(i,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(Ig(null),jf((function(){return e.expanded&&!e._portal})),Dg(1)).subscribe((function(){e._portal=new jb(e._lazyContent._template,e._viewContainerRef)}))}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){h(y(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=Xy(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}}]),i}(eW)).\u0275fac=function(e){return new(e||gW)(Va(_W,12),Va(ua),Va(fb),Va(Lu),Va(Tl),Va(iC,8),Va(kW,8))},gW.\u0275cmp=Lt({type:gW,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,i){var n;1&e&&_c(i,wW,!0),2&e&&gc(n=Ac())&&(t._lazyContent=n.first)},viewQuery:function(e,t){var i;1&e&&vc(iW,!0),2&e&&gc(i=Ac())&&(t._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&Ss("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:[$s([{provide:_W,useValue:void 0}]),La,Gt],ngContentSelectors:oW,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&&(fs(rW),ps(0),Qa(1,"div",0,1),as("@bodyExpansion.done",(function(e){return t._bodyAnimationDone.next(e)})),Qa(3,"div",2),ps(4,1),Ua(5,nW,0,0,"ng-template",3),Za(),ps(6,2),Za()),2&e&&(Br(1),Xa("@bodyExpansion",t._getExpandedState())("id",t.id),ja("aria-labelledby",t._headerId),Br(4),Xa("cdkPortalOutlet",t._portal))},directives:[Kb],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[bW.bodyExpansion]},changeDetection:0}),gW),CW=((pW=function e(){_(this,e)}).\u0275fac=function(e){return new(e||pW)},pW.\u0275dir=Pt({type:pW,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),pW),SW=((fW=function(){function e(t,i,n,r,o){var a=this;_(this,e),this.panel=t,this._element=i,this._focusMonitor=n,this._changeDetectorRef=r,this._parentChangeSubscription=S.EMPTY,this._animationsDisabled=!0;var s=t.accordion?t.accordion._stateChanges.pipe(jf((function(e){return!(!e.hideToggle&&!e.togglePosition)}))):pg;this._parentChangeSubscription=se(t.opened,t.closed,s,t._inputChanges.pipe(jf((function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)})))).subscribe((function(){return a._changeDetectorRef.markForCheck()})),t.closed.pipe(jf((function(){return t._containsFocus()}))).subscribe((function(){return n.focusVia(i,"program")})),n.monitor(i).subscribe((function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(a)})),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return w(e,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Gb(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,e,t)}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),e}()).\u0275fac=function(e){return new(e||fW)(Va(MW,1),Va(nu),Va(wA),Va(ua),Va(kW,8))},fW.\u0275cmp=Lt({type:fW,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:19,hostBindings:function(e,t){1&e&&(ss("@expansionHeight.start",(function(){return t._animationStarted()})),as("click",(function(){return t._toggle()}))("keydown",(function(e){return t._keydown(e)}))),2&e&&(ja("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Us("@.disabled",t._animationsDisabled)("@expansionHeight",Gu(16,sW,t._getExpandedState(),Gu(13,aW,t.collapsedHeight,t.expandedHeight))),Ss("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:yW,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(fs(vW),Qa(0,"span",0),ps(1),ps(2,1),ps(3,2),Za(),Ua(4,uW,1,1,"span",1)),2&e&&(Br(4),Xa("ngIf",t._showToggle()))},directives:[Uh],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;position:relative}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[bW.indicatorRotate,bW.expansionHeaderHeight]},changeDetection:0}),fW),TW=((dW=function e(){_(this,e)}).\u0275fac=function(e){return new(e||dW)},dW.\u0275dir=Pt({type:dW,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),dW),EW=((hW=function e(){_(this,e)}).\u0275fac=function(e){return new(e||hW)},hW.\u0275dir=Pt({type:hW,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),hW),LW=((lW=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments))._ownHeaders=new ac,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return w(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(Ig(this._headers)).subscribe((function(t){e._ownHeaders.reset(t.filter((function(t){return t.panel.accordion===e}))),e._ownHeaders.notifyOnChanges()})),this._keyManager=new iA(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(e){var t=e.keyCode,i=this._keyManager;36===t?Gb(e)||(i.setFirstItemActive(),e.preventDefault()):35===t?Gb(e)||(i.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=Xy(e)}}]),i}(ZY)).\u0275fac=function(e){return zW(e||lW)},lW.\u0275dir=Pt({type:lW,selectors:[["mat-accordion"]],contentQueries:function(e,t,i){var n;1&e&&_c(i,SW,!0),2&e&&gc(n=Ac())&&(t._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&Ss("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[$s([{provide:_W,useExisting:lW}]),La]}),lW),zW=Dn(LW),xW=((mW=function e(){_(this,e)}).\u0275mod=Rt({type:mW}),mW.\u0275inj=Se({factory:function(e){return new(e||mW)},imports:[[Ud,tW,Vb]]}),mW);function DW(e,t){1&e&&(Qa(0,"mat-icon",1),Zu(1,"translate"),Bs(2," visibility\n"),Za()),2&e&&gs("matTooltip",$u(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}var RW,OW,PW=((OW=function(){function e(){_(this,e),this.recentIds=[]}return w(e,[{key:"ngOnChanges",value:function(e){}}]),e}()).\u0275fac=function(e){return new(e||OW)},OW.\u0275cmp=Lt({type:OW,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},features:[Gt],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&&Ua(0,DW,3,3,"mat-icon",0),2&e&&Xa("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[Uh,LE,aF],pipes:[YT],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),OW),IW=((RW=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t){if(null==e)return null;var i="";return e.forEach((function(e){i=i.concat(e.tagName)})),i}}]),e}()).\u0275fac=function(e){return new(e||RW)},RW.\u0275pipe=It({name:"resourceTagsToString",type:RW,pure:!0}),RW);function NW(e,t){if(1&e){var i=ns();Qa(0,"th",22),Qa(1,"mat-checkbox",23),as("change",(function(e){_i(i);var t=hs();return e?t.masterToggle():null})),Za(),Za()}if(2&e){var n=hs();Br(1),Xa("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function FW(e,t){if(1&e){var i=ns();Qa(0,"td",24),Qa(1,"mat-checkbox",25),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.itemSelectionToggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function BW(e,t){1&e&&(Qa(0,"th",26),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function HW(e,t){if(1&e&&(Qa(0,"td",24),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.id)}}function qW(e,t){1&e&&$a(0,"th",22)}function jW(e,t){if(1&e&&(Qa(0,"td",27),$a(1,"perun-web-apps-recently-viewed-icon",28),Za()),2&e){var i=t.$implicit,n=hs();Br(1),Xa("recentIds",n.recentIds)("id",i.id)}}function YW(e,t){1&e&&(Qa(0,"th",26),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function WW(e,t){if(1&e&&(Qa(0,"td",27),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.name)}}function UW(e,t){1&e&&(Qa(0,"th",26),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function KW(e,t){if(1&e&&(Qa(0,"td",27),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.vo.name)}}function VW(e,t){1&e&&(Qa(0,"th",26),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function GW(e,t){if(1&e&&(Qa(0,"td",27),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.facility.name)}}function XW(e,t){1&e&&(Qa(0,"th",26),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function JW(e,t){if(1&e&&(Qa(0,"td",27),Bs(1),Zu(2,"resourceTagsToString"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i.resourceTags))}}function QW(e,t){1&e&&(Qa(0,"th",26),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function ZW(e,t){if(1&e&&(Qa(0,"td",27),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.description)}}function $W(e,t){1&e&&$a(0,"tr",29)}var eU=function(e){return[e]};function tU(e,t){if(1&e&&($a(0,"tr",30),Zu(1,"getResourceRoute"),Zu(2,"getResourceRoute")),2&e){var i=t.$implicit,n=hs();Ss("cursor-pointer",!n.disableRouting)("disable-outline",n.disableRouting),Xa("routerLink",n.disableRouting?null:ec(1,6,i,n.routingVo))("perunWebAppsMiddleClickRouterLink",Vu(12,eU,n.disableRouting?null:ec(2,9,i,n.routingVo)))}}function iU(e,t){1&e&&(Qa(0,"app-alert",31),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nU(e,t){1&e&&(Qa(0,"app-alert",31),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var rU,oU=((rU=function(){function e(t,i){_(this,e),this.guiAuthResolver=t,this.tableCheckbox=i,this.resources=[],this.selection=new db(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","facility","tags","description"],this.pageSizeOptions=YS,this.page=new rc,this.allSelected=new rc,this.removeAuth=!1,this.addAuth=!1}return w(e,[{key:"ngOnChanges",value:function(e){this.guiAuthResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"id"!==e}))),this.dataSource=new jz(this.resources),this.setDataSource(),this.dataSource.filter=this.filterValue,this.setAuth()}},{key:"getDataForColumn",value:function(e,t,i){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 i.recentIds&&i.recentIds.indexOf(e.id)>-1?"#".repeat(i.recentIds.indexOf(e.id)):e.name;case"tags":if(!e.resourceTags)return e[t];var n="";return e.resourceTags.forEach((function(e){n=n.concat(e.tagName)})),n;default:return e[t]}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){var e=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(e),e}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1),this.setAuth()}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"setAuth",value:function(){var e=this;this.removeAuth=this.selection.selected.reduce((function(t,i){return t&&e.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",[i,e.groupToResource])}),!0),this.addAuth=this.selection.selected.reduce((function(t,i){return t&&e.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[i,e.groupToResource])}),!0)}},{key:"itemSelectionToggle",value:function(e){this.selection.toggle(e),this.setAuth()}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"matPaginator",set:function(e){this.paginator=e}}]),e}()).\u0275fac=function(e){return new(e||rU)(Va(ag),Va(FE))},rU.\u0275cmp=Lt({type:rU,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){var i;1&e&&(mc(Rq,!0),mc(kq,!0)),2&e&&(gc(i=Ac())&&(t.matSort=i.first),gc(i=Ac())&&(t.matPaginator=i.first))},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds"},outputs:{page:"page",allSelected:"allSelected"},features:[Gt],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","facility"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,NW,2,3,"th",6),Ua(7,FW,2,2,"td",7),ts(),es(8,8),Ua(9,BW,3,3,"th",9),Ua(10,HW,2,1,"td",10),ts(),es(11,11),Ua(12,qW,1,0,"th",6),Ua(13,jW,2,2,"td",12),ts(),es(14,13),Ua(15,YW,3,3,"th",9),Ua(16,WW,2,1,"td",12),ts(),es(17,14),Ua(18,UW,3,3,"th",9),Ua(19,KW,2,1,"td",12),ts(),es(20,15),Ua(21,VW,3,3,"th",9),Ua(22,GW,2,1,"td",12),ts(),es(23,16),Ua(24,XW,3,3,"th",9),Ua(25,JW,3,3,"td",12),ts(),es(26,17),Ua(27,QW,3,3,"th",9),Ua(28,ZW,2,1,"td",12),ts(),Ua(29,$W,1,0,"tr",18),Ua(30,tU,3,14,"tr",19),Za(),Za(),Qa(31,"mat-paginator",20),as("page",(function(e){return t.page.emit(e)})),Za(),Za(),Za(),Ua(32,iU,3,3,"app-alert",21),Ua(33,nU,3,3,"app-alert",21)),2&e&&(Xa("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),Br(4),Xa("dataSource",t.dataSource),Br(25),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.resources.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),Br(1),Xa("ngIf",0===t.resources.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,ZF,Sz,Hq,PW,Rz,Nz,vy,Ej,IN],pipes:[YT,IW,TI],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),rU);function aU(e,t){1&e&&$a(0,"mat-spinner",8)}var sU=function(){return["name","description"]};function uU(e,t){1&e&&$a(0,"perun-web-apps-resources-list",9),2&e&&Xa("resources",hs(3).resources)("displayedColumns",Ku(3,sU))("disableRouting",!0)}function cU(e,t){if(1&e&&(Ua(0,aU,1,0,"mat-spinner",6),Ua(1,uU,1,4,"perun-web-apps-resources-list",7)),2&e){var i=hs(2);Xa("ngIf",i.loading),Br(1),Xa("ngIf",!i.loading)}}function lU(e,t){if(1&e){var i=ns();Qa(0,"mat-expansion-panel",4),as("opened",(function(){_i(i);var e=t.$implicit;return hs().getMemberData(e)})),Qa(1,"mat-expansion-panel-header"),Qa(2,"mat-panel-title"),Bs(3),Za(),Za(),Ua(4,cU,2,2,"ng-template",5),Za()}if(2&e){var n=t.$implicit;Br(3),qs(" ",n.name," ")}}var hU,dU=((hU=function(){function e(t,i,n,r){_(this,e),this.usersManagerService=t,this.membersManagerService=i,this.resourcesManagerService=n,this.storage=r,this.resources=[],this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe((function(t){e.vos=t,e.filteredVos=t}))}},{key:"getMemberData",value:function(e){var t=this;this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe((function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe((function(e){t.resources=e,t.loading=!1}))}))}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}))}}]),e}()).\u0275fac=function(e){return new(e||hU)(Va(ng),Va($p),Va(ig),Va(Gy))},hU.\u0275cmp=Lt({type:hU,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&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"div",1),Qa(5,"perun-web-apps-immediate-filter",2),as("filter",(function(e){return t.applyFilter(e)})),Zu(6,"translate"),Zu(7,"customTranslate"),Za(),Qa(8,"mat-accordion"),Ua(9,lU,5,1,"mat-expansion-panel",3),Za(),Za()),2&e&&(Br(1),Hs($u(2,3,$u(3,5,"SERVICES.TITLE"))),Br(4),Xa("placeholder",$u(6,7,$u(7,9,"SERVICES.FILTER"))),Br(4),Xa("ngForOf",t.filteredVos))},directives:[JY,LW,Yh,MW,SW,EW,wW,Uh,BO,oU],pipes:[YT,SI],styles:[""]}),hU);function fU(e,t){if(1&e){var i=ns();Qa(0,"perun-web-apps-immediate-filter",5),as("filter",(function(e){return _i(i),hs().applyFilter(e)})),Za()}2&e&&Xa("placeholder","ORGANIZATIONS.FILTER")}function pU(e,t){1&e&&$a(0,"mat-spinner",6)}var gU=function(){return["checkbox","description"]};function mU(e,t){if(1&e){var i=ns();Qa(0,"div"),Qa(1,"perun-web-apps-membership-list",11),as("extendMembership",(function(e){return _i(i),hs(2).extendMembership(e)})),Za(),Za()}if(2&e){var n=hs(2);Br(1),Xa("members",n.userMemberships)("selection",n.selection)("filterValue",n.filterValue)("hideColumns",Ku(4,gU))}}function vU(e,t){1&e&&(Qa(0,"app-alert",12),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function yU(e,t){if(1&e&&(Qa(0,"div",7),Qa(1,"h1",8),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),Ua(5,mU,2,5,"div",9),Ua(6,vU,4,5,"app-alert",10),Za()),2&e){var i=hs();Br(2),Hs($u(3,3,$u(4,5,"ORGANIZATIONS.IS_MEMBER"))),Br(3),Xa("ngIf",0!==i.userMemberships.length),Br(1),Xa("ngIf",0===i.userMemberships.length)}}function _U(e,t){1&e&&(Qa(0,"app-alert",12),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}var bU=function(){return["checkbox","description","expirationAttribute","extend"]};function wU(e,t){if(1&e&&$a(0,"perun-web-apps-membership-list",14),2&e){var i=hs(2);Xa("members",i.adminMemberships)("filterValue",i.filterValue)("hideColumns",Ku(3,bU))}}function AU(e,t){if(1&e&&(Qa(0,"div",7),Qa(1,"h1",8),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),Ua(5,_U,4,5,"app-alert",10),Ua(6,wU,1,4,"perun-web-apps-membership-list",13),Za()),2&e){var i=hs();Br(2),Hs($u(3,3,$u(4,5,"ORGANIZATIONS.IS_ADMIN"))),Br(3),Xa("ngIf",!i.adminMemberships.length),Br(1),Xa("ngIf",i.adminMemberships.length)}}var kU,MU,CU,SU=((CU=function(){function e(t,i,n){_(this,e),this.usersService=t,this.store=i,this.membersService=n,this.filterValue="",this.selection=new db(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}return w(e,[{key:"ngOnInit",value:function(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe((function(t){e.usersService.getVosWhereUserIsAdmin(e.userId).subscribe((function(i){e.vosCount=t.length+i.length,e.fillMemberships(t,e.userMemberships),e.fillMemberships(i,e.adminMemberships)}))}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"isEverythingLoaded",value:function(){this.vosCount--,this.loading=0!==this.vosCount}},{key:"fillMemberships",value:function(e,t){var i=this;this.membersService.getMembersByUser(this.userId).subscribe((function(n){e.forEach((function(e){var r=n.find((function(t){return t.voId===e.id}));r?i.membersService.getRichMemberWithAttributes(r.id).subscribe((function(n){var r=n.memberAttributes.find((function(e){return"membershipExpiration"===e.friendlyName}));t.push({entity:e,expirationAttribute:r}),i.isEverythingLoaded()})):(t.push({entity:e,expirationAttribute:null}),i.isEverythingLoaded())}))}))}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url");window.location.href="".concat(t,"?vo=").concat(e.entity.shortName)}}]),e}()).\u0275fac=function(e){return new(e||CU)(Va(ng),Va(Gy),Va($p))},CU.\u0275cmp=Lt({type:CU,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","hideColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","hideColumns",4,"ngIf"],[3,"members","filterValue","hideColumns"]],template:function(e,t){1&e&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"div",1),Ua(5,fU,1,1,"perun-web-apps-immediate-filter",2),Ua(6,pU,1,0,"mat-spinner",3),Ua(7,yU,7,7,"div",4),Ua(8,AU,7,7,"div",4),Za()),2&e&&(Br(1),Hs($u(2,5,$u(3,7,"ORGANIZATIONS.TITLE"))),Br(4),Xa("ngIf",!t.loading),Br(1),Xa("ngIf",t.loading),Br(1),Xa("ngIf",!t.loading),Br(1),Xa("ngIf",!t.loading))},directives:[Uh,JY,BO,RY,IN],pipes:[YT,SI],styles:[""]}),CU),TU=((MU=function(){function e(){_(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||MU)},MU.\u0275cmp=Lt({type:MU,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(Qa(0,"div",0),$a(1,"router-outlet"),Za())},directives:[Cy],styles:[""]}),MU),EU=((kU=function(){function e(t,i){_(this,e),this.dialogRef=t,this.data=i,this.password=""}return w(e,[{key:"ngOnInit",value:function(){this.password=this.data.password}},{key:"onClose",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||kU)(Va(ES),Va(LS))},kU.\u0275cmp=Lt({type:kU,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&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"div",1),Qa(5,"p"),Bs(6),Zu(7,"translate"),Zu(8,"customTranslate"),Za(),Qa(9,"label"),$a(10,"input",2),Za(),Za(),Qa(11,"div",3),Qa(12,"button",4),as("click",(function(){return t.onClose()})),Bs(13),Zu(14,"translate"),Zu(15,"customTranslate"),Za(),Qa(16,"button",5),Bs(17),Zu(18,"translate"),Zu(19,"customTranslate"),Za(),Za()),2&e&&(Br(1),Hs($u(2,6,$u(3,8,"DIALOGS.SHOW_PASSWORD.TITLE"))),Br(5),Hs($u(7,10,$u(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),Br(4),Xa("value",t.password),Br(3),qs(" ",$u(14,14,$u(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),Br(3),Xa("cdkCopyToClipboard",t.password),Br(1),qs(" ",$u(18,18,$u(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[IS,NS,FS,JT,wI],pipes:[YT,SI],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),kU);function LU(e,t){1&e&&$a(0,"mat-spinner",7)}function zU(e,t){1&e&&$a(0,"th",16)}function xU(e,t){if(1&e&&(Qa(0,"td",17),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),qs(" ",i," ")}}function DU(e,t){1&e&&$a(0,"tr",18)}function RU(e,t){1&e&&$a(0,"tr",19)}function OU(e,t){if(1&e&&(Qa(0,"div",8),Qa(1,"p"),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),Qa(5,"div",9),Bs(6),Zu(7,"translate"),Zu(8,"customTranslate"),Za(),Qa(9,"table",10),es(10,11),Ua(11,zU,1,0,"th",12),Ua(12,xU,2,1,"td",13),ts(),Ua(13,DU,1,0,"tr",14),Ua(14,RU,1,0,"tr",15),Za(),Za()),2&e){var i=hs();Br(2),qs(" ",$u(3,5,$u(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),Br(4),qs(" ",$u(7,9,$u(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),Br(3),Xa("dataSource",i.dataSource),Br(4),Xa("matHeaderRowDef",i.displayedColumns),Br(1),Xa("matRowDefColumns",i.displayedColumns)}}var PU,IU=((PU=function(){function e(t,i,n){_(this,e),this.dialogRef=t,this.data=i,this.usersManagerService=n,this.displayedColumns=["description"]}return w(e,[{key:"ngOnInit",value:function(){this.dataSource=new jz(this.data.description)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe((function(){e.loading=!1,e.dialogRef.close(!0)}))}}]),e}()).\u0275fac=function(e){return new(e||PU)(Va(ES),Va(LS),Va(ng))},PU.\u0275cmp=Lt({type:PU,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&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"div",1),Ua(5,LU,1,0,"mat-spinner",2),Za(),Ua(6,OU,15,13,"div",3),Qa(7,"div",4),Qa(8,"button",5),as("click",(function(){return t.onCancel()})),Bs(9),Zu(10,"translate"),Zu(11,"customTranslate"),Za(),Qa(12,"button",6),as("click",(function(){return t.onSubmit()})),Bs(13),Zu(14,"translate"),Zu(15,"customTranslate"),Za(),Za()),2&e&&(Br(1),Hs($u(2,5,$u(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),Br(4),Xa("ngIf",t.loading),Br(1),Xa("ngIf",!t.loading),Br(3),qs(" ",$u(10,9,$u(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),Br(4),qs(" ",$u(14,13,$u(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[IS,Uh,FS,JT,BO,NS,pz,Az,yz,mz,Tz,xz,Mz,Sz,Rz,Nz],pipes:[YT,SI],styles:[""]}),PU);function NU(e,t){1&e&&$a(0,"th",15)}function FU(e,t){if(1&e){var i=ns();Qa(0,"td",16),Qa(1,"mat-checkbox",17),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.selection.toggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function BU(e,t){if(1&e&&(Qa(0,"th",18),Bs(1),Za()),2&e){var i=hs();Br(1),Hs(i.headerColumnText)}}function HU(e,t){if(1&e&&(Qa(0,"td",19),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i)}}function qU(e,t){1&e&&$a(0,"tr",20)}function jU(e,t){1&e&&$a(0,"tr",21)}function YU(e,t){if(1&e&&(Qa(0,"app-alert",22),Bs(1),Za()),2&e){var i=hs();Br(1),qs(" ",i.alertText,"\n")}}var WU,UU=function(){return[5,10,25]},KU=((WU=function(){function e(){_(this,e),this.values=[],this.selection=new db(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"],this.pageSize=5}return w(e,[{key:"ngOnChanges",value:function(e){this.values=this.values?this.values:[],this.dataSource=new jz(this.values),this.setDataSource()}},{key:"getExportDataForColumn",value:function(e,t){return e}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),e)}},{key:"setDataSource",value:function(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"checkboxLabel",value:function(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}},{key:"ngAfterViewInit",value:function(){this.setDataSource()}}]),e}()).\u0275fac=function(e){return new(e||WU)},WU.\u0275cmp=Lt({type:WU,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){var i;1&e&&vc(kq,!0),2&e&&gc(i=Ac())&&(t.paginator=i.first)},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[Gt],decls:15,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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"],[3,"length","pageSize","pageSizeOptions"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["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&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,NU,1,0,"th",6),Ua(7,FU,2,2,"td",7),ts(),es(8,8),Ua(9,BU,2,1,"th",9),Ua(10,HU,2,1,"td",10),ts(),Ua(11,qU,1,0,"tr",11),Ua(12,jU,1,0,"tr",12),Za(),Za(),$a(13,"mat-paginator",13),Za(),Za(),Ua(14,YU,2,1,"app-alert",14)),2&e&&(Xa("hidden",!t.values.length),Br(4),Xa("dataSource",t.dataSource),Br(7),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.values.length)("pageSize",t.pageSize)("pageSizeOptions",Ku(8,UU)),Br(1),Xa("ngIf",0===t.values.length))},directives:[Cj,pz,Az,yz,mz,Tz,xz,kq,Uh,Mz,Sz,ZF,Rz,Nz,IN],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),WU);function VU(e,t){if(1&e&&$a(0,"perun-web-apps-string-list",10),2&e){var i=hs();Xa("values",i.displayedValues)("selection",i.selection)("alertText",i.alertText)("headerColumnText",i.headerColumnText)}}function GU(e,t){1&e&&$a(0,"mat-spinner",11)}var XU,JU,QU,ZU=((QU=function(){function e(t,i,n,r,o){var a=this;_(this,e),this.store=t,this.attributesManagerService=i,this.dialog=n,this.translateService=r,this.usersManagerService=o,this.altPasswordCtrl=new rR(null,[iD.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new db(!1,[]),r.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe((function(e){return a.removeDialogDescription=e})),r.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe((function(e){return a.removeDialogTitle=e})),r.get("ALERTS.NO_ALT_PASSWORDS").subscribe((function(e){return a.alertText=e})),r.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe((function(e){return a.headerColumnText=e}))}return w(e,[{key:"ngOnInit",value:function(){this.getAltPasswords()}},{key:"createPassword",value:function(){var e=this,t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe((function(){var i=JS();i.width="600px",i.data={password:t},e.dialog.open(EU,i),e.getAltPasswords(),e.altPasswordCtrl.setValue("")}))}},{key:"generatePassword",value:function(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-",t="",i=0,n=e.length;i<16;++i)t+=e.charAt(Math.random()*n);return t.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),t}},{key:"getAltPasswords",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe((function(t){if(e.altPasswordsAttribute=t,t.value){var i=Object.keys(t.value);e.passwordDescriptions=new Set(i),e.displayedValues=Array.from(e.passwordDescriptions.values())}else e.displayedValues=[];e.loading=!1}))}},{key:"alreadyContainsValue",value:function(e){return this.passwordDescriptions.has(e)}},{key:"removeAltPasswords",value:function(){var e=this,t=JS();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(IU,t).afterClosed().subscribe((function(t){t&&(e.getAltPasswords(),e.selection.clear())}))}}]),e}()).\u0275fac=function(e){return new(e||QU)(Va(Gy),Va(Xp),Va(RS),Va(qT),Va(ng))},QU.\u0275cmp=Lt({type:QU,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&&(Qa(0,"div",0),Qa(1,"h1",1),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),Qa(5,"mat-form-field",2),Qa(6,"label",2),$a(7,"input",3),Zu(8,"translate"),Zu(9,"customTranslate"),Za(),Za(),Qa(10,"button",4),as("click",(function(){return t.createPassword()})),Bs(11),Zu(12,"translate"),Zu(13,"customTranslate"),Za(),Qa(14,"app-alert",5),Bs(15),Zu(16,"translate"),Zu(17,"customTranslate"),Za(),Qa(18,"h1",6),Bs(19),Zu(20,"translate"),Zu(21,"customTranslate"),Za(),Qa(22,"button",7),as("click",(function(){return t.removeAltPasswords()})),Bs(23),Zu(24,"translate"),Zu(25,"customTranslate"),Za(),Ua(26,VU,1,4,"perun-web-apps-string-list",8),Ua(27,GU,1,0,"mat-spinner",9),Za()),2&e&&(Br(2),Hs($u(3,11,$u(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),Br(5),gs("placeholder",$u(8,15,$u(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),Xa("formControl",t.altPasswordCtrl),Br(3),Xa("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),Br(1),Hs($u(12,19,$u(13,21,"ALT_PASSWORDS.GENERATE"))),Br(4),Hs($u(16,23,$u(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),Br(4),Hs($u(20,27,$u(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),Br(3),Xa("disabled",t.selection.isEmpty()),Br(1),Hs($u(24,31,$u(25,33,"ALT_PASSWORDS.REMOVE"))),Br(3),Xa("ngIf",!t.loading),Br(1),Xa("ngIf",t.loading))},directives:[Ix,AO,Yx,Xx,bR,JT,IN,Uh,KU,BO],pipes:[YT,SI],styles:[""]}),QU),$U=((JU=function(){function e(){_(this,e),this._vertical=!1,this._inset=!1}return w(e,[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=Xy(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=Xy(e)}}]),e}()).\u0275fac=function(e){return new(e||JU)},JU.\u0275cmp=Lt({type:JU,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(ja("aria-orientation",t.vertical?"vertical":"horizontal"),Ss("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}\n"],encapsulation:2,changeDetection:0}),JU),eK=((XU=function e(){_(this,e)}).\u0275mod=Rt({type:XU}),XU.\u0275inj=Se({factory:function(e){return new(e||XU)},imports:[[pC],pC]}),XU),tK=["*"],iK='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',nK=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],rK=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],oK=["text"];function aK(e,t){if(1&e&&$a(0,"mat-pseudo-checkbox",5),2&e){var i=hs();Xa("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var sK,uK,cK,lK,hK,dK,fK,pK,gK,mK=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],vK=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],yK=gC(vC((function e(){_(this,e)}))),_K=vC((function e(){_(this,e)})),bK=((sK=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments))._stateChanges=new H,e}return w(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(yK)).\u0275fac=function(e){return wK(e||sK)},sK.\u0275cmp=Lt({type:sK,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[La,Gt],ngContentSelectors:tK,decls:1,vars:0,template:function(e,t){1&e&&(fs(),ps(0))},styles:[iK],encapsulation:2,changeDetection:0}),sK),wK=Dn(bK),AK=((dK=function(e){d(i,e);var t=p(i);function i(e){var n;return _(this,i),(n=t.call(this))._elementRef=e,n._stateChanges=new H,"action-list"===n._getListType()&&e.nativeElement.classList.add("mat-action-list"),n}return w(i,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(yK)).\u0275fac=function(e){return new(e||dK)(Va(nu))},dK.\u0275cmp=Lt({type:dK,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[La,Gt],ngContentSelectors:tK,decls:1,vars:0,template:function(e,t){1&e&&(fs(),ps(0))},styles:[iK],encapsulation:2,changeDetection:0}),dK),kK=((hK=function e(){_(this,e)}).\u0275fac=function(e){return new(e||hK)},hK.\u0275dir=Pt({type:hK,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),hK),MK=((lK=function e(){_(this,e)}).\u0275fac=function(e){return new(e||lK)},lK.\u0275dir=Pt({type:lK,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),lK),CK=((cK=function e(){_(this,e)}).\u0275fac=function(e){return new(e||cK)},cK.\u0275dir=Pt({type:cK,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),cK),SK=((uK=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;_(this,i),(a=t.call(this))._element=e,a._isInteractiveList=!1,a._destroyed=new H,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe(C_(a._destroyed)).subscribe((function(){n.markForCheck()})),a}return w(i,[{key:"ngAfterContentInit",value:function(){IC(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=Xy(e)}}]),i}(_K)).\u0275fac=function(e){return new(e||uK)(Va(nu),Va(ua),Va(bK,8),Va(AK,8))},uK.\u0275cmp=Lt({type:uK,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,i){var n;1&e&&(_c(i,kK,!0),_c(i,MK,!0),_c(i,PC,!0)),2&e&&(gc(n=Ac())&&(t._avatar=n.first),gc(n=Ac())&&(t._icon=n.first),gc(n=Ac())&&(t._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&Ss("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[La],ngContentSelectors:rK,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&&(fs(nK),Qa(0,"div",0),$a(1,"div",1),ps(2),Qa(3,"div",2),ps(4,1),Za(),ps(5,2),Za()),2&e&&(Br(1),Xa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[$C],encapsulation:2,changeDetection:0}),uK),TK=vC((function e(){_(this,e)})),EK=vC((function e(){_(this,e)})),LK={provide:Fx,useExisting:Fe((function(){return DK})),multi:!0},zK=function e(t,i){_(this,e),this.source=t,this.option=i},xK=((gK=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this))._element=e,o._changeDetector=n,o.selectionList=r,o._selected=!1,o._disabled=!1,o._hasFocus=!1,o.checkboxPosition="after",o._inputsInitialized=!1,o}return w(i,[{key:"ngOnInit",value:function(){var e=this,t=this.selectionList;t._value&&t._value.some((function(i){return t.compareWith(i,e._value)}))&&this._setSelected(!0);var i=this._selected;Promise.resolve().then((function(){(e._selected||i)&&(e.selected=!0,e._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){IC(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var e=this;this.selected&&Promise.resolve().then((function(){e.selected=!1}));var t=this._hasFocus,i=this.selectionList._removeOptionFromList(this);t&&i&&i.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(e){this._color=e}},{key:"value",get:function(){return this._value},set:function(e){this.selected&&e!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=e}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(e){var t=Xy(e);t!==this._disabled&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(e){var t=Xy(e);t!==this._selected&&(this._setSelected(t),this.selectionList._reportValueChange())}}]),i}(EK)).\u0275fac=function(e){return new(e||gK)(Va(nu),Va(ua),Va(Fe((function(){return DK}))))},gK.\u0275cmp=Lt({type:gK,selectors:[["mat-list-option"]],contentQueries:function(e,t,i){var n;1&e&&(_c(i,kK,!0),_c(i,MK,!0),_c(i,PC,!0)),2&e&&(gc(n=Ac())&&(t._avatar=n.first),gc(n=Ac())&&(t._icon=n.first),gc(n=Ac())&&(t._lines=n))},viewQuery:function(e,t){var i;1&e&&vc(oK,!0),2&e&&gc(i=Ac())&&(t._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&as("focus",(function(){return t._handleFocus()}))("blur",(function(){return t._handleBlur()}))("click",(function(){return t._handleClick()})),2&e&&(ja("aria-selected",t.selected)("aria-disabled",t.disabled)("tabindex",-1),Ss("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)("mat-primary","primary"===t.color)("mat-accent","primary"!==t.color&&"warn"!==t.color)("mat-warn","warn"===t.color)("mat-list-single-selected-option",t.selected&&!t.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[La],ngContentSelectors:vK,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,t){1&e&&(fs(mK),Qa(0,"div",0),$a(1,"div",1),Ua(2,aK,1,2,"mat-pseudo-checkbox",2),Qa(3,"div",3,4),ps(5),Za(),ps(6,1),Za()),2&e&&(Ss("mat-list-item-content-reverse","after"==t.checkboxPosition),Br(1),Xa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()),Br(1),Xa("ngIf",t.selectionList.multiple))},directives:[$C,Uh,tS],encapsulation:2,changeDetection:0}),gK),DK=((pK=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this))._element=e,o._changeDetector=r,o._multiple=!0,o._contentInitialized=!1,o.selectionChange=new rc,o.tabIndex=0,o.color="accent",o.compareWith=function(e,t){return e===t},o._disabled=!1,o.selectedOptions=new db(o._multiple),o._tabIndex=-1,o._onChange=function(e){},o._destroyed=new H,o._onTouched=function(){},o}return w(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._contentInitialized=!0,this._keyManager=new iA(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(C_(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.options.changes.pipe(Ig(null),C_(this._destroyed)).subscribe((function(){e._updateTabIndex()})),this.selectedOptions.changed.pipe(C_(this._destroyed)).subscribe((function(e){if(e.added){var t,i=s(e.added);try{for(i.s();!(t=i.n()).done;)t.value.selected=!0}catch(o){i.e(o)}finally{i.f()}}if(e.removed){var n,r=s(e.removed);try{for(r.s();!(n=r.n()).done;)n.value.selected=!1}catch(o){r.e(o)}finally{r.f()}}}))}},{key:"ngOnChanges",value:function(e){var t=e.disableRipple,i=e.color;(t&&!t.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(e){this._element.nativeElement.focus(e)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"_removeOptionFromList",value:function(e){var t=this._getOptionIndex(e);return t>-1&&this._keyManager.activeItemIndex===t&&(t>0?this._keyManager.updateActiveItem(t-1):0===t&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(t+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(e){var t=e.keyCode,i=this._keyManager,n=i.activeItemIndex,r=Gb(e);switch(t){case 32:case 13:r||i.isTyping()||(this._toggleFocusedOption(),e.preventDefault());break;case 36:case 35:r||(36===t?i.setFirstItemActive():i.setLastItemActive(),e.preventDefault());break;default:if(65===t&&this.multiple&&Gb(e,"ctrlKey")&&!i.isTyping()){var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this._setAllOptionsSelected(o,!0),e.preventDefault()}else i.onKeydown(e)}this.multiple&&(38===t||40===t)&&e.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}},{key:"_emitChangeEvent",value:function(e){this.selectionChange.emit(new zK(this,e))}},{key:"_onFocus",value:function(){var e=this._keyManager.activeItemIndex;e&&-1!==e?this._keyManager.setActiveItem(e):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"_setOptionsFromValues",value:function(e){var t=this;this.options.forEach((function(e){return e._setSelected(!1)})),e.forEach((function(e){var i=t.options.find((function(i){return!i.selected&&t.compareWith(i.value,e)}));i&&i._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(e){return e.selected})).map((function(e){return e.value}))}},{key:"_toggleFocusedOption",value:function(){var e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){var t=this.options.toArray()[e];!t||t.disabled||!this._multiple&&t.selected||(t.toggle(),this._emitChangeEvent(t))}}},{key:"_setAllOptionsSelected",value:function(e,t){var i=!1;this.options.forEach((function(n){t&&n.disabled||!n._setSelected(e)||(i=!0)})),i&&this._reportValueChange()}},{key:"_isValidIndex",value:function(e){return e>=0&&e0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;_(this,e),this.matches=t,this.mediaQuery=i,this.mqAlias=n,this.suffix=r,this.priority=o,this.property=""}return w(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),YK=((NK=function(){function e(){_(this,e),this.stylesheet=new Map}return w(e,[{key:"addStyleToElement",value:function(e,t,i){var n=this.stylesheet.get(e);n?n.set(t,i):this.stylesheet.set(e,new Map([[t,i]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var i=this.stylesheet.get(e),n="";if(i){var r=i.get(t);"number"!=typeof r&&"string"!=typeof r||(n=r+"")}return n}}]),e}()).\u0275fac=function(e){return new(e||NK)},NK.\u0275prov=Ce({factory:function(){return new NK},token:NK,providedIn:"root"}),NK),WK={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},UK=new et("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return WK}}),KK=new et("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),VK=new et("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function GK(e,t){return e=e?e.clone():new jK,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var XK=["row","column","row-reverse","column-reverse"];function JK(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var QK,ZK=((QK=function(){function e(t,i,n,r){_(this,e),this.elementRef=t,this.styleBuilder=i,this.styler=n,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new H,this.styleCache=new Map}return w(e,[{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach((function(i){if(-1!==t.inputs.indexOf(i)){var n=i.split(".").slice(1).join(".");t.setValue(e[i].currentValue,n)}}))}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var i=this.styleBuilder,n=i.shouldCache,r=this.styleCache.get(e);r&&n||(r=i.buildStyles(e,t),n&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),i.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach((function(t){e.mru[t]=""})),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),r=i(n,2),o=r[0],a=r[1];if(!a&&t){var s=function(e){var t=function(e){var t=i((e=e?e.toLowerCase():"").split(" "),3),n=t[0],r=t[1],o=t[2];return XK.find((function(e){return e===n}))||(n=XK[0]),"inline"===r&&(r="inline"!==o?o:"",o="inline"),[n,JK(r),!!o]}(e),n=i(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}(o);this.styler.applyStyleToElements(s,[e])}return o.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(i,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}},{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},QK.\u0275dir=Pt({type:QK,features:[Gt]}),QK),$K=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{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}],eV="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",tV="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",iV="(orientation: portrait) and (min-width: 840px)",nV="(orientation: landscape) and (min-width: 1280px)",rV={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:"".concat(eV," , ").concat(tV),WEB:"".concat(iV,", ").concat(nV," "),HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:eV+" ",WEB_PORTRAIT:""+iV,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)",TABLET_LANDSCAPE:""+tV,WEB_LANDSCAPE:""+nV},oV=[{alias:"handset",priority:2e3,mediaQuery:rV.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:rV.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:rV.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:rV.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:rV.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:rV.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:rV.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:rV.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:rV.WEB_PORTRAIT,overlapping:!0}],aV=/(\.|-|_)/g;function sV(e){var t=e.length>0?e.charAt(0):"",i=e.length>1?e.slice(1):"";return t.toUpperCase()+i}var uV=new et("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=lt(VK),t=lt(UK),i=[].concat.apply([],(e||[]).map((function(e){return Array.isArray(e)?e:[e]})));return function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return e.forEach((function(e){n[e.alias]=e})),i.forEach((function(e){n[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var n=this._observable$.pipe(jf((function(t){return!i||e.indexOf(t.mediaQuery)>-1})));return se(new O((function(i){var n=t.registerQuery(e);if(n.length){var r=n.pop();n.forEach((function(e){i.next(e)})),t.source.next(r)}i.complete()})),n)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,i=Array.isArray(e)?e:[e],n=[];return function(e,t){var i=e.filter((function(e){return!mV[e]}));if(i.length>0){var n=i.join(", ");try{var r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(n," {.fx-query-test{ }}\n"))),t.head.appendChild(r),i.forEach((function(e){return mV[e]=r}))}catch(o){console.error(o)}}}(i,this._document),i.forEach((function(e){var i=function(i){t._zone.run((function(){return t.source.next(new jK(i.matches,e))}))},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(i),t.pendingRemoveListenerFns.push((function(){return r.removeListener(i)})),t.registry.set(e,r)),r.matches&&n.push(new jK(!0,e))})),n}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,Kd(this._platformId))}},{key:"activations",get:function(){var e=[];return this.registry.forEach((function(t,i){t.matches&&e.push(i)})),e}}]),e}()).\u0275fac=function(e){return new(e||hV)(ct(Xc),ct(Oc),ct(Tl))},hV.\u0275prov=Ce({factory:function(){return new hV(ct(Xc),ct(Oc),ct(Tl))},token:hV,providedIn:"root"}),hV),mV={},vV={alias:"print",mediaQuery:"print",priority:1e3},yV=((fV=function(){function e(t,i,n){_(this,e),this.breakpoints=t,this.layoutConfig=i,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new _V,this.deactivations=[]}return w(e,[{key:"withPrintQuery",value:function(e){return[].concat(o(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,i=this.breakpoints.findByQuery(t);return(i?[].concat(o(this.printBreakPoints),[i]):this.printBreakPoints).sort(cV)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),GK(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var i=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new jK(!0,"print"))),e.updateStyles())},n=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(n)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(i){t.isPrintEvent(i)?i.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(i)),e.updateStyles()):i.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(i)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(cV))}}},{key:"ngOnDestroy",value:function(){var e=this;this.beforePrintEventListeners.forEach((function(t){return e._document.defaultView.removeEventListener("beforeprint",t)})),this.afterPrintEventListeners.forEach((function(t){return e._document.defaultView.removeEventListener("afterprint",t)}))}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map((function(t){return e.breakpoints.findByAlias(t)})).filter((function(e){return null!==e}))}}]),e}()).\u0275fac=function(e){return new(e||fV)(ct(pV),ct(UK),ct(Tl))},fV.\u0275prov=Ce({factory:function(){return new fV(ct(pV),ct(UK),ct(Tl))},token:fV,providedIn:"root"}),fV),_V=function(){function e(){_(this,e),this.printBreakpoints=[]}return w(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(vV),e.sort(cV),e.forEach((function(e){return t.addBreakpoint(e)})),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find((function(t){return t.mediaQuery===e.mediaQuery}))&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(o(this.printBreakpoints)):[].concat(o(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function bV(e){for(var t in e){var i=e[t]||"";switch(t){case"display":e.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=i;break;case"flex-direction":i=i||"row",e["-webkit-flex-direction"]=i,e["flex-direction"]=i;break;case"order":e.order=e["-webkit-"+t]=isNaN(+i)?"0":i}}return e}var wV,AV=((wV=function(){function e(t,i,n,r){_(this,e),this._serverStylesheet=t,this._serverModuleLoaded=i,this._platformId=n,this.layoutConfig=r}return w(e,[{key:"applyStyleToElement",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={};"string"==typeof t&&(n[t]=i,t=n),n=this.layoutConfig.disableVendorPrefixes?t:bV(t),this._applyMultiValueStyleToElement(n,e)}},{key:"applyStyleToElements",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.layoutConfig.disableVendorPrefixes?e:bV(e);i.forEach((function(e){t._applyMultiValueStyleToElement(n,e)}))}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||Vd(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return Kd(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="";return e&&((n=this.lookupInlineStyle(e,t))||(Kd(this._platformId)?i||(n=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(e,t)))),n?n.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var i=this;Object.keys(e).sort().forEach((function(n){var r=e[n],o=Array.isArray(r)?r:[r];o.sort();var a,u=s(o);try{for(u.s();!(a=u.n()).done;){var c=a.value;c=c?c+"":"",Kd(i._platformId)||!i._serverModuleLoaded?Kd(i._platformId)?t.style.setProperty(n,c):i._setServerStyle(t,n,c):i._serverStylesheet.addStyleToElement(t,n,c)}}catch(l){u.e(l)}finally{u.f()}}))}},{key:"_setServerStyle",value:function(e,t,i){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var n=this._readStyleAttribute(e);n[t]=i||"",this._writeStyleAttribute(e,n)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},i=e.getAttribute("style");if(i)for(var n=i.split(/;+/g),r=0;r0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);t[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var i="";for(var n in t)t[n]&&(i+=n+":"+t[n]+";");e.setAttribute("style",i)}}]),e}()).\u0275fac=function(e){return new(e||wV)(ct(YK),ct(KK),ct(Oc),ct(UK))},wV.\u0275prov=Ce({factory:function(){return new wV(ct(YK),ct(KK),ct(Oc),ct(UK))},token:wV,providedIn:"root"}),wV),kV=function(){function e(){_(this,e),this.shouldCache=!0}return w(e,[{key:"sideEffect",value:function(e,t,i){}}]),e}();function MV(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",n=[t,i,e],r=e.indexOf("calc");if(r>0){n[2]=CV(e.substring(r).trim());var o=e.substr(0,r).trim().split(" ");2==o.length&&(n[0]=o[0],n[1]=o[1])}else if(0==r)n[2]=CV(e.trim());else{var a=e.split(" ");n=3===a.length?a:[t,i,e]}return n}function CV(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var SV,TV=((SV=function(){function e(t,i,n){_(this,e),this.matchMedia=t,this.breakpoints=i,this.hook=n,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 H,this.observeActivations()}return w(e,[{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=GK(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(cV),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(cV),this.updateStyles()))}},{key:"init",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];EV(this.updateMap,e,t,i),EV(this.clearMap,e,t,n),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,i){var n=this.elementMap.get(e);if(n){var r=void 0!==i?n.get(i):this.getActivatedValues(n,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var i=this.elementMap.get(e);if(i){var n=this.getActivatedValues(i,t);if(n)return void 0!==n.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,i,n){var r=this.elementMap.get(e);if(r){var o=(r.get(n)||new Map).set(t,i);r.set(n,o),this.elementMap.set(e,r)}else r=(new Map).set(n,(new Map).set(t,i)),this.elementMap.set(e,r);var a=this.getValue(e,t);void 0!==a&&this.updateElement(e,t,a)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(jf((function(i){return i.element===e&&i.key===t})))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach((function(t,i){var n=new Set(e.elementKeyMap.get(i)),r=e.getActivatedValues(t);r&&r.forEach((function(t,r){e.updateElement(i,r,t),n.delete(r)})),n.forEach((function(n){if(r=e.getActivatedValues(t,n)){var o=r.get(n);e.updateElement(i,n,o)}else e.clearElement(i,n)}))}))}},{key:"clearElement",value:function(e,t){var i=this.clearMap.get(e);if(i){var n=i.get(t);n&&(n(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,i){var n=this.updateMap.get(e);if(n){var r=n.get(t);r&&(r(i),this.subject.next({element:e,key:t,value:i}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach((function(e){return e.unsubscribe()})),this.watcherMap.delete(e));var i=this.elementMap.get(e);i&&(i.forEach((function(e,t){return i.delete(t)})),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var i=this,n=this.elementMap.get(e);if(n){var r=this.getActivatedValues(n,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach((function(t,n){return i.updateElement(e,n,t)})))}}},{key:"buildElementKeyMap",value:function(e,t){var i=this.elementKeyMap.get(e);i||(i=new Set,this.elementKeyMap.set(e,i)),i.add(t)}},{key:"watchExtraTriggers",value:function(e,t,i){var n=this;if(i&&i.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var a=se.apply(void 0,o(i)).subscribe((function(){var i=n.getValue(e,t);n.updateElement(e,t,i)}));r.set(t,a)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var i=0;i-1}function DV(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var RV,OV,PV,IV,NV,FV,BV=((RV=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((t=i(zV(e),3))[0],t[1],t[2]);var t}}]),n}(kV)).\u0275fac=function(e){return HV(e||RV)},RV.\u0275prov=Ce({factory:function(){return new RV},token:RV,providedIn:"root"}),RV),HV=Dn(BV),qV=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],jV=((PV=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,r,n,o)).DIRECTIVE_KEY="layout",a.styleCache=UV,a.init(),a}return i}(ZK)).\u0275fac=function(e){return new(e||PV)(Va(nu),Va(AV),Va(BV),Va(TV))},PV.\u0275dir=Pt({type:PV,features:[La]}),PV),YV=((OV=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=qV,e}return i}(jV)).\u0275fac=function(e){return WV(e||OV)},OV.\u0275dir=Pt({type:OV,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[La]}),OV),WV=Dn(YV),UV=new Map,KV={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},VV=((IV=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._styler=e,i}return w(n,[{key:"buildStyles",value:function(e,t){return e.endsWith(iG)?(n=e=e.slice(0,e.indexOf(iG)),r=t.directionality,o=i(n.split(" "),2),a=o[0],u="0px",c=(s=function(e){return"-"+e})(o[1]||a),l="0px","rtl"===r?l=s(a):u=s(a),{margin:"0px ".concat(u," ").concat(c," ").concat(l)}):{};var n,r,o,a,s,u,c,l}},{key:"sideEffect",value:function(e,t,n){var r,o,a,s,u,c,l,h=n.items;if(e.endsWith(iG)){var d=(r=e=e.slice(0,e.indexOf(iG)),o=n.directionality,a=i(r.split(" "),2),s=a[0],u=a[1],c="0px",l="0px","rtl"===o?l=s:c=s,{padding:"0px ".concat(c," ").concat(u||s," ").concat(l)});this._styler.applyStyleToElements(d,n.items)}else{var f=h.pop(),p=function(e,t){var i=nG(t.directionality,t.layout),n=Object.assign({},KV);return n[i]=e,n}(e,n);this._styler.applyStyleToElements(p,h),this._styler.applyStyleToElements(KV,[f])}}}]),n}(kV)).\u0275fac=function(e){return new(e||IV)(ct(AV))},IV.\u0275prov=Ce({factory:function(){return new IV(ct(AV))},token:IV,providedIn:"root"}),IV),GV=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],XV=((FV=function(e){d(n,e);var i=p(n);function n(e,t,r,o,a,s){var u;_(this,n),(u=i.call(this,e,a,o,s)).zone=t,u.directionality=r,u.styleUtils=o,u.layout="row",u.DIRECTIVE_KEY="layout-gap",u.observerSubject=new H;var c=[u.directionality.change,u.observerSubject.asObservable()];return u.init(c),u.marshal.trackValue(u.nativeElement,"layout").pipe(C_(u.destroySubject)).subscribe(u.onLayoutChange.bind(m(u))),u}return w(n,[{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){h(y(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(e){var t=this,i=e.value.split(" ");this.layout=i[0],LV.find((function(e){return e===t.layout}))||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(e){var t=this,i=this.childrenNodes.filter((function(e){return 1===e.nodeType&&t.willDisplay(e)})).sort((function(e,i){var n=+t.styler.lookupStyle(e,"order"),r=+t.styler.lookupStyle(i,"order");return isNaN(n)||isNaN(r)||n===r?0:n>r?1:-1}));if(i.length>0){var n=this.directionality.value,r=this.layout;"row"===r&&"rtl"===n?this.styleCache=ZV:"row"===r&&"rtl"!==n?this.styleCache=eG:"column"===r&&"rtl"===n?this.styleCache=$V:"column"===r&&"rtl"!==n&&(this.styleCache=tG),this.addStyles(e,{directionality:n,items:i,layout:r})}}},{key:"clearStyles",value:function(){var e=Object.keys(this.mru).length>0,i=e?"padding":nG(this.directionality.value,this.layout);e&&h(y(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(t({},i,""),this.childrenNodes)}},{key:"willDisplay",value:function(e){var t=this.marshal.getValue(e,"show-hide");return!0===t||void 0===t&&"none"!==this.styleUtils.lookupStyle(e,"display")}},{key:"buildChildObservable",value:function(){var e=this;this.zone.runOutsideAngular((function(){"undefined"!=typeof MutationObserver&&(e.observer=new MutationObserver((function(t){t.some((function(e){return e.addedNodes&&e.addedNodes.length>0||e.removedNodes&&e.removedNodes.length>0}))&&e.observerSubject.next()})),e.observer.observe(e.nativeElement,{childList:!0}))}))}},{key:"childrenNodes",get:function(){for(var e=this.nativeElement.children,t=[],i=e.length;i--;)t[i]=e[i];return t}}]),n}(ZK)).\u0275fac=function(e){return new(e||FV)(Va(nu),Va(Xc),Va(ob),Va(AV),Va(VV),Va(TV))},FV.\u0275dir=Pt({type:FV,features:[La]}),FV),JV=((NV=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=GV,e}return i}(XV)).\u0275fac=function(e){return QV(e||NV)},NV.\u0275dir=Pt({type:NV,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[La]}),NV),QV=Dn(JV),ZV=new Map,$V=new Map,eG=new Map,tG=new Map,iG=" grid";function nG(e,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left";default:return"rtl"===e?"margin-left":"margin-right"}}function rG(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n-1?"column":"row",u=xV(s)?"max-width":"max-height",c=xV(s)?"min-width":"min-height",l=String(a).indexOf("calc")>-1,h=l||"auto"===a,d=String(a).indexOf("%")>-1&&!l,f=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1,p=l||f;o="0"==o?0:o;var g=!(r="0"==r?0:r)&&!o,m={},v={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":var y=!1!==this.layoutConfig.useColumnBasisZero;a="row"===s?"0%":y?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":r=0,o=0,a="auto";break;default:p||d||isNaN(a)||(a+="%"),"0%"===a&&(p=!0),"0px"===a&&(a="0%"),m=rG(v,l?{"flex-grow":r,"flex-shrink":o,"flex-basis":p?a:"100%"}:{flex:"".concat(r," ").concat(o," ").concat(p?a:"100%")})}return m.flex||m["flex-grow"]||(m=rG(v,l?{"flex-grow":r,"flex-shrink":o,"flex-basis":a}:{flex:"".concat(r," ").concat(o," ").concat(a)})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(m[c]=g||p&&r?a:null,m[u]=g||!h&&o?a:null),m[c]||m[u]?i.hasWrap&&(m[l?"flex-basis":"flex"]=m[u]?l?m[u]:"".concat(r," ").concat(o," ").concat(m[u]):l?m[c]:"".concat(r," ").concat(o," ").concat(m[c])):m=rG(v,l?{"flex-grow":r,"flex-shrink":o,"flex-basis":a}:{flex:"".concat(r," ").concat(o," ").concat(a)}),rG(m,{"box-sizing":"border-box"})}}]),n}(kV)).\u0275fac=function(e){return new(e||oG)(ct(UK))},oG.\u0275prov=Ce({factory:function(){return new oG(ct(UK))},token:oG,providedIn:"root"}),oG),MG=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],CG=((sG=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s;return _(this,i),(s=t.call(this,e,o,n,a)).layoutConfig=r,s.marshal=a,s.DIRECTIVE_KEY="flex",s.direction=void 0,s.wrap=void 0,s.flexGrow="1",s.flexShrink="1",s.init(),s}return w(i,[{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(C_(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(C_(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(e){var t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var t=this.direction,i=t.startsWith("row"),n=this.wrap;i&&n?this.styleCache=zG:i&&!n?this.styleCache=EG:!i&&n?this.styleCache=xG:i||n||(this.styleCache=LG);var r=MV(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:t,hasWrap:n})}},{key:"triggerReflow",value:function(){var e=this.activatedValue;if(void 0!==e){var t=MV(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}},{key:"shrink",get:function(){return this.flexShrink},set:function(e){this.flexShrink=e||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(e){this.flexGrow=e||"1",this.triggerReflow()}}]),i}(ZK)).\u0275fac=function(e){return new(e||sG)(Va(nu),Va(AV),Va(UK),Va(kG),Va(TV))},sG.\u0275dir=Pt({type:sG,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[La]}),sG),SG=((aG=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=MG,e}return i}(CG)).\u0275fac=function(e){return TG(e||aG)},aG.\u0275dir=Pt({type:aG,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[La]}),aG),TG=Dn(SG),EG=new Map,LG=new Map,zG=new Map,xG=new Map,DG=((uG=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){return{order:e&&parseInt(e,10)||""}}}]),i}(kV)).\u0275fac=function(e){return RG(e||uG)},uG.\u0275prov=Ce({factory:function(){return new uG},token:uG,providedIn:"root"}),uG),RG=Dn(DG),OG=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"],PG=((cG=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,r,n,o)).DIRECTIVE_KEY="flex-order",a.styleCache=IG,a.init(),a}return i}(ZK)).\u0275fac=function(e){return new(e||cG)(Va(nu),Va(AV),Va(DG),Va(TV))},cG.\u0275dir=Pt({type:cG,features:[La]}),cG),IG=new Map,NG=((lG=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=OG,e}return i}(PG)).\u0275fac=function(e){return FG(e||lG)},lG.\u0275dir=Pt({type:lG,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[La]}),lG),FG=Dn(NG),BG=((hG=function(e){d(n,e);var i=p(n);function n(){return _(this,n),i.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e,i){""===e&&(e="0");var n=String(e).indexOf("%")>-1;String(e).indexOf("px")>-1||n||isNaN(+e)||(e+="%");var r=i.isRtl?"margin-right":"margin-left";return xV(i.layout)?t({},r,""+e):{"margin-top":""+e}}}]),n}(kV)).\u0275fac=function(e){return HG(e||hG)},hG.\u0275prov=Ce({factory:function(){return new hG},token:hG,providedIn:"root"}),hG),HG=Dn(BG),qG=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"],jG=((fG=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s;return _(this,i),(s=t.call(this,e,r,a,o)).directionality=n,s.DIRECTIVE_KEY="flex-offset",s.init([s.directionality.change]),s.parentElement&&s.marshal.trackValue(s.parentElement,"layout-gap").pipe(C_(s.destroySubject)).subscribe(s.triggerUpdate.bind(m(s))),s}return w(i,[{key:"updateWithValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getFlexFlowDirection(this.parentElement,!0),i="rtl"===this.directionality.value;"row"===t&&i?this.styleCache=UG:"row"!==t||i?"column"===t&&i?this.styleCache=KG:"column"!==t||i||(this.styleCache=GG):this.styleCache=VG,this.addStyles(e+"",{layout:t,isRtl:i})}}]),i}(ZK)).\u0275fac=function(e){return new(e||fG)(Va(nu),Va(ob),Va(BG),Va(TV),Va(AV))},fG.\u0275dir=Pt({type:fG,features:[La]}),fG),YG=((dG=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=qG,e}return i}(jG)).\u0275fac=function(e){return WG(e||dG)},dG.\u0275dir=Pt({type:dG,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[La]}),dG),WG=Dn(YG),UG=new Map,KG=new Map,VG=new Map,GG=new Map,XG=((pG=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){var t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}]),i}(kV)).\u0275fac=function(e){return JG(e||pG)},pG.\u0275prov=Ce({factory:function(){return new pG},token:pG,providedIn:"root"}),pG),JG=Dn(XG),QG=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"],ZG=((gG=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,r,n,o)).DIRECTIVE_KEY="flex-align",a.styleCache=$G,a.init(),a}return i}(ZK)).\u0275fac=function(e){return new(e||gG)(Va(nu),Va(AV),Va(XG),Va(TV))},gG.\u0275dir=Pt({type:gG,features:[La]}),gG),$G=new Map,eX=((mG=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=QG,e}return i}(ZG)).\u0275fac=function(e){return tX(e||mG)},mG.\u0275dir=Pt({type:mG,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[La]}),mG),tX=Dn(eX),iX={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"},nX=((vG=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){return iX}}]),i}(kV)).\u0275fac=function(e){return rX(e||vG)},vG.\u0275prov=Ce({factory:function(){return new vG},token:vG,providedIn:"root"}),vG),rX=Dn(nX),oX=((yG=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,r,n,o)).styleCache=aX,a.addStyles(""),a}return i}(ZK)).\u0275fac=function(e){return new(e||yG)(Va(nu),Va(AV),Va(nX),Va(TV))},yG.\u0275dir=Pt({type:yG,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[La]}),yG),aX=new Map,sX=((_G=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e,t){var n={},r=i(e.split(" "),2),o=r[0],a=r[1];switch(o){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(a){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return rG(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===a?xV(t.layout)?null:"100%":null,"max-height":"stretch"===a&&xV(t.layout)?"100%":null})}}]),n}(kV)).\u0275fac=function(e){return uX(e||_G)},_G.\u0275prov=Ce({factory:function(){return new _G},token:_G,providedIn:"root"}),_G),uX=Dn(sX),cX=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],lX=((wG=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,r,n,o)).DIRECTIVE_KEY="layout-align",a.layout="row",a.inline=!1,a.init(),a.marshal.trackValue(a.nativeElement,"layout").pipe(C_(a.destroySubject)).subscribe(a.onLayoutChange.bind(m(a))),a}return w(i,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",i=this.inline;"row"===t&&i?this.styleCache=vX:"row"!==t||i?"row-reverse"===t&&i?this.styleCache=_X:"row-reverse"!==t||i?"column"===t&&i?this.styleCache=yX:"column"!==t||i?"column-reverse"===t&&i?this.styleCache=bX:"column-reverse"!==t||i||(this.styleCache=mX):this.styleCache=pX:this.styleCache=gX:this.styleCache=fX,this.addStyles(e,{layout:t,inline:i})}},{key:"onLayoutChange",value:function(e){var t=this,i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),LV.find((function(e){return e===t.layout}))||(this.layout="row"),this.triggerUpdate()}}]),i}(ZK)).\u0275fac=function(e){return new(e||wG)(Va(nu),Va(AV),Va(sX),Va(TV))},wG.\u0275dir=Pt({type:wG,features:[La]}),wG),hX=((bG=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=cX,e}return i}(lX)).\u0275fac=function(e){return dX(e||bG)},bG.\u0275dir=Pt({type:bG,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[La]}),bG),dX=Dn(hX),fX=new Map,pX=new Map,gX=new Map,mX=new Map,vX=new Map,yX=new Map,_X=new Map,bX=new Map,wX=((AG=function e(){_(this,e)}).\u0275mod=Rt({type:AG}),AG.\u0275inj=Se({factory:function(e){return new(e||AG)},imports:[[qK,sb]]}),AG);function AX(e,t){if(1&e&&(Qa(0,"mat-option",13),Bs(1),Za()),2&e){var i=t.$implicit;Xa("value",hs().selectedUnit),Br(1),qs(" ",i," ")}}var kX,MX=((kX=function(){function e(t,i,n,r,o){var a=this;_(this,e),this.dialogRef=t,this.data=i,this.rtMessagesService=n,this.notificator=r,this.translate=o,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",o.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe((function(e){return a.successMessage=e}))}return w(e,[{key:"ngOnInit",value:function(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new rR(null,[iD.required]),this.newValueControl=new rR(null,[iD.required,iD.pattern("[1-9][0-9]*")])}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,t=(new CI).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request","QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ".concat(t," (user ID: ").concat(this.data.user.id,")\u21b5 VO: ").concat(this.data.vo.shortName," / ").concat(this.data.vo.name," (vo ID: ").concat(this.data.vo.id,")\u21b5 Resource: ").concat(this.data.resource.name," (resource ID: ").concat(this.data.resource.id,")\u21b5 Data quota\u21b5 Requested quota: ").concat(this.newValueControl.value,"\u21b5 Reason: ").concat(this.reasonControl.value,"\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI")).subscribe((function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()}))}}]),e}()).\u0275fac=function(e){return new(e||kX)(Va(ES),Va(LS),Va(eg),Va(DE),Va(qT))},kX.\u0275cmp=Lt({type:kX,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&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"div",1),Qa(5,"div"),Qa(6,"p",2),Bs(7),Zu(8,"translate"),Zu(9,"customTranslate"),Za(),Qa(10,"p"),Bs(11),Za(),Za(),Qa(12,"div"),Qa(13,"p",2),Bs(14),Zu(15,"translate"),Zu(16,"customTranslate"),Za(),Qa(17,"p"),Bs(18),Za(),Za(),Qa(19,"div",3),Qa(20,"mat-form-field"),Qa(21,"label",4),$a(22,"input",5),Zu(23,"translate"),Zu(24,"customTranslate"),Za(),Za(),Qa(25,"mat-select",6),as("valueChange",(function(e){return t.selectedUnit=e})),Ua(26,AX,2,2,"mat-option",7),Za(),Za(),Qa(27,"div"),Qa(28,"mat-form-field",8),Qa(29,"label",4),$a(30,"textarea",9),Zu(31,"translate"),Zu(32,"customTranslate"),Za(),Za(),Za(),Qa(33,"div",10),Qa(34,"button",11),as("click",(function(){return t.onCancel()})),Bs(35),Zu(36,"translate"),Zu(37,"customTranslate"),Za(),Qa(38,"button",12),as("click",(function(){return t.onSubmit()})),Bs(39),Zu(40,"translate"),Zu(41,"customTranslate"),Za(),Za(),Za()),2&e&&(Br(1),Hs($u(2,14,$u(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE"))),Br(6),Hs($u(8,18,$u(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))),Br(4),Hs(t.resource),Br(3),Hs($u(15,22,$u(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))),Br(4),Hs(t.currentQuota),Br(4),gs("placeholder",$u(23,26,$u(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),Xa("formControl",t.newValueControl),Br(3),Xa("value",t.selectedUnit),Br(1),Xa("ngForOf",t.units),Br(4),gs("placeholder",$u(31,30,$u(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),Xa("formControl",t.reasonControl),Br(5),qs(" ",$u(36,34,$u(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),Br(3),Xa("disabled",t.reasonControl.invalid),Br(1),qs(" ",$u(40,38,$u(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[IS,YV,eX,Ix,AO,fD,Yx,JR,Xx,bR,LF,Yh,FS,JT,lS],pipes:[YT,SI],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),kX);function CX(e,t){1&e&&$a(0,"mat-spinner",8)}function SX(e,t){1&e&&(Qa(0,"app-alert",9),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function TX(e,t){if(1&e){var i=ns();Qa(0,"div"),Qa(1,"p"),Qa(2,"strong"),Bs(3),Zu(4,"translate"),Zu(5,"customTranslate"),Za(),Bs(6),Za(),Qa(7,"p",10),Bs(8),Zu(9,"translate"),Zu(10,"customTranslate"),Za(),Qa(11,"button",11),as("click",(function(){_i(i);var e=hs().$implicit,t=hs(3).$implicit;return hs().requestChangeQuota(t,e)})),Bs(12),Zu(13,"translate"),Zu(14,"customTranslate"),Za(),Za()}if(2&e){var n=hs(5);Br(3),Hs($u(4,4,$u(5,6,"DATA_QUOTAS.QUOTA"))),Br(3),qs(" ",n.quotasMarkup,""),Br(2),Hs($u(9,8,$u(10,10,"DATA_QUOTAS.QUOTA_INFO"))),Br(4),Hs($u(13,12,$u(14,14,"DATA_QUOTAS.CHANGE")))}}function EX(e,t){1&e&&(Qa(0,"p"),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function LX(e,t){if(1&e){var i=ns();Qa(0,"mat-expansion-panel",3),as("opened",(function(){_i(i);var e=t.$implicit;return hs(4).getResAttributes(e.id)})),Qa(1,"mat-expansion-panel-header"),Qa(2,"mat-panel-title"),Bs(3),Za(),Za(),Ua(4,TX,15,16,"div",7),Ua(5,EX,4,5,"p",7),Za()}if(2&e){var n=t.$implicit,r=hs(4);Br(3),qs(" ",n.name," "),Br(1),Xa("ngIf",r.defaultQuota),Br(1),Xa("ngIf",!r.defaultQuota)}}function zX(e,t){if(1&e&&(Qa(0,"mat-accordion"),Ua(1,LX,6,3,"mat-expansion-panel",2),Za()),2&e){var i=hs(3);Br(1),Xa("ngForOf",i.resources)}}function xX(e,t){if(1&e&&(Ua(0,CX,1,0,"mat-spinner",5),Ua(1,SX,4,5,"app-alert",6),Ua(2,zX,2,1,"mat-accordion",7)),2&e){var i=hs(2);Xa("ngIf",i.loading),Br(1),Xa("ngIf",0===i.resources.length&&!i.loading),Br(1),Xa("ngIf",i.resources.length&&!i.loading)}}function DX(e,t){if(1&e){var i=ns();Qa(0,"mat-expansion-panel",3),as("opened",(function(){_i(i);var e=t.$implicit;return hs().getMembersResources(e)})),Qa(1,"mat-expansion-panel-header"),Qa(2,"mat-panel-title"),Bs(3),Za(),Za(),Ua(4,xX,3,3,"ng-template",4),Za()}if(2&e){var n=t.$implicit;Br(3),qs(" ",n.name," ")}}var RX,OX=((RX=function(){function e(t,i,n,r,o,a){_(this,e),this.store=t,this.usersManagerService=i,this.membersService=n,this.resourcesManagerService=r,this.attributesManagerService=o,this.dialog=a,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe((function(t){e.vos=t,e.filteredVos=t}))}},{key:"getMembersResources",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe((function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe((function(e){var i=e.length;i||(t.loading=!1),e.forEach((function(e){t.attributesManagerService.getResourceAttributes(e.id).subscribe((function(n){i--,n.find((function(e){return"defaultDataQuotas"===e.friendlyName}))&&t.resources.push(e),t.loading=0!==i}))}))}))}))}},{key:"getResAttributes",value:function(e){var t=this;this.attributesManagerService.getResourceAttributes(e).subscribe((function(e){var i=e.find((function(e){return"dataQuotas"===e.friendlyName}));if(i&&i.value){var n=Object.keys(i.value);t.currentQuota=i.value[n[0]]}else t.currentQuota="";if(i=e.find((function(e){return"defaultDataQuotas"===e.friendlyName}))){var r=Object.keys(i.value);t.defaultQuota=i.value[r[0]]}else t.defaultQuota="";t.currentQuota||(t.currentQuota=t.defaultQuota),t.parseMarkup()}))}},{key:"parseMarkup",value:function(){var e="";e+=this.currentQuota,e=(e+=" (default: ".concat(this.defaultQuota,")")).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}},{key:"requestChangeQuota",value:function(e,t){var i=JS();i.width="400px",i.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(MX,i)}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}))}}]),e}()).\u0275fac=function(e){return new(e||RX)(Va(Gy),Va(ng),Va($p),Va(ig),Va(Xp),Va(RS))},RX.\u0275cmp=Lt({type:RX,selectors:[["perun-web-apps-settings-data-quotas"]],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"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"perun-web-apps-immediate-filter",1),as("filter",(function(e){return t.applyFilter(e)})),Zu(5,"translate"),Zu(6,"customTranslate"),Za(),Qa(7,"mat-accordion"),Ua(8,DX,5,1,"mat-expansion-panel",2),Za()),2&e&&(Br(1),Hs($u(2,3,$u(3,5,"DATA_QUOTAS.TITLE"))),Br(3),Xa("placeholder",$u(5,7,$u(6,9,"DATA_QUOTAS.FILTER"))),Br(4),Xa("ngForOf",t.filteredVos))},directives:[JY,LW,Yh,MW,SW,EW,wW,Uh,BO,IN,JT],pipes:[YT,SI],styles:[""]}),RX);function PX(e,t){1&e&&$a(0,"mat-spinner",8)}function IX(e,t){1&e&&(Qa(0,"app-alert",9),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function NX(e,t){if(1&e){var i=ns();Qa(0,"mat-expansion-panel",3),as("opened",(function(){_i(i);var e=t.$implicit;return hs(4).getOptOutAttribute(e)})),Qa(1,"mat-expansion-panel-header"),Qa(2,"mat-panel-title"),Bs(3),Za(),Za(),Qa(4,"div",10),Qa(5,"p"),Bs(6),Zu(7,"translate"),Zu(8,"customTranslate"),Za(),Qa(9,"mat-checkbox",11),as("change",(function(){return _i(i),hs(4).setOptOut()})),Za(),Za(),Za()}if(2&e){var n=t.$implicit,r=hs(4);Br(3),qs(" ",n.name," "),Br(3),Hs($u(7,3,$u(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),Br(3),Xa("checked",r.optOutAttribute&&null!==r.optOutAttribute.value)}}function FX(e,t){if(1&e&&(Qa(0,"mat-accordion"),Ua(1,NX,10,7,"mat-expansion-panel",2),Za()),2&e){var i=hs(3);Br(1),Xa("ngForOf",i.resources)}}function BX(e,t){if(1&e&&(Ua(0,PX,1,0,"mat-spinner",5),Ua(1,IX,4,5,"app-alert",6),Ua(2,FX,2,1,"mat-accordion",7)),2&e){var i=hs(2);Xa("ngIf",i.loading),Br(1),Xa("ngIf",0===i.resources.length&&!i.loading),Br(1),Xa("ngIf",i.resources.length&&!i.loading)}}function HX(e,t){if(1&e){var i=ns();Qa(0,"mat-expansion-panel",3),as("opened",(function(){_i(i);var e=t.$implicit;return hs().getMailingLists(e)})),Qa(1,"mat-expansion-panel-header"),Qa(2,"mat-panel-title"),Bs(3),Za(),Za(),Ua(4,BX,3,3,"ng-template",4),Za()}if(2&e){var n=t.$implicit;Br(3),qs(" ",n.name," ")}}var qX,jX=((qX=function(){function e(t,i,n,r,o){_(this,e),this.store=t,this.usersManagerService=i,this.membersService=n,this.resourcesManagerService=r,this.attributesManagerService=o,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe((function(t){e.vos=t,e.filteredVos=t}))}},{key:"getMailingLists",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe((function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe((function(i){var n=i.length;n||(t.loading=!1),i.forEach((function(i){t.attributesManagerService.getRequiredAttributesMemberResource(e.id,i.id).subscribe((function(r){t.attributesManagerService.getResourceAttributeByName(i.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe((function(o){n--;var a=r.find((function(e){return"optOutMailingList"===e.friendlyName}));!a||o&&"true"===o.value||(t.optOuts.push({resource:i.id,member:e.id,attribute:a}),t.resources.push(i)),t.loading=0!==n}))}))}))}))}))}},{key:"getOptOutAttribute",value:function(e){this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}},{key:"setOptOut",value:function(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe((function(){console.log("done")}))}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}))}}]),e}()).\u0275fac=function(e){return new(e||qX)(Va(Gy),Va(ng),Va($p),Va(ig),Va(Xp))},qX.\u0275cmp=Lt({type:qX,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(e,t){1&e&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"perun-web-apps-immediate-filter",1),as("filter",(function(e){return t.applyFilter(e)})),Zu(5,"translate"),Zu(6,"customTranslate"),Za(),Qa(7,"mat-accordion"),Ua(8,HX,5,1,"mat-expansion-panel",2),Za()),2&e&&(Br(1),Hs($u(2,3,$u(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),Br(3),Xa("placeholder",$u(5,7,$u(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),Br(4),Xa("ngForOf",t.filteredVos))},directives:[JY,LW,Yh,MW,SW,EW,wW,Uh,BO,IN,ZF],pipes:[YT,SI],styles:[""]}),qX);function YX(e,t){1&e&&$a(0,"mat-spinner",4)}function WX(e,t){1&e&&$a(0,"th",17)}function UX(e,t){if(1&e&&(Qa(0,"td",18),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),qs(" ",i," ")}}function KX(e,t){1&e&&$a(0,"tr",19)}function VX(e,t){1&e&&$a(0,"tr",20)}function GX(e,t){if(1&e&&(Qa(0,"table",11),es(1,12),Ua(2,WX,1,0,"th",13),Ua(3,UX,2,1,"td",14),ts(),Ua(4,KX,1,0,"tr",15),Ua(5,VX,1,0,"tr",16),Za()),2&e){var i=hs(2);Xa("dataSource",i.dataSource),Br(4),Xa("matHeaderRowDef",i.displayedColumns),Br(1),Xa("matRowDefColumns",i.displayedColumns)}}function XX(e,t){if(1&e){var i=ns();Qa(0,"div",1),Qa(1,"div",5),Qa(2,"p"),Bs(3),Za(),Qa(4,"div",6),Bs(5),Zu(6,"translate"),Zu(7,"customTranslate"),Za(),Ua(8,GX,6,3,"table",7),Za(),Qa(9,"div",8),Qa(10,"button",9),as("click",(function(){return _i(i),hs().onCancel()})),Bs(11),Zu(12,"translate"),Zu(13,"customTranslate"),Za(),Qa(14,"button",10),as("click",(function(){return _i(i),hs().onSubmit()})),Bs(15),Zu(16,"translate"),Zu(17,"customTranslate"),Za(),Za(),Za()}if(2&e){var n=hs();Br(3),qs(" ",n.description," "),Br(2),qs(" ",$u(6,5,$u(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),Br(3),Xa("ngIf",n.dataSource.data.length),Br(3),qs(" ",$u(12,9,$u(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),Br(4),qs(" ",$u(16,13,$u(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}var JX,QX=((JX=function(){function e(t,i,n){_(this,e),this.dialogRef=t,this.data=i,this.attributesManagerService=n,this.displayedColumns=["name"]}return w(e,[{key:"ngOnInit",value:function(){this.dataSource=new jz(this.data.values),this.description=this.data.description,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{var t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter((function(t){return!e.data.values.find((function(e){return e===t}))})),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe((function(){e.loading=!1,e.dialogRef.close(!0)}),(function(){return e.loading=!1}))}}]),e}()).\u0275fac=function(e){return new(e||JX)(Va(ES),Va(LS),Va(Xp))},JX.\u0275cmp=Lt({type:JX,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&&(Qa(0,"h1",0),Bs(1),Za(),Qa(2,"div",1),Ua(3,YX,1,0,"mat-spinner",2),Za(),Ua(4,XX,18,17,"div",3)),2&e&&(Br(1),Hs(t.title),Br(2),Xa("ngIf",t.loading),Br(1),Xa("ngIf",!t.loading))},directives:[IS,Uh,BO,NS,FS,JT,pz,Az,yz,mz,Tz,xz,Mz,Sz,Rz,Nz],pipes:[YT,SI],styles:[""]}),JX);function ZX(e,t){1&e&&(Qa(0,"app-alert",5),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function $X(e,t){if(1&e){var i=ns();Qa(0,"mat-option",11),as("click",(function(){return _i(i),hs(3).changeValue()})),Bs(1),Za()}if(2&e){var n=t.$implicit;Xa("value",n),Br(1),Hs(n)}}function eJ(e,t){if(1&e){var i=ns();Qa(0,"mat-list-item"),Qa(1,"mat-form-field",7),Qa(2,"mat-select",8),as("valueChange",(function(e){_i(i);var n=t.index;return hs(2).shells[n]=e})),Ua(3,$X,2,2,"mat-option",9),Za(),Za(),Qa(4,"button",10),as("click",(function(){_i(i);var e=t.index;return hs(2).removeShell(e)})),Bs(5),Zu(6,"translate"),Zu(7,"customTranslate"),Za(),Za()}if(2&e){var n=t.index,r=hs(2);Br(2),Xa("value",r.shells[n]),Br(1),Xa("ngForOf",r.defaultShells),Br(2),Hs($u(6,3,$u(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON")))}}function tJ(e,t){if(1&e&&(Qa(0,"mat-list"),Ua(1,eJ,8,7,"mat-list-item",6),Za()),2&e){var i=hs();Br(1),Xa("ngForOf",i.shells)}}var iJ,nJ=((iJ=function(){function e(t,i,n,r){var o=this;_(this,e),this.store=t,this.attributesManagerService=i,this.dialog=n,this.translateService=r,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],r.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe((function(e){return o.removeDialogDescription=e})),r.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe((function(e){return o.removeDialogTitle=e}))}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe((function(){e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe((function(t){return e.removeDialogDescription=t})),e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe((function(t){return e.removeDialogTitle=t}))})),this.getAttribute()}},{key:"addShell",value:function(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe((function(){console.log("done")}))}},{key:"removeShell",value:function(e){var t=this,i=JS();i.width="600px",i.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(QX,i).afterClosed().subscribe((function(e){e&&t.getAttribute()}))}},{key:"getAttribute",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe((function(t){e.prefShellsAttribute=t,e.shells=e.prefShellsAttribute.value?e.prefShellsAttribute.value:[],e.loading=!1}))}},{key:"changeValue",value:function(){var e=this;this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe((function(){e.getAttribute()}))}}]),e}()).\u0275fac=function(e){return new(e||iJ)(Va(Gy),Va(Xp),Va(RS),Va(qT))},iJ.\u0275cmp=Lt({type:iJ,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&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"app-alert",1),Bs(5),Zu(6,"translate"),Zu(7,"customTranslate"),Za(),Qa(8,"button",2),as("click",(function(){return t.addShell()})),Bs(9),Zu(10,"translate"),Zu(11,"customTranslate"),Za(),Ua(12,ZX,4,5,"app-alert",3),Ua(13,tJ,2,1,"mat-list",4)),2&e&&(Br(1),Hs($u(2,5,$u(3,7,"PREFERRED_SHELLS.TITLE"))),Br(4),qs(" ",$u(6,9,$u(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),Br(4),Hs($u(10,13,$u(11,15,"PREFERRED_SHELLS.NEW_BUTTON"))),Br(3),Xa("ngIf",!t.loading&&0===t.shells.length),Br(1),Xa("ngIf",!t.loading))},directives:[IN,JT,Uh,AK,Yh,SK,Ix,LF,lS],pipes:[YT,SI],styles:[""]}),iJ);function rJ(e,t){1&e&&$a(0,"mat-spinner",4)}function oJ(e,t){if(1&e){var i=ns();Qa(0,"div"),Qa(1,"div",5),Qa(2,"mat-form-field",6),Qa(3,"label",6),$a(4,"input",7),Za(),Za(),Za(),Qa(5,"div",8),Qa(6,"button",9),as("click",(function(){return _i(i),hs().onCancel()})),Bs(7),Zu(8,"translate"),Zu(9,"customTranslate"),Za(),Qa(10,"button",10),as("click",(function(){return _i(i),hs().onSubmit()})),Bs(11),Zu(12,"translate"),Zu(13,"customTranslate"),Za(),Za(),Za()}if(2&e){var n=hs();Br(4),Xa("formControl",n.inputControl),Br(3),qs(" ",$u(8,4,$u(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),Br(3),Xa("disabled",!n.inputControl.valid||n.groups.includes(n.inputControl.value)),Br(1),qs(" ",$u(12,8,$u(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}var aJ,sJ=((aJ=function(){function e(t,i,n){_(this,e),this.dialogRef=t,this.data=i,this.attributesManagerService=n,this.groups=[]}return w(e,[{key:"ngOnInit",value:function(){this.inputControl=new rR(null,iD.required),this.groups=this.data.groups}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,"urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:"+this.data.namespace).subscribe((function(t){var i=t.value?t.value:[];i.push(e.inputControl.value),t.value=i,e.attributesManagerService.setUserAttribute({user:e.data.userId,attribute:t}).subscribe((function(){e.loading=!1,e.dialogRef.close(!0)}))}))}}]),e}()).\u0275fac=function(e){return new(e||aJ)(Va(ES),Va(LS),Va(Xp))},aJ.\u0275cmp=Lt({type:aJ,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&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Qa(4,"div",1),Ua(5,rJ,1,0,"mat-spinner",2),Ua(6,oJ,14,12,"div",3),Za()),2&e&&(Br(1),Hs($u(2,3,$u(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),Br(4),Xa("ngIf",t.loading),Br(1),Xa("ngIf",!t.loading))},directives:[IS,Uh,BO,NS,Ix,AO,Yx,JR,Xx,bR,FS,JT],pipes:[YT,SI],styles:[""]}),aJ);function uJ(e,t){if(1&e){var i=ns();Qa(0,"div",2),Qa(1,"h4"),Bs(2),Za(),Qa(3,"button",3),as("click",(function(){_i(i);var e=t.$implicit;return hs().addGroupName(e)})),Bs(4),Zu(5,"translate"),Zu(6,"customTranslate"),Za(),Qa(7,"button",4),as("click",(function(){_i(i);var e=t.$implicit,n=t.index;return hs().removeGroupName(e,n)})),Bs(8),Zu(9,"translate"),Za(),$a(10,"perun-web-apps-string-list",5),Za()}if(2&e){var n=t.$implicit,r=t.index,o=hs();Br(2),Hs(n),Br(2),Hs($u(5,8,$u(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))),Br(3),Xa("disabled",0===o.selectionList[r].selected.length),Br(1),Hs($u(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")),Br(2),Xa("values",o.groupNames.get(n))("selection",o.selectionList[r])("alertText",o.alertText)("headerColumnText",o.headerColumnText)}}var cJ,lJ=((cJ=function(){function e(t,i,n,r){var o=this;_(this,e),this.store=t,this.attributesManagerService=i,this.dialog=n,this.translateService=r,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe((function(e){return o.removeDialogDescription=e})),r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe((function(e){return o.removeDialogTitle=e})),r.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe((function(e){return o.alertText=e})),r.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe((function(e){return o.headerColumnText=e}))}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe((function(){e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe((function(t){return e.removeDialogDescription=t})),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe((function(t){return e.removeDialogTitle=t})),e.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe((function(t){return e.alertText=t})),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe((function(t){return e.headerColumnText=t}))})),this.initSelection(),this.namespaces.forEach((function(t){e.getAttribute(t)}))}},{key:"initSelection",value:function(){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:[];return _(this,i),(r=t.call(this))._treeControl=e,r._treeFlattener=n,r._flattenedData=new ug([]),r._expandedData=new ug([]),r._data=new ug(o),r}return w(i,[{key:"connect",value:function(e){var t=this;return se(e.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(Q((function(){return t._expandedData.next(t._treeFlattener.expandFlattenedNodes(t._flattenedData.value,t._treeControl)),t._expandedData.value})))}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}}]),i}(ub),uQ=["searchSelectInput"],cQ=["innerSelectSearch"];function lQ(e,t){if(1&e){var i=ns();Qa(0,"mat-checkbox",9),as("change",(function(e){return _i(i),hs()._emitSelectAllBooleanToParent(e.checked)})),Za()}if(2&e){var n=hs();Xa("color",null==n.matFormField?null:n.matFormField.color)("checked",n.toggleAllCheckboxChecked)("indeterminate",n.toggleAllCheckboxIndeterminate)("matTooltip",n.toggleAllCheckboxTooltipMessage)("matTooltipPosition",n.toogleAllCheckboxTooltipPosition)}}function hQ(e,t){1&e&&$a(0,"mat-spinner",10)}function dQ(e,t){1&e&&ps(0,1,["*ngIf","clearIcon; else defaultIcon"])}function fQ(e,t){1&e&&(Qa(0,"mat-icon"),Bs(1,"close"),Za())}function pQ(e,t){if(1&e){var i=ns();Qa(0,"button",11),as("click",(function(){return _i(i),hs()._reset(!0)})),Ua(1,dQ,1,0,"ng-content",12),Ua(2,fQ,2,0,"ng-template",null,13,Sc),Za()}if(2&e){var n=Ka(3),r=hs();Br(1),Xa("ngIf",r.clearIcon)("ngIfElse",n)}}function gQ(e,t){if(1&e&&(Qa(0,"div",14),Bs(1),Za()),2&e){var i=hs();Br(1),qs(" ",i.noEntriesFoundLabel,"\n")}}var mQ,vQ,yQ,_Q,bQ,wQ,AQ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],kQ=function(e,t){return{"mat-select-search-inner-multiple":e,"mat-select-search-inner-toggle-all":t}},MQ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],CQ=((mQ=function e(){_(this,e)}).\u0275fac=function(e){return new(e||mQ)},mQ.\u0275dir=Pt({type:mQ,selectors:[["","ngxMatSelectSearchClear",""]]}),mQ),SQ=((bQ=vQ=function(){function e(t,n,r){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4?arguments[4]:void 0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;_(this,e),this.matSelect=t,this.changeDetectorRef=n,this._viewportRuler=r,this.matOption=a,this.liveAnnouncer=s,this.matFormField=u,this.placeholderLabel="Suche",this.type="text",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.toggleAll=new rc,this.onTouched=function(e){},this._options$=new ug(null),this.optionsList$=this._options$.pipe(Lg((function(e){return e?e.changes.pipe(Q((function(e){return e.toArray()})),Ig(e.toArray())):Hf(null)}))),this.optionsLength$=this.optionsList$.pipe(Q((function(e){return e?e.length:0}))),this._formControl=new rR(""),this._showNoEntriesFound$=lg([this._formControl.valueChanges,this.optionsLength$]).pipe(Q((function(e){var t=i(e,2),n=t[0],r=t[1];return o.noEntriesFoundLabel&&n&&r===o.getOptionsLengthOffset()}))),this._onDestroy=new H}return w(e,[{key:"ngOnInit",value:function(){var e=this,t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.initMultiSelectedValuesTracking(),this.matSelect.openedChange.pipe(jq(1),C_(this._onDestroy)).subscribe((function(t){t?(e.updateInputWidth(),e.disableInitialFocus||e._focus()):e.clearSearchInput&&e._reset()})),this.matSelect.openedChange.pipe(Dg(1)).pipe(C_(this._onDestroy)).subscribe((function(){e.matSelect._keyManager?e.matSelect._keyManager.change.pipe(C_(e._onDestroy)).subscribe((function(){return e.adjustScrollTopToFitActiveOptionIntoView()})):console.log("_keyManager was not initialized."),e._options=e.matSelect.options;var t=e._options.toArray()[e.getOptionsLengthOffset()];e._options.changes.pipe(C_(e._onDestroy)).subscribe((function(){setTimeout((function(){var i=e._options.toArray()[e.getOptionsLengthOffset()],n=e.matSelect._keyManager;n&&e.matSelect.panelOpen&&(!e.matSelect.compareWith(t,i)&&n.setFirstItemActive(),setTimeout((function(){e.updateInputWidth()})),e.disableScrollToActiveOnOptionsChanged||e.adjustScrollTopToFitActiveOptionIntoView()),t=i}))}))})),this._showNoEntriesFound$.pipe(C_(this._onDestroy)).subscribe((function(t){e.matOption&&(t?e.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):e.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))})),this._viewportRuler.change().pipe(C_(this._onDestroy)).subscribe((function(){e.matSelect.panelOpen&&e.updateInputWidth()})),this.initMultipleHandling(),this.optionsList$.pipe(C_(this._onDestroy)).subscribe((function(){e.changeDetectorRef.markForCheck()}))}},{key:"_emitSelectAllBooleanToParent",value:function(e){this.toggleAll.emit(e)}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"_isToggleAllCheckboxVisible",value:function(){return this.matSelect.multiple&&this.showToggleAllCheckbox}},{key:"_handleKeydown",value:function(e){(e.key&&1===e.key.length||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||32===e.keyCode||this.preventHomeEndKeyPropagation&&(36===e.keyCode||35===e.keyCode))&&e.stopPropagation(),!0===this.enableClearOnEscapePressed&&27===e.keyCode&&this.value&&(this._reset(!0),e.stopPropagation())}},{key:"_handleKeyup",value:function(e){if(38===e.keyCode||40===e.keyCode){var t=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex((function(e){return e.id===t}));if(-1!==i){var n=this._options.toArray()[i];this.liveAnnouncer.announce(n.viewValue+" "+this.getAriaIndex(i)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}},{key:"getAriaIndex",value:function(e){return 0===this.getOptionsLengthOffset()?e+1:e}},{key:"getAriaLength",value:function(){return this._options.toArray().length-this.getOptionsLengthOffset()}},{key:"writeValue",value:function(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}},{key:"onBlur",value:function(){this.onTouched()}},{key:"registerOnChange",value:function(e){var t=this;this._formControl.valueChanges.pipe(jf((function(e){return e!==t._lastExternalInputValue})),Ug((function(){return t._lastExternalInputValue=void 0})),C_(this._onDestroy)).subscribe(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}}},{key:"_reset",value:function(e){this._formControl.setValue(""),e&&this._focus()}},{key:"initMultipleHandling",value:function(){var e=this;this.matSelect.valueChange.pipe(C_(this._onDestroy)).subscribe((function(t){if(e.matSelect.multiple){var i=!1;if(e._formControl.value&&e._formControl.value.length&&e.previousSelectedValues&&Array.isArray(e.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);var n=e.matSelect.options.map((function(e){return e.value}));e.previousSelectedValues.forEach((function(r){t.some((function(t){return e.matSelect.compareWith(t,r)}))||n.some((function(t){return e.matSelect.compareWith(t,r)}))||(t.push(r),i=!0)}))}i&&(e.matSelect._onChange(t),e.previousSelectedValues=t)}}))}},{key:"adjustScrollTopToFitActiveOptionIntoView",value:function(){if(this.matSelect.panel&&this.matSelect.options.length>0){var e=this.getMatOptionHeight(),t=this.matSelect._keyManager.activeItemIndex||0,i=hS(t,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+t,r=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-o)/e),s=Math.round((r+o)/e)-1;s>=n?this.matSelect.panel.nativeElement.scrollTop=n*e:s+a<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*e-(256-o))}}},{key:"updateInputWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var e,t=this.innerSelectSearch.nativeElement;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}}},{key:"getMatOptionHeight",value:function(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}},{key:"initMultiSelectedValuesTracking",value:function(){var e=this;this._formControl.valueChanges.pipe(Ig(void 0),Ng((function(e,t){return{currentValue:t,previousValue:e.currentValue}}),{currentValue:void 0,previousValue:void 0}),C_(this._onDestroy)).subscribe((function(t){var i=e._options?e._options.toArray():[];e.matSelect.multiple&&!t.previousValue&&(e.previousSelectedValues=i.filter((function(e){return e.selected})).map((function(e){return e.value})))}))}},{key:"getOptionsLengthOffset",value:function(){return this.matOption?1:0}},{key:"isInsideMatOption",get:function(){return!!this.matOption}},{key:"value",get:function(){return this._formControl.value}},{key:"_options",set:function(e){this._options$.next(e)},get:function(){return this._options$.getValue()}}]),e}()).\u0275fac=function(e){return new(e||bQ)(Va(LF),Va(ua),Va(Tb),Va(lS,8),Va(gA),Va(Ix,8))},bQ.\u0275cmp=Lt({type:bQ,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,i){var n;1&e&&_c(i,CQ,!0),2&e&&gc(n=Ac())&&(t.clearIcon=n.first)},viewQuery:function(e,t){var i;1&e&&(mc(uQ,!0,nu),mc(cQ,!0,nu)),2&e&&(gc(i=Ac())&&(t.searchSelectInput=i.first),gc(i=Ac())&&(t.innerSelectSearch=i.first))},hostVars:2,hostBindings:function(e,t){2&e&&Ss("mat-select-search-inside-mat-option",t.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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"},outputs:{toggleAll:"toggleAll"},features:[$s([{provide:Fx,useExisting:Fe((function(){return vQ})),multi:!0}])],ngContentSelectors:MQ,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",""],[1,"mat-select-search-no-entries-found"]],template:function(e,t){1&e&&(fs(AQ),$a(0,"input",0),Qa(1,"div",1,2),Ua(3,lQ,1,5,"mat-checkbox",3),Qa(4,"input",4,5),as("keydown",(function(e){return t._handleKeydown(e)}))("keyup",(function(e){return t._handleKeyup(e)}))("blur",(function(){return t.onBlur()})),Za(),Ua(6,hQ,1,0,"mat-spinner",6),Ua(7,pQ,4,2,"button",7),ps(8),Za(),Ua(9,gQ,2,1,"div",8),Zu(10,"async")),2&e&&(Br(1),Xa("ngClass",Gu(11,kQ,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),Br(2),Xa("ngIf",t._isToggleAllCheckboxVisible()),Br(1),Xa("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ja("aria-label",t.ariaLabel),Br(2),Xa("ngIf",t.searching),Br(1),Xa("ngIf",t.value&&!t.searching),Br(2),Xa("ngIf",$u(10,9,t._showNoEntriesFound$)))},directives:[Hh,Uh,Yx,Xx,bR,ZF,aF,BO,JT,LE],pipes:[Ad],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}),bQ),TQ=((_Q=function e(){_(this,e)}).\u0275mod=Rt({type:_Q}),_Q.\u0275inj=Se({factory:function(e){return new(e||_Q)},imports:[[Ud,lO,ZT,nB,zE,HO,uF]]}),_Q),EQ=((yQ=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"format",value:function(e,t){return"input"===t?"".concat(e.getDate().toString(),".").concat((e.getMonth()+1).toString(),".").concat(e.getFullYear()):e.toDateString()}}]),i}(RC)).\u0275fac=function(e){return LQ(e||yQ)},yQ.\u0275prov=Ce({token:yQ,factory:yQ.\u0275fac}),yQ),LQ=Dn(EQ),zQ={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"}}},xQ=((wQ=function e(){_(this,e)}).\u0275mod=Rt({type:wQ}),wQ.\u0275inj=Se({factory:function(e){return new(e||wQ)},providers:[{provide:kC,useClass:EQ},{provide:MC,useValue:zQ}],imports:[[Ud,nB,qz,cO,EH,fH,WT,Ny,qq,Mq,HO,NI,zE,Mj,ZT,uF,Nx,lO,kO,eS,kI,AI,oQ,vI,$O,pS,zF,TQ,Ib,qS]]}),wQ);function DQ(e,t){if(1&e&&(Qa(0,"div",5),Qa(1,"mat-icon"),Bs(2),Za(),Za()),2&e){var i=hs();Br(2),Hs(i.data.icon)}}function RQ(e,t){if(1&e&&(Qa(0,"div",6),Bs(1),Za()),2&e){var i=hs();Br(1),qs(" ",i.showTimestamp()," ")}}var OQ,PQ=((OQ=function(){function e(t,i){_(this,e),this.dialog=t,this.notificationStorageService=i,this.newNotification=!1,this.closeNotification=new rc,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return w(e,[{key:"doAction",value:function(){var e=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var t=JS();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(yN,t).afterClosed().subscribe((function(){e.closeSelf()}))}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var e=this;!function(t,i){return n=this,o=regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n=t,new Promise((function(e){return setTimeout(e,n)}));case 2:e.alreadyClosed||e.waiting||e.closeSelf();case 3:case"end":return i.stop()}}),i)})),new((r=void 0)||(r=Promise))((function(e,t){function i(e){try{s(o.next(e))}catch(i){t(i)}}function a(e){try{s(o.throw(e))}catch(i){t(i)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,a)}s((o=o.apply(n,[])).next())}));var n,r,o}(this.data.delay)}},{key:"showTimestamp",value:function(){var e=i(this.data.timeStamp.split(":"),2),t=e[0],n=e[1];return n.length<2?t+":0"+n:this.data.timeStamp}}]),e}()).\u0275fac=function(e){return new(e||OQ)(Va(RS),Va(PE))},OQ.\u0275cmp=Lt({type:OQ,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"],[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&&(Qa(0,"div"),Qa(1,"div",0),as("click",(function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()})),Ua(2,DQ,3,1,"div",1),Qa(3,"div",2),Bs(4),Zu(5,"translate"),Za(),Ua(6,RQ,2,1,"div",3),Qa(7,"div",4),as("click",(function(){return t.waiting=!0,t.doAction()})),Bs(8),Za(),Za(),Za()),2&e&&(Ys("notification ",t.inDialog?"":"mat-elevation-z7",""),Ss("error","error"===t.data.type)("success","success"===t.data.type),Br(2),Xa("ngIf",null!==t.data.icon),Br(2),qs(" ",$u(5,12,t.data.title)," "),Br(2),Xa("ngIf",t.inDialog),Br(1),Xa("hidden",t.alreadyPressed),Br(1),qs(" ",t.data.actionText," "))},directives:[Uh,LE],pipes:[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}"]}),OQ);function IQ(e,t){1&e&&(Qa(0,"app-alert"),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function NQ(e,t){1&e&&(Qa(0,"th",15),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function FQ(e,t){if(1&e&&(Qa(0,"td",16),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.friendlyNameParameter)}}function BQ(e,t){1&e&&(Qa(0,"th",15),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function HQ(e,t){if(1&e&&(Qa(0,"td",17),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.value)}}function qQ(e,t){1&e&&$a(0,"th",15)}function jQ(e,t){if(1&e){var i=ns();Qa(0,"td",18),Qa(1,"button",19),as("click",(function(){_i(i);var e=t.$implicit;return hs().changePassword(e.friendlyNameParameter)})),Bs(2),Zu(3,"translate"),Zu(4,"customTranslate"),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("disabled",!r.logins.includes(n)),Br(1),Hs($u(3,2,$u(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function YQ(e,t){1&e&&$a(0,"tr",20)}function WQ(e,t){1&e&&$a(0,"tr",21)}var UQ,KQ,VQ,GQ,XQ,JQ=((XQ=function(){function e(t,i){_(this,e),this.attributesManagerService=t,this.store=i,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe((function(t){var i=e.nameSpaces.map((function(e){var t=e.split(":");return t[t.length-1]}));e.logins=t.filter((function(e){return i.includes(e.friendlyNameParameter)})),e.dataSource=new jz(t)}))}},{key:"changePassword",value:function(e){var t=this.store.get("pwd_reset_base_url");location.href="".concat(t,"?login-namespace=").concat(e)}}]),e}()).\u0275fac=function(e){return new(e||XQ)(Va(Xp),Va(Gy))},XQ.\u0275cmp=Lt({type:XQ,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za(),Ua(4,IQ,4,5,"app-alert",1),Qa(5,"div",2),Qa(6,"div",3),Qa(7,"div",4),Qa(8,"table",5),es(9,6),Ua(10,NQ,4,5,"th",7),Ua(11,FQ,2,1,"td",8),ts(),es(12,9),Ua(13,BQ,4,5,"th",7),Ua(14,HQ,2,1,"td",10),ts(),es(15,11),Ua(16,qQ,1,0,"th",7),Ua(17,jQ,5,6,"td",12),ts(),Ua(18,YQ,1,0,"tr",13),Ua(19,WQ,1,0,"tr",14),Za(),Za(),Za(),Za()),2&e&&(Br(1),Hs($u(2,5,$u(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),Br(3),Xa("ngIf",!t.logins.length),Br(4),Xa("dataSource",t.dataSource),Br(10),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns))},directives:[Uh,pz,Rq,Az,yz,mz,Tz,xz,IN,Mz,Sz,JT,Rz,Nz],pipes:[YT,SI],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),XQ),QQ=((GQ=function(){function e(t,i,n,r){_(this,e),this.router=t,this.route=i,this.location=n,this.forceRoute=r}return w(e,[{key:"ngOnInit",value:function(){var e=this;"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe((function(t){e.router.navigate([t.redirectTo])})):this.location.back()}}]),e}()).\u0275fac=function(e){return new(e||GQ)(Va(my),Va(Zm),Va(Vl),Va(NE))},GQ.\u0275cmp=Lt({type:GQ,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(e,t){},styles:[""]}),GQ),ZQ=((VQ=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){if(null==e||null==e.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var t=XS(e.attributes,FI.GROUP_SYNC_ENABLED),i=XS(e.attributes,FI.GROUP_STRUCTURE_SYNC_ENABLED);if(null===t&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var n=i.value;if("true"===t.value){var r=XS(e.attributes,FI.GROUP_LAST_SYNC_STATE),o=XS(e.attributes,FI.GROUP_LAST_SYNC_TIMESTAMP),a=r.value,s=o.value;return null!=a&&a.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==s&&s.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(n){var u=XS(e.attributes,FI.GROUP_LAST_STRUCTURE_SYNC_STATE),c=XS(e.attributes,FI.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),l=u.value,h=c.value;return null!=l&&l.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==h&&h.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}]),e}()).\u0275fac=function(e){return new(e||VQ)},VQ.\u0275pipe=It({name:"groupSyncToolTip",type:VQ,pure:!0}),VQ),$Q=((KQ=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){if(null==e||null==e.attributes)return"";var t=XS(e.attributes,FI.GROUP_SYNC_ENABLED),i=XS(e.attributes,FI.GROUP_STRUCTURE_SYNC_ENABLED);if(null===t&&null===i)return"";var n=i.value;if("true"===t.value){var r=XS(e.attributes,FI.GROUP_LAST_SYNC_STATE),o=XS(e.attributes,FI.GROUP_LAST_SYNC_TIMESTAMP),a=r.value,s=o.value;return null!=a&&a.trim().length>0?"sync_problem":(null!==s&&s.trim(),"sync")}if(n){var u=XS(e.attributes,FI.GROUP_LAST_STRUCTURE_SYNC_STATE),c=XS(e.attributes,FI.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),l=u.value,h=c.value;return null!=l&&l.trim().length>0?"sync_problem":(null!==h&&h.trim(),"sync")}return"sync_disabled"}}]),e}()).\u0275fac=function(e){return new(e||KQ)},KQ.\u0275pipe=It({name:"groupSyncIcon",type:KQ,pure:!0}),KQ),eZ=((UQ=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){if(null==e||null==e.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var t=XS(e.attributes,FI.GROUP_SYNC_ENABLED),i=XS(e.attributes,FI.GROUP_STRUCTURE_SYNC_ENABLED);if(null===t&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var n=i.value;if("true"===t.value){var r=XS(e.attributes,FI.GROUP_LAST_SYNC_STATE),o=XS(e.attributes,FI.GROUP_LAST_SYNC_TIMESTAMP),a=r.value,s=o.value;return null!=a&&a.trim().length>0?"red":null!==s&&s.trim().length>0?"green":""}if(n){var u=XS(e.attributes,FI.GROUP_LAST_STRUCTURE_SYNC_STATE),c=XS(e.attributes,FI.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),l=u.value,h=c.value;return null!=l&&l.trim().length>0?"red":null!==h&&h.trim().length>0?"green":""}return""}}]),e}()).\u0275fac=function(e){return new(e||UQ)},UQ.\u0275pipe=It({name:"groupSyncIconColor",type:UQ,pure:!0}),UQ);function tZ(e,t){if(1&e){var i=ns();Qa(0,"span",5),Zu(1,"translate"),Zu(2,"groupSyncToolTip"),Qa(3,"button",6),as("click",(function(){return _i(i),hs(2).onSyncDetail()})),Zu(4,"groupSyncIcon"),Qa(5,"mat-icon"),Zu(6,"groupSyncIconColor"),Bs(7),Zu(8,"groupSyncIcon"),Za(),Za(),Za()}if(2&e){var n=hs(2);Xa("matTooltipPosition","above")("matTooltip",$u(1,7,$u(2,9,n.group))),Br(3),Xa("disabled","sync_disabled"===$u(4,11,n.group)),Br(2),Ts($u(6,13,n.group)),Br(2),qs(" ",$u(8,15,n.group)," ")}}function iZ(e,t){if(1&e){var i=ns();Qa(0,"span",5),Zu(1,"translate"),Qa(2,"button",6),as("click",(function(){return _i(i),hs(2).onMoveGroup()})),Qa(3,"mat-icon"),Bs(4,"arrow_right_alt"),Za(),Za(),Za()}if(2&e){var n=hs(2);gs("matTooltip",$u(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),Xa("matTooltipPosition","above"),Br(2),Xa("disabled",n.disabled)}}function nZ(e,t){if(1&e){var i=ns();Qa(0,"span",5),Zu(1,"translate"),Qa(2,"button",6),as("click",(function(){return _i(i),hs(2).onChangeNameDescription()})),Qa(3,"mat-icon"),Bs(4,"text_format"),Za(),Za(),Za()}if(2&e){var n=hs(2);gs("matTooltip",$u(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),Xa("matTooltipPosition","above"),Br(2),Xa("disabled",n.disabled)}}function rZ(e,t){if(1&e&&(Qa(0,"div",2),Qa(1,"button",3),Zu(2,"translate"),Qa(3,"mat-icon"),Bs(4," file_copy "),Za(),Za(),Ua(5,tZ,9,17,"span",4),Ua(6,iZ,5,5,"span",4),Ua(7,nZ,5,5,"span",4),Za()),2&e){var i=hs();Br(1),gs("matTooltip",$u(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),Xa("cdkCopyToClipboard",i.group.name)("matTooltipPosition","above"),Br(4),Xa("ngIf",i.syncAuth),Br(1),Xa("ngIf",i.moveAuth),Br(1),Xa("ngIf",i.editAuth)}}function oZ(e,t){if(1&e){var i=ns();Qa(0,"button",11),as("click",(function(){return _i(i),hs(2).onSyncDetail()})),Zu(1,"groupSyncIcon"),Qa(2,"mat-icon"),Zu(3,"groupSyncIconColor"),Bs(4),Zu(5,"groupSyncIcon"),Za(),Qa(6,"span"),Bs(7),Zu(8,"translate"),Zu(9,"groupSyncToolTip"),Za(),Za()}if(2&e){var n=hs(2);Xa("disabled","sync_disabled"===$u(1,6,n.group)),Br(2),Ts($u(3,8,n.group)),Br(2),qs(" ",$u(5,10,n.group)," "),Br(3),Hs($u(8,12,$u(9,14,n.group)))}}function aZ(e,t){if(1&e){var i=ns();Qa(0,"button",11),as("click",(function(){return _i(i),hs(2).onMoveGroup()})),Qa(1,"mat-icon"),Bs(2,"arrow_right_alt"),Za(),Qa(3,"span"),Bs(4),Zu(5,"translate"),Za(),Za()}2&e&&(Xa("disabled",hs(2).disabled),Br(4),Hs($u(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")))}function sZ(e,t){if(1&e){var i=ns();Qa(0,"button",11),as("click",(function(){return _i(i),hs(2).onChangeNameDescription()})),Qa(1,"mat-icon"),Bs(2,"text_format"),Za(),Qa(3,"span"),Bs(4),Zu(5,"translate"),Za(),Za()}2&e&&(Xa("disabled",hs(2).disabled),Br(4),Hs($u(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")))}function uZ(e,t){if(1&e&&(Qa(0,"div"),Qa(1,"button",7),Qa(2,"mat-icon"),Bs(3,"more_vert"),Za(),Za(),Qa(4,"mat-menu",null,8),Qa(6,"button",9),Qa(7,"mat-icon"),Bs(8," file_copy "),Za(),Qa(9,"span"),Bs(10),Zu(11,"translate"),Za(),Za(),Ua(12,oZ,10,16,"button",10),Ua(13,aZ,6,4,"button",10),Ua(14,sZ,6,4,"button",10),Za(),Za()),2&e){var i=Ka(5),n=hs();Br(1),Xa("mat-menu-trigger-for",i),Br(5),Xa("cdkCopyToClipboard",n.group.name),Br(4),Hs($u(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),Br(2),Xa("ngIf",n.syncAuth),Br(1),Xa("ngIf",n.moveAuth),Br(1),Xa("ngIf",n.editAuth)}}var cZ,lZ,hZ=((lZ=function(){function e(t){_(this,e),this.authResolver=t,this.disabled=!1,this.moveGroup=new rc,this.syncGroup=new rc,this.changeNameDescription=new rc}return w(e,[{key:"ngOnInit",value:function(){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])}},{key:"onMoveGroup",value:function(){this.moveGroup.emit()}},{key:"onSyncDetail",value:function(){this.syncGroup.emit()}},{key:"onChangeNameDescription",value:function(){this.changeNameDescription.emit()}}]),e}()).\u0275fac=function(e){return new(e||lZ)(Va(ag))},lZ.\u0275cmp=Lt({type:lZ,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(e,t){1&e&&(Ua(0,rZ,8,8,"div",0),Ua(1,uZ,15,8,"div",1)),2&e&&(Xa("ngIf",t.displayButtons),Br(1),Xa("ngIf",!t.displayButtons))},directives:[Uh,JT,wI,aF,LE,Aj,yj,dj],pipes:[YT,ZQ,$Q,eZ],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),lZ),dZ=((cZ=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){var t=e.attributes.find((function(e){return"groupMembershipExpiration"===e.baseFriendlyName}));return t&&t.value?t.value:"Never"}}]),e}()).\u0275fac=function(e){return new(e||cZ)},cZ.\u0275pipe=It({name:"groupExpiration",type:cZ,pure:!0}),cZ);function fZ(e,t){if(1&e){var i=ns();Qa(0,"mat-checkbox",24),as("change",(function(e){_i(i);var t=hs(2);return e?t.masterToggle():null})),Za()}if(2&e){var n=hs(2);Xa("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function pZ(e,t){if(1&e&&(Qa(0,"th",22),Ua(1,fZ,1,3,"mat-checkbox",23),Za()),2&e){var i=hs();Br(1),Xa("ngIf",!i.disableHeadCheckbox)}}function gZ(e,t){if(1&e){var i=ns();Qa(0,"td",25),Qa(1,"span",26),Zu(2,"translate"),Qa(3,"mat-checkbox",27),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.itemSelectionToggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Za(),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),gs("matTooltip",$u(2,6,r.getCheckboxTooltipMessage(n))),Xa("matTooltipPosition","above")("matTooltipDisabled",!r.disableSelect(n)),Br(2),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))("disabled","members"===n.name&&r.disableMembers||r.disableSelect(n))}}function mZ(e,t){1&e&&(Qa(0,"th",28),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function vZ(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.id)}}function yZ(e,t){1&e&&$a(0,"th",22)}function _Z(e,t){if(1&e&&(Qa(0,"td",29),$a(1,"perun-web-apps-recently-viewed-icon",30),Za()),2&e){var i=t.$implicit,n=hs();Br(1),Xa("recentIds",n.recentIds)("id",i.id)}}function bZ(e,t){1&e&&(Qa(0,"th",28),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function wZ(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit,n=hs();Br(1),Hs(n.voNames.get(i.voId))}}function AZ(e,t){1&e&&(Qa(0,"th",28),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function kZ(e,t){if(1&e&&(Qa(0,"td",29),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.name)}}function MZ(e,t){1&e&&(Qa(0,"th",28),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function CZ(e,t){if(1&e&&(Qa(0,"td",31),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.description)}}function SZ(e,t){1&e&&(Qa(0,"th",28),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function TZ(e,t){if(1&e){var i=ns();Qa(0,"button",33),as("click",(function(){_i(i);var e=hs().$implicit;return hs().changeExpiration(e)}))("mouseenter",(function(){return _i(i),hs(2).disabledRouting=!0}))("mouseleave",(function(){_i(i);var e=hs(2);return e.disabledRouting=e.disableRouting})),Qa(1,"mat-icon"),Bs(2,"edit"),Za(),Za()}}function EZ(e,t){if(1&e&&(Qa(0,"td",31),Bs(1),Zu(2,"parseDate"),Zu(3,"groupExpiration"),Ua(4,TZ,3,0,"button",32),Za()),2&e){var i=t.$implicit,n=hs();Br(1),qs(" ",$u(2,2,$u(3,4,i))," "),Br(3),Xa("ngIf",n.canManageGroup(i))}}function LZ(e,t){1&e&&$a(0,"th",22)}function zZ(e,t){if(1&e){var i=ns();Qa(0,"td",29),Qa(1,"perun-web-apps-group-menu",34),as("mouseenter",(function(){return _i(i),hs().disabledRouting=!0}))("mouseleave",(function(){_i(i);var e=hs();return e.disabledRouting=e.disableRouting}))("moveGroup",(function(){_i(i);var e=t.$implicit;return hs().onMoveGroup(e)}))("changeNameDescription",(function(){_i(i);var e=t.$implicit;return hs().onChangeNameDescription(e)}))("syncGroup",(function(){_i(i);var e=t.$implicit;return hs().onSyncDetail(e)})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("disabled","members"===n.name)("displayButtons",r.displayButtons)("group",n)}}function xZ(e,t){1&e&&$a(0,"tr",35)}var DZ=function(e,t){return["/organizations",e,"groups",t]};function RZ(e,t){if(1&e&&$a(0,"tr",36),2&e){var i=t.$implicit,n=hs();Ss("cursor-pointer",!n.disableRouting&&!n.groupsToDisable.has(i.id))("disable-outline",n.disabledRouting||n.groupsToDisable.has(i.id)),Xa("routerLink",n.disabledRouting||n.groupsToDisable.has(i.id)?null:Gu(6,DZ,i.voId,i.id))("perunWebAppsMiddleClickRouterLink",n.disabledRouting||n.groupsToDisable.has(i.id)?null:Gu(9,DZ,i.voId,i.id))}}function OZ(e,t){1&e&&(Qa(0,"app-alert",37),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function PZ(e,t){1&e&&(Qa(0,"app-alert",37),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var IZ,NZ=((IZ=function(){function e(t,i,n,r){var o=this;_(this,e),this.dialog=t,this.authResolver=i,this.voService=n,this.tableCheckbox=r,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new rc,this.groups=[],this.selection=new db(!0,[]),this.hasMembersGroup=!1,this.hideColumns=[],this.groupsToDisable=new Set,this.pageSize=10,this.filter="",this.disableRouting=!1,this.pageSizeOptions=YS,this.recentIds=[],this.page=new rc,this.refreshTable=new rc,this.displayedColumns=["select","id","recent","vo","name","description","expiration","menu"],this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=function(e){return!("members"===e.name&&o.disableMembers||o.disableSelect(e))}}return w(e,[{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>800}},{key:"ngOnInit",value:function(){this.shouldHideButtons()}},{key:"ngOnChanges",value:function(e){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"id"!==e}))),this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.dataSource=new jz(this.groups),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkIfHasMembersGroup",value:function(){var e,t=s(this.groups);try{for(t.s();!(e=t.n()).done;)if("members"===e.value.name)return!0}catch(i){t.e(i)}finally{t.f()}return!1}},{key:"getDataForColumn",value:function(e,t,i){switch(t){case"id":return e.id.toString();case"vo":return this.voNames.get(e.voId);case"name":return e.name;case"description":return e.description;case"expiration":return(n=eT(e))&&"never"!==n.toLowerCase()?vh(n,"d.M.yyyy","en"):n;case"recent":return"";default:return e[t]}var n}},{key:"getSortDataForColumn",value:function(e,t,i){switch(t){case"id":return e.id.toString();case"vo":return this.voNames.get(e.voId);case"name":return e.name;case"description":return e.description;case"expiration":var n=eT(e);return n&&"never"!==n.toLowerCase()?vh(n,"yyyy.MM.dd","en"):n;case"recent":return i.recentIds&&i.recentIds.indexOf(e.id)>-1?"#".repeat(i.recentIds.indexOf(e.id)):e.name;default:return e[t]}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.displayedColumns=this.displayedColumns.filter((function(t){return!e.hideColumns.includes(t)})),this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getSortDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"disableSelect",value:function(e){return this.disableGroups&&(this.groupsToDisable.has(e.id)||this.isSynchronized(e))}},{key:"ngAfterViewInit",value:function(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.dataSource.paginator=this.paginator}},{key:"onMoveGroup",value:function(e){this.moveGroup.emit(e)}},{key:"onSyncDetail",value:function(e){var t=JS();t.data={groupId:e.id,theme:this.theme},this.dialog.open(cN,t)}},{key:"onChangeNameDescription",value:function(e){var t=this,i=JS();i.data={theme:"group-theme",group:e,dialogType:iN.GROUP},this.dialog.open(nN,i).afterClosed().subscribe((function(e){e&&t.refreshTable.emit()}))}},{key:"pageChanged",value:function(e){this.page.emit(e)}},{key:"setAuth",value:function(){var e=this;return"group-subgroups"===this.authType?this.selection.selected.reduce((function(t,i){return t&&e.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[i])}),!0):"group-relations"===this.authType?this.selection.selected.reduce((function(t,i){return t&&e.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[e.parentGroup,i])}),!0):"vo-groups"===this.authType?this.selection.selected.reduce((function(t,i){return t&&e.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[e.vo,i])}),!0):"member-groups"===this.authType?this.selection.selected.reduce((function(t,i){return t&&e.authResolver.isAuthorized("removeMember_Member_List_policy",[i])}),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((function(t,i){return t&&e.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[e.vo,i])}),!0):void 0}},{key:"itemSelectionToggle",value:function(e){this.selection.toggle(e),this.removeAuth=this.setAuth()}},{key:"isSynchronized",value:function(e){return!!e.attributes&&e.attributes.some((function(e){return"synchronizationEnabled"===e.friendlyName&&null!==e.value&&"true"===e.value.toString()}))}},{key:"getCheckboxTooltipMessage",value:function(e){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(e)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}},{key:"updateVoNames",value:function(){var e=this;this.hideColumns.includes("vo")||this.groups.forEach((function(t){e.voIds.has(t.voId)||(e.voIds.add(t.voId),e.voService.getVoById(t.voId).subscribe((function(i){e.voNames.set(t.voId,i.name)})))}))}},{key:"changeExpiration",value:function(e){var t=this,i=e.attributes.find((function(e){return"groupMembershipExpiration"===e.baseFriendlyName})),n=JS();n.width="400px",n.data={memberId:this.memberId,groupId:e.id,expirationAttr:i,mode:"group"},this.dialog.open(jI,n).afterClosed().subscribe((function(e){e&&t.refreshTable.emit()}))}},{key:"canManageGroup",value:function(e){return this.authResolver.isThisGroupAdmin(e.id)||this.authResolver.isThisVoAdmin(e.voId)}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"matPaginator",set:function(e){this.paginator=e}}]),e}()).\u0275fac=function(e){return new(e||IZ)(Va(RS),Va(ag),Va(rg),Va(FE))},IZ.\u0275cmp=Lt({type:IZ,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(e,t){var i;1&e&&(mc(Rq,!0),mc(kq,!0)),2&e&&(gc(i=Ac())&&(t.matSort=i.first),gc(i=Ac())&&(t.matPaginator=i.first))},hostBindings:function(e,t){1&e&&as("resize",(function(e){return t.shouldHideButtons(e)}),!1,dn)},inputs:{theme:"theme",groups:"groups",selection:"selection",hideColumns:"hideColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisable:"groupsToDisable",pageSize:"pageSize",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds"},outputs:{moveGroup:"moveGroup",page:"page",refreshTable:"refreshTable"},features:[Gt],decls:34,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","name"],["matColumnDef","description"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-cell","",1,"wrap-content"],["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,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,pZ,2,1,"th",6),Ua(7,gZ,4,8,"td",7),ts(),es(8,8),Ua(9,mZ,3,3,"th",9),Ua(10,vZ,2,1,"td",7),ts(),es(11,10),Ua(12,yZ,1,0,"th",6),Ua(13,_Z,2,2,"td",11),ts(),es(14,12),Ua(15,bZ,3,3,"th",9),Ua(16,wZ,2,1,"td",7),ts(),es(17,13),Ua(18,AZ,3,3,"th",9),Ua(19,kZ,2,1,"td",11),ts(),es(20,14),Ua(21,MZ,3,3,"th",9),Ua(22,CZ,2,1,"td",15),ts(),es(23,16),Ua(24,SZ,3,3,"th",9),Ua(25,EZ,5,6,"td",15),ts(),es(26,17),Ua(27,LZ,1,0,"th",6),Ua(28,zZ,2,3,"td",11),ts(),Ua(29,xZ,1,0,"tr",18),Ua(30,RZ,1,12,"tr",19),Za(),Za(),Qa(31,"mat-paginator",20),as("page",(function(e){return t.pageChanged(e)})),Za(),Za(),Za(),Ua(32,OZ,3,3,"app-alert",21),Ua(33,PZ,3,3,"app-alert",21)),2&e&&(Xa("hidden",0===t.groups.length||0===t.dataSource.filteredData.length),Br(4),Xa("dataSource",t.dataSource),Br(25),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.groups.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",0===t.groups.length),Br(1),Xa("ngIf",0===t.dataSource.filteredData.length&&0!==t.groups.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,ZF,Sz,aF,Hq,PW,JT,LE,hZ,Rz,Nz,vy,Ej,IN],pipes:[YT,OI,dZ],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),IZ),FZ=["scrollViewport"];function BZ(e,t){if(1&e){var i=ns();Qa(0,"mat-checkbox",19),as("change",(function(){_i(i);var e=hs().$implicit;return hs(2).itemSelectionToggle(e)})),Za()}if(2&e){var n=hs().$implicit,r=hs(2);Xa("disabled","members"===n.fullName)("checked",r.selection.isSelected(n))("indeterminate",r.descendantsPartiallySelected(n))}}function HZ(e,t){if(1&e&&(Qa(0,"mat-icon",20),Bs(1),Za()),2&e){var i=hs().$implicit,n=hs(2);Br(1),qs(" ",n.treeControl.isExpanded(i)?"expand_more":"chevron_right"," ")}}function qZ(e,t){if(1&e&&(Qa(0,"span",21),Bs(1),Za()),2&e){var i=hs().$implicit;Br(1),qs(" #",i.id," ")}}var jZ=function(e,t){return["/organizations",e,"groups",t]};function YZ(e,t){if(1&e){var i=ns();es(0),Qa(1,"div",6),Ua(2,BZ,1,3,"mat-checkbox",7),Qa(3,"div",8),Qa(4,"button",9),as("mouseenter",(function(){return _i(i),hs(2).disableRouting=!0}))("mouseleave",(function(){return _i(i),hs(2).disableRouting=!1}))("click",(function(){_i(i);var e=t.$implicit;return hs(2).treeControl.toggle(e)})),Ua(5,HZ,2,1,"mat-icon",10),Za(),Qa(6,"div",11),Qa(7,"span",12),Bs(8),Za(),Ua(9,qZ,2,1,"span",13),Za(),Qa(10,"div",14,15),Qa(12,"span",16),Bs(13),Za(),Za(),Za(),Qa(14,"div",17),Qa(15,"perun-web-apps-group-menu",18),as("moveGroup",(function(){_i(i);var e=t.$implicit;return hs(2).onMoveGroup(e)}))("syncGroup",(function(){_i(i);var e=t.$implicit;return hs(2).onSyncDetail(e)}))("changeNameDescription",(function(){_i(i);var e=t.$implicit;return hs(2).onChangeNameDescription(e)})),Za(),Za(),Za(),ts()}if(2&e){var n=t.$implicit,r=hs(2);Br(1),Cs("padding-left",24*n.level+"px"),Br(1),Xa("ngIf",!r.hideCheckbox),Br(1),Xa("routerLink",r.disableRouting?null:Gu(15,jZ,n.voId,n.id))("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:Gu(18,jZ,n.voId,n.id)),Br(1),Xa("disabled",!n.expandable),ja("aria-label","toggle "+n.name),Br(1),Xa("ngIf",n.expandable),Br(3),qs(" ",n.name," "),Br(1),Xa("ngIf",r.authResolver.isPerunAdmin()),Br(3),gs("matTooltip",n.description),Br(1),qs(" ",n.description," "),Br(2),Xa("disabled","members"===n.fullName)("displayButtons",r.displayButtons)("group",n)}}var WZ=function(e){return{height:e}};function UZ(e,t){if(1&e&&(Qa(0,"div",2),Qa(1,"cdk-virtual-scroll-viewport",3,4),Ua(3,YZ,16,21,"ng-container",5),Za(),Za()),2&e){var i=hs();Br(1),Xa("minBufferPx",240)("maxBufferPx",480)("ngStyle",Vu(4,WZ,i.getTreeViewHeight())),Br(2),Xa("cdkVirtualForOf",i.dataSource)}}function KZ(e,t){1&e&&(Qa(0,"app-alert",22),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var VZ,GZ,XZ=((GZ=function(){function e(t,i,n){_(this,e),this.cd=t,this.dialog=i,this.authResolver=n,this.transformer=function(e,t){return{expandable:!!e.children&&e.children.length>0,name:e.shortName,fullName:e.name,parentGroupId:e.parentGroupId,level:t,id:e.id,voId:e.voId,attributes:e.attributes,beanName:e.beanName,description:e.description}},this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new rc,this.refreshTable=new rc,this.expandAll=!1,this.disableRouting=!1,this.selection=new db(!0,[]),this.hideCheckbox=!1,this.treeControl=new iQ((function(e){return e.level}),(function(e){return e.expandable})),this.treeFlattener=new aQ(this.transformer,(function(e){return e.level}),(function(e){return e.expandable}),(function(e){return e.children})),this.dataSource=new sQ(this.treeControl,this.treeFlattener),this.hasChild=function(e,t){return t.expandable},this.getLevel=function(e){return e.level}}return w(e,[{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>600}},{key:"ngOnChanges",value:function(e){var t=this;if(this.expandAll){this.filteredGroups=this.groups.filter((function(e){var i,n;return(null===(i=e.name)||void 0===i?void 0:i.toLowerCase().includes(t.filterValue.toLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLowerCase().includes(t.filterValue.toLowerCase()))||e.id.toString().includes(t.filterValue.toLowerCase())}));var i,n=s(this.filteredGroups);try{for(n.s();!(i=n.n()).done;){var r=i.value;r.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat(GS(r.parentGroupId,this.groups)))}}catch(o){n.e(o)}finally{n.f()}}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}},{key:"onSyncDetail",value:function(e){var t=JS();t.data={groupId:e.id,theme:this.theme},this.dialog.open(cN,t)}},{key:"onChangeNameDescription",value:function(e){var t=this,i=JS();i.data={theme:"group-theme",group:e,dialogType:iN.GROUP},this.dialog.open(nN,i).afterClosed().subscribe((function(e){e&&t.refreshTable.emit()}))}},{key:"createGroupTrees",value:function(e){var t,i=new Map,n=s(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.set(r.id,new Bf(r))}}catch(u){n.e(u)}finally{n.f()}var o=new Set;i.forEach((function(e,t,i){var n=i.get(e.parentGroupId);void 0!==n&&(n.addChild(e),i.set(e.parentGroupId,n)),null!==e.parentGroupId&&void 0===n&&o.add(e.id)}));var a=[];i.forEach((function(e){(null===e.parentGroupId||o.has(e.id))&&a.push(e)})),this.dataSource.data=a,this.cd.detectChanges()}},{key:"getParentNode",value:function(e){var t=this.getLevel(e);if(t<1)return null;for(var i=this.treeControl.dataNodes.indexOf(e)-1;i>=0;i--){var n=this.treeControl.dataNodes[i];if(this.getLevel(n)_boolean_policy",[e.vo,i])}:function(t,i){return t&&e.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[i])},!0)}},{key:"onMoveGroup",value:function(e){this.moveGroup.emit(e)}},{key:"getTreeViewHeight",value:function(){var e=0;this.scrollViewport&&(e=this.scrollViewport.getDataLength());var t=48*e;return t>672&&(t=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t+"px"}}]),e}()).\u0275fac=function(e){return new(e||GZ)(Va(ua),Va(RS),Va(ag))},GZ.\u0275cmp=Lt({type:GZ,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(e,t){var i;1&e&&vc(FZ,!0),2&e&&gc(i=Ac())&&(t.scrollViewport=i.first)},hostBindings:function(e,t){1&e&&as("resize",(function(e){return t.shouldHideButtons(e)}),!1,dn)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[Gt],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",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["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(e,t){1&e&&(Ua(0,UZ,4,6,"div",0),Ua(1,KZ,3,3,"app-alert",1)),2&e&&(Xa("ngIf",0!==t.filteredGroups.length),Br(1),Xa("ngIf",0===t.filteredGroups.length))},directives:[Uh,Lb,Mb,sd,Ob,vy,Ej,JT,aF,hZ,ZF,LE,IN],pipes:[YT],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}"]}),GZ),JZ=((VZ=function(){function e(){_(this,e),this.expiration="never",this.expirationControl=new rR(null),this.datePicker=new rc}return w(e,[{key:"ngOnInit",value:function(){var e=new Date;this.minDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()),this.expirationControl.setValue(vh(this.minDate,"yyyy-MM-dd","en-GB"))}},{key:"setExpiration",value:function(){this.expiration=vh(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue(vh(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}},{key:"emitDate",value:function(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}]),e}()).\u0275fac=function(e){return new(e||VZ)},VZ.\u0275cmp=Lt({type:VZ,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(e,t){if(1&e){var i=ns();Qa(0,"mat-radio-group",0),as("ngModelChange",(function(e){return t.expiration=e}))("change",(function(){return t.emitDate()})),Qa(1,"mat-radio-button",1),Bs(2),Zu(3,"translate"),Za(),Qa(4,"mat-radio-button",2),Qa(5,"mat-form-field",3),as("click",(function(){return _i(i),Ka(12).open()})),Qa(6,"mat-label"),Bs(7),Zu(8,"translate"),Za(),Qa(9,"input",4),as("dateChange",(function(){return t.setExpiration()})),Za(),$a(10,"mat-datepicker-toggle",5),$a(11,"mat-datepicker",6,7),Za(),Za(),Za()}if(2&e){var n=Ka(12);Xa("ngModel",t.expiration),Br(2),qs(" ",$u(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),Br(2),gs("value",t.expirationControl.value),Br(3),Hs($u(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),Br(2),Xa("min",t.minDate)("formControl",t.expirationControl)("matDatepicker",n),Br(1),Xa("for",n)("disabled",!1),Br(1),Xa("disabled",!1)}},directives:[GO,Xx,mR,QO,Ix,Ex,AO,Yx,pI,bR,mI,xx,lI],pipes:[YT],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),VZ);function QZ(e,t){1&e&&(Qa(0,"mat-error"),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var ZZ,$Z=((ZZ=function(){function e(t,i,n,r,o){_(this,e),this.dialogRef=t,this.translate=i,this.notificator=n,this.rtMessages=r,this.storeService=o,this.message="",this.subject="",this.instanceName=""}return w(e,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var e=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe((function(t){e.dialogRef.afterClosed().subscribe((function(){return e.notificator.showSuccess(e.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)})),e.dialogRef.close()}))}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+lN.a}},{key:"close",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||ZZ)(Va(ES),Va(qT),Va(DE),Va(eg),Va(Gy))},ZZ.\u0275cmp=Lt({type:ZZ,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&&(Qa(0,"h1",0),Bs(1),Zu(2,"translate"),Za(),Qa(3,"div",1),Qa(4,"mat-form-field"),Qa(5,"mat-label"),Bs(6),Zu(7,"translate"),Za(),Qa(8,"input",2,3),as("ngModelChange",(function(e){return t.subject=e})),Za(),Ua(10,QZ,3,3,"mat-error",4),Za(),Qa(11,"mat-form-field"),Qa(12,"mat-label"),Bs(13),Zu(14,"translate"),Za(),Qa(15,"textarea",5),as("ngModelChange",(function(e){return t.message=e})),Zu(16,"translate"),Bs(17," "),Za(),Qa(18,"mat-hint"),Bs(19),Zu(20,"translate"),Za(),Za(),Za(),Qa(21,"div",6),Qa(22,"div",7),Qa(23,"button",8),as("click",(function(){return t.close()})),Bs(24),Zu(25,"translate"),Za(),Qa(26,"button",9),as("click",(function(){return t.sendBugReport()})),Bs(27),Zu(28,"translate"),Za(),Za(),Za()),2&e){var i=Ka(9);Br(1),Hs($u(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),Br(5),Hs($u(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),Br(2),Xa("ngModel",t.subject),Br(2),Xa("ngIf",i.invalid),Br(3),Hs($u(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),Br(2),gs("placeholder",$u(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),Xa("ngModel",t.message),Br(4),Hs($u(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),Br(5),qs(" ",$u(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),Br(2),Xa("disabled",i.invalid),Br(1),qs(" ",$u(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[IS,NS,Ix,Ex,AO,Yx,JR,Xx,mR,Uh,Tx,FS,JT,cx],pipes:[YT],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),ZZ);function e$(e,t){if(1&e&&(Qa(0,"span"),Qa(1,"a",13),Bs(2),Za(),Bs(3,", "),Za()),2&e){var i=t.$implicit;Br(1),Xa("href",i.webpage,br),Br(1),qs(" ",i.name,"")}}var t$,i$=function(e){return{background:e}},n$=function(e){return{color:e}},r$=((t$=function(){function e(t,i,n){_(this,e),this.storeService=t,this.dialog=i,this.store=n,this.perunwebpage="",this.perunTeamWebpage="",this.privacyPolicy="",this.userDocumentationWebpage="",this.administratorDocumentationWebpage="",this.supportMail="",this.version="",this.copyright=[],this.backgroundColor=this.store.get("theme","footer_bg_color"),this.footerCopyrightTextColor=this.store.get("theme","footer_copyright_text_color"),this.linksTextColor=this.store.get("theme","footer_links_text_color"),this.footerHeadersTextColor=this.store.get("theme","footer_headers_text_color"),this.githubRepository=this.storeService.get("footer_github_releases"),this.currentYear=(new Date).getFullYear()}return w(e,[{key:"ngOnInit",value:function(){this.perunwebpage=this.storeService.get("footer_perun_web_web"),this.perunTeamWebpage=this.storeService.get("footer_perun_team_web"),this.privacyPolicy=this.storeService.get("footer_privacy_policy_web"),this.userDocumentationWebpage=this.storeService.get("footer_users_documentation_web"),this.administratorDocumentationWebpage=this.storeService.get("footer_administrator_documentation"),this.supportMail=this.storeService.get("footer_support_mail"),this.version=lN.a,this.copyright=this.storeService.get("footer_copyright")}},{key:"openBugReportDialog",value:function(){var e=JS();e.width="550px",this.dialog.open($Z,e)}}]),e}()).\u0275fac=function(e){return new(e||t$)(Va(Gy),Va(RS),Va(Gy))},t$.\u0275cmp=Lt({type:t$,selectors:[["perun-web-apps-footer"]],decls:53,vars:73,consts:[[1,"font-small",3,"ngStyle"],[1,"container-fluid","text-center","text-md-left","pr-xl-5","pl-xl-5"],[1,"row"],[1,"col-md-4","mx-auto","footer-col"],[1,"text-uppercase","font-weight-bold",3,"ngStyle"],[1,"list-unstyled"],["target","_blank",3,"href","ngStyle"],["id","clickable",3,"ngStyle","click"],[3,"ngStyle"],[1,"material-icons","align-bottom"],[1,"my-0"],["id","copyright",1,"footer-copyright","text-center","py-2",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"]],template:function(e,t){1&e&&(Qa(0,"footer",0),Qa(1,"div",1),Qa(2,"div",2),Qa(3,"div",3),Qa(4,"h6",4),Bs(5),Zu(6,"translate"),Za(),Qa(7,"ul",5),Qa(8,"li"),Qa(9,"a",6),Bs(10),Zu(11,"translate"),Za(),Za(),Qa(12,"li"),Qa(13,"a",6),Bs(14),Zu(15,"translate"),Za(),Za(),Qa(16,"li"),Qa(17,"a",6),Bs(18),Zu(19,"translate"),Za(),Za(),Za(),Za(),Qa(20,"div",3),Qa(21,"h6",4),Bs(22),Zu(23,"translate"),Za(),Qa(24,"ul",5),Qa(25,"li"),Qa(26,"a",6),Bs(27),Zu(28,"translate"),Za(),Za(),Qa(29,"li"),Qa(30,"a",6),Bs(31),Zu(32,"translate"),Za(),Za(),Qa(33,"li"),Qa(34,"span",7),as("click",(function(){return t.openBugReportDialog()})),Bs(35),Zu(36,"translate"),Za(),Za(),Za(),Za(),Qa(37,"div",3),Qa(38,"h6",4),Bs(39),Zu(40,"translate"),Za(),Qa(41,"ul",5),Qa(42,"li",8),Qa(43,"i",9),Bs(44," mail "),Za(),Bs(45),Za(),Za(),Za(),Za(),Za(),$a(46,"hr",10),Qa(47,"div",11),Bs(48),Ua(49,e$,4,2,"span",12),Bs(50," Version "),Qa(51,"a",13),Bs(52),Za(),Za(),Za()),2&e&&(Xa("ngStyle",Vu(49,i$,t.backgroundColor)),Br(4),Xa("ngStyle",Vu(51,n$,t.footerHeadersTextColor)),Br(1),qs(" ",$u(6,31,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.ABOUT_PERUN")," "),Br(4),Xa("href",t.perunwebpage,br)("ngStyle",Vu(53,n$,t.linksTextColor)),Br(1),Hs($u(11,33,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PERUN_WEB")),Br(3),Xa("href",t.perunTeamWebpage,br)("ngStyle",Vu(55,n$,t.linksTextColor)),Br(1),Hs($u(15,35,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PERUN_TEAM")),Br(3),Xa("href",t.privacyPolicy,br)("ngStyle",Vu(57,n$,t.linksTextColor)),Br(1),Hs($u(19,37,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.PRIVACY_POLICY")),Br(3),Xa("ngStyle",Vu(59,n$,t.footerHeadersTextColor)),Br(1),qs(" ",$u(23,39,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.HELP")," "),Br(4),Xa("href",t.userDocumentationWebpage,br)("ngStyle",Vu(61,n$,t.linksTextColor)),Br(1),Hs($u(28,41,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.USER_DOCUMENTATION")),Br(3),Xa("href",t.administratorDocumentationWebpage,br)("ngStyle",Vu(63,n$,t.linksTextColor)),Br(1),Hs($u(32,43,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.ADMINISTRATOR_DOCUMENTATION")),Br(3),Xa("ngStyle",Vu(65,n$,t.linksTextColor)),Br(1),Hs($u(36,45,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.REPORT_ISSUE")),Br(3),Xa("ngStyle",Vu(67,n$,t.footerHeadersTextColor)),Br(1),qs(" ",$u(40,47,"SHARED_LIB.PERUN.COMPONENTS.FOOTER.SUPPORT")," "),Br(3),Xa("ngStyle",Vu(69,n$,t.linksTextColor)),Br(3),qs(" ",t.supportMail," "),Br(2),Xa("ngStyle",Vu(71,n$,t.footerCopyrightTextColor)),Br(1),qs(" \xa9 ",t.currentYear," Copyright: "),Br(1),Xa("ngForOf",t.copyright),Br(2),Xa("href",t.githubRepository,br),Br(1),Hs(t.version))},directives:[sd,Yh],pipes:[YT],styles:["footer[_ngcontent-%COMP%]{height:100%}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap}a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}li[_ngcontent-%COMP%]{color:#e0e0e0}#clickable[_ngcontent-%COMP%]{cursor:pointer}"]}),t$),o$=a("OIgT"),a$=["scrollViewport"];function s$(e,t){if(1&e&&(Qa(0,"mat-option",7),Bs(1),Qa(2,"span",8),Bs(3),Za(),Za()),2&e){var i=hs();Xa("value",null==i.entitiesCtrl?null:i.entitiesCtrl.value),Br(1),qs(" ",i.mainTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)," "),Br(2),Hs(i.secondaryTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value))}}function u$(e,t){if(1&e&&(Qa(0,"mat-option",9),Bs(1),Qa(2,"span",8),Bs(3),Za(),Za()),2&e){var i=t.$implicit,n=hs();Xa("value",i),Br(1),qs(" ",n.mainTextFunction(i)," "),Br(2),Hs(n.secondaryTextFunction(i))}}var c$,l$,h$=((l$=function(){function e(t){_(this,e),this.cd=t,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.entitySelected=new rc,this.entitiesCtrl=new rR,this.entityFilterCtrl=new rR,this.filteredEntities=new B_(1),this.entitiesLen=0,this._onDestroy=new H,this.mainTextFunction=function(e){return Object(o$.stringify)(e)},this.secondaryTextFunction=function(e){return"#"+e.id}}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.entitiesCtrl.valueChanges.subscribe((function(t){return e.entitySelected.emit(t)})),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe((function(t){return e.entitiesLen=t.length})),this.entityFilterCtrl.valueChanges.pipe(C_(this._onDestroy)).subscribe((function(){e.filterEntites()})),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}},{key:"ngOnChanges",value:function(e){e.entities&&this.filteredEntities.next(this.entities.slice())}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"filterEntites",value:function(){var e=this;if(this.entities){var t=this.entityFilterCtrl.value;if(!t)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();t=this.normalize(t),this.filteredEntities.next(this.entities.filter((function(i){return e.normalize(e.searchFunction(i)).indexOf(t)>=0}))),this.cd.detectChanges()}}},{key:"normalize",value:function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"openChange",value:function(e){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}},{key:"getViewportHeight",value:function(){var e=48*this.entitiesLen;return e>192&&(e=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e}}]),e}()).\u0275fac=function(e){return new(e||l$)(Va(ua))},l$.\u0275cmp=Lt({type:l$,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(e,t){var i;1&e&&vc(a$,!0),2&e&&gc(i=Ac())&&(t.scrollViewport=i.first)},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[Gt],decls:9,vars:14,consts:[[1,"w-100"],[3,"placeholder","formControl","openedChange"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted","muted"],[3,"value"]],template:function(e,t){1&e&&(Qa(0,"mat-form-field",0),Qa(1,"mat-select",1),as("openedChange",(function(e){return t.openChange(e)})),Qa(2,"mat-option"),$a(3,"ngx-mat-select-search",2),Za(),Ua(4,s$,4,3,"mat-option",3),Qa(5,"cdk-virtual-scroll-viewport",4,5),Ua(7,u$,4,3,"mat-option",6),Zu(8,"async"),Za(),Za(),Za()),2&e&&(Br(1),gs("placeholder",t.selectPlaceholder),Xa("formControl",t.entitiesCtrl),Br(2),gs("placeholderLabel",t.findPlaceholder),gs("noEntriesFoundLabel",t.noEntriesText),Xa("clearSearchInput",!1)("formControl",t.entityFilterCtrl),Br(1),Xa("ngIf",null==t.entitiesCtrl?null:t.entitiesCtrl.value),Br(1),Cs("height",t.getViewportHeight(),"px"),Xa("minBufferPx",240)("maxBufferPx",480),Br(2),Xa("cdkVirtualForOf",$u(8,12,t.filteredEntities)))},directives:[Ix,LF,Xx,bR,lS,SQ,Uh,Lb,Mb,Ob],pipes:[Ad],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}"]}),l$),d$=((c$=function e(){_(this,e),this.groupSelected=new rc,this.disableAutoSelect=!1,this.nameFunction=function(e){return e.name}}).\u0275fac=function(e){return new(e||c$)},c$.\u0275cmp=Lt({type:c$,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect"},outputs:{groupSelected:"groupSelected"},decls:4,vars:13,consts:[[1,"long-input",3,"entities","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(e,t){1&e&&(Qa(0,"perun-web-apps-entity-search-select",0),as("entitySelected",(function(e){return t.groupSelected.emit(e)})),Zu(1,"translate"),Zu(2,"translate"),Zu(3,"translate"),Za()),2&e&&Xa("entities",t.groups)("disableAutoSelect",t.disableAutoSelect)("mainTextFunction",t.nameFunction)("searchFunction",t.nameFunction)("selectPlaceholder",$u(1,7,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",$u(2,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",$u(3,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))},directives:[h$],pipes:[YT],styles:[""]}),c$);function f$(e,t){if(1&e){var i=ns();Qa(0,"mat-checkbox",7),as("change",(function(){return _i(i),hs().emitAsSubGroup()}))("ngModelChange",(function(e){return _i(i),hs().asSubgroup=e})),Bs(1),Zu(2,"translate"),Za()}if(2&e){var n=hs();Xa("labelPosition","before")("ngModel",n.asSubgroup),Br(1),qs(" ",$u(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function p$(e,t){if(1&e){var i=ns();Qa(0,"perun-web-apps-group-search-select",8),as("groupSelected",(function(e){return _i(i),hs().emitParentGroup(e)})),Za()}if(2&e){var n=hs();Xa("disableAutoSelect",!0)("groups",n.voGroups)}}var g$,m$,v$=((g$=function(){function e(t){_(this,e),this.store=t,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.nameChanged=new rc,this.descriptionChanged=new rc,this.parentGroupChanged=new rc,this.asSubgroupChanged=new rc}return w(e,[{key:"ngOnInit",value:function(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new rR("",[iD.required,iD.pattern(this.secondaryRegex?this.secondaryRegex:""),iD.pattern(".*[\\S]+.*")]),this.descriptionControl=new rR("",[iD.required,iD.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter((function(e){return"members"!==e.name}))}},{key:"emitName",value:function(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}},{key:"emitDescription",value:function(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}},{key:"emitParentGroup",value:function(e){this.selectedParent=e,this.parentGroupChanged.emit(e)}},{key:"emitAsSubGroup",value:function(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}]),e}()).\u0275fac=function(e){return new(e||g$)(Va(Gy))},g$.\u0275cmp=Lt({type:g$,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(e,t){1&e&&(Qa(0,"div",0),Qa(1,"mat-form-field",1),as("keyup",(function(){return t.emitName()})),Qa(2,"label",2),$a(3,"input",3),Zu(4,"translate"),Za(),Qa(5,"mat-error"),Bs(6),Zu(7,"translate"),Za(),Za(),Qa(8,"mat-form-field",4),as("keyup",(function(){return t.emitDescription()})),Qa(9,"label",2),$a(10,"textarea",3),Zu(11,"translate"),Za(),Qa(12,"mat-error"),Bs(13),Zu(14,"translate"),Za(),Za(),Ua(15,f$,3,5,"mat-checkbox",5),Ua(16,p$,1,2,"perun-web-apps-group-search-select",6),Za()),2&e&&(Br(3),gs("placeholder",$u(4,8,"DIALOGS.CREATE_GROUP.NAME")),Xa("formControl",t.nameControl),Br(3),qs(" ",t.invalidNameMessage.length?t.invalidNameMessage:$u(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),Br(4),gs("placeholder",$u(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),Xa("formControl",t.descriptionControl),Br(3),qs(" ",$u(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),Br(2),Xa("ngIf",t.isNotSubGroup),Br(1),Xa("ngIf",t.asSubgroup))},directives:[Ix,AO,Yx,JR,Xx,bR,cx,Uh,ZF,mR,d$],pipes:[YT],styles:[""]}),g$),y$={},_$=((m$=function e(t){var i=this;_(this,e),this.translate=t,this.item=null,this.itemSelected=new rc,this.nameFunction=function(e){return e===y$?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):e.shortname},this.secondaryFunction=function(e){return e===y$?"":e.id<0?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+e.id},this.searchFunction=function(e){return e===y$?"":e.shortname+e.id}}).\u0275fac=function(e){return new(e||m$)(Va(qT))},m$.\u0275cmp=Lt({type:m$,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(e,t){1&e&&(Qa(0,"perun-web-apps-entity-search-select",0),as("entitySelected",(function(e){return t.itemSelected.emit(e)})),Zu(1,"translate"),Zu(2,"translate"),Zu(3,"translate"),Za()),2&e&&Xa("entities",t.items)("searchFunction",t.searchFunction)("mainTextFunction",t.nameFunction)("secondaryTextFunction",t.secondaryFunction)("entity",t.item)("disableAutoSelect",!0)("selectPlaceholder",$u(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",$u(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",$u(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[h$],pipes:[YT],styles:[""]}),m$);function b$(e,t){1&e&&(Qa(0,"app-alert",11),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function w$(e,t){1&e&&(Qa(0,"app-alert",12),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function A$(e,t){if(1&e&&(Qa(0,"div",13),$a(1,"img",14),Za()),2&e){var i=hs();Br(1),Xa("src",i.newImage,br)}}function k$(e,t){1&e&&(Qa(0,"app-alert",11),Bs(1),Zu(2,"translate"),Zu(3,"customTranslate"),Za()),2&e&&(Br(1),Hs($u(2,1,$u(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}var M$,C$,S$,T$=((S$=function(){function e(t,i,n,r){_(this,e),this.dialogRef=t,this.data=i,this.attributesManagerService=n,this.store=r,this.newImage=""}return w(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}},{key:"handleInputChange",value:function(e){var t=e.dataTransfer?e.dataTransfer.files[0]:e.target.files[0],i=new FileReader;t.type.match(/image-*/)?(i.onload=this._handleReaderLoaded.bind(this),i.readAsDataURL(t)):alert("invalid format")}},{key:"_handleReaderLoaded",value:function(e){var t=e.target;this.imgTooLong=t.result.length>=5120,this.newImage=t.result}},{key:"onAdd",value:function(){var e=this;this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe((function(){e.dialogRef.close(!0)}))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"generateImg",value:function(){function e(e,t,i,n){n.beginPath(),n.rect(20*e,20*t,20,20),n.fillStyle="rgb("+i.join(",")+")",n.fill()}this.newImage=function(){for(var t=function(){var e=document.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");return t.beginPath(),t.rect(0,0,100,100),t.fillStyle="#FFFFFF",t.fill(),e}(),i=t.getContext("2d"),n=function(){for(var e=[],t=0;t<3;t++){var i=Math.floor(256*Math.random()),n=Math.max(120,i),r=Math.min(200,n);e.push(r)}return e}(),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_(this,e),this.http=t,this.prefix=i,this.suffix=n}return w(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}(),c0=((J$=function(){function e(t){_(this,e),this.store=t}return w(e,[{key:"getSideMenuItems",value:function(){var e=this.store.get("displayed_tabs"),t=[];return e.forEach((function(e){switch(e){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"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}})),this.store.get("external_services").forEach((function(e){t.push({label:e.label_en,label_cz:e.label_cz,icon:"insert_link",link:e.url,activatedRegex:"^/profile/external",tabName:"external",external:!0})})),t}}]),e}()).\u0275fac=function(e){return new(e||J$)(ct(Gy))},J$.\u0275prov=Ce({token:J$,factory:J$.\u0275fac,providedIn:"root"}),J$),l0=((X$=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){return{content:e?"url(".concat(e,")"):""}}}]),i}(kV)).\u0275fac=function(e){return h0(e||X$)},X$.\u0275prov=Ce({factory:function(){return new X$},token:X$,providedIn:"root"}),X$),h0=Dn(l0),d0=((Q$=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s){var u;return _(this,i),(u=t.call(this,e,n,r,o)).platformId=a,u.serverModuleLoaded=s,u.DIRECTIVE_KEY="img-src",u.defaultSrc="",u.styleCache=f0,u.init(),u.setValue(u.nativeElement.getAttribute("src")||"",""),Vd(u.platformId)&&u.serverModuleLoaded&&u.nativeElement.setAttribute("src",""),u}return w(i,[{key:"updateWithValue",value:function(e){var t=e||this.defaultSrc;Vd(this.platformId)&&this.serverModuleLoaded?this.addStyles(t):this.nativeElement.setAttribute("src",t)}},{key:"src",set:function(e){this.defaultSrc=e,this.setValue(this.defaultSrc,"")}}]),i}(ZK)).\u0275fac=function(e){return new(e||Q$)(Va(nu),Va(l0),Va(AV),Va(TV),Va(Oc),Va(KK))},Q$.\u0275dir=Pt({type:Q$,inputs:{src:"src"},features:[La]}),Q$),f0=new Map,p0=["src.xs","src.sm","src.md","src.lg","src.xl","src.lt-sm","src.lt-md","src.lt-lg","src.lt-xl","src.gt-xs","src.gt-sm","src.gt-md","src.gt-lg"],g0=((Z$=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=p0,e}return i}(d0)).\u0275fac=function(e){return m0(e||Z$)},Z$.\u0275dir=Pt({type:Z$,selectors:[["img","src.xs",""],["img","src.sm",""],["img","src.md",""],["img","src.lg",""],["img","src.xl",""],["img","src.lt-sm",""],["img","src.lt-md",""],["img","src.lt-lg",""],["img","src.lt-xl",""],["img","src.gt-xs",""],["img","src.gt-sm",""],["img","src.gt-md",""],["img","src.gt-lg",""]],inputs:{"src.xs":"src.xs","src.sm":"src.sm","src.md":"src.md","src.lg":"src.lg","src.xl":"src.xl","src.lt-sm":"src.lt-sm","src.lt-md":"src.lt-md","src.lt-lg":"src.lt-lg","src.lt-xl":"src.lt-xl","src.gt-xs":"src.gt-xs","src.gt-sm":"src.gt-sm","src.gt-md":"src.gt-md","src.gt-lg":"src.gt-lg"},features:[La]}),Z$),m0=Dn(g0),v0=(($$=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u){var c;return _(this,i),(c=t.call(this,e,null,n,r)).ngClassInstance=u,c.DIRECTIVE_KEY="ngClass",c.ngClassInstance||(c.ngClassInstance=new Hh(o,a,e,s)),c.init(),c.setValue("",""),c}return w(i,[{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}},{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}}]),i}(ZK)).\u0275fac=function(e){return new(e||$$)(Va(nu),Va(AV),Va(TV),Va(Au),Va(ku),Va(su),Va(Hh,10))},$$.\u0275dir=Pt({type:$$,inputs:{klass:["class","klass"]},features:[La]}),$$),y0=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],_0=((e0=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=y0,e}return i}(v0)).\u0275fac=function(e){return b0(e||e0)},e0.\u0275dir=Pt({type:e0,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[La]}),e0),b0=Dn(_0),w0=((t0=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e,t){return{display:"true"===e?t.display||(t.isServer?"initial":""):"none"}}}]),i}(kV)).\u0275fac=function(e){return A0(e||t0)},t0.\u0275prov=Ce({factory:function(){return new t0},token:t0,providedIn:"root"}),t0),A0=Dn(w0),k0=((i0=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u){var c;return _(this,i),(c=t.call(this,e,n,r,o)).layoutConfig=a,c.platformId=s,c.serverModuleLoaded=u,c.DIRECTIVE_KEY="show-hide",c.display="",c.hasLayout=!1,c.hasFlexChild=!1,c}return w(i,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var e=Array.from(this.nativeElement.children),t=0;t0&&void 0!==arguments[0])||arguments[0];if(""!==e){var t=Vd(this.platformId);this.addStyles(e?"true":"false",{display:this.display,isServer:t}),t&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),i}(ZK)).\u0275fac=function(e){return new(e||i0)(Va(nu),Va(w0),Va(AV),Va(TV),Va(UK),Va(Oc),Va(KK))},i0.\u0275dir=Pt({type:i0,features:[La,Gt]}),i0),M0=new WeakMap,C0=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],S0=((n0=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=C0,e}return i}(k0)).\u0275fac=function(e){return T0(e||n0)},n0.\u0275dir=Pt({type:n0,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[La]}),n0),T0=Dn(S0),E0=function e(t,i){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_(this,e),this.key=t,this.value=i,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?i.replace(/['"]/g,"").trim():i.trim(),this.value=this.value.replace(/;/,"")};function L0(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function z0(t){var i=e(t.split(":")),n=i[0],r=i.slice(1);return new E0(n,r.join(":"))}function x0(e,t){return t.key&&(e[t.key]=t.value),e}var D0,R0,O0=((D0=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u,c,l){var h;_(this,i),(h=t.call(this,e,null,n,r)).sanitizer=o,h.ngStyleInstance=u,h.DIRECTIVE_KEY="ngStyle",h.ngStyleInstance||(h.ngStyleInstance=new sd(e,a,s)),h.init();var d=h.nativeElement.getAttribute("style")||"";return h.fallbackStyles=h.buildStyleMap(d),h.isServer=c&&Vd(l),h}return w(i,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,i,n,r=this,o=function(e){return r.sanitizer.sanitize(yr.STYLE,e)||""};if(e)switch(L0(e)){case"string":return F0(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map((function(e){return e.trim()})).filter((function(e){return""!==e}))}(e),o);case"array":return F0(e,o);case"set":default:return i=o,n=[],"set"===L0(t=e)?t.forEach((function(e){return n.push(e)})):Object.keys(t).forEach((function(e){n.push("".concat(e,":").concat(t[e]))})),function(e,t){return e.map(z0).filter((function(e){return!!e})).map((function(e){return t&&(e.value=t(e.value)),e})).reduce(x0,{})}(n,i)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),i}(ZK)).\u0275fac=function(e){return new(e||D0)(Va(nu),Va(AV),Va(TV),Va(Rf),Va(ku),Va(su),Va(sd,10),Va(KK),Va(Oc))},D0.\u0275dir=Pt({type:D0,features:[La]}),D0),P0=["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"],I0=((R0=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=P0,e}return i}(O0)).\u0275fac=function(e){return N0(e||R0)},R0.\u0275dir=Pt({type:R0,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:[La]}),R0),N0=Dn(I0);function F0(e,t){return e.map(z0).filter((function(e){return!!e})).map((function(e){return t&&(e.value=t(e.value)),e})).reduce(x0,{})}var B0,H0,q0=((H0=function e(){_(this,e)}).\u0275mod=Rt({type:H0}),H0.\u0275inj=Se({factory:function(e){return new(e||H0)},imports:[[qK]]}),H0),j0=((B0=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t){return"en"===e?t.label:t.label_cz}}]),e}()).\u0275fac=function(e){return new(e||B0)},B0.\u0275pipe=It({name:"localizationLabel",type:B0,pure:!0}),B0),Y0=function(e){return{color:e}};function W0(e,t){if(1&e){var i=ns();Qa(0,"mat-list-item",1),as("click",(function(){_i(i);var e=t.$implicit,n=hs();return e.external?n.goToURL(e.link):n.shouldHideMenu()})),Qa(1,"mat-icon",2),Bs(2),Za(),Qa(3,"span",3),Bs(4),Zu(5,"localizationLabel"),Zu(6,"translate"),Zu(7,"customTranslate"),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Ss("activated",r.isActive(n.activatedRegex)),gs("routerLink",n.external?null:n.link),Xa("ngStyle",Vu(15,Y0,r.textColor)),Br(1),Xa("ngStyle",Vu(17,Y0,r.iconColor)),Br(1),Hs(n.icon),Br(2),Hs(n.external?ec(5,7,r.lang,n):$u(6,10,ec(7,12,n.label,r.lang)))}}var U0,K0,V0,G0,X0,J0=((U0=function(){function e(t,i,n,r){var o=this;_(this,e),this.sideMenuItemService=t,this.storeService=i,this.router=n,this.translateService=r,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=n.url,n.events.subscribe((function(e){e instanceof $g&&(o.currentUrl=e.url)}))}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe((function(t){var i=t.lang;e.lang=i}));var t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter((function(e){return t.includes(e.tabName)}))}},{key:"isActive",value:function(e){return new RegExp(e).test(this.currentUrl)}},{key:"shouldHideMenu",value:function(){"over"===this.sideNav.mode&&this.sideNav.close()}},{key:"goToURL",value:function(e){window.open(e,"_blank")}}]),e}()).\u0275fac=function(e){return new(e||U0)(Va(c0),Va(Gy),Va(my),Va(qT))},U0.\u0275cmp=Lt({type:U0,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[["disableRipple","",3,"activated","ngStyle","routerLink","click",4,"ngFor","ngForOf"],["disableRipple","",3,"ngStyle","routerLink","click"],[3,"ngStyle"],[1,"nav-caption"]],template:function(e,t){1&e&&(Qa(0,"mat-nav-list"),Ua(1,W0,8,19,"mat-list-item",0),Za()),2&e&&(Br(1),Xa("ngForOf",t.items))},directives:[bK,Yh,SK,sd,I0,vy,LE],pipes:[j0,YT,SI],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),U0),Q0=["*",[["mat-toolbar-row"]]],Z0=["*","mat-toolbar-row"],$0=mC((function e(t){_(this,e),this._elementRef=t})),e1=((G0=function e(){_(this,e)}).\u0275fac=function(e){return new(e||G0)},G0.\u0275dir=Pt({type:G0,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),G0),t1=((V0=function(e){d(i,e);var t=p(i);function i(e,n,r){var o;return _(this,i),(o=t.call(this,e))._platform=n,o._document=r,o}return w(i,[{key:"ngAfterViewInit",value:function(){var e=this;Gn()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return e._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var e=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(e){return!(e.classList&&e.classList.contains("mat-toolbar-row"))})).filter((function(t){return t.nodeType!==(e._document?e._document.COMMENT_NODE:8)})).some((function(e){return!(!e.textContent||!e.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}]),i}($0)).\u0275fac=function(e){return new(e||V0)(Va(nu),Va(G_),Va(Tl))},V0.\u0275cmp=Lt({type:V0,selectors:[["mat-toolbar"]],contentQueries:function(e,t,i){var n;1&e&&_c(i,e1,!0),2&e&&gc(n=Ac())&&(t._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Ss("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[La],ngContentSelectors:Z0,decls:2,vars:0,template:function(e,t){1&e&&(fs(Q0),ps(0),ps(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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),V0),i1=((K0=function e(){_(this,e)}).\u0275mod=Rt({type:K0}),K0.\u0275inj=Se({factory:function(e){return new(e||K0)},imports:[[pC],pC]}),K0),n1=function(e){return{background:e}},r1=function(e){return{color:e}},o1=((X0=function(){function e(t,i){var n=this;_(this,e),this.storeService=t,this.sanitizer=i,this.sidenavToggle=new rc,this.bgColor=this.storeService.get("theme","header_bg_color"),this.textColor=this.storeService.get("theme","header_text_color"),this.iconColor=this.storeService.get("theme","header_icon_color"),this.label=this.storeService.get("header_label"),this.onToggleSidenav=function(){n.sidenavToggle.emit()}}return w(e,[{key:"ngOnInit",value:function(){this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}}]),e}()).\u0275fac=function(e){return new(e||X0)(Va(Gy),Va(Rf))},X0.\u0275cmp=Lt({type:X0,selectors:[["perun-web-apps-header"]],outputs:{sidenavToggle:"sidenavToggle"},decls:7,vars:11,consts:[[1,"sticky-top","header-container",3,"ngStyle"],["mat-icon-button","",3,"ngStyle","click"],["routerLink","/",1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto",3,"ngStyle"]],template:function(e,t){1&e&&(Qa(0,"mat-toolbar",0),Qa(1,"button",1),as("click",(function(){return t.onToggleSidenav()})),Qa(2,"mat-icon"),Bs(3,"menu"),Za(),Za(),$a(4,"a",2),Qa(5,"p",3),Bs(6),Za(),Za()),2&e&&(Xa("ngStyle",Vu(5,n1,t.bgColor)),Br(1),Xa("ngStyle",Vu(7,r1,t.iconColor)),Br(3),Xa("innerHTML",t.logo,_r),Br(1),Xa("ngStyle",Vu(9,r1,t.textColor)),Br(1),Hs(t.label))},directives:[t1,sd,I0,JT,LE,yy],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important}"]}),X0),a1=["*"];function s1(e,t){if(1&e){var i=ns();Qa(0,"div",2),as("click",(function(){return _i(i),hs()._onBackdropClicked()})),Za()}2&e&&Ss("mat-drawer-shown",hs()._isShowingBackdrop())}function u1(e,t){1&e&&(Qa(0,"mat-drawer-content"),ps(1,2),Za())}var c1=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],l1=["mat-drawer","mat-drawer-content","*"];function h1(e,t){if(1&e){var i=ns();Qa(0,"div",2),as("click",(function(){return _i(i),hs()._onBackdropClicked()})),Za()}2&e&&Ss("mat-drawer-shown",hs()._isShowingBackdrop())}function d1(e,t){1&e&&(Qa(0,"mat-sidenav-content",3),ps(1,2),Za())}var f1=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],p1=["mat-sidenav","mat-sidenav-content","*"],g1=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",m1={transformDrawer:xA("transform",[IA("open, open-instant",PA({transform:"none",visibility:"visible"})),IA("void",PA({"box-shadow":"none",visibility:"hidden"})),FA("void => open-instant",DA("0ms")),FA("void <=> open, open-instant => void",DA("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function v1(e){throw Error("A drawer was already declared for 'position=\"".concat(e,"\"'"))}var y1,_1,b1,w1,A1,k1,M1,C1,S1=new et("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),T1=new et("MAT_DRAWER_CONTAINER"),E1=((A1=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){var s;return _(this,i),(s=t.call(this,r,o,a))._changeDetectorRef=e,s._container=n,s}return w(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))}}]),i}(Sb)).\u0275fac=function(e){return new(e||A1)(Va(ua),Va(Fe((function(){return z1}))),Va(nu),Va(Cb),Va(Xc))},A1.\u0275cmp=Lt({type:A1,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&Cs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[La],ngContentSelectors:a1,decls:1,vars:0,template:function(e,t){1&e&&(fs(),ps(0))},encapsulation:2,changeDetection:0}),A1),L1=((w1=function(){function e(t,i,n,r,o,a,s){var u=this;_(this,e),this._elementRef=t,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=a,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new H,this._animationEnd=new H,this._animationState="void",this.openedChange=new rc(!0),this._destroyed=new H,this.onPositionChanged=new rc,this._modeChanged=new H,this.openedChange.subscribe((function(e){e?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._restoreFocus()})),this._ngZone.runOutsideAngular((function(){t_(u._elementRef.nativeElement,"keydown").pipe(jf((function(e){return 27===e.keyCode&&!u.disableClose&&!Gb(e)})),C_(u._destroyed)).subscribe((function(e){return u._ngZone.run((function(){u.close(),e.stopPropagation(),e.preventDefault()}))}))})),this._animationEnd.pipe(m_((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){var t=e.fromState,i=e.toState;(0===i.indexOf("open")&&"void"===t||"void"===i&&0===t.indexOf("open"))&&u.openedChange.emit(u._opened)}))}return w(e,[{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var e=this._doc&&this._doc.activeElement;e&&this._elementRef.nativeElement.contains(e)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(t){e.openedChange.pipe(Dg(1)).subscribe((function(e){return t(e?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}},{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=Xy(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=Xy(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(Xy(e))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(jf((function(e){return e})),Q((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(jf((function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")})),Q((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(jf((function(e){return!e})),Q((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(jf((function(e){return e.fromState!==e.toState&&"void"===e.toState})),Q((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),e}()).\u0275fac=function(e){return new(e||w1)(Va(nu),Va(cA),Va(wA),Va(G_),Va(Xc),Va(Tl,8),Va(T1,8))},w1.\u0275cmp=Lt({type:w1,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&ss("@transform.start",(function(e){return t._animationStartListener(e)}))("@transform.done",(function(e){return t._animationDoneListener(e)})),2&e&&(ja("align",null),Us("@transform",t._animationState),Ss("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",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:a1,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(fs(),Qa(0,"div",0),ps(1),Za())},encapsulation:2,data:{animation:[m1.transformDrawer]},changeDetection:0}),w1),z1=((b1=function(){function e(t,i,n,r,o){var a=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;_(this,e),this._dir=t,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new ac,this.backdropClick=new rc,this._destroyed=new H,this._doCheckSubject=new H,this._contentMargins={left:null,right:null},this._contentMarginChanges=new H,t&&t.change.pipe(C_(this._destroyed)).subscribe((function(){a._validateDrawers(),a.updateContentMargins()})),o.change().pipe(C_(this._destroyed)).subscribe((function(){return a.updateContentMargins()})),this._autosize=s}return w(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Ig(this._allDrawers),C_(this._destroyed)).subscribe((function(t){e._drawers.reset(t.filter((function(t){return!t._container||t._container===e}))),e._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Ig(null)).subscribe((function(){e._validateDrawers(),e._drawers.forEach((function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)})),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Pw(10),C_(this._destroyed)).subscribe((function(){return e.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(e){return e.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(e){return e.close()}))}},{key:"updateContentMargins",value:function(){var e=this,t=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){var n=this._left._width;t+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._width;else if("push"==this._right.mode){var r=this._right._width;i+=r,t-=r}i=i||null,(t=t||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:t,right:i},this._ngZone.run((function(){return e._contentMarginChanges.next(e._contentMargins)})))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return e._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(jf((function(e){return e.fromState!==e.toState})),C_(this._drawers.changes)).subscribe((function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),"side"!==e.mode&&e.openedChange.pipe(C_(this._drawers.changes)).subscribe((function(){return t._setContainerClass(e.opened)}))}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(C_(this._drawers.changes)).subscribe((function(){t._ngZone.onMicrotaskEmpty.asObservable().pipe(Dg(1)).subscribe((function(){t._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(C_(se(this._drawers.changes,this._destroyed))).subscribe((function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?t.add(i):t.remove(i)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach((function(t){"end"==t.position?(null!=e._end&&v1("end"),e._end=t):(null!=e._start&&v1("start"),e._start=t)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var e=this;[this._start,this._end].filter((function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)})).forEach((function(e){return e.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=Xy(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:Xy(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),e}()).\u0275fac=function(e){return new(e||b1)(Va(ob,8),Va(nu),Va(Xc),Va(ua),Va(Tb),Va(S1),Va(iC,8))},b1.\u0275cmp=Lt({type:b1,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,i){var n;1&e&&(_c(i,E1,!0),_c(i,L1,!0)),2&e&&(gc(n=Ac())&&(t._content=n.first),gc(n=Ac())&&(t._allDrawers=n))},viewQuery:function(e,t){var i;1&e&&vc(E1,!0),2&e&&gc(i=Ac())&&(t._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Ss("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[$s([{provide:T1,useExisting:b1}])],ngContentSelectors:l1,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&&(fs(c1),Ua(0,s1,1,2,"div",0),ps(1),ps(2,1),Ua(3,u1,2,0,"mat-drawer-content",1)),2&e&&(Xa("ngIf",t.hasBackdrop),Br(3),Xa("ngIf",!t._content))},directives:[Uh,E1],styles:[g1],encapsulation:2,changeDetection:0}),b1),x1=((_1=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a){return _(this,i),t.call(this,e,n,r,o,a)}return i}(E1)).\u0275fac=function(e){return new(e||_1)(Va(ua),Va(Fe((function(){return O1}))),Va(nu),Va(Cb),Va(Xc))},_1.\u0275cmp=Lt({type:_1,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&Cs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[La],ngContentSelectors:a1,decls:1,vars:0,template:function(e,t){1&e&&(fs(),ps(0))},encapsulation:2,changeDetection:0}),_1),D1=((y1=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return w(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=Xy(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=Jy(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=Jy(e)}}]),i}(L1)).\u0275fac=function(e){return R1(e||y1)},y1.\u0275cmp=Lt({type:y1,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(ja("align",null),Cs("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),Ss("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:[La],ngContentSelectors:a1,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(fs(),Qa(0,"div",0),ps(1),Za())},encapsulation:2,data:{animation:[m1.transformDrawer]},changeDetection:0}),y1),R1=Dn(D1),O1=((k1=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return i}(z1)).\u0275fac=function(e){return P1(e||k1)},k1.\u0275cmp=Lt({type:k1,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,i){var n;1&e&&(_c(i,x1,!0),_c(i,D1,!0)),2&e&&(gc(n=Ac())&&(t._content=n.first),gc(n=Ac())&&(t._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&Ss("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[$s([{provide:T1,useExisting:k1}]),La],ngContentSelectors:p1,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(fs(f1),Ua(0,h1,1,2,"div",0),ps(1),ps(2,1),Ua(3,d1,2,0,"mat-sidenav-content",1)),2&e&&(Xa("ngIf",t.hasBackdrop),Br(3),Xa("ngIf",!t._content))},directives:[Uh,x1,Sb],styles:[g1],encapsulation:2,changeDetection:0}),k1),P1=Dn(O1),I1=((C1=function e(){_(this,e)}).\u0275mod=Rt({type:C1}),C1.\u0275inj=Se({factory:function(e){return new(e||C1)},imports:[[Ud,pC,X_,Pb],Pb,pC]}),C1),N1=((M1=function(){function e(t,i){_(this,e),this.http=t,this.storeService=i}return w(e,[{key:"initializeColors",value:function(e,t){var i=this;return new Promise((function(n){t.forEach((function(e){var t=i.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t)})),e.forEach((function(e){var t=i.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t),i.setEntityTheme(e.entity,t)})),n()}))}},{key:"setEntityTheme",value:function(e,t){for(var i,n=0,r=(i=t,[F1(tinycolor(i).lighten(52),"50"),F1(tinycolor(i).lighten(37),"100"),F1(tinycolor(i).lighten(26),"200"),F1(tinycolor(i).lighten(12),"300"),F1(tinycolor(i).lighten(6),"400"),F1(tinycolor(i),"500"),F1(tinycolor(i).darken(6),"600"),F1(tinycolor(i).darken(12),"700"),F1(tinycolor(i).darken(18),"800"),F1(tinycolor(i).darken(24),"900"),F1(tinycolor(i).lighten(50).saturate(30),"A100"),F1(tinycolor(i).lighten(30).saturate(30),"A200"),F1(tinycolor(i).lighten(10).saturate(15),"A400"),F1(tinycolor(i).lighten(5).saturate(5),"A700")]);n0&&void 0!==arguments[0]?arguments[0]:"",t={},n=e.split(" "),r=i(n,2),o=r[0],a=r[1];switch(o){case"end":t["justify-self"]="end";break;case"center":t["justify-self"]="center";break;case"stretch":t["justify-self"]="stretch";break;case"start":t["justify-self"]="start";break;default:t["justify-self"]="stretch"}switch(a){case"end":t["align-self"]="end";break;case"center":t["align-self"]="center";break;case"stretch":t["align-self"]="stretch";break;case"start":t["align-self"]="start";break;default:t["align-self"]="stretch"}return t}(e||"stretch")}}]),n}(kV)).\u0275fac=function(e){return F2(e||B1)},B1.\u0275prov=Ce({factory:function(){return new B1},token:B1,providedIn:"root"}),B1),F2=Dn(N2),B2=((q1=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n,r,o)).DIRECTIVE_KEY="grid-align",a.styleCache=H2,a.init(),a}return i}(ZK)).\u0275fac=function(e){return new(e||q1)(Va(nu),Va(N2),Va(AV),Va(TV))},q1.\u0275dir=Pt({type:q1,features:[La]}),q1),H2=new Map,q2=["gdGridAlign","gdGridAlign.xs","gdGridAlign.sm","gdGridAlign.md","gdGridAlign.lg","gdGridAlign.xl","gdGridAlign.lt-sm","gdGridAlign.lt-md","gdGridAlign.lt-lg","gdGridAlign.lt-xl","gdGridAlign.gt-xs","gdGridAlign.gt-sm","gdGridAlign.gt-md","gdGridAlign.gt-lg"],j2=((j1=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=q2,e}return i}(B2)).\u0275fac=function(e){return Y2(e||j1)},j1.\u0275dir=Pt({type:j1,selectors:[["","gdGridAlign",""],["","gdGridAlign.xs",""],["","gdGridAlign.sm",""],["","gdGridAlign.md",""],["","gdGridAlign.lg",""],["","gdGridAlign.xl",""],["","gdGridAlign.lt-sm",""],["","gdGridAlign.lt-md",""],["","gdGridAlign.lt-lg",""],["","gdGridAlign.lt-xl",""],["","gdGridAlign.gt-xs",""],["","gdGridAlign.gt-sm",""],["","gdGridAlign.gt-md",""],["","gdGridAlign.gt-lg",""]],inputs:{gdGridAlign:"gdGridAlign","gdGridAlign.xs":"gdGridAlign.xs","gdGridAlign.sm":"gdGridAlign.sm","gdGridAlign.md":"gdGridAlign.md","gdGridAlign.lg":"gdGridAlign.lg","gdGridAlign.xl":"gdGridAlign.xl","gdGridAlign.lt-sm":"gdGridAlign.lt-sm","gdGridAlign.lt-md":"gdGridAlign.lt-md","gdGridAlign.lt-lg":"gdGridAlign.lt-lg","gdGridAlign.lt-xl":"gdGridAlign.lt-xl","gdGridAlign.gt-xs":"gdGridAlign.gt-xs","gdGridAlign.gt-sm":"gdGridAlign.gt-sm","gdGridAlign.gt-md":"gdGridAlign.gt-md","gdGridAlign.gt-lg":"gdGridAlign.gt-lg"},features:[La]}),j1),Y2=Dn(j2),W2=((Y1=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e,t){return function(e,t){var n={},r=i(e.split(" "),2),o=r[0],a=r[1];switch(o){case"center":n["align-content"]="center";break;case"space-around":n["align-content"]="space-around";break;case"space-between":n["align-content"]="space-between";break;case"space-evenly":n["align-content"]="space-evenly";break;case"end":n["align-content"]="end";break;case"start":n["align-content"]="start";break;case"stretch":n["align-content"]="stretch";break;default:n["align-content"]="start"}switch(a){case"start":n["align-items"]="start";break;case"center":n["align-items"]="center";break;case"end":n["align-items"]="end";break;case"stretch":default:n["align-items"]="stretch"}return n.display=t?"inline-grid":"grid",n}(e||"start stretch",t.inline)}}]),n}(kV)).\u0275fac=function(e){return U2(e||Y1)},Y1.\u0275prov=Ce({factory:function(){return new Y1},token:Y1,providedIn:"root"}),Y1),U2=Dn(W2),K2=((W1=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n,r,o)).DIRECTIVE_KEY="grid-align-columns",a._inline=!1,a.init(),a}return w(i,[{key:"updateWithValue",value:function(e){this.styleCache=this.inline?G2:V2,this.addStyles(e,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=Xy(e)}}]),i}(ZK)).\u0275fac=function(e){return new(e||W1)(Va(nu),Va(W2),Va(AV),Va(TV))},W1.\u0275dir=Pt({type:W1,inputs:{inline:["gdInline","inline"]},features:[La]}),W1),V2=new Map,G2=new Map,X2=["gdAlignColumns","gdAlignColumns.xs","gdAlignColumns.sm","gdAlignColumns.md","gdAlignColumns.lg","gdAlignColumns.xl","gdAlignColumns.lt-sm","gdAlignColumns.lt-md","gdAlignColumns.lt-lg","gdAlignColumns.lt-xl","gdAlignColumns.gt-xs","gdAlignColumns.gt-sm","gdAlignColumns.gt-md","gdAlignColumns.gt-lg"],J2=((U1=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=X2,e}return i}(K2)).\u0275fac=function(e){return Q2(e||U1)},U1.\u0275dir=Pt({type:U1,selectors:[["","gdAlignColumns",""],["","gdAlignColumns.xs",""],["","gdAlignColumns.sm",""],["","gdAlignColumns.md",""],["","gdAlignColumns.lg",""],["","gdAlignColumns.xl",""],["","gdAlignColumns.lt-sm",""],["","gdAlignColumns.lt-md",""],["","gdAlignColumns.lt-lg",""],["","gdAlignColumns.lt-xl",""],["","gdAlignColumns.gt-xs",""],["","gdAlignColumns.gt-sm",""],["","gdAlignColumns.gt-md",""],["","gdAlignColumns.gt-lg",""]],inputs:{gdAlignColumns:"gdAlignColumns","gdAlignColumns.xs":"gdAlignColumns.xs","gdAlignColumns.sm":"gdAlignColumns.sm","gdAlignColumns.md":"gdAlignColumns.md","gdAlignColumns.lg":"gdAlignColumns.lg","gdAlignColumns.xl":"gdAlignColumns.xl","gdAlignColumns.lt-sm":"gdAlignColumns.lt-sm","gdAlignColumns.lt-md":"gdAlignColumns.lt-md","gdAlignColumns.lt-lg":"gdAlignColumns.lt-lg","gdAlignColumns.lt-xl":"gdAlignColumns.lt-xl","gdAlignColumns.gt-xs":"gdAlignColumns.gt-xs","gdAlignColumns.gt-sm":"gdAlignColumns.gt-sm","gdAlignColumns.gt-md":"gdAlignColumns.gt-md","gdAlignColumns.gt-lg":"gdAlignColumns.gt-lg"},features:[La]}),U1),Q2=Dn(J2),Z2=((K1=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e,t){return function(e,t){var n={},r=i(e.split(" "),2),o=r[0],a=r[1];switch(o){case"center":case"space-around":case"space-between":case"space-evenly":case"end":case"start":case"stretch":n["justify-content"]=o;break;default:n["justify-content"]="start"}switch(a){case"start":case"center":case"end":case"stretch":n["justify-items"]=a;break;default:n["justify-items"]="stretch"}return n.display=t?"inline-grid":"grid",n}(e||"start stretch",t.inline)}}]),n}(kV)).\u0275fac=function(e){return $2(e||K1)},K1.\u0275prov=Ce({factory:function(){return new K1},token:K1,providedIn:"root"}),K1),$2=Dn(Z2),e3=((V1=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n,r,o)).DIRECTIVE_KEY="grid-align-rows",a._inline=!1,a.init(),a}return w(i,[{key:"updateWithValue",value:function(e){this.styleCache=this.inline?i3:t3,this.addStyles(e,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=Xy(e)}}]),i}(ZK)).\u0275fac=function(e){return new(e||V1)(Va(nu),Va(Z2),Va(AV),Va(TV))},V1.\u0275dir=Pt({type:V1,inputs:{inline:["gdInline","inline"]},features:[La]}),V1),t3=new Map,i3=new Map,n3=["gdAlignRows","gdAlignRows.xs","gdAlignRows.sm","gdAlignRows.md","gdAlignRows.lg","gdAlignRows.xl","gdAlignRows.lt-sm","gdAlignRows.lt-md","gdAlignRows.lt-lg","gdAlignRows.lt-xl","gdAlignRows.gt-xs","gdAlignRows.gt-sm","gdAlignRows.gt-md","gdAlignRows.gt-lg"],r3=((G1=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=n3,e}return i}(e3)).\u0275fac=function(e){return o3(e||G1)},G1.\u0275dir=Pt({type:G1,selectors:[["","gdAlignRows",""],["","gdAlignRows.xs",""],["","gdAlignRows.sm",""],["","gdAlignRows.md",""],["","gdAlignRows.lg",""],["","gdAlignRows.xl",""],["","gdAlignRows.lt-sm",""],["","gdAlignRows.lt-md",""],["","gdAlignRows.lt-lg",""],["","gdAlignRows.lt-xl",""],["","gdAlignRows.gt-xs",""],["","gdAlignRows.gt-sm",""],["","gdAlignRows.gt-md",""],["","gdAlignRows.gt-lg",""]],inputs:{gdAlignRows:"gdAlignRows","gdAlignRows.xs":"gdAlignRows.xs","gdAlignRows.sm":"gdAlignRows.sm","gdAlignRows.md":"gdAlignRows.md","gdAlignRows.lg":"gdAlignRows.lg","gdAlignRows.xl":"gdAlignRows.xl","gdAlignRows.lt-sm":"gdAlignRows.lt-sm","gdAlignRows.lt-md":"gdAlignRows.lt-md","gdAlignRows.lt-lg":"gdAlignRows.lt-lg","gdAlignRows.lt-xl":"gdAlignRows.lt-xl","gdAlignRows.gt-xs":"gdAlignRows.gt-xs","gdAlignRows.gt-sm":"gdAlignRows.gt-sm","gdAlignRows.gt-md":"gdAlignRows.gt-md","gdAlignRows.gt-lg":"gdAlignRows.gt-lg"},features:[La]}),G1),o3=Dn(r3),a3=((X1=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){return{"grid-area":e||"auto"}}}]),i}(kV)).\u0275fac=function(e){return s3(e||X1)},X1.\u0275prov=Ce({factory:function(){return new X1},token:X1,providedIn:"root"}),X1),s3=Dn(a3),u3=((J1=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,r,n,o)).DIRECTIVE_KEY="grid-area",a.styleCache=c3,a.init(),a}return i}(ZK)).\u0275fac=function(e){return new(e||J1)(Va(nu),Va(AV),Va(a3),Va(TV))},J1.\u0275dir=Pt({type:J1,features:[La]}),J1),c3=new Map,l3=["gdArea","gdArea.xs","gdArea.sm","gdArea.md","gdArea.lg","gdArea.xl","gdArea.lt-sm","gdArea.lt-md","gdArea.lt-lg","gdArea.lt-xl","gdArea.gt-xs","gdArea.gt-sm","gdArea.gt-md","gdArea.gt-lg"],h3=((Q1=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=l3,e}return i}(u3)).\u0275fac=function(e){return d3(e||Q1)},Q1.\u0275dir=Pt({type:Q1,selectors:[["","gdArea",""],["","gdArea.xs",""],["","gdArea.sm",""],["","gdArea.md",""],["","gdArea.lg",""],["","gdArea.xl",""],["","gdArea.lt-sm",""],["","gdArea.lt-md",""],["","gdArea.lt-lg",""],["","gdArea.lt-xl",""],["","gdArea.gt-xs",""],["","gdArea.gt-sm",""],["","gdArea.gt-md",""],["","gdArea.gt-lg",""]],inputs:{gdArea:"gdArea","gdArea.xs":"gdArea.xs","gdArea.sm":"gdArea.sm","gdArea.md":"gdArea.md","gdArea.lg":"gdArea.lg","gdArea.xl":"gdArea.xl","gdArea.lt-sm":"gdArea.lt-sm","gdArea.lt-md":"gdArea.lt-md","gdArea.lt-lg":"gdArea.lt-lg","gdArea.lt-xl":"gdArea.lt-xl","gdArea.gt-xs":"gdArea.gt-xs","gdArea.gt-sm":"gdArea.gt-sm","gdArea.gt-md":"gdArea.gt-md","gdArea.gt-lg":"gdArea.gt-lg"},features:[La]}),Q1),d3=Dn(h3),f3=((Z1=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e,t){var i=(e||"none").split("|").map((function(e){return'"'.concat(e.trim(),'"')}));return{display:t.inline?"inline-grid":"grid","grid-template-areas":i.join(" ")}}}]),i}(kV)).\u0275fac=function(e){return p3(e||Z1)},Z1.\u0275prov=Ce({factory:function(){return new Z1},token:Z1,providedIn:"root"}),Z1),p3=Dn(f3),g3=(($1=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,r,n,o)).DIRECTIVE_KEY="grid-areas",a._inline=!1,a.init(),a}return w(i,[{key:"updateWithValue",value:function(e){this.styleCache=this.inline?v3:m3,this.addStyles(e,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=Xy(e)}}]),i}(ZK)).\u0275fac=function(e){return new(e||$1)(Va(nu),Va(AV),Va(f3),Va(TV))},$1.\u0275dir=Pt({type:$1,inputs:{inline:["gdInline","inline"]},features:[La]}),$1),m3=new Map,v3=new Map,y3=["gdAreas","gdAreas.xs","gdAreas.sm","gdAreas.md","gdAreas.lg","gdAreas.xl","gdAreas.lt-sm","gdAreas.lt-md","gdAreas.lt-lg","gdAreas.lt-xl","gdAreas.gt-xs","gdAreas.gt-sm","gdAreas.gt-md","gdAreas.gt-lg"],_3=((e2=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=y3,e}return i}(g3)).\u0275fac=function(e){return b3(e||e2)},e2.\u0275dir=Pt({type:e2,selectors:[["","gdAreas",""],["","gdAreas.xs",""],["","gdAreas.sm",""],["","gdAreas.md",""],["","gdAreas.lg",""],["","gdAreas.xl",""],["","gdAreas.lt-sm",""],["","gdAreas.lt-md",""],["","gdAreas.lt-lg",""],["","gdAreas.lt-xl",""],["","gdAreas.gt-xs",""],["","gdAreas.gt-sm",""],["","gdAreas.gt-md",""],["","gdAreas.gt-lg",""]],inputs:{gdAreas:"gdAreas","gdAreas.xs":"gdAreas.xs","gdAreas.sm":"gdAreas.sm","gdAreas.md":"gdAreas.md","gdAreas.lg":"gdAreas.lg","gdAreas.xl":"gdAreas.xl","gdAreas.lt-sm":"gdAreas.lt-sm","gdAreas.lt-md":"gdAreas.lt-md","gdAreas.lt-lg":"gdAreas.lt-lg","gdAreas.lt-xl":"gdAreas.lt-xl","gdAreas.gt-xs":"gdAreas.gt-xs","gdAreas.gt-sm":"gdAreas.gt-sm","gdAreas.gt-md":"gdAreas.gt-md","gdAreas.gt-lg":"gdAreas.gt-lg"},features:[La]}),e2),b3=Dn(_3),w3=((t2=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e,t){var n=i((e||"initial").split(" "),2),r=n[0],o=n[1];return"column"!==r&&"row"!==r&&"dense"!==r&&(r="row"),o="dense"===o&&"dense"!==r?" dense":"",{display:t.inline?"inline-grid":"grid","grid-auto-flow":r+o}}}]),n}(kV)).\u0275fac=function(e){return A3(e||t2)},t2.\u0275prov=Ce({factory:function(){return new t2},token:t2,providedIn:"root"}),t2),A3=Dn(w3),k3=((i2=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n,r,o))._inline=!1,a.DIRECTIVE_KEY="grid-auto",a.init(),a}return w(i,[{key:"updateWithValue",value:function(e){this.styleCache=this.inline?C3:M3,this.addStyles(e,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=Xy(e)}}]),i}(ZK)).\u0275fac=function(e){return new(e||i2)(Va(nu),Va(w3),Va(AV),Va(TV))},i2.\u0275dir=Pt({type:i2,inputs:{inline:["gdInline","inline"]},features:[La]}),i2),M3=new Map,C3=new Map,S3=["gdAuto","gdAuto.xs","gdAuto.sm","gdAuto.md","gdAuto.lg","gdAuto.xl","gdAuto.lt-sm","gdAuto.lt-md","gdAuto.lt-lg","gdAuto.lt-xl","gdAuto.gt-xs","gdAuto.gt-sm","gdAuto.gt-md","gdAuto.gt-lg"],T3=((n2=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=S3,e}return i}(k3)).\u0275fac=function(e){return E3(e||n2)},n2.\u0275dir=Pt({type:n2,selectors:[["","gdAuto",""],["","gdAuto.xs",""],["","gdAuto.sm",""],["","gdAuto.md",""],["","gdAuto.lg",""],["","gdAuto.xl",""],["","gdAuto.lt-sm",""],["","gdAuto.lt-md",""],["","gdAuto.lt-lg",""],["","gdAuto.lt-xl",""],["","gdAuto.gt-xs",""],["","gdAuto.gt-sm",""],["","gdAuto.gt-md",""],["","gdAuto.gt-lg",""]],inputs:{gdAuto:"gdAuto","gdAuto.xs":"gdAuto.xs","gdAuto.sm":"gdAuto.sm","gdAuto.md":"gdAuto.md","gdAuto.lg":"gdAuto.lg","gdAuto.xl":"gdAuto.xl","gdAuto.lt-sm":"gdAuto.lt-sm","gdAuto.lt-md":"gdAuto.lt-md","gdAuto.lt-lg":"gdAuto.lt-lg","gdAuto.lt-xl":"gdAuto.lt-xl","gdAuto.gt-xs":"gdAuto.gt-xs","gdAuto.gt-sm":"gdAuto.gt-sm","gdAuto.gt-md":"gdAuto.gt-md","gdAuto.gt-lg":"gdAuto.gt-lg"},features:[La]}),n2),E3=Dn(T3),L3=((r2=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){return{"grid-column":e||"auto"}}}]),i}(kV)).\u0275fac=function(e){return z3(e||r2)},r2.\u0275prov=Ce({factory:function(){return new r2},token:r2,providedIn:"root"}),r2),z3=Dn(L3),x3=((o2=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n,r,o)).DIRECTIVE_KEY="grid-column",a.styleCache=D3,a.init(),a}return i}(ZK)).\u0275fac=function(e){return new(e||o2)(Va(nu),Va(L3),Va(AV),Va(TV))},o2.\u0275dir=Pt({type:o2,features:[La]}),o2),D3=new Map,R3=["gdColumn","gdColumn.xs","gdColumn.sm","gdColumn.md","gdColumn.lg","gdColumn.xl","gdColumn.lt-sm","gdColumn.lt-md","gdColumn.lt-lg","gdColumn.lt-xl","gdColumn.gt-xs","gdColumn.gt-sm","gdColumn.gt-md","gdColumn.gt-lg"],O3=((a2=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=R3,e}return i}(x3)).\u0275fac=function(e){return P3(e||a2)},a2.\u0275dir=Pt({type:a2,selectors:[["","gdColumn",""],["","gdColumn.xs",""],["","gdColumn.sm",""],["","gdColumn.md",""],["","gdColumn.lg",""],["","gdColumn.xl",""],["","gdColumn.lt-sm",""],["","gdColumn.lt-md",""],["","gdColumn.lt-lg",""],["","gdColumn.lt-xl",""],["","gdColumn.gt-xs",""],["","gdColumn.gt-sm",""],["","gdColumn.gt-md",""],["","gdColumn.gt-lg",""]],inputs:{gdColumn:"gdColumn","gdColumn.xs":"gdColumn.xs","gdColumn.sm":"gdColumn.sm","gdColumn.md":"gdColumn.md","gdColumn.lg":"gdColumn.lg","gdColumn.xl":"gdColumn.xl","gdColumn.lt-sm":"gdColumn.lt-sm","gdColumn.lt-md":"gdColumn.lt-md","gdColumn.lt-lg":"gdColumn.lt-lg","gdColumn.lt-xl":"gdColumn.lt-xl","gdColumn.gt-xs":"gdColumn.gt-xs","gdColumn.gt-sm":"gdColumn.gt-sm","gdColumn.gt-md":"gdColumn.gt-md","gdColumn.gt-lg":"gdColumn.gt-lg"},features:[La]}),a2),P3=Dn(O3),I3=((s2=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e,t){var i=!1;(e=e||"none").endsWith("!")&&(e=e.substring(0,e.indexOf("!")),i=!0);var n={display:t.inline?"inline-grid":"grid","grid-auto-columns":"","grid-template-columns":""};return n[i?"grid-auto-columns":"grid-template-columns"]=e,n}}]),i}(kV)).\u0275fac=function(e){return N3(e||s2)},s2.\u0275prov=Ce({factory:function(){return new s2},token:s2,providedIn:"root"}),s2),N3=Dn(I3),F3=((u2=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n,r,o)).DIRECTIVE_KEY="grid-columns",a._inline=!1,a.init(),a}return w(i,[{key:"updateWithValue",value:function(e){this.styleCache=this.inline?H3:B3,this.addStyles(e,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=Xy(e)}}]),i}(ZK)).\u0275fac=function(e){return new(e||u2)(Va(nu),Va(I3),Va(AV),Va(TV))},u2.\u0275dir=Pt({type:u2,inputs:{inline:["gdInline","inline"]},features:[La]}),u2),B3=new Map,H3=new Map,q3=["gdColumns","gdColumns.xs","gdColumns.sm","gdColumns.md","gdColumns.lg","gdColumns.xl","gdColumns.lt-sm","gdColumns.lt-md","gdColumns.lt-lg","gdColumns.lt-xl","gdColumns.gt-xs","gdColumns.gt-sm","gdColumns.gt-md","gdColumns.gt-lg"],j3=((c2=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=q3,e}return i}(F3)).\u0275fac=function(e){return Y3(e||c2)},c2.\u0275dir=Pt({type:c2,selectors:[["","gdColumns",""],["","gdColumns.xs",""],["","gdColumns.sm",""],["","gdColumns.md",""],["","gdColumns.lg",""],["","gdColumns.xl",""],["","gdColumns.lt-sm",""],["","gdColumns.lt-md",""],["","gdColumns.lt-lg",""],["","gdColumns.lt-xl",""],["","gdColumns.gt-xs",""],["","gdColumns.gt-sm",""],["","gdColumns.gt-md",""],["","gdColumns.gt-lg",""]],inputs:{gdColumns:"gdColumns","gdColumns.xs":"gdColumns.xs","gdColumns.sm":"gdColumns.sm","gdColumns.md":"gdColumns.md","gdColumns.lg":"gdColumns.lg","gdColumns.xl":"gdColumns.xl","gdColumns.lt-sm":"gdColumns.lt-sm","gdColumns.lt-md":"gdColumns.lt-md","gdColumns.lt-lg":"gdColumns.lt-lg","gdColumns.lt-xl":"gdColumns.lt-xl","gdColumns.gt-xs":"gdColumns.gt-xs","gdColumns.gt-sm":"gdColumns.gt-sm","gdColumns.gt-md":"gdColumns.gt-md","gdColumns.gt-lg":"gdColumns.gt-lg"},features:[La]}),c2),Y3=Dn(j3),W3=((l2=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e,t){return{display:t.inline?"inline-grid":"grid","grid-gap":e||"0"}}}]),i}(kV)).\u0275fac=function(e){return U3(e||l2)},l2.\u0275prov=Ce({factory:function(){return new l2},token:l2,providedIn:"root"}),l2),U3=Dn(W3),K3=((h2=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,r,n,o)).DIRECTIVE_KEY="grid-gap",a._inline=!1,a.init(),a}return w(i,[{key:"updateWithValue",value:function(e){this.styleCache=this.inline?G3:V3,this.addStyles(e,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=Xy(e)}}]),i}(ZK)).\u0275fac=function(e){return new(e||h2)(Va(nu),Va(AV),Va(W3),Va(TV))},h2.\u0275dir=Pt({type:h2,inputs:{inline:["gdInline","inline"]},features:[La]}),h2),V3=new Map,G3=new Map,X3=["gdGap","gdGap.xs","gdGap.sm","gdGap.md","gdGap.lg","gdGap.xl","gdGap.lt-sm","gdGap.lt-md","gdGap.lt-lg","gdGap.lt-xl","gdGap.gt-xs","gdGap.gt-sm","gdGap.gt-md","gdGap.gt-lg"],J3=((d2=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=X3,e}return i}(K3)).\u0275fac=function(e){return Q3(e||d2)},d2.\u0275dir=Pt({type:d2,selectors:[["","gdGap",""],["","gdGap.xs",""],["","gdGap.sm",""],["","gdGap.md",""],["","gdGap.lg",""],["","gdGap.xl",""],["","gdGap.lt-sm",""],["","gdGap.lt-md",""],["","gdGap.lt-lg",""],["","gdGap.lt-xl",""],["","gdGap.gt-xs",""],["","gdGap.gt-sm",""],["","gdGap.gt-md",""],["","gdGap.gt-lg",""]],inputs:{gdGap:"gdGap","gdGap.xs":"gdGap.xs","gdGap.sm":"gdGap.sm","gdGap.md":"gdGap.md","gdGap.lg":"gdGap.lg","gdGap.xl":"gdGap.xl","gdGap.lt-sm":"gdGap.lt-sm","gdGap.lt-md":"gdGap.lt-md","gdGap.lt-lg":"gdGap.lt-lg","gdGap.lt-xl":"gdGap.lt-xl","gdGap.gt-xs":"gdGap.gt-xs","gdGap.gt-sm":"gdGap.gt-sm","gdGap.gt-md":"gdGap.gt-md","gdGap.gt-lg":"gdGap.gt-lg"},features:[La]}),d2),Q3=Dn(J3),Z3=((f2=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){return{"grid-row":e||"auto"}}}]),i}(kV)).\u0275fac=function(e){return $3(e||f2)},f2.\u0275prov=Ce({factory:function(){return new f2},token:f2,providedIn:"root"}),f2),$3=Dn(Z3),e4=((p2=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n,r,o)).DIRECTIVE_KEY="grid-row",a.styleCache=t4,a.init(),a}return i}(ZK)).\u0275fac=function(e){return new(e||p2)(Va(nu),Va(Z3),Va(AV),Va(TV))},p2.\u0275dir=Pt({type:p2,features:[La]}),p2),t4=new Map,i4=["gdRow","gdRow.xs","gdRow.sm","gdRow.md","gdRow.lg","gdRow.xl","gdRow.lt-sm","gdRow.lt-md","gdRow.lt-lg","gdRow.lt-xl","gdRow.gt-xs","gdRow.gt-sm","gdRow.gt-md","gdRow.gt-lg"],n4=((g2=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=i4,e}return i}(e4)).\u0275fac=function(e){return r4(e||g2)},g2.\u0275dir=Pt({type:g2,selectors:[["","gdRow",""],["","gdRow.xs",""],["","gdRow.sm",""],["","gdRow.md",""],["","gdRow.lg",""],["","gdRow.xl",""],["","gdRow.lt-sm",""],["","gdRow.lt-md",""],["","gdRow.lt-lg",""],["","gdRow.lt-xl",""],["","gdRow.gt-xs",""],["","gdRow.gt-sm",""],["","gdRow.gt-md",""],["","gdRow.gt-lg",""]],inputs:{gdRow:"gdRow","gdRow.xs":"gdRow.xs","gdRow.sm":"gdRow.sm","gdRow.md":"gdRow.md","gdRow.lg":"gdRow.lg","gdRow.xl":"gdRow.xl","gdRow.lt-sm":"gdRow.lt-sm","gdRow.lt-md":"gdRow.lt-md","gdRow.lt-lg":"gdRow.lt-lg","gdRow.lt-xl":"gdRow.lt-xl","gdRow.gt-xs":"gdRow.gt-xs","gdRow.gt-sm":"gdRow.gt-sm","gdRow.gt-md":"gdRow.gt-md","gdRow.gt-lg":"gdRow.gt-lg"},features:[La]}),g2),r4=Dn(n4),o4=((m2=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e,t){var i=!1;(e=e||"none").endsWith("!")&&(e=e.substring(0,e.indexOf("!")),i=!0);var n={display:t.inline?"inline-grid":"grid","grid-auto-rows":"","grid-template-rows":""};return n[i?"grid-auto-rows":"grid-template-rows"]=e,n}}]),i}(kV)).\u0275fac=function(e){return a4(e||m2)},m2.\u0275prov=Ce({factory:function(){return new m2},token:m2,providedIn:"root"}),m2),a4=Dn(o4),s4=((v2=function(e){d(i,e);var t=p(i);function i(e,n,r,o){var a;return _(this,i),(a=t.call(this,e,n,r,o)).DIRECTIVE_KEY="grid-rows",a._inline=!1,a.init(),a}return w(i,[{key:"updateWithValue",value:function(e){this.styleCache=this.inline?c4:u4,this.addStyles(e,{inline:this.inline})}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=Xy(e)}}]),i}(ZK)).\u0275fac=function(e){return new(e||v2)(Va(nu),Va(o4),Va(AV),Va(TV))},v2.\u0275dir=Pt({type:v2,inputs:{inline:["gdInline","inline"]},features:[La]}),v2),u4=new Map,c4=new Map,l4=["gdRows","gdRows.xs","gdRows.sm","gdRows.md","gdRows.lg","gdRows.xl","gdRows.lt-sm","gdRows.lt-md","gdRows.lt-lg","gdRows.lt-xl","gdRows.gt-xs","gdRows.gt-sm","gdRows.gt-md","gdRows.gt-lg"],h4=((y2=function(e){d(i,e);var t=p(i);function i(){var e;return _(this,i),(e=t.apply(this,arguments)).inputs=l4,e}return i}(s4)).\u0275fac=function(e){return d4(e||y2)},y2.\u0275dir=Pt({type:y2,selectors:[["","gdRows",""],["","gdRows.xs",""],["","gdRows.sm",""],["","gdRows.md",""],["","gdRows.lg",""],["","gdRows.xl",""],["","gdRows.lt-sm",""],["","gdRows.lt-md",""],["","gdRows.lt-lg",""],["","gdRows.lt-xl",""],["","gdRows.gt-xs",""],["","gdRows.gt-sm",""],["","gdRows.gt-md",""],["","gdRows.gt-lg",""]],inputs:{gdRows:"gdRows","gdRows.xs":"gdRows.xs","gdRows.sm":"gdRows.sm","gdRows.md":"gdRows.md","gdRows.lg":"gdRows.lg","gdRows.xl":"gdRows.xl","gdRows.lt-sm":"gdRows.lt-sm","gdRows.lt-md":"gdRows.lt-md","gdRows.lt-lg":"gdRows.lt-lg","gdRows.lt-xl":"gdRows.lt-xl","gdRows.gt-xs":"gdRows.gt-xs","gdRows.gt-sm":"gdRows.gt-sm","gdRows.gt-md":"gdRows.gt-md","gdRows.gt-lg":"gdRows.gt-lg"},features:[La]}),y2),d4=Dn(h4),f4=((b2=function e(){_(this,e)}).\u0275mod=Rt({type:b2}),b2.\u0275inj=Se({factory:function(e){return new(e||b2)},imports:[[qK]]}),b2),p4=((_2=function(){function e(t,i){_(this,e),Vd(i)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return w(e,null,[{key:"withConfig",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:UK,useValue:Object.assign(Object.assign({},WK),t)},{provide:VK,useValue:i,multi:!0},{provide:KK,useValue:!0}]:[{provide:UK,useValue:Object.assign(Object.assign({},WK),t)},{provide:VK,useValue:i,multi:!0}]}}}]),e}()).\u0275mod=Rt({type:_2}),_2.\u0275inj=Se({factory:function(e){return new(e||_2)(ct(KK),ct(Oc))},imports:[[wX,q0,f4],wX,q0,f4]}),_2),g4=["*",[["mat-card-footer"]]],m4=["*","mat-card-footer"],v4=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],y4=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],_4=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],b4=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],w4=((P2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||P2)},P2.\u0275dir=Pt({type:P2,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),P2),A4=((O2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||O2)},O2.\u0275dir=Pt({type:O2,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),O2),k4=((R2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||R2)},R2.\u0275dir=Pt({type:R2,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),R2),M4=((D2=function e(){_(this,e),this.align="start"}).\u0275fac=function(e){return new(e||D2)},D2.\u0275dir=Pt({type:D2,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&Ss("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),D2),C4=((x2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||x2)},x2.\u0275dir=Pt({type:x2,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),x2),S4=((z2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||z2)},z2.\u0275dir=Pt({type:z2,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),z2),T4=((L2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||L2)},L2.\u0275dir=Pt({type:L2,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),L2),E4=((E2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||E2)},E2.\u0275dir=Pt({type:E2,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),E2),L4=((T2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||T2)},T2.\u0275dir=Pt({type:T2,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),T2),z4=((S2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||S2)},S2.\u0275dir=Pt({type:S2,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),S2),x4=((C2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||C2)},C2.\u0275dir=Pt({type:C2,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),C2),D4=((M2=function e(t){_(this,e),this._animationMode=t}).\u0275fac=function(e){return new(e||M2)(Va(iC,8))},M2.\u0275cmp=Lt({type:M2,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&Ss("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:m4,decls:2,vars:0,template:function(e,t){1&e&&(fs(g4),ps(0),ps(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),M2),R4=((k2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||k2)},k2.\u0275cmp=Lt({type:k2,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:y4,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(fs(v4),ps(0),Qa(1,"div",0),ps(2,1),Za(),ps(3,2))},encapsulation:2,changeDetection:0}),k2),O4=((A2=function e(){_(this,e)}).\u0275fac=function(e){return new(e||A2)},A2.\u0275cmp=Lt({type:A2,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:b4,decls:4,vars:0,template:function(e,t){1&e&&(fs(_4),Qa(0,"div"),ps(1),Za(),ps(2,1),ps(3,2))},encapsulation:2,changeDetection:0}),A2),P4=((w2=function e(){_(this,e)}).\u0275mod=Rt({type:w2}),w2.\u0275inj=Se({factory:function(e){return new(e||w2)},imports:[[pC],pC]}),w2);xA("openClose",[IA("open",PA({overflow:"hidden"})),IA("closed",PA({height:"0px",overflow:"hidden"})),FA("open <=> closed",[DA(".3s ease-in")])]);var I4=xA("flyInOut",[FA(":enter",[PA({transform:"translateX(100%)"}),DA(".25s")]),FA(":leave",[DA(".5s",PA({transform:"translateX(100%)"}))])]);function N4(e,t){if(1&e){var i=ns();Qa(0,"div"),Qa(1,"perun-web-apps-notification",2),as("closeNotification",(function(){_i(i);var e=t.index;return hs().removeNotification(e)})),Za(),Za()}if(2&e){var n=t.$implicit;Xa("@flyInOut",void 0),Br(1),Xa("data",n)("newNotification",!0)}}xA("rollInOut",[FA(":enter",[PA({height:"0px"}),DA(".25s")]),FA(":leave",[DA(".25s",PA({height:"0px"}))])]),xA("routeAnimations",[FA("* => *",[PA({position:"relative"}),HA(":enter",[PA({width:"100%",opacity:0})],{optional:!0}),HA(":leave",[PA({position:"absolute",width:"100%",opacity:1}),DA("0.15s",PA({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),HA(":enter",[PA({position:"absolute",width:"100%",opacity:0}),DA("0.15s",PA({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),xA("tagsOpenClose",[IA("open",PA({})),IA("closed",PA({width:"0px",height:"0px"})),FA("open <=> closed",[DA(".3s ease-in")])]),xA("switchAnimations",[FA("true => false",[HA(":enter, :leave",PA({})),RA([HA(":enter",[PA({transform:"translateX(-100%)"}),DA("1s ease-in-out",PA({transform:"translateX(0%)"}))],{optional:!0}),HA(":leave",[PA({transform:"translateX(0%)",position:"absolute"}),DA("1s ease-in-out",PA({transform:"translateX(100%)"}))],{optional:!0})])]),FA("false => true",[HA(":enter, :leave",PA({})),RA([HA(":enter",[PA({transform:"translateX(100%)"}),DA("1s ease-in-out",PA({transform:"translateX(0%)"}))],{optional:!0}),HA(":leave",[PA({transform:"translateX(0%)",position:"absolute"}),DA("1s ease-in-out",PA({transform:"translateX(-100%)"}))],{optional:!0})])])]),xA("slideInOutLeft",[FA(":enter",[PA({transform:"translateX(-100%)",position:"relative"}),DA("0.5s ease-in",PA({transform:"translateX(0%)"}))]),FA(":leave",[DA("0.5s ease-in",PA({transform:"translateX(-100%)"}))])]),xA("slideInOutRight",[FA(":enter",[PA({transform:"translateX(100%)",position:"fixed"}),DA("0.5s ease-in",PA({transform:"translateX(0%)"}))]),FA(":leave",[PA({transform:"translateX(-100%)",position:"relative"}),DA("0.5s ease-in",PA({transform:"translateX(100%)"}))])]);var F4,B4=function(e){return{top:e}},H4=((F4=function(){function e(t){var i=this;_(this,e),this.notificator=t,this.mobileView=!1,this.notifications=[],this.notificator.addNotification.subscribe((function(e){i.processNotification(e)})),this.getScreenSize()}return w(e,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=YE.minWidth}},{key:"processNotification",value:function(e){this.notifications.push(e)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":"64px"}},{key:"removeNotification",value:function(e){this.notifications.splice(e,1)}}]),e}()).\u0275fac=function(e){return new(e||F4)(Va(DE))},F4.\u0275cmp=Lt({type:F4,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&as("resize",(function(e){return t.getScreenSize(e)}),!1,dn)},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(Qa(0,"div",0),Ua(1,N4,2,3,"div",1),Za()),2&e&&(Xa("ngStyle",Vu(2,B4,t.getNotificatorTop())),Br(1),Xa("ngForOf",t.notifications))},directives:[sd,I0,Yh,PQ],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[I4]}}),F4),q4=new et("perun-api-service");function j4(e,t){if(1&e&&(Qa(0,"span",1),Qa(1,"a",2),Bs(2),Za(),Za()),2&e){var i=t.$implicit;Br(1),Xa("routerLink",i.routerLink),Br(1),Hs(i.label)}}var Y4,W4,U4,K4,V4,G4=((Y4=function(){function e(t,i,n){_(this,e),this.router=t,this.activatedRoute=i,this.translate=n,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.router.events.pipe(jf((function(e){return e instanceof $g}))).subscribe((function(){e.menuItems=[],e.createBreadcrumbs(e.activatedRoute.root)}))}},{key:"createBreadcrumbs",value:function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.children;0!==r.length&&r.forEach((function(t){var r=t.snapshot.url.map((function(e){return e.path})).join("/");""!==r&&(n+="/"+r);var o=i.translate.instant(t.snapshot.data[e.ROUTE_DATA_BREADCRUMB]);return!o||i.menuItems[i.menuItems.length-1]&&o===i.menuItems[i.menuItems.length-1].label||i.menuItems.push({label:o,routerLink:n}),i.createBreadcrumbs(t,n)}))}}]),e}()).ROUTE_DATA_BREADCRUMB="breadcrumb",Y4.\u0275fac=function(e){return new(e||Y4)(Va(my),Va(Zm),Va(qT))},Y4.\u0275cmp=Lt({type:Y4,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&&Ua(0,j4,3,2,"span",0),2&e&&Xa("ngForOf",t.menuItems)},directives:[Yh,yy],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}']}),Y4),X4=["thumbContainer"],J4=["toggleBar"],Q4=["input"],Z4=function(){return{enterDuration:150}},$4=["*"],e5=new et("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),t5=0,i5={provide:Fx,useExisting:Fe((function(){return o5})),multi:!0},n5=function e(t,i){_(this,e),this.source=t,this.checked=i},r5=yC(mC(vC(gC((function e(t){_(this,e),this._elementRef=t}))),"accent")),o5=((W4=function(e){d(i,e);var t=p(i);function i(e,n,r,o,a,s,u,c){var l;return _(this,i),(l=t.call(this,e))._focusMonitor=n,l._changeDetectorRef=r,l.defaults=s,l._animationMode=u,l._onChange=function(e){},l._onTouched=function(){},l._uniqueId="mat-slide-toggle-"+ ++t5,l._required=!1,l._checked=!1,l.name=null,l.id=l._uniqueId,l.labelPosition="after",l.ariaLabel=null,l.ariaLabelledby=null,l.change=new rc,l.toggleChange=new rc,l.dragChange=new rc,l.tabIndex=parseInt(o)||0,l}return w(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){"keyboard"===t||"program"===t?e._inputElement.nativeElement.focus():t||Promise.resolve().then((function(){return e._onTouched()}))}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new n5(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Xy(e)}},{key:"checked",get:function(){return this._checked},set:function(e){this._checked=Xy(e),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return(this.id||this._uniqueId)+"-input"}}]),i}(r5)).\u0275fac=function(e){return new(e||W4)(Va(nu),Va(wA),Va(ua),Ga("tabindex"),Va(Xc),Va(e5),Va(iC,8),Va(ob,8))},W4.\u0275cmp=Lt({type:W4,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){var i;1&e&&(vc(X4,!0),vc(J4,!0),vc(Q4,!0)),2&e&&(gc(i=Ac())&&(t._thumbEl=i.first),gc(i=Ac())&&(t._thumbBarEl=i.first),gc(i=Ac())&&(t._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(Ws("id",t.id),ja("tabindex",t.disabled?null:-1)("aria-label",null)("aria-labelledby",null),Ss("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[$s([i5]),La],ngContentSelectors:$4,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(fs(),Qa(0,"label",0,1),Qa(2,"div",2,3),Qa(4,"input",4,5),as("change",(function(e){return t._onChangeEvent(e)}))("click",(function(e){return t._onInputClick(e)})),Za(),Qa(6,"div",6,7),$a(8,"div",8),Qa(9,"div",9),$a(10,"div",10),Za(),Za(),Za(),Qa(11,"span",11,12),as("cdkObserveContent",(function(){return t._onLabelTextChange()})),Qa(13,"span",13),Bs(14,"\xa0"),Za(),ps(15),Za(),Za()),2&e){var i=Ka(1),n=Ka(12);ja("for",t.inputId),Br(2),Ss("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),Br(2),Xa("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),ja("name",t.name)("aria-checked",t.checked.toString())("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby),Br(5),Xa("matRippleTrigger",i)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Ku(17,Z4))}},directives:[$C,Uw],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),W4),a5={provide:$x,useExisting:Fe((function(){return s5})),multi:!0},s5=((U4=function(e){d(i,e);var t=p(i);function i(){return _(this,i),t.apply(this,arguments)}return i}(QR)).\u0275fac=function(e){return u5(e||U4)},U4.\u0275dir=Pt({type:U4,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[$s([a5]),La]}),U4),u5=Dn(s5),c5=((V4=function e(){_(this,e)}).\u0275mod=Rt({type:V4}),V4.\u0275inj=Se({factory:function(e){return new(e||V4)}}),V4),l5=((K4=function e(){_(this,e)}).\u0275mod=Rt({type:K4}),K4.\u0275inj=Se({factory:function(e){return new(e||K4)},imports:[[c5,eS,pC,Kw],c5,pC]}),K4),h5=function(e){return{color:e}};function d5(e,t){if(1&e&&(Qa(0,"a",12),Bs(1),Za()),2&e){var i=hs().$implicit,n=hs(3);Xa("href",i.link,br)("ngStyle",Vu(3,h5,n.linksTextColor)),Br(1),Hs("en"===n.getLanguage()?i.label_en:i.label_cz)}}function f5(e,t){if(1&e&&(Qa(0,"p",13),Bs(1),Za()),2&e){var i=hs().$implicit,n=hs(3);Xa("ngStyle",Vu(2,h5,n.linksTextColor)),Br(1),Hs("en"===n.getLanguage()?i.label_en:i.label_cz)}}function p5(e,t){if(1&e&&(Qa(0,"div",9),Ua(1,d5,2,5,"a",10),Ua(2,f5,2,4,"p",11),Za()),2&e){var i=t.$implicit;Br(1),Xa("ngIf",i.link),Br(1),Xa("ngIf",!i.link)}}function g5(e,t){if(1&e&&(Qa(0,"div"),Ua(1,p5,3,2,"div",8),Za()),2&e){var i=hs().$implicit;Br(1),Xa("ngForOf",i.elements)}}function m5(e,t){if(1&e&&(Qa(0,"div",5),Qa(1,"h5",6),Bs(2),Za(),Ua(3,g5,2,1,"div",7),Za()),2&e){var i=t.$implicit,n=hs();Br(1),Xa("ngStyle",Vu(3,h5,n.headersTextColor)),Br(1),qs(" ","en"===n.getLanguage()?i.title_en:i.title_cz," "),Br(1),Xa("ngIf",i.elements)}}function v5(e,t){if(1&e&&(Qa(0,"span"),Bs(1),Qa(2,"a",14),Bs(3),Za(),Za()),2&e){var i=t.$implicit,n=t.index,r=hs();Br(1),qs(" ",n?",":"\xa0",""),Br(1),Xa("href",i.url,br)("ngStyle",Vu(4,h5,r.linksTextColor)),Br(1),Hs(i.name)}}var y5,_5=function(e){return{background:e}},b5=((y5=function(){function e(t,i){_(this,e),this.storeService=t,this.translateService=i,this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color")}return w(e,[{key:"ngOnInit",value:function(){this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items")}},{key:"getLanguage",value:function(){return this.translateService.currentLang}}]),e}()).\u0275fac=function(e){return new(e||y5)(Va(Gy),Va(qT))},y5.\u0275cmp=Lt({type:y5,selectors:[["perun-web-apps-footer-user-profile"]],decls:6,vars:9,consts:[[1,"wrap-content",3,"ngStyle"],["fxLayout","row","fxLayoutAlign","space-evenly none"],["fxLayout","column","fxLayoutAlign","none left",4,"ngFor","ngForOf"],["fxLayoutAlign","center",3,"ngStyle"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","none left"],[1,"ml-1",3,"ngStyle"],[4,"ngIf"],["class","ml-1",4,"ngFor","ngForOf"],[1,"ml-1"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[3,"ngStyle",4,"ngIf"],["target","_blank",3,"href","ngStyle"],[3,"ngStyle"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"]],template:function(e,t){1&e&&(Qa(0,"footer",0),Qa(1,"div",1),Ua(2,m5,4,5,"div",2),Za(),Qa(3,"div",3),Bs(4),Ua(5,v5,4,6,"span",4),Za(),Za()),2&e&&(Xa("ngStyle",Vu(5,_5,t.bgColor)),Br(2),Xa("ngForOf",t.items),Br(1),Xa("ngStyle",Vu(7,h5,t.linksTextColor)),Br(1),qs(" \xa9 ",t.currentYear," Copyright: "),Br(1),Xa("ngForOf",t.copyrightItems))},directives:[sd,I0,YV,hX,Yh,Uh],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.wrap-content[_ngcontent-%COMP%]{padding-top:15px;padding-bottom:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),y5);function w5(e,t){1&e&&$a(0,"th",18)}function A5(e,t){if(1&e){var i=ns();Qa(0,"td",19),Qa(1,"mat-checkbox",20),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.selection.toggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function k5(e,t){1&e&&(Qa(0,"th",21),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function M5(e,t){if(1&e&&(Qa(0,"td",19),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.id)}}function C5(e,t){1&e&&$a(0,"th",18)}function S5(e,t){if(1&e&&(Qa(0,"td",22),$a(1,"perun-web-apps-recently-viewed-icon",23),Za()),2&e){var i=t.$implicit,n=hs();Br(1),Xa("recentIds",n.recentIds)("id",i.id)}}function T5(e,t){1&e&&(Qa(0,"th",21),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function E5(e,t){if(1&e&&(Qa(0,"td",22),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.shortName)}}function L5(e,t){1&e&&(Qa(0,"th",21),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function z5(e,t){if(1&e&&(Qa(0,"td",22),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.name)}}function x5(e,t){1&e&&$a(0,"tr",24)}var D5=function(e){return["/organizations",e]};function R5(e,t){if(1&e&&$a(0,"tr",25),2&e){var i=t.$implicit,n=hs();Ss("disable-outline",n.disableRouting),Xa("routerLink",n.disableRouting?null:Vu(4,D5,i.id))("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:Vu(6,D5,i.id))}}function O5(e,t){1&e&&(Qa(0,"app-alert",26),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function P5(e,t){1&e&&(Qa(0,"app-alert",26),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}var I5,N5,F5,B5=((N5=function(){function e(t){_(this,e),this.authResolver=t,this.vos=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.pageSizeOptions=YS,this.page=new rc}return w(e,[{key:"ngOnChanges",value:function(e){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"id"!==e}))),this.dataSource=new jz(this.vos),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"getDataForColumn",value:function(e,t,i){switch(t){case"id":return e.id.toString();case"shortName":return e.shortName;case"name":return e.name;case"recent":return i.recentIds&&i.recentIds.indexOf(e.id)>-1?"#".repeat(i.recentIds.indexOf(e.id)):e.name;default:return e[t]}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getDataForColumn,e)},this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1)}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}}]),e}()).\u0275fac=function(e){return new(e||N5)(Va(ag))},N5.\u0275cmp=Lt({type:N5,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(e,t){var i;1&e&&(mc(Rq,!0),vc(kq,!0)),2&e&&(gc(i=Ac())&&(t.matSort=i.first),gc(i=Ac())&&(t.paginator=i.first))},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[Gt],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,w5,1,0,"th",6),Ua(7,A5,2,2,"td",7),ts(),es(8,8),Ua(9,k5,3,3,"th",9),Ua(10,M5,2,1,"td",7),ts(),es(11,10),Ua(12,C5,1,0,"th",6),Ua(13,S5,2,2,"td",11),ts(),es(14,12),Ua(15,T5,3,3,"th",9),Ua(16,E5,2,1,"td",11),ts(),es(17,13),Ua(18,L5,3,3,"th",9),Ua(19,z5,2,1,"td",11),ts(),Ua(20,x5,1,0,"tr",14),Ua(21,R5,1,8,"tr",15),Za(),Za(),Qa(22,"mat-paginator",16),as("page",(function(e){return t.page.emit(e)})),Za(),Za(),Za(),Ua(23,O5,3,3,"app-alert",17),Ua(24,P5,3,3,"app-alert",17)),2&e&&(Xa("hidden",0===t.dataSource.filteredData.length||0===t.vos.length),Br(4),Xa("dataSource",t.dataSource),Br(16),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.vos.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",0===t.dataSource.filteredData.length&&0!==t.vos.length),Br(1),Xa("ngIf",0===t.vos.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,Sz,ZF,Hq,PW,Rz,Nz,vy,Ej,IN],pipes:[YT],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),N5),H5=((I5=function(){function e(){_(this,e),this.refresh=new rc}return w(e,[{key:"onClickbutton",value:function(e){this.refresh.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||I5)},I5.\u0275cmp=Lt({type:I5,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(Qa(0,"button",0),as("click",(function(e){return t.onClickbutton(e)})),Zu(1,"translate"),$a(2,"mat-icon",1),Za()),2&e&&(gs("matTooltip",$u(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),Xa("disabled",t.disabled),Br(2),gs("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[JT,aF,LE],pipes:[YT],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),I5),q5=function(e){return{color:e}},j5=((F5=function(){function e(t,i){_(this,e),this.location=t,this.storeService=i}return w(e,[{key:"ngOnInit",value:function(){this.backButtonColor=this.storeService.get("theme","backButtonColor")}},{key:"goBack",value:function(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}]),e}()).\u0275fac=function(e){return new(e||F5)(Va(Vl),Va(Gy))},F5.\u0275cmp=Lt({type:F5,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(e,t){1&e&&(Qa(0,"button",0),as("click",(function(){return t.goBack()})),Zu(1,"translate"),Qa(2,"mat-icon",1),Bs(3,"arrow_right_alt"),Za(),Za()),2&e&&(gs("matTooltip",$u(1,2,"Back")),Xa("ngStyle",Vu(4,q5,t.backButtonColor)))},directives:[JT,sd,aF,LE],pipes:[YT],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),F5);function Y5(e,t){if(1&e&&(Qa(0,"div",3),Qa(1,"a",4),$a(2,"mat-icon",5),Bs(3),Zu(4,"translate"),Za(),Za()),2&e){var i=t.$implicit;Br(1),Ys("",i.style," item-itself"),Xa("routerLink",i.url),Br(1),Xa("svgIcon",i.cssIcon),Br(1),qs(" ",$u(4,6,i.label)," ")}}function W5(e,t){if(1&e&&(Qa(0,"div",1),Ua(1,Y5,5,8,"div",2),Za()),2&e){var i=hs();Br(1),Xa("ngForOf",i.items)}}var U5,K5=((U5=function(){function e(t,i){_(this,e),this.dialog=t,this.route=i,this.size="large"}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe((function(t){e.voId=t.voId}))}}]),e}()).\u0275fac=function(e){return new(e||U5)(Va(RS),Va(Zm))},U5.\u0275cmp=Lt({type:U5,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,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&Ua(0,W5,2,1,"div",0),2&e&&Xa("ngIf","small"===t.size)},directives:[Uh,Yh,$C,yy,LE],pipes:[YT],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}}"]}),U5);function V5(e,t){if(1&e){var i=ns();Qa(0,"th",19),Qa(1,"mat-checkbox",20),as("change",(function(e){_i(i);var t=hs();return e&&t.masterToggle(),t.selectionChange.emit()})),Za(),Za()}if(2&e){var n=hs();Br(1),Xa("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())("aria-label",n.checkboxLabel())}}function G5(e,t){if(1&e){var i=ns();Qa(0,"td",21),Qa(1,"mat-checkbox",22),as("click",(function(e){return _i(i),e.stopPropagation()}))("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e&&r.selection.toggle(n),r.selectionChange.emit()})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("checked",r.selection.isSelected(n))("aria-label",r.checkboxLabel(n))}}function X5(e,t){1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function J5(e,t){if(1&e&&(Qa(0,"div"),Bs(1),Za()),2&e){var i=hs().$implicit;Br(1),Hs(i.task.id)}}function Q5(e,t){1&e&&(Qa(0,"div"),Bs(1,"0"),Za())}function Z5(e,t){if(1&e&&(Qa(0,"td",21),Ua(1,J5,2,1,"div",24),Ua(2,Q5,2,0,"div",24),Za()),2&e){var i=t.$implicit;Br(1),Xa("ngIf",i.task),Br(1),Xa("ngIf",!i.task)}}function $5(e,t){1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function e6(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.service.name)}}function t6(e,t){1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function i6(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.status)}}function n6(e,t){1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function r6(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Zu(2,"serviceStateBlockedToString"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i))}}function o6(e,t){1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function a6(e,t){if(1&e&&(Qa(0,"div"),Bs(1),Zu(2,"date"),Za()),2&e){var i=hs().$implicit;Br(1),Hs(ec(2,1,i.task.startTime,"d.M.y H:mm:ss"))}}function s6(e,t){1&e&&(Qa(0,"div"),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function u6(e,t){if(1&e&&(Qa(0,"td",25),Ua(1,a6,3,4,"div",24),Ua(2,s6,3,3,"div",24),Za()),2&e){var i=t.$implicit;Br(1),Xa("ngIf",i.task&&i.task.startTime),Br(1),Xa("ngIf",!i.task||!i.task.startTime)}}function c6(e,t){1&e&&(Qa(0,"th",23),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function l6(e,t){if(1&e&&(Qa(0,"div"),Bs(1),Zu(2,"date"),Za()),2&e){var i=hs().$implicit;Br(1),Hs(ec(2,1,i.task.endTime,"d.M.y H:mm:ss"))}}function h6(e,t){1&e&&(Qa(0,"div"),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function d6(e,t){if(1&e&&(Qa(0,"td",25),Ua(1,l6,3,4,"div",24),Ua(2,h6,3,3,"div",24),Za()),2&e){var i=t.$implicit;Br(1),Xa("ngIf",i.task&&i.task.endTime),Br(1),Xa("ngIf",!i.task||!i.task.endTime)}}function f6(e,t){1&e&&$a(0,"tr",26)}var p6=function(e,t){return["/facilities",e,"services-status",t]};function g6(e,t){if(1&e&&$a(0,"tr",27),2&e){var i=t.$implicit,n=hs();Ss("disable-outline",n.disableRouting||!i.task)("make-yellow","WARNING"===i.status)("make-green","DONE"===i.status)("make-red","GENERROR"===i.status||"SENDERROR"===i.status||"ERROR"===i.status)("cursor-pointer",!n.disableRouting&&null!==i.task),Xa("routerLink",n.disableRouting||null===i.task?null:Gu(12,p6,i.facility.id,i.taskId))("perunWebAppsMiddleClickRouterLink",n.disableRouting||null===i.task?null:Gu(15,p6,i.facility.id,i.taskId))}}function m6(e,t){1&e&&(Qa(0,"app-alert",28),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function v6(e,t){1&e&&(Qa(0,"app-alert",28),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}var y6,_6,b6,w6=((b6=function(){function e(t,i){_(this,e),this.authResolver=t,this.tableCheckbox=i,this.servicesStatus=[],this.hideColumns=[],this.selection=new db(!0,[]),this.pageSize=10,this.disableRouting=!0,this.page=new rc,this.selectionChange=new rc,this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.pageSizeOptions=YS}return w(e,[{key:"ngOnChanges",value:function(e){var t=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"task.id"!==e}))),this.displayedColumns=this.displayedColumns.filter((function(e){return!t.hideColumns.includes(e)})),this.dataSource=new jz(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=function(e,t){var i=t.trim().toLowerCase();return function e(t){var i="";return Object.values(t).forEach((function(t){"object"!=typeof t?i=i+" "+t:null!==t&&(i=i+" "+e(t))})),i.trim().toLowerCase()}(e).includes(i)},this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?vh(e.task.startTime,"d.M.y H:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?vh(e.task.endTime,"d.M.y H:mm:ss","en"):e[t];default:return e[t]}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?vh(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?vh(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];default:return e[t]}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getSortDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.service.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"matPaginator",set:function(e){this.paginator=e}}]),e}()).\u0275fac=function(e){return new(e||b6)(Va(ag),Va(FE))},b6.\u0275cmp=Lt({type:b6,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,t){var i;1&e&&(mc(Rq,!0),mc(kq,!0)),2&e&&(gc(i=Ac())&&(t.matSort=i.first),gc(i=Ac())&&(t.matPaginator=i.first))},inputs:{servicesStatus:"servicesStatus",hideColumns:"hideColumns",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page",selectionChange:"selectionChange"},features:[Gt],decls:30,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"table",3),es(4,4),Ua(5,V5,2,3,"th",5),Ua(6,G5,2,2,"td",6),ts(),es(7,7),Ua(8,X5,3,3,"th",8),Ua(9,Z5,3,2,"td",6),ts(),es(10,9),Ua(11,$5,3,3,"th",8),Ua(12,e6,2,1,"td",10),ts(),es(13,11),Ua(14,t6,3,3,"th",8),Ua(15,i6,2,1,"td",10),ts(),es(16,12),Ua(17,n6,3,3,"th",8),Ua(18,r6,3,3,"td",10),ts(),es(19,13),Ua(20,o6,3,3,"th",8),Ua(21,u6,3,2,"td",10),ts(),es(22,14),Ua(23,c6,3,3,"th",8),Ua(24,d6,3,2,"td",10),ts(),Ua(25,f6,1,0,"tr",15),Ua(26,g6,1,18,"tr",16),Za(),Qa(27,"mat-paginator",17),as("page",(function(e){return t.page.emit(e)})),Za(),Za(),Za(),Ua(28,m6,3,3,"app-alert",18),Ua(29,v6,3,3,"app-alert",18)),2&e&&(Xa("hidden",0===t.dataSource.filteredData.length||0===t.servicesStatus.length),Br(3),Xa("dataSource",t.dataSource),Br(22),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.servicesStatus.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",0===t.dataSource.filteredData.length&&0!==t.servicesStatus.length),Br(1),Xa("ngIf",0===t.servicesStatus.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,ZF,Sz,Hq,Rz,Nz,vy,Ej,IN],pipes:[YT,EI,Td],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}"]}),b6),A6=((_6=function e(){_(this,e),this.voSelected=new rc,this.nameFunction=function(e){return e.name},this.shortNameFunction=function(e){return e.shortName},this.searchFunction=function(e){return e.name+e.shortName+e.id}}).\u0275fac=function(e){return new(e||_6)},_6.\u0275cmp=Lt({type:_6,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:13,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(e,t){1&e&&(Qa(0,"perun-web-apps-entity-search-select",0),as("entitySelected",(function(e){return t.voSelected.emit(e)})),Zu(1,"translate"),Zu(2,"translate"),Zu(3,"translate"),Za()),2&e&&Xa("entities",t.vos)("searchFunction",t.searchFunction)("mainTextFunction",t.nameFunction)("secondaryTextFunction",t.shortNameFunction)("selectPlaceholder",$u(1,7,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",$u(2,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",$u(3,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[h$],pipes:[YT],styles:[""]}),_6),k6=((y6=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){return $S(e)}}]),e}()).\u0275fac=function(e){return new(e||y6)},y6.\u0275pipe=It({name:"memberOrganization",type:y6,pure:!0}),y6);function M6(e,t){if(1&e){var i=ns();Qa(0,"th",25),Qa(1,"mat-checkbox",26),as("change",(function(e){_i(i);var t=hs();return e?t.masterToggle():null})),Za(),Za()}if(2&e){var n=hs();Br(1),Xa("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function C6(e,t){if(1&e){var i=ns();Qa(0,"td",27),Qa(1,"mat-checkbox",28),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.selection.toggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Zu(2,"translate"),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))("disabled","DIRECT"!==n.membershipType)("matTooltip","DIRECT"!==n.membershipType?$u(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function S6(e,t){1&e&&(Qa(0,"th",29),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.ID")))}function T6(e,t){if(1&e&&(Qa(0,"td",27),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.id)}}function E6(e,t){1&e&&$a(0,"th",29)}function L6(e,t){1&e&&(Qa(0,"mat-icon",32),Zu(1,"translate"),Bs(2,"transfer_within_a_station"),Za()),2&e&&Xa("matTooltip",$u(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function z6(e,t){if(1&e&&(Qa(0,"td",30),Ua(1,L6,3,3,"mat-icon",31),Za()),2&e){var i=t.$implicit;Br(1),Xa("ngIf","DIRECT"!==i.membershipType)}}function x6(e,t){1&e&&(Qa(0,"th",29),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.NAME")))}function D6(e,t){if(1&e&&(Qa(0,"td",30),Bs(1),Zu(2,"userFullName"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i.user))}}function R6(e,t){1&e&&(Qa(0,"th",29),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.STATUS")))}function O6(e,t){if(1&e){var i=ns();Qa(0,"td",30),Qa(1,"i",33),as("click",(function(e){_i(i);var n=t.$implicit;return hs().changeStatus(e,n)})),Zu(2,"memberStatusIconColor"),Zu(3,"memberStatusTooltip"),Qa(4,"span"),Bs(5),Zu(6,"memberStatusIcon"),Za(),Za(),Za()}if(2&e){var n=t.$implicit;Br(1),Ys("material-icons ",$u(2,5,n.status),""),gs("matTooltip",ec(3,7,n,!1)),Br(4),qs(" ",$u(6,10,n.status)," ")}}function P6(e,t){1&e&&(Qa(0,"th",29),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function I6(e,t){if(1&e){var i=ns();Qa(0,"td",30),Qa(1,"i",33),as("click",(function(e){_i(i);var n=t.$implicit;return hs().changeStatus(e,n)})),Zu(2,"memberStatusIconColor"),Zu(3,"memberStatusTooltip"),Qa(4,"span"),Bs(5),Zu(6,"memberStatusIcon"),Za(),Za(),Za()}if(2&e){var n=t.$implicit;Br(1),Ys("material-icons ",$u(2,5,n.groupStatus),""),gs("matTooltip",ec(3,7,n,!0)),Br(4),qs(" ",$u(6,10,n.groupStatus)," ")}}function N6(e,t){1&e&&(Qa(0,"th",34),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function F6(e,t){1&e&&(Qa(0,"mat-icon"),Bs(1,"check_circle_outline"),Za())}function B6(e,t){if(1&e&&(Qa(0,"td",35),Ua(1,F6,2,0,"mat-icon",36),Za()),2&e){var i=t.$implicit;Br(1),Xa("ngIf",i.sponsored)}}function H6(e,t){1&e&&(Qa(0,"th",29),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.ORGANIZATION")))}function q6(e,t){if(1&e&&(Qa(0,"td",30),Bs(1),Zu(2,"memberOrganization"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i))}}function j6(e,t){1&e&&(Qa(0,"th",29),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.EMAIL")))}function Y6(e,t){if(1&e&&(Qa(0,"td",30),Bs(1),Zu(2,"memberEmail"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i))}}function W6(e,t){1&e&&(Qa(0,"th",25),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.LOGINS")))}function U6(e,t){if(1&e&&(Qa(0,"td",30),Bs(1),Zu(2,"memberLogins"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i))}}function K6(e,t){1&e&&$a(0,"tr",37)}var V6=function(e,t){return["/organizations",e,"members",t]};function G6(e,t){if(1&e&&$a(0,"tr",38),2&e){var i=t.$implicit,n=hs();Ss("disable-outline",n.disableRouting)("cursor-pointer",!n.disableRouting)("italic_font","DIRECT"!==i.membershipType),Xa("routerLink",n.disableRouting?null:Gu(8,V6,i.voId,i.id))("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:Gu(11,V6,i.voId,i.id))}}function X6(e,t){1&e&&(Qa(0,"app-alert",39),Bs(1),Zu(2,"translate"),Za()),2&e&&(Xa("alert_type","warn"),Br(1),qs(" ",$u(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function J6(e,t){1&e&&(Qa(0,"app-alert",39),Bs(1),Zu(2,"translate"),Za()),2&e&&(Xa("alert_type","warn"),Br(1),qs(" ",$u(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var Q6,Z6=((Q6=function(){function e(t,i,n){_(this,e),this.dialog=t,this.authResolver=i,this.tableCheckbox=n,this.selection=new db,this.hideColumns=[],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new rc,this.updateTable=new rc,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.pageSizeOptions=YS,this.canBeSelected=function(e){return"DIRECT"===e.membershipType}}return w(e,[{key:"getSortDataForColumn",value:function(e,t,i){var n;switch(t){case"id":return e.id.toString();case"fullName":return e.user?e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?e.groupStatus:e.status;case"organization":return $S(e);case"email":return WS(e);default:return""}}},{key:"getFilterDataForColumn",value:function(e,t){var i;switch(t){case"fullName":return e.user?e.user.lastName?e.user.lastName:null!==(i=e.user.firstName)&&void 0!==i?i:"":"";case"email":return WS(e);case"logins":return US(e);default:return""}}},{key:"getExportDataForColumn",value:function(e,t,i){switch(t){case"id":return e.id.toString();case"fullName":return e.user?KS(e.user):"";case"status":return i.showGroupStatuses?e.groupStatus:e.status;case"organization":return $S(e);case"email":return WS(e);case"logins":return US(e);default:return""}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.displayedColumns=this.displayedColumns.filter((function(t){return!e.hideColumns.includes(t)})),this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getFilterDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getSortDataForColumn,e)},this.dataSource.filter=this.filter,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator)}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"ngOnChanges",value:function(e){var t=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"id"!==e}))),this.displayedColumns=this.displayedColumns.filter((function(e){return!t.hideColumns.includes(e)})),this.dataSource=new jz(this.members),this.setDataSource()}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.paginator.hasNextPage(),this.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(e,t){var i=this;if(e.stopPropagation(),"INVALID"===t.status){var n=JS();n.width="500px",n.data={member:t},this.dialog.open(KI,n).afterClosed().subscribe((function(e){e&&i.updateTable.emit(!0)}))}}},{key:"pageChanged",value:function(e){this.page.emit(e)}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"matPaginator",set:function(e){this.paginator=e}}]),e}()).\u0275fac=function(e){return new(e||Q6)(Va(RS),Va(ag),Va(FE))},Q6.\u0275cmp=Lt({type:Q6,selectors:[["perun-web-apps-members-list"]],viewQuery:function(e,t){var i;1&e&&(mc(Rq,!0),mc(kq,!0)),2&e&&(gc(i=Ac())&&(t.matSort=i.first),gc(i=Ac())&&(t.matPaginator=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page",updateTable:"updateTable"},features:[Gt],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","table-theme"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["mat-header-cell","","class","center new-line",4,"matHeaderCellDef"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","italic_font","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(e,t){1&e&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,M6,2,3,"th",6),Ua(7,C6,3,6,"td",7),ts(),es(8,8),Ua(9,S6,3,3,"th",9),Ua(10,T6,2,1,"td",7),ts(),es(11,10),Ua(12,E6,1,0,"th",9),Ua(13,z6,2,1,"td",11),ts(),es(14,12),Ua(15,x6,3,3,"th",9),Ua(16,D6,3,3,"td",11),ts(),es(17,13),Ua(18,R6,3,3,"th",9),Ua(19,O6,7,12,"td",11),ts(),es(20,14),Ua(21,P6,3,3,"th",9),Ua(22,I6,7,12,"td",11),ts(),es(23,15),Ua(24,N6,3,3,"th",16),Ua(25,B6,2,1,"td",17),ts(),es(26,18),Ua(27,H6,3,3,"th",9),Ua(28,q6,3,3,"td",11),ts(),es(29,19),Ua(30,j6,3,3,"th",9),Ua(31,Y6,3,3,"td",11),ts(),es(32,20),Ua(33,W6,3,3,"th",6),Ua(34,U6,3,3,"td",11),ts(),Ua(35,K6,1,0,"tr",21),Ua(36,G6,1,14,"tr",22),Za(),Za(),Qa(37,"mat-paginator",23),as("page",(function(e){return t.pageChanged(e)})),Za(),Za(),Za(),Ua(38,X6,3,4,"app-alert",24),Ua(39,J6,3,4,"app-alert",24)),2&e&&(Xa("hidden",0===t.members.length||0===t.dataSource.filteredData.length),Br(4),Xa("dataSource",t.dataSource),Br(31),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.members.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",0!==t.members.length&&0===t.dataSource.filteredData.length),Br(1),Xa("ngIf",0===t.members.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,ZF,Sz,aF,Hq,LE,Rz,Nz,vy,Ej,IN],pipes:[YT,CI,LI,xI,zI,k6,DI,RI],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}.italic_font[_ngcontent-%COMP%]{font-style:italic}"]}),Q6);function $6(e,t){if(1&e){var i=ns();Qa(0,"th",23),Qa(1,"mat-checkbox",24),as("change",(function(e){_i(i);var t=hs();return e?t.masterToggle():null})),Za(),Za()}if(2&e){var n=hs();Br(1),Xa("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function e8(e,t){if(1&e){var i=ns();Qa(0,"td",25),Qa(1,"mat-checkbox",26),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.selection.toggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function t8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function i8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.id)}}function n8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function r8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.destination.destination)}}function o8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function a8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.destination.type.toUpperCase())}}function s8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function u8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.service.name)}}function c8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function l8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.status)}}function h8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function d8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Zu(2,"date"),Za()),2&e){var i=t.$implicit;Br(1),Hs(ec(2,1,i.timestamp,"d.M.y H:mm:ss"))}}function f8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function p8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.returnCode)}}function g8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function m8(e,t){if(1&e&&(Qa(0,"span"),Bs(1),$a(2,"br"),Za()),2&e){var i=t.$implicit;Br(1),Hs(i)}}function v8(e,t){if(1&e&&(Qa(0,"td",25),Ua(1,m8,3,1,"span",28),Za()),2&e){var i=t.$implicit;Br(1),Xa("ngForOf",i.standardMessage.split("\n"))}}function y8(e,t){1&e&&(Qa(0,"th",27),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function _8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.errorMessage)}}function b8(e,t){1&e&&$a(0,"tr",29)}function w8(e,t){if(1&e&&$a(0,"tr",30),2&e){var i=t.$implicit;Ss("yellowTableItem","WARNING"===i.status)("greenTableItem","DONE"===i.status)("redTableItem","ERROR"===i.status||"DENIED"===i.status)}}function A8(e,t){1&e&&(Qa(0,"app-alert",31),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function k8(e,t){1&e&&(Qa(0,"app-alert",31),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}var M8,C8,S8,T8,E8,L8=((E8=function(){function e(t,i){_(this,e),this.authResolver=t,this.tableCheckbox=i,this.pageSizeOptions=YS,this.taskResults=[],this.selection=new db(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.page=new rc}return w(e,[{key:"ngOnChanges",value:function(e){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"id"!==e}))),this.dataSource=new jz(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){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 vh(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""}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){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 vh(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""}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getSortDataForColumn,e)})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"matPaginator",set:function(e){this.paginator=e}}]),e}()).\u0275fac=function(e){return new(e||E8)(Va(ag),Va(FE))},E8.\u0275cmp=Lt({type:E8,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,t){var i;1&e&&(mc(Rq,!0),mc(kq,!0)),2&e&&(gc(i=Ac())&&(t.matSort=i.first),gc(i=Ac())&&(t.matPaginator=i.first))},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[Gt],decls:40,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[1,"ml-auto",3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",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,"yellowTableItem","greenTableItem","redTableItem",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,$6,2,3,"th",6),Ua(7,e8,2,2,"td",7),ts(),es(8,8),Ua(9,t8,3,3,"th",9),Ua(10,i8,2,1,"td",10),ts(),es(11,11),Ua(12,n8,3,3,"th",9),Ua(13,r8,2,1,"td",10),ts(),es(14,12),Ua(15,o8,3,3,"th",9),Ua(16,a8,2,1,"td",10),ts(),es(17,13),Ua(18,s8,3,3,"th",9),Ua(19,u8,2,1,"td",10),ts(),es(20,14),Ua(21,c8,3,3,"th",9),Ua(22,l8,2,1,"td",10),ts(),es(23,15),Ua(24,h8,3,3,"th",9),Ua(25,d8,3,4,"td",10),ts(),es(26,16),Ua(27,f8,3,3,"th",9),Ua(28,p8,2,1,"td",10),ts(),es(29,17),Ua(30,g8,3,3,"th",9),Ua(31,v8,2,1,"td",10),ts(),es(32,18),Ua(33,y8,3,3,"th",9),Ua(34,_8,2,1,"td",10),ts(),Ua(35,b8,1,0,"tr",19),Ua(36,w8,1,6,"tr",20),Za(),Za(),Qa(37,"mat-paginator",21),as("page",(function(e){return t.page.emit(e)})),Za(),Za(),Za(),Ua(38,A8,3,3,"app-alert",22),Ua(39,k8,3,3,"app-alert",22)),2&e&&(Xa("hidden",0===t.dataSource.filteredData.length||0===t.taskResults.length),Br(4),Xa("dataSource",t.dataSource),Br(31),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.taskResults.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",0===t.dataSource.filteredData.length&&0!==t.taskResults.length),Br(1),Xa("ngIf",0===t.taskResults.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,ZF,Sz,Hq,Yh,Rz,Nz,IN],pipes:[YT,Td],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),E8),z8=((T8=function e(){_(this,e),this.resourceSelected=new rc,this.nameFunction=function(e){return e.name}}).\u0275fac=function(e){return new(e||T8)},T8.\u0275cmp=Lt({type:T8,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resources:"resources"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(e,t){1&e&&(Qa(0,"perun-web-apps-entity-search-select",0),as("entitySelected",(function(e){return t.resourceSelected.emit(e)})),Zu(1,"translate"),Zu(2,"translate"),Zu(3,"translate"),Za()),2&e&&Xa("entities",t.resources)("searchFunction",t.nameFunction)("mainTextFunction",t.nameFunction)("selectPlaceholder",$u(1,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",$u(2,8,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",$u(3,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[h$],pipes:[YT],styles:[""]}),T8),x8=((S8=function e(){_(this,e),this.memberSelected=new rc,this.memberFullNameFunction=function(e){return KS(e.user)}}).\u0275fac=function(e){return new(e||S8)},S8.\u0275cmp=Lt({type:S8,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(e,t){1&e&&(Qa(0,"perun-web-apps-entity-search-select",0),as("entitySelected",(function(e){return t.memberSelected.emit(e)})),Zu(1,"translate"),Zu(2,"translate"),Zu(3,"translate"),Za()),2&e&&Xa("entities",t.members)("searchFunction",t.memberFullNameFunction)("mainTextFunction",t.memberFullNameFunction)("selectPlaceholder",$u(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",$u(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",$u(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[h$],pipes:[YT],styles:[""]}),S8),D8=((C8=function e(){_(this,e),this.facilitySelected=new rc,this.nameFunction=function(e){return e.name}}).\u0275fac=function(e){return new(e||C8)},C8.\u0275cmp=Lt({type:C8,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(e,t){1&e&&(Qa(0,"perun-web-apps-entity-search-select",0),as("entitySelected",(function(e){return t.facilitySelected.emit(e)})),Zu(1,"translate"),Zu(2,"translate"),Zu(3,"translate"),Za()),2&e&&Xa("entities",t.facilities)("searchFunction",t.nameFunction)("mainTextFunction",t.nameFunction)("selectPlaceholder",$u(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",$u(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",$u(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[h$],pipes:[YT],styles:[""]}),C8),R8=((M8=function e(){_(this,e),this.disableAutoSelect=!1,this.userSelected=new rc,this.userFullNameFunction=KS}).\u0275fac=function(e){return new(e||M8)},M8.\u0275cmp=Lt({type:M8,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,t){1&e&&(Qa(0,"perun-web-apps-entity-search-select",0),as("entitySelected",(function(e){return t.userSelected.emit(e)})),Zu(1,"translate"),Zu(2,"translate"),Zu(3,"translate"),Za()),2&e&&Xa("entities",t.users)("disableAutoSelect",t.disableAutoSelect)("searchFunction",t.userFullNameFunction)("mainTextFunction",t.userFullNameFunction)("selectPlaceholder",$u(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",$u(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",$u(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[h$],pipes:[YT],styles:[""]}),M8);function O8(e,t){if(1&e&&(Qa(0,"div",6),Bs(1),Za()),2&e){var i=t.$implicit,n=hs();Br(1),qs(" ",i[n.paramName]," ")}}function P8(e,t){1&e&&(Qa(0,"mat-icon"),Bs(1,"more_horiz"),Za())}function I8(e,t){1&e&&(Qa(0,"mat-icon"),Bs(1,"keyboard_arrow_up"),Za())}function N8(e,t){if(1&e){var i=ns();Qa(0,"button",7),as("click",(function(){return _i(i),hs().onShowChange()})),Ua(1,P8,2,0,"mat-icon",8),Ua(2,I8,2,0,"mat-icon",8),Za()}if(2&e){var n=hs();Br(1),Xa("ngIf",!n.showMore),Br(1),Xa("ngIf",n.showMore)}}var F8,B8=((F8=function(){function e(){_(this,e),this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}return w(e,[{key:"ngOnInit",value:function(){this.itemsShown=this.defaultItemsShown}},{key:"ngOnChanges",value:function(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}]),e}()).\u0275fac=function(e){return new(e||F8)},F8.\u0275cmp=Lt({type:F8,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[Gt],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(e,t){1&e&&(Qa(0,"form",0),Qa(1,"div",1),Qa(2,"div",2),Ua(3,O8,2,1,"div",3),Za(),Qa(4,"div"),Qa(5,"span",4),Ua(6,N8,3,2,"button",5),Za(),Za(),Za(),Za()),2&e&&(Br(3),Xa("ngForOf",t.objects.slice(0,t.itemsShown)),Br(2),Xa("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),Br(1),Xa("ngIf",t.objects.length>t.defaultItemsShown))},directives:[vR,Jx,cR,Yh,aF,Uh,JT,LE],styles:[""]}),F8);function H8(e,t){1&e&&$a(0,"th",21)}function q8(e,t){if(1&e){var i=ns();Qa(0,"td",22),Qa(1,"mat-checkbox",23),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.selection.toggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function j8(e,t){1&e&&(Qa(0,"th",24),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function Y8(e,t){if(1&e&&(Qa(0,"td",22),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.facility.id)}}function W8(e,t){1&e&&$a(0,"th",21)}function U8(e,t){if(1&e&&(Qa(0,"td",25),$a(1,"perun-web-apps-recently-viewed-icon",26),Za()),2&e){var i=t.$implicit,n=hs();Br(1),Xa("recentIds",n.recentIds)("id",i.facility.id)}}function K8(e,t){1&e&&(Qa(0,"th",24),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function V8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.facility.name)}}function G8(e,t){1&e&&(Qa(0,"th",21),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function X8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.facility.description)}}function J8(e,t){1&e&&(Qa(0,"th",21),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function Q8(e,t){if(1&e&&(Qa(0,"td",25),Bs(1),Zu(2,"technicalOwners"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i.owners))}}function Z8(e,t){1&e&&(Qa(0,"th",21),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function $8(e,t){if(1&e){var i=ns();Qa(0,"td",25),Qa(1,"perun-web-apps-object-list-values",27),as("mouseenter",(function(){return _i(i),hs().disableRouting=!0}))("mouseleave",(function(){return _i(i),hs().disableRouting=!1})),Zu(2,"filterUniqueObjects"),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("paramName","destination")("objects",tc(2,2,n.destinations,r.filterValue,"destination"))}}function e7(e,t){1&e&&(Qa(0,"th",21),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function t7(e,t){if(1&e){var i=ns();Qa(0,"td",25),Qa(1,"perun-web-apps-object-list-values",27),as("mouseenter",(function(){return _i(i),hs().disableRouting=!0}))("mouseleave",(function(){return _i(i),hs().disableRouting=!1})),Zu(2,"filterUniqueObjects"),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("paramName","hostname")("objects",tc(2,2,n.hosts,r.filterValue,"hostname"))}}function i7(e,t){1&e&&$a(0,"tr",28)}var n7=function(){return[]},r7=function(e){return["/facilities",e]};function o7(e,t){if(1&e&&$a(0,"tr",29),2&e){var i=t.$implicit;Xa("routerLink",hs().disableRouting?Ku(2,n7):Vu(3,r7,i.facility.id))("perunWebAppsMiddleClickRouterLink",Vu(5,r7,i.facility.id))}}function a7(e,t){1&e&&(Qa(0,"app-alert",30),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function s7(e,t){1&e&&(Qa(0,"app-alert",30),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),qs(" ",$u(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}var u7,c7,l7,h7=((c7=function(){function e(t,i){_(this,e),this.authResolver=t,this.cd=i,this.pageSize=10,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=YS,this.page=new rc}return w(e,[{key:"ngOnChanges",value:function(e){this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"id"!==e}))),this.setDataSource()}},{key:"getDataForColumn",value:function(e,t,i){switch(t){case"id":return e.facility.id.toString();case"name":return e.facility.name;case"description":return e.facility.description;case"technicalOwners":return VS(e.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(e.facility.id)>-1?"#".repeat(i.recentIds.indexOf(e.facility.id)):e.name;case"destinations":return e.destinations.map((function(e){return e.destination})).join(" ; ");case"hosts":return e.hosts.map((function(e){return e.hostname})).join(" ; ");default:return e[t]}}},{key:"exportData",value:function(e){rT(nT(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.paginator&&(this.dataSource||(this.dataSource=new jz,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.filterPredicate=function(t,i){return iT(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return tT(t,i,e.getDataForColumn,e)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities)}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach((function(t){return e.selection.select(t)}))}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.facility.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"pageChanged",value:function(e){this.page.emit(e)}},{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"matPaginator",set:function(e){this.paginator=e,this.setDataSource(),this.cd.detectChanges()}}]),e}()).\u0275fac=function(e){return new(e||c7)(Va(ag),Va(ua))},c7.\u0275cmp=Lt({type:c7,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(e,t){var i;1&e&&(mc(Rq,!0),vc(kq,!0)),2&e&&(gc(i=Ac())&&(t.matSort=i.first),gc(i=Ac())&&(t.matPaginator=i.first))},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[Gt],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[1,"card-body"],[3,"exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["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,"routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[3,"paramName","objects","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(Qa(0,"div",0),Qa(1,"div",1),Qa(2,"perun-web-apps-table-options",2),as("exportData",(function(e){return t.exportData(e)})),Za(),Qa(3,"div",3),Qa(4,"table",4),es(5,5),Ua(6,H8,1,0,"th",6),Ua(7,q8,2,2,"td",7),ts(),es(8,8),Ua(9,j8,3,3,"th",9),Ua(10,Y8,2,1,"td",7),ts(),es(11,10),Ua(12,W8,1,0,"th",6),Ua(13,U8,2,2,"td",11),ts(),es(14,12),Ua(15,K8,3,3,"th",9),Ua(16,V8,2,1,"td",11),ts(),es(17,13),Ua(18,G8,3,3,"th",6),Ua(19,X8,2,1,"td",11),ts(),es(20,14),Ua(21,J8,3,3,"th",6),Ua(22,Q8,3,3,"td",11),ts(),es(23,15),Ua(24,Z8,3,3,"th",6),Ua(25,$8,3,6,"td",11),ts(),es(26,16),Ua(27,e7,3,3,"th",6),Ua(28,t7,3,6,"td",11),ts(),Ua(29,i7,1,0,"tr",17),Ua(30,o7,1,7,"tr",18),Za(),Za(),Qa(31,"mat-paginator",19),as("page",(function(e){return t.pageChanged(e)})),Za(),Za(),Za(),Ua(32,a7,3,3,"app-alert",20),Ua(33,s7,3,3,"app-alert",20)),2&e&&(Xa("hidden",!t.dataSource||0===t.dataSource.filteredData.length||0===t.facilities.length),Br(4),Xa("dataSource",t.dataSource),Br(25),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.facilities.length)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",!!t.dataSource&&0===t.dataSource.filteredData.length&&0!==t.facilities.length),Br(1),Xa("ngIf",0===t.facilities.length))},directives:[Cj,pz,Rq,Az,yz,mz,Tz,xz,kq,Uh,Mz,Sz,ZF,Hq,PW,B8,Rz,Nz,vy,Ej,IN],pipes:[YT,PI,II],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),c7),d7=((u7=function(){function e(){_(this,e),this.datePicker=new rc}return w(e,[{key:"ngOnInit",value:function(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}},{key:"dateChange",value:function(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}]),e}()).\u0275fac=function(e){return new(e||u7)},u7.\u0275cmp=Lt({type:u7,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"space-right",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(e,t){if(1&e){var i=ns();Qa(0,"mat-form-field",0),as("click",(function(){return _i(i),Ka(7).open()})),Qa(1,"mat-label"),Bs(2),Zu(3,"translate"),Za(),Qa(4,"input",1),as("dateChange",(function(){return t.dateChange()})),Za(),$a(5,"mat-datepicker-toggle",2),$a(6,"mat-datepicker",null,3),Za(),Qa(8,"mat-form-field",4),as("click",(function(){return _i(i),Ka(15).open()})),Qa(9,"mat-label"),Bs(10),Zu(11,"translate"),Za(),Qa(12,"input",1),as("dateChange",(function(){return t.dateChange()})),Za(),$a(13,"mat-datepicker-toggle",2),$a(14,"mat-datepicker",null,5),Za()}if(2&e){var n=Ka(7),r=Ka(15);Br(2),Hs($u(3,12,"VO_DETAIL.APPLICATION.DATE.START")),Br(2),Xa("matDatepicker",n)("min",t.startMinDate)("max",t.startMaxDate)("formControl",t.startDate),Br(1),Xa("for",n),Br(5),Hs($u(11,14,"VO_DETAIL.APPLICATION.DATE.END")),Br(2),Xa("matDatepicker",r)("min",t.endMinDate)("max",t.endMaxDate)("formControl",t.endDate),Br(1),Xa("for",r)}},directives:[Ix,Ex,AO,pI,Yx,Xx,bR,mI,xx,lI],pipes:[YT],styles:[""]}),u7),f7=["groupFilterInput"],p7=((l7=function(){function e(){_(this,e),this.filter=new rc}return w(e,[{key:"ngOnInit",value:function(){var e=this;t_(this.groupFilterInput.nativeElement,"keyup").pipe(Q((function(e){return e.target.value})),Pw(500),m_()).subscribe((function(t){e.filter.emit(t)}))}}]),e}()).\u0275fac=function(e){return new(e||l7)},l7.\u0275cmp=Lt({type:l7,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){var i;1&e&&mc(f7,!0),2&e&&gc(i=Ac())&&(t.groupFilterInput=i.first)},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(e,t){1&e&&(Qa(0,"mat-form-field",0),$a(1,"input",1,2),Zu(3,"translate"),Za()),2&e&&(Br(1),gs("placeholder",$u(3,1,t.placeholder)))},directives:[Ix,AO],pipes:[YT],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),l7);function g7(e,t){1&e&&(Qa(0,"div",23),$a(1,"mat-spinner",24),Za())}function m7(e,t){if(1&e){var i=ns();Qa(0,"th",25),Qa(1,"mat-checkbox",26),as("change",(function(e){_i(i);var t=hs();return e?t.masterToggle():null})),Za(),Za()}if(2&e){var n=hs();Br(1),Xa("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function v7(e,t){if(1&e){var i=ns();Qa(0,"td",27),Qa(1,"mat-checkbox",28),as("change",(function(e){_i(i);var n=t.$implicit,r=hs();return e?r.selection.toggle(n):null}))("click",(function(e){return _i(i),e.stopPropagation()})),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Xa("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function y7(e,t){1&e&&(Qa(0,"th",29),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.ID")))}function _7(e,t){if(1&e&&(Qa(0,"td",27),Bs(1),Za()),2&e){var i=t.$implicit;Br(1),Hs(i.id)}}function b7(e,t){1&e&&(Qa(0,"th",29),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.NAME")))}function w7(e,t){if(1&e&&(Qa(0,"td",30),Bs(1),Zu(2,"userFullName"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i.user))}}function A7(e,t){1&e&&$a(0,"div")}function k7(e,t){1&e&&(Qa(0,"th",25),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function M7(e,t){1&e&&Ua(0,k7,3,3,"th",6)}function C7(e,t){1&e&&(Qa(0,"th",25),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.STATUS")))}function S7(e,t){1&e&&Ua(0,C7,3,3,"th",6)}function T7(e,t){if(1&e&&(Qa(0,"span"),Bs(1),Zu(2,"memberStatusIcon"),Za()),2&e){var i=hs().$implicit;Br(1),qs(" ",$u(2,1,i.status)," ")}}function E7(e,t){if(1&e&&(Qa(0,"span"),Bs(1),Zu(2,"memberStatusIcon"),Za()),2&e){var i=hs().$implicit;Br(1),qs(" ",$u(2,1,i.groupStatus)," ")}}function L7(e,t){if(1&e){var i=ns();Qa(0,"td",30),Qa(1,"i",31),as("click",(function(e){_i(i);var n=t.$implicit;return hs().changeStatus(e,n)})),Zu(2,"memberStatusIconColor"),Zu(3,"memberStatusIconColor"),Zu(4,"memberStatusTooltip"),Ua(5,T7,3,3,"span",32),Ua(6,E7,3,3,"span",32),Za(),Za()}if(2&e){var n=t.$implicit,r=hs();Br(1),Ys("material-icons ",r.showGroupStatuses?$u(2,6,n.groupStatus):$u(3,8,n.status),""),gs("matTooltip",ec(4,10,n,r.showGroupStatuses)),Br(4),Xa("ngIf",!r.showGroupStatuses),Br(1),Xa("ngIf",r.showGroupStatuses)}}function z7(e,t){1&e&&(Qa(0,"th",25),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.ORGANIZATION")))}function x7(e,t){if(1&e&&(Qa(0,"td",30),Bs(1),Zu(2,"memberOrganization"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i))}}function D7(e,t){1&e&&(Qa(0,"th",25),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.EMAIL")))}function R7(e,t){if(1&e&&(Qa(0,"td",30),Bs(1),Zu(2,"memberEmail"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i))}}function O7(e,t){1&e&&(Qa(0,"th",25),Bs(1),Zu(2,"translate"),Za()),2&e&&(Br(1),Hs($u(2,1,"MEMBERS_LIST.LOGINS")))}function P7(e,t){if(1&e&&(Qa(0,"td",30),Bs(1),Zu(2,"memberLogins"),Za()),2&e){var i=t.$implicit;Br(1),Hs($u(2,1,i))}}function I7(e,t){1&e&&$a(0,"tr",33)}var N7=function(e,t){return["/organizations",e,"members",t]};function F7(e,t){if(1&e&&$a(0,"tr",34),2&e){var i=t.$implicit,n=hs();Ss("disable-outline",!n.dataSource.routeAuth)("cursor-pointer",n.dataSource.routeAuth),Xa("routerLink",n.dataSource.routeAuth?Gu(6,N7,i.voId,i.id):null)("perunWebAppsMiddleClickRouterLink",n.dataSource.routeAuth?Gu(9,N7,i.voId,i.id):null)}}function B7(e,t){1&e&&(Qa(0,"app-alert",35),Bs(1),Zu(2,"translate"),Za()),2&e&&(Xa("alert_type","warn"),Br(1),qs(" ",$u(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var H7,q7=((H7=function(){function e(t,i,n,r){_(this,e),this.dialog=t,this.authResolver=i,this.tableCheckbox=n,this.dynamicPaginatingService=r,this.hideColumns=[],this.pageSize=10,this.page=new rc,this.updateTable=new rc,this.exporting=!1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.pageSizeOptions=YS}return w(e,[{key:"ngAfterViewInit",value:function(){var e=this;this.sort.sortChange.subscribe((function(){return e.paginator.pageIndex=0})),se(this.sort.sortChange,this.paginator.page).pipe(Ug((function(){return e.loadMembersPage()}))).subscribe()}},{key:"ngOnInit",value:function(){var e=this;this.authResolver.isPerunAdmin()||(this.displayedColumns=this.displayedColumns.filter((function(e){return"id"!==e}))),this.displayedColumns=this.displayedColumns.filter((function(t){return!e.hideColumns.includes(t)})),this.dataSource=new HE(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.pageSize,"NAME")}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.pageSize}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach((function(t){return e.selection.select(t)}))}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(e,t){var i=this;if(e.stopPropagation(),"INVALID"===t.status){var n=JS();n.width="500px",n.data={member:t},this.dialog.open(KI,n).afterClosed().subscribe((function(e){e&&i.updateTable.emit(!0)}))}}},{key:"pageChanged",value:function(e){this.page.emit(e)}},{key:"loadMembersPage",value:function(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.paginator.pageIndex,this.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID")}}]),e}()).\u0275fac=function(e){return new(e||H7)(Va(RS),Va(ag),Va(FE),Va(BE))},H7.\u0275cmp=Lt({type:H7,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(e,t){var i;1&e&&(vc(kq,!0),vc(Rq,!0)),2&e&&(gc(i=Ac())&&(t.paginator=i.first),gc(i=Ac())&&(t.sort=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",selection:"selection",hideColumns:"hideColumns",pageSize:"pageSize",voId:"voId",attrNames:"attrNames"},outputs:{page:"page",updateTable:"updateTable"},decls:37,vars:18,consts:[[1,"card","mt-2",3,"hidden"],[1,"card-body","position-relative"],["class","spinner-container",4,"ngIf"],[1,"overflow-auto","table-container"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fullName"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],[4,"ngIf","ngIfThen","ngIfElse"],["thenHeader",""],["elseHeader",""],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","page"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],[4,"ngIf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(e,t){if(1&e&&(Qa(0,"div",0),Zu(1,"async"),Qa(2,"div",1),Ua(3,g7,2,0,"div",2),Zu(4,"async"),Qa(5,"div",3),Qa(6,"table",4),es(7,5),Ua(8,m7,2,3,"th",6),Ua(9,v7,2,2,"td",7),ts(),es(10,8),Ua(11,y7,3,3,"th",9),Ua(12,_7,2,1,"td",7),ts(),es(13,10),Ua(14,b7,3,3,"th",9),Ua(15,w7,3,3,"td",11),ts(),es(16,12),Ua(17,A7,1,0,"div",13),Ua(18,M7,1,0,"ng-template",null,14,Sc),Ua(20,S7,1,0,"ng-template",null,15,Sc),Ua(22,L7,7,13,"td",11),ts(),es(23,16),Ua(24,z7,3,3,"th",6),Ua(25,x7,3,3,"td",11),ts(),es(26,17),Ua(27,D7,3,3,"th",6),Ua(28,R7,3,3,"td",11),ts(),es(29,18),Ua(30,O7,3,3,"th",6),Ua(31,P7,3,3,"td",11),ts(),Ua(32,I7,1,0,"tr",19),Ua(33,F7,1,12,"tr",20),Za(),Za(),Qa(34,"mat-paginator",21),as("page",(function(e){return t.pageChanged(e)})),Za(),Za(),Za(),Ua(35,B7,3,4,"app-alert",22),Zu(36,"async")),2&e){var i=Ka(19),n=Ka(21);Xa("hidden",0===t.dataSource.allMemberCount&&!1===$u(1,12,t.dataSource.loading$)),Br(3),Xa("ngIf",$u(4,14,t.dataSource.loading$)),Br(3),Xa("dataSource",t.dataSource),Br(11),Xa("ngIf",t.showGroupStatuses)("ngIfThen",i)("ngIfElse",n),Br(15),Xa("matHeaderRowDef",t.displayedColumns),Br(1),Xa("matRowDefColumns",t.displayedColumns),Br(1),Xa("length",t.dataSource.allMemberCount)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions),Br(1),Xa("ngIf",0===t.dataSource.allMemberCount&&!1===$u(36,16,t.dataSource.loading$))}},directives:[Uh,pz,Rq,Az,yz,mz,Tz,xz,kq,BO,Mz,ZF,Sz,Hq,aF,Rz,Nz,vy,Ej,IN],pipes:[Ad,YT,CI,LI,xI,zI,k6,DI,RI],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.table-container[_ngcontent-%COMP%]{position:relative;overflow:auto}"]}),H7),j7={provide:Dp,useExisting:Fe((function(){return OE})),multi:!0};function Y7(e){return new u0(e,"./assets/i18n/",".json")}function W7(e){var t={basePath:e.get("api_url")};return new Gp(t)}var U7,K7,V7,G7,X7=function(e){return function(){return e.loadConfigs()}},J7=((U7=function e(t,i){_(this,e),this.customIconService=t,this.translate=i,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}).\u0275mod=Rt({type:U7,bootstrap:[YE]}),U7.\u0275inj=Se({factory:function(e){return new(e||U7)(ct(xE),ct(qT))},providers:[xE,{provide:Ec,useFactory:X7,multi:!0,deps:[I2]},{provide:Gp,useFactory:W7,deps:[Gy]},CI,OE,j7,{provide:q4,useClass:IE}],imports:[[Nf,rC,Up,WT.forRoot({loader:{provide:cT,useFactory:Y7,deps:[zp]}}),s0,zE,I1,RK,Ny,ZT,p4,i1,xQ,NI,xW,Nx,zF,qS,qz,kO,lO,nB,Mq,HO,qq,P4,AI,kI,vY,eS,uF,l5,$O,cO]]}),U7);K7=[Hh,qh,Yh,Uh,ud,sd,id,nd,rd,od,ad,jT,LE,ab,Sb,L1,z1,E1,D1,O1,x1,AK,bK,SK,kK,PC,MK,CK,tS,DK,xK,$U,Cy,vy,yy,My,ey,JT,QT,YV,JV,hX,NG,YG,oX,eX,SG,S0,_0,I0,g0,j2,J2,r3,h3,_3,T3,O3,j3,J3,n4,h4,t1,e1,B5,NZ,Cj,hZ,H5,j5,JY,BJ,JH,sB,HH,jF,qH,oU,K5,PQ,Sj,Vj,JQ,XZ,w6,Tj,QQ,A6,Z6,L8,d$,Ej,z8,x8,D8,R8,JZ,PW,h7,h$,d7,r$,$Z,v$,p7,q7,_$,IN,LW,MW,CW,SW,EW,TW,wW,cx,Ix,Tx,Ex,Lx,zx,xx,LF,EF,lS,oS,SS,PS,IS,NS,FS,pz,yz,Tz,Az,mz,xz,bz,Lz,Mz,Sz,Cz,Rz,Nz,Pz,Bz,fO,pO,AO,mO,vR,MD,zD,Yx,fD,yD,Hx,kD,LD,mD,Xx,Jx,JR,iO,rO,aO,QR,eO,bR,AR,VR,MR,SR,ZF,eB,kq,FO,BO,Rq,Hq,D4,R4,O4,w4,A4,k4,M4,C4,T4,E4,L4,S4,z4,x4,wI,hY,mY,dY,$C,aF,sF,s5,o5,GO,QO,mR,fR,cR,YE,cq,Zj,YY,SU,dU,TU,FK,kJ,lJ,nJ,OX,ZU,vJ,jX,J0,o1,eQ,tQ,yJ,sJ,QX,EU,KU,IU,MX,RY,_J,H4,G4,o0,T$,L$,b5],V7=[Ad,Sd,kd,xd,Wd,Nd,Fd,Cd,Bd,Td,Ld,zd,Dd,YT,IW,MI,CI,Lj,SI,$Q,ZQ,eZ,TI,EI,LI,zI,xI,DI,RI,dZ,k6,OI,PI,II,yY,j0],(G7=YE.\u0275cmp).directiveDefs=function(){return K7.map(zt)},G7.pipeDefs=function(){return V7.map(xt)},function(){if(Vn)throw new Error("Cannot enable prod mode after platform setup.");Kn=!1}(),Pf().bootstrapModule(J7).catch((function(e){return console.error(e)}))},zn8P:function(e,t){function i(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}i.keys=function(){return[]},i.resolve=i,e.exports=i,i.id="zn8P"}},[[0,0]]])}(); \ No newline at end of file diff --git a/dist/apps/user-profile/polyfills-es2015.add54c2931c744a8e8b7.js b/dist/apps/user-profile/polyfills-es2015.add54c2931c744a8e8b7.js new file mode 100644 index 000000000..b261cb006 --- /dev/null +++ b/dist/apps/user-profile/polyfills-es2015.add54c2931c744a8e8b7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{2:function(e,t,n){e.exports=n("hN/g")},"hN/g":function(e,t,n){"use strict";n.r(t),n("nf2o")},nf2o:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return r+e}const a=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class i{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==C.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=i.current;for(;e.parent;)e=e.parent;return e}static get current(){return z.zone}static get currentTask(){return j}static __load_patch(t,r){if(C.hasOwnProperty(t)){if(a)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const s="Zone:"+t;n(s),C[t]=r(e,i,O),o(s,s)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{z=z.parent}}runGuarded(e,t=null,n,o){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{z=z.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state===v&&(e.type===P||e.type===D))return;const o=e.state!=E;o&&e._transitionTo(E,T),e.runCount++;const r=j;j=e,z={parent:z,zone:this};try{e.type==D&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==v&&e.state!==Z&&(e.type==P||e.data&&e.data.isPeriodic?o&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(v,E,v))),z=z.parent,j=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(b,v);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(Z,b,v),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==b&&e._transitionTo(T,b),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(S,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(D,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(P,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(Z,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(v,w),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;oe.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,s)=>e.invokeTask(n,o,r,s),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class l{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:c,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");k(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,s,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=a,!o)throw new Error("callback is not defined");this.callback=o;const i=this;this.invoke=t===P&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,i,this,arguments)}}static invokeTask(e,t,n){e||(e=this),I++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==I&&m(),I--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(v,b)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==v&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=s("setTimeout"),p=s("Promise"),f=s("then");let d,g=[],_=!1;function k(t){if(0===I&&0===g.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,m)}else e[h](m,0);t&&g.push(t)}function m(){if(!_){for(_=!0;g.length;){const t=g;g=[];for(let n=0;nz,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:k,showUncaughtError:()=>!i[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(d=e.resolve(0))},patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R};let z={parent:null,zone:new i(null,null)},j=null,I=0;function R(){}o("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,a=[],i=!0===e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=s("Promise"),l=s("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}};const u=s("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return D.reject(e)}const g=s("state"),_=s("value"),k=s("finally"),m=s("parentPromiseValue"),y=s("parentPromiseState");function v(e,t){return n=>{try{T(e,t,n)}catch(o){T(e,!1,o)}}}const b=s("currentTaskTrace");function T(e,o,s){const c=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===s)throw new TypeError("Promise resolved with itself");if(null===e[g]){let h=null;try{"object"!=typeof s&&"function"!=typeof s||(h=s&&s.then)}catch(u){return c(()=>{T(e,!1,u)})(),e}if(!1!==o&&s instanceof D&&s.hasOwnProperty(g)&&s.hasOwnProperty(_)&&null!==s[g])w(s),T(e,s[g],s[_]);else if(!1!==o&&"function"==typeof h)try{h.call(s,c(v(e,o)),c(v(e,!1)))}catch(u){c(()=>{T(e,!1,u)})()}else{e[g]=o;const c=e[_];if(e[_]=s,e[k]===k&&!0===o&&(e[g]=e[y],e[_]=e[m]),!1===o&&s instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(s,b,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t{try{const o=e[_],r=!!n&&k===n[k];r&&(n[m]=o,n[y]=s);const i=t.run(a,void 0,r&&a!==d&&a!==f?[]:[o]);T(n,!0,i)}catch(o){T(n,!1,o)}},n)}const S=function(){};class D{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return T(new this(null),!0,e)}static reject(e){return T(new this(null),!1,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function s(e){n(e)}for(let a of e)p(a)||(a=this.resolve(a)),a.then(r,s);return o}static all(e){return D.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof D?this:D).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),s=2,a=0;const i=[];for(let l of e){p(l)||(l=this.resolve(l));const e=a;try{l.then(o=>{i[e]=t?t.thenCallback(o):o,s--,0===s&&n(i)},r=>{t?(i[e]=t.errorCallback(r),s--,0===s&&n(i)):o(r)})}catch(c){o(c)}s++,a++}return s-=2,0===s&&n(i),r}constructor(e){const t=this;if(!(t instanceof D))throw new Error("Must be an instanceof Promise.");t[g]=null,t[_]=[];try{e&&e(v(t,!0),v(t,!1))}catch(n){T(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||D);const r=new o(S),s=t.current;return null==this[g]?this[_].push(s,r,e,n):Z(this,s,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=D);const o=new n(S);o[k]=k;const r=t.current;return null==this[g]?this[_].push(r,o,e,e):Z(this,r,o,e,e),o}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;const P=e[c]=e.Promise,C=t.__symbol__("ZoneAwarePromise");let O=o(e,"Promise");O&&!O.configurable||(O&&delete O.writable,O&&delete O.value,O||(O={configurable:!0,enumerable:!0}),O.get=function(){return e[C]?e[C]:e[c]},O.set=function(t){t===D?e[C]=t:(e[c]=t,t.prototype[l]||j(t),n.setNativePromise(t))},r(e,"Promise",O)),e.Promise=D;const z=s("thenPatched");function j(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[l]=r,e.prototype.then=function(e,t){return new D((e,t)=>{r.call(this,e,t)}).then(e,t)},e[z]=!0}if(n.patchThen=j,P){j(P);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(I=t,function(){let e=I.apply(this,arguments);if(e instanceof D)return e;let t=e.constructor;return t[z]||j(t),e}))}var I;return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,D});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,s=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),i=Zone.__symbol__("");function c(e,t){return Zone.current.wrap(e,t)}function l(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const u=Zone.__symbol__,h="undefined"!=typeof window,p=h?window:void 0,f=h&&p||"object"==typeof self&&self||global,d=[null];function g(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=c(e[n],t+"_"+n));return e}function _(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!("nw"in f)&&void 0!==f.process&&"[object process]"==={}.toString.call(f.process),y=!m&&!k&&!(!h||!p.HTMLElement),v=void 0!==f.process&&"[object process]"==={}.toString.call(f.process)&&!k&&!(!h||!p.HTMLElement),b={},T=function(e){if(!(e=e||f.event))return;let t=b[e.type];t||(t=b[e.type]=u("ON_PROPERTY"+e.type));const n=this||e.target||f,o=n[t];let r;if(y&&n===p&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function E(n,o,r){let s=e(n,o);if(!s&&r&&e(r,o)&&(s={enumerable:!0,configurable:!0}),!s||!s.configurable)return;const a=u("on"+o+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete s.writable,delete s.value;const i=s.get,c=s.set,l=o.substr(2);let h=b[l];h||(h=b[l]=u("ON_PROPERTY"+l)),s.set=function(e){let t=this;t||n!==f||(t=f),t&&(t[h]&&t.removeEventListener(l,T),c&&c.apply(t,d),"function"==typeof e?(t[h]=e,t.addEventListener(l,T,!1)):t[h]=null)},s.get=function(){let e=this;if(e||n!==f||(e=f),!e)return null;const t=e[h];if(t)return t;if(i){let t=i&&i.call(this);if(t)return s.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(o),t}return null},t(n,o,s),n[a]=!0}function w(e,t,n){if(t)for(let o=0;ofunction(t,o){const s=n(t,o);return s.cbIdx>=0&&"function"==typeof o[s.cbIdx]?l(s.name,o[s.cbIdx],s,r):e.apply(t,o)})}function C(e,t){e[u("OriginalDelegate")]=t}let O=!1,z=!1;function j(){try{const e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function I(){if(O)return z;O=!0;try{const e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(z=!0)}catch(e){}return z}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=u("OriginalDelegate"),o=u("Promise"),r=u("Error"),s=function(){if("function"==typeof this){const s=this[n];if(s)return"function"==typeof s?t.call(s):Object.prototype.toString.call(s);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};s[n]=t,Function.prototype.toString=s;const a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});let R=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ie){R=!1}const N={useG:!0},x={},L={},M=new RegExp("^"+i+"(\\w+)(true|false)$"),A=u("propagationStopped");function H(e,t){const n=(t?t(e):e)+"false",o=(t?t(e):e)+"true",r=i+n,s=i+o;x[e]={},x[e].false=r,x[e].true=s}function F(e,t,o){const r=o&&o.add||"addEventListener",s=o&&o.rm||"removeEventListener",a=o&&o.listeners||"eventListeners",c=o&&o.rmAll||"removeAllListeners",l=u(r),h="."+r+":",p=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[s].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},f=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[x[t.type].false];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;ofunction(t,n){t[A]=!0,e&&e.apply(t,n)})}function q(e,t,n,o,r){const s=Zone.__symbol__(o);if(t[s])return;const a=t[s]=t[o];t[o]=function(s,i,c){return i&&i.prototype&&r.forEach((function(t){const r=`${n}.${o}::`+t,s=i.prototype;if(s.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(s,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(i.prototype,t,n)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))})),a.call(t,s,i,c)},e.attachOriginToPatched(t[o],a)}const W=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],U=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],V=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],X=["bounce","finish","start"],J=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Y=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],K=["close","error","open","message"],Q=["error","message"],ee=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],W,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function te(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ne(e,t,n,o){e&&w(e,te(e,t,n),o)}function oe(e,t){if(m&&!v)return;if(Zone[e.symbol("patchEvents")])return;const o="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(y){const e=window,t=j?[{target:e,ignoreProperties:["error"]}]:[];ne(e,ee.concat(["messageerror"]),r?r.concat(t):r,n(e)),ne(Document.prototype,ee,r),void 0!==e.SVGElement&&ne(e.SVGElement.prototype,ee,r),ne(Element.prototype,ee,r),ne(HTMLElement.prototype,ee,r),ne(HTMLMediaElement.prototype,U,r),ne(HTMLFrameSetElement.prototype,W.concat($),r),ne(HTMLBodyElement.prototype,W.concat($),r),ne(HTMLFrameElement.prototype,V,r),ne(HTMLIFrameElement.prototype,V,r);const o=e.HTMLMarqueeElement;o&&ne(o.prototype,X,r);const s=e.Worker;s&&ne(s.prototype,Q,r)}const s=t.XMLHttpRequest;s&&ne(s.prototype,J,r);const a=t.XMLHttpRequestEventTarget;a&&ne(a&&a.prototype,J,r),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,Y,r),ne(IDBRequest.prototype,Y,r),ne(IDBOpenDBRequest.prototype,Y,r),ne(IDBDatabase.prototype,Y,r),ne(IDBTransaction.prototype,Y,r),ne(IDBCursor.prototype,Y,r)),o&&ne(WebSocket.prototype,K,r)}Zone.__load_patch("util",(n,s,a)=>{a.patchOnProperties=w,a.patchMethod=D,a.bindArguments=g,a.patchMacroTask=P;const l=s.__symbol__("BLACK_LISTED_EVENTS"),u=s.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[l]=n[u]),n[l]&&(s[l]=s[u]=n[l]),a.patchEventPrototype=B,a.patchEventTarget=F,a.isIEOrEdge=I,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=o,a.ArraySlice=r,a.patchClass=S,a.wrapWithCurrentZone=c,a.filterProperties=te,a.attachOriginToPatched=C,a._redefineProperty=Object.defineProperty,a.patchCallbacks=q,a.getGlobalObjects=()=>({globalSources:L,zoneSymbolEventNames:x,eventNames:ee,isBrowser:y,isMix:v,isNode:m,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:i,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const re=u("zoneTask");function se(e,t,n,o){let r=null,s=null;n+=o;const a={};function i(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[re]=null))}},n.handleId=r.apply(e,n.args),t}function c(e){return s(e.data.handleId)}r=D(e,t+=o,n=>function(r,s){if("function"==typeof s[0]){const e=l(t,s[0],{isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?s[1]||0:void 0,args:s},i,c);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?a[n]=e:n&&(n[re]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,s)}),s=D(e,n,t=>function(n,o){const r=o[0];let s;"number"==typeof r?s=a[r]:(s=r&&r[re],s||(s=r)),s&&"string"==typeof s.type?"notScheduled"!==s.state&&(s.cancelFn&&s.data.isPeriodic||0===s.runCount)&&("number"==typeof r?delete a[r]:r&&(r[re]=null),s.zone.cancelTask(s)):t.apply(e,o)})}function ae(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:s,ZONE_SYMBOL_PREFIX:a}=t.getGlobalObjects();for(let c=0;c{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{se(e,"set","clear","Timeout"),se(e,"set","clear","Interval"),se(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{se(e,"request","cancel","AnimationFrame"),se(e,"mozRequest","mozCancel","AnimationFrame"),se(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;ofunction(o,s){return t.current.run(n,e,s,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{(function(e,t){t.patchEventPrototype(e,t)})(e,n),ae(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),S("MutationObserver"),S("WebKitMutationObserver"),S("IntersectionObserver"),S("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{oe(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const p=e.XMLHttpRequest;if(!p)return;const f=p.prototype;let d=f[s],g=f[a];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[s],g=e[a]}}function _(e){const o=e.data,c=o.target;c[i]=!1,c[h]=!1;const l=c[r];d||(d=c[s],g=c[a]),l&&g.call(c,"readystatechange",l);const u=c[r]=()=>{if(c.readyState===c.DONE)if(!o.aborted&&c[i]&&"scheduled"===e.state){const n=c[t.__symbol__("loadfalse")];if(n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=c[t.__symbol__("loadfalse")];for(let t=0;tfunction(e,t){return e[o]=0==t[2],e[c]=t[1],y.apply(e,t)}),v=u("fetchTaskAborting"),b=u("fetchTaskScheduling"),T=D(f,"send",()=>function(e,n){if(!0===t.current[b])return T.apply(e,n);if(e[o])return T.apply(e,n);{const t={target:e,url:e[c],isPeriodic:!1,args:n,aborted:!1},o=l("XMLHttpRequest.send",k,t,_,m);e&&!0===e[h]&&!t.aborted&&"scheduled"===o.state&&o.invoke()}}),E=D(f,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[v])return E.apply(e,o)})}(e);const n=u("xhrTask"),o=u("xhrSync"),r=u("xhrListener"),i=u("xhrScheduled"),c=u("xhrURL"),h=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const o=t.constructor.name;for(let r=0;r{const t=function(){return e.apply(this,g(arguments,o+"."+s))};return C(t,e),t})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){G(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?o.call(t,n,t,e):o)||(e.exports=r)}},[[2,0]]]); \ No newline at end of file diff --git a/dist/apps/user-profile/polyfills-es5.1c2c1e416c798db58ed1.js b/dist/apps/user-profile/polyfills-es5.1c2c1e416c798db58ed1.js new file mode 100644 index 000000000..5a9b9ae16 --- /dev/null +++ b/dist/apps/user-profile/polyfills-es5.1c2c1e416c798db58ed1.js @@ -0,0 +1 @@ +!function(){function t(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)}}),i("findIndex")},"+NaH":function(t,e,n){var r=n("ThF5"),o=n("qpFR"),i=n("c8b2");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"+q1H":function(t,e,n){"use strict";var r,o,i,a=n("yosQ"),c=n("+NaH"),u=n("+C+w"),s=n("G9lz"),f=n("p2x6"),l=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),f||u(r,l)||c(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},"/K78":function(t,e,n){var r=n("0vT8"),o=n("TQiC");r({global:!0,forced:parseFloat!=o},{parseFloat:o})},"/Wjk":function(t,e,n){"use strict";var r=n("lYWO"),o=n("L0mP");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},"/ZgM":function(t,e,n){"use strict";var r=n("pNVf"),o=n("NneG");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},"00I2":function(t,e,n){var r=n("ThF5"),o=n("qpFR"),i=n("QxQN"),a=n("SF8I").UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},"03IN":function(t,e,n){var r=n("4eii"),o=n("VfW/").trim,i=n("ZKm/"),a=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");t.exports=u?function(t,e){var n=o(String(t));return a(n,e>>>0||(c.test(n)?16:10))}:a},"0BIM":function(t,e,n){"use strict";var r=n("Zm5N"),o=n("UET0"),i=n("L0mP"),a=n("TC5Z"),c=n("6pHA");r("search",1,(function(t,e,n){return[function(e){var n=i(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=o(t),u=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var f=c(i,u);return a(i.lastIndex,s)||(i.lastIndex=s),null===f?-1:f.index}]}))},"0Eps":function(t,e,n){n("0vT8")({target:"Number",stat:!0},{isInteger:n("O1uG")})},"0O2A":function(t,e,n){var r=n("4eii"),o=n("rP2c"),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},"0PBP":function(t,e,n){"use strict";var r=n("s7Qr").forEach,o=n("9rSH"),i=n("X4rX"),a=o("forEach"),c=i("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"0Yxs":function(t,e,n){n("0vT8")({target:"Object",stat:!0,sham:!n("ThF5")},{create:n("dYyi")})},"0dFo":function(t,e,n){var r=n("G9lz")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(c){}return n}},"0u0I":function(t,e,n){var r=n("0vT8"),o=n("03IN");r({global:!0,forced:parseInt!=o},{parseInt:o})},"0vT8":function(t,e,n){var r=n("4eii"),o=n("5tsF").f,i=n("+NaH"),a=n("gGei"),c=n("d1gM"),u=n("QA9J"),s=n("2L9N");t.exports=function(t,e){var n,f,l,p,h,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(h=o(n,f))&&h.value:n[f],!s(d?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(n,f,p,t)}}},1:function(t,e,n){n("l/Py"),n("xVoO"),t.exports=n("hN/g")},"19jd":function(t,e,n){var r=n("UET0"),o=n("rP2c"),i=n("Pj9/");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},"1BS+":function(t,e,n){var r=n("lcFv");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"1Yxx":function(t,e,n){"use strict";var r=n("0vT8"),o=n("VfW/").trim;r({target:"String",proto:!0,forced:n("J+mE")("trim")},{trim:function(){return o(this)}})},"1dlD":function(t,e,n){"use strict";var r=n("0vT8"),o=n("XtQF"),i=n("VUDt"),a=n("x42P");r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},"1geW":function(t,e,n){var r=n("0vT8"),o=n("Hshb");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},"1ul8":function(t,e,n){"use strict";var r=n("xbsk").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"2L9N":function(t,e,n){var r=n("XtQF"),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},"2VXe":function(t,e,n){var r=n("8ZjQ"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"2g3X":function(t,e,n){"use strict";var r=n("XtQF"),o=n("W3Kz").start,i=Math.abs,a=Date.prototype,c=a.getTime,u=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))}))||!r((function(){u.call(new Date(NaN))}))?function(){if(!isFinite(c.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+o(i(t),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:u},"2imT":function(t,e,n){var r=n("0vT8"),o=n("vSAT"),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+u:o(t-1+c(t-1)*c(t+1))}})},"3QRp":function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("sub")},{sub:function(){return o(this,"sub","","")}})},"3dqU":function(t,e,n){"use strict";var r=n("0vT8"),o=n("tH9H"),i=n("V3ap"),a=n("9rSH"),c=[].join,u=o!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:u||!s},{join:function(t){return c.call(i(this),void 0===t?",":t)}})},"3yYM":function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(_){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new E(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=k(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),o}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(_){return{type:"throw",arg:_}}}t.wrap=u;var f={};function l(){}function p(){}function h(){}var v={};v[o]=function(){return this};var d=Object.getPrototypeOf,g=d&&d(d(S([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=h.prototype=l.prototype=Object.create(v);function m(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var r;this._invoke=function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function k(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=s(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function S(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},"4ZNk":function(t,e,n){n("0vT8")({target:"Function",proto:!0},{bind:n("dmrs")})},"4eii":function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"4xiE":function(t,e,n){var r=n("0vT8"),o=n("VUDt"),i=n("VQs6");r({target:"Object",stat:!0,forced:n("XtQF")((function(){i(1)}))},{keys:function(t){return i(o(t))}})},"51+R":function(t,e,n){"use strict";var r=n("x42P"),o=n("qpFR"),i=n("c8b2");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},"564C":function(t,e,n){n("79XA")("isConcatSpreadable")},"5QPa":function(t,e,n){"use strict";var r=n("9rgZ"),o=n("92yR");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},"5b4b":function(t,e,n){n("0vT8")({target:"Number",stat:!0},{isFinite:n("Uure")})},"5tsF":function(t,e,n){var r=n("ThF5"),o=n("WHJo"),i=n("c8b2"),a=n("V3ap"),c=n("x42P"),u=n("+C+w"),s=n("uQC4"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(n){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},"62Jg":function(t,e,n){var r=n("mwKY"),o=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),u=i(2,127)*(2-c),s=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=o(t),f=r(t);return iu||n!=n?f*(1/0):f*n}},"6HJc":function(t,e,n){var r=n("0vT8"),o=n("XtQF"),i=n("rP2c"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},"6pHA":function(t,e,n){var r=n("ArQy"),o=n("Skmt");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"79XA":function(t,e,n){var r=n("g6B6"),o=n("+C+w"),i=n("kbF1"),a=n("qpFR").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"7FRj":function(t,e,n){"use strict";var r=n("rP2c"),o=n("qpFR"),i=n("yosQ"),a=n("G9lz")("hasInstance"),c=Function.prototype;a in c||o.f(c,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},"7PoR":function(t,e,n){n("0vT8")({target:"Object",stat:!0},{setPrototypeOf:n("nWyh")})},"7oHr":function(t,e,n){"use strict";var r,o=n("0vT8"),i=n("5tsF").f,a=n("eXo2"),c=n("qlPw"),u=n("L0mP"),s=n("hDjE"),f=n("p2x6"),l="".endsWith,p=Math.min,h=s("endsWith");o({target:"String",proto:!0,forced:!(!f&&!h&&(r=i(String.prototype,"endsWith"),r&&!r.writable)||h)},{endsWith:function(t){var e=String(u(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),o=void 0===n?r:p(a(n),r),i=String(t);return l?l.call(e,i,o):e.slice(o-i.length,o)===i}})},"7pK/":function(t,e,n){var r=n("DoB2"),o=n("UkEg"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"8WdQ":function(t,e,n){var r=n("0vT8"),o=n("O1uG"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},"8ZjQ":function(t,e,n){var r=n("4eii"),o=n("d1gM"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},"8uRZ":function(t,e,n){var r=n("4eii"),o=n("2VXe"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},"92yR":function(t,e,n){var r=n("9rgZ"),o=n("ArQy"),i=n("G9lz")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},"9D1u":function(t,e,n){var r=n("rP2c"),o=n("ArQy"),i=n("G9lz")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},"9rSH":function(t,e,n){"use strict";var r=n("XtQF");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},"9rgZ":function(t,e,n){var r={};r[n("G9lz")("toStringTag")]="z",t.exports="[object z]"===String(r)},"9ypw":function(t,e,n){var r=n("4eii"),o=n("Z6qe"),i=n("jMNW"),a=n("+NaH"),c=n("G9lz"),u=c("iterator"),s=c("toStringTag"),f=i.values;for(var l in o){var p=r[l],h=p&&p.prototype;if(h){if(h[u]!==f)try{a(h,u,f)}catch(d){h[u]=f}if(h[s]||a(h,s,l),o[l])for(var v in i)if(h[v]!==i[v])try{a(h,v,i[v])}catch(d){h[v]=i[v]}}}},"A//Y":function(t,e,n){"use strict";var r=n("y5Hs"),o=n("qpFR"),i=n("G9lz"),a=n("ThF5"),c=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&(0,o.f)(e,c,{configurable:!0,get:function(){return this}})}},ABD5:function(t,e,n){n("79XA")("split")},"ANI/":function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},AV8a:function(t,e,n){"use strict";var r=n("0vT8"),o=n("oxl1"),i=n("yosQ"),a=n("nWyh"),c=n("utQb"),u=n("+NaH"),s=n("gGei"),f=n("G9lz"),l=n("p2x6"),p=n("qv8c"),h=n("+q1H"),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=f("iterator"),y=function(){return this};t.exports=function(t,e,n,f,h,m,b){o(n,e,f);var k,T,x,E=function(t){if(t===h&&P)return P;if(!d&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",w=!1,_=t.prototype,O=_[g]||_["@@iterator"]||h&&_[h],P=!d&&O||E(h),j="Array"==e&&_.entries||O;if(j&&(k=i(j.call(new t)),v!==Object.prototype&&k.next&&(l||i(k)===v||(a?a(k,v):"function"!=typeof k[g]&&u(k,g,y)),c(k,S,!0,!0),l&&(p[S]=y))),"values"==h&&O&&"values"!==O.name&&(w=!0,P=function(){return O.call(this)}),l&&!b||_[g]===P||u(_,g,P),p[e]=P,h)if(T={values:E("values"),keys:m?P:E("keys"),entries:E("entries")},b)for(x in T)(d||w||!(x in _))&&s(_,x,T[x]);else r({target:e,proto:!0,forced:d||w},T);return T}},AVL7:function(t,e,n){var r=n("0vT8"),o=n("XtQF"),i=n("VUDt"),a=n("yosQ"),c=n("craJ");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},Ap7B:function(t,e,n){"use strict";var r=n("0vT8"),o=n("XNJA"),i=n("VUDt"),a=n("XtQF"),c=n("9rSH"),u=[],s=u.sort,f=a((function(){u.sort(void 0)})),l=a((function(){u.sort(null)})),p=c("sort");r({target:"Array",proto:!0,forced:f||!l||!p},{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},ArQy:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},BehZ:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},Btv7:function(t,e,n){n("79XA")("asyncIterator")},C8vK:function(t,e,n){"use strict";var r=n("0vT8"),o=n("Skmt");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},CAbf:function(t,e,n){var r=n("4eii");t.exports=r.Promise},DoB2:function(t,e,n){var r=n("p2x6"),o=n("8ZjQ");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},"EI+E":function(t,e,n){var r=n("rP2c"),o=n("tx09"),i=n("G9lz")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},EoF4:function(t,e,n){var r=n("0vT8"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},Ezqs:function(t,e,n){n("0vT8")({target:"Math",stat:!0},{log1p:n("vSAT")})},F1iM:function(t,e,n){n("Hd1F"),n("R7u8"),n("qWhD"),n("Btv7"),n("r+2N"),n("vExu"),n("564C"),n("VBUz"),n("ps+b"),n("vItB"),n("uLb4"),n("s7qu"),n("Pgr3"),n("ABD5"),n("Y/en"),n("urZ2"),n("ZFHZ"),n("zLr9"),n("nr/g");var r=n("g6B6");t.exports=r.Symbol},F6ip:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},FIoU:function(t,e,n){"use strict";var r,o=n("4eii"),i=n("RBcf"),a=n("q75f"),c=n("pNVf"),u=n("rBtS"),s=n("rP2c"),f=n("pCF3").enforce,l=n("8uRZ"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},d=t.exports=c("WeakMap",v,u);if(l&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,m=g.has,b=g.get,k=g.set;i(g,{delete:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.delete(t)}return y.call(this,t)},has:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.has(t)}return m.call(this,t)},get:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),m.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(s(t)&&!h(t)){var n=f(this);n.frozen||(n.frozen=new r),m.call(this,t)?k.call(this,t,e):n.frozen.set(t,e)}else k.call(this,t,e);return this}})}},Fcgu:function(t,e,n){"use strict";var r=n("0vT8"),o=n("s7Qr").map,i=n("LQxa"),a=n("X4rX"),c=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!c||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},G9lz:function(t,e,n){var r=n("4eii"),o=n("DoB2"),i=n("+C+w"),a=n("UkEg"),c=n("lcFv"),u=n("1BS+"),s=o("wks"),f=r.Symbol,l=u?f:f&&f.withoutSetter||a;t.exports=function(t){return i(s,t)||(s[t]=c&&i(f,t)?f[t]:l("Symbol."+t)),s[t]}},GZNO:function(t,e,n){n("0vT8")({target:"Object",stat:!0},{is:n("TC5Z")})},Hd1F:function(t,e,n){"use strict";var r=n("0vT8"),o=n("XtQF"),i=n("tx09"),a=n("rP2c"),c=n("VUDt"),u=n("eXo2"),s=n("51+R"),f=n("EI+E"),l=n("LQxa"),p=n("G9lz"),h=n("lANf"),v=p("isConcatSpreadable"),d=h>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=l("concat"),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!d||!g},{concat:function(t){var e,n,r,o,i,a=c(this),l=f(a,0),p=0;for(e=-1,r=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,p++,i)}return l.length=p,l}})},Hshb:function(t,e,n){"use strict";var r=n("ThF5"),o=n("XtQF"),i=n("VQs6"),a=n("X1th"),c=n("WHJo"),u=n("VUDt"),s=n("tH9H"),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,f=1,l=a.f,p=c.f;o>f;)for(var h,v=s(arguments[f++]),d=l?i(v).concat(l(v)):i(v),g=d.length,y=0;g>y;)h=d[y++],r&&!p.call(v,h)||(n[h]=v[h]);return n}:f},I0iV:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("sup")},{sup:function(){return o(this,"sup","","")}})},IgI0:function(t,e){t.exports={}},"J+mE":function(t,e,n){var r=n("XtQF"),o=n("ZKm/");t.exports=function(t){return r((function(){return!!o[t]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[t]()||o[t].name!==t}))}},JBtQ:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("italics")},{italics:function(){return o(this,"i","","")}})},JMzg:function(t,e,n){"use strict";var r,o=n("0vT8"),i=n("5tsF").f,a=n("eXo2"),c=n("qlPw"),u=n("L0mP"),s=n("hDjE"),f=n("p2x6"),l="".startsWith,p=Math.min,h=s("startsWith");o({target:"String",proto:!0,forced:!(!f&&!h&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||h)},{startsWith:function(t){var e=String(u(this));c(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},JZ5z:function(t,e,n){var r=n("UET0");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t.return;throw void 0!==i&&r(i.call(t)),a}}},JvUV:function(t,e,n){var r=n("0vT8"),o=n("oTBo"),i=n("YxED");r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},JwcT:function(t,e,n){"use strict";var r=n("0vT8"),o=n("s7Qr").filter,i=n("LQxa"),a=n("X4rX"),c=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!c||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},KSpI:function(t,e,n){var r=n("UET0"),o=n("tTCw"),i=n("eXo2"),a=n("xwki"),c=n("YtfA"),u=n("JZ5z"),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var p,h,v,d,g,y,m,b=a(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(t.length);d>v;v++)if((g=f?b(r(m=t[v])[0],m[1]):b(t[v]))&&g instanceof s)return g;return new s(!1)}p=h.call(t)}for(y=p.next;!(m=y.call(p)).done;)if("object"==typeof(g=u(p,b,m.value,f))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(t){return new s(!0,t)}},Kdyt:function(t,e,n){var r=n("UET0"),o=n("XNJA"),i=n("G9lz")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},Kg1r:function(t,e,n){var r=n("XtQF");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},L0mP:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"LJ+p":function(t,e){var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n},LQxa:function(t,e,n){var r=n("XtQF"),o=n("G9lz"),i=n("lANf"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},LjPG:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("big")},{big:function(){return o(this,"big","","")}})},Lyq5:function(t,e,n){var r=n("0vT8"),o=n("TQiC");r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},MKQa:function(t,e,n){var r=n("0vT8"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},"Nf+e":function(t,e,n){var r=n("ArQy");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},NneG:function(t,e,n){"use strict";var r=n("qpFR").f,o=n("dYyi"),i=n("RBcf"),a=n("xwki"),c=n("BehZ"),u=n("KSpI"),s=n("AV8a"),f=n("A//Y"),l=n("ThF5"),p=n("q75f").fastKey,h=n("pCF3"),v=h.set,d=h.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){c(t,f,e),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&u(r,t[s],t,n)})),h=d(e),g=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=h(this),n=y(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return h(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=d(e),i=d(r);s(t,e,(function(t,e){v(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},NyaS:function(t,e,n){var r=n("yMQa");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},O1uG:function(t,e,n){var r=n("rP2c"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},OE6s:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("bold")},{bold:function(){return o(this,"b","","")}})},Ofvt:function(t,e,n){"use strict";var r=n("0vT8"),o=n("rP2c"),i=n("tx09"),a=n("eFwx"),c=n("eXo2"),u=n("V3ap"),s=n("51+R"),f=n("G9lz"),l=n("LQxa"),p=n("X4rX"),h=l("slice"),v=p("slice",{ACCESSORS:!0,0:0,1:2}),d=f("species"),g=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!h||!v},{slice:function(t,e){var n,r,f,l=u(this),p=c(l.length),h=a(t,p),v=a(void 0===e?p:e,p);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(l,h,v);for(r=new(void 0===n?Array:n)(y(v-h,0)),f=0;hc;)a.push(String(e[c++])),c0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(v="(?: "+v+")",g=" "+g,d++),n=new RegExp("^(?:"+v+")",h)),p&&(n=new RegExp("^"+v+"$(?!\\s)",h)),f&&(e=a.lastIndex),r=c.call(s?n:a,g),s?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:f&&r&&(a.lastIndex=a.global?r.index+r[0].length:e),p&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o=0;)p[e]=s((n+=p[e])/t),n=n%t*1e7},y=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==p[t]){var n=String(p[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e};if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(h="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*f(2,69,1))-69)<0?u*f(2,-e,1):u/f(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=l;r>=7;)d(1e7,0),r-=7;for(d(f(10,r,1),0),r=e-1;r>=23;)g(1<<23),r-=23;g(1<0?h+((c=v.length)<=l?"0."+a.call("0",l-c)+v:v.slice(0,c-l)+"."+v.slice(c-l)):h+v}})},UkEg:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},Uure:function(t,e,n){var r=n("4eii").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},V3ap:function(t,e,n){var r=n("tH9H"),o=n("L0mP");t.exports=function(t){return r(o(t))}},V7Uj:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("fontcolor")},{fontcolor:function(t){return o(this,"font","color",t)}})},VBUz:function(t,e,n){n("79XA")("iterator")},VCHe:function(t,e,n){var r=n("XtQF");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},VQs6:function(t,e,n){var r=n("gQA2"),o=n("dKk4");t.exports=Object.keys||function(t){return r(t,o)}},VUDt:function(t,e,n){var r=n("L0mP");t.exports=function(t){return Object(r(t))}},"VfW/":function(t,e,n){var r=n("L0mP"),o="["+n("ZKm/")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},Vx7H:function(t,e,n){var r=n("ThF5"),o=n("qpFR"),i=n("UET0"),a=n("VQs6");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},W3Kz:function(t,e,n){var r=n("eXo2"),o=n("/Wjk"),i=n("L0mP"),a=Math.ceil,c=function(t){return function(e,n,c){var u,s,f=String(i(e)),l=f.length,p=void 0===c?" ":String(c),h=r(n);return h<=l||""==p?f:((s=o.call(p,a((u=h-l)/p.length))).length>u&&(s=s.slice(0,u)),t?f+s:s+f)}};t.exports={start:c(!1),end:c(!0)}},WHJo:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},Ww1t:function(t,e,n){"use strict";var r=n("V3ap"),o=n("lYWO"),i=n("eXo2"),a=n("9rSH"),c=n("X4rX"),u=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0});t.exports=!f&&l&&p?s:function(t){if(f)return s.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}},X1th:function(t,e){e.f=Object.getOwnPropertySymbols},X4rX:function(t,e,n){var r=n("ThF5"),o=n("XtQF"),i=n("+C+w"),a=Object.defineProperty,c={},u=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var n=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,f=i(e,0)?e[0]:u,l=i(e,1)?e[1]:void 0;return c[t]=!!n&&!o((function(){if(s&&!r)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,f,l)}))}},XNJA:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},XtQF:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"Y/en":function(t,e,n){n("79XA")("toPrimitive")},Y8n2:function(t,e,n){var r=n("0vT8"),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return o(t)/i}})},Yr4I:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("small")},{small:function(){return o(this,"small","","")}})},YtfA:function(t,e,n){var r=n("92yR"),o=n("qv8c"),i=n("G9lz")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},YxED:function(t,e,n){var r=n("G9lz"),o=n("dYyi"),i=n("qpFR"),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},Z5iX:function(t,e,n){"use strict";var r=n("0vT8"),o=n("mXzy").right,i=n("9rSH"),a=n("X4rX"),c=i("reduceRight"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduceRight:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},Z6qe:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},ZFHZ:function(t,e,n){n("79XA")("unscopables")},"ZKm/":function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},Zm5N:function(t,e,n){"use strict";n("C8vK");var r=n("gGei"),o=n("XtQF"),i=n("G9lz"),a=n("Skmt"),c=n("+NaH"),u=i("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),h=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,l){var v=i(t),d=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[v]=/./[v]),n.exec=function(){return e=!0,null},n[v](""),!e}));if(!d||!g||"replace"===t&&(!s||!f||p)||"split"===t&&!h){var y=/./[v],m=n(v,""[t],(function(t,e,n,r,o){return e.exec===a?d&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=m[1];r(String.prototype,t,m[0]),r(RegExp.prototype,v,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}l&&c(RegExp.prototype[v],"sham",!0)}},a9aE:function(t,e,n){"use strict";var r=n("Zm5N"),o=n("UET0"),i=n("eXo2"),a=n("L0mP"),c=n("1ul8"),u=n("6pHA");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;for(var l,p=[],h=0;null!==(l=u(a,s));){var v=String(l[0]);p[h]=v,""===v&&(a.lastIndex=c(s,i(a.lastIndex),f)),h++}return 0===h?null:p}]}))},aLkt:function(t,e,n){var r=n("0vT8"),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?i:o)(t)}})},bFNe:function(t,e,n){"use strict";var r=n("pNVf"),o=n("NneG");t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},bVE6:function(t,e,n){var r=n("0vT8"),o=n("XtQF"),i=n("LJ+p"),a=Math.abs,c=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(c(t-1)-c(-t-1))*(u/2)}})},bxYA:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("fixed")},{fixed:function(){return o(this,"tt","","")}})},c8b2:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},chez:function(t,e,n){"use strict";var r=n("UET0"),o=n("x42P");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},craJ:function(t,e,n){var r=n("XtQF");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},d1VG:function(t,e,n){n("0vT8")({target:"Math",stat:!0},{fround:n("62Jg")})},d1Z5:function(t,e,n){n("rEpP"),n("PMJG"),n("5b4b"),n("0Eps"),n("kjjh"),n("8WdQ"),n("iEbv"),n("sPQT"),n("Lyq5"),n("ff4A"),n("Ujke"),n("mqXI");var r=n("g6B6");t.exports=r.Number},d1gM:function(t,e,n){var r=n("4eii"),o=n("+NaH");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},d8kk:function(t,e,n){"use strict";var r=n("xwki"),o=n("VUDt"),i=n("JZ5z"),a=n("tTCw"),c=n("eXo2"),u=n("51+R"),s=n("YtfA");t.exports=function(t){var e,n,f,l,p,h,v=o(t),d="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=s(v),k=0;if(m&&(y=r(y,g>2?arguments[2]:void 0,2)),null==b||d==Array&&a(b))for(n=new d(e=c(v.length));e>k;k++)h=m?y(v[k],k):v[k],u(n,k,h);else for(p=(l=b.call(v)).next,n=new d;!(f=p.call(l)).done;k++)h=m?i(l,y,[f.value,k],!0):f.value,u(n,k,h);return n.length=k,n}},dKk4:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},dRGF:function(t,e,n){"use strict";var r=n("0vT8"),o=n("x+Se");r({target:"String",proto:!0,forced:n("Kg1r")("strike")},{strike:function(){return o(this,"strike","","")}})},dYyi:function(t,e,n){var r,o=n("UET0"),i=n("Vx7H"),a=n("dKk4"),c=n("IgI0"),u=n("yjCV"),s=n("0O2A"),f=n("7pK/")("IE_PROTO"),l=function(){},p=function(t){return"